From b954337b99ea793e252f7b7aa31cb62228a199cd Mon Sep 17 00:00:00 2001
From: Georgi Nikolov <gnnikolov87@gmail.com>
Date: Wed, 8 Dec 2021 10:13:17 +0100
Subject: [PATCH] Removed unnecessary css, dashboard uses bootstrap for now

---
 public/css/app.css |     25 -
 public/js/app.js   | 225438 +++++++++++++++++++++---------------------
 2 files changed, 112719 insertions(+), 112744 deletions(-)

diff --git a/public/css/app.css b/public/css/app.css
index 8a78fda..847798c 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -15513,28 +15513,3 @@ a.text-dark:focus {
   right: 5px;
 }
 
-
-/* Split the screen in half */
-.split-left {
-    height: 100%;
-    width: 15%;
-    left: 0;
-    position: fixed;
-    z-index: 1;
-    overflow-x: hidden;
-    padding-top: 5px;
-    border-style: solid;
-    border-color: #dee2e6;
-}
-
-/* Control the right side */
-.split-right {
-    height: 100%;
-    width: 85%;
-    right: 0;
-    position: fixed;
-    z-index: 1;
-    overflow-x: hidden;
-    padding-top: 20px;
-    padding-left: 20px;
-}
\ No newline at end of file
diff --git a/public/js/app.js b/public/js/app.js
index 217390b..314a95d 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -1,98453 +1,98453 @@
 /******/ (function(modules) { // webpackBootstrap
-    /******/ 	// The module cache
-    /******/ 	var installedModules = {};
-    /******/
-    /******/ 	// 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;
-        /******/ 	}
-    /******/
-    /******/
-    /******/ 	// 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 = "/";
-    /******/
-    /******/
-    /******/ 	// Load entry module and return exports
-    /******/ 	return __webpack_require__(__webpack_require__.s = 0);
-    /******/ })
-    /************************************************************************/
-    /******/ ({
-
-        /***/ "./node_modules/axios/index.js":
-        /*!*************************************!*\
+/******/ 	// The module cache
+/******/ 	var installedModules = {};
+/******/
+/******/ 	// 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;
+/******/ 	}
+/******/
+/******/
+/******/ 	// 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 = "/";
+/******/
+/******/
+/******/ 	// Load entry module and return exports
+/******/ 	return __webpack_require__(__webpack_require__.s = 0);
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ "./node_modules/axios/index.js":
+/*!*************************************!*\
   !*** ./node_modules/axios/index.js ***!
   \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
+module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/adapters/xhr.js":
-        /*!************************************************!*\
+/***/ "./node_modules/axios/lib/adapters/xhr.js":
+/*!************************************************!*\
   !*** ./node_modules/axios/lib/adapters/xhr.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
-            var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
-            var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
-            var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
-            var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
-            var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
-            var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
+var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
+var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
+var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
+var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
+var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
 
-            module.exports = function xhrAdapter(config) {
-                return new Promise(function dispatchXhrRequest(resolve, reject) {
-                    var requestData = config.data;
-                    var requestHeaders = config.headers;
+module.exports = function xhrAdapter(config) {
+  return new Promise(function dispatchXhrRequest(resolve, reject) {
+    var requestData = config.data;
+    var requestHeaders = config.headers;
 
-                    if (utils.isFormData(requestData)) {
-                        delete requestHeaders['Content-Type']; // Let the browser set it
-                    }
-
-                    var request = new XMLHttpRequest();
-
-                    // HTTP basic authentication
-                    if (config.auth) {
-                        var username = config.auth.username || '';
-                        var password = config.auth.password || '';
-                        requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
-                    }
-
-                    var fullPath = buildFullPath(config.baseURL, config.url);
-                    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
-
-                    // Set the request timeout in MS
-                    request.timeout = config.timeout;
-
-                    // Listen for ready state
-                    request.onreadystatechange = function handleLoad() {
-                        if (!request || request.readyState !== 4) {
-                            return;
-                        }
-
-                        // The request errored out and we didn't get a response, this will be
-                        // handled by onerror instead
-                        // With one exception: request that using file: protocol, most browsers
-                        // will return status as 0 even though it's a successful request
-                        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
-                            return;
-                        }
-
-                        // Prepare the response
-                        var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
-                        var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
-                        var response = {
-                            data: responseData,
-                            status: request.status,
-                            statusText: request.statusText,
-                            headers: responseHeaders,
-                            config: config,
-                            request: request
-                        };
-
-                        settle(resolve, reject, response);
-
-                        // Clean up request
-                        request = null;
-                    };
-
-                    // Handle browser request cancellation (as opposed to a manual cancellation)
-                    request.onabort = function handleAbort() {
-                        if (!request) {
-                            return;
-                        }
-
-                        reject(createError('Request aborted', config, 'ECONNABORTED', request));
-
-                        // Clean up request
-                        request = null;
-                    };
+    if (utils.isFormData(requestData)) {
+      delete requestHeaders['Content-Type']; // Let the browser set it
+    }
 
-                    // Handle low level network errors
-                    request.onerror = function handleError() {
-                        // Real errors are hidden from us by the browser
-                        // onerror should only fire if it's a network error
-                        reject(createError('Network Error', config, null, request));
+    var request = new XMLHttpRequest();
 
-                        // Clean up request
-                        request = null;
-                    };
+    // HTTP basic authentication
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password || '';
+      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+    }
 
-                    // Handle timeout
-                    request.ontimeout = function handleTimeout() {
-                        var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
-                        if (config.timeoutErrorMessage) {
-                            timeoutErrorMessage = config.timeoutErrorMessage;
-                        }
-                        reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
-                            request));
-
-                        // Clean up request
-                        request = null;
-                    };
-
-                    // Add xsrf header
-                    // This is only done if running in a standard browser environment.
-                    // Specifically not if we're in a web worker, or react-native.
-                    if (utils.isStandardBrowserEnv()) {
-                        var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
-
-                        // Add xsrf header
-                        var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
-                            cookies.read(config.xsrfCookieName) :
-                            undefined;
-
-                        if (xsrfValue) {
-                            requestHeaders[config.xsrfHeaderName] = xsrfValue;
-                        }
-                    }
+    var fullPath = buildFullPath(config.baseURL, config.url);
+    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
+
+    // Set the request timeout in MS
+    request.timeout = config.timeout;
+
+    // Listen for ready state
+    request.onreadystatechange = function handleLoad() {
+      if (!request || request.readyState !== 4) {
+        return;
+      }
+
+      // The request errored out and we didn't get a response, this will be
+      // handled by onerror instead
+      // With one exception: request that using file: protocol, most browsers
+      // will return status as 0 even though it's a successful request
+      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+        return;
+      }
+
+      // Prepare the response
+      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
+      var response = {
+        data: responseData,
+        status: request.status,
+        statusText: request.statusText,
+        headers: responseHeaders,
+        config: config,
+        request: request
+      };
+
+      settle(resolve, reject, response);
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle browser request cancellation (as opposed to a manual cancellation)
+    request.onabort = function handleAbort() {
+      if (!request) {
+        return;
+      }
+
+      reject(createError('Request aborted', config, 'ECONNABORTED', request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle low level network errors
+    request.onerror = function handleError() {
+      // Real errors are hidden from us by the browser
+      // onerror should only fire if it's a network error
+      reject(createError('Network Error', config, null, request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle timeout
+    request.ontimeout = function handleTimeout() {
+      var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
+      if (config.timeoutErrorMessage) {
+        timeoutErrorMessage = config.timeoutErrorMessage;
+      }
+      reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
+        request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Add xsrf header
+    // This is only done if running in a standard browser environment.
+    // Specifically not if we're in a web worker, or react-native.
+    if (utils.isStandardBrowserEnv()) {
+      var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
+
+      // Add xsrf header
+      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
+        cookies.read(config.xsrfCookieName) :
+        undefined;
+
+      if (xsrfValue) {
+        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+      }
+    }
 
-                    // Add headers to the request
-                    if ('setRequestHeader' in request) {
-                        utils.forEach(requestHeaders, function setRequestHeader(val, key) {
-                            if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
-                                // Remove Content-Type if data is undefined
-                                delete requestHeaders[key];
-                            } else {
-                                // Otherwise add header to the request
-                                request.setRequestHeader(key, val);
-                            }
-                        });
-                    }
+    // Add headers to the request
+    if ('setRequestHeader' in request) {
+      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+          // Remove Content-Type if data is undefined
+          delete requestHeaders[key];
+        } else {
+          // Otherwise add header to the request
+          request.setRequestHeader(key, val);
+        }
+      });
+    }
 
-                    // Add withCredentials to request if needed
-                    if (!utils.isUndefined(config.withCredentials)) {
-                        request.withCredentials = !!config.withCredentials;
-                    }
+    // Add withCredentials to request if needed
+    if (!utils.isUndefined(config.withCredentials)) {
+      request.withCredentials = !!config.withCredentials;
+    }
 
-                    // Add responseType to request if needed
-                    if (config.responseType) {
-                        try {
-                            request.responseType = config.responseType;
-                        } catch (e) {
-                            // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
-                            // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
-                            if (config.responseType !== 'json') {
-                                throw e;
-                            }
-                        }
-                    }
+    // Add responseType to request if needed
+    if (config.responseType) {
+      try {
+        request.responseType = config.responseType;
+      } catch (e) {
+        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
+        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
+        if (config.responseType !== 'json') {
+          throw e;
+        }
+      }
+    }
 
-                    // Handle progress if needed
-                    if (typeof config.onDownloadProgress === 'function') {
-                        request.addEventListener('progress', config.onDownloadProgress);
-                    }
+    // Handle progress if needed
+    if (typeof config.onDownloadProgress === 'function') {
+      request.addEventListener('progress', config.onDownloadProgress);
+    }
 
-                    // Not all browsers support upload events
-                    if (typeof config.onUploadProgress === 'function' && request.upload) {
-                        request.upload.addEventListener('progress', config.onUploadProgress);
-                    }
+    // Not all browsers support upload events
+    if (typeof config.onUploadProgress === 'function' && request.upload) {
+      request.upload.addEventListener('progress', config.onUploadProgress);
+    }
 
-                    if (config.cancelToken) {
-                        // Handle cancellation
-                        config.cancelToken.promise.then(function onCanceled(cancel) {
-                            if (!request) {
-                                return;
-                            }
+    if (config.cancelToken) {
+      // Handle cancellation
+      config.cancelToken.promise.then(function onCanceled(cancel) {
+        if (!request) {
+          return;
+        }
 
-                            request.abort();
-                            reject(cancel);
-                            // Clean up request
-                            request = null;
-                        });
-                    }
+        request.abort();
+        reject(cancel);
+        // Clean up request
+        request = null;
+      });
+    }
 
-                    if (requestData === undefined) {
-                        requestData = null;
-                    }
+    if (requestData === undefined) {
+      requestData = null;
+    }
 
-                    // Send the request
-                    request.send(requestData);
-                });
-            };
+    // Send the request
+    request.send(requestData);
+  });
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/axios.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/axios/lib/axios.js":
+/*!*****************************************!*\
   !*** ./node_modules/axios/lib/axios.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
-            var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
-            var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
-            var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
-            var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
+var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
+var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
+var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
+var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
+var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
 
-            /**
-             * Create an instance of Axios
-             *
-             * @param {Object} defaultConfig The default config for the instance
-             * @return {Axios} A new instance of Axios
-             */
-            function createInstance(defaultConfig) {
-                var context = new Axios(defaultConfig);
-                var instance = bind(Axios.prototype.request, context);
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ * @return {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+  var context = new Axios(defaultConfig);
+  var instance = bind(Axios.prototype.request, context);
 
-                // Copy axios.prototype to instance
-                utils.extend(instance, Axios.prototype, context);
+  // Copy axios.prototype to instance
+  utils.extend(instance, Axios.prototype, context);
 
-                // Copy context to instance
-                utils.extend(instance, context);
+  // Copy context to instance
+  utils.extend(instance, context);
 
-                return instance;
-            }
+  return instance;
+}
 
 // Create the default instance to be exported
-            var axios = createInstance(defaults);
+var axios = createInstance(defaults);
 
 // Expose Axios class to allow class inheritance
-            axios.Axios = Axios;
+axios.Axios = Axios;
 
 // Factory for creating new instances
-            axios.create = function create(instanceConfig) {
-                return createInstance(mergeConfig(axios.defaults, instanceConfig));
-            };
+axios.create = function create(instanceConfig) {
+  return createInstance(mergeConfig(axios.defaults, instanceConfig));
+};
 
 // Expose Cancel & CancelToken
-            axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
-            axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
-            axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
+axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
+axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
+axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
 
 // Expose all/spread
-            axios.all = function all(promises) {
-                return Promise.all(promises);
-            };
-            axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
+axios.all = function all(promises) {
+  return Promise.all(promises);
+};
+axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
 
-            module.exports = axios;
+module.exports = axios;
 
 // Allow use of default import syntax in TypeScript
-            module.exports.default = axios;
+module.exports.default = axios;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/cancel/Cancel.js":
-        /*!*************************************************!*\
+/***/ "./node_modules/axios/lib/cancel/Cancel.js":
+/*!*************************************************!*\
   !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
   \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            /**
-             * A `Cancel` is an object that is thrown when an operation is canceled.
-             *
-             * @class
-             * @param {string=} message The message.
-             */
-            function Cancel(message) {
-                this.message = message;
-            }
+/**
+ * A `Cancel` is an object that is thrown when an operation is canceled.
+ *
+ * @class
+ * @param {string=} message The message.
+ */
+function Cancel(message) {
+  this.message = message;
+}
 
-            Cancel.prototype.toString = function toString() {
-                return 'Cancel' + (this.message ? ': ' + this.message : '');
-            };
+Cancel.prototype.toString = function toString() {
+  return 'Cancel' + (this.message ? ': ' + this.message : '');
+};
 
-            Cancel.prototype.__CANCEL__ = true;
+Cancel.prototype.__CANCEL__ = true;
 
-            module.exports = Cancel;
+module.exports = Cancel;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
-        /*!******************************************************!*\
+/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
+/*!******************************************************!*\
   !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
   \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
+var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
 
-            /**
-             * A `CancelToken` is an object that can be used to request cancellation of an operation.
-             *
-             * @class
-             * @param {Function} executor The executor function.
-             */
-            function CancelToken(executor) {
-                if (typeof executor !== 'function') {
-                    throw new TypeError('executor must be a function.');
-                }
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @class
+ * @param {Function} executor The executor function.
+ */
+function CancelToken(executor) {
+  if (typeof executor !== 'function') {
+    throw new TypeError('executor must be a function.');
+  }
 
-                var resolvePromise;
-                this.promise = new Promise(function promiseExecutor(resolve) {
-                    resolvePromise = resolve;
-                });
+  var resolvePromise;
+  this.promise = new Promise(function promiseExecutor(resolve) {
+    resolvePromise = resolve;
+  });
 
-                var token = this;
-                executor(function cancel(message) {
-                    if (token.reason) {
-                        // Cancellation has already been requested
-                        return;
-                    }
+  var token = this;
+  executor(function cancel(message) {
+    if (token.reason) {
+      // Cancellation has already been requested
+      return;
+    }
 
-                    token.reason = new Cancel(message);
-                    resolvePromise(token.reason);
-                });
-            }
+    token.reason = new Cancel(message);
+    resolvePromise(token.reason);
+  });
+}
 
-            /**
-             * Throws a `Cancel` if cancellation has been requested.
-             */
-            CancelToken.prototype.throwIfRequested = function throwIfRequested() {
-                if (this.reason) {
-                    throw this.reason;
-                }
-            };
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+  if (this.reason) {
+    throw this.reason;
+  }
+};
 
-            /**
-             * Returns an object that contains a new `CancelToken` and a function that, when called,
-             * cancels the `CancelToken`.
-             */
-            CancelToken.source = function source() {
-                var cancel;
-                var token = new CancelToken(function executor(c) {
-                    cancel = c;
-                });
-                return {
-                    token: token,
-                    cancel: cancel
-                };
-            };
+/**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+CancelToken.source = function source() {
+  var cancel;
+  var token = new CancelToken(function executor(c) {
+    cancel = c;
+  });
+  return {
+    token: token,
+    cancel: cancel
+  };
+};
 
-            module.exports = CancelToken;
+module.exports = CancelToken;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/cancel/isCancel.js":
-        /*!***************************************************!*\
+/***/ "./node_modules/axios/lib/cancel/isCancel.js":
+/*!***************************************************!*\
   !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
   \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            module.exports = function isCancel(value) {
-                return !!(value && value.__CANCEL__);
-            };
+module.exports = function isCancel(value) {
+  return !!(value && value.__CANCEL__);
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/core/Axios.js":
-        /*!**********************************************!*\
+/***/ "./node_modules/axios/lib/core/Axios.js":
+/*!**********************************************!*\
   !*** ./node_modules/axios/lib/core/Axios.js ***!
   \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
-            var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
-            var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
-            var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
-            var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
-
-            /**
-             * Create a new instance of Axios
-             *
-             * @param {Object} instanceConfig The default config for the instance
-             */
-            function Axios(instanceConfig) {
-                this.defaults = instanceConfig;
-                this.interceptors = {
-                    request: new InterceptorManager(),
-                    response: new InterceptorManager()
-                };
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /**
-             * Dispatch a request
-             *
-             * @param {Object} config The config specific for this request (merged with this.defaults)
-             */
-            Axios.prototype.request = function request(config) {
-                /*eslint no-param-reassign:0*/
-                // Allow for axios('example/url'[, config]) a la fetch API
-                if (typeof config === 'string') {
-                    config = arguments[1] || {};
-                    config.url = arguments[0];
-                } else {
-                    config = config || {};
-                }
-
-                config = mergeConfig(this.defaults, config);
-
-                // Set config.method
-                if (config.method) {
-                    config.method = config.method.toLowerCase();
-                } else if (this.defaults.method) {
-                    config.method = this.defaults.method.toLowerCase();
-                } else {
-                    config.method = 'get';
-                }
+"use strict";
 
-                // Hook up interceptors middleware
-                var chain = [dispatchRequest, undefined];
-                var promise = Promise.resolve(config);
 
-                this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
-                    chain.unshift(interceptor.fulfilled, interceptor.rejected);
-                });
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
+var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
+var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
+var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
 
-                this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
-                    chain.push(interceptor.fulfilled, interceptor.rejected);
-                });
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ */
+function Axios(instanceConfig) {
+  this.defaults = instanceConfig;
+  this.interceptors = {
+    request: new InterceptorManager(),
+    response: new InterceptorManager()
+  };
+}
+
+/**
+ * Dispatch a request
+ *
+ * @param {Object} config The config specific for this request (merged with this.defaults)
+ */
+Axios.prototype.request = function request(config) {
+  /*eslint no-param-reassign:0*/
+  // Allow for axios('example/url'[, config]) a la fetch API
+  if (typeof config === 'string') {
+    config = arguments[1] || {};
+    config.url = arguments[0];
+  } else {
+    config = config || {};
+  }
 
-                while (chain.length) {
-                    promise = promise.then(chain.shift(), chain.shift());
-                }
+  config = mergeConfig(this.defaults, config);
 
-                return promise;
-            };
+  // Set config.method
+  if (config.method) {
+    config.method = config.method.toLowerCase();
+  } else if (this.defaults.method) {
+    config.method = this.defaults.method.toLowerCase();
+  } else {
+    config.method = 'get';
+  }
 
-            Axios.prototype.getUri = function getUri(config) {
-                config = mergeConfig(this.defaults, config);
-                return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
-            };
+  // Hook up interceptors middleware
+  var chain = [dispatchRequest, undefined];
+  var promise = Promise.resolve(config);
 
-// Provide aliases for supported request methods
-            utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
-                /*eslint func-names:0*/
-                Axios.prototype[method] = function(url, config) {
-                    return this.request(utils.merge(config || {}, {
-                        method: method,
-                        url: url
-                    }));
-                };
-            });
+  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+    chain.unshift(interceptor.fulfilled, interceptor.rejected);
+  });
 
-            utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
-                /*eslint func-names:0*/
-                Axios.prototype[method] = function(url, data, config) {
-                    return this.request(utils.merge(config || {}, {
-                        method: method,
-                        url: url,
-                        data: data
-                    }));
-                };
-            });
+  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+    chain.push(interceptor.fulfilled, interceptor.rejected);
+  });
 
-            module.exports = Axios;
+  while (chain.length) {
+    promise = promise.then(chain.shift(), chain.shift());
+  }
 
+  return promise;
+};
 
-            /***/ }),
+Axios.prototype.getUri = function getUri(config) {
+  config = mergeConfig(this.defaults, config);
+  return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
+};
 
-        /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
-        /*!***********************************************************!*\
+// Provide aliases for supported request methods
+utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, config) {
+    return this.request(utils.merge(config || {}, {
+      method: method,
+      url: url
+    }));
+  };
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, data, config) {
+    return this.request(utils.merge(config || {}, {
+      method: method,
+      url: url,
+      data: data
+    }));
+  };
+});
+
+module.exports = Axios;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
+/*!***********************************************************!*\
   !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
   \***********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
-            function InterceptorManager() {
-                this.handlers = [];
-            }
-
-            /**
-             * Add a new interceptor to the stack
-             *
-             * @param {Function} fulfilled The function to handle `then` for a `Promise`
-             * @param {Function} rejected The function to handle `reject` for a `Promise`
-             *
-             * @return {Number} An ID used to remove interceptor later
-             */
-            InterceptorManager.prototype.use = function use(fulfilled, rejected) {
-                this.handlers.push({
-                    fulfilled: fulfilled,
-                    rejected: rejected
-                });
-                return this.handlers.length - 1;
-            };
+function InterceptorManager() {
+  this.handlers = [];
+}
 
-            /**
-             * Remove an interceptor from the stack
-             *
-             * @param {Number} id The ID that was returned by `use`
-             */
-            InterceptorManager.prototype.eject = function eject(id) {
-                if (this.handlers[id]) {
-                    this.handlers[id] = null;
-                }
-            };
+/**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+InterceptorManager.prototype.use = function use(fulfilled, rejected) {
+  this.handlers.push({
+    fulfilled: fulfilled,
+    rejected: rejected
+  });
+  return this.handlers.length - 1;
+};
+
+/**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ */
+InterceptorManager.prototype.eject = function eject(id) {
+  if (this.handlers[id]) {
+    this.handlers[id] = null;
+  }
+};
 
-            /**
-             * Iterate over all the registered interceptors
-             *
-             * This method is particularly useful for skipping over any
-             * interceptors that may have become `null` calling `eject`.
-             *
-             * @param {Function} fn The function to call for each interceptor
-             */
-            InterceptorManager.prototype.forEach = function forEach(fn) {
-                utils.forEach(this.handlers, function forEachHandler(h) {
-                    if (h !== null) {
-                        fn(h);
-                    }
-                });
-            };
+/**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ */
+InterceptorManager.prototype.forEach = function forEach(fn) {
+  utils.forEach(this.handlers, function forEachHandler(h) {
+    if (h !== null) {
+      fn(h);
+    }
+  });
+};
 
-            module.exports = InterceptorManager;
+module.exports = InterceptorManager;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/core/buildFullPath.js":
-        /*!******************************************************!*\
+/***/ "./node_modules/axios/lib/core/buildFullPath.js":
+/*!******************************************************!*\
   !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
   \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
-            var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
-
-            /**
-             * Creates a new URL by combining the baseURL with the requestedURL,
-             * only when the requestedURL is not already an absolute URL.
-             * If the requestURL is absolute, this function returns the requestedURL untouched.
-             *
-             * @param {string} baseURL The base URL
-             * @param {string} requestedURL Absolute or relative URL to combine
-             * @returns {string} The combined full path
-             */
-            module.exports = function buildFullPath(baseURL, requestedURL) {
-                if (baseURL && !isAbsoluteURL(requestedURL)) {
-                    return combineURLs(baseURL, requestedURL);
-                }
-                return requestedURL;
-            };
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+"use strict";
 
-            /***/ }),
 
-        /***/ "./node_modules/axios/lib/core/createError.js":
-        /*!****************************************************!*\
-  !*** ./node_modules/axios/lib/core/createError.js ***!
-  \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
-
-            /**
-             * Create an Error with the specified message, config, error code, request and response.
-             *
-             * @param {string} message The error message.
-             * @param {Object} config The config.
-             * @param {string} [code] The error code (for example, 'ECONNABORTED').
-             * @param {Object} [request] The request.
-             * @param {Object} [response] The response.
-             * @returns {Error} The created error.
-             */
-            module.exports = function createError(message, config, code, request, response) {
-                var error = new Error(message);
-                return enhanceError(error, config, code, request, response);
-            };
+var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
+var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
 
+/**
+ * Creates a new URL by combining the baseURL with the requestedURL,
+ * only when the requestedURL is not already an absolute URL.
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} requestedURL Absolute or relative URL to combine
+ * @returns {string} The combined full path
+ */
+module.exports = function buildFullPath(baseURL, requestedURL) {
+  if (baseURL && !isAbsoluteURL(requestedURL)) {
+    return combineURLs(baseURL, requestedURL);
+  }
+  return requestedURL;
+};
 
-            /***/ }),
 
-        /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
-        /*!********************************************************!*\
-  !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
-  \********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ }),
 
-            "use strict";
+/***/ "./node_modules/axios/lib/core/createError.js":
+/*!****************************************************!*\
+  !*** ./node_modules/axios/lib/core/createError.js ***!
+  \****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+"use strict";
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
-            var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
-            var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
-            var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
 
-            /**
-             * Throws a `Cancel` if cancellation has been requested.
-             */
-            function throwIfCancellationRequested(config) {
-                if (config.cancelToken) {
-                    config.cancelToken.throwIfRequested();
-                }
-            }
+var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
 
-            /**
-             * Dispatch a request to the server using the configured adapter.
-             *
-             * @param {object} config The config that is to be used for the request
-             * @returns {Promise} The Promise to be fulfilled
-             */
-            module.exports = function dispatchRequest(config) {
-                throwIfCancellationRequested(config);
-
-                // Ensure headers exist
-                config.headers = config.headers || {};
-
-                // Transform request data
-                config.data = transformData(
-                    config.data,
-                    config.headers,
-                    config.transformRequest
-                );
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The created error.
+ */
+module.exports = function createError(message, config, code, request, response) {
+  var error = new Error(message);
+  return enhanceError(error, config, code, request, response);
+};
 
-                // Flatten headers
-                config.headers = utils.merge(
-                    config.headers.common || {},
-                    config.headers[config.method] || {},
-                    config.headers
-                );
 
-                utils.forEach(
-                    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
-                    function cleanHeaderConfig(method) {
-                        delete config.headers[method];
-                    }
-                );
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
+/*!********************************************************!*\
+  !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
+  \********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var adapter = config.adapter || defaults.adapter;
+"use strict";
 
-                return adapter(config).then(function onAdapterResolution(response) {
-                    throwIfCancellationRequested(config);
 
-                    // Transform response data
-                    response.data = transformData(
-                        response.data,
-                        response.headers,
-                        config.transformResponse
-                    );
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
+var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
+var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
 
-                    return response;
-                }, function onAdapterRejection(reason) {
-                    if (!isCancel(reason)) {
-                        throwIfCancellationRequested(config);
-
-                        // Transform response data
-                        if (reason && reason.response) {
-                            reason.response.data = transformData(
-                                reason.response.data,
-                                reason.response.headers,
-                                config.transformResponse
-                            );
-                        }
-                    }
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+function throwIfCancellationRequested(config) {
+  if (config.cancelToken) {
+    config.cancelToken.throwIfRequested();
+  }
+}
 
-                    return Promise.reject(reason);
-                });
-            };
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ * @returns {Promise} The Promise to be fulfilled
+ */
+module.exports = function dispatchRequest(config) {
+  throwIfCancellationRequested(config);
+
+  // Ensure headers exist
+  config.headers = config.headers || {};
+
+  // Transform request data
+  config.data = transformData(
+    config.data,
+    config.headers,
+    config.transformRequest
+  );
+
+  // Flatten headers
+  config.headers = utils.merge(
+    config.headers.common || {},
+    config.headers[config.method] || {},
+    config.headers
+  );
+
+  utils.forEach(
+    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+    function cleanHeaderConfig(method) {
+      delete config.headers[method];
+    }
+  );
+
+  var adapter = config.adapter || defaults.adapter;
+
+  return adapter(config).then(function onAdapterResolution(response) {
+    throwIfCancellationRequested(config);
+
+    // Transform response data
+    response.data = transformData(
+      response.data,
+      response.headers,
+      config.transformResponse
+    );
+
+    return response;
+  }, function onAdapterRejection(reason) {
+    if (!isCancel(reason)) {
+      throwIfCancellationRequested(config);
+
+      // Transform response data
+      if (reason && reason.response) {
+        reason.response.data = transformData(
+          reason.response.data,
+          reason.response.headers,
+          config.transformResponse
+        );
+      }
+    }
+
+    return Promise.reject(reason);
+  });
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/core/enhanceError.js":
-        /*!*****************************************************!*\
+/***/ "./node_modules/axios/lib/core/enhanceError.js":
+/*!*****************************************************!*\
   !*** ./node_modules/axios/lib/core/enhanceError.js ***!
   \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            /**
-             * Update an Error with the specified config, error code, and response.
-             *
-             * @param {Error} error The error to update.
-             * @param {Object} config The config.
-             * @param {string} [code] The error code (for example, 'ECONNABORTED').
-             * @param {Object} [request] The request.
-             * @param {Object} [response] The response.
-             * @returns {Error} The error.
-             */
-            module.exports = function enhanceError(error, config, code, request, response) {
-                error.config = config;
-                if (code) {
-                    error.code = code;
-                }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                error.request = request;
-                error.response = response;
-                error.isAxiosError = true;
-
-                error.toJSON = function() {
-                    return {
-                        // Standard
-                        message: this.message,
-                        name: this.name,
-                        // Microsoft
-                        description: this.description,
-                        number: this.number,
-                        // Mozilla
-                        fileName: this.fileName,
-                        lineNumber: this.lineNumber,
-                        columnNumber: this.columnNumber,
-                        stack: this.stack,
-                        // Axios
-                        config: this.config,
-                        code: this.code
-                    };
-                };
-                return error;
-            };
+"use strict";
 
 
-            /***/ }),
+/**
+ * Update an Error with the specified config, error code, and response.
+ *
+ * @param {Error} error The error to update.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The error.
+ */
+module.exports = function enhanceError(error, config, code, request, response) {
+  error.config = config;
+  if (code) {
+    error.code = code;
+  }
 
-        /***/ "./node_modules/axios/lib/core/mergeConfig.js":
-        /*!****************************************************!*\
+  error.request = request;
+  error.response = response;
+  error.isAxiosError = true;
+
+  error.toJSON = function() {
+    return {
+      // Standard
+      message: this.message,
+      name: this.name,
+      // Microsoft
+      description: this.description,
+      number: this.number,
+      // Mozilla
+      fileName: this.fileName,
+      lineNumber: this.lineNumber,
+      columnNumber: this.columnNumber,
+      stack: this.stack,
+      // Axios
+      config: this.config,
+      code: this.code
+    };
+  };
+  return error;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/mergeConfig.js":
+/*!****************************************************!*\
   !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
   \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
-
-            /**
-             * Config-specific merge-function which creates a new config-object
-             * by merging two configuration objects together.
-             *
-             * @param {Object} config1
-             * @param {Object} config2
-             * @returns {Object} New object resulting from merging config2 to config1
-             */
-            module.exports = function mergeConfig(config1, config2) {
-                // eslint-disable-next-line no-param-reassign
-                config2 = config2 || {};
-                var config = {};
-
-                var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];
-                var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];
-                var defaultToConfig2Keys = [
-                    'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
-                    'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
-                    'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
-                    'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',
-                    'httpsAgent', 'cancelToken', 'socketPath'
-                ];
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
-                    if (typeof config2[prop] !== 'undefined') {
-                        config[prop] = config2[prop];
-                    }
-                });
+"use strict";
 
-                utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {
-                    if (utils.isObject(config2[prop])) {
-                        config[prop] = utils.deepMerge(config1[prop], config2[prop]);
-                    } else if (typeof config2[prop] !== 'undefined') {
-                        config[prop] = config2[prop];
-                    } else if (utils.isObject(config1[prop])) {
-                        config[prop] = utils.deepMerge(config1[prop]);
-                    } else if (typeof config1[prop] !== 'undefined') {
-                        config[prop] = config1[prop];
-                    }
-                });
 
-                utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
-                    if (typeof config2[prop] !== 'undefined') {
-                        config[prop] = config2[prop];
-                    } else if (typeof config1[prop] !== 'undefined') {
-                        config[prop] = config1[prop];
-                    }
-                });
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
 
-                var axiosKeys = valueFromConfig2Keys
-                    .concat(mergeDeepPropertiesKeys)
-                    .concat(defaultToConfig2Keys);
-
-                var otherKeys = Object
-                    .keys(config2)
-                    .filter(function filterAxiosKeys(key) {
-                        return axiosKeys.indexOf(key) === -1;
-                    });
-
-                utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {
-                    if (typeof config2[prop] !== 'undefined') {
-                        config[prop] = config2[prop];
-                    } else if (typeof config1[prop] !== 'undefined') {
-                        config[prop] = config1[prop];
-                    }
-                });
+/**
+ * Config-specific merge-function which creates a new config-object
+ * by merging two configuration objects together.
+ *
+ * @param {Object} config1
+ * @param {Object} config2
+ * @returns {Object} New object resulting from merging config2 to config1
+ */
+module.exports = function mergeConfig(config1, config2) {
+  // eslint-disable-next-line no-param-reassign
+  config2 = config2 || {};
+  var config = {};
+
+  var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];
+  var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];
+  var defaultToConfig2Keys = [
+    'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
+    'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
+    'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
+    'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',
+    'httpsAgent', 'cancelToken', 'socketPath'
+  ];
+
+  utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
+    if (typeof config2[prop] !== 'undefined') {
+      config[prop] = config2[prop];
+    }
+  });
+
+  utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {
+    if (utils.isObject(config2[prop])) {
+      config[prop] = utils.deepMerge(config1[prop], config2[prop]);
+    } else if (typeof config2[prop] !== 'undefined') {
+      config[prop] = config2[prop];
+    } else if (utils.isObject(config1[prop])) {
+      config[prop] = utils.deepMerge(config1[prop]);
+    } else if (typeof config1[prop] !== 'undefined') {
+      config[prop] = config1[prop];
+    }
+  });
 
-                return config;
-            };
+  utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
+    if (typeof config2[prop] !== 'undefined') {
+      config[prop] = config2[prop];
+    } else if (typeof config1[prop] !== 'undefined') {
+      config[prop] = config1[prop];
+    }
+  });
+
+  var axiosKeys = valueFromConfig2Keys
+    .concat(mergeDeepPropertiesKeys)
+    .concat(defaultToConfig2Keys);
+
+  var otherKeys = Object
+    .keys(config2)
+    .filter(function filterAxiosKeys(key) {
+      return axiosKeys.indexOf(key) === -1;
+    });
+
+  utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {
+    if (typeof config2[prop] !== 'undefined') {
+      config[prop] = config2[prop];
+    } else if (typeof config1[prop] !== 'undefined') {
+      config[prop] = config1[prop];
+    }
+  });
 
+  return config;
+};
 
-            /***/ }),
 
-        /***/ "./node_modules/axios/lib/core/settle.js":
-        /*!***********************************************!*\
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/settle.js":
+/*!***********************************************!*\
   !*** ./node_modules/axios/lib/core/settle.js ***!
   \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
+var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
 
-            /**
-             * Resolve or reject a Promise based on response status.
-             *
-             * @param {Function} resolve A function that resolves the promise.
-             * @param {Function} reject A function that rejects the promise.
-             * @param {object} response The response.
-             */
-            module.exports = function settle(resolve, reject, response) {
-                var validateStatus = response.config.validateStatus;
-                if (!validateStatus || validateStatus(response.status)) {
-                    resolve(response);
-                } else {
-                    reject(createError(
-                        'Request failed with status code ' + response.status,
-                        response.config,
-                        null,
-                        response.request,
-                        response
-                    ));
-                }
-            };
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ */
+module.exports = function settle(resolve, reject, response) {
+  var validateStatus = response.config.validateStatus;
+  if (!validateStatus || validateStatus(response.status)) {
+    resolve(response);
+  } else {
+    reject(createError(
+      'Request failed with status code ' + response.status,
+      response.config,
+      null,
+      response.request,
+      response
+    ));
+  }
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/core/transformData.js":
-        /*!******************************************************!*\
+/***/ "./node_modules/axios/lib/core/transformData.js":
+/*!******************************************************!*\
   !*** ./node_modules/axios/lib/core/transformData.js ***!
   \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
-
-            /**
-             * Transform the data for a request or a response
-             *
-             * @param {Object|String} data The data to be transformed
-             * @param {Array} headers The headers for the request or response
-             * @param {Array|Function} fns A single function or Array of functions
-             * @returns {*} The resulting transformed data
-             */
-            module.exports = function transformData(data, headers, fns) {
-                /*eslint no-param-reassign:0*/
-                utils.forEach(fns, function transform(fn) {
-                    data = fn(data, headers);
-                });
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                return data;
-            };
+"use strict";
 
 
-            /***/ }),
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
-        /***/ "./node_modules/axios/lib/defaults.js":
-        /*!********************************************!*\
-  !*** ./node_modules/axios/lib/defaults.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Object|String} data The data to be transformed
+ * @param {Array} headers The headers for the request or response
+ * @param {Array|Function} fns A single function or Array of functions
+ * @returns {*} The resulting transformed data
+ */
+module.exports = function transformData(data, headers, fns) {
+  /*eslint no-param-reassign:0*/
+  utils.forEach(fns, function transform(fn) {
+    data = fn(data, headers);
+  });
 
-            "use strict";
-            /* WEBPACK VAR INJECTION */(function(process) {
+  return data;
+};
 
-                var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
-                var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
 
-                var DEFAULT_CONTENT_TYPE = {
-                    'Content-Type': 'application/x-www-form-urlencoded'
-                };
+/***/ }),
 
-                function setContentTypeIfUnset(headers, value) {
-                    if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
-                        headers['Content-Type'] = value;
-                    }
-                }
+/***/ "./node_modules/axios/lib/defaults.js":
+/*!********************************************!*\
+  !*** ./node_modules/axios/lib/defaults.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function getDefaultAdapter() {
-                    var adapter;
-                    if (typeof XMLHttpRequest !== 'undefined') {
-                        // For browsers use XHR adapter
-                        adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
-                    } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
-                        // For node use HTTP adapter
-                        adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
-                    }
-                    return adapter;
-                }
+"use strict";
+/* WEBPACK VAR INJECTION */(function(process) {
 
-                var defaults = {
-                    adapter: getDefaultAdapter(),
-
-                    transformRequest: [function transformRequest(data, headers) {
-                        normalizeHeaderName(headers, 'Accept');
-                        normalizeHeaderName(headers, 'Content-Type');
-                        if (utils.isFormData(data) ||
-                            utils.isArrayBuffer(data) ||
-                            utils.isBuffer(data) ||
-                            utils.isStream(data) ||
-                            utils.isFile(data) ||
-                            utils.isBlob(data)
-                        ) {
-                            return data;
-                        }
-                        if (utils.isArrayBufferView(data)) {
-                            return data.buffer;
-                        }
-                        if (utils.isURLSearchParams(data)) {
-                            setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
-                            return data.toString();
-                        }
-                        if (utils.isObject(data)) {
-                            setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
-                            return JSON.stringify(data);
-                        }
-                        return data;
-                    }],
-
-                    transformResponse: [function transformResponse(data) {
-                        /*eslint no-param-reassign:0*/
-                        if (typeof data === 'string') {
-                            try {
-                                data = JSON.parse(data);
-                            } catch (e) { /* Ignore */ }
-                        }
-                        return data;
-                    }],
+var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
+var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
+
+var DEFAULT_CONTENT_TYPE = {
+  'Content-Type': 'application/x-www-form-urlencoded'
+};
+
+function setContentTypeIfUnset(headers, value) {
+  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+    headers['Content-Type'] = value;
+  }
+}
+
+function getDefaultAdapter() {
+  var adapter;
+  if (typeof XMLHttpRequest !== 'undefined') {
+    // For browsers use XHR adapter
+    adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
+  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
+    // For node use HTTP adapter
+    adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
+  }
+  return adapter;
+}
+
+var defaults = {
+  adapter: getDefaultAdapter(),
+
+  transformRequest: [function transformRequest(data, headers) {
+    normalizeHeaderName(headers, 'Accept');
+    normalizeHeaderName(headers, 'Content-Type');
+    if (utils.isFormData(data) ||
+      utils.isArrayBuffer(data) ||
+      utils.isBuffer(data) ||
+      utils.isStream(data) ||
+      utils.isFile(data) ||
+      utils.isBlob(data)
+    ) {
+      return data;
+    }
+    if (utils.isArrayBufferView(data)) {
+      return data.buffer;
+    }
+    if (utils.isURLSearchParams(data)) {
+      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+      return data.toString();
+    }
+    if (utils.isObject(data)) {
+      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
+      return JSON.stringify(data);
+    }
+    return data;
+  }],
+
+  transformResponse: [function transformResponse(data) {
+    /*eslint no-param-reassign:0*/
+    if (typeof data === 'string') {
+      try {
+        data = JSON.parse(data);
+      } catch (e) { /* Ignore */ }
+    }
+    return data;
+  }],
 
-                    /**
-                     * A timeout in milliseconds to abort a request. If set to 0 (default) a
-                     * timeout is not created.
-                     */
-                    timeout: 0,
+  /**
+   * A timeout in milliseconds to abort a request. If set to 0 (default) a
+   * timeout is not created.
+   */
+  timeout: 0,
 
-                    xsrfCookieName: 'XSRF-TOKEN',
-                    xsrfHeaderName: 'X-XSRF-TOKEN',
+  xsrfCookieName: 'XSRF-TOKEN',
+  xsrfHeaderName: 'X-XSRF-TOKEN',
 
-                    maxContentLength: -1,
+  maxContentLength: -1,
 
-                    validateStatus: function validateStatus(status) {
-                        return status >= 200 && status < 300;
-                    }
-                };
+  validateStatus: function validateStatus(status) {
+    return status >= 200 && status < 300;
+  }
+};
 
-                defaults.headers = {
-                    common: {
-                        'Accept': 'application/json, text/plain, */*'
-                    }
-                };
+defaults.headers = {
+  common: {
+    'Accept': 'application/json, text/plain, */*'
+  }
+};
 
-                utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
-                    defaults.headers[method] = {};
-                });
+utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+  defaults.headers[method] = {};
+});
 
-                utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
-                    defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
-                });
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+});
 
-                module.exports = defaults;
+module.exports = defaults;
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/bind.js":
-        /*!************************************************!*\
+/***/ "./node_modules/axios/lib/helpers/bind.js":
+/*!************************************************!*\
   !*** ./node_modules/axios/lib/helpers/bind.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            module.exports = function bind(fn, thisArg) {
-                return function wrap() {
-                    var args = new Array(arguments.length);
-                    for (var i = 0; i < args.length; i++) {
-                        args[i] = arguments[i];
-                    }
-                    return fn.apply(thisArg, args);
-                };
-            };
+module.exports = function bind(fn, thisArg) {
+  return function wrap() {
+    var args = new Array(arguments.length);
+    for (var i = 0; i < args.length; i++) {
+      args[i] = arguments[i];
+    }
+    return fn.apply(thisArg, args);
+  };
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/buildURL.js":
-        /*!****************************************************!*\
+/***/ "./node_modules/axios/lib/helpers/buildURL.js":
+/*!****************************************************!*\
   !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
   \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
-            function encode(val) {
-                return encodeURIComponent(val).
-                replace(/%40/gi, '@').
-                replace(/%3A/gi, ':').
-                replace(/%24/g, '$').
-                replace(/%2C/gi, ',').
-                replace(/%20/g, '+').
-                replace(/%5B/gi, '[').
-                replace(/%5D/gi, ']');
-            }
+function encode(val) {
+  return encodeURIComponent(val).
+    replace(/%40/gi, '@').
+    replace(/%3A/gi, ':').
+    replace(/%24/g, '$').
+    replace(/%2C/gi, ',').
+    replace(/%20/g, '+').
+    replace(/%5B/gi, '[').
+    replace(/%5D/gi, ']');
+}
 
-            /**
-             * Build a URL by appending params to the end
-             *
-             * @param {string} url The base of the url (e.g., http://www.google.com)
-             * @param {object} [params] The params to be appended
-             * @returns {string} The formatted url
-             */
-            module.exports = function buildURL(url, params, paramsSerializer) {
-                /*eslint no-param-reassign:0*/
-                if (!params) {
-                    return url;
-                }
+/**
+ * Build a URL by appending params to the end
+ *
+ * @param {string} url The base of the url (e.g., http://www.google.com)
+ * @param {object} [params] The params to be appended
+ * @returns {string} The formatted url
+ */
+module.exports = function buildURL(url, params, paramsSerializer) {
+  /*eslint no-param-reassign:0*/
+  if (!params) {
+    return url;
+  }
 
-                var serializedParams;
-                if (paramsSerializer) {
-                    serializedParams = paramsSerializer(params);
-                } else if (utils.isURLSearchParams(params)) {
-                    serializedParams = params.toString();
-                } else {
-                    var parts = [];
+  var serializedParams;
+  if (paramsSerializer) {
+    serializedParams = paramsSerializer(params);
+  } else if (utils.isURLSearchParams(params)) {
+    serializedParams = params.toString();
+  } else {
+    var parts = [];
+
+    utils.forEach(params, function serialize(val, key) {
+      if (val === null || typeof val === 'undefined') {
+        return;
+      }
+
+      if (utils.isArray(val)) {
+        key = key + '[]';
+      } else {
+        val = [val];
+      }
+
+      utils.forEach(val, function parseValue(v) {
+        if (utils.isDate(v)) {
+          v = v.toISOString();
+        } else if (utils.isObject(v)) {
+          v = JSON.stringify(v);
+        }
+        parts.push(encode(key) + '=' + encode(v));
+      });
+    });
 
-                    utils.forEach(params, function serialize(val, key) {
-                        if (val === null || typeof val === 'undefined') {
-                            return;
-                        }
+    serializedParams = parts.join('&');
+  }
 
-                        if (utils.isArray(val)) {
-                            key = key + '[]';
-                        } else {
-                            val = [val];
-                        }
+  if (serializedParams) {
+    var hashmarkIndex = url.indexOf('#');
+    if (hashmarkIndex !== -1) {
+      url = url.slice(0, hashmarkIndex);
+    }
 
-                        utils.forEach(val, function parseValue(v) {
-                            if (utils.isDate(v)) {
-                                v = v.toISOString();
-                            } else if (utils.isObject(v)) {
-                                v = JSON.stringify(v);
-                            }
-                            parts.push(encode(key) + '=' + encode(v));
-                        });
-                    });
+    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+  }
 
-                    serializedParams = parts.join('&');
-                }
+  return url;
+};
 
-                if (serializedParams) {
-                    var hashmarkIndex = url.indexOf('#');
-                    if (hashmarkIndex !== -1) {
-                        url = url.slice(0, hashmarkIndex);
-                    }
 
-                    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
-                }
+/***/ }),
 
-                return url;
-            };
+/***/ "./node_modules/axios/lib/helpers/combineURLs.js":
+/*!*******************************************************!*\
+  !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
+  \*******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+"use strict";
 
-            /***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
-        /*!*******************************************************!*\
-  !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
-  \*******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            /**
-             * Creates a new URL by combining the specified URLs
-             *
-             * @param {string} baseURL The base URL
-             * @param {string} relativeURL The relative URL
-             * @returns {string} The combined URL
-             */
-            module.exports = function combineURLs(baseURL, relativeURL) {
-                return relativeURL
-                    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
-                    : baseURL;
-            };
+/**
+ * Creates a new URL by combining the specified URLs
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} relativeURL The relative URL
+ * @returns {string} The combined URL
+ */
+module.exports = function combineURLs(baseURL, relativeURL) {
+  return relativeURL
+    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+    : baseURL;
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/cookies.js":
-        /*!***************************************************!*\
+/***/ "./node_modules/axios/lib/helpers/cookies.js":
+/*!***************************************************!*\
   !*** ./node_modules/axios/lib/helpers/cookies.js ***!
   \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
-            module.exports = (
-                utils.isStandardBrowserEnv() ?
+module.exports = (
+  utils.isStandardBrowserEnv() ?
 
-                    // Standard browser envs support document.cookie
-                    (function standardBrowserEnv() {
-                        return {
-                            write: function write(name, value, expires, path, domain, secure) {
-                                var cookie = [];
-                                cookie.push(name + '=' + encodeURIComponent(value));
+  // Standard browser envs support document.cookie
+    (function standardBrowserEnv() {
+      return {
+        write: function write(name, value, expires, path, domain, secure) {
+          var cookie = [];
+          cookie.push(name + '=' + encodeURIComponent(value));
 
-                                if (utils.isNumber(expires)) {
-                                    cookie.push('expires=' + new Date(expires).toGMTString());
-                                }
+          if (utils.isNumber(expires)) {
+            cookie.push('expires=' + new Date(expires).toGMTString());
+          }
 
-                                if (utils.isString(path)) {
-                                    cookie.push('path=' + path);
-                                }
+          if (utils.isString(path)) {
+            cookie.push('path=' + path);
+          }
 
-                                if (utils.isString(domain)) {
-                                    cookie.push('domain=' + domain);
-                                }
+          if (utils.isString(domain)) {
+            cookie.push('domain=' + domain);
+          }
 
-                                if (secure === true) {
-                                    cookie.push('secure');
-                                }
+          if (secure === true) {
+            cookie.push('secure');
+          }
 
-                                document.cookie = cookie.join('; ');
-                            },
+          document.cookie = cookie.join('; ');
+        },
 
-                            read: function read(name) {
-                                var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
-                                return (match ? decodeURIComponent(match[3]) : null);
-                            },
+        read: function read(name) {
+          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
+          return (match ? decodeURIComponent(match[3]) : null);
+        },
 
-                            remove: function remove(name) {
-                                this.write(name, '', Date.now() - 86400000);
-                            }
-                        };
-                    })() :
-
-                    // Non standard browser env (web workers, react-native) lack needed support.
-                    (function nonStandardBrowserEnv() {
-                        return {
-                            write: function write() {},
-                            read: function read() { return null; },
-                            remove: function remove() {}
-                        };
-                    })()
-            );
+        remove: function remove(name) {
+          this.write(name, '', Date.now() - 86400000);
+        }
+      };
+    })() :
 
+  // Non standard browser env (web workers, react-native) lack needed support.
+    (function nonStandardBrowserEnv() {
+      return {
+        write: function write() {},
+        read: function read() { return null; },
+        remove: function remove() {}
+      };
+    })()
+);
 
-            /***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
-        /*!*********************************************************!*\
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
+/*!*********************************************************!*\
   !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
   \*********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            /**
-             * Determines whether the specified URL is absolute
-             *
-             * @param {string} url The URL to test
-             * @returns {boolean} True if the specified URL is absolute, otherwise false
-             */
-            module.exports = function isAbsoluteURL(url) {
-                // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
-                // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
-                // by any combination of letters, digits, plus, period, or hyphen.
-                return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
-            };
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+"use strict";
 
-            /***/ }),
-
-        /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
-        /*!***********************************************************!*\
-  !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
-  \***********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+/**
+ * Determines whether the specified URL is absolute
+ *
+ * @param {string} url The URL to test
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
+ */
+module.exports = function isAbsoluteURL(url) {
+  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
+  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
+  // by any combination of letters, digits, plus, period, or hyphen.
+  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
+};
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+/***/ }),
 
-            module.exports = (
-                utils.isStandardBrowserEnv() ?
+/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
+/*!***********************************************************!*\
+  !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
+  \***********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    // Standard browser envs have full support of the APIs needed to test
-                    // whether the request URL is of the same origin as current location.
-                    (function standardBrowserEnv() {
-                        var msie = /(msie|trident)/i.test(navigator.userAgent);
-                        var urlParsingNode = document.createElement('a');
-                        var originURL;
+"use strict";
 
-                        /**
-                         * Parse a URL to discover it's components
-                         *
-                         * @param {String} url The URL to be parsed
-                         * @returns {Object}
-                         */
-                        function resolveURL(url) {
-                            var href = url;
 
-                            if (msie) {
-                                // IE needs attribute set twice to normalize properties
-                                urlParsingNode.setAttribute('href', href);
-                                href = urlParsingNode.href;
-                            }
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
-                            urlParsingNode.setAttribute('href', href);
-
-                            // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
-                            return {
-                                href: urlParsingNode.href,
-                                protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
-                                host: urlParsingNode.host,
-                                search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
-                                hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
-                                hostname: urlParsingNode.hostname,
-                                port: urlParsingNode.port,
-                                pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
-                                    urlParsingNode.pathname :
-                                    '/' + urlParsingNode.pathname
-                            };
-                        }
+module.exports = (
+  utils.isStandardBrowserEnv() ?
 
-                        originURL = resolveURL(window.location.href);
-
-                        /**
-                         * Determine if a URL shares the same origin as the current location
-                         *
-                         * @param {String} requestURL The URL to test
-                         * @returns {boolean} True if URL shares the same origin, otherwise false
-                         */
-                        return function isURLSameOrigin(requestURL) {
-                            var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
-                            return (parsed.protocol === originURL.protocol &&
-                                parsed.host === originURL.host);
-                        };
-                    })() :
-
-                    // Non standard browser envs (web workers, react-native) lack needed support.
-                    (function nonStandardBrowserEnv() {
-                        return function isURLSameOrigin() {
-                            return true;
-                        };
-                    })()
-            );
+  // Standard browser envs have full support of the APIs needed to test
+  // whether the request URL is of the same origin as current location.
+    (function standardBrowserEnv() {
+      var msie = /(msie|trident)/i.test(navigator.userAgent);
+      var urlParsingNode = document.createElement('a');
+      var originURL;
 
+      /**
+    * Parse a URL to discover it's components
+    *
+    * @param {String} url The URL to be parsed
+    * @returns {Object}
+    */
+      function resolveURL(url) {
+        var href = url;
 
-            /***/ }),
+        if (msie) {
+        // IE needs attribute set twice to normalize properties
+          urlParsingNode.setAttribute('href', href);
+          href = urlParsingNode.href;
+        }
 
-        /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
-        /*!***************************************************************!*\
+        urlParsingNode.setAttribute('href', href);
+
+        // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
+        return {
+          href: urlParsingNode.href,
+          protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
+          host: urlParsingNode.host,
+          search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
+          hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
+          hostname: urlParsingNode.hostname,
+          port: urlParsingNode.port,
+          pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
+            urlParsingNode.pathname :
+            '/' + urlParsingNode.pathname
+        };
+      }
+
+      originURL = resolveURL(window.location.href);
+
+      /**
+    * Determine if a URL shares the same origin as the current location
+    *
+    * @param {String} requestURL The URL to test
+    * @returns {boolean} True if URL shares the same origin, otherwise false
+    */
+      return function isURLSameOrigin(requestURL) {
+        var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
+        return (parsed.protocol === originURL.protocol &&
+            parsed.host === originURL.host);
+      };
+    })() :
+
+  // Non standard browser envs (web workers, react-native) lack needed support.
+    (function nonStandardBrowserEnv() {
+      return function isURLSameOrigin() {
+        return true;
+      };
+    })()
+);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
+/*!***************************************************************!*\
   !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
   \***************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
 
-            module.exports = function normalizeHeaderName(headers, normalizedName) {
-                utils.forEach(headers, function processHeader(value, name) {
-                    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
-                        headers[normalizedName] = value;
-                        delete headers[name];
-                    }
-                });
-            };
+module.exports = function normalizeHeaderName(headers, normalizedName) {
+  utils.forEach(headers, function processHeader(value, name) {
+    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
+      headers[normalizedName] = value;
+      delete headers[name];
+    }
+  });
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
-        /*!********************************************************!*\
+/***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
+/*!********************************************************!*\
   !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
   \********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+"use strict";
 
 
-            var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
 // Headers whose duplicates are ignored by node
 // c.f. https://nodejs.org/api/http.html#http_message_headers
-            var ignoreDuplicateOf = [
-                'age', 'authorization', 'content-length', 'content-type', 'etag',
-                'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
-                'last-modified', 'location', 'max-forwards', 'proxy-authorization',
-                'referer', 'retry-after', 'user-agent'
-            ];
-
-            /**
-             * Parse headers into an object
-             *
-             * ```
-             * Date: Wed, 27 Aug 2014 08:58:49 GMT
-             * Content-Type: application/json
-             * Connection: keep-alive
-             * Transfer-Encoding: chunked
-             * ```
-             *
-             * @param {String} headers Headers needing to be parsed
-             * @returns {Object} Headers parsed into an object
-             */
-            module.exports = function parseHeaders(headers) {
-                var parsed = {};
-                var key;
-                var val;
-                var i;
-
-                if (!headers) { return parsed; }
-
-                utils.forEach(headers.split('\n'), function parser(line) {
-                    i = line.indexOf(':');
-                    key = utils.trim(line.substr(0, i)).toLowerCase();
-                    val = utils.trim(line.substr(i + 1));
-
-                    if (key) {
-                        if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
-                            return;
-                        }
-                        if (key === 'set-cookie') {
-                            parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
-                        } else {
-                            parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
-                        }
-                    }
-                });
+var ignoreDuplicateOf = [
+  'age', 'authorization', 'content-length', 'content-type', 'etag',
+  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
+  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
+  'referer', 'retry-after', 'user-agent'
+];
+
+/**
+ * Parse headers into an object
+ *
+ * ```
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
+ * Content-Type: application/json
+ * Connection: keep-alive
+ * Transfer-Encoding: chunked
+ * ```
+ *
+ * @param {String} headers Headers needing to be parsed
+ * @returns {Object} Headers parsed into an object
+ */
+module.exports = function parseHeaders(headers) {
+  var parsed = {};
+  var key;
+  var val;
+  var i;
+
+  if (!headers) { return parsed; }
+
+  utils.forEach(headers.split('\n'), function parser(line) {
+    i = line.indexOf(':');
+    key = utils.trim(line.substr(0, i)).toLowerCase();
+    val = utils.trim(line.substr(i + 1));
+
+    if (key) {
+      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
+        return;
+      }
+      if (key === 'set-cookie') {
+        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
+      } else {
+        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
+      }
+    }
+  });
 
-                return parsed;
-            };
+  return parsed;
+};
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/axios/lib/helpers/spread.js":
-        /*!**************************************************!*\
+/***/ "./node_modules/axios/lib/helpers/spread.js":
+/*!**************************************************!*\
   !*** ./node_modules/axios/lib/helpers/spread.js ***!
   \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            /**
-             * Syntactic sugar for invoking a function and expanding an array for arguments.
-             *
-             * Common use case would be to use `Function.prototype.apply`.
-             *
-             *  ```js
-             *  function f(x, y, z) {}
-             *  var args = [1, 2, 3];
-             *  f.apply(null, args);
-             *  ```
-             *
-             * With `spread` this example can be re-written.
-             *
-             *  ```js
-             *  spread(function(x, y, z) {})([1, 2, 3]);
-             *  ```
-             *
-             * @param {Function} callback
-             * @returns {Function}
-             */
-            module.exports = function spread(callback) {
-                return function wrap(arr) {
-                    return callback.apply(null, arr);
-                };
-            };
-
-
-            /***/ }),
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/axios/lib/utils.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/axios/lib/utils.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+"use strict";
 
-            "use strict";
 
+/**
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
+ *
+ * Common use case would be to use `Function.prototype.apply`.
+ *
+ *  ```js
+ *  function f(x, y, z) {}
+ *  var args = [1, 2, 3];
+ *  f.apply(null, args);
+ *  ```
+ *
+ * With `spread` this example can be re-written.
+ *
+ *  ```js
+ *  spread(function(x, y, z) {})([1, 2, 3]);
+ *  ```
+ *
+ * @param {Function} callback
+ * @returns {Function}
+ */
+module.exports = function spread(callback) {
+  return function wrap(arr) {
+    return callback.apply(null, arr);
+  };
+};
 
-            var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
 
-            /*global toString:true*/
+/***/ }),
 
-// utils is a library of generic helper functions non-specific to axios
+/***/ "./node_modules/axios/lib/utils.js":
+/*!*****************************************!*\
+  !*** ./node_modules/axios/lib/utils.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            var toString = Object.prototype.toString;
+"use strict";
 
-            /**
-             * Determine if a value is an Array
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is an Array, otherwise false
-             */
-            function isArray(val) {
-                return toString.call(val) === '[object Array]';
-            }
 
-            /**
-             * Determine if a value is undefined
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if the value is undefined, otherwise false
-             */
-            function isUndefined(val) {
-                return typeof val === 'undefined';
-            }
+var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
 
-            /**
-             * Determine if a value is a Buffer
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Buffer, otherwise false
-             */
-            function isBuffer(val) {
-                return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
-                    && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
-            }
+/*global toString:true*/
 
-            /**
-             * Determine if a value is an ArrayBuffer
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is an ArrayBuffer, otherwise false
-             */
-            function isArrayBuffer(val) {
-                return toString.call(val) === '[object ArrayBuffer]';
-            }
+// utils is a library of generic helper functions non-specific to axios
 
-            /**
-             * Determine if a value is a FormData
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is an FormData, otherwise false
-             */
-            function isFormData(val) {
-                return (typeof FormData !== 'undefined') && (val instanceof FormData);
-            }
+var toString = Object.prototype.toString;
 
-            /**
-             * Determine if a value is a view on an ArrayBuffer
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
-             */
-            function isArrayBufferView(val) {
-                var result;
-                if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
-                    result = ArrayBuffer.isView(val);
-                } else {
-                    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
-                }
-                return result;
-            }
+/**
+ * Determine if a value is an Array
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an Array, otherwise false
+ */
+function isArray(val) {
+  return toString.call(val) === '[object Array]';
+}
 
-            /**
-             * Determine if a value is a String
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a String, otherwise false
-             */
-            function isString(val) {
-                return typeof val === 'string';
-            }
+/**
+ * Determine if a value is undefined
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if the value is undefined, otherwise false
+ */
+function isUndefined(val) {
+  return typeof val === 'undefined';
+}
 
-            /**
-             * Determine if a value is a Number
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Number, otherwise false
-             */
-            function isNumber(val) {
-                return typeof val === 'number';
-            }
+/**
+ * Determine if a value is a Buffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Buffer, otherwise false
+ */
+function isBuffer(val) {
+  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
+    && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
+}
 
-            /**
-             * Determine if a value is an Object
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is an Object, otherwise false
-             */
-            function isObject(val) {
-                return val !== null && typeof val === 'object';
-            }
+/**
+ * Determine if a value is an ArrayBuffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
+ */
+function isArrayBuffer(val) {
+  return toString.call(val) === '[object ArrayBuffer]';
+}
 
-            /**
-             * Determine if a value is a Date
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Date, otherwise false
-             */
-            function isDate(val) {
-                return toString.call(val) === '[object Date]';
-            }
+/**
+ * Determine if a value is a FormData
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an FormData, otherwise false
+ */
+function isFormData(val) {
+  return (typeof FormData !== 'undefined') && (val instanceof FormData);
+}
 
-            /**
-             * Determine if a value is a File
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a File, otherwise false
-             */
-            function isFile(val) {
-                return toString.call(val) === '[object File]';
-            }
+/**
+ * Determine if a value is a view on an ArrayBuffer
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
+ */
+function isArrayBufferView(val) {
+  var result;
+  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
+    result = ArrayBuffer.isView(val);
+  } else {
+    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
+  }
+  return result;
+}
 
-            /**
-             * Determine if a value is a Blob
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Blob, otherwise false
-             */
-            function isBlob(val) {
-                return toString.call(val) === '[object Blob]';
-            }
+/**
+ * Determine if a value is a String
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a String, otherwise false
+ */
+function isString(val) {
+  return typeof val === 'string';
+}
 
-            /**
-             * Determine if a value is a Function
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Function, otherwise false
-             */
-            function isFunction(val) {
-                return toString.call(val) === '[object Function]';
-            }
+/**
+ * Determine if a value is a Number
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Number, otherwise false
+ */
+function isNumber(val) {
+  return typeof val === 'number';
+}
 
-            /**
-             * Determine if a value is a Stream
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a Stream, otherwise false
-             */
-            function isStream(val) {
-                return isObject(val) && isFunction(val.pipe);
-            }
+/**
+ * Determine if a value is an Object
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is an Object, otherwise false
+ */
+function isObject(val) {
+  return val !== null && typeof val === 'object';
+}
 
-            /**
-             * Determine if a value is a URLSearchParams object
-             *
-             * @param {Object} val The value to test
-             * @returns {boolean} True if value is a URLSearchParams object, otherwise false
-             */
-            function isURLSearchParams(val) {
-                return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
-            }
+/**
+ * Determine if a value is a Date
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Date, otherwise false
+ */
+function isDate(val) {
+  return toString.call(val) === '[object Date]';
+}
 
-            /**
-             * Trim excess whitespace off the beginning and end of a string
-             *
-             * @param {String} str The String to trim
-             * @returns {String} The String freed of excess whitespace
-             */
-            function trim(str) {
-                return str.replace(/^\s*/, '').replace(/\s*$/, '');
-            }
+/**
+ * Determine if a value is a File
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a File, otherwise false
+ */
+function isFile(val) {
+  return toString.call(val) === '[object File]';
+}
 
-            /**
-             * Determine if we're running in a standard browser environment
-             *
-             * This allows axios to run in a web worker, and react-native.
-             * Both environments support XMLHttpRequest, but not fully standard globals.
-             *
-             * web workers:
-             *  typeof window -> undefined
-             *  typeof document -> undefined
-             *
-             * react-native:
-             *  navigator.product -> 'ReactNative'
-             * nativescript
-             *  navigator.product -> 'NativeScript' or 'NS'
-             */
-            function isStandardBrowserEnv() {
-                if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
-                    navigator.product === 'NativeScript' ||
-                    navigator.product === 'NS')) {
-                    return false;
-                }
-                return (
-                    typeof window !== 'undefined' &&
-                    typeof document !== 'undefined'
-                );
-            }
+/**
+ * Determine if a value is a Blob
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Blob, otherwise false
+ */
+function isBlob(val) {
+  return toString.call(val) === '[object Blob]';
+}
 
-            /**
-             * Iterate over an Array or an Object invoking a function for each item.
-             *
-             * If `obj` is an Array callback will be called passing
-             * the value, index, and complete array for each item.
-             *
-             * If 'obj' is an Object callback will be called passing
-             * the value, key, and complete object for each property.
-             *
-             * @param {Object|Array} obj The object to iterate
-             * @param {Function} fn The callback to invoke for each item
-             */
-            function forEach(obj, fn) {
-                // Don't bother if no value provided
-                if (obj === null || typeof obj === 'undefined') {
-                    return;
-                }
+/**
+ * Determine if a value is a Function
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Function, otherwise false
+ */
+function isFunction(val) {
+  return toString.call(val) === '[object Function]';
+}
 
-                // Force an array if not already something iterable
-                if (typeof obj !== 'object') {
-                    /*eslint no-param-reassign:0*/
-                    obj = [obj];
-                }
+/**
+ * Determine if a value is a Stream
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a Stream, otherwise false
+ */
+function isStream(val) {
+  return isObject(val) && isFunction(val.pipe);
+}
 
-                if (isArray(obj)) {
-                    // Iterate over array values
-                    for (var i = 0, l = obj.length; i < l; i++) {
-                        fn.call(null, obj[i], i, obj);
-                    }
-                } else {
-                    // Iterate over object keys
-                    for (var key in obj) {
-                        if (Object.prototype.hasOwnProperty.call(obj, key)) {
-                            fn.call(null, obj[key], key, obj);
-                        }
-                    }
-                }
-            }
+/**
+ * Determine if a value is a URLSearchParams object
+ *
+ * @param {Object} val The value to test
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
+ */
+function isURLSearchParams(val) {
+  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
+}
 
-            /**
-             * Accepts varargs expecting each argument to be an object, then
-             * immutably merges the properties of each object and returns result.
-             *
-             * When multiple objects contain the same key the later object in
-             * the arguments list will take precedence.
-             *
-             * Example:
-             *
-             * ```js
-             * var result = merge({foo: 123}, {foo: 456});
-             * console.log(result.foo); // outputs 456
-             * ```
-             *
-             * @param {Object} obj1 Object to merge
-             * @returns {Object} Result of all merge properties
-             */
-            function merge(/* obj1, obj2, obj3, ... */) {
-                var result = {};
-                function assignValue(val, key) {
-                    if (typeof result[key] === 'object' && typeof val === 'object') {
-                        result[key] = merge(result[key], val);
-                    } else {
-                        result[key] = val;
-                    }
-                }
+/**
+ * Trim excess whitespace off the beginning and end of a string
+ *
+ * @param {String} str The String to trim
+ * @returns {String} The String freed of excess whitespace
+ */
+function trim(str) {
+  return str.replace(/^\s*/, '').replace(/\s*$/, '');
+}
 
-                for (var i = 0, l = arguments.length; i < l; i++) {
-                    forEach(arguments[i], assignValue);
-                }
-                return result;
-            }
+/**
+ * Determine if we're running in a standard browser environment
+ *
+ * This allows axios to run in a web worker, and react-native.
+ * Both environments support XMLHttpRequest, but not fully standard globals.
+ *
+ * web workers:
+ *  typeof window -> undefined
+ *  typeof document -> undefined
+ *
+ * react-native:
+ *  navigator.product -> 'ReactNative'
+ * nativescript
+ *  navigator.product -> 'NativeScript' or 'NS'
+ */
+function isStandardBrowserEnv() {
+  if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
+                                           navigator.product === 'NativeScript' ||
+                                           navigator.product === 'NS')) {
+    return false;
+  }
+  return (
+    typeof window !== 'undefined' &&
+    typeof document !== 'undefined'
+  );
+}
+
+/**
+ * Iterate over an Array or an Object invoking a function for each item.
+ *
+ * If `obj` is an Array callback will be called passing
+ * the value, index, and complete array for each item.
+ *
+ * If 'obj' is an Object callback will be called passing
+ * the value, key, and complete object for each property.
+ *
+ * @param {Object|Array} obj The object to iterate
+ * @param {Function} fn The callback to invoke for each item
+ */
+function forEach(obj, fn) {
+  // Don't bother if no value provided
+  if (obj === null || typeof obj === 'undefined') {
+    return;
+  }
 
-            /**
-             * Function equal to merge with the difference being that no reference
-             * to original objects is kept.
-             *
-             * @see merge
-             * @param {Object} obj1 Object to merge
-             * @returns {Object} Result of all merge properties
-             */
-            function deepMerge(/* obj1, obj2, obj3, ... */) {
-                var result = {};
-                function assignValue(val, key) {
-                    if (typeof result[key] === 'object' && typeof val === 'object') {
-                        result[key] = deepMerge(result[key], val);
-                    } else if (typeof val === 'object') {
-                        result[key] = deepMerge({}, val);
-                    } else {
-                        result[key] = val;
-                    }
-                }
+  // Force an array if not already something iterable
+  if (typeof obj !== 'object') {
+    /*eslint no-param-reassign:0*/
+    obj = [obj];
+  }
 
-                for (var i = 0, l = arguments.length; i < l; i++) {
-                    forEach(arguments[i], assignValue);
-                }
-                return result;
-            }
+  if (isArray(obj)) {
+    // Iterate over array values
+    for (var i = 0, l = obj.length; i < l; i++) {
+      fn.call(null, obj[i], i, obj);
+    }
+  } else {
+    // Iterate over object keys
+    for (var key in obj) {
+      if (Object.prototype.hasOwnProperty.call(obj, key)) {
+        fn.call(null, obj[key], key, obj);
+      }
+    }
+  }
+}
 
-            /**
-             * Extends object a by mutably adding to it the properties of object b.
-             *
-             * @param {Object} a The object to be extended
-             * @param {Object} b The object to copy properties from
-             * @param {Object} thisArg The object to bind function to
-             * @return {Object} The resulting value of object a
-             */
-            function extend(a, b, thisArg) {
-                forEach(b, function assignValue(val, key) {
-                    if (thisArg && typeof val === 'function') {
-                        a[key] = bind(val, thisArg);
-                    } else {
-                        a[key] = val;
-                    }
-                });
-                return a;
-            }
+/**
+ * Accepts varargs expecting each argument to be an object, then
+ * immutably merges the properties of each object and returns result.
+ *
+ * When multiple objects contain the same key the later object in
+ * the arguments list will take precedence.
+ *
+ * Example:
+ *
+ * ```js
+ * var result = merge({foo: 123}, {foo: 456});
+ * console.log(result.foo); // outputs 456
+ * ```
+ *
+ * @param {Object} obj1 Object to merge
+ * @returns {Object} Result of all merge properties
+ */
+function merge(/* obj1, obj2, obj3, ... */) {
+  var result = {};
+  function assignValue(val, key) {
+    if (typeof result[key] === 'object' && typeof val === 'object') {
+      result[key] = merge(result[key], val);
+    } else {
+      result[key] = val;
+    }
+  }
 
-            module.exports = {
-                isArray: isArray,
-                isArrayBuffer: isArrayBuffer,
-                isBuffer: isBuffer,
-                isFormData: isFormData,
-                isArrayBufferView: isArrayBufferView,
-                isString: isString,
-                isNumber: isNumber,
-                isObject: isObject,
-                isUndefined: isUndefined,
-                isDate: isDate,
-                isFile: isFile,
-                isBlob: isBlob,
-                isFunction: isFunction,
-                isStream: isStream,
-                isURLSearchParams: isURLSearchParams,
-                isStandardBrowserEnv: isStandardBrowserEnv,
-                forEach: forEach,
-                merge: merge,
-                deepMerge: deepMerge,
-                extend: extend,
-                trim: trim
-            };
+  for (var i = 0, l = arguments.length; i < l; i++) {
+    forEach(arguments[i], assignValue);
+  }
+  return result;
+}
 
+/**
+ * Function equal to merge with the difference being that no reference
+ * to original objects is kept.
+ *
+ * @see merge
+ * @param {Object} obj1 Object to merge
+ * @returns {Object} Result of all merge properties
+ */
+function deepMerge(/* obj1, obj2, obj3, ... */) {
+  var result = {};
+  function assignValue(val, key) {
+    if (typeof result[key] === 'object' && typeof val === 'object') {
+      result[key] = deepMerge(result[key], val);
+    } else if (typeof val === 'object') {
+      result[key] = deepMerge({}, val);
+    } else {
+      result[key] = val;
+    }
+  }
 
-            /***/ }),
+  for (var i = 0, l = arguments.length; i < l; i++) {
+    forEach(arguments[i], assignValue);
+  }
+  return result;
+}
 
-        /***/ "./node_modules/bootstrap/dist/js/bootstrap.js":
-        /*!*****************************************************!*\
+/**
+ * Extends object a by mutably adding to it the properties of object b.
+ *
+ * @param {Object} a The object to be extended
+ * @param {Object} b The object to copy properties from
+ * @param {Object} thisArg The object to bind function to
+ * @return {Object} The resulting value of object a
+ */
+function extend(a, b, thisArg) {
+  forEach(b, function assignValue(val, key) {
+    if (thisArg && typeof val === 'function') {
+      a[key] = bind(val, thisArg);
+    } else {
+      a[key] = val;
+    }
+  });
+  return a;
+}
+
+module.exports = {
+  isArray: isArray,
+  isArrayBuffer: isArrayBuffer,
+  isBuffer: isBuffer,
+  isFormData: isFormData,
+  isArrayBufferView: isArrayBufferView,
+  isString: isString,
+  isNumber: isNumber,
+  isObject: isObject,
+  isUndefined: isUndefined,
+  isDate: isDate,
+  isFile: isFile,
+  isBlob: isBlob,
+  isFunction: isFunction,
+  isStream: isStream,
+  isURLSearchParams: isURLSearchParams,
+  isStandardBrowserEnv: isStandardBrowserEnv,
+  forEach: forEach,
+  merge: merge,
+  deepMerge: deepMerge,
+  extend: extend,
+  trim: trim
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/bootstrap/dist/js/bootstrap.js":
+/*!*****************************************************!*\
   !*** ./node_modules/bootstrap/dist/js/bootstrap.js ***!
   \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /*!
+/*!
   * Bootstrap v4.5.2 (https://getbootstrap.com/)
   * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
   */
-            (function (global, factory) {
-                true ? factory(exports, __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")) :
-                    undefined;
-            }(this, (function (exports, $, Popper) { 'use strict';
-
-                $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
-                Popper = Popper && Object.prototype.hasOwnProperty.call(Popper, 'default') ? Popper['default'] : Popper;
-
-                function _defineProperties(target, props) {
-                    for (var i = 0; i < props.length; i++) {
-                        var descriptor = props[i];
-                        descriptor.enumerable = descriptor.enumerable || false;
-                        descriptor.configurable = true;
-                        if ("value" in descriptor) descriptor.writable = true;
-                        Object.defineProperty(target, descriptor.key, descriptor);
-                    }
-                }
+(function (global, factory) {
+   true ? factory(exports, __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"), __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")) :
+  undefined;
+}(this, (function (exports, $, Popper) { 'use strict';
+
+  $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
+  Popper = Popper && Object.prototype.hasOwnProperty.call(Popper, 'default') ? Popper['default'] : Popper;
+
+  function _defineProperties(target, props) {
+    for (var i = 0; i < props.length; i++) {
+      var descriptor = props[i];
+      descriptor.enumerable = descriptor.enumerable || false;
+      descriptor.configurable = true;
+      if ("value" in descriptor) descriptor.writable = true;
+      Object.defineProperty(target, descriptor.key, descriptor);
+    }
+  }
 
-                function _createClass(Constructor, protoProps, staticProps) {
-                    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
-                    if (staticProps) _defineProperties(Constructor, staticProps);
-                    return Constructor;
-                }
+  function _createClass(Constructor, protoProps, staticProps) {
+    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+    if (staticProps) _defineProperties(Constructor, staticProps);
+    return Constructor;
+  }
 
-                function _extends() {
-                    _extends = Object.assign || function (target) {
-                        for (var i = 1; i < arguments.length; i++) {
-                            var source = arguments[i];
+  function _extends() {
+    _extends = Object.assign || function (target) {
+      for (var i = 1; i < arguments.length; i++) {
+        var source = arguments[i];
 
-                            for (var key in source) {
-                                if (Object.prototype.hasOwnProperty.call(source, key)) {
-                                    target[key] = source[key];
-                                }
-                            }
-                        }
+        for (var key in source) {
+          if (Object.prototype.hasOwnProperty.call(source, key)) {
+            target[key] = source[key];
+          }
+        }
+      }
 
-                        return target;
-                    };
+      return target;
+    };
 
-                    return _extends.apply(this, arguments);
-                }
+    return _extends.apply(this, arguments);
+  }
 
-                function _inheritsLoose(subClass, superClass) {
-                    subClass.prototype = Object.create(superClass.prototype);
-                    subClass.prototype.constructor = subClass;
-                    subClass.__proto__ = superClass;
-                }
+  function _inheritsLoose(subClass, superClass) {
+    subClass.prototype = Object.create(superClass.prototype);
+    subClass.prototype.constructor = subClass;
+    subClass.__proto__ = superClass;
+  }
 
-                /**
-                 * --------------------------------------------------------------------------
-                 * Bootstrap (v4.5.2): util.js
-                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
-                 * --------------------------------------------------------------------------
-                 */
-                /**
-                 * ------------------------------------------------------------------------
-                 * Private TransitionEnd Helpers
-                 * ------------------------------------------------------------------------
-                 */
-
-                var TRANSITION_END = 'transitionend';
-                var MAX_UID = 1000000;
-                var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
-
-                function toType(obj) {
-                    if (obj === null || typeof obj === 'undefined') {
-                        return "" + obj;
-                    }
+  /**
+   * --------------------------------------------------------------------------
+   * Bootstrap (v4.5.2): util.js
+   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+   * --------------------------------------------------------------------------
+   */
+  /**
+   * ------------------------------------------------------------------------
+   * Private TransitionEnd Helpers
+   * ------------------------------------------------------------------------
+   */
 
-                    return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
-                }
+  var TRANSITION_END = 'transitionend';
+  var MAX_UID = 1000000;
+  var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
 
-                function getSpecialTransitionEndEvent() {
-                    return {
-                        bindType: TRANSITION_END,
-                        delegateType: TRANSITION_END,
-                        handle: function handle(event) {
-                            if ($(event.target).is(this)) {
-                                return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
-                            }
+  function toType(obj) {
+    if (obj === null || typeof obj === 'undefined') {
+      return "" + obj;
+    }
 
-                            return undefined;
-                        }
-                    };
-                }
+    return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
+  }
 
-                function transitionEndEmulator(duration) {
-                    var _this = this;
+  function getSpecialTransitionEndEvent() {
+    return {
+      bindType: TRANSITION_END,
+      delegateType: TRANSITION_END,
+      handle: function handle(event) {
+        if ($(event.target).is(this)) {
+          return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
+        }
 
-                    var called = false;
-                    $(this).one(Util.TRANSITION_END, function () {
-                        called = true;
-                    });
-                    setTimeout(function () {
-                        if (!called) {
-                            Util.triggerTransitionEnd(_this);
-                        }
-                    }, duration);
-                    return this;
-                }
+        return undefined;
+      }
+    };
+  }
 
-                function setTransitionEndSupport() {
-                    $.fn.emulateTransitionEnd = transitionEndEmulator;
-                    $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
-                }
-                /**
-                 * --------------------------------------------------------------------------
-                 * Public Util Api
-                 * --------------------------------------------------------------------------
-                 */
-
-
-                var Util = {
-                    TRANSITION_END: 'bsTransitionEnd',
-                    getUID: function getUID(prefix) {
-                        do {
-                            // eslint-disable-next-line no-bitwise
-                            prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
-                        } while (document.getElementById(prefix));
-
-                        return prefix;
-                    },
-                    getSelectorFromElement: function getSelectorFromElement(element) {
-                        var selector = element.getAttribute('data-target');
-
-                        if (!selector || selector === '#') {
-                            var hrefAttr = element.getAttribute('href');
-                            selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
-                        }
+  function transitionEndEmulator(duration) {
+    var _this = this;
+
+    var called = false;
+    $(this).one(Util.TRANSITION_END, function () {
+      called = true;
+    });
+    setTimeout(function () {
+      if (!called) {
+        Util.triggerTransitionEnd(_this);
+      }
+    }, duration);
+    return this;
+  }
 
-                        try {
-                            return document.querySelector(selector) ? selector : null;
-                        } catch (err) {
-                            return null;
-                        }
-                    },
-                    getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
-                        if (!element) {
-                            return 0;
-                        } // Get transition-duration of the element
-
-
-                        var transitionDuration = $(element).css('transition-duration');
-                        var transitionDelay = $(element).css('transition-delay');
-                        var floatTransitionDuration = parseFloat(transitionDuration);
-                        var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
-
-                        if (!floatTransitionDuration && !floatTransitionDelay) {
-                            return 0;
-                        } // If multiple durations are defined, take the first
-
-
-                        transitionDuration = transitionDuration.split(',')[0];
-                        transitionDelay = transitionDelay.split(',')[0];
-                        return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
-                    },
-                    reflow: function reflow(element) {
-                        return element.offsetHeight;
-                    },
-                    triggerTransitionEnd: function triggerTransitionEnd(element) {
-                        $(element).trigger(TRANSITION_END);
-                    },
-                    // TODO: Remove in v5
-                    supportsTransitionEnd: function supportsTransitionEnd() {
-                        return Boolean(TRANSITION_END);
-                    },
-                    isElement: function isElement(obj) {
-                        return (obj[0] || obj).nodeType;
-                    },
-                    typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
-                        for (var property in configTypes) {
-                            if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
-                                var expectedTypes = configTypes[property];
-                                var value = config[property];
-                                var valueType = value && Util.isElement(value) ? 'element' : toType(value);
-
-                                if (!new RegExp(expectedTypes).test(valueType)) {
-                                    throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
-                                }
-                            }
-                        }
-                    },
-                    findShadowRoot: function findShadowRoot(element) {
-                        if (!document.documentElement.attachShadow) {
-                            return null;
-                        } // Can find the shadow root otherwise it'll return the document
+  function setTransitionEndSupport() {
+    $.fn.emulateTransitionEnd = transitionEndEmulator;
+    $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
+  }
+  /**
+   * --------------------------------------------------------------------------
+   * Public Util Api
+   * --------------------------------------------------------------------------
+   */
 
 
-                        if (typeof element.getRootNode === 'function') {
-                            var root = element.getRootNode();
-                            return root instanceof ShadowRoot ? root : null;
-                        }
+  var Util = {
+    TRANSITION_END: 'bsTransitionEnd',
+    getUID: function getUID(prefix) {
+      do {
+        // eslint-disable-next-line no-bitwise
+        prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
+      } while (document.getElementById(prefix));
+
+      return prefix;
+    },
+    getSelectorFromElement: function getSelectorFromElement(element) {
+      var selector = element.getAttribute('data-target');
+
+      if (!selector || selector === '#') {
+        var hrefAttr = element.getAttribute('href');
+        selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
+      }
+
+      try {
+        return document.querySelector(selector) ? selector : null;
+      } catch (err) {
+        return null;
+      }
+    },
+    getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
+      if (!element) {
+        return 0;
+      } // Get transition-duration of the element
+
+
+      var transitionDuration = $(element).css('transition-duration');
+      var transitionDelay = $(element).css('transition-delay');
+      var floatTransitionDuration = parseFloat(transitionDuration);
+      var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
+
+      if (!floatTransitionDuration && !floatTransitionDelay) {
+        return 0;
+      } // If multiple durations are defined, take the first
+
+
+      transitionDuration = transitionDuration.split(',')[0];
+      transitionDelay = transitionDelay.split(',')[0];
+      return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
+    },
+    reflow: function reflow(element) {
+      return element.offsetHeight;
+    },
+    triggerTransitionEnd: function triggerTransitionEnd(element) {
+      $(element).trigger(TRANSITION_END);
+    },
+    // TODO: Remove in v5
+    supportsTransitionEnd: function supportsTransitionEnd() {
+      return Boolean(TRANSITION_END);
+    },
+    isElement: function isElement(obj) {
+      return (obj[0] || obj).nodeType;
+    },
+    typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
+      for (var property in configTypes) {
+        if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
+          var expectedTypes = configTypes[property];
+          var value = config[property];
+          var valueType = value && Util.isElement(value) ? 'element' : toType(value);
+
+          if (!new RegExp(expectedTypes).test(valueType)) {
+            throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
+          }
+        }
+      }
+    },
+    findShadowRoot: function findShadowRoot(element) {
+      if (!document.documentElement.attachShadow) {
+        return null;
+      } // Can find the shadow root otherwise it'll return the document
+
+
+      if (typeof element.getRootNode === 'function') {
+        var root = element.getRootNode();
+        return root instanceof ShadowRoot ? root : null;
+      }
+
+      if (element instanceof ShadowRoot) {
+        return element;
+      } // when we don't find a shadow root
+
+
+      if (!element.parentNode) {
+        return null;
+      }
+
+      return Util.findShadowRoot(element.parentNode);
+    },
+    jQueryDetection: function jQueryDetection() {
+      if (typeof $ === 'undefined') {
+        throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
+      }
+
+      var version = $.fn.jquery.split(' ')[0].split('.');
+      var minMajor = 1;
+      var ltMajor = 2;
+      var minMinor = 9;
+      var minPatch = 1;
+      var maxMajor = 4;
+
+      if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
+        throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
+      }
+    }
+  };
+  Util.jQueryDetection();
+  setTransitionEndSupport();
+
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        if (element instanceof ShadowRoot) {
-                            return element;
-                        } // when we don't find a shadow root
+  var NAME = 'alert';
+  var VERSION = '4.5.2';
+  var DATA_KEY = 'bs.alert';
+  var EVENT_KEY = "." + DATA_KEY;
+  var DATA_API_KEY = '.data-api';
+  var JQUERY_NO_CONFLICT = $.fn[NAME];
+  var SELECTOR_DISMISS = '[data-dismiss="alert"]';
+  var EVENT_CLOSE = "close" + EVENT_KEY;
+  var EVENT_CLOSED = "closed" + EVENT_KEY;
+  var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
+  var CLASS_NAME_ALERT = 'alert';
+  var CLASS_NAME_FADE = 'fade';
+  var CLASS_NAME_SHOW = 'show';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
+  var Alert = /*#__PURE__*/function () {
+    function Alert(element) {
+      this._element = element;
+    } // Getters
 
-                        if (!element.parentNode) {
-                            return null;
-                        }
 
-                        return Util.findShadowRoot(element.parentNode);
-                    },
-                    jQueryDetection: function jQueryDetection() {
-                        if (typeof $ === 'undefined') {
-                            throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
-                        }
+    var _proto = Alert.prototype;
 
-                        var version = $.fn.jquery.split(' ')[0].split('.');
-                        var minMajor = 1;
-                        var ltMajor = 2;
-                        var minMinor = 9;
-                        var minPatch = 1;
-                        var maxMajor = 4;
+    // Public
+    _proto.close = function close(element) {
+      var rootElement = this._element;
 
-                        if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
-                            throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
-                        }
-                    }
-                };
-                Util.jQueryDetection();
-                setTransitionEndSupport();
-
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME = 'alert';
-                var VERSION = '4.5.2';
-                var DATA_KEY = 'bs.alert';
-                var EVENT_KEY = "." + DATA_KEY;
-                var DATA_API_KEY = '.data-api';
-                var JQUERY_NO_CONFLICT = $.fn[NAME];
-                var SELECTOR_DISMISS = '[data-dismiss="alert"]';
-                var EVENT_CLOSE = "close" + EVENT_KEY;
-                var EVENT_CLOSED = "closed" + EVENT_KEY;
-                var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
-                var CLASS_NAME_ALERT = 'alert';
-                var CLASS_NAME_FADE = 'fade';
-                var CLASS_NAME_SHOW = 'show';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Alert = /*#__PURE__*/function () {
-                    function Alert(element) {
-                        this._element = element;
-                    } // Getters
-
-
-                    var _proto = Alert.prototype;
-
-                    // Public
-                    _proto.close = function close(element) {
-                        var rootElement = this._element;
-
-                        if (element) {
-                            rootElement = this._getRootElement(element);
-                        }
+      if (element) {
+        rootElement = this._getRootElement(element);
+      }
 
-                        var customEvent = this._triggerCloseEvent(rootElement);
+      var customEvent = this._triggerCloseEvent(rootElement);
 
-                        if (customEvent.isDefaultPrevented()) {
-                            return;
-                        }
+      if (customEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                        this._removeElement(rootElement);
-                    };
+      this._removeElement(rootElement);
+    };
 
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY);
-                        this._element = null;
-                    } // Private
-                    ;
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY);
+      this._element = null;
+    } // Private
+    ;
 
-                    _proto._getRootElement = function _getRootElement(element) {
-                        var selector = Util.getSelectorFromElement(element);
-                        var parent = false;
+    _proto._getRootElement = function _getRootElement(element) {
+      var selector = Util.getSelectorFromElement(element);
+      var parent = false;
 
-                        if (selector) {
-                            parent = document.querySelector(selector);
-                        }
+      if (selector) {
+        parent = document.querySelector(selector);
+      }
 
-                        if (!parent) {
-                            parent = $(element).closest("." + CLASS_NAME_ALERT)[0];
-                        }
+      if (!parent) {
+        parent = $(element).closest("." + CLASS_NAME_ALERT)[0];
+      }
 
-                        return parent;
-                    };
+      return parent;
+    };
 
-                    _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
-                        var closeEvent = $.Event(EVENT_CLOSE);
-                        $(element).trigger(closeEvent);
-                        return closeEvent;
-                    };
+    _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
+      var closeEvent = $.Event(EVENT_CLOSE);
+      $(element).trigger(closeEvent);
+      return closeEvent;
+    };
 
-                    _proto._removeElement = function _removeElement(element) {
-                        var _this = this;
+    _proto._removeElement = function _removeElement(element) {
+      var _this = this;
 
-                        $(element).removeClass(CLASS_NAME_SHOW);
+      $(element).removeClass(CLASS_NAME_SHOW);
 
-                        if (!$(element).hasClass(CLASS_NAME_FADE)) {
-                            this._destroyElement(element);
+      if (!$(element).hasClass(CLASS_NAME_FADE)) {
+        this._destroyElement(element);
 
-                            return;
-                        }
+        return;
+      }
 
-                        var transitionDuration = Util.getTransitionDurationFromElement(element);
-                        $(element).one(Util.TRANSITION_END, function (event) {
-                            return _this._destroyElement(element, event);
-                        }).emulateTransitionEnd(transitionDuration);
-                    };
-
-                    _proto._destroyElement = function _destroyElement(element) {
-                        $(element).detach().trigger(EVENT_CLOSED).remove();
-                    } // Static
-                    ;
-
-                    Alert._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var $element = $(this);
-                            var data = $element.data(DATA_KEY);
-
-                            if (!data) {
-                                data = new Alert(this);
-                                $element.data(DATA_KEY, data);
-                            }
+      var transitionDuration = Util.getTransitionDurationFromElement(element);
+      $(element).one(Util.TRANSITION_END, function (event) {
+        return _this._destroyElement(element, event);
+      }).emulateTransitionEnd(transitionDuration);
+    };
 
-                            if (config === 'close') {
-                                data[config](this);
-                            }
-                        });
-                    };
+    _proto._destroyElement = function _destroyElement(element) {
+      $(element).detach().trigger(EVENT_CLOSED).remove();
+    } // Static
+    ;
 
-                    Alert._handleDismiss = function _handleDismiss(alertInstance) {
-                        return function (event) {
-                            if (event) {
-                                event.preventDefault();
-                            }
+    Alert._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var $element = $(this);
+        var data = $element.data(DATA_KEY);
 
-                            alertInstance.close(this);
-                        };
-                    };
+        if (!data) {
+          data = new Alert(this);
+          $element.data(DATA_KEY, data);
+        }
 
-                    _createClass(Alert, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION;
-                        }
-                    }]);
-
-                    return Alert;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
-
-
-                $(document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME] = Alert._jQueryInterface;
-                $.fn[NAME].Constructor = Alert;
-
-                $.fn[NAME].noConflict = function () {
-                    $.fn[NAME] = JQUERY_NO_CONFLICT;
-                    return Alert._jQueryInterface;
-                };
+        if (config === 'close') {
+          data[config](this);
+        }
+      });
+    };
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$1 = 'button';
-                var VERSION$1 = '4.5.2';
-                var DATA_KEY$1 = 'bs.button';
-                var EVENT_KEY$1 = "." + DATA_KEY$1;
-                var DATA_API_KEY$1 = '.data-api';
-                var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];
-                var CLASS_NAME_ACTIVE = 'active';
-                var CLASS_NAME_BUTTON = 'btn';
-                var CLASS_NAME_FOCUS = 'focus';
-                var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
-                var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
-                var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
-                var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
-                var SELECTOR_INPUT = 'input:not([type="hidden"])';
-                var SELECTOR_ACTIVE = '.active';
-                var SELECTOR_BUTTON = '.btn';
-                var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
-                var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
-                var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Button = /*#__PURE__*/function () {
-                    function Button(element) {
-                        this._element = element;
-                    } // Getters
-
-
-                    var _proto = Button.prototype;
-
-                    // Public
-                    _proto.toggle = function toggle() {
-                        var triggerChangeEvent = true;
-                        var addAriaPressed = true;
-                        var rootElement = $(this._element).closest(SELECTOR_DATA_TOGGLES)[0];
-
-                        if (rootElement) {
-                            var input = this._element.querySelector(SELECTOR_INPUT);
-
-                            if (input) {
-                                if (input.type === 'radio') {
-                                    if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
-                                        triggerChangeEvent = false;
-                                    } else {
-                                        var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
-
-                                        if (activeElement) {
-                                            $(activeElement).removeClass(CLASS_NAME_ACTIVE);
-                                        }
-                                    }
-                                }
-
-                                if (triggerChangeEvent) {
-                                    // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
-                                    if (input.type === 'checkbox' || input.type === 'radio') {
-                                        input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
-                                    }
-
-                                    $(input).trigger('change');
-                                }
-
-                                input.focus();
-                                addAriaPressed = false;
-                            }
-                        }
+    Alert._handleDismiss = function _handleDismiss(alertInstance) {
+      return function (event) {
+        if (event) {
+          event.preventDefault();
+        }
 
-                        if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
-                            if (addAriaPressed) {
-                                this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
-                            }
+        alertInstance.close(this);
+      };
+    };
+
+    _createClass(Alert, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION;
+      }
+    }]);
+
+    return Alert;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                            if (triggerChangeEvent) {
-                                $(this._element).toggleClass(CLASS_NAME_ACTIVE);
-                            }
-                        }
-                    };
 
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY$1);
-                        this._element = null;
-                    } // Static
-                    ;
+  $(document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                    Button._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$1);
+  $.fn[NAME] = Alert._jQueryInterface;
+  $.fn[NAME].Constructor = Alert;
 
-                            if (!data) {
-                                data = new Button(this);
-                                $(this).data(DATA_KEY$1, data);
-                            }
+  $.fn[NAME].noConflict = function () {
+    $.fn[NAME] = JQUERY_NO_CONFLICT;
+    return Alert._jQueryInterface;
+  };
 
-                            if (config === 'toggle') {
-                                data[config]();
-                            }
-                        });
-                    };
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                    _createClass(Button, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$1;
-                        }
-                    }]);
+  var NAME$1 = 'button';
+  var VERSION$1 = '4.5.2';
+  var DATA_KEY$1 = 'bs.button';
+  var EVENT_KEY$1 = "." + DATA_KEY$1;
+  var DATA_API_KEY$1 = '.data-api';
+  var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];
+  var CLASS_NAME_ACTIVE = 'active';
+  var CLASS_NAME_BUTTON = 'btn';
+  var CLASS_NAME_FOCUS = 'focus';
+  var SELECTOR_DATA_TOGGLE_CARROT = '[data-toggle^="button"]';
+  var SELECTOR_DATA_TOGGLES = '[data-toggle="buttons"]';
+  var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
+  var SELECTOR_DATA_TOGGLES_BUTTONS = '[data-toggle="buttons"] .btn';
+  var SELECTOR_INPUT = 'input:not([type="hidden"])';
+  var SELECTOR_ACTIVE = '.active';
+  var SELECTOR_BUTTON = '.btn';
+  var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
+  var EVENT_FOCUS_BLUR_DATA_API = "focus" + EVENT_KEY$1 + DATA_API_KEY$1 + " " + ("blur" + EVENT_KEY$1 + DATA_API_KEY$1);
+  var EVENT_LOAD_DATA_API = "load" + EVENT_KEY$1 + DATA_API_KEY$1;
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                    return Button;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+  var Button = /*#__PURE__*/function () {
+    function Button(element) {
+      this._element = element;
+    } // Getters
 
 
-                $(document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
-                    var button = event.target;
-                    var initialButton = button;
+    var _proto = Button.prototype;
 
-                    if (!$(button).hasClass(CLASS_NAME_BUTTON)) {
-                        button = $(button).closest(SELECTOR_BUTTON)[0];
-                    }
+    // Public
+    _proto.toggle = function toggle() {
+      var triggerChangeEvent = true;
+      var addAriaPressed = true;
+      var rootElement = $(this._element).closest(SELECTOR_DATA_TOGGLES)[0];
 
-                    if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
-                        event.preventDefault(); // work around Firefox bug #1540995
-                    } else {
-                        var inputBtn = button.querySelector(SELECTOR_INPUT);
+      if (rootElement) {
+        var input = this._element.querySelector(SELECTOR_INPUT);
 
-                        if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) {
-                            event.preventDefault(); // work around Firefox bug #1540995
+        if (input) {
+          if (input.type === 'radio') {
+            if (input.checked && this._element.classList.contains(CLASS_NAME_ACTIVE)) {
+              triggerChangeEvent = false;
+            } else {
+              var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
 
-                            return;
-                        }
+              if (activeElement) {
+                $(activeElement).removeClass(CLASS_NAME_ACTIVE);
+              }
+            }
+          }
 
-                        if (initialButton.tagName !== 'LABEL' || inputBtn && inputBtn.type !== 'checkbox') {
-                            Button._jQueryInterface.call($(button), 'toggle');
-                        }
-                    }
-                }).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
-                    var button = $(event.target).closest(SELECTOR_BUTTON)[0];
-                    $(button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
-                });
-                $(window).on(EVENT_LOAD_DATA_API, function () {
-                    // ensure correct active class is set to match the controls' actual values/states
-                    // find all checkboxes/readio buttons inside data-toggle groups
-                    var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
-
-                    for (var i = 0, len = buttons.length; i < len; i++) {
-                        var button = buttons[i];
-                        var input = button.querySelector(SELECTOR_INPUT);
-
-                        if (input.checked || input.hasAttribute('checked')) {
-                            button.classList.add(CLASS_NAME_ACTIVE);
-                        } else {
-                            button.classList.remove(CLASS_NAME_ACTIVE);
-                        }
-                    } // find all button toggles
+          if (triggerChangeEvent) {
+            // if it's not a radio button or checkbox don't add a pointless/invalid checked property to the input
+            if (input.type === 'checkbox' || input.type === 'radio') {
+              input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
+            }
 
+            $(input).trigger('change');
+          }
 
-                    buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
+          input.focus();
+          addAriaPressed = false;
+        }
+      }
 
-                    for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
-                        var _button = buttons[_i];
+      if (!(this._element.hasAttribute('disabled') || this._element.classList.contains('disabled'))) {
+        if (addAriaPressed) {
+          this._element.setAttribute('aria-pressed', !this._element.classList.contains(CLASS_NAME_ACTIVE));
+        }
 
-                        if (_button.getAttribute('aria-pressed') === 'true') {
-                            _button.classList.add(CLASS_NAME_ACTIVE);
-                        } else {
-                            _button.classList.remove(CLASS_NAME_ACTIVE);
-                        }
-                    }
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$1] = Button._jQueryInterface;
-                $.fn[NAME$1].Constructor = Button;
-
-                $.fn[NAME$1].noConflict = function () {
-                    $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
-                    return Button._jQueryInterface;
-                };
+        if (triggerChangeEvent) {
+          $(this._element).toggleClass(CLASS_NAME_ACTIVE);
+        }
+      }
+    };
+
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY$1);
+      this._element = null;
+    } // Static
+    ;
+
+    Button._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$1);
+
+        if (!data) {
+          data = new Button(this);
+          $(this).data(DATA_KEY$1, data);
+        }
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$2 = 'carousel';
-                var VERSION$2 = '4.5.2';
-                var DATA_KEY$2 = 'bs.carousel';
-                var EVENT_KEY$2 = "." + DATA_KEY$2;
-                var DATA_API_KEY$2 = '.data-api';
-                var JQUERY_NO_CONFLICT$2 = $.fn[NAME$2];
-                var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
-
-                var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
-
-                var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
-
-                var SWIPE_THRESHOLD = 40;
-                var Default = {
-                    interval: 5000,
-                    keyboard: true,
-                    slide: false,
-                    pause: 'hover',
-                    wrap: true,
-                    touch: true
-                };
-                var DefaultType = {
-                    interval: '(number|boolean)',
-                    keyboard: 'boolean',
-                    slide: '(boolean|string)',
-                    pause: '(string|boolean)',
-                    wrap: 'boolean',
-                    touch: 'boolean'
-                };
-                var DIRECTION_NEXT = 'next';
-                var DIRECTION_PREV = 'prev';
-                var DIRECTION_LEFT = 'left';
-                var DIRECTION_RIGHT = 'right';
-                var EVENT_SLIDE = "slide" + EVENT_KEY$2;
-                var EVENT_SLID = "slid" + EVENT_KEY$2;
-                var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
-                var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
-                var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
-                var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
-                var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
-                var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
-                var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
-                var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
-                var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
-                var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
-                var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
-                var CLASS_NAME_CAROUSEL = 'carousel';
-                var CLASS_NAME_ACTIVE$1 = 'active';
-                var CLASS_NAME_SLIDE = 'slide';
-                var CLASS_NAME_RIGHT = 'carousel-item-right';
-                var CLASS_NAME_LEFT = 'carousel-item-left';
-                var CLASS_NAME_NEXT = 'carousel-item-next';
-                var CLASS_NAME_PREV = 'carousel-item-prev';
-                var CLASS_NAME_POINTER_EVENT = 'pointer-event';
-                var SELECTOR_ACTIVE$1 = '.active';
-                var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
-                var SELECTOR_ITEM = '.carousel-item';
-                var SELECTOR_ITEM_IMG = '.carousel-item img';
-                var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
-                var SELECTOR_INDICATORS = '.carousel-indicators';
-                var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
-                var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
-                var PointerType = {
-                    TOUCH: 'touch',
-                    PEN: 'pen'
-                };
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Carousel = /*#__PURE__*/function () {
-                    function Carousel(element, config) {
-                        this._items = null;
-                        this._interval = null;
-                        this._activeElement = null;
-                        this._isPaused = false;
-                        this._isSliding = false;
-                        this.touchTimeout = null;
-                        this.touchStartX = 0;
-                        this.touchDeltaX = 0;
-                        this._config = this._getConfig(config);
-                        this._element = element;
-                        this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS);
-                        this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
-                        this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);
-
-                        this._addEventListeners();
-                    } // Getters
-
-
-                    var _proto = Carousel.prototype;
-
-                    // Public
-                    _proto.next = function next() {
-                        if (!this._isSliding) {
-                            this._slide(DIRECTION_NEXT);
-                        }
-                    };
+        if (config === 'toggle') {
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(Button, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$1;
+      }
+    }]);
+
+    return Button;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto.nextWhenVisible = function nextWhenVisible() {
-                        // Don't call next when the page isn't visible
-                        // or the carousel or its parent isn't visible
-                        if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') {
-                            this.next();
-                        }
-                    };
 
-                    _proto.prev = function prev() {
-                        if (!this._isSliding) {
-                            this._slide(DIRECTION_PREV);
-                        }
-                    };
+  $(document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
+    var button = event.target;
+    var initialButton = button;
 
-                    _proto.pause = function pause(event) {
-                        if (!event) {
-                            this._isPaused = true;
-                        }
-
-                        if (this._element.querySelector(SELECTOR_NEXT_PREV)) {
-                            Util.triggerTransitionEnd(this._element);
-                            this.cycle(true);
-                        }
+    if (!$(button).hasClass(CLASS_NAME_BUTTON)) {
+      button = $(button).closest(SELECTOR_BUTTON)[0];
+    }
 
-                        clearInterval(this._interval);
-                        this._interval = null;
-                    };
+    if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
+      event.preventDefault(); // work around Firefox bug #1540995
+    } else {
+      var inputBtn = button.querySelector(SELECTOR_INPUT);
 
-                    _proto.cycle = function cycle(event) {
-                        if (!event) {
-                            this._isPaused = false;
-                        }
+      if (inputBtn && (inputBtn.hasAttribute('disabled') || inputBtn.classList.contains('disabled'))) {
+        event.preventDefault(); // work around Firefox bug #1540995
 
-                        if (this._interval) {
-                            clearInterval(this._interval);
-                            this._interval = null;
-                        }
+        return;
+      }
 
-                        if (this._config.interval && !this._isPaused) {
-                            this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
-                        }
-                    };
+      if (initialButton.tagName !== 'LABEL' || inputBtn && inputBtn.type !== 'checkbox') {
+        Button._jQueryInterface.call($(button), 'toggle');
+      }
+    }
+  }).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
+    var button = $(event.target).closest(SELECTOR_BUTTON)[0];
+    $(button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
+  });
+  $(window).on(EVENT_LOAD_DATA_API, function () {
+    // ensure correct active class is set to match the controls' actual values/states
+    // find all checkboxes/readio buttons inside data-toggle groups
+    var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
+
+    for (var i = 0, len = buttons.length; i < len; i++) {
+      var button = buttons[i];
+      var input = button.querySelector(SELECTOR_INPUT);
+
+      if (input.checked || input.hasAttribute('checked')) {
+        button.classList.add(CLASS_NAME_ACTIVE);
+      } else {
+        button.classList.remove(CLASS_NAME_ACTIVE);
+      }
+    } // find all button toggles
+
+
+    buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
+
+    for (var _i = 0, _len = buttons.length; _i < _len; _i++) {
+      var _button = buttons[_i];
+
+      if (_button.getAttribute('aria-pressed') === 'true') {
+        _button.classList.add(CLASS_NAME_ACTIVE);
+      } else {
+        _button.classList.remove(CLASS_NAME_ACTIVE);
+      }
+    }
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto.to = function to(index) {
-                        var _this = this;
+  $.fn[NAME$1] = Button._jQueryInterface;
+  $.fn[NAME$1].Constructor = Button;
 
-                        this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
+  $.fn[NAME$1].noConflict = function () {
+    $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
+    return Button._jQueryInterface;
+  };
 
-                        var activeIndex = this._getItemIndex(this._activeElement);
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        if (index > this._items.length - 1 || index < 0) {
-                            return;
-                        }
+  var NAME$2 = 'carousel';
+  var VERSION$2 = '4.5.2';
+  var DATA_KEY$2 = 'bs.carousel';
+  var EVENT_KEY$2 = "." + DATA_KEY$2;
+  var DATA_API_KEY$2 = '.data-api';
+  var JQUERY_NO_CONFLICT$2 = $.fn[NAME$2];
+  var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
+
+  var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
+
+  var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
+
+  var SWIPE_THRESHOLD = 40;
+  var Default = {
+    interval: 5000,
+    keyboard: true,
+    slide: false,
+    pause: 'hover',
+    wrap: true,
+    touch: true
+  };
+  var DefaultType = {
+    interval: '(number|boolean)',
+    keyboard: 'boolean',
+    slide: '(boolean|string)',
+    pause: '(string|boolean)',
+    wrap: 'boolean',
+    touch: 'boolean'
+  };
+  var DIRECTION_NEXT = 'next';
+  var DIRECTION_PREV = 'prev';
+  var DIRECTION_LEFT = 'left';
+  var DIRECTION_RIGHT = 'right';
+  var EVENT_SLIDE = "slide" + EVENT_KEY$2;
+  var EVENT_SLID = "slid" + EVENT_KEY$2;
+  var EVENT_KEYDOWN = "keydown" + EVENT_KEY$2;
+  var EVENT_MOUSEENTER = "mouseenter" + EVENT_KEY$2;
+  var EVENT_MOUSELEAVE = "mouseleave" + EVENT_KEY$2;
+  var EVENT_TOUCHSTART = "touchstart" + EVENT_KEY$2;
+  var EVENT_TOUCHMOVE = "touchmove" + EVENT_KEY$2;
+  var EVENT_TOUCHEND = "touchend" + EVENT_KEY$2;
+  var EVENT_POINTERDOWN = "pointerdown" + EVENT_KEY$2;
+  var EVENT_POINTERUP = "pointerup" + EVENT_KEY$2;
+  var EVENT_DRAG_START = "dragstart" + EVENT_KEY$2;
+  var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$2 + DATA_API_KEY$2;
+  var EVENT_CLICK_DATA_API$2 = "click" + EVENT_KEY$2 + DATA_API_KEY$2;
+  var CLASS_NAME_CAROUSEL = 'carousel';
+  var CLASS_NAME_ACTIVE$1 = 'active';
+  var CLASS_NAME_SLIDE = 'slide';
+  var CLASS_NAME_RIGHT = 'carousel-item-right';
+  var CLASS_NAME_LEFT = 'carousel-item-left';
+  var CLASS_NAME_NEXT = 'carousel-item-next';
+  var CLASS_NAME_PREV = 'carousel-item-prev';
+  var CLASS_NAME_POINTER_EVENT = 'pointer-event';
+  var SELECTOR_ACTIVE$1 = '.active';
+  var SELECTOR_ACTIVE_ITEM = '.active.carousel-item';
+  var SELECTOR_ITEM = '.carousel-item';
+  var SELECTOR_ITEM_IMG = '.carousel-item img';
+  var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
+  var SELECTOR_INDICATORS = '.carousel-indicators';
+  var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
+  var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
+  var PointerType = {
+    TOUCH: 'touch',
+    PEN: 'pen'
+  };
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                        if (this._isSliding) {
-                            $(this._element).one(EVENT_SLID, function () {
-                                return _this.to(index);
-                            });
-                            return;
-                        }
+  var Carousel = /*#__PURE__*/function () {
+    function Carousel(element, config) {
+      this._items = null;
+      this._interval = null;
+      this._activeElement = null;
+      this._isPaused = false;
+      this._isSliding = false;
+      this.touchTimeout = null;
+      this.touchStartX = 0;
+      this.touchDeltaX = 0;
+      this._config = this._getConfig(config);
+      this._element = element;
+      this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS);
+      this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
+      this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);
+
+      this._addEventListeners();
+    } // Getters
+
+
+    var _proto = Carousel.prototype;
+
+    // Public
+    _proto.next = function next() {
+      if (!this._isSliding) {
+        this._slide(DIRECTION_NEXT);
+      }
+    };
+
+    _proto.nextWhenVisible = function nextWhenVisible() {
+      // Don't call next when the page isn't visible
+      // or the carousel or its parent isn't visible
+      if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') {
+        this.next();
+      }
+    };
+
+    _proto.prev = function prev() {
+      if (!this._isSliding) {
+        this._slide(DIRECTION_PREV);
+      }
+    };
+
+    _proto.pause = function pause(event) {
+      if (!event) {
+        this._isPaused = true;
+      }
+
+      if (this._element.querySelector(SELECTOR_NEXT_PREV)) {
+        Util.triggerTransitionEnd(this._element);
+        this.cycle(true);
+      }
+
+      clearInterval(this._interval);
+      this._interval = null;
+    };
+
+    _proto.cycle = function cycle(event) {
+      if (!event) {
+        this._isPaused = false;
+      }
+
+      if (this._interval) {
+        clearInterval(this._interval);
+        this._interval = null;
+      }
+
+      if (this._config.interval && !this._isPaused) {
+        this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
+      }
+    };
+
+    _proto.to = function to(index) {
+      var _this = this;
+
+      this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
+
+      var activeIndex = this._getItemIndex(this._activeElement);
+
+      if (index > this._items.length - 1 || index < 0) {
+        return;
+      }
+
+      if (this._isSliding) {
+        $(this._element).one(EVENT_SLID, function () {
+          return _this.to(index);
+        });
+        return;
+      }
+
+      if (activeIndex === index) {
+        this.pause();
+        this.cycle();
+        return;
+      }
+
+      var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV;
+
+      this._slide(direction, this._items[index]);
+    };
+
+    _proto.dispose = function dispose() {
+      $(this._element).off(EVENT_KEY$2);
+      $.removeData(this._element, DATA_KEY$2);
+      this._items = null;
+      this._config = null;
+      this._element = null;
+      this._interval = null;
+      this._isPaused = null;
+      this._isSliding = null;
+      this._activeElement = null;
+      this._indicatorsElement = null;
+    } // Private
+    ;
+
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, Default, config);
+      Util.typeCheckConfig(NAME$2, config, DefaultType);
+      return config;
+    };
+
+    _proto._handleSwipe = function _handleSwipe() {
+      var absDeltax = Math.abs(this.touchDeltaX);
+
+      if (absDeltax <= SWIPE_THRESHOLD) {
+        return;
+      }
+
+      var direction = absDeltax / this.touchDeltaX;
+      this.touchDeltaX = 0; // swipe left
+
+      if (direction > 0) {
+        this.prev();
+      } // swipe right
+
+
+      if (direction < 0) {
+        this.next();
+      }
+    };
+
+    _proto._addEventListeners = function _addEventListeners() {
+      var _this2 = this;
+
+      if (this._config.keyboard) {
+        $(this._element).on(EVENT_KEYDOWN, function (event) {
+          return _this2._keydown(event);
+        });
+      }
+
+      if (this._config.pause === 'hover') {
+        $(this._element).on(EVENT_MOUSEENTER, function (event) {
+          return _this2.pause(event);
+        }).on(EVENT_MOUSELEAVE, function (event) {
+          return _this2.cycle(event);
+        });
+      }
+
+      if (this._config.touch) {
+        this._addTouchEventListeners();
+      }
+    };
+
+    _proto._addTouchEventListeners = function _addTouchEventListeners() {
+      var _this3 = this;
+
+      if (!this._touchSupported) {
+        return;
+      }
+
+      var start = function start(event) {
+        if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
+          _this3.touchStartX = event.originalEvent.clientX;
+        } else if (!_this3._pointerEvent) {
+          _this3.touchStartX = event.originalEvent.touches[0].clientX;
+        }
+      };
+
+      var move = function move(event) {
+        // ensure swiping with one touch and not pinching
+        if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
+          _this3.touchDeltaX = 0;
+        } else {
+          _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
+        }
+      };
 
-                        if (activeIndex === index) {
-                            this.pause();
-                            this.cycle();
-                            return;
-                        }
+      var end = function end(event) {
+        if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
+          _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX;
+        }
 
-                        var direction = index > activeIndex ? DIRECTION_NEXT : DIRECTION_PREV;
-
-                        this._slide(direction, this._items[index]);
-                    };
-
-                    _proto.dispose = function dispose() {
-                        $(this._element).off(EVENT_KEY$2);
-                        $.removeData(this._element, DATA_KEY$2);
-                        this._items = null;
-                        this._config = null;
-                        this._element = null;
-                        this._interval = null;
-                        this._isPaused = null;
-                        this._isSliding = null;
-                        this._activeElement = null;
-                        this._indicatorsElement = null;
-                    } // Private
-                    ;
-
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, Default, config);
-                        Util.typeCheckConfig(NAME$2, config, DefaultType);
-                        return config;
-                    };
-
-                    _proto._handleSwipe = function _handleSwipe() {
-                        var absDeltax = Math.abs(this.touchDeltaX);
-
-                        if (absDeltax <= SWIPE_THRESHOLD) {
-                            return;
-                        }
+        _this3._handleSwipe();
+
+        if (_this3._config.pause === 'hover') {
+          // If it's a touch-enabled device, mouseenter/leave are fired as
+          // part of the mouse compatibility events on first tap - the carousel
+          // would stop cycling until user tapped out of it;
+          // here, we listen for touchend, explicitly pause the carousel
+          // (as if it's the second time we tap on it, mouseenter compat event
+          // is NOT fired) and after a timeout (to allow for mouse compatibility
+          // events to fire) we explicitly restart cycling
+          _this3.pause();
+
+          if (_this3.touchTimeout) {
+            clearTimeout(_this3.touchTimeout);
+          }
+
+          _this3.touchTimeout = setTimeout(function (event) {
+            return _this3.cycle(event);
+          }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
+        }
+      };
 
-                        var direction = absDeltax / this.touchDeltaX;
-                        this.touchDeltaX = 0; // swipe left
+      $(this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
+        return e.preventDefault();
+      });
 
-                        if (direction > 0) {
-                            this.prev();
-                        } // swipe right
+      if (this._pointerEvent) {
+        $(this._element).on(EVENT_POINTERDOWN, function (event) {
+          return start(event);
+        });
+        $(this._element).on(EVENT_POINTERUP, function (event) {
+          return end(event);
+        });
+
+        this._element.classList.add(CLASS_NAME_POINTER_EVENT);
+      } else {
+        $(this._element).on(EVENT_TOUCHSTART, function (event) {
+          return start(event);
+        });
+        $(this._element).on(EVENT_TOUCHMOVE, function (event) {
+          return move(event);
+        });
+        $(this._element).on(EVENT_TOUCHEND, function (event) {
+          return end(event);
+        });
+      }
+    };
+
+    _proto._keydown = function _keydown(event) {
+      if (/input|textarea/i.test(event.target.tagName)) {
+        return;
+      }
+
+      switch (event.which) {
+        case ARROW_LEFT_KEYCODE:
+          event.preventDefault();
+          this.prev();
+          break;
+
+        case ARROW_RIGHT_KEYCODE:
+          event.preventDefault();
+          this.next();
+          break;
+      }
+    };
+
+    _proto._getItemIndex = function _getItemIndex(element) {
+      this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : [];
+      return this._items.indexOf(element);
+    };
+
+    _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
+      var isNextDirection = direction === DIRECTION_NEXT;
+      var isPrevDirection = direction === DIRECTION_PREV;
+
+      var activeIndex = this._getItemIndex(activeElement);
+
+      var lastItemIndex = this._items.length - 1;
+      var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
+
+      if (isGoingToWrap && !this._config.wrap) {
+        return activeElement;
+      }
+
+      var delta = direction === DIRECTION_PREV ? -1 : 1;
+      var itemIndex = (activeIndex + delta) % this._items.length;
+      return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
+    };
+
+    _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
+      var targetIndex = this._getItemIndex(relatedTarget);
+
+      var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
+
+      var slideEvent = $.Event(EVENT_SLIDE, {
+        relatedTarget: relatedTarget,
+        direction: eventDirectionName,
+        from: fromIndex,
+        to: targetIndex
+      });
+      $(this._element).trigger(slideEvent);
+      return slideEvent;
+    };
 
+    _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
+      if (this._indicatorsElement) {
+        var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
+        $(indicators).removeClass(CLASS_NAME_ACTIVE$1);
 
-                        if (direction < 0) {
-                            this.next();
-                        }
-                    };
+        var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
 
-                    _proto._addEventListeners = function _addEventListeners() {
-                        var _this2 = this;
+        if (nextIndicator) {
+          $(nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
+        }
+      }
+    };
 
-                        if (this._config.keyboard) {
-                            $(this._element).on(EVENT_KEYDOWN, function (event) {
-                                return _this2._keydown(event);
-                            });
-                        }
+    _proto._slide = function _slide(direction, element) {
+      var _this4 = this;
 
-                        if (this._config.pause === 'hover') {
-                            $(this._element).on(EVENT_MOUSEENTER, function (event) {
-                                return _this2.pause(event);
-                            }).on(EVENT_MOUSELEAVE, function (event) {
-                                return _this2.cycle(event);
-                            });
-                        }
+      var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
 
-                        if (this._config.touch) {
-                            this._addTouchEventListeners();
-                        }
-                    };
+      var activeElementIndex = this._getItemIndex(activeElement);
 
-                    _proto._addTouchEventListeners = function _addTouchEventListeners() {
-                        var _this3 = this;
+      var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
 
-                        if (!this._touchSupported) {
-                            return;
-                        }
+      var nextElementIndex = this._getItemIndex(nextElement);
 
-                        var start = function start(event) {
-                            if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
-                                _this3.touchStartX = event.originalEvent.clientX;
-                            } else if (!_this3._pointerEvent) {
-                                _this3.touchStartX = event.originalEvent.touches[0].clientX;
-                            }
-                        };
-
-                        var move = function move(event) {
-                            // ensure swiping with one touch and not pinching
-                            if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {
-                                _this3.touchDeltaX = 0;
-                            } else {
-                                _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;
-                            }
-                        };
+      var isCycling = Boolean(this._interval);
+      var directionalClassName;
+      var orderClassName;
+      var eventDirectionName;
 
-                        var end = function end(event) {
-                            if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {
-                                _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX;
-                            }
+      if (direction === DIRECTION_NEXT) {
+        directionalClassName = CLASS_NAME_LEFT;
+        orderClassName = CLASS_NAME_NEXT;
+        eventDirectionName = DIRECTION_LEFT;
+      } else {
+        directionalClassName = CLASS_NAME_RIGHT;
+        orderClassName = CLASS_NAME_PREV;
+        eventDirectionName = DIRECTION_RIGHT;
+      }
 
-                            _this3._handleSwipe();
-
-                            if (_this3._config.pause === 'hover') {
-                                // If it's a touch-enabled device, mouseenter/leave are fired as
-                                // part of the mouse compatibility events on first tap - the carousel
-                                // would stop cycling until user tapped out of it;
-                                // here, we listen for touchend, explicitly pause the carousel
-                                // (as if it's the second time we tap on it, mouseenter compat event
-                                // is NOT fired) and after a timeout (to allow for mouse compatibility
-                                // events to fire) we explicitly restart cycling
-                                _this3.pause();
-
-                                if (_this3.touchTimeout) {
-                                    clearTimeout(_this3.touchTimeout);
-                                }
-
-                                _this3.touchTimeout = setTimeout(function (event) {
-                                    return _this3.cycle(event);
-                                }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
-                            }
-                        };
+      if (nextElement && $(nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
+        this._isSliding = false;
+        return;
+      }
 
-                        $(this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
-                            return e.preventDefault();
-                        });
+      var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
 
-                        if (this._pointerEvent) {
-                            $(this._element).on(EVENT_POINTERDOWN, function (event) {
-                                return start(event);
-                            });
-                            $(this._element).on(EVENT_POINTERUP, function (event) {
-                                return end(event);
-                            });
-
-                            this._element.classList.add(CLASS_NAME_POINTER_EVENT);
-                        } else {
-                            $(this._element).on(EVENT_TOUCHSTART, function (event) {
-                                return start(event);
-                            });
-                            $(this._element).on(EVENT_TOUCHMOVE, function (event) {
-                                return move(event);
-                            });
-                            $(this._element).on(EVENT_TOUCHEND, function (event) {
-                                return end(event);
-                            });
-                        }
-                    };
+      if (slideEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                    _proto._keydown = function _keydown(event) {
-                        if (/input|textarea/i.test(event.target.tagName)) {
-                            return;
-                        }
+      if (!activeElement || !nextElement) {
+        // Some weirdness is happening, so we bail
+        return;
+      }
 
-                        switch (event.which) {
-                            case ARROW_LEFT_KEYCODE:
-                                event.preventDefault();
-                                this.prev();
-                                break;
+      this._isSliding = true;
 
-                            case ARROW_RIGHT_KEYCODE:
-                                event.preventDefault();
-                                this.next();
-                                break;
-                        }
-                    };
+      if (isCycling) {
+        this.pause();
+      }
 
-                    _proto._getItemIndex = function _getItemIndex(element) {
-                        this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) : [];
-                        return this._items.indexOf(element);
-                    };
+      this._setActiveIndicatorElement(nextElement);
 
-                    _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
-                        var isNextDirection = direction === DIRECTION_NEXT;
-                        var isPrevDirection = direction === DIRECTION_PREV;
+      var slidEvent = $.Event(EVENT_SLID, {
+        relatedTarget: nextElement,
+        direction: eventDirectionName,
+        from: activeElementIndex,
+        to: nextElementIndex
+      });
 
-                        var activeIndex = this._getItemIndex(activeElement);
+      if ($(this._element).hasClass(CLASS_NAME_SLIDE)) {
+        $(nextElement).addClass(orderClassName);
+        Util.reflow(nextElement);
+        $(activeElement).addClass(directionalClassName);
+        $(nextElement).addClass(directionalClassName);
+        var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
+
+        if (nextElementInterval) {
+          this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
+          this._config.interval = nextElementInterval;
+        } else {
+          this._config.interval = this._config.defaultInterval || this._config.interval;
+        }
 
-                        var lastItemIndex = this._items.length - 1;
-                        var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
+        var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
+        $(activeElement).one(Util.TRANSITION_END, function () {
+          $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
+          $(activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
+          _this4._isSliding = false;
+          setTimeout(function () {
+            return $(_this4._element).trigger(slidEvent);
+          }, 0);
+        }).emulateTransitionEnd(transitionDuration);
+      } else {
+        $(activeElement).removeClass(CLASS_NAME_ACTIVE$1);
+        $(nextElement).addClass(CLASS_NAME_ACTIVE$1);
+        this._isSliding = false;
+        $(this._element).trigger(slidEvent);
+      }
+
+      if (isCycling) {
+        this.cycle();
+      }
+    } // Static
+    ;
+
+    Carousel._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$2);
+
+        var _config = _extends({}, Default, $(this).data());
+
+        if (typeof config === 'object') {
+          _config = _extends({}, _config, config);
+        }
 
-                        if (isGoingToWrap && !this._config.wrap) {
-                            return activeElement;
-                        }
+        var action = typeof config === 'string' ? config : _config.slide;
 
-                        var delta = direction === DIRECTION_PREV ? -1 : 1;
-                        var itemIndex = (activeIndex + delta) % this._items.length;
-                        return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
-                    };
+        if (!data) {
+          data = new Carousel(this, _config);
+          $(this).data(DATA_KEY$2, data);
+        }
 
-                    _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
-                        var targetIndex = this._getItemIndex(relatedTarget);
+        if (typeof config === 'number') {
+          data.to(config);
+        } else if (typeof action === 'string') {
+          if (typeof data[action] === 'undefined') {
+            throw new TypeError("No method named \"" + action + "\"");
+          }
+
+          data[action]();
+        } else if (_config.interval && _config.ride) {
+          data.pause();
+          data.cycle();
+        }
+      });
+    };
 
-                        var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
+    Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
+      var selector = Util.getSelectorFromElement(this);
 
-                        var slideEvent = $.Event(EVENT_SLIDE, {
-                            relatedTarget: relatedTarget,
-                            direction: eventDirectionName,
-                            from: fromIndex,
-                            to: targetIndex
-                        });
-                        $(this._element).trigger(slideEvent);
-                        return slideEvent;
-                    };
+      if (!selector) {
+        return;
+      }
 
-                    _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
-                        if (this._indicatorsElement) {
-                            var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
-                            $(indicators).removeClass(CLASS_NAME_ACTIVE$1);
+      var target = $(selector)[0];
 
-                            var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
+      if (!target || !$(target).hasClass(CLASS_NAME_CAROUSEL)) {
+        return;
+      }
 
-                            if (nextIndicator) {
-                                $(nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
-                            }
-                        }
-                    };
+      var config = _extends({}, $(target).data(), $(this).data());
 
-                    _proto._slide = function _slide(direction, element) {
-                        var _this4 = this;
+      var slideIndex = this.getAttribute('data-slide-to');
 
-                        var activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM);
+      if (slideIndex) {
+        config.interval = false;
+      }
 
-                        var activeElementIndex = this._getItemIndex(activeElement);
+      Carousel._jQueryInterface.call($(target), config);
 
-                        var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
+      if (slideIndex) {
+        $(target).data(DATA_KEY$2).to(slideIndex);
+      }
 
-                        var nextElementIndex = this._getItemIndex(nextElement);
+      event.preventDefault();
+    };
 
-                        var isCycling = Boolean(this._interval);
-                        var directionalClassName;
-                        var orderClassName;
-                        var eventDirectionName;
+    _createClass(Carousel, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$2;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default;
+      }
+    }]);
 
-                        if (direction === DIRECTION_NEXT) {
-                            directionalClassName = CLASS_NAME_LEFT;
-                            orderClassName = CLASS_NAME_NEXT;
-                            eventDirectionName = DIRECTION_LEFT;
-                        } else {
-                            directionalClassName = CLASS_NAME_RIGHT;
-                            orderClassName = CLASS_NAME_PREV;
-                            eventDirectionName = DIRECTION_RIGHT;
-                        }
+    return Carousel;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                        if (nextElement && $(nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
-                            this._isSliding = false;
-                            return;
-                        }
 
-                        var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
+  $(document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
+  $(window).on(EVENT_LOAD_DATA_API$1, function () {
+    var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
 
-                        if (slideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+    for (var i = 0, len = carousels.length; i < len; i++) {
+      var $carousel = $(carousels[i]);
 
-                        if (!activeElement || !nextElement) {
-                            // Some weirdness is happening, so we bail
-                            return;
-                        }
+      Carousel._jQueryInterface.call($carousel, $carousel.data());
+    }
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        this._isSliding = true;
+  $.fn[NAME$2] = Carousel._jQueryInterface;
+  $.fn[NAME$2].Constructor = Carousel;
 
-                        if (isCycling) {
-                            this.pause();
-                        }
+  $.fn[NAME$2].noConflict = function () {
+    $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
+    return Carousel._jQueryInterface;
+  };
 
-                        this._setActiveIndicatorElement(nextElement);
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        var slidEvent = $.Event(EVENT_SLID, {
-                            relatedTarget: nextElement,
-                            direction: eventDirectionName,
-                            from: activeElementIndex,
-                            to: nextElementIndex
-                        });
+  var NAME$3 = 'collapse';
+  var VERSION$3 = '4.5.2';
+  var DATA_KEY$3 = 'bs.collapse';
+  var EVENT_KEY$3 = "." + DATA_KEY$3;
+  var DATA_API_KEY$3 = '.data-api';
+  var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3];
+  var Default$1 = {
+    toggle: true,
+    parent: ''
+  };
+  var DefaultType$1 = {
+    toggle: 'boolean',
+    parent: '(string|element)'
+  };
+  var EVENT_SHOW = "show" + EVENT_KEY$3;
+  var EVENT_SHOWN = "shown" + EVENT_KEY$3;
+  var EVENT_HIDE = "hide" + EVENT_KEY$3;
+  var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
+  var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
+  var CLASS_NAME_SHOW$1 = 'show';
+  var CLASS_NAME_COLLAPSE = 'collapse';
+  var CLASS_NAME_COLLAPSING = 'collapsing';
+  var CLASS_NAME_COLLAPSED = 'collapsed';
+  var DIMENSION_WIDTH = 'width';
+  var DIMENSION_HEIGHT = 'height';
+  var SELECTOR_ACTIVES = '.show, .collapsing';
+  var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                        if ($(this._element).hasClass(CLASS_NAME_SLIDE)) {
-                            $(nextElement).addClass(orderClassName);
-                            Util.reflow(nextElement);
-                            $(activeElement).addClass(directionalClassName);
-                            $(nextElement).addClass(directionalClassName);
-                            var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
-
-                            if (nextElementInterval) {
-                                this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
-                                this._config.interval = nextElementInterval;
-                            } else {
-                                this._config.interval = this._config.defaultInterval || this._config.interval;
-                            }
+  var Collapse = /*#__PURE__*/function () {
+    function Collapse(element, config) {
+      this._isTransitioning = false;
+      this._element = element;
+      this._config = this._getConfig(config);
+      this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
+      var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
+
+      for (var i = 0, len = toggleList.length; i < len; i++) {
+        var elem = toggleList[i];
+        var selector = Util.getSelectorFromElement(elem);
+        var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
+          return foundElem === element;
+        });
+
+        if (selector !== null && filterElement.length > 0) {
+          this._selector = selector;
+
+          this._triggerArray.push(elem);
+        }
+      }
 
-                            var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
-                            $(activeElement).one(Util.TRANSITION_END, function () {
-                                $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
-                                $(activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
-                                _this4._isSliding = false;
-                                setTimeout(function () {
-                                    return $(_this4._element).trigger(slidEvent);
-                                }, 0);
-                            }).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            $(activeElement).removeClass(CLASS_NAME_ACTIVE$1);
-                            $(nextElement).addClass(CLASS_NAME_ACTIVE$1);
-                            this._isSliding = false;
-                            $(this._element).trigger(slidEvent);
-                        }
+      this._parent = this._config.parent ? this._getParent() : null;
 
-                        if (isCycling) {
-                            this.cycle();
-                        }
-                    } // Static
-                    ;
+      if (!this._config.parent) {
+        this._addAriaAndCollapsedClass(this._element, this._triggerArray);
+      }
 
-                    Carousel._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$2);
+      if (this._config.toggle) {
+        this.toggle();
+      }
+    } // Getters
 
-                            var _config = _extends({}, Default, $(this).data());
 
-                            if (typeof config === 'object') {
-                                _config = _extends({}, _config, config);
-                            }
+    var _proto = Collapse.prototype;
 
-                            var action = typeof config === 'string' ? config : _config.slide;
+    // Public
+    _proto.toggle = function toggle() {
+      if ($(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+        this.hide();
+      } else {
+        this.show();
+      }
+    };
 
-                            if (!data) {
-                                data = new Carousel(this, _config);
-                                $(this).data(DATA_KEY$2, data);
-                            }
+    _proto.show = function show() {
+      var _this = this;
 
-                            if (typeof config === 'number') {
-                                data.to(config);
-                            } else if (typeof action === 'string') {
-                                if (typeof data[action] === 'undefined') {
-                                    throw new TypeError("No method named \"" + action + "\"");
-                                }
-
-                                data[action]();
-                            } else if (_config.interval && _config.ride) {
-                                data.pause();
-                                data.cycle();
-                            }
-                        });
-                    };
+      if (this._isTransitioning || $(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+        return;
+      }
 
-                    Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
-                        var selector = Util.getSelectorFromElement(this);
+      var actives;
+      var activesData;
 
-                        if (!selector) {
-                            return;
-                        }
+      if (this._parent) {
+        actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) {
+          if (typeof _this._config.parent === 'string') {
+            return elem.getAttribute('data-parent') === _this._config.parent;
+          }
 
-                        var target = $(selector)[0];
+          return elem.classList.contains(CLASS_NAME_COLLAPSE);
+        });
 
-                        if (!target || !$(target).hasClass(CLASS_NAME_CAROUSEL)) {
-                            return;
-                        }
+        if (actives.length === 0) {
+          actives = null;
+        }
+      }
 
-                        var config = _extends({}, $(target).data(), $(this).data());
+      if (actives) {
+        activesData = $(actives).not(this._selector).data(DATA_KEY$3);
 
-                        var slideIndex = this.getAttribute('data-slide-to');
+        if (activesData && activesData._isTransitioning) {
+          return;
+        }
+      }
 
-                        if (slideIndex) {
-                            config.interval = false;
-                        }
+      var startEvent = $.Event(EVENT_SHOW);
+      $(this._element).trigger(startEvent);
 
-                        Carousel._jQueryInterface.call($(target), config);
+      if (startEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                        if (slideIndex) {
-                            $(target).data(DATA_KEY$2).to(slideIndex);
-                        }
+      if (actives) {
+        Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');
 
-                        event.preventDefault();
-                    };
+        if (!activesData) {
+          $(actives).data(DATA_KEY$3, null);
+        }
+      }
 
-                    _createClass(Carousel, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$2;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default;
-                        }
-                    }]);
+      var dimension = this._getDimension();
 
-                    return Carousel;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+      $(this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
+      this._element.style[dimension] = 0;
 
+      if (this._triggerArray.length) {
+        $(this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
+      }
 
-                $(document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
-                $(window).on(EVENT_LOAD_DATA_API$1, function () {
-                    var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
+      this.setTransitioning(true);
 
-                    for (var i = 0, len = carousels.length; i < len; i++) {
-                        var $carousel = $(carousels[i]);
+      var complete = function complete() {
+        $(_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
+        _this._element.style[dimension] = '';
 
-                        Carousel._jQueryInterface.call($carousel, $carousel.data());
-                    }
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$2] = Carousel._jQueryInterface;
-                $.fn[NAME$2].Constructor = Carousel;
-
-                $.fn[NAME$2].noConflict = function () {
-                    $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
-                    return Carousel._jQueryInterface;
-                };
+        _this.setTransitioning(false);
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$3 = 'collapse';
-                var VERSION$3 = '4.5.2';
-                var DATA_KEY$3 = 'bs.collapse';
-                var EVENT_KEY$3 = "." + DATA_KEY$3;
-                var DATA_API_KEY$3 = '.data-api';
-                var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3];
-                var Default$1 = {
-                    toggle: true,
-                    parent: ''
-                };
-                var DefaultType$1 = {
-                    toggle: 'boolean',
-                    parent: '(string|element)'
-                };
-                var EVENT_SHOW = "show" + EVENT_KEY$3;
-                var EVENT_SHOWN = "shown" + EVENT_KEY$3;
-                var EVENT_HIDE = "hide" + EVENT_KEY$3;
-                var EVENT_HIDDEN = "hidden" + EVENT_KEY$3;
-                var EVENT_CLICK_DATA_API$3 = "click" + EVENT_KEY$3 + DATA_API_KEY$3;
-                var CLASS_NAME_SHOW$1 = 'show';
-                var CLASS_NAME_COLLAPSE = 'collapse';
-                var CLASS_NAME_COLLAPSING = 'collapsing';
-                var CLASS_NAME_COLLAPSED = 'collapsed';
-                var DIMENSION_WIDTH = 'width';
-                var DIMENSION_HEIGHT = 'height';
-                var SELECTOR_ACTIVES = '.show, .collapsing';
-                var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Collapse = /*#__PURE__*/function () {
-                    function Collapse(element, config) {
-                        this._isTransitioning = false;
-                        this._element = element;
-                        this._config = this._getConfig(config);
-                        this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
-                        var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));
-
-                        for (var i = 0, len = toggleList.length; i < len; i++) {
-                            var elem = toggleList[i];
-                            var selector = Util.getSelectorFromElement(elem);
-                            var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
-                                return foundElem === element;
-                            });
-
-                            if (selector !== null && filterElement.length > 0) {
-                                this._selector = selector;
-
-                                this._triggerArray.push(elem);
-                            }
-                        }
+        $(_this._element).trigger(EVENT_SHOWN);
+      };
 
-                        this._parent = this._config.parent ? this._getParent() : null;
+      var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
+      var scrollSize = "scroll" + capitalizedDimension;
+      var transitionDuration = Util.getTransitionDurationFromElement(this._element);
+      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+      this._element.style[dimension] = this._element[scrollSize] + "px";
+    };
 
-                        if (!this._config.parent) {
-                            this._addAriaAndCollapsedClass(this._element, this._triggerArray);
-                        }
+    _proto.hide = function hide() {
+      var _this2 = this;
 
-                        if (this._config.toggle) {
-                            this.toggle();
-                        }
-                    } // Getters
+      if (this._isTransitioning || !$(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+        return;
+      }
 
+      var startEvent = $.Event(EVENT_HIDE);
+      $(this._element).trigger(startEvent);
 
-                    var _proto = Collapse.prototype;
+      if (startEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                    // Public
-                    _proto.toggle = function toggle() {
-                        if ($(this._element).hasClass(CLASS_NAME_SHOW$1)) {
-                            this.hide();
-                        } else {
-                            this.show();
-                        }
-                    };
+      var dimension = this._getDimension();
 
-                    _proto.show = function show() {
-                        var _this = this;
+      this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
+      Util.reflow(this._element);
+      $(this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
+      var triggerArrayLength = this._triggerArray.length;
 
-                        if (this._isTransitioning || $(this._element).hasClass(CLASS_NAME_SHOW$1)) {
-                            return;
-                        }
+      if (triggerArrayLength > 0) {
+        for (var i = 0; i < triggerArrayLength; i++) {
+          var trigger = this._triggerArray[i];
+          var selector = Util.getSelectorFromElement(trigger);
 
-                        var actives;
-                        var activesData;
+          if (selector !== null) {
+            var $elem = $([].slice.call(document.querySelectorAll(selector)));
 
-                        if (this._parent) {
-                            actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) {
-                                if (typeof _this._config.parent === 'string') {
-                                    return elem.getAttribute('data-parent') === _this._config.parent;
-                                }
+            if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
+              $(trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
+            }
+          }
+        }
+      }
 
-                                return elem.classList.contains(CLASS_NAME_COLLAPSE);
-                            });
+      this.setTransitioning(true);
 
-                            if (actives.length === 0) {
-                                actives = null;
-                            }
-                        }
+      var complete = function complete() {
+        _this2.setTransitioning(false);
 
-                        if (actives) {
-                            activesData = $(actives).not(this._selector).data(DATA_KEY$3);
+        $(_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
+      };
 
-                            if (activesData && activesData._isTransitioning) {
-                                return;
-                            }
-                        }
+      this._element.style[dimension] = '';
+      var transitionDuration = Util.getTransitionDurationFromElement(this._element);
+      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+    };
 
-                        var startEvent = $.Event(EVENT_SHOW);
-                        $(this._element).trigger(startEvent);
+    _proto.setTransitioning = function setTransitioning(isTransitioning) {
+      this._isTransitioning = isTransitioning;
+    };
 
-                        if (startEvent.isDefaultPrevented()) {
-                            return;
-                        }
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY$3);
+      this._config = null;
+      this._parent = null;
+      this._element = null;
+      this._triggerArray = null;
+      this._isTransitioning = null;
+    } // Private
+    ;
 
-                        if (actives) {
-                            Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, Default$1, config);
+      config.toggle = Boolean(config.toggle); // Coerce string values
 
-                            if (!activesData) {
-                                $(actives).data(DATA_KEY$3, null);
-                            }
-                        }
+      Util.typeCheckConfig(NAME$3, config, DefaultType$1);
+      return config;
+    };
 
-                        var dimension = this._getDimension();
+    _proto._getDimension = function _getDimension() {
+      var hasWidth = $(this._element).hasClass(DIMENSION_WIDTH);
+      return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
+    };
 
-                        $(this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
-                        this._element.style[dimension] = 0;
+    _proto._getParent = function _getParent() {
+      var _this3 = this;
 
-                        if (this._triggerArray.length) {
-                            $(this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
-                        }
+      var parent;
 
-                        this.setTransitioning(true);
+      if (Util.isElement(this._config.parent)) {
+        parent = this._config.parent; // It's a jQuery object
 
-                        var complete = function complete() {
-                            $(_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
-                            _this._element.style[dimension] = '';
+        if (typeof this._config.parent.jquery !== 'undefined') {
+          parent = this._config.parent[0];
+        }
+      } else {
+        parent = document.querySelector(this._config.parent);
+      }
+
+      var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
+      var children = [].slice.call(parent.querySelectorAll(selector));
+      $(children).each(function (i, element) {
+        _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
+      });
+      return parent;
+    };
 
-                            _this.setTransitioning(false);
+    _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
+      var isOpen = $(element).hasClass(CLASS_NAME_SHOW$1);
 
-                            $(_this._element).trigger(EVENT_SHOWN);
-                        };
+      if (triggerArray.length) {
+        $(triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
+      }
+    } // Static
+    ;
 
-                        var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
-                        var scrollSize = "scroll" + capitalizedDimension;
-                        var transitionDuration = Util.getTransitionDurationFromElement(this._element);
-                        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                        this._element.style[dimension] = this._element[scrollSize] + "px";
-                    };
+    Collapse._getTargetFromElement = function _getTargetFromElement(element) {
+      var selector = Util.getSelectorFromElement(element);
+      return selector ? document.querySelector(selector) : null;
+    };
 
-                    _proto.hide = function hide() {
-                        var _this2 = this;
+    Collapse._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var $this = $(this);
+        var data = $this.data(DATA_KEY$3);
 
-                        if (this._isTransitioning || !$(this._element).hasClass(CLASS_NAME_SHOW$1)) {
-                            return;
-                        }
+        var _config = _extends({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {});
 
-                        var startEvent = $.Event(EVENT_HIDE);
-                        $(this._element).trigger(startEvent);
+        if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
+          _config.toggle = false;
+        }
 
-                        if (startEvent.isDefaultPrevented()) {
-                            return;
-                        }
+        if (!data) {
+          data = new Collapse(this, _config);
+          $this.data(DATA_KEY$3, data);
+        }
 
-                        var dimension = this._getDimension();
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                        this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
-                        Util.reflow(this._element);
-                        $(this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
-                        var triggerArrayLength = this._triggerArray.length;
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(Collapse, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$3;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$1;
+      }
+    }]);
+
+    return Collapse;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                        if (triggerArrayLength > 0) {
-                            for (var i = 0; i < triggerArrayLength; i++) {
-                                var trigger = this._triggerArray[i];
-                                var selector = Util.getSelectorFromElement(trigger);
 
-                                if (selector !== null) {
-                                    var $elem = $([].slice.call(document.querySelectorAll(selector)));
+  $(document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
+    // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
+    if (event.currentTarget.tagName === 'A') {
+      event.preventDefault();
+    }
 
-                                    if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
-                                        $(trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
-                                    }
-                                }
-                            }
-                        }
+    var $trigger = $(this);
+    var selector = Util.getSelectorFromElement(this);
+    var selectors = [].slice.call(document.querySelectorAll(selector));
+    $(selectors).each(function () {
+      var $target = $(this);
+      var data = $target.data(DATA_KEY$3);
+      var config = data ? 'toggle' : $trigger.data();
+
+      Collapse._jQueryInterface.call($target, config);
+    });
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        this.setTransitioning(true);
+  $.fn[NAME$3] = Collapse._jQueryInterface;
+  $.fn[NAME$3].Constructor = Collapse;
 
-                        var complete = function complete() {
-                            _this2.setTransitioning(false);
+  $.fn[NAME$3].noConflict = function () {
+    $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
+    return Collapse._jQueryInterface;
+  };
 
-                            $(_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
-                        };
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        this._element.style[dimension] = '';
-                        var transitionDuration = Util.getTransitionDurationFromElement(this._element);
-                        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                    };
+  var NAME$4 = 'dropdown';
+  var VERSION$4 = '4.5.2';
+  var DATA_KEY$4 = 'bs.dropdown';
+  var EVENT_KEY$4 = "." + DATA_KEY$4;
+  var DATA_API_KEY$4 = '.data-api';
+  var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4];
+  var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
+
+  var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
+
+  var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
+
+  var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
+
+  var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
+
+  var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
+
+  var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
+  var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
+  var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
+  var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
+  var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
+  var EVENT_CLICK = "click" + EVENT_KEY$4;
+  var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4;
+  var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
+  var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
+  var CLASS_NAME_DISABLED = 'disabled';
+  var CLASS_NAME_SHOW$2 = 'show';
+  var CLASS_NAME_DROPUP = 'dropup';
+  var CLASS_NAME_DROPRIGHT = 'dropright';
+  var CLASS_NAME_DROPLEFT = 'dropleft';
+  var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
+  var CLASS_NAME_POSITION_STATIC = 'position-static';
+  var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
+  var SELECTOR_FORM_CHILD = '.dropdown form';
+  var SELECTOR_MENU = '.dropdown-menu';
+  var SELECTOR_NAVBAR_NAV = '.navbar-nav';
+  var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
+  var PLACEMENT_TOP = 'top-start';
+  var PLACEMENT_TOPEND = 'top-end';
+  var PLACEMENT_BOTTOM = 'bottom-start';
+  var PLACEMENT_BOTTOMEND = 'bottom-end';
+  var PLACEMENT_RIGHT = 'right-start';
+  var PLACEMENT_LEFT = 'left-start';
+  var Default$2 = {
+    offset: 0,
+    flip: true,
+    boundary: 'scrollParent',
+    reference: 'toggle',
+    display: 'dynamic',
+    popperConfig: null
+  };
+  var DefaultType$2 = {
+    offset: '(number|string|function)',
+    flip: 'boolean',
+    boundary: '(string|element)',
+    reference: '(string|element)',
+    display: 'string',
+    popperConfig: '(null|object)'
+  };
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto.setTransitioning = function setTransitioning(isTransitioning) {
-                        this._isTransitioning = isTransitioning;
-                    };
+  var Dropdown = /*#__PURE__*/function () {
+    function Dropdown(element, config) {
+      this._element = element;
+      this._popper = null;
+      this._config = this._getConfig(config);
+      this._menu = this._getMenuElement();
+      this._inNavbar = this._detectNavbar();
 
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY$3);
-                        this._config = null;
-                        this._parent = null;
-                        this._element = null;
-                        this._triggerArray = null;
-                        this._isTransitioning = null;
-                    } // Private
-                    ;
+      this._addEventListeners();
+    } // Getters
 
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, Default$1, config);
-                        config.toggle = Boolean(config.toggle); // Coerce string values
 
-                        Util.typeCheckConfig(NAME$3, config, DefaultType$1);
-                        return config;
-                    };
+    var _proto = Dropdown.prototype;
 
-                    _proto._getDimension = function _getDimension() {
-                        var hasWidth = $(this._element).hasClass(DIMENSION_WIDTH);
-                        return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
-                    };
+    // Public
+    _proto.toggle = function toggle() {
+      if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) {
+        return;
+      }
 
-                    _proto._getParent = function _getParent() {
-                        var _this3 = this;
+      var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2);
 
-                        var parent;
+      Dropdown._clearMenus();
 
-                        if (Util.isElement(this._config.parent)) {
-                            parent = this._config.parent; // It's a jQuery object
+      if (isActive) {
+        return;
+      }
 
-                            if (typeof this._config.parent.jquery !== 'undefined') {
-                                parent = this._config.parent[0];
-                            }
-                        } else {
-                            parent = document.querySelector(this._config.parent);
-                        }
+      this.show(true);
+    };
 
-                        var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
-                        var children = [].slice.call(parent.querySelectorAll(selector));
-                        $(children).each(function (i, element) {
-                            _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
-                        });
-                        return parent;
-                    };
+    _proto.show = function show(usePopper) {
+      if (usePopper === void 0) {
+        usePopper = false;
+      }
 
-                    _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
-                        var isOpen = $(element).hasClass(CLASS_NAME_SHOW$1);
+      if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
+        return;
+      }
 
-                        if (triggerArray.length) {
-                            $(triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
-                        }
-                    } // Static
-                    ;
+      var relatedTarget = {
+        relatedTarget: this._element
+      };
+      var showEvent = $.Event(EVENT_SHOW$1, relatedTarget);
 
-                    Collapse._getTargetFromElement = function _getTargetFromElement(element) {
-                        var selector = Util.getSelectorFromElement(element);
-                        return selector ? document.querySelector(selector) : null;
-                    };
+      var parent = Dropdown._getParentFromElement(this._element);
 
-                    Collapse._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var $this = $(this);
-                            var data = $this.data(DATA_KEY$3);
+      $(parent).trigger(showEvent);
 
-                            var _config = _extends({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {});
+      if (showEvent.isDefaultPrevented()) {
+        return;
+      } // Disable totally Popper.js for Dropdown in Navbar
 
-                            if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
-                                _config.toggle = false;
-                            }
 
-                            if (!data) {
-                                data = new Collapse(this, _config);
-                                $this.data(DATA_KEY$3, data);
-                            }
+      if (!this._inNavbar && usePopper) {
+        /**
+         * Check for Popper dependency
+         * Popper - https://popper.js.org
+         */
+        if (typeof Popper === 'undefined') {
+          throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)');
+        }
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+        var referenceElement = this._element;
 
-                                data[config]();
-                            }
-                        });
-                    };
+        if (this._config.reference === 'parent') {
+          referenceElement = parent;
+        } else if (Util.isElement(this._config.reference)) {
+          referenceElement = this._config.reference; // Check if it's jQuery element
 
-                    _createClass(Collapse, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$3;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$1;
-                        }
-                    }]);
+          if (typeof this._config.reference.jquery !== 'undefined') {
+            referenceElement = this._config.reference[0];
+          }
+        } // If boundary is not `scrollParent`, then set position to `static`
+        // to allow the menu to "escape" the scroll parent's boundaries
+        // https://github.com/twbs/bootstrap/issues/24251
 
-                    return Collapse;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
 
+        if (this._config.boundary !== 'scrollParent') {
+          $(parent).addClass(CLASS_NAME_POSITION_STATIC);
+        }
 
-                $(document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
-                    // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
-                    if (event.currentTarget.tagName === 'A') {
-                        event.preventDefault();
-                    }
+        this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
+      } // If this is a touch-enabled device we add extra
+      // empty mouseover listeners to the body's immediate children;
+      // only needed because of broken event delegation on iOS
+      // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
 
-                    var $trigger = $(this);
-                    var selector = Util.getSelectorFromElement(this);
-                    var selectors = [].slice.call(document.querySelectorAll(selector));
-                    $(selectors).each(function () {
-                        var $target = $(this);
-                        var data = $target.data(DATA_KEY$3);
-                        var config = data ? 'toggle' : $trigger.data();
 
-                        Collapse._jQueryInterface.call($target, config);
-                    });
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$3] = Collapse._jQueryInterface;
-                $.fn[NAME$3].Constructor = Collapse;
-
-                $.fn[NAME$3].noConflict = function () {
-                    $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
-                    return Collapse._jQueryInterface;
-                };
+      if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
+        $(document.body).children().on('mouseover', null, $.noop);
+      }
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$4 = 'dropdown';
-                var VERSION$4 = '4.5.2';
-                var DATA_KEY$4 = 'bs.dropdown';
-                var EVENT_KEY$4 = "." + DATA_KEY$4;
-                var DATA_API_KEY$4 = '.data-api';
-                var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4];
-                var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
-
-                var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
-
-                var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
-
-                var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
-
-                var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
-
-                var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
-
-                var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
-                var EVENT_HIDE$1 = "hide" + EVENT_KEY$4;
-                var EVENT_HIDDEN$1 = "hidden" + EVENT_KEY$4;
-                var EVENT_SHOW$1 = "show" + EVENT_KEY$4;
-                var EVENT_SHOWN$1 = "shown" + EVENT_KEY$4;
-                var EVENT_CLICK = "click" + EVENT_KEY$4;
-                var EVENT_CLICK_DATA_API$4 = "click" + EVENT_KEY$4 + DATA_API_KEY$4;
-                var EVENT_KEYDOWN_DATA_API = "keydown" + EVENT_KEY$4 + DATA_API_KEY$4;
-                var EVENT_KEYUP_DATA_API = "keyup" + EVENT_KEY$4 + DATA_API_KEY$4;
-                var CLASS_NAME_DISABLED = 'disabled';
-                var CLASS_NAME_SHOW$2 = 'show';
-                var CLASS_NAME_DROPUP = 'dropup';
-                var CLASS_NAME_DROPRIGHT = 'dropright';
-                var CLASS_NAME_DROPLEFT = 'dropleft';
-                var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
-                var CLASS_NAME_POSITION_STATIC = 'position-static';
-                var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
-                var SELECTOR_FORM_CHILD = '.dropdown form';
-                var SELECTOR_MENU = '.dropdown-menu';
-                var SELECTOR_NAVBAR_NAV = '.navbar-nav';
-                var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
-                var PLACEMENT_TOP = 'top-start';
-                var PLACEMENT_TOPEND = 'top-end';
-                var PLACEMENT_BOTTOM = 'bottom-start';
-                var PLACEMENT_BOTTOMEND = 'bottom-end';
-                var PLACEMENT_RIGHT = 'right-start';
-                var PLACEMENT_LEFT = 'left-start';
-                var Default$2 = {
-                    offset: 0,
-                    flip: true,
-                    boundary: 'scrollParent',
-                    reference: 'toggle',
-                    display: 'dynamic',
-                    popperConfig: null
-                };
-                var DefaultType$2 = {
-                    offset: '(number|string|function)',
-                    flip: 'boolean',
-                    boundary: '(string|element)',
-                    reference: '(string|element)',
-                    display: 'string',
-                    popperConfig: '(null|object)'
-                };
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Dropdown = /*#__PURE__*/function () {
-                    function Dropdown(element, config) {
-                        this._element = element;
-                        this._popper = null;
-                        this._config = this._getConfig(config);
-                        this._menu = this._getMenuElement();
-                        this._inNavbar = this._detectNavbar();
-
-                        this._addEventListeners();
-                    } // Getters
-
-
-                    var _proto = Dropdown.prototype;
-
-                    // Public
-                    _proto.toggle = function toggle() {
-                        if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) {
-                            return;
-                        }
+      this._element.focus();
 
-                        var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2);
+      this._element.setAttribute('aria-expanded', true);
 
-                        Dropdown._clearMenus();
+      $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
+      $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget));
+    };
 
-                        if (isActive) {
-                            return;
-                        }
+    _proto.hide = function hide() {
+      if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
+        return;
+      }
 
-                        this.show(true);
-                    };
+      var relatedTarget = {
+        relatedTarget: this._element
+      };
+      var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
 
-                    _proto.show = function show(usePopper) {
-                        if (usePopper === void 0) {
-                            usePopper = false;
-                        }
+      var parent = Dropdown._getParentFromElement(this._element);
 
-                        if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
-                            return;
-                        }
+      $(parent).trigger(hideEvent);
 
-                        var relatedTarget = {
-                            relatedTarget: this._element
-                        };
-                        var showEvent = $.Event(EVENT_SHOW$1, relatedTarget);
+      if (hideEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                        var parent = Dropdown._getParentFromElement(this._element);
+      if (this._popper) {
+        this._popper.destroy();
+      }
 
-                        $(parent).trigger(showEvent);
+      $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
+      $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
+    };
 
-                        if (showEvent.isDefaultPrevented()) {
-                            return;
-                        } // Disable totally Popper.js for Dropdown in Navbar
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY$4);
+      $(this._element).off(EVENT_KEY$4);
+      this._element = null;
+      this._menu = null;
 
+      if (this._popper !== null) {
+        this._popper.destroy();
 
-                        if (!this._inNavbar && usePopper) {
-                            /**
-                             * Check for Popper dependency
-                             * Popper - https://popper.js.org
-                             */
-                            if (typeof Popper === 'undefined') {
-                                throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)');
-                            }
+        this._popper = null;
+      }
+    };
 
-                            var referenceElement = this._element;
+    _proto.update = function update() {
+      this._inNavbar = this._detectNavbar();
 
-                            if (this._config.reference === 'parent') {
-                                referenceElement = parent;
-                            } else if (Util.isElement(this._config.reference)) {
-                                referenceElement = this._config.reference; // Check if it's jQuery element
+      if (this._popper !== null) {
+        this._popper.scheduleUpdate();
+      }
+    } // Private
+    ;
 
-                                if (typeof this._config.reference.jquery !== 'undefined') {
-                                    referenceElement = this._config.reference[0];
-                                }
-                            } // If boundary is not `scrollParent`, then set position to `static`
-                            // to allow the menu to "escape" the scroll parent's boundaries
-                            // https://github.com/twbs/bootstrap/issues/24251
+    _proto._addEventListeners = function _addEventListeners() {
+      var _this = this;
 
+      $(this._element).on(EVENT_CLICK, function (event) {
+        event.preventDefault();
+        event.stopPropagation();
 
-                            if (this._config.boundary !== 'scrollParent') {
-                                $(parent).addClass(CLASS_NAME_POSITION_STATIC);
-                            }
+        _this.toggle();
+      });
+    };
 
-                            this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
-                        } // If this is a touch-enabled device we add extra
-                        // empty mouseover listeners to the body's immediate children;
-                        // only needed because of broken event delegation on iOS
-                        // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, this.constructor.Default, $(this._element).data(), config);
+      Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
+      return config;
+    };
 
+    _proto._getMenuElement = function _getMenuElement() {
+      if (!this._menu) {
+        var parent = Dropdown._getParentFromElement(this._element);
 
-                        if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
-                            $(document.body).children().on('mouseover', null, $.noop);
-                        }
+        if (parent) {
+          this._menu = parent.querySelector(SELECTOR_MENU);
+        }
+      }
+
+      return this._menu;
+    };
+
+    _proto._getPlacement = function _getPlacement() {
+      var $parentDropdown = $(this._element.parentNode);
+      var placement = PLACEMENT_BOTTOM; // Handle dropup
+
+      if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
+        placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
+      } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
+        placement = PLACEMENT_RIGHT;
+      } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
+        placement = PLACEMENT_LEFT;
+      } else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
+        placement = PLACEMENT_BOTTOMEND;
+      }
+
+      return placement;
+    };
+
+    _proto._detectNavbar = function _detectNavbar() {
+      return $(this._element).closest('.navbar').length > 0;
+    };
+
+    _proto._getOffset = function _getOffset() {
+      var _this2 = this;
+
+      var offset = {};
+
+      if (typeof this._config.offset === 'function') {
+        offset.fn = function (data) {
+          data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
+          return data;
+        };
+      } else {
+        offset.offset = this._config.offset;
+      }
+
+      return offset;
+    };
+
+    _proto._getPopperConfig = function _getPopperConfig() {
+      var popperConfig = {
+        placement: this._getPlacement(),
+        modifiers: {
+          offset: this._getOffset(),
+          flip: {
+            enabled: this._config.flip
+          },
+          preventOverflow: {
+            boundariesElement: this._config.boundary
+          }
+        }
+      }; // Disable Popper.js if we have a static display
 
-                        this._element.focus();
+      if (this._config.display === 'static') {
+        popperConfig.modifiers.applyStyle = {
+          enabled: false
+        };
+      }
 
-                        this._element.setAttribute('aria-expanded', true);
+      return _extends({}, popperConfig, this._config.popperConfig);
+    } // Static
+    ;
 
-                        $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
-                        $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget));
-                    };
+    Dropdown._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$4);
 
-                    _proto.hide = function hide() {
-                        if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
-                            return;
-                        }
+        var _config = typeof config === 'object' ? config : null;
 
-                        var relatedTarget = {
-                            relatedTarget: this._element
-                        };
-                        var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
+        if (!data) {
+          data = new Dropdown(this, _config);
+          $(this).data(DATA_KEY$4, data);
+        }
 
-                        var parent = Dropdown._getParentFromElement(this._element);
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                        $(parent).trigger(hideEvent);
+          data[config]();
+        }
+      });
+    };
 
-                        if (hideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+    Dropdown._clearMenus = function _clearMenus(event) {
+      if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
+        return;
+      }
 
-                        if (this._popper) {
-                            this._popper.destroy();
-                        }
+      var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2));
 
-                        $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
-                        $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
-                    };
+      for (var i = 0, len = toggles.length; i < len; i++) {
+        var parent = Dropdown._getParentFromElement(toggles[i]);
 
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY$4);
-                        $(this._element).off(EVENT_KEY$4);
-                        this._element = null;
-                        this._menu = null;
+        var context = $(toggles[i]).data(DATA_KEY$4);
+        var relatedTarget = {
+          relatedTarget: toggles[i]
+        };
 
-                        if (this._popper !== null) {
-                            this._popper.destroy();
+        if (event && event.type === 'click') {
+          relatedTarget.clickEvent = event;
+        }
 
-                            this._popper = null;
-                        }
-                    };
+        if (!context) {
+          continue;
+        }
 
-                    _proto.update = function update() {
-                        this._inNavbar = this._detectNavbar();
+        var dropdownMenu = context._menu;
 
-                        if (this._popper !== null) {
-                            this._popper.scheduleUpdate();
-                        }
-                    } // Private
-                    ;
+        if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) {
+          continue;
+        }
 
-                    _proto._addEventListeners = function _addEventListeners() {
-                        var _this = this;
+        if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {
+          continue;
+        }
 
-                        $(this._element).on(EVENT_CLICK, function (event) {
-                            event.preventDefault();
-                            event.stopPropagation();
+        var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
+        $(parent).trigger(hideEvent);
 
-                            _this.toggle();
-                        });
-                    };
+        if (hideEvent.isDefaultPrevented()) {
+          continue;
+        } // If this is a touch-enabled device we remove the extra
+        // empty mouseover listeners we added for iOS support
 
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, this.constructor.Default, $(this._element).data(), config);
-                        Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
-                        return config;
-                    };
 
-                    _proto._getMenuElement = function _getMenuElement() {
-                        if (!this._menu) {
-                            var parent = Dropdown._getParentFromElement(this._element);
+        if ('ontouchstart' in document.documentElement) {
+          $(document.body).children().off('mouseover', null, $.noop);
+        }
 
-                            if (parent) {
-                                this._menu = parent.querySelector(SELECTOR_MENU);
-                            }
-                        }
+        toggles[i].setAttribute('aria-expanded', 'false');
 
-                        return this._menu;
-                    };
-
-                    _proto._getPlacement = function _getPlacement() {
-                        var $parentDropdown = $(this._element.parentNode);
-                        var placement = PLACEMENT_BOTTOM; // Handle dropup
-
-                        if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
-                            placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
-                        } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
-                            placement = PLACEMENT_RIGHT;
-                        } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
-                            placement = PLACEMENT_LEFT;
-                        } else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
-                            placement = PLACEMENT_BOTTOMEND;
-                        }
+        if (context._popper) {
+          context._popper.destroy();
+        }
 
-                        return placement;
-                    };
+        $(dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
+        $(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
+      }
+    };
+
+    Dropdown._getParentFromElement = function _getParentFromElement(element) {
+      var parent;
+      var selector = Util.getSelectorFromElement(element);
+
+      if (selector) {
+        parent = document.querySelector(selector);
+      }
+
+      return parent || element.parentNode;
+    } // eslint-disable-next-line complexity
+    ;
+
+    Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
+      // If not input/textarea:
+      //  - And not a key in REGEXP_KEYDOWN => not a dropdown command
+      // If input/textarea:
+      //  - If space key => not a dropdown command
+      //  - If key is other than escape
+      //    - If key is not up or down => not a dropdown command
+      //    - If trigger inside the menu => not a dropdown command
+      if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
+        return;
+      }
+
+      if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) {
+        return;
+      }
+
+      var parent = Dropdown._getParentFromElement(this);
+
+      var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2);
+
+      if (!isActive && event.which === ESCAPE_KEYCODE) {
+        return;
+      }
+
+      event.preventDefault();
+      event.stopPropagation();
+
+      if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
+        if (event.which === ESCAPE_KEYCODE) {
+          $(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
+        }
 
-                    _proto._detectNavbar = function _detectNavbar() {
-                        return $(this._element).closest('.navbar').length > 0;
-                    };
+        $(this).trigger('click');
+        return;
+      }
 
-                    _proto._getOffset = function _getOffset() {
-                        var _this2 = this;
+      var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
+        return $(item).is(':visible');
+      });
 
-                        var offset = {};
+      if (items.length === 0) {
+        return;
+      }
+
+      var index = items.indexOf(event.target);
+
+      if (event.which === ARROW_UP_KEYCODE && index > 0) {
+        // Up
+        index--;
+      }
+
+      if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
+        // Down
+        index++;
+      }
+
+      if (index < 0) {
+        index = 0;
+      }
+
+      items[index].focus();
+    };
+
+    _createClass(Dropdown, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$4;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$2;
+      }
+    }, {
+      key: "DefaultType",
+      get: function get() {
+        return DefaultType$2;
+      }
+    }]);
+
+    return Dropdown;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                        if (typeof this._config.offset === 'function') {
-                            offset.fn = function (data) {
-                                data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
-                                return data;
-                            };
-                        } else {
-                            offset.offset = this._config.offset;
-                        }
 
-                        return offset;
-                    };
-
-                    _proto._getPopperConfig = function _getPopperConfig() {
-                        var popperConfig = {
-                            placement: this._getPlacement(),
-                            modifiers: {
-                                offset: this._getOffset(),
-                                flip: {
-                                    enabled: this._config.flip
-                                },
-                                preventOverflow: {
-                                    boundariesElement: this._config.boundary
-                                }
-                            }
-                        }; // Disable Popper.js if we have a static display
+  $(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
+    event.preventDefault();
+    event.stopPropagation();
 
-                        if (this._config.display === 'static') {
-                            popperConfig.modifiers.applyStyle = {
-                                enabled: false
-                            };
-                        }
+    Dropdown._jQueryInterface.call($(this), 'toggle');
+  }).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
+    e.stopPropagation();
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        return _extends({}, popperConfig, this._config.popperConfig);
-                    } // Static
-                    ;
+  $.fn[NAME$4] = Dropdown._jQueryInterface;
+  $.fn[NAME$4].Constructor = Dropdown;
 
-                    Dropdown._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$4);
+  $.fn[NAME$4].noConflict = function () {
+    $.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
+    return Dropdown._jQueryInterface;
+  };
 
-                            var _config = typeof config === 'object' ? config : null;
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                            if (!data) {
-                                data = new Dropdown(this, _config);
-                                $(this).data(DATA_KEY$4, data);
-                            }
+  var NAME$5 = 'modal';
+  var VERSION$5 = '4.5.2';
+  var DATA_KEY$5 = 'bs.modal';
+  var EVENT_KEY$5 = "." + DATA_KEY$5;
+  var DATA_API_KEY$5 = '.data-api';
+  var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5];
+  var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
+
+  var Default$3 = {
+    backdrop: true,
+    keyboard: true,
+    focus: true,
+    show: true
+  };
+  var DefaultType$3 = {
+    backdrop: '(boolean|string)',
+    keyboard: 'boolean',
+    focus: 'boolean',
+    show: 'boolean'
+  };
+  var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
+  var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
+  var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
+  var EVENT_SHOW$2 = "show" + EVENT_KEY$5;
+  var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
+  var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
+  var EVENT_RESIZE = "resize" + EVENT_KEY$5;
+  var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
+  var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
+  var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
+  var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
+  var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
+  var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
+  var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
+  var CLASS_NAME_BACKDROP = 'modal-backdrop';
+  var CLASS_NAME_OPEN = 'modal-open';
+  var CLASS_NAME_FADE$1 = 'fade';
+  var CLASS_NAME_SHOW$3 = 'show';
+  var CLASS_NAME_STATIC = 'modal-static';
+  var SELECTOR_DIALOG = '.modal-dialog';
+  var SELECTOR_MODAL_BODY = '.modal-body';
+  var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
+  var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
+  var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
+  var SELECTOR_STICKY_CONTENT = '.sticky-top';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+  var Modal = /*#__PURE__*/function () {
+    function Modal(element, config) {
+      this._config = this._getConfig(config);
+      this._element = element;
+      this._dialog = element.querySelector(SELECTOR_DIALOG);
+      this._backdrop = null;
+      this._isShown = false;
+      this._isBodyOverflowing = false;
+      this._ignoreBackdropClick = false;
+      this._isTransitioning = false;
+      this._scrollbarWidth = 0;
+    } // Getters
 
-                                data[config]();
-                            }
-                        });
-                    };
 
-                    Dropdown._clearMenus = function _clearMenus(event) {
-                        if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
-                            return;
-                        }
+    var _proto = Modal.prototype;
 
-                        var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2));
+    // Public
+    _proto.toggle = function toggle(relatedTarget) {
+      return this._isShown ? this.hide() : this.show(relatedTarget);
+    };
 
-                        for (var i = 0, len = toggles.length; i < len; i++) {
-                            var parent = Dropdown._getParentFromElement(toggles[i]);
+    _proto.show = function show(relatedTarget) {
+      var _this = this;
 
-                            var context = $(toggles[i]).data(DATA_KEY$4);
-                            var relatedTarget = {
-                                relatedTarget: toggles[i]
-                            };
+      if (this._isShown || this._isTransitioning) {
+        return;
+      }
 
-                            if (event && event.type === 'click') {
-                                relatedTarget.clickEvent = event;
-                            }
+      if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
+        this._isTransitioning = true;
+      }
 
-                            if (!context) {
-                                continue;
-                            }
+      var showEvent = $.Event(EVENT_SHOW$2, {
+        relatedTarget: relatedTarget
+      });
+      $(this._element).trigger(showEvent);
 
-                            var dropdownMenu = context._menu;
+      if (this._isShown || showEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                            if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) {
-                                continue;
-                            }
+      this._isShown = true;
 
-                            if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {
-                                continue;
-                            }
+      this._checkScrollbar();
 
-                            var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
-                            $(parent).trigger(hideEvent);
+      this._setScrollbar();
 
-                            if (hideEvent.isDefaultPrevented()) {
-                                continue;
-                            } // If this is a touch-enabled device we remove the extra
-                            // empty mouseover listeners we added for iOS support
+      this._adjustDialog();
 
+      this._setEscapeEvent();
 
-                            if ('ontouchstart' in document.documentElement) {
-                                $(document.body).children().off('mouseover', null, $.noop);
-                            }
+      this._setResizeEvent();
 
-                            toggles[i].setAttribute('aria-expanded', 'false');
+      $(this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
+        return _this.hide(event);
+      });
+      $(this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
+        $(_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
+          if ($(event.target).is(_this._element)) {
+            _this._ignoreBackdropClick = true;
+          }
+        });
+      });
 
-                            if (context._popper) {
-                                context._popper.destroy();
-                            }
+      this._showBackdrop(function () {
+        return _this._showElement(relatedTarget);
+      });
+    };
 
-                            $(dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
-                            $(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
-                        }
-                    };
+    _proto.hide = function hide(event) {
+      var _this2 = this;
 
-                    Dropdown._getParentFromElement = function _getParentFromElement(element) {
-                        var parent;
-                        var selector = Util.getSelectorFromElement(element);
+      if (event) {
+        event.preventDefault();
+      }
 
-                        if (selector) {
-                            parent = document.querySelector(selector);
-                        }
+      if (!this._isShown || this._isTransitioning) {
+        return;
+      }
 
-                        return parent || element.parentNode;
-                    } // eslint-disable-next-line complexity
-                    ;
-
-                    Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
-                        // If not input/textarea:
-                        //  - And not a key in REGEXP_KEYDOWN => not a dropdown command
-                        // If input/textarea:
-                        //  - If space key => not a dropdown command
-                        //  - If key is other than escape
-                        //    - If key is not up or down => not a dropdown command
-                        //    - If trigger inside the menu => not a dropdown command
-                        if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
-                            return;
-                        }
+      var hideEvent = $.Event(EVENT_HIDE$2);
+      $(this._element).trigger(hideEvent);
 
-                        if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) {
-                            return;
-                        }
+      if (!this._isShown || hideEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                        var parent = Dropdown._getParentFromElement(this);
+      this._isShown = false;
+      var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
 
-                        var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2);
+      if (transition) {
+        this._isTransitioning = true;
+      }
 
-                        if (!isActive && event.which === ESCAPE_KEYCODE) {
-                            return;
-                        }
+      this._setEscapeEvent();
 
-                        event.preventDefault();
-                        event.stopPropagation();
+      this._setResizeEvent();
 
-                        if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
-                            if (event.which === ESCAPE_KEYCODE) {
-                                $(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
-                            }
+      $(document).off(EVENT_FOCUSIN);
+      $(this._element).removeClass(CLASS_NAME_SHOW$3);
+      $(this._element).off(EVENT_CLICK_DISMISS);
+      $(this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
 
-                            $(this).trigger('click');
-                            return;
-                        }
+      if (transition) {
+        var transitionDuration = Util.getTransitionDurationFromElement(this._element);
+        $(this._element).one(Util.TRANSITION_END, function (event) {
+          return _this2._hideModal(event);
+        }).emulateTransitionEnd(transitionDuration);
+      } else {
+        this._hideModal();
+      }
+    };
 
-                        var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
-                            return $(item).is(':visible');
-                        });
+    _proto.dispose = function dispose() {
+      [window, this._element, this._dialog].forEach(function (htmlElement) {
+        return $(htmlElement).off(EVENT_KEY$5);
+      });
+      /**
+       * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
+       * Do not move `document` in `htmlElements` array
+       * It will remove `EVENT_CLICK_DATA_API` event that should remain
+       */
+
+      $(document).off(EVENT_FOCUSIN);
+      $.removeData(this._element, DATA_KEY$5);
+      this._config = null;
+      this._element = null;
+      this._dialog = null;
+      this._backdrop = null;
+      this._isShown = null;
+      this._isBodyOverflowing = null;
+      this._ignoreBackdropClick = null;
+      this._isTransitioning = null;
+      this._scrollbarWidth = null;
+    };
+
+    _proto.handleUpdate = function handleUpdate() {
+      this._adjustDialog();
+    } // Private
+    ;
+
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, Default$3, config);
+      Util.typeCheckConfig(NAME$5, config, DefaultType$3);
+      return config;
+    };
+
+    _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
+      var _this3 = this;
+
+      if (this._config.backdrop === 'static') {
+        var hideEventPrevented = $.Event(EVENT_HIDE_PREVENTED);
+        $(this._element).trigger(hideEventPrevented);
+
+        if (hideEventPrevented.defaultPrevented) {
+          return;
+        }
 
-                        if (items.length === 0) {
-                            return;
-                        }
+        var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
 
-                        var index = items.indexOf(event.target);
+        if (!isModalOverflowing) {
+          this._element.style.overflowY = 'hidden';
+        }
 
-                        if (event.which === ARROW_UP_KEYCODE && index > 0) {
-                            // Up
-                            index--;
-                        }
+        this._element.classList.add(CLASS_NAME_STATIC);
 
-                        if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
-                            // Down
-                            index++;
-                        }
+        var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
+        $(this._element).off(Util.TRANSITION_END);
+        $(this._element).one(Util.TRANSITION_END, function () {
+          _this3._element.classList.remove(CLASS_NAME_STATIC);
 
-                        if (index < 0) {
-                            index = 0;
-                        }
+          if (!isModalOverflowing) {
+            $(_this3._element).one(Util.TRANSITION_END, function () {
+              _this3._element.style.overflowY = '';
+            }).emulateTransitionEnd(_this3._element, modalTransitionDuration);
+          }
+        }).emulateTransitionEnd(modalTransitionDuration);
 
-                        items[index].focus();
-                    };
+        this._element.focus();
+      } else {
+        this.hide();
+      }
+    };
 
-                    _createClass(Dropdown, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$4;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$2;
-                        }
-                    }, {
-                        key: "DefaultType",
-                        get: function get() {
-                            return DefaultType$2;
-                        }
-                    }]);
+    _proto._showElement = function _showElement(relatedTarget) {
+      var _this4 = this;
 
-                    return Dropdown;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+      var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
+      var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
 
+      if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
+        // Don't move modal's DOM position
+        document.body.appendChild(this._element);
+      }
 
-                $(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
-                    event.preventDefault();
-                    event.stopPropagation();
+      this._element.style.display = 'block';
 
-                    Dropdown._jQueryInterface.call($(this), 'toggle');
-                }).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
-                    e.stopPropagation();
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$4] = Dropdown._jQueryInterface;
-                $.fn[NAME$4].Constructor = Dropdown;
-
-                $.fn[NAME$4].noConflict = function () {
-                    $.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
-                    return Dropdown._jQueryInterface;
-                };
+      this._element.removeAttribute('aria-hidden');
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$5 = 'modal';
-                var VERSION$5 = '4.5.2';
-                var DATA_KEY$5 = 'bs.modal';
-                var EVENT_KEY$5 = "." + DATA_KEY$5;
-                var DATA_API_KEY$5 = '.data-api';
-                var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5];
-                var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
-
-                var Default$3 = {
-                    backdrop: true,
-                    keyboard: true,
-                    focus: true,
-                    show: true
-                };
-                var DefaultType$3 = {
-                    backdrop: '(boolean|string)',
-                    keyboard: 'boolean',
-                    focus: 'boolean',
-                    show: 'boolean'
-                };
-                var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
-                var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
-                var EVENT_HIDDEN$2 = "hidden" + EVENT_KEY$5;
-                var EVENT_SHOW$2 = "show" + EVENT_KEY$5;
-                var EVENT_SHOWN$2 = "shown" + EVENT_KEY$5;
-                var EVENT_FOCUSIN = "focusin" + EVENT_KEY$5;
-                var EVENT_RESIZE = "resize" + EVENT_KEY$5;
-                var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY$5;
-                var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY$5;
-                var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY$5;
-                var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY$5;
-                var EVENT_CLICK_DATA_API$5 = "click" + EVENT_KEY$5 + DATA_API_KEY$5;
-                var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
-                var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
-                var CLASS_NAME_BACKDROP = 'modal-backdrop';
-                var CLASS_NAME_OPEN = 'modal-open';
-                var CLASS_NAME_FADE$1 = 'fade';
-                var CLASS_NAME_SHOW$3 = 'show';
-                var CLASS_NAME_STATIC = 'modal-static';
-                var SELECTOR_DIALOG = '.modal-dialog';
-                var SELECTOR_MODAL_BODY = '.modal-body';
-                var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
-                var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
-                var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
-                var SELECTOR_STICKY_CONTENT = '.sticky-top';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Modal = /*#__PURE__*/function () {
-                    function Modal(element, config) {
-                        this._config = this._getConfig(config);
-                        this._element = element;
-                        this._dialog = element.querySelector(SELECTOR_DIALOG);
-                        this._backdrop = null;
-                        this._isShown = false;
-                        this._isBodyOverflowing = false;
-                        this._ignoreBackdropClick = false;
-                        this._isTransitioning = false;
-                        this._scrollbarWidth = 0;
-                    } // Getters
-
-
-                    var _proto = Modal.prototype;
-
-                    // Public
-                    _proto.toggle = function toggle(relatedTarget) {
-                        return this._isShown ? this.hide() : this.show(relatedTarget);
-                    };
-
-                    _proto.show = function show(relatedTarget) {
-                        var _this = this;
-
-                        if (this._isShown || this._isTransitioning) {
-                            return;
-                        }
+      this._element.setAttribute('aria-modal', true);
 
-                        if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
-                            this._isTransitioning = true;
-                        }
+      this._element.setAttribute('role', 'dialog');
 
-                        var showEvent = $.Event(EVENT_SHOW$2, {
-                            relatedTarget: relatedTarget
-                        });
-                        $(this._element).trigger(showEvent);
+      if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
+        modalBody.scrollTop = 0;
+      } else {
+        this._element.scrollTop = 0;
+      }
 
-                        if (this._isShown || showEvent.isDefaultPrevented()) {
-                            return;
-                        }
+      if (transition) {
+        Util.reflow(this._element);
+      }
 
-                        this._isShown = true;
+      $(this._element).addClass(CLASS_NAME_SHOW$3);
 
-                        this._checkScrollbar();
+      if (this._config.focus) {
+        this._enforceFocus();
+      }
 
-                        this._setScrollbar();
+      var shownEvent = $.Event(EVENT_SHOWN$2, {
+        relatedTarget: relatedTarget
+      });
 
-                        this._adjustDialog();
+      var transitionComplete = function transitionComplete() {
+        if (_this4._config.focus) {
+          _this4._element.focus();
+        }
 
-                        this._setEscapeEvent();
+        _this4._isTransitioning = false;
+        $(_this4._element).trigger(shownEvent);
+      };
+
+      if (transition) {
+        var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
+        $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
+      } else {
+        transitionComplete();
+      }
+    };
+
+    _proto._enforceFocus = function _enforceFocus() {
+      var _this5 = this;
+
+      $(document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
+      .on(EVENT_FOCUSIN, function (event) {
+        if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
+          _this5._element.focus();
+        }
+      });
+    };
 
-                        this._setResizeEvent();
+    _proto._setEscapeEvent = function _setEscapeEvent() {
+      var _this6 = this;
 
-                        $(this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
-                            return _this.hide(event);
-                        });
-                        $(this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
-                            $(_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
-                                if ($(event.target).is(_this._element)) {
-                                    _this._ignoreBackdropClick = true;
-                                }
-                            });
-                        });
+      if (this._isShown) {
+        $(this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
+          if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
+            event.preventDefault();
 
-                        this._showBackdrop(function () {
-                            return _this._showElement(relatedTarget);
-                        });
-                    };
+            _this6.hide();
+          } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
+            _this6._triggerBackdropTransition();
+          }
+        });
+      } else if (!this._isShown) {
+        $(this._element).off(EVENT_KEYDOWN_DISMISS);
+      }
+    };
 
-                    _proto.hide = function hide(event) {
-                        var _this2 = this;
+    _proto._setResizeEvent = function _setResizeEvent() {
+      var _this7 = this;
 
-                        if (event) {
-                            event.preventDefault();
-                        }
+      if (this._isShown) {
+        $(window).on(EVENT_RESIZE, function (event) {
+          return _this7.handleUpdate(event);
+        });
+      } else {
+        $(window).off(EVENT_RESIZE);
+      }
+    };
 
-                        if (!this._isShown || this._isTransitioning) {
-                            return;
-                        }
+    _proto._hideModal = function _hideModal() {
+      var _this8 = this;
 
-                        var hideEvent = $.Event(EVENT_HIDE$2);
-                        $(this._element).trigger(hideEvent);
+      this._element.style.display = 'none';
 
-                        if (!this._isShown || hideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+      this._element.setAttribute('aria-hidden', true);
 
-                        this._isShown = false;
-                        var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
+      this._element.removeAttribute('aria-modal');
 
-                        if (transition) {
-                            this._isTransitioning = true;
-                        }
+      this._element.removeAttribute('role');
 
-                        this._setEscapeEvent();
+      this._isTransitioning = false;
 
-                        this._setResizeEvent();
+      this._showBackdrop(function () {
+        $(document.body).removeClass(CLASS_NAME_OPEN);
 
-                        $(document).off(EVENT_FOCUSIN);
-                        $(this._element).removeClass(CLASS_NAME_SHOW$3);
-                        $(this._element).off(EVENT_CLICK_DISMISS);
-                        $(this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
+        _this8._resetAdjustments();
 
-                        if (transition) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(this._element);
-                            $(this._element).one(Util.TRANSITION_END, function (event) {
-                                return _this2._hideModal(event);
-                            }).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            this._hideModal();
-                        }
-                    };
+        _this8._resetScrollbar();
 
-                    _proto.dispose = function dispose() {
-                        [window, this._element, this._dialog].forEach(function (htmlElement) {
-                            return $(htmlElement).off(EVENT_KEY$5);
-                        });
-                        /**
-                         * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
-                         * Do not move `document` in `htmlElements` array
-                         * It will remove `EVENT_CLICK_DATA_API` event that should remain
-                         */
-
-                        $(document).off(EVENT_FOCUSIN);
-                        $.removeData(this._element, DATA_KEY$5);
-                        this._config = null;
-                        this._element = null;
-                        this._dialog = null;
-                        this._backdrop = null;
-                        this._isShown = null;
-                        this._isBodyOverflowing = null;
-                        this._ignoreBackdropClick = null;
-                        this._isTransitioning = null;
-                        this._scrollbarWidth = null;
-                    };
-
-                    _proto.handleUpdate = function handleUpdate() {
-                        this._adjustDialog();
-                    } // Private
-                    ;
-
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, Default$3, config);
-                        Util.typeCheckConfig(NAME$5, config, DefaultType$3);
-                        return config;
-                    };
-
-                    _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
-                        var _this3 = this;
-
-                        if (this._config.backdrop === 'static') {
-                            var hideEventPrevented = $.Event(EVENT_HIDE_PREVENTED);
-                            $(this._element).trigger(hideEventPrevented);
-
-                            if (hideEventPrevented.defaultPrevented) {
-                                return;
-                            }
+        $(_this8._element).trigger(EVENT_HIDDEN$2);
+      });
+    };
 
-                            var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
+    _proto._removeBackdrop = function _removeBackdrop() {
+      if (this._backdrop) {
+        $(this._backdrop).remove();
+        this._backdrop = null;
+      }
+    };
 
-                            if (!isModalOverflowing) {
-                                this._element.style.overflowY = 'hidden';
-                            }
+    _proto._showBackdrop = function _showBackdrop(callback) {
+      var _this9 = this;
 
-                            this._element.classList.add(CLASS_NAME_STATIC);
+      var animate = $(this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
 
-                            var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
-                            $(this._element).off(Util.TRANSITION_END);
-                            $(this._element).one(Util.TRANSITION_END, function () {
-                                _this3._element.classList.remove(CLASS_NAME_STATIC);
+      if (this._isShown && this._config.backdrop) {
+        this._backdrop = document.createElement('div');
+        this._backdrop.className = CLASS_NAME_BACKDROP;
 
-                                if (!isModalOverflowing) {
-                                    $(_this3._element).one(Util.TRANSITION_END, function () {
-                                        _this3._element.style.overflowY = '';
-                                    }).emulateTransitionEnd(_this3._element, modalTransitionDuration);
-                                }
-                            }).emulateTransitionEnd(modalTransitionDuration);
+        if (animate) {
+          this._backdrop.classList.add(animate);
+        }
 
-                            this._element.focus();
-                        } else {
-                            this.hide();
-                        }
-                    };
+        $(this._backdrop).appendTo(document.body);
+        $(this._element).on(EVENT_CLICK_DISMISS, function (event) {
+          if (_this9._ignoreBackdropClick) {
+            _this9._ignoreBackdropClick = false;
+            return;
+          }
 
-                    _proto._showElement = function _showElement(relatedTarget) {
-                        var _this4 = this;
+          if (event.target !== event.currentTarget) {
+            return;
+          }
 
-                        var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
-                        var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
+          _this9._triggerBackdropTransition();
+        });
 
-                        if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
-                            // Don't move modal's DOM position
-                            document.body.appendChild(this._element);
-                        }
+        if (animate) {
+          Util.reflow(this._backdrop);
+        }
 
-                        this._element.style.display = 'block';
+        $(this._backdrop).addClass(CLASS_NAME_SHOW$3);
 
-                        this._element.removeAttribute('aria-hidden');
+        if (!callback) {
+          return;
+        }
 
-                        this._element.setAttribute('aria-modal', true);
+        if (!animate) {
+          callback();
+          return;
+        }
 
-                        this._element.setAttribute('role', 'dialog');
+        var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
+        $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
+      } else if (!this._isShown && this._backdrop) {
+        $(this._backdrop).removeClass(CLASS_NAME_SHOW$3);
 
-                        if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
-                            modalBody.scrollTop = 0;
-                        } else {
-                            this._element.scrollTop = 0;
-                        }
+        var callbackRemove = function callbackRemove() {
+          _this9._removeBackdrop();
 
-                        if (transition) {
-                            Util.reflow(this._element);
-                        }
+          if (callback) {
+            callback();
+          }
+        };
 
-                        $(this._element).addClass(CLASS_NAME_SHOW$3);
+        if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
+          var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
 
-                        if (this._config.focus) {
-                            this._enforceFocus();
-                        }
+          $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
+        } else {
+          callbackRemove();
+        }
+      } else if (callback) {
+        callback();
+      }
+    } // ----------------------------------------------------------------------
+    // the following methods are used to handle overflowing modals
+    // todo (fat): these should probably be refactored out of modal.js
+    // ----------------------------------------------------------------------
+    ;
+
+    _proto._adjustDialog = function _adjustDialog() {
+      var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
+
+      if (!this._isBodyOverflowing && isModalOverflowing) {
+        this._element.style.paddingLeft = this._scrollbarWidth + "px";
+      }
+
+      if (this._isBodyOverflowing && !isModalOverflowing) {
+        this._element.style.paddingRight = this._scrollbarWidth + "px";
+      }
+    };
+
+    _proto._resetAdjustments = function _resetAdjustments() {
+      this._element.style.paddingLeft = '';
+      this._element.style.paddingRight = '';
+    };
+
+    _proto._checkScrollbar = function _checkScrollbar() {
+      var rect = document.body.getBoundingClientRect();
+      this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth;
+      this._scrollbarWidth = this._getScrollbarWidth();
+    };
+
+    _proto._setScrollbar = function _setScrollbar() {
+      var _this10 = this;
+
+      if (this._isBodyOverflowing) {
+        // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
+        //   while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
+        var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
+        var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
+
+        $(fixedContent).each(function (index, element) {
+          var actualPadding = element.style.paddingRight;
+          var calculatedPadding = $(element).css('padding-right');
+          $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
+        }); // Adjust sticky content margin
+
+        $(stickyContent).each(function (index, element) {
+          var actualMargin = element.style.marginRight;
+          var calculatedMargin = $(element).css('margin-right');
+          $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
+        }); // Adjust body padding
+
+        var actualPadding = document.body.style.paddingRight;
+        var calculatedPadding = $(document.body).css('padding-right');
+        $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
+      }
+
+      $(document.body).addClass(CLASS_NAME_OPEN);
+    };
+
+    _proto._resetScrollbar = function _resetScrollbar() {
+      // Restore fixed content padding
+      var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
+      $(fixedContent).each(function (index, element) {
+        var padding = $(element).data('padding-right');
+        $(element).removeData('padding-right');
+        element.style.paddingRight = padding ? padding : '';
+      }); // Restore sticky content
+
+      var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
+      $(elements).each(function (index, element) {
+        var margin = $(element).data('margin-right');
+
+        if (typeof margin !== 'undefined') {
+          $(element).css('margin-right', margin).removeData('margin-right');
+        }
+      }); // Restore body padding
+
+      var padding = $(document.body).data('padding-right');
+      $(document.body).removeData('padding-right');
+      document.body.style.paddingRight = padding ? padding : '';
+    };
+
+    _proto._getScrollbarWidth = function _getScrollbarWidth() {
+      // thx d.walsh
+      var scrollDiv = document.createElement('div');
+      scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER;
+      document.body.appendChild(scrollDiv);
+      var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
+      document.body.removeChild(scrollDiv);
+      return scrollbarWidth;
+    } // Static
+    ;
+
+    Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$5);
+
+        var _config = _extends({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {});
+
+        if (!data) {
+          data = new Modal(this, _config);
+          $(this).data(DATA_KEY$5, data);
+        }
 
-                        var shownEvent = $.Event(EVENT_SHOWN$2, {
-                            relatedTarget: relatedTarget
-                        });
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                        var transitionComplete = function transitionComplete() {
-                            if (_this4._config.focus) {
-                                _this4._element.focus();
-                            }
+          data[config](relatedTarget);
+        } else if (_config.show) {
+          data.show(relatedTarget);
+        }
+      });
+    };
+
+    _createClass(Modal, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$5;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$3;
+      }
+    }]);
+
+    return Modal;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                            _this4._isTransitioning = false;
-                            $(_this4._element).trigger(shownEvent);
-                        };
 
-                        if (transition) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
-                            $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            transitionComplete();
-                        }
-                    };
-
-                    _proto._enforceFocus = function _enforceFocus() {
-                        var _this5 = this;
-
-                        $(document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
-                            .on(EVENT_FOCUSIN, function (event) {
-                                if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
-                                    _this5._element.focus();
-                                }
-                            });
-                    };
-
-                    _proto._setEscapeEvent = function _setEscapeEvent() {
-                        var _this6 = this;
-
-                        if (this._isShown) {
-                            $(this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
-                                if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
-                                    event.preventDefault();
-
-                                    _this6.hide();
-                                } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
-                                    _this6._triggerBackdropTransition();
-                                }
-                            });
-                        } else if (!this._isShown) {
-                            $(this._element).off(EVENT_KEYDOWN_DISMISS);
-                        }
-                    };
+  $(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
+    var _this11 = this;
 
-                    _proto._setResizeEvent = function _setResizeEvent() {
-                        var _this7 = this;
+    var target;
+    var selector = Util.getSelectorFromElement(this);
 
-                        if (this._isShown) {
-                            $(window).on(EVENT_RESIZE, function (event) {
-                                return _this7.handleUpdate(event);
-                            });
-                        } else {
-                            $(window).off(EVENT_RESIZE);
-                        }
-                    };
+    if (selector) {
+      target = document.querySelector(selector);
+    }
 
-                    _proto._hideModal = function _hideModal() {
-                        var _this8 = this;
+    var config = $(target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
 
-                        this._element.style.display = 'none';
+    if (this.tagName === 'A' || this.tagName === 'AREA') {
+      event.preventDefault();
+    }
 
-                        this._element.setAttribute('aria-hidden', true);
+    var $target = $(target).one(EVENT_SHOW$2, function (showEvent) {
+      if (showEvent.isDefaultPrevented()) {
+        // Only register focus restorer if modal will actually get shown
+        return;
+      }
 
-                        this._element.removeAttribute('aria-modal');
+      $target.one(EVENT_HIDDEN$2, function () {
+        if ($(_this11).is(':visible')) {
+          _this11.focus();
+        }
+      });
+    });
+
+    Modal._jQueryInterface.call($(target), config, this);
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        this._element.removeAttribute('role');
+  $.fn[NAME$5] = Modal._jQueryInterface;
+  $.fn[NAME$5].Constructor = Modal;
 
-                        this._isTransitioning = false;
+  $.fn[NAME$5].noConflict = function () {
+    $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
+    return Modal._jQueryInterface;
+  };
 
-                        this._showBackdrop(function () {
-                            $(document.body).removeClass(CLASS_NAME_OPEN);
+  /**
+   * --------------------------------------------------------------------------
+   * Bootstrap (v4.5.2): tools/sanitizer.js
+   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+   * --------------------------------------------------------------------------
+   */
+  var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
+  var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
+  var DefaultWhitelist = {
+    // Global attributes allowed on any supplied element below.
+    '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
+    a: ['target', 'href', 'title', 'rel'],
+    area: [],
+    b: [],
+    br: [],
+    col: [],
+    code: [],
+    div: [],
+    em: [],
+    hr: [],
+    h1: [],
+    h2: [],
+    h3: [],
+    h4: [],
+    h5: [],
+    h6: [],
+    i: [],
+    img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
+    li: [],
+    ol: [],
+    p: [],
+    pre: [],
+    s: [],
+    small: [],
+    span: [],
+    sub: [],
+    sup: [],
+    strong: [],
+    u: [],
+    ul: []
+  };
+  /**
+   * A pattern that recognizes a commonly useful subset of URLs that are safe.
+   *
+   * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
+   */
 
-                            _this8._resetAdjustments();
+  var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
+  /**
+   * A pattern that matches safe data URLs. Only matches image, video and audio types.
+   *
+   * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
+   */
 
-                            _this8._resetScrollbar();
+  var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
 
-                            $(_this8._element).trigger(EVENT_HIDDEN$2);
-                        });
-                    };
+  function allowedAttribute(attr, allowedAttributeList) {
+    var attrName = attr.nodeName.toLowerCase();
 
-                    _proto._removeBackdrop = function _removeBackdrop() {
-                        if (this._backdrop) {
-                            $(this._backdrop).remove();
-                            this._backdrop = null;
-                        }
-                    };
+    if (allowedAttributeList.indexOf(attrName) !== -1) {
+      if (uriAttrs.indexOf(attrName) !== -1) {
+        return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
+      }
 
-                    _proto._showBackdrop = function _showBackdrop(callback) {
-                        var _this9 = this;
+      return true;
+    }
 
-                        var animate = $(this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
+    var regExp = allowedAttributeList.filter(function (attrRegex) {
+      return attrRegex instanceof RegExp;
+    }); // Check if a regular expression validates the attribute.
 
-                        if (this._isShown && this._config.backdrop) {
-                            this._backdrop = document.createElement('div');
-                            this._backdrop.className = CLASS_NAME_BACKDROP;
+    for (var i = 0, len = regExp.length; i < len; i++) {
+      if (attrName.match(regExp[i])) {
+        return true;
+      }
+    }
 
-                            if (animate) {
-                                this._backdrop.classList.add(animate);
-                            }
+    return false;
+  }
 
-                            $(this._backdrop).appendTo(document.body);
-                            $(this._element).on(EVENT_CLICK_DISMISS, function (event) {
-                                if (_this9._ignoreBackdropClick) {
-                                    _this9._ignoreBackdropClick = false;
-                                    return;
-                                }
+  function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
+    if (unsafeHtml.length === 0) {
+      return unsafeHtml;
+    }
 
-                                if (event.target !== event.currentTarget) {
-                                    return;
-                                }
+    if (sanitizeFn && typeof sanitizeFn === 'function') {
+      return sanitizeFn(unsafeHtml);
+    }
 
-                                _this9._triggerBackdropTransition();
-                            });
-
-                            if (animate) {
-                                Util.reflow(this._backdrop);
-                            }
-
-                            $(this._backdrop).addClass(CLASS_NAME_SHOW$3);
+    var domParser = new window.DOMParser();
+    var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
+    var whitelistKeys = Object.keys(whiteList);
+    var elements = [].slice.call(createdDocument.body.querySelectorAll('*'));
+
+    var _loop = function _loop(i, len) {
+      var el = elements[i];
+      var elName = el.nodeName.toLowerCase();
+
+      if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) {
+        el.parentNode.removeChild(el);
+        return "continue";
+      }
+
+      var attributeList = [].slice.call(el.attributes);
+      var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
+      attributeList.forEach(function (attr) {
+        if (!allowedAttribute(attr, whitelistedAttributes)) {
+          el.removeAttribute(attr.nodeName);
+        }
+      });
+    };
 
-                            if (!callback) {
-                                return;
-                            }
+    for (var i = 0, len = elements.length; i < len; i++) {
+      var _ret = _loop(i);
 
-                            if (!animate) {
-                                callback();
-                                return;
-                            }
+      if (_ret === "continue") continue;
+    }
 
-                            var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
-                            $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
-                        } else if (!this._isShown && this._backdrop) {
-                            $(this._backdrop).removeClass(CLASS_NAME_SHOW$3);
+    return createdDocument.body.innerHTML;
+  }
 
-                            var callbackRemove = function callbackRemove() {
-                                _this9._removeBackdrop();
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                                if (callback) {
-                                    callback();
-                                }
-                            };
+  var NAME$6 = 'tooltip';
+  var VERSION$6 = '4.5.2';
+  var DATA_KEY$6 = 'bs.tooltip';
+  var EVENT_KEY$6 = "." + DATA_KEY$6;
+  var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
+  var CLASS_PREFIX = 'bs-tooltip';
+  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
+  var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
+  var DefaultType$4 = {
+    animation: 'boolean',
+    template: 'string',
+    title: '(string|element|function)',
+    trigger: 'string',
+    delay: '(number|object)',
+    html: 'boolean',
+    selector: '(string|boolean)',
+    placement: '(string|function)',
+    offset: '(number|string|function)',
+    container: '(string|element|boolean)',
+    fallbackPlacement: '(string|array)',
+    boundary: '(string|element)',
+    sanitize: 'boolean',
+    sanitizeFn: '(null|function)',
+    whiteList: 'object',
+    popperConfig: '(null|object)'
+  };
+  var AttachmentMap = {
+    AUTO: 'auto',
+    TOP: 'top',
+    RIGHT: 'right',
+    BOTTOM: 'bottom',
+    LEFT: 'left'
+  };
+  var Default$4 = {
+    animation: true,
+    template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
+    trigger: 'hover focus',
+    title: '',
+    delay: 0,
+    html: false,
+    selector: false,
+    placement: 'top',
+    offset: 0,
+    container: false,
+    fallbackPlacement: 'flip',
+    boundary: 'scrollParent',
+    sanitize: true,
+    sanitizeFn: null,
+    whiteList: DefaultWhitelist,
+    popperConfig: null
+  };
+  var HOVER_STATE_SHOW = 'show';
+  var HOVER_STATE_OUT = 'out';
+  var Event = {
+    HIDE: "hide" + EVENT_KEY$6,
+    HIDDEN: "hidden" + EVENT_KEY$6,
+    SHOW: "show" + EVENT_KEY$6,
+    SHOWN: "shown" + EVENT_KEY$6,
+    INSERTED: "inserted" + EVENT_KEY$6,
+    CLICK: "click" + EVENT_KEY$6,
+    FOCUSIN: "focusin" + EVENT_KEY$6,
+    FOCUSOUT: "focusout" + EVENT_KEY$6,
+    MOUSEENTER: "mouseenter" + EVENT_KEY$6,
+    MOUSELEAVE: "mouseleave" + EVENT_KEY$6
+  };
+  var CLASS_NAME_FADE$2 = 'fade';
+  var CLASS_NAME_SHOW$4 = 'show';
+  var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
+  var SELECTOR_ARROW = '.arrow';
+  var TRIGGER_HOVER = 'hover';
+  var TRIGGER_FOCUS = 'focus';
+  var TRIGGER_CLICK = 'click';
+  var TRIGGER_MANUAL = 'manual';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                            if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
-                                var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
+  var Tooltip = /*#__PURE__*/function () {
+    function Tooltip(element, config) {
+      if (typeof Popper === 'undefined') {
+        throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
+      } // private
 
-                                $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
-                            } else {
-                                callbackRemove();
-                            }
-                        } else if (callback) {
-                            callback();
-                        }
-                    } // ----------------------------------------------------------------------
-                    // the following methods are used to handle overflowing modals
-                    // todo (fat): these should probably be refactored out of modal.js
-                    // ----------------------------------------------------------------------
-                    ;
 
-                    _proto._adjustDialog = function _adjustDialog() {
-                        var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
+      this._isEnabled = true;
+      this._timeout = 0;
+      this._hoverState = '';
+      this._activeTrigger = {};
+      this._popper = null; // Protected
 
-                        if (!this._isBodyOverflowing && isModalOverflowing) {
-                            this._element.style.paddingLeft = this._scrollbarWidth + "px";
-                        }
+      this.element = element;
+      this.config = this._getConfig(config);
+      this.tip = null;
 
-                        if (this._isBodyOverflowing && !isModalOverflowing) {
-                            this._element.style.paddingRight = this._scrollbarWidth + "px";
-                        }
-                    };
-
-                    _proto._resetAdjustments = function _resetAdjustments() {
-                        this._element.style.paddingLeft = '';
-                        this._element.style.paddingRight = '';
-                    };
-
-                    _proto._checkScrollbar = function _checkScrollbar() {
-                        var rect = document.body.getBoundingClientRect();
-                        this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth;
-                        this._scrollbarWidth = this._getScrollbarWidth();
-                    };
-
-                    _proto._setScrollbar = function _setScrollbar() {
-                        var _this10 = this;
-
-                        if (this._isBodyOverflowing) {
-                            // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
-                            //   while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
-                            var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
-                            var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
-
-                            $(fixedContent).each(function (index, element) {
-                                var actualPadding = element.style.paddingRight;
-                                var calculatedPadding = $(element).css('padding-right');
-                                $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
-                            }); // Adjust sticky content margin
-
-                            $(stickyContent).each(function (index, element) {
-                                var actualMargin = element.style.marginRight;
-                                var calculatedMargin = $(element).css('margin-right');
-                                $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
-                            }); // Adjust body padding
-
-                            var actualPadding = document.body.style.paddingRight;
-                            var calculatedPadding = $(document.body).css('padding-right');
-                            $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
-                        }
+      this._setListeners();
+    } // Getters
 
-                        $(document.body).addClass(CLASS_NAME_OPEN);
-                    };
 
-                    _proto._resetScrollbar = function _resetScrollbar() {
-                        // Restore fixed content padding
-                        var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
-                        $(fixedContent).each(function (index, element) {
-                            var padding = $(element).data('padding-right');
-                            $(element).removeData('padding-right');
-                            element.style.paddingRight = padding ? padding : '';
-                        }); // Restore sticky content
+    var _proto = Tooltip.prototype;
 
-                        var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
-                        $(elements).each(function (index, element) {
-                            var margin = $(element).data('margin-right');
+    // Public
+    _proto.enable = function enable() {
+      this._isEnabled = true;
+    };
 
-                            if (typeof margin !== 'undefined') {
-                                $(element).css('margin-right', margin).removeData('margin-right');
-                            }
-                        }); // Restore body padding
-
-                        var padding = $(document.body).data('padding-right');
-                        $(document.body).removeData('padding-right');
-                        document.body.style.paddingRight = padding ? padding : '';
-                    };
-
-                    _proto._getScrollbarWidth = function _getScrollbarWidth() {
-                        // thx d.walsh
-                        var scrollDiv = document.createElement('div');
-                        scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER;
-                        document.body.appendChild(scrollDiv);
-                        var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
-                        document.body.removeChild(scrollDiv);
-                        return scrollbarWidth;
-                    } // Static
-                    ;
-
-                    Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$5);
-
-                            var _config = _extends({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {});
-
-                            if (!data) {
-                                data = new Modal(this, _config);
-                                $(this).data(DATA_KEY$5, data);
-                            }
+    _proto.disable = function disable() {
+      this._isEnabled = false;
+    };
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+    _proto.toggleEnabled = function toggleEnabled() {
+      this._isEnabled = !this._isEnabled;
+    };
 
-                                data[config](relatedTarget);
-                            } else if (_config.show) {
-                                data.show(relatedTarget);
-                            }
-                        });
-                    };
+    _proto.toggle = function toggle(event) {
+      if (!this._isEnabled) {
+        return;
+      }
 
-                    _createClass(Modal, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$5;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$3;
-                        }
-                    }]);
+      if (event) {
+        var dataKey = this.constructor.DATA_KEY;
+        var context = $(event.currentTarget).data(dataKey);
 
-                    return Modal;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+        if (!context) {
+          context = new this.constructor(event.currentTarget, this._getDelegateConfig());
+          $(event.currentTarget).data(dataKey, context);
+        }
 
+        context._activeTrigger.click = !context._activeTrigger.click;
 
-                $(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
-                    var _this11 = this;
+        if (context._isWithActiveTrigger()) {
+          context._enter(null, context);
+        } else {
+          context._leave(null, context);
+        }
+      } else {
+        if ($(this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
+          this._leave(null, this);
 
-                    var target;
-                    var selector = Util.getSelectorFromElement(this);
+          return;
+        }
 
-                    if (selector) {
-                        target = document.querySelector(selector);
-                    }
+        this._enter(null, this);
+      }
+    };
 
-                    var config = $(target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
+    _proto.dispose = function dispose() {
+      clearTimeout(this._timeout);
+      $.removeData(this.element, this.constructor.DATA_KEY);
+      $(this.element).off(this.constructor.EVENT_KEY);
+      $(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
 
-                    if (this.tagName === 'A' || this.tagName === 'AREA') {
-                        event.preventDefault();
-                    }
+      if (this.tip) {
+        $(this.tip).remove();
+      }
 
-                    var $target = $(target).one(EVENT_SHOW$2, function (showEvent) {
-                        if (showEvent.isDefaultPrevented()) {
-                            // Only register focus restorer if modal will actually get shown
-                            return;
-                        }
+      this._isEnabled = null;
+      this._timeout = null;
+      this._hoverState = null;
+      this._activeTrigger = null;
 
-                        $target.one(EVENT_HIDDEN$2, function () {
-                            if ($(_this11).is(':visible')) {
-                                _this11.focus();
-                            }
-                        });
-                    });
+      if (this._popper) {
+        this._popper.destroy();
+      }
 
-                    Modal._jQueryInterface.call($(target), config, this);
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$5] = Modal._jQueryInterface;
-                $.fn[NAME$5].Constructor = Modal;
-
-                $.fn[NAME$5].noConflict = function () {
-                    $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
-                    return Modal._jQueryInterface;
-                };
+      this._popper = null;
+      this.element = null;
+      this.config = null;
+      this.tip = null;
+    };
 
-                /**
-                 * --------------------------------------------------------------------------
-                 * Bootstrap (v4.5.2): tools/sanitizer.js
-                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
-                 * --------------------------------------------------------------------------
-                 */
-                var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
-                var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
-                var DefaultWhitelist = {
-                    // Global attributes allowed on any supplied element below.
-                    '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
-                    a: ['target', 'href', 'title', 'rel'],
-                    area: [],
-                    b: [],
-                    br: [],
-                    col: [],
-                    code: [],
-                    div: [],
-                    em: [],
-                    hr: [],
-                    h1: [],
-                    h2: [],
-                    h3: [],
-                    h4: [],
-                    h5: [],
-                    h6: [],
-                    i: [],
-                    img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
-                    li: [],
-                    ol: [],
-                    p: [],
-                    pre: [],
-                    s: [],
-                    small: [],
-                    span: [],
-                    sub: [],
-                    sup: [],
-                    strong: [],
-                    u: [],
-                    ul: []
-                };
-                /**
-                 * A pattern that recognizes a commonly useful subset of URLs that are safe.
-                 *
-                 * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
-                 */
-
-                var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;
-                /**
-                 * A pattern that matches safe data URLs. Only matches image, video and audio types.
-                 *
-                 * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
-                 */
-
-                var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
-
-                function allowedAttribute(attr, allowedAttributeList) {
-                    var attrName = attr.nodeName.toLowerCase();
-
-                    if (allowedAttributeList.indexOf(attrName) !== -1) {
-                        if (uriAttrs.indexOf(attrName) !== -1) {
-                            return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
-                        }
+    _proto.show = function show() {
+      var _this = this;
 
-                        return true;
-                    }
+      if ($(this.element).css('display') === 'none') {
+        throw new Error('Please use show on visible elements');
+      }
 
-                    var regExp = allowedAttributeList.filter(function (attrRegex) {
-                        return attrRegex instanceof RegExp;
-                    }); // Check if a regular expression validates the attribute.
+      var showEvent = $.Event(this.constructor.Event.SHOW);
 
-                    for (var i = 0, len = regExp.length; i < len; i++) {
-                        if (attrName.match(regExp[i])) {
-                            return true;
-                        }
-                    }
+      if (this.isWithContent() && this._isEnabled) {
+        $(this.element).trigger(showEvent);
+        var shadowRoot = Util.findShadowRoot(this.element);
+        var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
 
-                    return false;
-                }
+        if (showEvent.isDefaultPrevented() || !isInTheDom) {
+          return;
+        }
 
-                function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
-                    if (unsafeHtml.length === 0) {
-                        return unsafeHtml;
-                    }
+        var tip = this.getTipElement();
+        var tipId = Util.getUID(this.constructor.NAME);
+        tip.setAttribute('id', tipId);
+        this.element.setAttribute('aria-describedby', tipId);
+        this.setContent();
 
-                    if (sanitizeFn && typeof sanitizeFn === 'function') {
-                        return sanitizeFn(unsafeHtml);
-                    }
+        if (this.config.animation) {
+          $(tip).addClass(CLASS_NAME_FADE$2);
+        }
 
-                    var domParser = new window.DOMParser();
-                    var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
-                    var whitelistKeys = Object.keys(whiteList);
-                    var elements = [].slice.call(createdDocument.body.querySelectorAll('*'));
+        var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
 
-                    var _loop = function _loop(i, len) {
-                        var el = elements[i];
-                        var elName = el.nodeName.toLowerCase();
+        var attachment = this._getAttachment(placement);
 
-                        if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) {
-                            el.parentNode.removeChild(el);
-                            return "continue";
-                        }
+        this.addAttachmentClass(attachment);
 
-                        var attributeList = [].slice.call(el.attributes);
-                        var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
-                        attributeList.forEach(function (attr) {
-                            if (!allowedAttribute(attr, whitelistedAttributes)) {
-                                el.removeAttribute(attr.nodeName);
-                            }
-                        });
-                    };
+        var container = this._getContainer();
 
-                    for (var i = 0, len = elements.length; i < len; i++) {
-                        var _ret = _loop(i);
+        $(tip).data(this.constructor.DATA_KEY, this);
 
-                        if (_ret === "continue") continue;
-                    }
+        if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {
+          $(tip).appendTo(container);
+        }
 
-                    return createdDocument.body.innerHTML;
-                }
+        $(this.element).trigger(this.constructor.Event.INSERTED);
+        this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
+        $(tip).addClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we add extra
+        // empty mouseover listeners to the body's immediate children;
+        // only needed because of broken event delegation on iOS
+        // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$6 = 'tooltip';
-                var VERSION$6 = '4.5.2';
-                var DATA_KEY$6 = 'bs.tooltip';
-                var EVENT_KEY$6 = "." + DATA_KEY$6;
-                var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
-                var CLASS_PREFIX = 'bs-tooltip';
-                var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
-                var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
-                var DefaultType$4 = {
-                    animation: 'boolean',
-                    template: 'string',
-                    title: '(string|element|function)',
-                    trigger: 'string',
-                    delay: '(number|object)',
-                    html: 'boolean',
-                    selector: '(string|boolean)',
-                    placement: '(string|function)',
-                    offset: '(number|string|function)',
-                    container: '(string|element|boolean)',
-                    fallbackPlacement: '(string|array)',
-                    boundary: '(string|element)',
-                    sanitize: 'boolean',
-                    sanitizeFn: '(null|function)',
-                    whiteList: 'object',
-                    popperConfig: '(null|object)'
-                };
-                var AttachmentMap = {
-                    AUTO: 'auto',
-                    TOP: 'top',
-                    RIGHT: 'right',
-                    BOTTOM: 'bottom',
-                    LEFT: 'left'
-                };
-                var Default$4 = {
-                    animation: true,
-                    template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
-                    trigger: 'hover focus',
-                    title: '',
-                    delay: 0,
-                    html: false,
-                    selector: false,
-                    placement: 'top',
-                    offset: 0,
-                    container: false,
-                    fallbackPlacement: 'flip',
-                    boundary: 'scrollParent',
-                    sanitize: true,
-                    sanitizeFn: null,
-                    whiteList: DefaultWhitelist,
-                    popperConfig: null
-                };
-                var HOVER_STATE_SHOW = 'show';
-                var HOVER_STATE_OUT = 'out';
-                var Event = {
-                    HIDE: "hide" + EVENT_KEY$6,
-                    HIDDEN: "hidden" + EVENT_KEY$6,
-                    SHOW: "show" + EVENT_KEY$6,
-                    SHOWN: "shown" + EVENT_KEY$6,
-                    INSERTED: "inserted" + EVENT_KEY$6,
-                    CLICK: "click" + EVENT_KEY$6,
-                    FOCUSIN: "focusin" + EVENT_KEY$6,
-                    FOCUSOUT: "focusout" + EVENT_KEY$6,
-                    MOUSEENTER: "mouseenter" + EVENT_KEY$6,
-                    MOUSELEAVE: "mouseleave" + EVENT_KEY$6
-                };
-                var CLASS_NAME_FADE$2 = 'fade';
-                var CLASS_NAME_SHOW$4 = 'show';
-                var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
-                var SELECTOR_ARROW = '.arrow';
-                var TRIGGER_HOVER = 'hover';
-                var TRIGGER_FOCUS = 'focus';
-                var TRIGGER_CLICK = 'click';
-                var TRIGGER_MANUAL = 'manual';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Tooltip = /*#__PURE__*/function () {
-                    function Tooltip(element, config) {
-                        if (typeof Popper === 'undefined') {
-                            throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
-                        } // private
-
-
-                        this._isEnabled = true;
-                        this._timeout = 0;
-                        this._hoverState = '';
-                        this._activeTrigger = {};
-                        this._popper = null; // Protected
-
-                        this.element = element;
-                        this.config = this._getConfig(config);
-                        this.tip = null;
-
-                        this._setListeners();
-                    } // Getters
-
-
-                    var _proto = Tooltip.prototype;
-
-                    // Public
-                    _proto.enable = function enable() {
-                        this._isEnabled = true;
-                    };
-
-                    _proto.disable = function disable() {
-                        this._isEnabled = false;
-                    };
-
-                    _proto.toggleEnabled = function toggleEnabled() {
-                        this._isEnabled = !this._isEnabled;
-                    };
-
-                    _proto.toggle = function toggle(event) {
-                        if (!this._isEnabled) {
-                            return;
-                        }
+        if ('ontouchstart' in document.documentElement) {
+          $(document.body).children().on('mouseover', null, $.noop);
+        }
 
-                        if (event) {
-                            var dataKey = this.constructor.DATA_KEY;
-                            var context = $(event.currentTarget).data(dataKey);
+        var complete = function complete() {
+          if (_this.config.animation) {
+            _this._fixTransition();
+          }
+
+          var prevHoverState = _this._hoverState;
+          _this._hoverState = null;
+          $(_this.element).trigger(_this.constructor.Event.SHOWN);
+
+          if (prevHoverState === HOVER_STATE_OUT) {
+            _this._leave(null, _this);
+          }
+        };
+
+        if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
+          var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
+          $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+        } else {
+          complete();
+        }
+      }
+    };
 
-                            if (!context) {
-                                context = new this.constructor(event.currentTarget, this._getDelegateConfig());
-                                $(event.currentTarget).data(dataKey, context);
-                            }
+    _proto.hide = function hide(callback) {
+      var _this2 = this;
 
-                            context._activeTrigger.click = !context._activeTrigger.click;
+      var tip = this.getTipElement();
+      var hideEvent = $.Event(this.constructor.Event.HIDE);
 
-                            if (context._isWithActiveTrigger()) {
-                                context._enter(null, context);
-                            } else {
-                                context._leave(null, context);
-                            }
-                        } else {
-                            if ($(this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
-                                this._leave(null, this);
+      var complete = function complete() {
+        if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
+          tip.parentNode.removeChild(tip);
+        }
 
-                                return;
-                            }
+        _this2._cleanTipClass();
 
-                            this._enter(null, this);
-                        }
-                    };
+        _this2.element.removeAttribute('aria-describedby');
 
-                    _proto.dispose = function dispose() {
-                        clearTimeout(this._timeout);
-                        $.removeData(this.element, this.constructor.DATA_KEY);
-                        $(this.element).off(this.constructor.EVENT_KEY);
-                        $(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
+        $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
 
-                        if (this.tip) {
-                            $(this.tip).remove();
-                        }
+        if (_this2._popper !== null) {
+          _this2._popper.destroy();
+        }
 
-                        this._isEnabled = null;
-                        this._timeout = null;
-                        this._hoverState = null;
-                        this._activeTrigger = null;
+        if (callback) {
+          callback();
+        }
+      };
+
+      $(this.element).trigger(hideEvent);
+
+      if (hideEvent.isDefaultPrevented()) {
+        return;
+      }
+
+      $(tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
+      // empty mouseover listeners we added for iOS support
+
+      if ('ontouchstart' in document.documentElement) {
+        $(document.body).children().off('mouseover', null, $.noop);
+      }
+
+      this._activeTrigger[TRIGGER_CLICK] = false;
+      this._activeTrigger[TRIGGER_FOCUS] = false;
+      this._activeTrigger[TRIGGER_HOVER] = false;
+
+      if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
+        var transitionDuration = Util.getTransitionDurationFromElement(tip);
+        $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+      } else {
+        complete();
+      }
+
+      this._hoverState = '';
+    };
+
+    _proto.update = function update() {
+      if (this._popper !== null) {
+        this._popper.scheduleUpdate();
+      }
+    } // Protected
+    ;
+
+    _proto.isWithContent = function isWithContent() {
+      return Boolean(this.getTitle());
+    };
+
+    _proto.addAttachmentClass = function addAttachmentClass(attachment) {
+      $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
+    };
+
+    _proto.getTipElement = function getTipElement() {
+      this.tip = this.tip || $(this.config.template)[0];
+      return this.tip;
+    };
+
+    _proto.setContent = function setContent() {
+      var tip = this.getTipElement();
+      this.setElementContent($(tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
+      $(tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
+    };
+
+    _proto.setElementContent = function setElementContent($element, content) {
+      if (typeof content === 'object' && (content.nodeType || content.jquery)) {
+        // Content is a DOM node or a jQuery
+        if (this.config.html) {
+          if (!$(content).parent().is($element)) {
+            $element.empty().append(content);
+          }
+        } else {
+          $element.text($(content).text());
+        }
 
-                        if (this._popper) {
-                            this._popper.destroy();
-                        }
+        return;
+      }
 
-                        this._popper = null;
-                        this.element = null;
-                        this.config = null;
-                        this.tip = null;
-                    };
+      if (this.config.html) {
+        if (this.config.sanitize) {
+          content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn);
+        }
 
-                    _proto.show = function show() {
-                        var _this = this;
+        $element.html(content);
+      } else {
+        $element.text(content);
+      }
+    };
+
+    _proto.getTitle = function getTitle() {
+      var title = this.element.getAttribute('data-original-title');
+
+      if (!title) {
+        title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
+      }
+
+      return title;
+    } // Private
+    ;
+
+    _proto._getPopperConfig = function _getPopperConfig(attachment) {
+      var _this3 = this;
+
+      var defaultBsConfig = {
+        placement: attachment,
+        modifiers: {
+          offset: this._getOffset(),
+          flip: {
+            behavior: this.config.fallbackPlacement
+          },
+          arrow: {
+            element: SELECTOR_ARROW
+          },
+          preventOverflow: {
+            boundariesElement: this.config.boundary
+          }
+        },
+        onCreate: function onCreate(data) {
+          if (data.originalPlacement !== data.placement) {
+            _this3._handlePopperPlacementChange(data);
+          }
+        },
+        onUpdate: function onUpdate(data) {
+          return _this3._handlePopperPlacementChange(data);
+        }
+      };
+      return _extends({}, defaultBsConfig, this.config.popperConfig);
+    };
+
+    _proto._getOffset = function _getOffset() {
+      var _this4 = this;
+
+      var offset = {};
+
+      if (typeof this.config.offset === 'function') {
+        offset.fn = function (data) {
+          data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
+          return data;
+        };
+      } else {
+        offset.offset = this.config.offset;
+      }
+
+      return offset;
+    };
+
+    _proto._getContainer = function _getContainer() {
+      if (this.config.container === false) {
+        return document.body;
+      }
+
+      if (Util.isElement(this.config.container)) {
+        return $(this.config.container);
+      }
+
+      return $(document).find(this.config.container);
+    };
+
+    _proto._getAttachment = function _getAttachment(placement) {
+      return AttachmentMap[placement.toUpperCase()];
+    };
+
+    _proto._setListeners = function _setListeners() {
+      var _this5 = this;
+
+      var triggers = this.config.trigger.split(' ');
+      triggers.forEach(function (trigger) {
+        if (trigger === 'click') {
+          $(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
+            return _this5.toggle(event);
+          });
+        } else if (trigger !== TRIGGER_MANUAL) {
+          var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
+          var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
+          $(_this5.element).on(eventIn, _this5.config.selector, function (event) {
+            return _this5._enter(event);
+          }).on(eventOut, _this5.config.selector, function (event) {
+            return _this5._leave(event);
+          });
+        }
+      });
 
-                        if ($(this.element).css('display') === 'none') {
-                            throw new Error('Please use show on visible elements');
-                        }
+      this._hideModalHandler = function () {
+        if (_this5.element) {
+          _this5.hide();
+        }
+      };
+
+      $(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
+
+      if (this.config.selector) {
+        this.config = _extends({}, this.config, {
+          trigger: 'manual',
+          selector: ''
+        });
+      } else {
+        this._fixTitle();
+      }
+    };
+
+    _proto._fixTitle = function _fixTitle() {
+      var titleType = typeof this.element.getAttribute('data-original-title');
+
+      if (this.element.getAttribute('title') || titleType !== 'string') {
+        this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
+        this.element.setAttribute('title', '');
+      }
+    };
+
+    _proto._enter = function _enter(event, context) {
+      var dataKey = this.constructor.DATA_KEY;
+      context = context || $(event.currentTarget).data(dataKey);
+
+      if (!context) {
+        context = new this.constructor(event.currentTarget, this._getDelegateConfig());
+        $(event.currentTarget).data(dataKey, context);
+      }
+
+      if (event) {
+        context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
+      }
+
+      if ($(context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
+        context._hoverState = HOVER_STATE_SHOW;
+        return;
+      }
+
+      clearTimeout(context._timeout);
+      context._hoverState = HOVER_STATE_SHOW;
+
+      if (!context.config.delay || !context.config.delay.show) {
+        context.show();
+        return;
+      }
+
+      context._timeout = setTimeout(function () {
+        if (context._hoverState === HOVER_STATE_SHOW) {
+          context.show();
+        }
+      }, context.config.delay.show);
+    };
 
-                        var showEvent = $.Event(this.constructor.Event.SHOW);
+    _proto._leave = function _leave(event, context) {
+      var dataKey = this.constructor.DATA_KEY;
+      context = context || $(event.currentTarget).data(dataKey);
 
-                        if (this.isWithContent() && this._isEnabled) {
-                            $(this.element).trigger(showEvent);
-                            var shadowRoot = Util.findShadowRoot(this.element);
-                            var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
+      if (!context) {
+        context = new this.constructor(event.currentTarget, this._getDelegateConfig());
+        $(event.currentTarget).data(dataKey, context);
+      }
 
-                            if (showEvent.isDefaultPrevented() || !isInTheDom) {
-                                return;
-                            }
+      if (event) {
+        context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
+      }
 
-                            var tip = this.getTipElement();
-                            var tipId = Util.getUID(this.constructor.NAME);
-                            tip.setAttribute('id', tipId);
-                            this.element.setAttribute('aria-describedby', tipId);
-                            this.setContent();
+      if (context._isWithActiveTrigger()) {
+        return;
+      }
 
-                            if (this.config.animation) {
-                                $(tip).addClass(CLASS_NAME_FADE$2);
-                            }
+      clearTimeout(context._timeout);
+      context._hoverState = HOVER_STATE_OUT;
 
-                            var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
+      if (!context.config.delay || !context.config.delay.hide) {
+        context.hide();
+        return;
+      }
 
-                            var attachment = this._getAttachment(placement);
+      context._timeout = setTimeout(function () {
+        if (context._hoverState === HOVER_STATE_OUT) {
+          context.hide();
+        }
+      }, context.config.delay.hide);
+    };
 
-                            this.addAttachmentClass(attachment);
+    _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
+      for (var trigger in this._activeTrigger) {
+        if (this._activeTrigger[trigger]) {
+          return true;
+        }
+      }
 
-                            var container = this._getContainer();
+      return false;
+    };
 
-                            $(tip).data(this.constructor.DATA_KEY, this);
+    _proto._getConfig = function _getConfig(config) {
+      var dataAttributes = $(this.element).data();
+      Object.keys(dataAttributes).forEach(function (dataAttr) {
+        if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
+          delete dataAttributes[dataAttr];
+        }
+      });
+      config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
 
-                            if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {
-                                $(tip).appendTo(container);
-                            }
+      if (typeof config.delay === 'number') {
+        config.delay = {
+          show: config.delay,
+          hide: config.delay
+        };
+      }
 
-                            $(this.element).trigger(this.constructor.Event.INSERTED);
-                            this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
-                            $(tip).addClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we add extra
-                            // empty mouseover listeners to the body's immediate children;
-                            // only needed because of broken event delegation on iOS
-                            // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
+      if (typeof config.title === 'number') {
+        config.title = config.title.toString();
+      }
 
-                            if ('ontouchstart' in document.documentElement) {
-                                $(document.body).children().on('mouseover', null, $.noop);
-                            }
+      if (typeof config.content === 'number') {
+        config.content = config.content.toString();
+      }
 
-                            var complete = function complete() {
-                                if (_this.config.animation) {
-                                    _this._fixTransition();
-                                }
-
-                                var prevHoverState = _this._hoverState;
-                                _this._hoverState = null;
-                                $(_this.element).trigger(_this.constructor.Event.SHOWN);
-
-                                if (prevHoverState === HOVER_STATE_OUT) {
-                                    _this._leave(null, _this);
-                                }
-                            };
-
-                            if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
-                                var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
-                                $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                            } else {
-                                complete();
-                            }
-                        }
-                    };
+      Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
 
-                    _proto.hide = function hide(callback) {
-                        var _this2 = this;
+      if (config.sanitize) {
+        config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
+      }
 
-                        var tip = this.getTipElement();
-                        var hideEvent = $.Event(this.constructor.Event.HIDE);
+      return config;
+    };
 
-                        var complete = function complete() {
-                            if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
-                                tip.parentNode.removeChild(tip);
-                            }
+    _proto._getDelegateConfig = function _getDelegateConfig() {
+      var config = {};
 
-                            _this2._cleanTipClass();
+      if (this.config) {
+        for (var key in this.config) {
+          if (this.constructor.Default[key] !== this.config[key]) {
+            config[key] = this.config[key];
+          }
+        }
+      }
 
-                            _this2.element.removeAttribute('aria-describedby');
+      return config;
+    };
 
-                            $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
+    _proto._cleanTipClass = function _cleanTipClass() {
+      var $tip = $(this.getTipElement());
+      var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
 
-                            if (_this2._popper !== null) {
-                                _this2._popper.destroy();
-                            }
+      if (tabClass !== null && tabClass.length) {
+        $tip.removeClass(tabClass.join(''));
+      }
+    };
 
-                            if (callback) {
-                                callback();
-                            }
-                        };
+    _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
+      this.tip = popperData.instance.popper;
 
-                        $(this.element).trigger(hideEvent);
+      this._cleanTipClass();
 
-                        if (hideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+      this.addAttachmentClass(this._getAttachment(popperData.placement));
+    };
 
-                        $(tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
-                        // empty mouseover listeners we added for iOS support
+    _proto._fixTransition = function _fixTransition() {
+      var tip = this.getTipElement();
+      var initConfigAnimation = this.config.animation;
 
-                        if ('ontouchstart' in document.documentElement) {
-                            $(document.body).children().off('mouseover', null, $.noop);
-                        }
+      if (tip.getAttribute('x-placement') !== null) {
+        return;
+      }
 
-                        this._activeTrigger[TRIGGER_CLICK] = false;
-                        this._activeTrigger[TRIGGER_FOCUS] = false;
-                        this._activeTrigger[TRIGGER_HOVER] = false;
+      $(tip).removeClass(CLASS_NAME_FADE$2);
+      this.config.animation = false;
+      this.hide();
+      this.show();
+      this.config.animation = initConfigAnimation;
+    } // Static
+    ;
 
-                        if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(tip);
-                            $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            complete();
-                        }
+    Tooltip._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$6);
 
-                        this._hoverState = '';
-                    };
+        var _config = typeof config === 'object' && config;
 
-                    _proto.update = function update() {
-                        if (this._popper !== null) {
-                            this._popper.scheduleUpdate();
-                        }
-                    } // Protected
-                    ;
-
-                    _proto.isWithContent = function isWithContent() {
-                        return Boolean(this.getTitle());
-                    };
-
-                    _proto.addAttachmentClass = function addAttachmentClass(attachment) {
-                        $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
-                    };
-
-                    _proto.getTipElement = function getTipElement() {
-                        this.tip = this.tip || $(this.config.template)[0];
-                        return this.tip;
-                    };
-
-                    _proto.setContent = function setContent() {
-                        var tip = this.getTipElement();
-                        this.setElementContent($(tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
-                        $(tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
-                    };
-
-                    _proto.setElementContent = function setElementContent($element, content) {
-                        if (typeof content === 'object' && (content.nodeType || content.jquery)) {
-                            // Content is a DOM node or a jQuery
-                            if (this.config.html) {
-                                if (!$(content).parent().is($element)) {
-                                    $element.empty().append(content);
-                                }
-                            } else {
-                                $element.text($(content).text());
-                            }
+        if (!data && /dispose|hide/.test(config)) {
+          return;
+        }
 
-                            return;
-                        }
+        if (!data) {
+          data = new Tooltip(this, _config);
+          $(this).data(DATA_KEY$6, data);
+        }
 
-                        if (this.config.html) {
-                            if (this.config.sanitize) {
-                                content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn);
-                            }
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                            $element.html(content);
-                        } else {
-                            $element.text(content);
-                        }
-                    };
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(Tooltip, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$6;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$4;
+      }
+    }, {
+      key: "NAME",
+      get: function get() {
+        return NAME$6;
+      }
+    }, {
+      key: "DATA_KEY",
+      get: function get() {
+        return DATA_KEY$6;
+      }
+    }, {
+      key: "Event",
+      get: function get() {
+        return Event;
+      }
+    }, {
+      key: "EVENT_KEY",
+      get: function get() {
+        return EVENT_KEY$6;
+      }
+    }, {
+      key: "DefaultType",
+      get: function get() {
+        return DefaultType$4;
+      }
+    }]);
+
+    return Tooltip;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto.getTitle = function getTitle() {
-                        var title = this.element.getAttribute('data-original-title');
 
-                        if (!title) {
-                            title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
-                        }
+  $.fn[NAME$6] = Tooltip._jQueryInterface;
+  $.fn[NAME$6].Constructor = Tooltip;
 
-                        return title;
-                    } // Private
-                    ;
-
-                    _proto._getPopperConfig = function _getPopperConfig(attachment) {
-                        var _this3 = this;
-
-                        var defaultBsConfig = {
-                            placement: attachment,
-                            modifiers: {
-                                offset: this._getOffset(),
-                                flip: {
-                                    behavior: this.config.fallbackPlacement
-                                },
-                                arrow: {
-                                    element: SELECTOR_ARROW
-                                },
-                                preventOverflow: {
-                                    boundariesElement: this.config.boundary
-                                }
-                            },
-                            onCreate: function onCreate(data) {
-                                if (data.originalPlacement !== data.placement) {
-                                    _this3._handlePopperPlacementChange(data);
-                                }
-                            },
-                            onUpdate: function onUpdate(data) {
-                                return _this3._handlePopperPlacementChange(data);
-                            }
-                        };
-                        return _extends({}, defaultBsConfig, this.config.popperConfig);
-                    };
-
-                    _proto._getOffset = function _getOffset() {
-                        var _this4 = this;
-
-                        var offset = {};
-
-                        if (typeof this.config.offset === 'function') {
-                            offset.fn = function (data) {
-                                data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
-                                return data;
-                            };
-                        } else {
-                            offset.offset = this.config.offset;
-                        }
+  $.fn[NAME$6].noConflict = function () {
+    $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
+    return Tooltip._jQueryInterface;
+  };
 
-                        return offset;
-                    };
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto._getContainer = function _getContainer() {
-                        if (this.config.container === false) {
-                            return document.body;
-                        }
+  var NAME$7 = 'popover';
+  var VERSION$7 = '4.5.2';
+  var DATA_KEY$7 = 'bs.popover';
+  var EVENT_KEY$7 = "." + DATA_KEY$7;
+  var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
+  var CLASS_PREFIX$1 = 'bs-popover';
+  var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
+
+  var Default$5 = _extends({}, Tooltip.Default, {
+    placement: 'right',
+    trigger: 'click',
+    content: '',
+    template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
+  });
+
+  var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
+    content: '(string|element|function)'
+  });
+
+  var CLASS_NAME_FADE$3 = 'fade';
+  var CLASS_NAME_SHOW$5 = 'show';
+  var SELECTOR_TITLE = '.popover-header';
+  var SELECTOR_CONTENT = '.popover-body';
+  var Event$1 = {
+    HIDE: "hide" + EVENT_KEY$7,
+    HIDDEN: "hidden" + EVENT_KEY$7,
+    SHOW: "show" + EVENT_KEY$7,
+    SHOWN: "shown" + EVENT_KEY$7,
+    INSERTED: "inserted" + EVENT_KEY$7,
+    CLICK: "click" + EVENT_KEY$7,
+    FOCUSIN: "focusin" + EVENT_KEY$7,
+    FOCUSOUT: "focusout" + EVENT_KEY$7,
+    MOUSEENTER: "mouseenter" + EVENT_KEY$7,
+    MOUSELEAVE: "mouseleave" + EVENT_KEY$7
+  };
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                        if (Util.isElement(this.config.container)) {
-                            return $(this.config.container);
-                        }
+  var Popover = /*#__PURE__*/function (_Tooltip) {
+    _inheritsLoose(Popover, _Tooltip);
 
-                        return $(document).find(this.config.container);
-                    };
-
-                    _proto._getAttachment = function _getAttachment(placement) {
-                        return AttachmentMap[placement.toUpperCase()];
-                    };
-
-                    _proto._setListeners = function _setListeners() {
-                        var _this5 = this;
-
-                        var triggers = this.config.trigger.split(' ');
-                        triggers.forEach(function (trigger) {
-                            if (trigger === 'click') {
-                                $(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
-                                    return _this5.toggle(event);
-                                });
-                            } else if (trigger !== TRIGGER_MANUAL) {
-                                var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
-                                var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
-                                $(_this5.element).on(eventIn, _this5.config.selector, function (event) {
-                                    return _this5._enter(event);
-                                }).on(eventOut, _this5.config.selector, function (event) {
-                                    return _this5._leave(event);
-                                });
-                            }
-                        });
+    function Popover() {
+      return _Tooltip.apply(this, arguments) || this;
+    }
 
-                        this._hideModalHandler = function () {
-                            if (_this5.element) {
-                                _this5.hide();
-                            }
-                        };
+    var _proto = Popover.prototype;
 
-                        $(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
+    // Overrides
+    _proto.isWithContent = function isWithContent() {
+      return this.getTitle() || this._getContent();
+    };
 
-                        if (this.config.selector) {
-                            this.config = _extends({}, this.config, {
-                                trigger: 'manual',
-                                selector: ''
-                            });
-                        } else {
-                            this._fixTitle();
-                        }
-                    };
+    _proto.addAttachmentClass = function addAttachmentClass(attachment) {
+      $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
+    };
 
-                    _proto._fixTitle = function _fixTitle() {
-                        var titleType = typeof this.element.getAttribute('data-original-title');
+    _proto.getTipElement = function getTipElement() {
+      this.tip = this.tip || $(this.config.template)[0];
+      return this.tip;
+    };
 
-                        if (this.element.getAttribute('title') || titleType !== 'string') {
-                            this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
-                            this.element.setAttribute('title', '');
-                        }
-                    };
+    _proto.setContent = function setContent() {
+      var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
 
-                    _proto._enter = function _enter(event, context) {
-                        var dataKey = this.constructor.DATA_KEY;
-                        context = context || $(event.currentTarget).data(dataKey);
+      this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
 
-                        if (!context) {
-                            context = new this.constructor(event.currentTarget, this._getDelegateConfig());
-                            $(event.currentTarget).data(dataKey, context);
-                        }
+      var content = this._getContent();
 
-                        if (event) {
-                            context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
-                        }
+      if (typeof content === 'function') {
+        content = content.call(this.element);
+      }
 
-                        if ($(context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
-                            context._hoverState = HOVER_STATE_SHOW;
-                            return;
-                        }
+      this.setElementContent($tip.find(SELECTOR_CONTENT), content);
+      $tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
+    } // Private
+    ;
 
-                        clearTimeout(context._timeout);
-                        context._hoverState = HOVER_STATE_SHOW;
+    _proto._getContent = function _getContent() {
+      return this.element.getAttribute('data-content') || this.config.content;
+    };
 
-                        if (!context.config.delay || !context.config.delay.show) {
-                            context.show();
-                            return;
-                        }
+    _proto._cleanTipClass = function _cleanTipClass() {
+      var $tip = $(this.getTipElement());
+      var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
 
-                        context._timeout = setTimeout(function () {
-                            if (context._hoverState === HOVER_STATE_SHOW) {
-                                context.show();
-                            }
-                        }, context.config.delay.show);
-                    };
+      if (tabClass !== null && tabClass.length > 0) {
+        $tip.removeClass(tabClass.join(''));
+      }
+    } // Static
+    ;
 
-                    _proto._leave = function _leave(event, context) {
-                        var dataKey = this.constructor.DATA_KEY;
-                        context = context || $(event.currentTarget).data(dataKey);
+    Popover._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$7);
 
-                        if (!context) {
-                            context = new this.constructor(event.currentTarget, this._getDelegateConfig());
-                            $(event.currentTarget).data(dataKey, context);
-                        }
+        var _config = typeof config === 'object' ? config : null;
 
-                        if (event) {
-                            context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
-                        }
+        if (!data && /dispose|hide/.test(config)) {
+          return;
+        }
 
-                        if (context._isWithActiveTrigger()) {
-                            return;
-                        }
+        if (!data) {
+          data = new Popover(this, _config);
+          $(this).data(DATA_KEY$7, data);
+        }
 
-                        clearTimeout(context._timeout);
-                        context._hoverState = HOVER_STATE_OUT;
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                        if (!context.config.delay || !context.config.delay.hide) {
-                            context.hide();
-                            return;
-                        }
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(Popover, null, [{
+      key: "VERSION",
+      // Getters
+      get: function get() {
+        return VERSION$7;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$5;
+      }
+    }, {
+      key: "NAME",
+      get: function get() {
+        return NAME$7;
+      }
+    }, {
+      key: "DATA_KEY",
+      get: function get() {
+        return DATA_KEY$7;
+      }
+    }, {
+      key: "Event",
+      get: function get() {
+        return Event$1;
+      }
+    }, {
+      key: "EVENT_KEY",
+      get: function get() {
+        return EVENT_KEY$7;
+      }
+    }, {
+      key: "DefaultType",
+      get: function get() {
+        return DefaultType$5;
+      }
+    }]);
+
+    return Popover;
+  }(Tooltip);
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        context._timeout = setTimeout(function () {
-                            if (context._hoverState === HOVER_STATE_OUT) {
-                                context.hide();
-                            }
-                        }, context.config.delay.hide);
-                    };
 
-                    _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
-                        for (var trigger in this._activeTrigger) {
-                            if (this._activeTrigger[trigger]) {
-                                return true;
-                            }
-                        }
+  $.fn[NAME$7] = Popover._jQueryInterface;
+  $.fn[NAME$7].Constructor = Popover;
 
-                        return false;
-                    };
+  $.fn[NAME$7].noConflict = function () {
+    $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
+    return Popover._jQueryInterface;
+  };
 
-                    _proto._getConfig = function _getConfig(config) {
-                        var dataAttributes = $(this.element).data();
-                        Object.keys(dataAttributes).forEach(function (dataAttr) {
-                            if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
-                                delete dataAttributes[dataAttr];
-                            }
-                        });
-                        config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        if (typeof config.delay === 'number') {
-                            config.delay = {
-                                show: config.delay,
-                                hide: config.delay
-                            };
-                        }
+  var NAME$8 = 'scrollspy';
+  var VERSION$8 = '4.5.2';
+  var DATA_KEY$8 = 'bs.scrollspy';
+  var EVENT_KEY$8 = "." + DATA_KEY$8;
+  var DATA_API_KEY$6 = '.data-api';
+  var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8];
+  var Default$6 = {
+    offset: 10,
+    method: 'auto',
+    target: ''
+  };
+  var DefaultType$6 = {
+    offset: 'number',
+    method: 'string',
+    target: '(string|element)'
+  };
+  var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
+  var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
+  var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
+  var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
+  var CLASS_NAME_ACTIVE$2 = 'active';
+  var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
+  var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
+  var SELECTOR_NAV_LINKS = '.nav-link';
+  var SELECTOR_NAV_ITEMS = '.nav-item';
+  var SELECTOR_LIST_ITEMS = '.list-group-item';
+  var SELECTOR_DROPDOWN = '.dropdown';
+  var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
+  var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
+  var METHOD_OFFSET = 'offset';
+  var METHOD_POSITION = 'position';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                        if (typeof config.title === 'number') {
-                            config.title = config.title.toString();
-                        }
+  var ScrollSpy = /*#__PURE__*/function () {
+    function ScrollSpy(element, config) {
+      var _this = this;
+
+      this._element = element;
+      this._scrollElement = element.tagName === 'BODY' ? window : element;
+      this._config = this._getConfig(config);
+      this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS);
+      this._offsets = [];
+      this._targets = [];
+      this._activeTarget = null;
+      this._scrollHeight = 0;
+      $(this._scrollElement).on(EVENT_SCROLL, function (event) {
+        return _this._process(event);
+      });
+      this.refresh();
 
-                        if (typeof config.content === 'number') {
-                            config.content = config.content.toString();
-                        }
+      this._process();
+    } // Getters
 
-                        Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);
 
-                        if (config.sanitize) {
-                            config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
-                        }
+    var _proto = ScrollSpy.prototype;
 
-                        return config;
-                    };
+    // Public
+    _proto.refresh = function refresh() {
+      var _this2 = this;
 
-                    _proto._getDelegateConfig = function _getDelegateConfig() {
-                        var config = {};
+      var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION;
+      var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
+      var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0;
+      this._offsets = [];
+      this._targets = [];
+      this._scrollHeight = this._getScrollHeight();
+      var targets = [].slice.call(document.querySelectorAll(this._selector));
+      targets.map(function (element) {
+        var target;
+        var targetSelector = Util.getSelectorFromElement(element);
 
-                        if (this.config) {
-                            for (var key in this.config) {
-                                if (this.constructor.Default[key] !== this.config[key]) {
-                                    config[key] = this.config[key];
-                                }
-                            }
-                        }
+        if (targetSelector) {
+          target = document.querySelector(targetSelector);
+        }
 
-                        return config;
-                    };
+        if (target) {
+          var targetBCR = target.getBoundingClientRect();
 
-                    _proto._cleanTipClass = function _cleanTipClass() {
-                        var $tip = $(this.getTipElement());
-                        var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
+          if (targetBCR.width || targetBCR.height) {
+            // TODO (fat): remove sketch reliance on jQuery position/offset
+            return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
+          }
+        }
 
-                        if (tabClass !== null && tabClass.length) {
-                            $tip.removeClass(tabClass.join(''));
-                        }
-                    };
+        return null;
+      }).filter(function (item) {
+        return item;
+      }).sort(function (a, b) {
+        return a[0] - b[0];
+      }).forEach(function (item) {
+        _this2._offsets.push(item[0]);
 
-                    _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
-                        this.tip = popperData.instance.popper;
+        _this2._targets.push(item[1]);
+      });
+    };
+
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY$8);
+      $(this._scrollElement).off(EVENT_KEY$8);
+      this._element = null;
+      this._scrollElement = null;
+      this._config = null;
+      this._selector = null;
+      this._offsets = null;
+      this._targets = null;
+      this._activeTarget = null;
+      this._scrollHeight = null;
+    } // Private
+    ;
+
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
+
+      if (typeof config.target !== 'string' && Util.isElement(config.target)) {
+        var id = $(config.target).attr('id');
+
+        if (!id) {
+          id = Util.getUID(NAME$8);
+          $(config.target).attr('id', id);
+        }
 
-                        this._cleanTipClass();
+        config.target = "#" + id;
+      }
 
-                        this.addAttachmentClass(this._getAttachment(popperData.placement));
-                    };
+      Util.typeCheckConfig(NAME$8, config, DefaultType$6);
+      return config;
+    };
 
-                    _proto._fixTransition = function _fixTransition() {
-                        var tip = this.getTipElement();
-                        var initConfigAnimation = this.config.animation;
+    _proto._getScrollTop = function _getScrollTop() {
+      return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
+    };
 
-                        if (tip.getAttribute('x-placement') !== null) {
-                            return;
-                        }
+    _proto._getScrollHeight = function _getScrollHeight() {
+      return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
+    };
 
-                        $(tip).removeClass(CLASS_NAME_FADE$2);
-                        this.config.animation = false;
-                        this.hide();
-                        this.show();
-                        this.config.animation = initConfigAnimation;
-                    } // Static
-                    ;
+    _proto._getOffsetHeight = function _getOffsetHeight() {
+      return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
+    };
 
-                    Tooltip._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$6);
+    _proto._process = function _process() {
+      var scrollTop = this._getScrollTop() + this._config.offset;
 
-                            var _config = typeof config === 'object' && config;
+      var scrollHeight = this._getScrollHeight();
 
-                            if (!data && /dispose|hide/.test(config)) {
-                                return;
-                            }
+      var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
 
-                            if (!data) {
-                                data = new Tooltip(this, _config);
-                                $(this).data(DATA_KEY$6, data);
-                            }
+      if (this._scrollHeight !== scrollHeight) {
+        this.refresh();
+      }
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+      if (scrollTop >= maxScroll) {
+        var target = this._targets[this._targets.length - 1];
 
-                                data[config]();
-                            }
-                        });
-                    };
+        if (this._activeTarget !== target) {
+          this._activate(target);
+        }
 
-                    _createClass(Tooltip, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$6;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$4;
-                        }
-                    }, {
-                        key: "NAME",
-                        get: function get() {
-                            return NAME$6;
-                        }
-                    }, {
-                        key: "DATA_KEY",
-                        get: function get() {
-                            return DATA_KEY$6;
-                        }
-                    }, {
-                        key: "Event",
-                        get: function get() {
-                            return Event;
-                        }
-                    }, {
-                        key: "EVENT_KEY",
-                        get: function get() {
-                            return EVENT_KEY$6;
-                        }
-                    }, {
-                        key: "DefaultType",
-                        get: function get() {
-                            return DefaultType$4;
-                        }
-                    }]);
+        return;
+      }
 
-                    return Tooltip;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
+      if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
+        this._activeTarget = null;
 
+        this._clear();
 
-                $.fn[NAME$6] = Tooltip._jQueryInterface;
-                $.fn[NAME$6].Constructor = Tooltip;
+        return;
+      }
 
-                $.fn[NAME$6].noConflict = function () {
-                    $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
-                    return Tooltip._jQueryInterface;
-                };
+      for (var i = this._offsets.length; i--;) {
+        var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$7 = 'popover';
-                var VERSION$7 = '4.5.2';
-                var DATA_KEY$7 = 'bs.popover';
-                var EVENT_KEY$7 = "." + DATA_KEY$7;
-                var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
-                var CLASS_PREFIX$1 = 'bs-popover';
-                var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
-
-                var Default$5 = _extends({}, Tooltip.Default, {
-                    placement: 'right',
-                    trigger: 'click',
-                    content: '',
-                    template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
-                });
+        if (isActiveTarget) {
+          this._activate(this._targets[i]);
+        }
+      }
+    };
 
-                var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
-                    content: '(string|element|function)'
-                });
+    _proto._activate = function _activate(target) {
+      this._activeTarget = target;
 
-                var CLASS_NAME_FADE$3 = 'fade';
-                var CLASS_NAME_SHOW$5 = 'show';
-                var SELECTOR_TITLE = '.popover-header';
-                var SELECTOR_CONTENT = '.popover-body';
-                var Event$1 = {
-                    HIDE: "hide" + EVENT_KEY$7,
-                    HIDDEN: "hidden" + EVENT_KEY$7,
-                    SHOW: "show" + EVENT_KEY$7,
-                    SHOWN: "shown" + EVENT_KEY$7,
-                    INSERTED: "inserted" + EVENT_KEY$7,
-                    CLICK: "click" + EVENT_KEY$7,
-                    FOCUSIN: "focusin" + EVENT_KEY$7,
-                    FOCUSOUT: "focusout" + EVENT_KEY$7,
-                    MOUSEENTER: "mouseenter" + EVENT_KEY$7,
-                    MOUSELEAVE: "mouseleave" + EVENT_KEY$7
-                };
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
+      this._clear();
 
-                var Popover = /*#__PURE__*/function (_Tooltip) {
-                    _inheritsLoose(Popover, _Tooltip);
+      var queries = this._selector.split(',').map(function (selector) {
+        return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
+      });
 
-                    function Popover() {
-                        return _Tooltip.apply(this, arguments) || this;
-                    }
+      var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
 
-                    var _proto = Popover.prototype;
+      if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
+        $link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
+        $link.addClass(CLASS_NAME_ACTIVE$2);
+      } else {
+        // Set triggered link as active
+        $link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
+        // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
 
-                    // Overrides
-                    _proto.isWithContent = function isWithContent() {
-                        return this.getTitle() || this._getContent();
-                    };
+        $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
 
-                    _proto.addAttachmentClass = function addAttachmentClass(attachment) {
-                        $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
-                    };
+        $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
+      }
 
-                    _proto.getTipElement = function getTipElement() {
-                        this.tip = this.tip || $(this.config.template)[0];
-                        return this.tip;
-                    };
+      $(this._scrollElement).trigger(EVENT_ACTIVATE, {
+        relatedTarget: target
+      });
+    };
 
-                    _proto.setContent = function setContent() {
-                        var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
+    _proto._clear = function _clear() {
+      [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
+        return node.classList.contains(CLASS_NAME_ACTIVE$2);
+      }).forEach(function (node) {
+        return node.classList.remove(CLASS_NAME_ACTIVE$2);
+      });
+    } // Static
+    ;
 
-                        this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
+    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var data = $(this).data(DATA_KEY$8);
 
-                        var content = this._getContent();
+        var _config = typeof config === 'object' && config;
 
-                        if (typeof content === 'function') {
-                            content = content.call(this.element);
-                        }
+        if (!data) {
+          data = new ScrollSpy(this, _config);
+          $(this).data(DATA_KEY$8, data);
+        }
 
-                        this.setElementContent($tip.find(SELECTOR_CONTENT), content);
-                        $tip.removeClass(CLASS_NAME_FADE$3 + " " + CLASS_NAME_SHOW$5);
-                    } // Private
-                    ;
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                    _proto._getContent = function _getContent() {
-                        return this.element.getAttribute('data-content') || this.config.content;
-                    };
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(ScrollSpy, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$8;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$6;
+      }
+    }]);
+
+    return ScrollSpy;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                    _proto._cleanTipClass = function _cleanTipClass() {
-                        var $tip = $(this.getTipElement());
-                        var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
 
-                        if (tabClass !== null && tabClass.length > 0) {
-                            $tip.removeClass(tabClass.join(''));
-                        }
-                    } // Static
-                    ;
+  $(window).on(EVENT_LOAD_DATA_API$2, function () {
+    var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
+    var scrollSpysLength = scrollSpys.length;
 
-                    Popover._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$7);
+    for (var i = scrollSpysLength; i--;) {
+      var $spy = $(scrollSpys[i]);
 
-                            var _config = typeof config === 'object' ? config : null;
+      ScrollSpy._jQueryInterface.call($spy, $spy.data());
+    }
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                            if (!data && /dispose|hide/.test(config)) {
-                                return;
-                            }
+  $.fn[NAME$8] = ScrollSpy._jQueryInterface;
+  $.fn[NAME$8].Constructor = ScrollSpy;
 
-                            if (!data) {
-                                data = new Popover(this, _config);
-                                $(this).data(DATA_KEY$7, data);
-                            }
+  $.fn[NAME$8].noConflict = function () {
+    $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
+    return ScrollSpy._jQueryInterface;
+  };
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                                data[config]();
-                            }
-                        });
-                    };
+  var NAME$9 = 'tab';
+  var VERSION$9 = '4.5.2';
+  var DATA_KEY$9 = 'bs.tab';
+  var EVENT_KEY$9 = "." + DATA_KEY$9;
+  var DATA_API_KEY$7 = '.data-api';
+  var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];
+  var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
+  var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
+  var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
+  var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
+  var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
+  var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
+  var CLASS_NAME_ACTIVE$3 = 'active';
+  var CLASS_NAME_DISABLED$1 = 'disabled';
+  var CLASS_NAME_FADE$4 = 'fade';
+  var CLASS_NAME_SHOW$6 = 'show';
+  var SELECTOR_DROPDOWN$1 = '.dropdown';
+  var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
+  var SELECTOR_ACTIVE$2 = '.active';
+  var SELECTOR_ACTIVE_UL = '> li > .active';
+  var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
+  var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
+  var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                    _createClass(Popover, null, [{
-                        key: "VERSION",
-                        // Getters
-                        get: function get() {
-                            return VERSION$7;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$5;
-                        }
-                    }, {
-                        key: "NAME",
-                        get: function get() {
-                            return NAME$7;
-                        }
-                    }, {
-                        key: "DATA_KEY",
-                        get: function get() {
-                            return DATA_KEY$7;
-                        }
-                    }, {
-                        key: "Event",
-                        get: function get() {
-                            return Event$1;
-                        }
-                    }, {
-                        key: "EVENT_KEY",
-                        get: function get() {
-                            return EVENT_KEY$7;
-                        }
-                    }, {
-                        key: "DefaultType",
-                        get: function get() {
-                            return DefaultType$5;
-                        }
-                    }]);
+  var Tab = /*#__PURE__*/function () {
+    function Tab(element) {
+      this._element = element;
+    } // Getters
 
-                    return Popover;
-                }(Tooltip);
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
 
+    var _proto = Tab.prototype;
 
-                $.fn[NAME$7] = Popover._jQueryInterface;
-                $.fn[NAME$7].Constructor = Popover;
+    // Public
+    _proto.show = function show() {
+      var _this = this;
 
-                $.fn[NAME$7].noConflict = function () {
-                    $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
-                    return Popover._jQueryInterface;
-                };
+      if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(CLASS_NAME_ACTIVE$3) || $(this._element).hasClass(CLASS_NAME_DISABLED$1)) {
+        return;
+      }
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$8 = 'scrollspy';
-                var VERSION$8 = '4.5.2';
-                var DATA_KEY$8 = 'bs.scrollspy';
-                var EVENT_KEY$8 = "." + DATA_KEY$8;
-                var DATA_API_KEY$6 = '.data-api';
-                var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8];
-                var Default$6 = {
-                    offset: 10,
-                    method: 'auto',
-                    target: ''
-                };
-                var DefaultType$6 = {
-                    offset: 'number',
-                    method: 'string',
-                    target: '(string|element)'
-                };
-                var EVENT_ACTIVATE = "activate" + EVENT_KEY$8;
-                var EVENT_SCROLL = "scroll" + EVENT_KEY$8;
-                var EVENT_LOAD_DATA_API$2 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
-                var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
-                var CLASS_NAME_ACTIVE$2 = 'active';
-                var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
-                var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
-                var SELECTOR_NAV_LINKS = '.nav-link';
-                var SELECTOR_NAV_ITEMS = '.nav-item';
-                var SELECTOR_LIST_ITEMS = '.list-group-item';
-                var SELECTOR_DROPDOWN = '.dropdown';
-                var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item';
-                var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
-                var METHOD_OFFSET = 'offset';
-                var METHOD_POSITION = 'position';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var ScrollSpy = /*#__PURE__*/function () {
-                    function ScrollSpy(element, config) {
-                        var _this = this;
-
-                        this._element = element;
-                        this._scrollElement = element.tagName === 'BODY' ? window : element;
-                        this._config = this._getConfig(config);
-                        this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_ITEMS);
-                        this._offsets = [];
-                        this._targets = [];
-                        this._activeTarget = null;
-                        this._scrollHeight = 0;
-                        $(this._scrollElement).on(EVENT_SCROLL, function (event) {
-                            return _this._process(event);
-                        });
-                        this.refresh();
+      var target;
+      var previous;
+      var listElement = $(this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
+      var selector = Util.getSelectorFromElement(this._element);
 
-                        this._process();
-                    } // Getters
+      if (listElement) {
+        var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
+        previous = $.makeArray($(listElement).find(itemSelector));
+        previous = previous[previous.length - 1];
+      }
 
+      var hideEvent = $.Event(EVENT_HIDE$3, {
+        relatedTarget: this._element
+      });
+      var showEvent = $.Event(EVENT_SHOW$3, {
+        relatedTarget: previous
+      });
 
-                    var _proto = ScrollSpy.prototype;
+      if (previous) {
+        $(previous).trigger(hideEvent);
+      }
+
+      $(this._element).trigger(showEvent);
+
+      if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
+        return;
+      }
+
+      if (selector) {
+        target = document.querySelector(selector);
+      }
+
+      this._activate(this._element, listElement);
+
+      var complete = function complete() {
+        var hiddenEvent = $.Event(EVENT_HIDDEN$3, {
+          relatedTarget: _this._element
+        });
+        var shownEvent = $.Event(EVENT_SHOWN$3, {
+          relatedTarget: previous
+        });
+        $(previous).trigger(hiddenEvent);
+        $(_this._element).trigger(shownEvent);
+      };
+
+      if (target) {
+        this._activate(target, target.parentNode, complete);
+      } else {
+        complete();
+      }
+    };
+
+    _proto.dispose = function dispose() {
+      $.removeData(this._element, DATA_KEY$9);
+      this._element = null;
+    } // Private
+    ;
+
+    _proto._activate = function _activate(element, container, callback) {
+      var _this2 = this;
+
+      var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(SELECTOR_ACTIVE_UL) : $(container).children(SELECTOR_ACTIVE$2);
+      var active = activeElements[0];
+      var isTransitioning = callback && active && $(active).hasClass(CLASS_NAME_FADE$4);
+
+      var complete = function complete() {
+        return _this2._transitionComplete(element, active, callback);
+      };
+
+      if (active && isTransitioning) {
+        var transitionDuration = Util.getTransitionDurationFromElement(active);
+        $(active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+      } else {
+        complete();
+      }
+    };
+
+    _proto._transitionComplete = function _transitionComplete(element, active, callback) {
+      if (active) {
+        $(active).removeClass(CLASS_NAME_ACTIVE$3);
+        var dropdownChild = $(active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
+
+        if (dropdownChild) {
+          $(dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
+        }
 
-                    // Public
-                    _proto.refresh = function refresh() {
-                        var _this2 = this;
+        if (active.getAttribute('role') === 'tab') {
+          active.setAttribute('aria-selected', false);
+        }
+      }
 
-                        var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION;
-                        var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
-                        var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0;
-                        this._offsets = [];
-                        this._targets = [];
-                        this._scrollHeight = this._getScrollHeight();
-                        var targets = [].slice.call(document.querySelectorAll(this._selector));
-                        targets.map(function (element) {
-                            var target;
-                            var targetSelector = Util.getSelectorFromElement(element);
+      $(element).addClass(CLASS_NAME_ACTIVE$3);
 
-                            if (targetSelector) {
-                                target = document.querySelector(targetSelector);
-                            }
+      if (element.getAttribute('role') === 'tab') {
+        element.setAttribute('aria-selected', true);
+      }
 
-                            if (target) {
-                                var targetBCR = target.getBoundingClientRect();
+      Util.reflow(element);
 
-                                if (targetBCR.width || targetBCR.height) {
-                                    // TODO (fat): remove sketch reliance on jQuery position/offset
-                                    return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
-                                }
-                            }
+      if (element.classList.contains(CLASS_NAME_FADE$4)) {
+        element.classList.add(CLASS_NAME_SHOW$6);
+      }
 
-                            return null;
-                        }).filter(function (item) {
-                            return item;
-                        }).sort(function (a, b) {
-                            return a[0] - b[0];
-                        }).forEach(function (item) {
-                            _this2._offsets.push(item[0]);
+      if (element.parentNode && $(element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
+        var dropdownElement = $(element).closest(SELECTOR_DROPDOWN$1)[0];
 
-                            _this2._targets.push(item[1]);
-                        });
-                    };
-
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY$8);
-                        $(this._scrollElement).off(EVENT_KEY$8);
-                        this._element = null;
-                        this._scrollElement = null;
-                        this._config = null;
-                        this._selector = null;
-                        this._offsets = null;
-                        this._targets = null;
-                        this._activeTarget = null;
-                        this._scrollHeight = null;
-                    } // Private
-                    ;
-
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
-
-                        if (typeof config.target !== 'string' && Util.isElement(config.target)) {
-                            var id = $(config.target).attr('id');
-
-                            if (!id) {
-                                id = Util.getUID(NAME$8);
-                                $(config.target).attr('id', id);
-                            }
+        if (dropdownElement) {
+          var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
+          $(dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
+        }
 
-                            config.target = "#" + id;
-                        }
+        element.setAttribute('aria-expanded', true);
+      }
 
-                        Util.typeCheckConfig(NAME$8, config, DefaultType$6);
-                        return config;
-                    };
+      if (callback) {
+        callback();
+      }
+    } // Static
+    ;
 
-                    _proto._getScrollTop = function _getScrollTop() {
-                        return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
-                    };
+    Tab._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var $this = $(this);
+        var data = $this.data(DATA_KEY$9);
 
-                    _proto._getScrollHeight = function _getScrollHeight() {
-                        return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
-                    };
+        if (!data) {
+          data = new Tab(this);
+          $this.data(DATA_KEY$9, data);
+        }
 
-                    _proto._getOffsetHeight = function _getOffsetHeight() {
-                        return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
-                    };
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                    _proto._process = function _process() {
-                        var scrollTop = this._getScrollTop() + this._config.offset;
+          data[config]();
+        }
+      });
+    };
+
+    _createClass(Tab, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$9;
+      }
+    }]);
+
+    return Tab;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * Data Api implementation
+   * ------------------------------------------------------------------------
+   */
 
-                        var scrollHeight = this._getScrollHeight();
 
-                        var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
+  $(document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
+    event.preventDefault();
 
-                        if (this._scrollHeight !== scrollHeight) {
-                            this.refresh();
-                        }
+    Tab._jQueryInterface.call($(this), 'show');
+  });
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        if (scrollTop >= maxScroll) {
-                            var target = this._targets[this._targets.length - 1];
+  $.fn[NAME$9] = Tab._jQueryInterface;
+  $.fn[NAME$9].Constructor = Tab;
 
-                            if (this._activeTarget !== target) {
-                                this._activate(target);
-                            }
+  $.fn[NAME$9].noConflict = function () {
+    $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
+    return Tab._jQueryInterface;
+  };
 
-                            return;
-                        }
+  /**
+   * ------------------------------------------------------------------------
+   * Constants
+   * ------------------------------------------------------------------------
+   */
 
-                        if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
-                            this._activeTarget = null;
+  var NAME$a = 'toast';
+  var VERSION$a = '4.5.2';
+  var DATA_KEY$a = 'bs.toast';
+  var EVENT_KEY$a = "." + DATA_KEY$a;
+  var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
+  var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
+  var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
+  var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
+  var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
+  var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
+  var CLASS_NAME_FADE$5 = 'fade';
+  var CLASS_NAME_HIDE = 'hide';
+  var CLASS_NAME_SHOW$7 = 'show';
+  var CLASS_NAME_SHOWING = 'showing';
+  var DefaultType$7 = {
+    animation: 'boolean',
+    autohide: 'boolean',
+    delay: 'number'
+  };
+  var Default$7 = {
+    animation: true,
+    autohide: true,
+    delay: 500
+  };
+  var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
+  /**
+   * ------------------------------------------------------------------------
+   * Class Definition
+   * ------------------------------------------------------------------------
+   */
 
-                            this._clear();
+  var Toast = /*#__PURE__*/function () {
+    function Toast(element, config) {
+      this._element = element;
+      this._config = this._getConfig(config);
+      this._timeout = null;
 
-                            return;
-                        }
+      this._setListeners();
+    } // Getters
 
-                        for (var i = this._offsets.length; i--;) {
-                            var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
 
-                            if (isActiveTarget) {
-                                this._activate(this._targets[i]);
-                            }
-                        }
-                    };
+    var _proto = Toast.prototype;
 
-                    _proto._activate = function _activate(target) {
-                        this._activeTarget = target;
+    // Public
+    _proto.show = function show() {
+      var _this = this;
 
-                        this._clear();
+      var showEvent = $.Event(EVENT_SHOW$4);
+      $(this._element).trigger(showEvent);
 
-                        var queries = this._selector.split(',').map(function (selector) {
-                            return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
-                        });
+      if (showEvent.isDefaultPrevented()) {
+        return;
+      }
 
-                        var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
+      this._clearTimeout();
 
-                        if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
-                            $link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
-                            $link.addClass(CLASS_NAME_ACTIVE$2);
-                        } else {
-                            // Set triggered link as active
-                            $link.addClass(CLASS_NAME_ACTIVE$2); // Set triggered links parents as active
-                            // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
+      if (this._config.animation) {
+        this._element.classList.add(CLASS_NAME_FADE$5);
+      }
 
-                            $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2); // Handle special case when .nav-link is inside .nav-item
+      var complete = function complete() {
+        _this._element.classList.remove(CLASS_NAME_SHOWING);
 
-                            $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
-                        }
+        _this._element.classList.add(CLASS_NAME_SHOW$7);
 
-                        $(this._scrollElement).trigger(EVENT_ACTIVATE, {
-                            relatedTarget: target
-                        });
-                    };
+        $(_this._element).trigger(EVENT_SHOWN$4);
 
-                    _proto._clear = function _clear() {
-                        [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {
-                            return node.classList.contains(CLASS_NAME_ACTIVE$2);
-                        }).forEach(function (node) {
-                            return node.classList.remove(CLASS_NAME_ACTIVE$2);
-                        });
-                    } // Static
-                    ;
+        if (_this._config.autohide) {
+          _this._timeout = setTimeout(function () {
+            _this.hide();
+          }, _this._config.delay);
+        }
+      };
 
-                    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var data = $(this).data(DATA_KEY$8);
+      this._element.classList.remove(CLASS_NAME_HIDE);
 
-                            var _config = typeof config === 'object' && config;
+      Util.reflow(this._element);
 
-                            if (!data) {
-                                data = new ScrollSpy(this, _config);
-                                $(this).data(DATA_KEY$8, data);
-                            }
+      this._element.classList.add(CLASS_NAME_SHOWING);
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+      if (this._config.animation) {
+        var transitionDuration = Util.getTransitionDurationFromElement(this._element);
+        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+      } else {
+        complete();
+      }
+    };
 
-                                data[config]();
-                            }
-                        });
-                    };
+    _proto.hide = function hide() {
+      if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
+        return;
+      }
 
-                    _createClass(ScrollSpy, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$8;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$6;
-                        }
-                    }]);
+      var hideEvent = $.Event(EVENT_HIDE$4);
+      $(this._element).trigger(hideEvent);
 
-                    return ScrollSpy;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+      if (hideEvent.isDefaultPrevented()) {
+        return;
+      }
 
+      this._close();
+    };
 
-                $(window).on(EVENT_LOAD_DATA_API$2, function () {
-                    var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
-                    var scrollSpysLength = scrollSpys.length;
+    _proto.dispose = function dispose() {
+      this._clearTimeout();
 
-                    for (var i = scrollSpysLength; i--;) {
-                        var $spy = $(scrollSpys[i]);
+      if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
+        this._element.classList.remove(CLASS_NAME_SHOW$7);
+      }
 
-                        ScrollSpy._jQueryInterface.call($spy, $spy.data());
-                    }
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$8] = ScrollSpy._jQueryInterface;
-                $.fn[NAME$8].Constructor = ScrollSpy;
-
-                $.fn[NAME$8].noConflict = function () {
-                    $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
-                    return ScrollSpy._jQueryInterface;
-                };
+      $(this._element).off(EVENT_CLICK_DISMISS$1);
+      $.removeData(this._element, DATA_KEY$a);
+      this._element = null;
+      this._config = null;
+    } // Private
+    ;
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$9 = 'tab';
-                var VERSION$9 = '4.5.2';
-                var DATA_KEY$9 = 'bs.tab';
-                var EVENT_KEY$9 = "." + DATA_KEY$9;
-                var DATA_API_KEY$7 = '.data-api';
-                var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];
-                var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
-                var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
-                var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
-                var EVENT_SHOWN$3 = "shown" + EVENT_KEY$9;
-                var EVENT_CLICK_DATA_API$6 = "click" + EVENT_KEY$9 + DATA_API_KEY$7;
-                var CLASS_NAME_DROPDOWN_MENU = 'dropdown-menu';
-                var CLASS_NAME_ACTIVE$3 = 'active';
-                var CLASS_NAME_DISABLED$1 = 'disabled';
-                var CLASS_NAME_FADE$4 = 'fade';
-                var CLASS_NAME_SHOW$6 = 'show';
-                var SELECTOR_DROPDOWN$1 = '.dropdown';
-                var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
-                var SELECTOR_ACTIVE$2 = '.active';
-                var SELECTOR_ACTIVE_UL = '> li > .active';
-                var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
-                var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
-                var SELECTOR_DROPDOWN_ACTIVE_CHILD = '> .dropdown-menu .active';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
-
-                var Tab = /*#__PURE__*/function () {
-                    function Tab(element) {
-                        this._element = element;
-                    } // Getters
-
-
-                    var _proto = Tab.prototype;
-
-                    // Public
-                    _proto.show = function show() {
-                        var _this = this;
-
-                        if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(CLASS_NAME_ACTIVE$3) || $(this._element).hasClass(CLASS_NAME_DISABLED$1)) {
-                            return;
-                        }
+    _proto._getConfig = function _getConfig(config) {
+      config = _extends({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
+      Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
+      return config;
+    };
 
-                        var target;
-                        var previous;
-                        var listElement = $(this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
-                        var selector = Util.getSelectorFromElement(this._element);
+    _proto._setListeners = function _setListeners() {
+      var _this2 = this;
 
-                        if (listElement) {
-                            var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
-                            previous = $.makeArray($(listElement).find(itemSelector));
-                            previous = previous[previous.length - 1];
-                        }
+      $(this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
+        return _this2.hide();
+      });
+    };
 
-                        var hideEvent = $.Event(EVENT_HIDE$3, {
-                            relatedTarget: this._element
-                        });
-                        var showEvent = $.Event(EVENT_SHOW$3, {
-                            relatedTarget: previous
-                        });
+    _proto._close = function _close() {
+      var _this3 = this;
 
-                        if (previous) {
-                            $(previous).trigger(hideEvent);
-                        }
+      var complete = function complete() {
+        _this3._element.classList.add(CLASS_NAME_HIDE);
 
-                        $(this._element).trigger(showEvent);
+        $(_this3._element).trigger(EVENT_HIDDEN$4);
+      };
 
-                        if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+      this._element.classList.remove(CLASS_NAME_SHOW$7);
 
-                        if (selector) {
-                            target = document.querySelector(selector);
-                        }
+      if (this._config.animation) {
+        var transitionDuration = Util.getTransitionDurationFromElement(this._element);
+        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+      } else {
+        complete();
+      }
+    };
 
-                        this._activate(this._element, listElement);
-
-                        var complete = function complete() {
-                            var hiddenEvent = $.Event(EVENT_HIDDEN$3, {
-                                relatedTarget: _this._element
-                            });
-                            var shownEvent = $.Event(EVENT_SHOWN$3, {
-                                relatedTarget: previous
-                            });
-                            $(previous).trigger(hiddenEvent);
-                            $(_this._element).trigger(shownEvent);
-                        };
-
-                        if (target) {
-                            this._activate(target, target.parentNode, complete);
-                        } else {
-                            complete();
-                        }
-                    };
-
-                    _proto.dispose = function dispose() {
-                        $.removeData(this._element, DATA_KEY$9);
-                        this._element = null;
-                    } // Private
-                    ;
-
-                    _proto._activate = function _activate(element, container, callback) {
-                        var _this2 = this;
-
-                        var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(SELECTOR_ACTIVE_UL) : $(container).children(SELECTOR_ACTIVE$2);
-                        var active = activeElements[0];
-                        var isTransitioning = callback && active && $(active).hasClass(CLASS_NAME_FADE$4);
-
-                        var complete = function complete() {
-                            return _this2._transitionComplete(element, active, callback);
-                        };
-
-                        if (active && isTransitioning) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(active);
-                            $(active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            complete();
-                        }
-                    };
+    _proto._clearTimeout = function _clearTimeout() {
+      clearTimeout(this._timeout);
+      this._timeout = null;
+    } // Static
+    ;
 
-                    _proto._transitionComplete = function _transitionComplete(element, active, callback) {
-                        if (active) {
-                            $(active).removeClass(CLASS_NAME_ACTIVE$3);
-                            var dropdownChild = $(active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
+    Toast._jQueryInterface = function _jQueryInterface(config) {
+      return this.each(function () {
+        var $element = $(this);
+        var data = $element.data(DATA_KEY$a);
 
-                            if (dropdownChild) {
-                                $(dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
-                            }
+        var _config = typeof config === 'object' && config;
 
-                            if (active.getAttribute('role') === 'tab') {
-                                active.setAttribute('aria-selected', false);
-                            }
-                        }
+        if (!data) {
+          data = new Toast(this, _config);
+          $element.data(DATA_KEY$a, data);
+        }
 
-                        $(element).addClass(CLASS_NAME_ACTIVE$3);
+        if (typeof config === 'string') {
+          if (typeof data[config] === 'undefined') {
+            throw new TypeError("No method named \"" + config + "\"");
+          }
 
-                        if (element.getAttribute('role') === 'tab') {
-                            element.setAttribute('aria-selected', true);
-                        }
+          data[config](this);
+        }
+      });
+    };
+
+    _createClass(Toast, null, [{
+      key: "VERSION",
+      get: function get() {
+        return VERSION$a;
+      }
+    }, {
+      key: "DefaultType",
+      get: function get() {
+        return DefaultType$7;
+      }
+    }, {
+      key: "Default",
+      get: function get() {
+        return Default$7;
+      }
+    }]);
+
+    return Toast;
+  }();
+  /**
+   * ------------------------------------------------------------------------
+   * jQuery
+   * ------------------------------------------------------------------------
+   */
 
-                        Util.reflow(element);
 
-                        if (element.classList.contains(CLASS_NAME_FADE$4)) {
-                            element.classList.add(CLASS_NAME_SHOW$6);
-                        }
+  $.fn[NAME$a] = Toast._jQueryInterface;
+  $.fn[NAME$a].Constructor = Toast;
 
-                        if (element.parentNode && $(element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
-                            var dropdownElement = $(element).closest(SELECTOR_DROPDOWN$1)[0];
+  $.fn[NAME$a].noConflict = function () {
+    $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
+    return Toast._jQueryInterface;
+  };
 
-                            if (dropdownElement) {
-                                var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
-                                $(dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
-                            }
+  exports.Alert = Alert;
+  exports.Button = Button;
+  exports.Carousel = Carousel;
+  exports.Collapse = Collapse;
+  exports.Dropdown = Dropdown;
+  exports.Modal = Modal;
+  exports.Popover = Popover;
+  exports.Scrollspy = ScrollSpy;
+  exports.Tab = Tab;
+  exports.Toast = Toast;
+  exports.Tooltip = Tooltip;
+  exports.Util = Util;
 
-                            element.setAttribute('aria-expanded', true);
-                        }
+  Object.defineProperty(exports, '__esModule', { value: true });
 
-                        if (callback) {
-                            callback();
-                        }
-                    } // Static
-                    ;
+})));
+//# sourceMappingURL=bootstrap.js.map
 
-                    Tab._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var $this = $(this);
-                            var data = $this.data(DATA_KEY$9);
 
-                            if (!data) {
-                                data = new Tab(this);
-                                $this.data(DATA_KEY$9, data);
-                            }
+/***/ }),
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+/***/ "./node_modules/chart.js/dist/Chart.js":
+/*!*********************************************!*\
+  !*** ./node_modules/chart.js/dist/Chart.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                                data[config]();
-                            }
-                        });
-                    };
+/*!
+ * Chart.js v2.9.3
+ * https://www.chartjs.org
+ * (c) 2019 Chart.js Contributors
+ * Released under the MIT License
+ */
+(function (global, factory) {
+ true ? module.exports = factory(function() { try { return __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); } catch(e) { } }()) :
+undefined;
+}(this, (function (moment) { 'use strict';
+
+moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;
+
+function createCommonjsModule(fn, module) {
+	return module = { exports: {} }, fn(module, module.exports), module.exports;
+}
+
+function getCjsExportFromNamespace (n) {
+	return n && n['default'] || n;
+}
+
+var colorName = {
+	"aliceblue": [240, 248, 255],
+	"antiquewhite": [250, 235, 215],
+	"aqua": [0, 255, 255],
+	"aquamarine": [127, 255, 212],
+	"azure": [240, 255, 255],
+	"beige": [245, 245, 220],
+	"bisque": [255, 228, 196],
+	"black": [0, 0, 0],
+	"blanchedalmond": [255, 235, 205],
+	"blue": [0, 0, 255],
+	"blueviolet": [138, 43, 226],
+	"brown": [165, 42, 42],
+	"burlywood": [222, 184, 135],
+	"cadetblue": [95, 158, 160],
+	"chartreuse": [127, 255, 0],
+	"chocolate": [210, 105, 30],
+	"coral": [255, 127, 80],
+	"cornflowerblue": [100, 149, 237],
+	"cornsilk": [255, 248, 220],
+	"crimson": [220, 20, 60],
+	"cyan": [0, 255, 255],
+	"darkblue": [0, 0, 139],
+	"darkcyan": [0, 139, 139],
+	"darkgoldenrod": [184, 134, 11],
+	"darkgray": [169, 169, 169],
+	"darkgreen": [0, 100, 0],
+	"darkgrey": [169, 169, 169],
+	"darkkhaki": [189, 183, 107],
+	"darkmagenta": [139, 0, 139],
+	"darkolivegreen": [85, 107, 47],
+	"darkorange": [255, 140, 0],
+	"darkorchid": [153, 50, 204],
+	"darkred": [139, 0, 0],
+	"darksalmon": [233, 150, 122],
+	"darkseagreen": [143, 188, 143],
+	"darkslateblue": [72, 61, 139],
+	"darkslategray": [47, 79, 79],
+	"darkslategrey": [47, 79, 79],
+	"darkturquoise": [0, 206, 209],
+	"darkviolet": [148, 0, 211],
+	"deeppink": [255, 20, 147],
+	"deepskyblue": [0, 191, 255],
+	"dimgray": [105, 105, 105],
+	"dimgrey": [105, 105, 105],
+	"dodgerblue": [30, 144, 255],
+	"firebrick": [178, 34, 34],
+	"floralwhite": [255, 250, 240],
+	"forestgreen": [34, 139, 34],
+	"fuchsia": [255, 0, 255],
+	"gainsboro": [220, 220, 220],
+	"ghostwhite": [248, 248, 255],
+	"gold": [255, 215, 0],
+	"goldenrod": [218, 165, 32],
+	"gray": [128, 128, 128],
+	"green": [0, 128, 0],
+	"greenyellow": [173, 255, 47],
+	"grey": [128, 128, 128],
+	"honeydew": [240, 255, 240],
+	"hotpink": [255, 105, 180],
+	"indianred": [205, 92, 92],
+	"indigo": [75, 0, 130],
+	"ivory": [255, 255, 240],
+	"khaki": [240, 230, 140],
+	"lavender": [230, 230, 250],
+	"lavenderblush": [255, 240, 245],
+	"lawngreen": [124, 252, 0],
+	"lemonchiffon": [255, 250, 205],
+	"lightblue": [173, 216, 230],
+	"lightcoral": [240, 128, 128],
+	"lightcyan": [224, 255, 255],
+	"lightgoldenrodyellow": [250, 250, 210],
+	"lightgray": [211, 211, 211],
+	"lightgreen": [144, 238, 144],
+	"lightgrey": [211, 211, 211],
+	"lightpink": [255, 182, 193],
+	"lightsalmon": [255, 160, 122],
+	"lightseagreen": [32, 178, 170],
+	"lightskyblue": [135, 206, 250],
+	"lightslategray": [119, 136, 153],
+	"lightslategrey": [119, 136, 153],
+	"lightsteelblue": [176, 196, 222],
+	"lightyellow": [255, 255, 224],
+	"lime": [0, 255, 0],
+	"limegreen": [50, 205, 50],
+	"linen": [250, 240, 230],
+	"magenta": [255, 0, 255],
+	"maroon": [128, 0, 0],
+	"mediumaquamarine": [102, 205, 170],
+	"mediumblue": [0, 0, 205],
+	"mediumorchid": [186, 85, 211],
+	"mediumpurple": [147, 112, 219],
+	"mediumseagreen": [60, 179, 113],
+	"mediumslateblue": [123, 104, 238],
+	"mediumspringgreen": [0, 250, 154],
+	"mediumturquoise": [72, 209, 204],
+	"mediumvioletred": [199, 21, 133],
+	"midnightblue": [25, 25, 112],
+	"mintcream": [245, 255, 250],
+	"mistyrose": [255, 228, 225],
+	"moccasin": [255, 228, 181],
+	"navajowhite": [255, 222, 173],
+	"navy": [0, 0, 128],
+	"oldlace": [253, 245, 230],
+	"olive": [128, 128, 0],
+	"olivedrab": [107, 142, 35],
+	"orange": [255, 165, 0],
+	"orangered": [255, 69, 0],
+	"orchid": [218, 112, 214],
+	"palegoldenrod": [238, 232, 170],
+	"palegreen": [152, 251, 152],
+	"paleturquoise": [175, 238, 238],
+	"palevioletred": [219, 112, 147],
+	"papayawhip": [255, 239, 213],
+	"peachpuff": [255, 218, 185],
+	"peru": [205, 133, 63],
+	"pink": [255, 192, 203],
+	"plum": [221, 160, 221],
+	"powderblue": [176, 224, 230],
+	"purple": [128, 0, 128],
+	"rebeccapurple": [102, 51, 153],
+	"red": [255, 0, 0],
+	"rosybrown": [188, 143, 143],
+	"royalblue": [65, 105, 225],
+	"saddlebrown": [139, 69, 19],
+	"salmon": [250, 128, 114],
+	"sandybrown": [244, 164, 96],
+	"seagreen": [46, 139, 87],
+	"seashell": [255, 245, 238],
+	"sienna": [160, 82, 45],
+	"silver": [192, 192, 192],
+	"skyblue": [135, 206, 235],
+	"slateblue": [106, 90, 205],
+	"slategray": [112, 128, 144],
+	"slategrey": [112, 128, 144],
+	"snow": [255, 250, 250],
+	"springgreen": [0, 255, 127],
+	"steelblue": [70, 130, 180],
+	"tan": [210, 180, 140],
+	"teal": [0, 128, 128],
+	"thistle": [216, 191, 216],
+	"tomato": [255, 99, 71],
+	"turquoise": [64, 224, 208],
+	"violet": [238, 130, 238],
+	"wheat": [245, 222, 179],
+	"white": [255, 255, 255],
+	"whitesmoke": [245, 245, 245],
+	"yellow": [255, 255, 0],
+	"yellowgreen": [154, 205, 50]
+};
+
+var conversions = createCommonjsModule(function (module) {
+/* MIT license */
 
-                    _createClass(Tab, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$9;
-                        }
-                    }]);
 
-                    return Tab;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * Data Api implementation
-                 * ------------------------------------------------------------------------
-                 */
+// NOTE: conversions should only return primitive values (i.e. arrays, or
+//       values that give correct `typeof` results).
+//       do not use box values types (i.e. Number(), String(), etc.)
 
+var reverseKeywords = {};
+for (var key in colorName) {
+	if (colorName.hasOwnProperty(key)) {
+		reverseKeywords[colorName[key]] = key;
+	}
+}
+
+var convert = module.exports = {
+	rgb: {channels: 3, labels: 'rgb'},
+	hsl: {channels: 3, labels: 'hsl'},
+	hsv: {channels: 3, labels: 'hsv'},
+	hwb: {channels: 3, labels: 'hwb'},
+	cmyk: {channels: 4, labels: 'cmyk'},
+	xyz: {channels: 3, labels: 'xyz'},
+	lab: {channels: 3, labels: 'lab'},
+	lch: {channels: 3, labels: 'lch'},
+	hex: {channels: 1, labels: ['hex']},
+	keyword: {channels: 1, labels: ['keyword']},
+	ansi16: {channels: 1, labels: ['ansi16']},
+	ansi256: {channels: 1, labels: ['ansi256']},
+	hcg: {channels: 3, labels: ['h', 'c', 'g']},
+	apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
+	gray: {channels: 1, labels: ['gray']}
+};
 
-                $(document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
-                    event.preventDefault();
+// hide .channels and .labels properties
+for (var model in convert) {
+	if (convert.hasOwnProperty(model)) {
+		if (!('channels' in convert[model])) {
+			throw new Error('missing channels property: ' + model);
+		}
+
+		if (!('labels' in convert[model])) {
+			throw new Error('missing channel labels property: ' + model);
+		}
+
+		if (convert[model].labels.length !== convert[model].channels) {
+			throw new Error('channel and label counts mismatch: ' + model);
+		}
+
+		var channels = convert[model].channels;
+		var labels = convert[model].labels;
+		delete convert[model].channels;
+		delete convert[model].labels;
+		Object.defineProperty(convert[model], 'channels', {value: channels});
+		Object.defineProperty(convert[model], 'labels', {value: labels});
+	}
+}
+
+convert.rgb.hsl = function (rgb) {
+	var r = rgb[0] / 255;
+	var g = rgb[1] / 255;
+	var b = rgb[2] / 255;
+	var min = Math.min(r, g, b);
+	var max = Math.max(r, g, b);
+	var delta = max - min;
+	var h;
+	var s;
+	var l;
+
+	if (max === min) {
+		h = 0;
+	} else if (r === max) {
+		h = (g - b) / delta;
+	} else if (g === max) {
+		h = 2 + (b - r) / delta;
+	} else if (b === max) {
+		h = 4 + (r - g) / delta;
+	}
+
+	h = Math.min(h * 60, 360);
+
+	if (h < 0) {
+		h += 360;
+	}
+
+	l = (min + max) / 2;
+
+	if (max === min) {
+		s = 0;
+	} else if (l <= 0.5) {
+		s = delta / (max + min);
+	} else {
+		s = delta / (2 - max - min);
+	}
+
+	return [h, s * 100, l * 100];
+};
+
+convert.rgb.hsv = function (rgb) {
+	var rdif;
+	var gdif;
+	var bdif;
+	var h;
+	var s;
+
+	var r = rgb[0] / 255;
+	var g = rgb[1] / 255;
+	var b = rgb[2] / 255;
+	var v = Math.max(r, g, b);
+	var diff = v - Math.min(r, g, b);
+	var diffc = function (c) {
+		return (v - c) / 6 / diff + 1 / 2;
+	};
+
+	if (diff === 0) {
+		h = s = 0;
+	} else {
+		s = diff / v;
+		rdif = diffc(r);
+		gdif = diffc(g);
+		bdif = diffc(b);
+
+		if (r === v) {
+			h = bdif - gdif;
+		} else if (g === v) {
+			h = (1 / 3) + rdif - bdif;
+		} else if (b === v) {
+			h = (2 / 3) + gdif - rdif;
+		}
+		if (h < 0) {
+			h += 1;
+		} else if (h > 1) {
+			h -= 1;
+		}
+	}
+
+	return [
+		h * 360,
+		s * 100,
+		v * 100
+	];
+};
+
+convert.rgb.hwb = function (rgb) {
+	var r = rgb[0];
+	var g = rgb[1];
+	var b = rgb[2];
+	var h = convert.rgb.hsl(rgb)[0];
+	var w = 1 / 255 * Math.min(r, Math.min(g, b));
+
+	b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
+
+	return [h, w * 100, b * 100];
+};
+
+convert.rgb.cmyk = function (rgb) {
+	var r = rgb[0] / 255;
+	var g = rgb[1] / 255;
+	var b = rgb[2] / 255;
+	var c;
+	var m;
+	var y;
+	var k;
+
+	k = Math.min(1 - r, 1 - g, 1 - b);
+	c = (1 - r - k) / (1 - k) || 0;
+	m = (1 - g - k) / (1 - k) || 0;
+	y = (1 - b - k) / (1 - k) || 0;
+
+	return [c * 100, m * 100, y * 100, k * 100];
+};
+
+/**
+ * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
+ * */
+function comparativeDistance(x, y) {
+	return (
+		Math.pow(x[0] - y[0], 2) +
+		Math.pow(x[1] - y[1], 2) +
+		Math.pow(x[2] - y[2], 2)
+	);
+}
+
+convert.rgb.keyword = function (rgb) {
+	var reversed = reverseKeywords[rgb];
+	if (reversed) {
+		return reversed;
+	}
+
+	var currentClosestDistance = Infinity;
+	var currentClosestKeyword;
+
+	for (var keyword in colorName) {
+		if (colorName.hasOwnProperty(keyword)) {
+			var value = colorName[keyword];
+
+			// Compute comparative distance
+			var distance = comparativeDistance(rgb, value);
+
+			// Check if its less, if so set as closest
+			if (distance < currentClosestDistance) {
+				currentClosestDistance = distance;
+				currentClosestKeyword = keyword;
+			}
+		}
+	}
+
+	return currentClosestKeyword;
+};
+
+convert.keyword.rgb = function (keyword) {
+	return colorName[keyword];
+};
+
+convert.rgb.xyz = function (rgb) {
+	var r = rgb[0] / 255;
+	var g = rgb[1] / 255;
+	var b = rgb[2] / 255;
+
+	// assume sRGB
+	r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
+	g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
+	b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
+
+	var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
+	var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
+	var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
+
+	return [x * 100, y * 100, z * 100];
+};
+
+convert.rgb.lab = function (rgb) {
+	var xyz = convert.rgb.xyz(rgb);
+	var x = xyz[0];
+	var y = xyz[1];
+	var z = xyz[2];
+	var l;
+	var a;
+	var b;
+
+	x /= 95.047;
+	y /= 100;
+	z /= 108.883;
+
+	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
+	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
+	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
+
+	l = (116 * y) - 16;
+	a = 500 * (x - y);
+	b = 200 * (y - z);
+
+	return [l, a, b];
+};
+
+convert.hsl.rgb = function (hsl) {
+	var h = hsl[0] / 360;
+	var s = hsl[1] / 100;
+	var l = hsl[2] / 100;
+	var t1;
+	var t2;
+	var t3;
+	var rgb;
+	var val;
+
+	if (s === 0) {
+		val = l * 255;
+		return [val, val, val];
+	}
+
+	if (l < 0.5) {
+		t2 = l * (1 + s);
+	} else {
+		t2 = l + s - l * s;
+	}
+
+	t1 = 2 * l - t2;
+
+	rgb = [0, 0, 0];
+	for (var i = 0; i < 3; i++) {
+		t3 = h + 1 / 3 * -(i - 1);
+		if (t3 < 0) {
+			t3++;
+		}
+		if (t3 > 1) {
+			t3--;
+		}
+
+		if (6 * t3 < 1) {
+			val = t1 + (t2 - t1) * 6 * t3;
+		} else if (2 * t3 < 1) {
+			val = t2;
+		} else if (3 * t3 < 2) {
+			val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
+		} else {
+			val = t1;
+		}
+
+		rgb[i] = val * 255;
+	}
+
+	return rgb;
+};
+
+convert.hsl.hsv = function (hsl) {
+	var h = hsl[0];
+	var s = hsl[1] / 100;
+	var l = hsl[2] / 100;
+	var smin = s;
+	var lmin = Math.max(l, 0.01);
+	var sv;
+	var v;
+
+	l *= 2;
+	s *= (l <= 1) ? l : 2 - l;
+	smin *= lmin <= 1 ? lmin : 2 - lmin;
+	v = (l + s) / 2;
+	sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
+
+	return [h, sv * 100, v * 100];
+};
+
+convert.hsv.rgb = function (hsv) {
+	var h = hsv[0] / 60;
+	var s = hsv[1] / 100;
+	var v = hsv[2] / 100;
+	var hi = Math.floor(h) % 6;
+
+	var f = h - Math.floor(h);
+	var p = 255 * v * (1 - s);
+	var q = 255 * v * (1 - (s * f));
+	var t = 255 * v * (1 - (s * (1 - f)));
+	v *= 255;
+
+	switch (hi) {
+		case 0:
+			return [v, t, p];
+		case 1:
+			return [q, v, p];
+		case 2:
+			return [p, v, t];
+		case 3:
+			return [p, q, v];
+		case 4:
+			return [t, p, v];
+		case 5:
+			return [v, p, q];
+	}
+};
+
+convert.hsv.hsl = function (hsv) {
+	var h = hsv[0];
+	var s = hsv[1] / 100;
+	var v = hsv[2] / 100;
+	var vmin = Math.max(v, 0.01);
+	var lmin;
+	var sl;
+	var l;
+
+	l = (2 - s) * v;
+	lmin = (2 - s) * vmin;
+	sl = s * vmin;
+	sl /= (lmin <= 1) ? lmin : 2 - lmin;
+	sl = sl || 0;
+	l /= 2;
+
+	return [h, sl * 100, l * 100];
+};
 
-                    Tab._jQueryInterface.call($(this), 'show');
-                });
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
-
-                $.fn[NAME$9] = Tab._jQueryInterface;
-                $.fn[NAME$9].Constructor = Tab;
-
-                $.fn[NAME$9].noConflict = function () {
-                    $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
-                    return Tab._jQueryInterface;
-                };
+// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
+convert.hwb.rgb = function (hwb) {
+	var h = hwb[0] / 360;
+	var wh = hwb[1] / 100;
+	var bl = hwb[2] / 100;
+	var ratio = wh + bl;
+	var i;
+	var v;
+	var f;
+	var n;
+
+	// wh + bl cant be > 1
+	if (ratio > 1) {
+		wh /= ratio;
+		bl /= ratio;
+	}
+
+	i = Math.floor(6 * h);
+	v = 1 - bl;
+	f = 6 * h - i;
+
+	if ((i & 0x01) !== 0) {
+		f = 1 - f;
+	}
+
+	n = wh + f * (v - wh); // linear interpolation
+
+	var r;
+	var g;
+	var b;
+	switch (i) {
+		default:
+		case 6:
+		case 0: r = v; g = n; b = wh; break;
+		case 1: r = n; g = v; b = wh; break;
+		case 2: r = wh; g = v; b = n; break;
+		case 3: r = wh; g = n; b = v; break;
+		case 4: r = n; g = wh; b = v; break;
+		case 5: r = v; g = wh; b = n; break;
+	}
+
+	return [r * 255, g * 255, b * 255];
+};
+
+convert.cmyk.rgb = function (cmyk) {
+	var c = cmyk[0] / 100;
+	var m = cmyk[1] / 100;
+	var y = cmyk[2] / 100;
+	var k = cmyk[3] / 100;
+	var r;
+	var g;
+	var b;
+
+	r = 1 - Math.min(1, c * (1 - k) + k);
+	g = 1 - Math.min(1, m * (1 - k) + k);
+	b = 1 - Math.min(1, y * (1 - k) + k);
+
+	return [r * 255, g * 255, b * 255];
+};
+
+convert.xyz.rgb = function (xyz) {
+	var x = xyz[0] / 100;
+	var y = xyz[1] / 100;
+	var z = xyz[2] / 100;
+	var r;
+	var g;
+	var b;
+
+	r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
+	g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
+	b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
+
+	// assume sRGB
+	r = r > 0.0031308
+		? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
+		: r * 12.92;
+
+	g = g > 0.0031308
+		? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
+		: g * 12.92;
+
+	b = b > 0.0031308
+		? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
+		: b * 12.92;
+
+	r = Math.min(Math.max(0, r), 1);
+	g = Math.min(Math.max(0, g), 1);
+	b = Math.min(Math.max(0, b), 1);
+
+	return [r * 255, g * 255, b * 255];
+};
+
+convert.xyz.lab = function (xyz) {
+	var x = xyz[0];
+	var y = xyz[1];
+	var z = xyz[2];
+	var l;
+	var a;
+	var b;
+
+	x /= 95.047;
+	y /= 100;
+	z /= 108.883;
+
+	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
+	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
+	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
+
+	l = (116 * y) - 16;
+	a = 500 * (x - y);
+	b = 200 * (y - z);
+
+	return [l, a, b];
+};
+
+convert.lab.xyz = function (lab) {
+	var l = lab[0];
+	var a = lab[1];
+	var b = lab[2];
+	var x;
+	var y;
+	var z;
+
+	y = (l + 16) / 116;
+	x = a / 500 + y;
+	z = y - b / 200;
+
+	var y2 = Math.pow(y, 3);
+	var x2 = Math.pow(x, 3);
+	var z2 = Math.pow(z, 3);
+	y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
+	x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
+	z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
+
+	x *= 95.047;
+	y *= 100;
+	z *= 108.883;
+
+	return [x, y, z];
+};
+
+convert.lab.lch = function (lab) {
+	var l = lab[0];
+	var a = lab[1];
+	var b = lab[2];
+	var hr;
+	var h;
+	var c;
+
+	hr = Math.atan2(b, a);
+	h = hr * 360 / 2 / Math.PI;
+
+	if (h < 0) {
+		h += 360;
+	}
+
+	c = Math.sqrt(a * a + b * b);
+
+	return [l, c, h];
+};
+
+convert.lch.lab = function (lch) {
+	var l = lch[0];
+	var c = lch[1];
+	var h = lch[2];
+	var a;
+	var b;
+	var hr;
+
+	hr = h / 360 * 2 * Math.PI;
+	a = c * Math.cos(hr);
+	b = c * Math.sin(hr);
+
+	return [l, a, b];
+};
+
+convert.rgb.ansi16 = function (args) {
+	var r = args[0];
+	var g = args[1];
+	var b = args[2];
+	var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
+
+	value = Math.round(value / 50);
+
+	if (value === 0) {
+		return 30;
+	}
+
+	var ansi = 30
+		+ ((Math.round(b / 255) << 2)
+		| (Math.round(g / 255) << 1)
+		| Math.round(r / 255));
+
+	if (value === 2) {
+		ansi += 60;
+	}
+
+	return ansi;
+};
+
+convert.hsv.ansi16 = function (args) {
+	// optimization here; we already know the value and don't need to get
+	// it converted for us.
+	return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
+};
+
+convert.rgb.ansi256 = function (args) {
+	var r = args[0];
+	var g = args[1];
+	var b = args[2];
+
+	// we use the extended greyscale palette here, with the exception of
+	// black and white. normal palette only has 4 greyscale shades.
+	if (r === g && g === b) {
+		if (r < 8) {
+			return 16;
+		}
+
+		if (r > 248) {
+			return 231;
+		}
+
+		return Math.round(((r - 8) / 247) * 24) + 232;
+	}
+
+	var ansi = 16
+		+ (36 * Math.round(r / 255 * 5))
+		+ (6 * Math.round(g / 255 * 5))
+		+ Math.round(b / 255 * 5);
+
+	return ansi;
+};
+
+convert.ansi16.rgb = function (args) {
+	var color = args % 10;
+
+	// handle greyscale
+	if (color === 0 || color === 7) {
+		if (args > 50) {
+			color += 3.5;
+		}
+
+		color = color / 10.5 * 255;
+
+		return [color, color, color];
+	}
+
+	var mult = (~~(args > 50) + 1) * 0.5;
+	var r = ((color & 1) * mult) * 255;
+	var g = (((color >> 1) & 1) * mult) * 255;
+	var b = (((color >> 2) & 1) * mult) * 255;
+
+	return [r, g, b];
+};
+
+convert.ansi256.rgb = function (args) {
+	// handle greyscale
+	if (args >= 232) {
+		var c = (args - 232) * 10 + 8;
+		return [c, c, c];
+	}
+
+	args -= 16;
+
+	var rem;
+	var r = Math.floor(args / 36) / 5 * 255;
+	var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
+	var b = (rem % 6) / 5 * 255;
+
+	return [r, g, b];
+};
+
+convert.rgb.hex = function (args) {
+	var integer = ((Math.round(args[0]) & 0xFF) << 16)
+		+ ((Math.round(args[1]) & 0xFF) << 8)
+		+ (Math.round(args[2]) & 0xFF);
+
+	var string = integer.toString(16).toUpperCase();
+	return '000000'.substring(string.length) + string;
+};
+
+convert.hex.rgb = function (args) {
+	var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
+	if (!match) {
+		return [0, 0, 0];
+	}
+
+	var colorString = match[0];
+
+	if (match[0].length === 3) {
+		colorString = colorString.split('').map(function (char) {
+			return char + char;
+		}).join('');
+	}
+
+	var integer = parseInt(colorString, 16);
+	var r = (integer >> 16) & 0xFF;
+	var g = (integer >> 8) & 0xFF;
+	var b = integer & 0xFF;
+
+	return [r, g, b];
+};
+
+convert.rgb.hcg = function (rgb) {
+	var r = rgb[0] / 255;
+	var g = rgb[1] / 255;
+	var b = rgb[2] / 255;
+	var max = Math.max(Math.max(r, g), b);
+	var min = Math.min(Math.min(r, g), b);
+	var chroma = (max - min);
+	var grayscale;
+	var hue;
+
+	if (chroma < 1) {
+		grayscale = min / (1 - chroma);
+	} else {
+		grayscale = 0;
+	}
+
+	if (chroma <= 0) {
+		hue = 0;
+	} else
+	if (max === r) {
+		hue = ((g - b) / chroma) % 6;
+	} else
+	if (max === g) {
+		hue = 2 + (b - r) / chroma;
+	} else {
+		hue = 4 + (r - g) / chroma + 4;
+	}
+
+	hue /= 6;
+	hue %= 1;
+
+	return [hue * 360, chroma * 100, grayscale * 100];
+};
+
+convert.hsl.hcg = function (hsl) {
+	var s = hsl[1] / 100;
+	var l = hsl[2] / 100;
+	var c = 1;
+	var f = 0;
+
+	if (l < 0.5) {
+		c = 2.0 * s * l;
+	} else {
+		c = 2.0 * s * (1.0 - l);
+	}
+
+	if (c < 1.0) {
+		f = (l - 0.5 * c) / (1.0 - c);
+	}
+
+	return [hsl[0], c * 100, f * 100];
+};
+
+convert.hsv.hcg = function (hsv) {
+	var s = hsv[1] / 100;
+	var v = hsv[2] / 100;
+
+	var c = s * v;
+	var f = 0;
+
+	if (c < 1.0) {
+		f = (v - c) / (1 - c);
+	}
+
+	return [hsv[0], c * 100, f * 100];
+};
+
+convert.hcg.rgb = function (hcg) {
+	var h = hcg[0] / 360;
+	var c = hcg[1] / 100;
+	var g = hcg[2] / 100;
+
+	if (c === 0.0) {
+		return [g * 255, g * 255, g * 255];
+	}
+
+	var pure = [0, 0, 0];
+	var hi = (h % 1) * 6;
+	var v = hi % 1;
+	var w = 1 - v;
+	var mg = 0;
+
+	switch (Math.floor(hi)) {
+		case 0:
+			pure[0] = 1; pure[1] = v; pure[2] = 0; break;
+		case 1:
+			pure[0] = w; pure[1] = 1; pure[2] = 0; break;
+		case 2:
+			pure[0] = 0; pure[1] = 1; pure[2] = v; break;
+		case 3:
+			pure[0] = 0; pure[1] = w; pure[2] = 1; break;
+		case 4:
+			pure[0] = v; pure[1] = 0; pure[2] = 1; break;
+		default:
+			pure[0] = 1; pure[1] = 0; pure[2] = w;
+	}
+
+	mg = (1.0 - c) * g;
+
+	return [
+		(c * pure[0] + mg) * 255,
+		(c * pure[1] + mg) * 255,
+		(c * pure[2] + mg) * 255
+	];
+};
+
+convert.hcg.hsv = function (hcg) {
+	var c = hcg[1] / 100;
+	var g = hcg[2] / 100;
+
+	var v = c + g * (1.0 - c);
+	var f = 0;
+
+	if (v > 0.0) {
+		f = c / v;
+	}
+
+	return [hcg[0], f * 100, v * 100];
+};
+
+convert.hcg.hsl = function (hcg) {
+	var c = hcg[1] / 100;
+	var g = hcg[2] / 100;
+
+	var l = g * (1.0 - c) + 0.5 * c;
+	var s = 0;
+
+	if (l > 0.0 && l < 0.5) {
+		s = c / (2 * l);
+	} else
+	if (l >= 0.5 && l < 1.0) {
+		s = c / (2 * (1 - l));
+	}
+
+	return [hcg[0], s * 100, l * 100];
+};
+
+convert.hcg.hwb = function (hcg) {
+	var c = hcg[1] / 100;
+	var g = hcg[2] / 100;
+	var v = c + g * (1.0 - c);
+	return [hcg[0], (v - c) * 100, (1 - v) * 100];
+};
+
+convert.hwb.hcg = function (hwb) {
+	var w = hwb[1] / 100;
+	var b = hwb[2] / 100;
+	var v = 1 - b;
+	var c = v - w;
+	var g = 0;
+
+	if (c < 1) {
+		g = (v - c) / (1 - c);
+	}
+
+	return [hwb[0], c * 100, g * 100];
+};
+
+convert.apple.rgb = function (apple) {
+	return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
+};
+
+convert.rgb.apple = function (rgb) {
+	return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
+};
+
+convert.gray.rgb = function (args) {
+	return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
+};
+
+convert.gray.hsl = convert.gray.hsv = function (args) {
+	return [0, 0, args[0]];
+};
+
+convert.gray.hwb = function (gray) {
+	return [0, 100, gray[0]];
+};
+
+convert.gray.cmyk = function (gray) {
+	return [0, 0, 0, gray[0]];
+};
+
+convert.gray.lab = function (gray) {
+	return [gray[0], 0, 0];
+};
+
+convert.gray.hex = function (gray) {
+	var val = Math.round(gray[0] / 100 * 255) & 0xFF;
+	var integer = (val << 16) + (val << 8) + val;
+
+	var string = integer.toString(16).toUpperCase();
+	return '000000'.substring(string.length) + string;
+};
+
+convert.rgb.gray = function (rgb) {
+	var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
+	return [val / 255 * 100];
+};
+});
+var conversions_1 = conversions.rgb;
+var conversions_2 = conversions.hsl;
+var conversions_3 = conversions.hsv;
+var conversions_4 = conversions.hwb;
+var conversions_5 = conversions.cmyk;
+var conversions_6 = conversions.xyz;
+var conversions_7 = conversions.lab;
+var conversions_8 = conversions.lch;
+var conversions_9 = conversions.hex;
+var conversions_10 = conversions.keyword;
+var conversions_11 = conversions.ansi16;
+var conversions_12 = conversions.ansi256;
+var conversions_13 = conversions.hcg;
+var conversions_14 = conversions.apple;
+var conversions_15 = conversions.gray;
+
+/*
+	this function routes a model to all other models.
 
-                /**
-                 * ------------------------------------------------------------------------
-                 * Constants
-                 * ------------------------------------------------------------------------
-                 */
-
-                var NAME$a = 'toast';
-                var VERSION$a = '4.5.2';
-                var DATA_KEY$a = 'bs.toast';
-                var EVENT_KEY$a = "." + DATA_KEY$a;
-                var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
-                var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
-                var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
-                var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
-                var EVENT_SHOW$4 = "show" + EVENT_KEY$a;
-                var EVENT_SHOWN$4 = "shown" + EVENT_KEY$a;
-                var CLASS_NAME_FADE$5 = 'fade';
-                var CLASS_NAME_HIDE = 'hide';
-                var CLASS_NAME_SHOW$7 = 'show';
-                var CLASS_NAME_SHOWING = 'showing';
-                var DefaultType$7 = {
-                    animation: 'boolean',
-                    autohide: 'boolean',
-                    delay: 'number'
-                };
-                var Default$7 = {
-                    animation: true,
-                    autohide: true,
-                    delay: 500
-                };
-                var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
-                /**
-                 * ------------------------------------------------------------------------
-                 * Class Definition
-                 * ------------------------------------------------------------------------
-                 */
+	all functions that are routed have a property `.conversion` attached
+	to the returned synthetic function. This property is an array
+	of strings, each with the steps in between the 'from' and 'to'
+	color models (inclusive).
 
-                var Toast = /*#__PURE__*/function () {
-                    function Toast(element, config) {
-                        this._element = element;
-                        this._config = this._getConfig(config);
-                        this._timeout = null;
+	conversions that are not possible simply are not included.
+*/
 
-                        this._setListeners();
-                    } // Getters
+function buildGraph() {
+	var graph = {};
+	// https://jsperf.com/object-keys-vs-for-in-with-closure/3
+	var models = Object.keys(conversions);
 
+	for (var len = models.length, i = 0; i < len; i++) {
+		graph[models[i]] = {
+			// http://jsperf.com/1-vs-infinity
+			// micro-opt, but this is simple.
+			distance: -1,
+			parent: null
+		};
+	}
 
-                    var _proto = Toast.prototype;
+	return graph;
+}
 
-                    // Public
-                    _proto.show = function show() {
-                        var _this = this;
+// https://en.wikipedia.org/wiki/Breadth-first_search
+function deriveBFS(fromModel) {
+	var graph = buildGraph();
+	var queue = [fromModel]; // unshift -> queue -> pop
+
+	graph[fromModel].distance = 0;
+
+	while (queue.length) {
+		var current = queue.pop();
+		var adjacents = Object.keys(conversions[current]);
+
+		for (var len = adjacents.length, i = 0; i < len; i++) {
+			var adjacent = adjacents[i];
+			var node = graph[adjacent];
+
+			if (node.distance === -1) {
+				node.distance = graph[current].distance + 1;
+				node.parent = current;
+				queue.unshift(adjacent);
+			}
+		}
+	}
+
+	return graph;
+}
+
+function link(from, to) {
+	return function (args) {
+		return to(from(args));
+	};
+}
+
+function wrapConversion(toModel, graph) {
+	var path = [graph[toModel].parent, toModel];
+	var fn = conversions[graph[toModel].parent][toModel];
 
-                        var showEvent = $.Event(EVENT_SHOW$4);
-                        $(this._element).trigger(showEvent);
+	var cur = graph[toModel].parent;
+	while (graph[cur].parent) {
+		path.unshift(graph[cur].parent);
+		fn = link(conversions[graph[cur].parent][cur], fn);
+		cur = graph[cur].parent;
+	}
 
-                        if (showEvent.isDefaultPrevented()) {
-                            return;
-                        }
+	fn.conversion = path;
+	return fn;
+}
+
+var route = function (fromModel) {
+	var graph = deriveBFS(fromModel);
+	var conversion = {};
+
+	var models = Object.keys(graph);
+	for (var len = models.length, i = 0; i < len; i++) {
+		var toModel = models[i];
+		var node = graph[toModel];
+
+		if (node.parent === null) {
+			// no possible conversion, or this node is the source model.
+			continue;
+		}
+
+		conversion[toModel] = wrapConversion(toModel, graph);
+	}
+
+	return conversion;
+};
+
+var convert = {};
+
+var models = Object.keys(conversions);
+
+function wrapRaw(fn) {
+	var wrappedFn = function (args) {
+		if (args === undefined || args === null) {
+			return args;
+		}
+
+		if (arguments.length > 1) {
+			args = Array.prototype.slice.call(arguments);
+		}
+
+		return fn(args);
+	};
+
+	// preserve .conversion property if there is one
+	if ('conversion' in fn) {
+		wrappedFn.conversion = fn.conversion;
+	}
+
+	return wrappedFn;
+}
+
+function wrapRounded(fn) {
+	var wrappedFn = function (args) {
+		if (args === undefined || args === null) {
+			return args;
+		}
+
+		if (arguments.length > 1) {
+			args = Array.prototype.slice.call(arguments);
+		}
+
+		var result = fn(args);
+
+		// we're assuming the result is an array here.
+		// see notice in conversions.js; don't use box types
+		// in conversion functions.
+		if (typeof result === 'object') {
+			for (var len = result.length, i = 0; i < len; i++) {
+				result[i] = Math.round(result[i]);
+			}
+		}
+
+		return result;
+	};
+
+	// preserve .conversion property if there is one
+	if ('conversion' in fn) {
+		wrappedFn.conversion = fn.conversion;
+	}
+
+	return wrappedFn;
+}
+
+models.forEach(function (fromModel) {
+	convert[fromModel] = {};
+
+	Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
+	Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
+
+	var routes = route(fromModel);
+	var routeModels = Object.keys(routes);
+
+	routeModels.forEach(function (toModel) {
+		var fn = routes[toModel];
+
+		convert[fromModel][toModel] = wrapRounded(fn);
+		convert[fromModel][toModel].raw = wrapRaw(fn);
+	});
+});
+
+var colorConvert = convert;
+
+var colorName$1 = {
+	"aliceblue": [240, 248, 255],
+	"antiquewhite": [250, 235, 215],
+	"aqua": [0, 255, 255],
+	"aquamarine": [127, 255, 212],
+	"azure": [240, 255, 255],
+	"beige": [245, 245, 220],
+	"bisque": [255, 228, 196],
+	"black": [0, 0, 0],
+	"blanchedalmond": [255, 235, 205],
+	"blue": [0, 0, 255],
+	"blueviolet": [138, 43, 226],
+	"brown": [165, 42, 42],
+	"burlywood": [222, 184, 135],
+	"cadetblue": [95, 158, 160],
+	"chartreuse": [127, 255, 0],
+	"chocolate": [210, 105, 30],
+	"coral": [255, 127, 80],
+	"cornflowerblue": [100, 149, 237],
+	"cornsilk": [255, 248, 220],
+	"crimson": [220, 20, 60],
+	"cyan": [0, 255, 255],
+	"darkblue": [0, 0, 139],
+	"darkcyan": [0, 139, 139],
+	"darkgoldenrod": [184, 134, 11],
+	"darkgray": [169, 169, 169],
+	"darkgreen": [0, 100, 0],
+	"darkgrey": [169, 169, 169],
+	"darkkhaki": [189, 183, 107],
+	"darkmagenta": [139, 0, 139],
+	"darkolivegreen": [85, 107, 47],
+	"darkorange": [255, 140, 0],
+	"darkorchid": [153, 50, 204],
+	"darkred": [139, 0, 0],
+	"darksalmon": [233, 150, 122],
+	"darkseagreen": [143, 188, 143],
+	"darkslateblue": [72, 61, 139],
+	"darkslategray": [47, 79, 79],
+	"darkslategrey": [47, 79, 79],
+	"darkturquoise": [0, 206, 209],
+	"darkviolet": [148, 0, 211],
+	"deeppink": [255, 20, 147],
+	"deepskyblue": [0, 191, 255],
+	"dimgray": [105, 105, 105],
+	"dimgrey": [105, 105, 105],
+	"dodgerblue": [30, 144, 255],
+	"firebrick": [178, 34, 34],
+	"floralwhite": [255, 250, 240],
+	"forestgreen": [34, 139, 34],
+	"fuchsia": [255, 0, 255],
+	"gainsboro": [220, 220, 220],
+	"ghostwhite": [248, 248, 255],
+	"gold": [255, 215, 0],
+	"goldenrod": [218, 165, 32],
+	"gray": [128, 128, 128],
+	"green": [0, 128, 0],
+	"greenyellow": [173, 255, 47],
+	"grey": [128, 128, 128],
+	"honeydew": [240, 255, 240],
+	"hotpink": [255, 105, 180],
+	"indianred": [205, 92, 92],
+	"indigo": [75, 0, 130],
+	"ivory": [255, 255, 240],
+	"khaki": [240, 230, 140],
+	"lavender": [230, 230, 250],
+	"lavenderblush": [255, 240, 245],
+	"lawngreen": [124, 252, 0],
+	"lemonchiffon": [255, 250, 205],
+	"lightblue": [173, 216, 230],
+	"lightcoral": [240, 128, 128],
+	"lightcyan": [224, 255, 255],
+	"lightgoldenrodyellow": [250, 250, 210],
+	"lightgray": [211, 211, 211],
+	"lightgreen": [144, 238, 144],
+	"lightgrey": [211, 211, 211],
+	"lightpink": [255, 182, 193],
+	"lightsalmon": [255, 160, 122],
+	"lightseagreen": [32, 178, 170],
+	"lightskyblue": [135, 206, 250],
+	"lightslategray": [119, 136, 153],
+	"lightslategrey": [119, 136, 153],
+	"lightsteelblue": [176, 196, 222],
+	"lightyellow": [255, 255, 224],
+	"lime": [0, 255, 0],
+	"limegreen": [50, 205, 50],
+	"linen": [250, 240, 230],
+	"magenta": [255, 0, 255],
+	"maroon": [128, 0, 0],
+	"mediumaquamarine": [102, 205, 170],
+	"mediumblue": [0, 0, 205],
+	"mediumorchid": [186, 85, 211],
+	"mediumpurple": [147, 112, 219],
+	"mediumseagreen": [60, 179, 113],
+	"mediumslateblue": [123, 104, 238],
+	"mediumspringgreen": [0, 250, 154],
+	"mediumturquoise": [72, 209, 204],
+	"mediumvioletred": [199, 21, 133],
+	"midnightblue": [25, 25, 112],
+	"mintcream": [245, 255, 250],
+	"mistyrose": [255, 228, 225],
+	"moccasin": [255, 228, 181],
+	"navajowhite": [255, 222, 173],
+	"navy": [0, 0, 128],
+	"oldlace": [253, 245, 230],
+	"olive": [128, 128, 0],
+	"olivedrab": [107, 142, 35],
+	"orange": [255, 165, 0],
+	"orangered": [255, 69, 0],
+	"orchid": [218, 112, 214],
+	"palegoldenrod": [238, 232, 170],
+	"palegreen": [152, 251, 152],
+	"paleturquoise": [175, 238, 238],
+	"palevioletred": [219, 112, 147],
+	"papayawhip": [255, 239, 213],
+	"peachpuff": [255, 218, 185],
+	"peru": [205, 133, 63],
+	"pink": [255, 192, 203],
+	"plum": [221, 160, 221],
+	"powderblue": [176, 224, 230],
+	"purple": [128, 0, 128],
+	"rebeccapurple": [102, 51, 153],
+	"red": [255, 0, 0],
+	"rosybrown": [188, 143, 143],
+	"royalblue": [65, 105, 225],
+	"saddlebrown": [139, 69, 19],
+	"salmon": [250, 128, 114],
+	"sandybrown": [244, 164, 96],
+	"seagreen": [46, 139, 87],
+	"seashell": [255, 245, 238],
+	"sienna": [160, 82, 45],
+	"silver": [192, 192, 192],
+	"skyblue": [135, 206, 235],
+	"slateblue": [106, 90, 205],
+	"slategray": [112, 128, 144],
+	"slategrey": [112, 128, 144],
+	"snow": [255, 250, 250],
+	"springgreen": [0, 255, 127],
+	"steelblue": [70, 130, 180],
+	"tan": [210, 180, 140],
+	"teal": [0, 128, 128],
+	"thistle": [216, 191, 216],
+	"tomato": [255, 99, 71],
+	"turquoise": [64, 224, 208],
+	"violet": [238, 130, 238],
+	"wheat": [245, 222, 179],
+	"white": [255, 255, 255],
+	"whitesmoke": [245, 245, 245],
+	"yellow": [255, 255, 0],
+	"yellowgreen": [154, 205, 50]
+};
+
+/* MIT license */
+
+
+var colorString = {
+   getRgba: getRgba,
+   getHsla: getHsla,
+   getRgb: getRgb,
+   getHsl: getHsl,
+   getHwb: getHwb,
+   getAlpha: getAlpha,
+
+   hexString: hexString,
+   rgbString: rgbString,
+   rgbaString: rgbaString,
+   percentString: percentString,
+   percentaString: percentaString,
+   hslString: hslString,
+   hslaString: hslaString,
+   hwbString: hwbString,
+   keyword: keyword
+};
+
+function getRgba(string) {
+   if (!string) {
+      return;
+   }
+   var abbr =  /^#([a-fA-F0-9]{3,4})$/i,
+       hex =  /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,
+       rgba = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,
+       per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,
+       keyword = /(\w+)/;
+
+   var rgb = [0, 0, 0],
+       a = 1,
+       match = string.match(abbr),
+       hexAlpha = "";
+   if (match) {
+      match = match[1];
+      hexAlpha = match[3];
+      for (var i = 0; i < rgb.length; i++) {
+         rgb[i] = parseInt(match[i] + match[i], 16);
+      }
+      if (hexAlpha) {
+         a = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;
+      }
+   }
+   else if (match = string.match(hex)) {
+      hexAlpha = match[2];
+      match = match[1];
+      for (var i = 0; i < rgb.length; i++) {
+         rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);
+      }
+      if (hexAlpha) {
+         a = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;
+      }
+   }
+   else if (match = string.match(rgba)) {
+      for (var i = 0; i < rgb.length; i++) {
+         rgb[i] = parseInt(match[i + 1]);
+      }
+      a = parseFloat(match[4]);
+   }
+   else if (match = string.match(per)) {
+      for (var i = 0; i < rgb.length; i++) {
+         rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
+      }
+      a = parseFloat(match[4]);
+   }
+   else if (match = string.match(keyword)) {
+      if (match[1] == "transparent") {
+         return [0, 0, 0, 0];
+      }
+      rgb = colorName$1[match[1]];
+      if (!rgb) {
+         return;
+      }
+   }
+
+   for (var i = 0; i < rgb.length; i++) {
+      rgb[i] = scale(rgb[i], 0, 255);
+   }
+   if (!a && a != 0) {
+      a = 1;
+   }
+   else {
+      a = scale(a, 0, 1);
+   }
+   rgb[3] = a;
+   return rgb;
+}
+
+function getHsla(string) {
+   if (!string) {
+      return;
+   }
+   var hsl = /^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/;
+   var match = string.match(hsl);
+   if (match) {
+      var alpha = parseFloat(match[4]);
+      var h = scale(parseInt(match[1]), 0, 360),
+          s = scale(parseFloat(match[2]), 0, 100),
+          l = scale(parseFloat(match[3]), 0, 100),
+          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);
+      return [h, s, l, a];
+   }
+}
+
+function getHwb(string) {
+   if (!string) {
+      return;
+   }
+   var hwb = /^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/;
+   var match = string.match(hwb);
+   if (match) {
+    var alpha = parseFloat(match[4]);
+      var h = scale(parseInt(match[1]), 0, 360),
+          w = scale(parseFloat(match[2]), 0, 100),
+          b = scale(parseFloat(match[3]), 0, 100),
+          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);
+      return [h, w, b, a];
+   }
+}
+
+function getRgb(string) {
+   var rgba = getRgba(string);
+   return rgba && rgba.slice(0, 3);
+}
+
+function getHsl(string) {
+  var hsla = getHsla(string);
+  return hsla && hsla.slice(0, 3);
+}
+
+function getAlpha(string) {
+   var vals = getRgba(string);
+   if (vals) {
+      return vals[3];
+   }
+   else if (vals = getHsla(string)) {
+      return vals[3];
+   }
+   else if (vals = getHwb(string)) {
+      return vals[3];
+   }
+}
 
-                        this._clearTimeout();
+// generators
+function hexString(rgba, a) {
+   var a = (a !== undefined && rgba.length === 3) ? a : rgba[3];
+   return "#" + hexDouble(rgba[0]) 
+              + hexDouble(rgba[1])
+              + hexDouble(rgba[2])
+              + (
+                 (a >= 0 && a < 1)
+                 ? hexDouble(Math.round(a * 255))
+                 : ""
+              );
+}
+
+function rgbString(rgba, alpha) {
+   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {
+      return rgbaString(rgba, alpha);
+   }
+   return "rgb(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2] + ")";
+}
+
+function rgbaString(rgba, alpha) {
+   if (alpha === undefined) {
+      alpha = (rgba[3] !== undefined ? rgba[3] : 1);
+   }
+   return "rgba(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2]
+           + ", " + alpha + ")";
+}
+
+function percentString(rgba, alpha) {
+   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {
+      return percentaString(rgba, alpha);
+   }
+   var r = Math.round(rgba[0]/255 * 100),
+       g = Math.round(rgba[1]/255 * 100),
+       b = Math.round(rgba[2]/255 * 100);
+
+   return "rgb(" + r + "%, " + g + "%, " + b + "%)";
+}
+
+function percentaString(rgba, alpha) {
+   var r = Math.round(rgba[0]/255 * 100),
+       g = Math.round(rgba[1]/255 * 100),
+       b = Math.round(rgba[2]/255 * 100);
+   return "rgba(" + r + "%, " + g + "%, " + b + "%, " + (alpha || rgba[3] || 1) + ")";
+}
+
+function hslString(hsla, alpha) {
+   if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {
+      return hslaString(hsla, alpha);
+   }
+   return "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)";
+}
+
+function hslaString(hsla, alpha) {
+   if (alpha === undefined) {
+      alpha = (hsla[3] !== undefined ? hsla[3] : 1);
+   }
+   return "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, "
+           + alpha + ")";
+}
 
-                        if (this._config.animation) {
-                            this._element.classList.add(CLASS_NAME_FADE$5);
-                        }
+// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
+// (hwb have alpha optional & 1 is default value)
+function hwbString(hwb, alpha) {
+   if (alpha === undefined) {
+      alpha = (hwb[3] !== undefined ? hwb[3] : 1);
+   }
+   return "hwb(" + hwb[0] + ", " + hwb[1] + "%, " + hwb[2] + "%"
+           + (alpha !== undefined && alpha !== 1 ? ", " + alpha : "") + ")";
+}
+
+function keyword(rgb) {
+  return reverseNames[rgb.slice(0, 3)];
+}
 
-                        var complete = function complete() {
-                            _this._element.classList.remove(CLASS_NAME_SHOWING);
+// helpers
+function scale(num, min, max) {
+   return Math.min(Math.max(min, num), max);
+}
 
-                            _this._element.classList.add(CLASS_NAME_SHOW$7);
+function hexDouble(num) {
+  var str = num.toString(16).toUpperCase();
+  return (str.length < 2) ? "0" + str : str;
+}
 
-                            $(_this._element).trigger(EVENT_SHOWN$4);
 
-                            if (_this._config.autohide) {
-                                _this._timeout = setTimeout(function () {
-                                    _this.hide();
-                                }, _this._config.delay);
-                            }
-                        };
+//create a list of reverse color names
+var reverseNames = {};
+for (var name in colorName$1) {
+   reverseNames[colorName$1[name]] = name;
+}
+
+/* MIT license */
+
+
+
+var Color = function (obj) {
+	if (obj instanceof Color) {
+		return obj;
+	}
+	if (!(this instanceof Color)) {
+		return new Color(obj);
+	}
+
+	this.valid = false;
+	this.values = {
+		rgb: [0, 0, 0],
+		hsl: [0, 0, 0],
+		hsv: [0, 0, 0],
+		hwb: [0, 0, 0],
+		cmyk: [0, 0, 0, 0],
+		alpha: 1
+	};
+
+	// parse Color() argument
+	var vals;
+	if (typeof obj === 'string') {
+		vals = colorString.getRgba(obj);
+		if (vals) {
+			this.setValues('rgb', vals);
+		} else if (vals = colorString.getHsla(obj)) {
+			this.setValues('hsl', vals);
+		} else if (vals = colorString.getHwb(obj)) {
+			this.setValues('hwb', vals);
+		}
+	} else if (typeof obj === 'object') {
+		vals = obj;
+		if (vals.r !== undefined || vals.red !== undefined) {
+			this.setValues('rgb', vals);
+		} else if (vals.l !== undefined || vals.lightness !== undefined) {
+			this.setValues('hsl', vals);
+		} else if (vals.v !== undefined || vals.value !== undefined) {
+			this.setValues('hsv', vals);
+		} else if (vals.w !== undefined || vals.whiteness !== undefined) {
+			this.setValues('hwb', vals);
+		} else if (vals.c !== undefined || vals.cyan !== undefined) {
+			this.setValues('cmyk', vals);
+		}
+	}
+};
+
+Color.prototype = {
+	isValid: function () {
+		return this.valid;
+	},
+	rgb: function () {
+		return this.setSpace('rgb', arguments);
+	},
+	hsl: function () {
+		return this.setSpace('hsl', arguments);
+	},
+	hsv: function () {
+		return this.setSpace('hsv', arguments);
+	},
+	hwb: function () {
+		return this.setSpace('hwb', arguments);
+	},
+	cmyk: function () {
+		return this.setSpace('cmyk', arguments);
+	},
+
+	rgbArray: function () {
+		return this.values.rgb;
+	},
+	hslArray: function () {
+		return this.values.hsl;
+	},
+	hsvArray: function () {
+		return this.values.hsv;
+	},
+	hwbArray: function () {
+		var values = this.values;
+		if (values.alpha !== 1) {
+			return values.hwb.concat([values.alpha]);
+		}
+		return values.hwb;
+	},
+	cmykArray: function () {
+		return this.values.cmyk;
+	},
+	rgbaArray: function () {
+		var values = this.values;
+		return values.rgb.concat([values.alpha]);
+	},
+	hslaArray: function () {
+		var values = this.values;
+		return values.hsl.concat([values.alpha]);
+	},
+	alpha: function (val) {
+		if (val === undefined) {
+			return this.values.alpha;
+		}
+		this.setValues('alpha', val);
+		return this;
+	},
+
+	red: function (val) {
+		return this.setChannel('rgb', 0, val);
+	},
+	green: function (val) {
+		return this.setChannel('rgb', 1, val);
+	},
+	blue: function (val) {
+		return this.setChannel('rgb', 2, val);
+	},
+	hue: function (val) {
+		if (val) {
+			val %= 360;
+			val = val < 0 ? 360 + val : val;
+		}
+		return this.setChannel('hsl', 0, val);
+	},
+	saturation: function (val) {
+		return this.setChannel('hsl', 1, val);
+	},
+	lightness: function (val) {
+		return this.setChannel('hsl', 2, val);
+	},
+	saturationv: function (val) {
+		return this.setChannel('hsv', 1, val);
+	},
+	whiteness: function (val) {
+		return this.setChannel('hwb', 1, val);
+	},
+	blackness: function (val) {
+		return this.setChannel('hwb', 2, val);
+	},
+	value: function (val) {
+		return this.setChannel('hsv', 2, val);
+	},
+	cyan: function (val) {
+		return this.setChannel('cmyk', 0, val);
+	},
+	magenta: function (val) {
+		return this.setChannel('cmyk', 1, val);
+	},
+	yellow: function (val) {
+		return this.setChannel('cmyk', 2, val);
+	},
+	black: function (val) {
+		return this.setChannel('cmyk', 3, val);
+	},
+
+	hexString: function () {
+		return colorString.hexString(this.values.rgb);
+	},
+	rgbString: function () {
+		return colorString.rgbString(this.values.rgb, this.values.alpha);
+	},
+	rgbaString: function () {
+		return colorString.rgbaString(this.values.rgb, this.values.alpha);
+	},
+	percentString: function () {
+		return colorString.percentString(this.values.rgb, this.values.alpha);
+	},
+	hslString: function () {
+		return colorString.hslString(this.values.hsl, this.values.alpha);
+	},
+	hslaString: function () {
+		return colorString.hslaString(this.values.hsl, this.values.alpha);
+	},
+	hwbString: function () {
+		return colorString.hwbString(this.values.hwb, this.values.alpha);
+	},
+	keyword: function () {
+		return colorString.keyword(this.values.rgb, this.values.alpha);
+	},
+
+	rgbNumber: function () {
+		var rgb = this.values.rgb;
+		return (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];
+	},
+
+	luminosity: function () {
+		// http://www.w3.org/TR/WCAG20/#relativeluminancedef
+		var rgb = this.values.rgb;
+		var lum = [];
+		for (var i = 0; i < rgb.length; i++) {
+			var chan = rgb[i] / 255;
+			lum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);
+		}
+		return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
+	},
+
+	contrast: function (color2) {
+		// http://www.w3.org/TR/WCAG20/#contrast-ratiodef
+		var lum1 = this.luminosity();
+		var lum2 = color2.luminosity();
+		if (lum1 > lum2) {
+			return (lum1 + 0.05) / (lum2 + 0.05);
+		}
+		return (lum2 + 0.05) / (lum1 + 0.05);
+	},
+
+	level: function (color2) {
+		var contrastRatio = this.contrast(color2);
+		if (contrastRatio >= 7.1) {
+			return 'AAA';
+		}
+
+		return (contrastRatio >= 4.5) ? 'AA' : '';
+	},
+
+	dark: function () {
+		// YIQ equation from http://24ways.org/2010/calculating-color-contrast
+		var rgb = this.values.rgb;
+		var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;
+		return yiq < 128;
+	},
+
+	light: function () {
+		return !this.dark();
+	},
+
+	negate: function () {
+		var rgb = [];
+		for (var i = 0; i < 3; i++) {
+			rgb[i] = 255 - this.values.rgb[i];
+		}
+		this.setValues('rgb', rgb);
+		return this;
+	},
+
+	lighten: function (ratio) {
+		var hsl = this.values.hsl;
+		hsl[2] += hsl[2] * ratio;
+		this.setValues('hsl', hsl);
+		return this;
+	},
+
+	darken: function (ratio) {
+		var hsl = this.values.hsl;
+		hsl[2] -= hsl[2] * ratio;
+		this.setValues('hsl', hsl);
+		return this;
+	},
+
+	saturate: function (ratio) {
+		var hsl = this.values.hsl;
+		hsl[1] += hsl[1] * ratio;
+		this.setValues('hsl', hsl);
+		return this;
+	},
+
+	desaturate: function (ratio) {
+		var hsl = this.values.hsl;
+		hsl[1] -= hsl[1] * ratio;
+		this.setValues('hsl', hsl);
+		return this;
+	},
+
+	whiten: function (ratio) {
+		var hwb = this.values.hwb;
+		hwb[1] += hwb[1] * ratio;
+		this.setValues('hwb', hwb);
+		return this;
+	},
+
+	blacken: function (ratio) {
+		var hwb = this.values.hwb;
+		hwb[2] += hwb[2] * ratio;
+		this.setValues('hwb', hwb);
+		return this;
+	},
+
+	greyscale: function () {
+		var rgb = this.values.rgb;
+		// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
+		var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
+		this.setValues('rgb', [val, val, val]);
+		return this;
+	},
+
+	clearer: function (ratio) {
+		var alpha = this.values.alpha;
+		this.setValues('alpha', alpha - (alpha * ratio));
+		return this;
+	},
+
+	opaquer: function (ratio) {
+		var alpha = this.values.alpha;
+		this.setValues('alpha', alpha + (alpha * ratio));
+		return this;
+	},
+
+	rotate: function (degrees) {
+		var hsl = this.values.hsl;
+		var hue = (hsl[0] + degrees) % 360;
+		hsl[0] = hue < 0 ? 360 + hue : hue;
+		this.setValues('hsl', hsl);
+		return this;
+	},
+
+	/**
+	 * Ported from sass implementation in C
+	 * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
+	 */
+	mix: function (mixinColor, weight) {
+		var color1 = this;
+		var color2 = mixinColor;
+		var p = weight === undefined ? 0.5 : weight;
+
+		var w = 2 * p - 1;
+		var a = color1.alpha() - color2.alpha();
+
+		var w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
+		var w2 = 1 - w1;
+
+		return this
+			.rgb(
+				w1 * color1.red() + w2 * color2.red(),
+				w1 * color1.green() + w2 * color2.green(),
+				w1 * color1.blue() + w2 * color2.blue()
+			)
+			.alpha(color1.alpha() * p + color2.alpha() * (1 - p));
+	},
+
+	toJSON: function () {
+		return this.rgb();
+	},
+
+	clone: function () {
+		// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,
+		// making the final build way to big to embed in Chart.js. So let's do it manually,
+		// assuming that values to clone are 1 dimension arrays containing only numbers,
+		// except 'alpha' which is a number.
+		var result = new Color();
+		var source = this.values;
+		var target = result.values;
+		var value, type;
+
+		for (var prop in source) {
+			if (source.hasOwnProperty(prop)) {
+				value = source[prop];
+				type = ({}).toString.call(value);
+				if (type === '[object Array]') {
+					target[prop] = value.slice(0);
+				} else if (type === '[object Number]') {
+					target[prop] = value;
+				} else {
+					console.error('unexpected color value:', value);
+				}
+			}
+		}
+
+		return result;
+	}
+};
+
+Color.prototype.spaces = {
+	rgb: ['red', 'green', 'blue'],
+	hsl: ['hue', 'saturation', 'lightness'],
+	hsv: ['hue', 'saturation', 'value'],
+	hwb: ['hue', 'whiteness', 'blackness'],
+	cmyk: ['cyan', 'magenta', 'yellow', 'black']
+};
+
+Color.prototype.maxes = {
+	rgb: [255, 255, 255],
+	hsl: [360, 100, 100],
+	hsv: [360, 100, 100],
+	hwb: [360, 100, 100],
+	cmyk: [100, 100, 100, 100]
+};
+
+Color.prototype.getValues = function (space) {
+	var values = this.values;
+	var vals = {};
+
+	for (var i = 0; i < space.length; i++) {
+		vals[space.charAt(i)] = values[space][i];
+	}
+
+	if (values.alpha !== 1) {
+		vals.a = values.alpha;
+	}
+
+	// {r: 255, g: 255, b: 255, a: 0.4}
+	return vals;
+};
+
+Color.prototype.setValues = function (space, vals) {
+	var values = this.values;
+	var spaces = this.spaces;
+	var maxes = this.maxes;
+	var alpha = 1;
+	var i;
+
+	this.valid = true;
+
+	if (space === 'alpha') {
+		alpha = vals;
+	} else if (vals.length) {
+		// [10, 10, 10]
+		values[space] = vals.slice(0, space.length);
+		alpha = vals[space.length];
+	} else if (vals[space.charAt(0)] !== undefined) {
+		// {r: 10, g: 10, b: 10}
+		for (i = 0; i < space.length; i++) {
+			values[space][i] = vals[space.charAt(i)];
+		}
+
+		alpha = vals.a;
+	} else if (vals[spaces[space][0]] !== undefined) {
+		// {red: 10, green: 10, blue: 10}
+		var chans = spaces[space];
+
+		for (i = 0; i < space.length; i++) {
+			values[space][i] = vals[chans[i]];
+		}
+
+		alpha = vals.alpha;
+	}
+
+	values.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));
+
+	if (space === 'alpha') {
+		return false;
+	}
+
+	var capped;
+
+	// cap values of the space prior converting all values
+	for (i = 0; i < space.length; i++) {
+		capped = Math.max(0, Math.min(maxes[space][i], values[space][i]));
+		values[space][i] = Math.round(capped);
+	}
+
+	// convert to all the other color spaces
+	for (var sname in spaces) {
+		if (sname !== space) {
+			values[sname] = colorConvert[space][sname](values[space]);
+		}
+	}
+
+	return true;
+};
+
+Color.prototype.setSpace = function (space, args) {
+	var vals = args[0];
+
+	if (vals === undefined) {
+		// color.rgb()
+		return this.getValues(space);
+	}
+
+	// color.rgb(10, 10, 10)
+	if (typeof vals === 'number') {
+		vals = Array.prototype.slice.call(args);
+	}
+
+	this.setValues(space, vals);
+	return this;
+};
+
+Color.prototype.setChannel = function (space, index, val) {
+	var svalues = this.values[space];
+	if (val === undefined) {
+		// color.red()
+		return svalues[index];
+	} else if (val === svalues[index]) {
+		// color.red(color.red())
+		return this;
+	}
+
+	// color.red(100)
+	svalues[index] = val;
+	this.setValues(space, svalues);
+
+	return this;
+};
+
+if (typeof window !== 'undefined') {
+	window.Color = Color;
+}
+
+var chartjsColor = Color;
+
+/**
+ * @namespace Chart.helpers
+ */
+var helpers = {
+	/**
+	 * An empty function that can be used, for example, for optional callback.
+	 */
+	noop: function() {},
 
-                        this._element.classList.remove(CLASS_NAME_HIDE);
+	/**
+	 * Returns a unique id, sequentially generated from a global variable.
+	 * @returns {number}
+	 * @function
+	 */
+	uid: (function() {
+		var id = 0;
+		return function() {
+			return id++;
+		};
+	}()),
+
+	/**
+	 * Returns true if `value` is neither null nor undefined, else returns false.
+	 * @param {*} value - The value to test.
+	 * @returns {boolean}
+	 * @since 2.7.0
+	 */
+	isNullOrUndef: function(value) {
+		return value === null || typeof value === 'undefined';
+	},
+
+	/**
+	 * Returns true if `value` is an array (including typed arrays), else returns false.
+	 * @param {*} value - The value to test.
+	 * @returns {boolean}
+	 * @function
+	 */
+	isArray: function(value) {
+		if (Array.isArray && Array.isArray(value)) {
+			return true;
+		}
+		var type = Object.prototype.toString.call(value);
+		if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {
+			return true;
+		}
+		return false;
+	},
+
+	/**
+	 * Returns true if `value` is an object (excluding null), else returns false.
+	 * @param {*} value - The value to test.
+	 * @returns {boolean}
+	 * @since 2.7.0
+	 */
+	isObject: function(value) {
+		return value !== null && Object.prototype.toString.call(value) === '[object Object]';
+	},
+
+	/**
+	 * Returns true if `value` is a finite number, else returns false
+	 * @param {*} value  - The value to test.
+	 * @returns {boolean}
+	 */
+	isFinite: function(value) {
+		return (typeof value === 'number' || value instanceof Number) && isFinite(value);
+	},
+
+	/**
+	 * Returns `value` if defined, else returns `defaultValue`.
+	 * @param {*} value - The value to return if defined.
+	 * @param {*} defaultValue - The value to return if `value` is undefined.
+	 * @returns {*}
+	 */
+	valueOrDefault: function(value, defaultValue) {
+		return typeof value === 'undefined' ? defaultValue : value;
+	},
+
+	/**
+	 * Returns value at the given `index` in array if defined, else returns `defaultValue`.
+	 * @param {Array} value - The array to lookup for value at `index`.
+	 * @param {number} index - The index in `value` to lookup for value.
+	 * @param {*} defaultValue - The value to return if `value[index]` is undefined.
+	 * @returns {*}
+	 */
+	valueAtIndexOrDefault: function(value, index, defaultValue) {
+		return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);
+	},
+
+	/**
+	 * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the
+	 * value returned by `fn`. If `fn` is not a function, this method returns undefined.
+	 * @param {function} fn - The function to call.
+	 * @param {Array|undefined|null} args - The arguments with which `fn` should be called.
+	 * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.
+	 * @returns {*}
+	 */
+	callback: function(fn, args, thisArg) {
+		if (fn && typeof fn.call === 'function') {
+			return fn.apply(thisArg, args);
+		}
+	},
+
+	/**
+	 * Note(SB) for performance sake, this method should only be used when loopable type
+	 * is unknown or in none intensive code (not called often and small loopable). Else
+	 * it's preferable to use a regular for() loop and save extra function calls.
+	 * @param {object|Array} loopable - The object or array to be iterated.
+	 * @param {function} fn - The function to call for each item.
+	 * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.
+	 * @param {boolean} [reverse] - If true, iterates backward on the loopable.
+	 */
+	each: function(loopable, fn, thisArg, reverse) {
+		var i, len, keys;
+		if (helpers.isArray(loopable)) {
+			len = loopable.length;
+			if (reverse) {
+				for (i = len - 1; i >= 0; i--) {
+					fn.call(thisArg, loopable[i], i);
+				}
+			} else {
+				for (i = 0; i < len; i++) {
+					fn.call(thisArg, loopable[i], i);
+				}
+			}
+		} else if (helpers.isObject(loopable)) {
+			keys = Object.keys(loopable);
+			len = keys.length;
+			for (i = 0; i < len; i++) {
+				fn.call(thisArg, loopable[keys[i]], keys[i]);
+			}
+		}
+	},
+
+	/**
+	 * Returns true if the `a0` and `a1` arrays have the same content, else returns false.
+	 * @see https://stackoverflow.com/a/14853974
+	 * @param {Array} a0 - The array to compare
+	 * @param {Array} a1 - The array to compare
+	 * @returns {boolean}
+	 */
+	arrayEquals: function(a0, a1) {
+		var i, ilen, v0, v1;
+
+		if (!a0 || !a1 || a0.length !== a1.length) {
+			return false;
+		}
+
+		for (i = 0, ilen = a0.length; i < ilen; ++i) {
+			v0 = a0[i];
+			v1 = a1[i];
+
+			if (v0 instanceof Array && v1 instanceof Array) {
+				if (!helpers.arrayEquals(v0, v1)) {
+					return false;
+				}
+			} else if (v0 !== v1) {
+				// NOTE: two different object instances will never be equal: {x:20} != {x:20}
+				return false;
+			}
+		}
+
+		return true;
+	},
+
+	/**
+	 * Returns a deep copy of `source` without keeping references on objects and arrays.
+	 * @param {*} source - The value to clone.
+	 * @returns {*}
+	 */
+	clone: function(source) {
+		if (helpers.isArray(source)) {
+			return source.map(helpers.clone);
+		}
+
+		if (helpers.isObject(source)) {
+			var target = {};
+			var keys = Object.keys(source);
+			var klen = keys.length;
+			var k = 0;
+
+			for (; k < klen; ++k) {
+				target[keys[k]] = helpers.clone(source[keys[k]]);
+			}
+
+			return target;
+		}
+
+		return source;
+	},
+
+	/**
+	 * The default merger when Chart.helpers.merge is called without merger option.
+	 * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.
+	 * @private
+	 */
+	_merger: function(key, target, source, options) {
+		var tval = target[key];
+		var sval = source[key];
+
+		if (helpers.isObject(tval) && helpers.isObject(sval)) {
+			helpers.merge(tval, sval, options);
+		} else {
+			target[key] = helpers.clone(sval);
+		}
+	},
+
+	/**
+	 * Merges source[key] in target[key] only if target[key] is undefined.
+	 * @private
+	 */
+	_mergerIf: function(key, target, source) {
+		var tval = target[key];
+		var sval = source[key];
+
+		if (helpers.isObject(tval) && helpers.isObject(sval)) {
+			helpers.mergeIf(tval, sval);
+		} else if (!target.hasOwnProperty(key)) {
+			target[key] = helpers.clone(sval);
+		}
+	},
+
+	/**
+	 * Recursively deep copies `source` properties into `target` with the given `options`.
+	 * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
+	 * @param {object} target - The target object in which all sources are merged into.
+	 * @param {object|object[]} source - Object(s) to merge into `target`.
+	 * @param {object} [options] - Merging options:
+	 * @param {function} [options.merger] - The merge method (key, target, source, options)
+	 * @returns {object} The `target` object.
+	 */
+	merge: function(target, source, options) {
+		var sources = helpers.isArray(source) ? source : [source];
+		var ilen = sources.length;
+		var merge, i, keys, klen, k;
+
+		if (!helpers.isObject(target)) {
+			return target;
+		}
+
+		options = options || {};
+		merge = options.merger || helpers._merger;
+
+		for (i = 0; i < ilen; ++i) {
+			source = sources[i];
+			if (!helpers.isObject(source)) {
+				continue;
+			}
+
+			keys = Object.keys(source);
+			for (k = 0, klen = keys.length; k < klen; ++k) {
+				merge(keys[k], target, source, options);
+			}
+		}
+
+		return target;
+	},
+
+	/**
+	 * Recursively deep copies `source` properties into `target` *only* if not defined in target.
+	 * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
+	 * @param {object} target - The target object in which all sources are merged into.
+	 * @param {object|object[]} source - Object(s) to merge into `target`.
+	 * @returns {object} The `target` object.
+	 */
+	mergeIf: function(target, source) {
+		return helpers.merge(target, source, {merger: helpers._mergerIf});
+	},
+
+	/**
+	 * Applies the contents of two or more objects together into the first object.
+	 * @param {object} target - The target object in which all objects are merged into.
+	 * @param {object} arg1 - Object containing additional properties to merge in target.
+	 * @param {object} argN - Additional objects containing properties to merge in target.
+	 * @returns {object} The `target` object.
+	 */
+	extend: Object.assign || function(target) {
+		return helpers.merge(target, [].slice.call(arguments, 1), {
+			merger: function(key, dst, src) {
+				dst[key] = src[key];
+			}
+		});
+	},
+
+	/**
+	 * Basic javascript inheritance based on the model created in Backbone.js
+	 */
+	inherits: function(extensions) {
+		var me = this;
+		var ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {
+			return me.apply(this, arguments);
+		};
+
+		var Surrogate = function() {
+			this.constructor = ChartElement;
+		};
+
+		Surrogate.prototype = me.prototype;
+		ChartElement.prototype = new Surrogate();
+		ChartElement.extend = helpers.inherits;
+
+		if (extensions) {
+			helpers.extend(ChartElement.prototype, extensions);
+		}
+
+		ChartElement.__super__ = me.prototype;
+		return ChartElement;
+	},
+
+	_deprecated: function(scope, value, previous, current) {
+		if (value !== undefined) {
+			console.warn(scope + ': "' + previous +
+				'" is deprecated. Please use "' + current + '" instead');
+		}
+	}
+};
+
+var helpers_core = helpers;
 
-                        Util.reflow(this._element);
+// DEPRECATIONS
 
-                        this._element.classList.add(CLASS_NAME_SHOWING);
+/**
+ * Provided for backward compatibility, use Chart.helpers.callback instead.
+ * @function Chart.helpers.callCallback
+ * @deprecated since version 2.6.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers.callCallback = helpers.callback;
+
+/**
+ * Provided for backward compatibility, use Array.prototype.indexOf instead.
+ * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+
+ * @function Chart.helpers.indexOf
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers.indexOf = function(array, item, fromIndex) {
+	return Array.prototype.indexOf.call(array, item, fromIndex);
+};
+
+/**
+ * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.
+ * @function Chart.helpers.getValueOrDefault
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers.getValueOrDefault = helpers.valueOrDefault;
+
+/**
+ * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.
+ * @function Chart.helpers.getValueAtIndexOrDefault
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;
 
-                        if (this._config.animation) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(this._element);
-                            $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            complete();
-                        }
-                    };
+/**
+ * Easing functions adapted from Robert Penner's easing equations.
+ * @namespace Chart.helpers.easingEffects
+ * @see http://www.robertpenner.com/easing/
+ */
+var effects = {
+	linear: function(t) {
+		return t;
+	},
+
+	easeInQuad: function(t) {
+		return t * t;
+	},
+
+	easeOutQuad: function(t) {
+		return -t * (t - 2);
+	},
+
+	easeInOutQuad: function(t) {
+		if ((t /= 0.5) < 1) {
+			return 0.5 * t * t;
+		}
+		return -0.5 * ((--t) * (t - 2) - 1);
+	},
+
+	easeInCubic: function(t) {
+		return t * t * t;
+	},
+
+	easeOutCubic: function(t) {
+		return (t = t - 1) * t * t + 1;
+	},
+
+	easeInOutCubic: function(t) {
+		if ((t /= 0.5) < 1) {
+			return 0.5 * t * t * t;
+		}
+		return 0.5 * ((t -= 2) * t * t + 2);
+	},
+
+	easeInQuart: function(t) {
+		return t * t * t * t;
+	},
+
+	easeOutQuart: function(t) {
+		return -((t = t - 1) * t * t * t - 1);
+	},
+
+	easeInOutQuart: function(t) {
+		if ((t /= 0.5) < 1) {
+			return 0.5 * t * t * t * t;
+		}
+		return -0.5 * ((t -= 2) * t * t * t - 2);
+	},
+
+	easeInQuint: function(t) {
+		return t * t * t * t * t;
+	},
+
+	easeOutQuint: function(t) {
+		return (t = t - 1) * t * t * t * t + 1;
+	},
+
+	easeInOutQuint: function(t) {
+		if ((t /= 0.5) < 1) {
+			return 0.5 * t * t * t * t * t;
+		}
+		return 0.5 * ((t -= 2) * t * t * t * t + 2);
+	},
+
+	easeInSine: function(t) {
+		return -Math.cos(t * (Math.PI / 2)) + 1;
+	},
+
+	easeOutSine: function(t) {
+		return Math.sin(t * (Math.PI / 2));
+	},
+
+	easeInOutSine: function(t) {
+		return -0.5 * (Math.cos(Math.PI * t) - 1);
+	},
+
+	easeInExpo: function(t) {
+		return (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));
+	},
+
+	easeOutExpo: function(t) {
+		return (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;
+	},
+
+	easeInOutExpo: function(t) {
+		if (t === 0) {
+			return 0;
+		}
+		if (t === 1) {
+			return 1;
+		}
+		if ((t /= 0.5) < 1) {
+			return 0.5 * Math.pow(2, 10 * (t - 1));
+		}
+		return 0.5 * (-Math.pow(2, -10 * --t) + 2);
+	},
+
+	easeInCirc: function(t) {
+		if (t >= 1) {
+			return t;
+		}
+		return -(Math.sqrt(1 - t * t) - 1);
+	},
+
+	easeOutCirc: function(t) {
+		return Math.sqrt(1 - (t = t - 1) * t);
+	},
+
+	easeInOutCirc: function(t) {
+		if ((t /= 0.5) < 1) {
+			return -0.5 * (Math.sqrt(1 - t * t) - 1);
+		}
+		return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
+	},
+
+	easeInElastic: function(t) {
+		var s = 1.70158;
+		var p = 0;
+		var a = 1;
+		if (t === 0) {
+			return 0;
+		}
+		if (t === 1) {
+			return 1;
+		}
+		if (!p) {
+			p = 0.3;
+		}
+		if (a < 1) {
+			a = 1;
+			s = p / 4;
+		} else {
+			s = p / (2 * Math.PI) * Math.asin(1 / a);
+		}
+		return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));
+	},
+
+	easeOutElastic: function(t) {
+		var s = 1.70158;
+		var p = 0;
+		var a = 1;
+		if (t === 0) {
+			return 0;
+		}
+		if (t === 1) {
+			return 1;
+		}
+		if (!p) {
+			p = 0.3;
+		}
+		if (a < 1) {
+			a = 1;
+			s = p / 4;
+		} else {
+			s = p / (2 * Math.PI) * Math.asin(1 / a);
+		}
+		return a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;
+	},
+
+	easeInOutElastic: function(t) {
+		var s = 1.70158;
+		var p = 0;
+		var a = 1;
+		if (t === 0) {
+			return 0;
+		}
+		if ((t /= 0.5) === 2) {
+			return 1;
+		}
+		if (!p) {
+			p = 0.45;
+		}
+		if (a < 1) {
+			a = 1;
+			s = p / 4;
+		} else {
+			s = p / (2 * Math.PI) * Math.asin(1 / a);
+		}
+		if (t < 1) {
+			return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));
+		}
+		return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;
+	},
+	easeInBack: function(t) {
+		var s = 1.70158;
+		return t * t * ((s + 1) * t - s);
+	},
+
+	easeOutBack: function(t) {
+		var s = 1.70158;
+		return (t = t - 1) * t * ((s + 1) * t + s) + 1;
+	},
+
+	easeInOutBack: function(t) {
+		var s = 1.70158;
+		if ((t /= 0.5) < 1) {
+			return 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));
+		}
+		return 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);
+	},
+
+	easeInBounce: function(t) {
+		return 1 - effects.easeOutBounce(1 - t);
+	},
+
+	easeOutBounce: function(t) {
+		if (t < (1 / 2.75)) {
+			return 7.5625 * t * t;
+		}
+		if (t < (2 / 2.75)) {
+			return 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;
+		}
+		if (t < (2.5 / 2.75)) {
+			return 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;
+		}
+		return 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;
+	},
+
+	easeInOutBounce: function(t) {
+		if (t < 0.5) {
+			return effects.easeInBounce(t * 2) * 0.5;
+		}
+		return effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;
+	}
+};
+
+var helpers_easing = {
+	effects: effects
+};
 
-                    _proto.hide = function hide() {
-                        if (!this._element.classList.contains(CLASS_NAME_SHOW$7)) {
-                            return;
-                        }
+// DEPRECATIONS
 
-                        var hideEvent = $.Event(EVENT_HIDE$4);
-                        $(this._element).trigger(hideEvent);
+/**
+ * Provided for backward compatibility, use Chart.helpers.easing.effects instead.
+ * @function Chart.helpers.easingEffects
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers_core.easingEffects = effects;
 
-                        if (hideEvent.isDefaultPrevented()) {
-                            return;
-                        }
+var PI = Math.PI;
+var RAD_PER_DEG = PI / 180;
+var DOUBLE_PI = PI * 2;
+var HALF_PI = PI / 2;
+var QUARTER_PI = PI / 4;
+var TWO_THIRDS_PI = PI * 2 / 3;
 
-                        this._close();
-                    };
+/**
+ * @namespace Chart.helpers.canvas
+ */
+var exports$1 = {
+	/**
+	 * Clears the entire canvas associated to the given `chart`.
+	 * @param {Chart} chart - The chart for which to clear the canvas.
+	 */
+	clear: function(chart) {
+		chart.ctx.clearRect(0, 0, chart.width, chart.height);
+	},
+
+	/**
+	 * Creates a "path" for a rectangle with rounded corners at position (x, y) with a
+	 * given size (width, height) and the same `radius` for all corners.
+	 * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.
+	 * @param {number} x - The x axis of the coordinate for the rectangle starting point.
+	 * @param {number} y - The y axis of the coordinate for the rectangle starting point.
+	 * @param {number} width - The rectangle's width.
+	 * @param {number} height - The rectangle's height.
+	 * @param {number} radius - The rounded amount (in pixels) for the four corners.
+	 * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?
+	 */
+	roundedRect: function(ctx, x, y, width, height, radius) {
+		if (radius) {
+			var r = Math.min(radius, height / 2, width / 2);
+			var left = x + r;
+			var top = y + r;
+			var right = x + width - r;
+			var bottom = y + height - r;
+
+			ctx.moveTo(x, top);
+			if (left < right && top < bottom) {
+				ctx.arc(left, top, r, -PI, -HALF_PI);
+				ctx.arc(right, top, r, -HALF_PI, 0);
+				ctx.arc(right, bottom, r, 0, HALF_PI);
+				ctx.arc(left, bottom, r, HALF_PI, PI);
+			} else if (left < right) {
+				ctx.moveTo(left, y);
+				ctx.arc(right, top, r, -HALF_PI, HALF_PI);
+				ctx.arc(left, top, r, HALF_PI, PI + HALF_PI);
+			} else if (top < bottom) {
+				ctx.arc(left, top, r, -PI, 0);
+				ctx.arc(left, bottom, r, 0, PI);
+			} else {
+				ctx.arc(left, top, r, -PI, PI);
+			}
+			ctx.closePath();
+			ctx.moveTo(x, y);
+		} else {
+			ctx.rect(x, y, width, height);
+		}
+	},
+
+	drawPoint: function(ctx, style, radius, x, y, rotation) {
+		var type, xOffset, yOffset, size, cornerRadius;
+		var rad = (rotation || 0) * RAD_PER_DEG;
+
+		if (style && typeof style === 'object') {
+			type = style.toString();
+			if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {
+				ctx.save();
+				ctx.translate(x, y);
+				ctx.rotate(rad);
+				ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);
+				ctx.restore();
+				return;
+			}
+		}
+
+		if (isNaN(radius) || radius <= 0) {
+			return;
+		}
+
+		ctx.beginPath();
+
+		switch (style) {
+		// Default includes circle
+		default:
+			ctx.arc(x, y, radius, 0, DOUBLE_PI);
+			ctx.closePath();
+			break;
+		case 'triangle':
+			ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
+			rad += TWO_THIRDS_PI;
+			ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
+			rad += TWO_THIRDS_PI;
+			ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
+			ctx.closePath();
+			break;
+		case 'rectRounded':
+			// NOTE: the rounded rect implementation changed to use `arc` instead of
+			// `quadraticCurveTo` since it generates better results when rect is
+			// almost a circle. 0.516 (instead of 0.5) produces results with visually
+			// closer proportion to the previous impl and it is inscribed in the
+			// circle with `radius`. For more details, see the following PRs:
+			// https://github.com/chartjs/Chart.js/issues/5597
+			// https://github.com/chartjs/Chart.js/issues/5858
+			cornerRadius = radius * 0.516;
+			size = radius - cornerRadius;
+			xOffset = Math.cos(rad + QUARTER_PI) * size;
+			yOffset = Math.sin(rad + QUARTER_PI) * size;
+			ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);
+			ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);
+			ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);
+			ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);
+			ctx.closePath();
+			break;
+		case 'rect':
+			if (!rotation) {
+				size = Math.SQRT1_2 * radius;
+				ctx.rect(x - size, y - size, 2 * size, 2 * size);
+				break;
+			}
+			rad += QUARTER_PI;
+			/* falls through */
+		case 'rectRot':
+			xOffset = Math.cos(rad) * radius;
+			yOffset = Math.sin(rad) * radius;
+			ctx.moveTo(x - xOffset, y - yOffset);
+			ctx.lineTo(x + yOffset, y - xOffset);
+			ctx.lineTo(x + xOffset, y + yOffset);
+			ctx.lineTo(x - yOffset, y + xOffset);
+			ctx.closePath();
+			break;
+		case 'crossRot':
+			rad += QUARTER_PI;
+			/* falls through */
+		case 'cross':
+			xOffset = Math.cos(rad) * radius;
+			yOffset = Math.sin(rad) * radius;
+			ctx.moveTo(x - xOffset, y - yOffset);
+			ctx.lineTo(x + xOffset, y + yOffset);
+			ctx.moveTo(x + yOffset, y - xOffset);
+			ctx.lineTo(x - yOffset, y + xOffset);
+			break;
+		case 'star':
+			xOffset = Math.cos(rad) * radius;
+			yOffset = Math.sin(rad) * radius;
+			ctx.moveTo(x - xOffset, y - yOffset);
+			ctx.lineTo(x + xOffset, y + yOffset);
+			ctx.moveTo(x + yOffset, y - xOffset);
+			ctx.lineTo(x - yOffset, y + xOffset);
+			rad += QUARTER_PI;
+			xOffset = Math.cos(rad) * radius;
+			yOffset = Math.sin(rad) * radius;
+			ctx.moveTo(x - xOffset, y - yOffset);
+			ctx.lineTo(x + xOffset, y + yOffset);
+			ctx.moveTo(x + yOffset, y - xOffset);
+			ctx.lineTo(x - yOffset, y + xOffset);
+			break;
+		case 'line':
+			xOffset = Math.cos(rad) * radius;
+			yOffset = Math.sin(rad) * radius;
+			ctx.moveTo(x - xOffset, y - yOffset);
+			ctx.lineTo(x + xOffset, y + yOffset);
+			break;
+		case 'dash':
+			ctx.moveTo(x, y);
+			ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);
+			break;
+		}
+
+		ctx.fill();
+		ctx.stroke();
+	},
+
+	/**
+	 * Returns true if the point is inside the rectangle
+	 * @param {object} point - The point to test
+	 * @param {object} area - The rectangle
+	 * @returns {boolean}
+	 * @private
+	 */
+	_isPointInArea: function(point, area) {
+		var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.
+
+		return point.x > area.left - epsilon && point.x < area.right + epsilon &&
+			point.y > area.top - epsilon && point.y < area.bottom + epsilon;
+	},
+
+	clipArea: function(ctx, area) {
+		ctx.save();
+		ctx.beginPath();
+		ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);
+		ctx.clip();
+	},
+
+	unclipArea: function(ctx) {
+		ctx.restore();
+	},
+
+	lineTo: function(ctx, previous, target, flip) {
+		var stepped = target.steppedLine;
+		if (stepped) {
+			if (stepped === 'middle') {
+				var midpoint = (previous.x + target.x) / 2.0;
+				ctx.lineTo(midpoint, flip ? target.y : previous.y);
+				ctx.lineTo(midpoint, flip ? previous.y : target.y);
+			} else if ((stepped === 'after' && !flip) || (stepped !== 'after' && flip)) {
+				ctx.lineTo(previous.x, target.y);
+			} else {
+				ctx.lineTo(target.x, previous.y);
+			}
+			ctx.lineTo(target.x, target.y);
+			return;
+		}
+
+		if (!target.tension) {
+			ctx.lineTo(target.x, target.y);
+			return;
+		}
+
+		ctx.bezierCurveTo(
+			flip ? previous.controlPointPreviousX : previous.controlPointNextX,
+			flip ? previous.controlPointPreviousY : previous.controlPointNextY,
+			flip ? target.controlPointNextX : target.controlPointPreviousX,
+			flip ? target.controlPointNextY : target.controlPointPreviousY,
+			target.x,
+			target.y);
+	}
+};
+
+var helpers_canvas = exports$1;
 
-                    _proto.dispose = function dispose() {
-                        this._clearTimeout();
+// DEPRECATIONS
 
-                        if (this._element.classList.contains(CLASS_NAME_SHOW$7)) {
-                            this._element.classList.remove(CLASS_NAME_SHOW$7);
-                        }
+/**
+ * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.
+ * @namespace Chart.helpers.clear
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers_core.clear = exports$1.clear;
+
+/**
+ * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.
+ * @namespace Chart.helpers.drawRoundedRectangle
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers_core.drawRoundedRectangle = function(ctx) {
+	ctx.beginPath();
+	exports$1.roundedRect.apply(exports$1, arguments);
+};
+
+var defaults = {
+	/**
+	 * @private
+	 */
+	_set: function(scope, values) {
+		return helpers_core.merge(this[scope] || (this[scope] = {}), values);
+	}
+};
 
-                        $(this._element).off(EVENT_CLICK_DISMISS$1);
-                        $.removeData(this._element, DATA_KEY$a);
-                        this._element = null;
-                        this._config = null;
-                    } // Private
-                    ;
+// TODO(v3): remove 'global' from namespace.  all default are global and
+// there's inconsistency around which options are under 'global'
+defaults._set('global', {
+	defaultColor: 'rgba(0,0,0,0.1)',
+	defaultFontColor: '#666',
+	defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
+	defaultFontSize: 12,
+	defaultFontStyle: 'normal',
+	defaultLineHeight: 1.2,
+	showLines: true
+});
+
+var core_defaults = defaults;
+
+var valueOrDefault = helpers_core.valueOrDefault;
+
+/**
+ * Converts the given font object into a CSS font string.
+ * @param {object} font - A font object.
+ * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
+ * @private
+ */
+function toFontString(font) {
+	if (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {
+		return null;
+	}
+
+	return (font.style ? font.style + ' ' : '')
+		+ (font.weight ? font.weight + ' ' : '')
+		+ font.size + 'px '
+		+ font.family;
+}
+
+/**
+ * @alias Chart.helpers.options
+ * @namespace
+ */
+var helpers_options = {
+	/**
+	 * Converts the given line height `value` in pixels for a specific font `size`.
+	 * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').
+	 * @param {number} size - The font size (in pixels) used to resolve relative `value`.
+	 * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).
+	 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
+	 * @since 2.7.0
+	 */
+	toLineHeight: function(value, size) {
+		var matches = ('' + value).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);
+		if (!matches || matches[1] === 'normal') {
+			return size * 1.2;
+		}
+
+		value = +matches[2];
+
+		switch (matches[3]) {
+		case 'px':
+			return value;
+		case '%':
+			value /= 100;
+			break;
+		}
+
+		return size * value;
+	},
+
+	/**
+	 * Converts the given value into a padding object with pre-computed width/height.
+	 * @param {number|object} value - If a number, set the value to all TRBL component,
+	 *  else, if and object, use defined properties and sets undefined ones to 0.
+	 * @returns {object} The padding values (top, right, bottom, left, width, height)
+	 * @since 2.7.0
+	 */
+	toPadding: function(value) {
+		var t, r, b, l;
+
+		if (helpers_core.isObject(value)) {
+			t = +value.top || 0;
+			r = +value.right || 0;
+			b = +value.bottom || 0;
+			l = +value.left || 0;
+		} else {
+			t = r = b = l = +value || 0;
+		}
+
+		return {
+			top: t,
+			right: r,
+			bottom: b,
+			left: l,
+			height: t + b,
+			width: l + r
+		};
+	},
+
+	/**
+	 * Parses font options and returns the font object.
+	 * @param {object} options - A object that contains font options to be parsed.
+	 * @return {object} The font object.
+	 * @todo Support font.* options and renamed to toFont().
+	 * @private
+	 */
+	_parseFont: function(options) {
+		var globalDefaults = core_defaults.global;
+		var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);
+		var font = {
+			family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),
+			lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),
+			size: size,
+			style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),
+			weight: null,
+			string: ''
+		};
+
+		font.string = toFontString(font);
+		return font;
+	},
+
+	/**
+	 * Evaluates the given `inputs` sequentially and returns the first defined value.
+	 * @param {Array} inputs - An array of values, falling back to the last value.
+	 * @param {object} [context] - If defined and the current value is a function, the value
+	 * is called with `context` as first argument and the result becomes the new input.
+	 * @param {number} [index] - If defined and the current value is an array, the value
+	 * at `index` become the new input.
+	 * @param {object} [info] - object to return information about resolution in
+	 * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.
+	 * @since 2.7.0
+	 */
+	resolve: function(inputs, context, index, info) {
+		var cacheable = true;
+		var i, ilen, value;
+
+		for (i = 0, ilen = inputs.length; i < ilen; ++i) {
+			value = inputs[i];
+			if (value === undefined) {
+				continue;
+			}
+			if (context !== undefined && typeof value === 'function') {
+				value = value(context);
+				cacheable = false;
+			}
+			if (index !== undefined && helpers_core.isArray(value)) {
+				value = value[index];
+				cacheable = false;
+			}
+			if (value !== undefined) {
+				if (info && !cacheable) {
+					info.cacheable = false;
+				}
+				return value;
+			}
+		}
+	}
+};
+
+/**
+ * @alias Chart.helpers.math
+ * @namespace
+ */
+var exports$2 = {
+	/**
+	 * Returns an array of factors sorted from 1 to sqrt(value)
+	 * @private
+	 */
+	_factorize: function(value) {
+		var result = [];
+		var sqrt = Math.sqrt(value);
+		var i;
+
+		for (i = 1; i < sqrt; i++) {
+			if (value % i === 0) {
+				result.push(i);
+				result.push(value / i);
+			}
+		}
+		if (sqrt === (sqrt | 0)) { // if value is a square number
+			result.push(sqrt);
+		}
+
+		result.sort(function(a, b) {
+			return a - b;
+		}).pop();
+		return result;
+	},
+
+	log10: Math.log10 || function(x) {
+		var exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.
+		// Check for whole powers of 10,
+		// which due to floating point rounding error should be corrected.
+		var powerOf10 = Math.round(exponent);
+		var isPowerOf10 = x === Math.pow(10, powerOf10);
+
+		return isPowerOf10 ? powerOf10 : exponent;
+	}
+};
+
+var helpers_math = exports$2;
 
-                    _proto._getConfig = function _getConfig(config) {
-                        config = _extends({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
-                        Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
-                        return config;
-                    };
+// DEPRECATIONS
 
-                    _proto._setListeners = function _setListeners() {
-                        var _this2 = this;
+/**
+ * Provided for backward compatibility, use Chart.helpers.math.log10 instead.
+ * @namespace Chart.helpers.log10
+ * @deprecated since version 2.9.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers_core.log10 = exports$2.log10;
+
+var getRtlAdapter = function(rectX, width) {
+	return {
+		x: function(x) {
+			return rectX + rectX + width - x;
+		},
+		setWidth: function(w) {
+			width = w;
+		},
+		textAlign: function(align) {
+			if (align === 'center') {
+				return align;
+			}
+			return align === 'right' ? 'left' : 'right';
+		},
+		xPlus: function(x, value) {
+			return x - value;
+		},
+		leftForLtr: function(x, itemWidth) {
+			return x - itemWidth;
+		},
+	};
+};
+
+var getLtrAdapter = function() {
+	return {
+		x: function(x) {
+			return x;
+		},
+		setWidth: function(w) { // eslint-disable-line no-unused-vars
+		},
+		textAlign: function(align) {
+			return align;
+		},
+		xPlus: function(x, value) {
+			return x + value;
+		},
+		leftForLtr: function(x, _itemWidth) { // eslint-disable-line no-unused-vars
+			return x;
+		},
+	};
+};
+
+var getAdapter = function(rtl, rectX, width) {
+	return rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();
+};
+
+var overrideTextDirection = function(ctx, direction) {
+	var style, original;
+	if (direction === 'ltr' || direction === 'rtl') {
+		style = ctx.canvas.style;
+		original = [
+			style.getPropertyValue('direction'),
+			style.getPropertyPriority('direction'),
+		];
+
+		style.setProperty('direction', direction, 'important');
+		ctx.prevTextDirection = original;
+	}
+};
+
+var restoreTextDirection = function(ctx) {
+	var original = ctx.prevTextDirection;
+	if (original !== undefined) {
+		delete ctx.prevTextDirection;
+		ctx.canvas.style.setProperty('direction', original[0], original[1]);
+	}
+};
+
+var helpers_rtl = {
+	getRtlAdapter: getAdapter,
+	overrideTextDirection: overrideTextDirection,
+	restoreTextDirection: restoreTextDirection,
+};
+
+var helpers$1 = helpers_core;
+var easing = helpers_easing;
+var canvas = helpers_canvas;
+var options = helpers_options;
+var math = helpers_math;
+var rtl = helpers_rtl;
+helpers$1.easing = easing;
+helpers$1.canvas = canvas;
+helpers$1.options = options;
+helpers$1.math = math;
+helpers$1.rtl = rtl;
+
+function interpolate(start, view, model, ease) {
+	var keys = Object.keys(model);
+	var i, ilen, key, actual, origin, target, type, c0, c1;
+
+	for (i = 0, ilen = keys.length; i < ilen; ++i) {
+		key = keys[i];
+
+		target = model[key];
+
+		// if a value is added to the model after pivot() has been called, the view
+		// doesn't contain it, so let's initialize the view to the target value.
+		if (!view.hasOwnProperty(key)) {
+			view[key] = target;
+		}
+
+		actual = view[key];
+
+		if (actual === target || key[0] === '_') {
+			continue;
+		}
+
+		if (!start.hasOwnProperty(key)) {
+			start[key] = actual;
+		}
+
+		origin = start[key];
+
+		type = typeof target;
+
+		if (type === typeof origin) {
+			if (type === 'string') {
+				c0 = chartjsColor(origin);
+				if (c0.valid) {
+					c1 = chartjsColor(target);
+					if (c1.valid) {
+						view[key] = c1.mix(c0, ease).rgbString();
+						continue;
+					}
+				}
+			} else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {
+				view[key] = origin + (target - origin) * ease;
+				continue;
+			}
+		}
+
+		view[key] = target;
+	}
+}
+
+var Element = function(configuration) {
+	helpers$1.extend(this, configuration);
+	this.initialize.apply(this, arguments);
+};
+
+helpers$1.extend(Element.prototype, {
+	_type: undefined,
+
+	initialize: function() {
+		this.hidden = false;
+	},
+
+	pivot: function() {
+		var me = this;
+		if (!me._view) {
+			me._view = helpers$1.extend({}, me._model);
+		}
+		me._start = {};
+		return me;
+	},
+
+	transition: function(ease) {
+		var me = this;
+		var model = me._model;
+		var start = me._start;
+		var view = me._view;
+
+		// No animation -> No Transition
+		if (!model || ease === 1) {
+			me._view = helpers$1.extend({}, model);
+			me._start = null;
+			return me;
+		}
+
+		if (!view) {
+			view = me._view = {};
+		}
+
+		if (!start) {
+			start = me._start = {};
+		}
+
+		interpolate(start, view, model, ease);
+
+		return me;
+	},
+
+	tooltipPosition: function() {
+		return {
+			x: this._model.x,
+			y: this._model.y
+		};
+	},
+
+	hasValue: function() {
+		return helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);
+	}
+});
+
+Element.extend = helpers$1.inherits;
+
+var core_element = Element;
+
+var exports$3 = core_element.extend({
+	chart: null, // the animation associated chart instance
+	currentStep: 0, // the current animation step
+	numSteps: 60, // default number of steps
+	easing: '', // the easing to use for this animation
+	render: null, // render function used by the animation service
+
+	onAnimationProgress: null, // user specified callback to fire on each step of the animation
+	onAnimationComplete: null, // user specified callback to fire when the animation finishes
+});
+
+var core_animation = exports$3;
 
-                        $(this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
-                            return _this2.hide();
-                        });
-                    };
+// DEPRECATIONS
 
-                    _proto._close = function _close() {
-                        var _this3 = this;
+/**
+ * Provided for backward compatibility, use Chart.Animation instead
+ * @prop Chart.Animation#animationObject
+ * @deprecated since version 2.6.0
+ * @todo remove at version 3
+ */
+Object.defineProperty(exports$3.prototype, 'animationObject', {
+	get: function() {
+		return this;
+	}
+});
+
+/**
+ * Provided for backward compatibility, use Chart.Animation#chart instead
+ * @prop Chart.Animation#chartInstance
+ * @deprecated since version 2.6.0
+ * @todo remove at version 3
+ */
+Object.defineProperty(exports$3.prototype, 'chartInstance', {
+	get: function() {
+		return this.chart;
+	},
+	set: function(value) {
+		this.chart = value;
+	}
+});
+
+core_defaults._set('global', {
+	animation: {
+		duration: 1000,
+		easing: 'easeOutQuart',
+		onProgress: helpers$1.noop,
+		onComplete: helpers$1.noop
+	}
+});
+
+var core_animations = {
+	animations: [],
+	request: null,
+
+	/**
+	 * @param {Chart} chart - The chart to animate.
+	 * @param {Chart.Animation} animation - The animation that we will animate.
+	 * @param {number} duration - The animation duration in ms.
+	 * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions
+	 */
+	addAnimation: function(chart, animation, duration, lazy) {
+		var animations = this.animations;
+		var i, ilen;
+
+		animation.chart = chart;
+		animation.startTime = Date.now();
+		animation.duration = duration;
+
+		if (!lazy) {
+			chart.animating = true;
+		}
+
+		for (i = 0, ilen = animations.length; i < ilen; ++i) {
+			if (animations[i].chart === chart) {
+				animations[i] = animation;
+				return;
+			}
+		}
+
+		animations.push(animation);
+
+		// If there are no animations queued, manually kickstart a digest, for lack of a better word
+		if (animations.length === 1) {
+			this.requestAnimationFrame();
+		}
+	},
+
+	cancelAnimation: function(chart) {
+		var index = helpers$1.findIndex(this.animations, function(animation) {
+			return animation.chart === chart;
+		});
+
+		if (index !== -1) {
+			this.animations.splice(index, 1);
+			chart.animating = false;
+		}
+	},
+
+	requestAnimationFrame: function() {
+		var me = this;
+		if (me.request === null) {
+			// Skip animation frame requests until the active one is executed.
+			// This can happen when processing mouse events, e.g. 'mousemove'
+			// and 'mouseout' events will trigger multiple renders.
+			me.request = helpers$1.requestAnimFrame.call(window, function() {
+				me.request = null;
+				me.startDigest();
+			});
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	startDigest: function() {
+		var me = this;
 
-                        var complete = function complete() {
-                            _this3._element.classList.add(CLASS_NAME_HIDE);
+		me.advance();
 
-                            $(_this3._element).trigger(EVENT_HIDDEN$4);
-                        };
+		// Do we have more stuff to animate?
+		if (me.animations.length > 0) {
+			me.requestAnimationFrame();
+		}
+	},
 
-                        this._element.classList.remove(CLASS_NAME_SHOW$7);
+	/**
+	 * @private
+	 */
+	advance: function() {
+		var animations = this.animations;
+		var animation, chart, numSteps, nextStep;
+		var i = 0;
+
+		// 1 animation per chart, so we are looping charts here
+		while (i < animations.length) {
+			animation = animations[i];
+			chart = animation.chart;
+			numSteps = animation.numSteps;
+
+			// Make sure that currentStep starts at 1
+			// https://github.com/chartjs/Chart.js/issues/6104
+			nextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;
+			animation.currentStep = Math.min(nextStep, numSteps);
+
+			helpers$1.callback(animation.render, [chart, animation], chart);
+			helpers$1.callback(animation.onAnimationProgress, [animation], chart);
+
+			if (animation.currentStep >= numSteps) {
+				helpers$1.callback(animation.onAnimationComplete, [animation], chart);
+				chart.animating = false;
+				animations.splice(i, 1);
+			} else {
+				++i;
+			}
+		}
+	}
+};
+
+var resolve = helpers$1.options.resolve;
+
+var arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];
+
+/**
+ * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',
+ * 'unshift') and notify the listener AFTER the array has been altered. Listeners are
+ * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.
+ */
+function listenArrayEvents(array, listener) {
+	if (array._chartjs) {
+		array._chartjs.listeners.push(listener);
+		return;
+	}
+
+	Object.defineProperty(array, '_chartjs', {
+		configurable: true,
+		enumerable: false,
+		value: {
+			listeners: [listener]
+		}
+	});
+
+	arrayEvents.forEach(function(key) {
+		var method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);
+		var base = array[key];
+
+		Object.defineProperty(array, key, {
+			configurable: true,
+			enumerable: false,
+			value: function() {
+				var args = Array.prototype.slice.call(arguments);
+				var res = base.apply(this, args);
+
+				helpers$1.each(array._chartjs.listeners, function(object) {
+					if (typeof object[method] === 'function') {
+						object[method].apply(object, args);
+					}
+				});
+
+				return res;
+			}
+		});
+	});
+}
+
+/**
+ * Removes the given array event listener and cleanup extra attached properties (such as
+ * the _chartjs stub and overridden methods) if array doesn't have any more listeners.
+ */
+function unlistenArrayEvents(array, listener) {
+	var stub = array._chartjs;
+	if (!stub) {
+		return;
+	}
 
-                        if (this._config.animation) {
-                            var transitionDuration = Util.getTransitionDurationFromElement(this._element);
-                            $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
-                        } else {
-                            complete();
-                        }
-                    };
+	var listeners = stub.listeners;
+	var index = listeners.indexOf(listener);
+	if (index !== -1) {
+		listeners.splice(index, 1);
+	}
 
-                    _proto._clearTimeout = function _clearTimeout() {
-                        clearTimeout(this._timeout);
-                        this._timeout = null;
-                    } // Static
-                    ;
+	if (listeners.length > 0) {
+		return;
+	}
 
-                    Toast._jQueryInterface = function _jQueryInterface(config) {
-                        return this.each(function () {
-                            var $element = $(this);
-                            var data = $element.data(DATA_KEY$a);
+	arrayEvents.forEach(function(key) {
+		delete array[key];
+	});
 
-                            var _config = typeof config === 'object' && config;
+	delete array._chartjs;
+}
 
-                            if (!data) {
-                                data = new Toast(this, _config);
-                                $element.data(DATA_KEY$a, data);
-                            }
+// Base class for all dataset controllers (line, bar, etc)
+var DatasetController = function(chart, datasetIndex) {
+	this.initialize(chart, datasetIndex);
+};
 
-                            if (typeof config === 'string') {
-                                if (typeof data[config] === 'undefined') {
-                                    throw new TypeError("No method named \"" + config + "\"");
-                                }
+helpers$1.extend(DatasetController.prototype, {
 
-                                data[config](this);
-                            }
-                        });
-                    };
+	/**
+	 * Element type used to generate a meta dataset (e.g. Chart.element.Line).
+	 * @type {Chart.core.element}
+	 */
+	datasetElementType: null,
 
-                    _createClass(Toast, null, [{
-                        key: "VERSION",
-                        get: function get() {
-                            return VERSION$a;
-                        }
-                    }, {
-                        key: "DefaultType",
-                        get: function get() {
-                            return DefaultType$7;
-                        }
-                    }, {
-                        key: "Default",
-                        get: function get() {
-                            return Default$7;
-                        }
-                    }]);
+	/**
+	 * Element type used to generate a meta data (e.g. Chart.element.Point).
+	 * @type {Chart.core.element}
+	 */
+	dataElementType: null,
 
-                    return Toast;
-                }();
-                /**
-                 * ------------------------------------------------------------------------
-                 * jQuery
-                 * ------------------------------------------------------------------------
-                 */
+	/**
+	 * Dataset element option keys to be resolved in _resolveDatasetElementOptions.
+	 * A derived controller may override this to resolve controller-specific options.
+	 * The keys defined here are for backward compatibility for legend styles.
+	 * @private
+	 */
+	_datasetElementOptions: [
+		'backgroundColor',
+		'borderCapStyle',
+		'borderColor',
+		'borderDash',
+		'borderDashOffset',
+		'borderJoinStyle',
+		'borderWidth'
+	],
+
+	/**
+	 * Data element option keys to be resolved in _resolveDataElementOptions.
+	 * A derived controller may override this to resolve controller-specific options.
+	 * The keys defined here are for backward compatibility for legend styles.
+	 * @private
+	 */
+	_dataElementOptions: [
+		'backgroundColor',
+		'borderColor',
+		'borderWidth',
+		'pointStyle'
+	],
+
+	initialize: function(chart, datasetIndex) {
+		var me = this;
+		me.chart = chart;
+		me.index = datasetIndex;
+		me.linkScales();
+		me.addElements();
+		me._type = me.getMeta().type;
+	},
+
+	updateIndex: function(datasetIndex) {
+		this.index = datasetIndex;
+	},
+
+	linkScales: function() {
+		var me = this;
+		var meta = me.getMeta();
+		var chart = me.chart;
+		var scales = chart.scales;
+		var dataset = me.getDataset();
+		var scalesOpts = chart.options.scales;
+
+		if (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {
+			meta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;
+		}
+		if (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {
+			meta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;
+		}
+	},
+
+	getDataset: function() {
+		return this.chart.data.datasets[this.index];
+	},
+
+	getMeta: function() {
+		return this.chart.getDatasetMeta(this.index);
+	},
+
+	getScaleForId: function(scaleID) {
+		return this.chart.scales[scaleID];
+	},
+
+	/**
+	 * @private
+	 */
+	_getValueScaleId: function() {
+		return this.getMeta().yAxisID;
+	},
 
+	/**
+	 * @private
+	 */
+	_getIndexScaleId: function() {
+		return this.getMeta().xAxisID;
+	},
 
-                $.fn[NAME$a] = Toast._jQueryInterface;
-                $.fn[NAME$a].Constructor = Toast;
+	/**
+	 * @private
+	 */
+	_getValueScale: function() {
+		return this.getScaleForId(this._getValueScaleId());
+	},
 
-                $.fn[NAME$a].noConflict = function () {
-                    $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
-                    return Toast._jQueryInterface;
-                };
+	/**
+	 * @private
+	 */
+	_getIndexScale: function() {
+		return this.getScaleForId(this._getIndexScaleId());
+	},
 
-                exports.Alert = Alert;
-                exports.Button = Button;
-                exports.Carousel = Carousel;
-                exports.Collapse = Collapse;
-                exports.Dropdown = Dropdown;
-                exports.Modal = Modal;
-                exports.Popover = Popover;
-                exports.Scrollspy = ScrollSpy;
-                exports.Tab = Tab;
-                exports.Toast = Toast;
-                exports.Tooltip = Tooltip;
-                exports.Util = Util;
-
-                Object.defineProperty(exports, '__esModule', { value: true });
-
-            })));
-//# sourceMappingURL=bootstrap.js.map
+	reset: function() {
+		this._update(true);
+	},
 
+	/**
+	 * @private
+	 */
+	destroy: function() {
+		if (this._data) {
+			unlistenArrayEvents(this._data, this);
+		}
+	},
+
+	createMetaDataset: function() {
+		var me = this;
+		var type = me.datasetElementType;
+		return type && new type({
+			_chart: me.chart,
+			_datasetIndex: me.index
+		});
+	},
+
+	createMetaData: function(index) {
+		var me = this;
+		var type = me.dataElementType;
+		return type && new type({
+			_chart: me.chart,
+			_datasetIndex: me.index,
+			_index: index
+		});
+	},
+
+	addElements: function() {
+		var me = this;
+		var meta = me.getMeta();
+		var data = me.getDataset().data || [];
+		var metaData = meta.data;
+		var i, ilen;
+
+		for (i = 0, ilen = data.length; i < ilen; ++i) {
+			metaData[i] = metaData[i] || me.createMetaData(i);
+		}
+
+		meta.dataset = meta.dataset || me.createMetaDataset();
+	},
+
+	addElementAndReset: function(index) {
+		var element = this.createMetaData(index);
+		this.getMeta().data.splice(index, 0, element);
+		this.updateElement(element, index, true);
+	},
+
+	buildOrUpdateElements: function() {
+		var me = this;
+		var dataset = me.getDataset();
+		var data = dataset.data || (dataset.data = []);
+
+		// In order to correctly handle data addition/deletion animation (an thus simulate
+		// real-time charts), we need to monitor these data modifications and synchronize
+		// the internal meta data accordingly.
+		if (me._data !== data) {
+			if (me._data) {
+				// This case happens when the user replaced the data array instance.
+				unlistenArrayEvents(me._data, me);
+			}
+
+			if (data && Object.isExtensible(data)) {
+				listenArrayEvents(data, me);
+			}
+			me._data = data;
+		}
+
+		// Re-sync meta data in case the user replaced the data array or if we missed
+		// any updates and so make sure that we handle number of datapoints changing.
+		me.resyncElements();
+	},
+
+	/**
+	 * Returns the merged user-supplied and default dataset-level options
+	 * @private
+	 */
+	_configure: function() {
+		var me = this;
+		me._config = helpers$1.merge({}, [
+			me.chart.options.datasets[me._type],
+			me.getDataset(),
+		], {
+			merger: function(key, target, source) {
+				if (key !== '_meta' && key !== 'data') {
+					helpers$1._merger(key, target, source);
+				}
+			}
+		});
+	},
+
+	_update: function(reset) {
+		var me = this;
+		me._configure();
+		me._cachedDataOpts = null;
+		me.update(reset);
+	},
+
+	update: helpers$1.noop,
+
+	transition: function(easingValue) {
+		var meta = this.getMeta();
+		var elements = meta.data || [];
+		var ilen = elements.length;
+		var i = 0;
+
+		for (; i < ilen; ++i) {
+			elements[i].transition(easingValue);
+		}
+
+		if (meta.dataset) {
+			meta.dataset.transition(easingValue);
+		}
+	},
+
+	draw: function() {
+		var meta = this.getMeta();
+		var elements = meta.data || [];
+		var ilen = elements.length;
+		var i = 0;
+
+		if (meta.dataset) {
+			meta.dataset.draw();
+		}
+
+		for (; i < ilen; ++i) {
+			elements[i].draw();
+		}
+	},
+
+	/**
+	 * Returns a set of predefined style properties that should be used to represent the dataset
+	 * or the data if the index is specified
+	 * @param {number} index - data index
+	 * @return {IStyleInterface} style object
+	 */
+	getStyle: function(index) {
+		var me = this;
+		var meta = me.getMeta();
+		var dataset = meta.dataset;
+		var style;
+
+		me._configure();
+		if (dataset && index === undefined) {
+			style = me._resolveDatasetElementOptions(dataset || {});
+		} else {
+			index = index || 0;
+			style = me._resolveDataElementOptions(meta.data[index] || {}, index);
+		}
+
+		if (style.fill === false || style.fill === null) {
+			style.backgroundColor = style.borderColor;
+		}
+
+		return style;
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDatasetElementOptions: function(element, hover) {
+		var me = this;
+		var chart = me.chart;
+		var datasetOpts = me._config;
+		var custom = element.custom || {};
+		var options = chart.options.elements[me.datasetElementType.prototype._type] || {};
+		var elementOptions = me._datasetElementOptions;
+		var values = {};
+		var i, ilen, key, readKey;
+
+		// Scriptable options
+		var context = {
+			chart: chart,
+			dataset: me.getDataset(),
+			datasetIndex: me.index,
+			hover: hover
+		};
+
+		for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {
+			key = elementOptions[i];
+			readKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;
+			values[key] = resolve([
+				custom[readKey],
+				datasetOpts[readKey],
+				options[readKey]
+			], context);
+		}
+
+		return values;
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDataElementOptions: function(element, index) {
+		var me = this;
+		var custom = element && element.custom;
+		var cached = me._cachedDataOpts;
+		if (cached && !custom) {
+			return cached;
+		}
+		var chart = me.chart;
+		var datasetOpts = me._config;
+		var options = chart.options.elements[me.dataElementType.prototype._type] || {};
+		var elementOptions = me._dataElementOptions;
+		var values = {};
+
+		// Scriptable options
+		var context = {
+			chart: chart,
+			dataIndex: index,
+			dataset: me.getDataset(),
+			datasetIndex: me.index
+		};
+
+		// `resolve` sets cacheable to `false` if any option is indexed or scripted
+		var info = {cacheable: !custom};
+
+		var keys, i, ilen, key;
+
+		custom = custom || {};
+
+		if (helpers$1.isArray(elementOptions)) {
+			for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {
+				key = elementOptions[i];
+				values[key] = resolve([
+					custom[key],
+					datasetOpts[key],
+					options[key]
+				], context, index, info);
+			}
+		} else {
+			keys = Object.keys(elementOptions);
+			for (i = 0, ilen = keys.length; i < ilen; ++i) {
+				key = keys[i];
+				values[key] = resolve([
+					custom[key],
+					datasetOpts[elementOptions[key]],
+					datasetOpts[key],
+					options[key]
+				], context, index, info);
+			}
+		}
+
+		if (info.cacheable) {
+			me._cachedDataOpts = Object.freeze(values);
+		}
+
+		return values;
+	},
+
+	removeHoverStyle: function(element) {
+		helpers$1.merge(element._model, element.$previousStyle || {});
+		delete element.$previousStyle;
+	},
+
+	setHoverStyle: function(element) {
+		var dataset = this.chart.data.datasets[element._datasetIndex];
+		var index = element._index;
+		var custom = element.custom || {};
+		var model = element._model;
+		var getHoverColor = helpers$1.getHoverColor;
+
+		element.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth
+		};
+
+		model.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);
+		model.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);
+		model.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);
+	},
+
+	/**
+	 * @private
+	 */
+	_removeDatasetHoverStyle: function() {
+		var element = this.getMeta().dataset;
 
-            /***/ }),
+		if (element) {
+			this.removeHoverStyle(element);
+		}
+	},
 
-        /***/ "./node_modules/chart.js/dist/Chart.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/chart.js/dist/Chart.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+	/**
+	 * @private
+	 */
+	_setDatasetHoverStyle: function() {
+		var element = this.getMeta().dataset;
+		var prev = {};
+		var i, ilen, key, keys, hoverOptions, model;
+
+		if (!element) {
+			return;
+		}
+
+		model = element._model;
+		hoverOptions = this._resolveDatasetElementOptions(element, true);
+
+		keys = Object.keys(hoverOptions);
+		for (i = 0, ilen = keys.length; i < ilen; ++i) {
+			key = keys[i];
+			prev[key] = model[key];
+			model[key] = hoverOptions[key];
+		}
+
+		element.$previousStyle = prev;
+	},
+
+	/**
+	 * @private
+	 */
+	resyncElements: function() {
+		var me = this;
+		var meta = me.getMeta();
+		var data = me.getDataset().data;
+		var numMeta = meta.data.length;
+		var numData = data.length;
+
+		if (numData < numMeta) {
+			meta.data.splice(numData, numMeta - numData);
+		} else if (numData > numMeta) {
+			me.insertElements(numMeta, numData - numMeta);
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	insertElements: function(start, count) {
+		for (var i = 0; i < count; ++i) {
+			this.addElementAndReset(start + i);
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	onDataPush: function() {
+		var count = arguments.length;
+		this.insertElements(this.getDataset().data.length - count, count);
+	},
 
-            /*!
- * Chart.js v2.9.3
- * https://www.chartjs.org
- * (c) 2019 Chart.js Contributors
- * Released under the MIT License
- */
-            (function (global, factory) {
-                true ? module.exports = factory(function() { try { return __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); } catch(e) { } }()) :
-                    undefined;
-            }(this, (function (moment) { 'use strict';
+	/**
+	 * @private
+	 */
+	onDataPop: function() {
+		this.getMeta().data.pop();
+	},
 
-                moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;
+	/**
+	 * @private
+	 */
+	onDataShift: function() {
+		this.getMeta().data.shift();
+	},
 
-                function createCommonjsModule(fn, module) {
-                    return module = { exports: {} }, fn(module, module.exports), module.exports;
-                }
+	/**
+	 * @private
+	 */
+	onDataSplice: function(start, count) {
+		this.getMeta().data.splice(start, count);
+		this.insertElements(start, arguments.length - 2);
+	},
 
-                function getCjsExportFromNamespace (n) {
-                    return n && n['default'] || n;
-                }
+	/**
+	 * @private
+	 */
+	onDataUnshift: function() {
+		this.insertElements(0, arguments.length);
+	}
+});
+
+DatasetController.extend = helpers$1.inherits;
+
+var core_datasetController = DatasetController;
+
+var TAU = Math.PI * 2;
+
+core_defaults._set('global', {
+	elements: {
+		arc: {
+			backgroundColor: core_defaults.global.defaultColor,
+			borderColor: '#fff',
+			borderWidth: 2,
+			borderAlign: 'center'
+		}
+	}
+});
+
+function clipArc(ctx, arc) {
+	var startAngle = arc.startAngle;
+	var endAngle = arc.endAngle;
+	var pixelMargin = arc.pixelMargin;
+	var angleMargin = pixelMargin / arc.outerRadius;
+	var x = arc.x;
+	var y = arc.y;
+
+	// Draw an inner border by cliping the arc and drawing a double-width border
+	// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders
+	ctx.beginPath();
+	ctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);
+	if (arc.innerRadius > pixelMargin) {
+		angleMargin = pixelMargin / arc.innerRadius;
+		ctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);
+	} else {
+		ctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);
+	}
+	ctx.closePath();
+	ctx.clip();
+}
+
+function drawFullCircleBorders(ctx, vm, arc, inner) {
+	var endAngle = arc.endAngle;
+	var i;
+
+	if (inner) {
+		arc.endAngle = arc.startAngle + TAU;
+		clipArc(ctx, arc);
+		arc.endAngle = endAngle;
+		if (arc.endAngle === arc.startAngle && arc.fullCircles) {
+			arc.endAngle += TAU;
+			arc.fullCircles--;
+		}
+	}
+
+	ctx.beginPath();
+	ctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);
+	for (i = 0; i < arc.fullCircles; ++i) {
+		ctx.stroke();
+	}
+
+	ctx.beginPath();
+	ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);
+	for (i = 0; i < arc.fullCircles; ++i) {
+		ctx.stroke();
+	}
+}
+
+function drawBorder(ctx, vm, arc) {
+	var inner = vm.borderAlign === 'inner';
+
+	if (inner) {
+		ctx.lineWidth = vm.borderWidth * 2;
+		ctx.lineJoin = 'round';
+	} else {
+		ctx.lineWidth = vm.borderWidth;
+		ctx.lineJoin = 'bevel';
+	}
+
+	if (arc.fullCircles) {
+		drawFullCircleBorders(ctx, vm, arc, inner);
+	}
+
+	if (inner) {
+		clipArc(ctx, arc);
+	}
+
+	ctx.beginPath();
+	ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);
+	ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
+	ctx.closePath();
+	ctx.stroke();
+}
+
+var element_arc = core_element.extend({
+	_type: 'arc',
+
+	inLabelRange: function(mouseX) {
+		var vm = this._view;
+
+		if (vm) {
+			return (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));
+		}
+		return false;
+	},
+
+	inRange: function(chartX, chartY) {
+		var vm = this._view;
+
+		if (vm) {
+			var pointRelativePosition = helpers$1.getAngleFromPoint(vm, {x: chartX, y: chartY});
+			var angle = pointRelativePosition.angle;
+			var distance = pointRelativePosition.distance;
+
+			// Sanitise angle range
+			var startAngle = vm.startAngle;
+			var endAngle = vm.endAngle;
+			while (endAngle < startAngle) {
+				endAngle += TAU;
+			}
+			while (angle > endAngle) {
+				angle -= TAU;
+			}
+			while (angle < startAngle) {
+				angle += TAU;
+			}
+
+			// Check if within the range of the open/close angle
+			var betweenAngles = (angle >= startAngle && angle <= endAngle);
+			var withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);
+
+			return (betweenAngles && withinRadius);
+		}
+		return false;
+	},
+
+	getCenterPoint: function() {
+		var vm = this._view;
+		var halfAngle = (vm.startAngle + vm.endAngle) / 2;
+		var halfRadius = (vm.innerRadius + vm.outerRadius) / 2;
+		return {
+			x: vm.x + Math.cos(halfAngle) * halfRadius,
+			y: vm.y + Math.sin(halfAngle) * halfRadius
+		};
+	},
+
+	getArea: function() {
+		var vm = this._view;
+		return Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));
+	},
+
+	tooltipPosition: function() {
+		var vm = this._view;
+		var centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);
+		var rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;
+
+		return {
+			x: vm.x + (Math.cos(centreAngle) * rangeFromCentre),
+			y: vm.y + (Math.sin(centreAngle) * rangeFromCentre)
+		};
+	},
+
+	draw: function() {
+		var ctx = this._chart.ctx;
+		var vm = this._view;
+		var pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0;
+		var arc = {
+			x: vm.x,
+			y: vm.y,
+			innerRadius: vm.innerRadius,
+			outerRadius: Math.max(vm.outerRadius - pixelMargin, 0),
+			pixelMargin: pixelMargin,
+			startAngle: vm.startAngle,
+			endAngle: vm.endAngle,
+			fullCircles: Math.floor(vm.circumference / TAU)
+		};
+		var i;
+
+		ctx.save();
+
+		ctx.fillStyle = vm.backgroundColor;
+		ctx.strokeStyle = vm.borderColor;
+
+		if (arc.fullCircles) {
+			arc.endAngle = arc.startAngle + TAU;
+			ctx.beginPath();
+			ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);
+			ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
+			ctx.closePath();
+			for (i = 0; i < arc.fullCircles; ++i) {
+				ctx.fill();
+			}
+			arc.endAngle = arc.startAngle + vm.circumference % TAU;
+		}
+
+		ctx.beginPath();
+		ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);
+		ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
+		ctx.closePath();
+		ctx.fill();
+
+		if (vm.borderWidth) {
+			drawBorder(ctx, vm, arc);
+		}
+
+		ctx.restore();
+	}
+});
+
+var valueOrDefault$1 = helpers$1.valueOrDefault;
+
+var defaultColor = core_defaults.global.defaultColor;
+
+core_defaults._set('global', {
+	elements: {
+		line: {
+			tension: 0.4,
+			backgroundColor: defaultColor,
+			borderWidth: 3,
+			borderColor: defaultColor,
+			borderCapStyle: 'butt',
+			borderDash: [],
+			borderDashOffset: 0.0,
+			borderJoinStyle: 'miter',
+			capBezierPoints: true,
+			fill: true, // do we fill in the area between the line and its base axis
+		}
+	}
+});
+
+var element_line = core_element.extend({
+	_type: 'line',
+
+	draw: function() {
+		var me = this;
+		var vm = me._view;
+		var ctx = me._chart.ctx;
+		var spanGaps = vm.spanGaps;
+		var points = me._children.slice(); // clone array
+		var globalDefaults = core_defaults.global;
+		var globalOptionLineElements = globalDefaults.elements.line;
+		var lastDrawnIndex = -1;
+		var closePath = me._loop;
+		var index, previous, currentVM;
+
+		if (!points.length) {
+			return;
+		}
+
+		if (me._loop) {
+			for (index = 0; index < points.length; ++index) {
+				previous = helpers$1.previousItem(points, index);
+				// If the line has an open path, shift the point array
+				if (!points[index]._view.skip && previous._view.skip) {
+					points = points.slice(index).concat(points.slice(0, index));
+					closePath = spanGaps;
+					break;
+				}
+			}
+			// If the line has a close path, add the first point again
+			if (closePath) {
+				points.push(points[0]);
+			}
+		}
+
+		ctx.save();
+
+		// Stroke Line Options
+		ctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;
+
+		// IE 9 and 10 do not support line dash
+		if (ctx.setLineDash) {
+			ctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);
+		}
+
+		ctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);
+		ctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;
+		ctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);
+		ctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;
+
+		// Stroke Line
+		ctx.beginPath();
+
+		// First point moves to it's starting position no matter what
+		currentVM = points[0]._view;
+		if (!currentVM.skip) {
+			ctx.moveTo(currentVM.x, currentVM.y);
+			lastDrawnIndex = 0;
+		}
+
+		for (index = 1; index < points.length; ++index) {
+			currentVM = points[index]._view;
+			previous = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];
+
+			if (!currentVM.skip) {
+				if ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {
+					// There was a gap and this is the first point after the gap
+					ctx.moveTo(currentVM.x, currentVM.y);
+				} else {
+					// Line to next point
+					helpers$1.canvas.lineTo(ctx, previous._view, currentVM);
+				}
+				lastDrawnIndex = index;
+			}
+		}
+
+		if (closePath) {
+			ctx.closePath();
+		}
+
+		ctx.stroke();
+		ctx.restore();
+	}
+});
+
+var valueOrDefault$2 = helpers$1.valueOrDefault;
+
+var defaultColor$1 = core_defaults.global.defaultColor;
+
+core_defaults._set('global', {
+	elements: {
+		point: {
+			radius: 3,
+			pointStyle: 'circle',
+			backgroundColor: defaultColor$1,
+			borderColor: defaultColor$1,
+			borderWidth: 1,
+			// Hover
+			hitRadius: 1,
+			hoverRadius: 4,
+			hoverBorderWidth: 1
+		}
+	}
+});
+
+function xRange(mouseX) {
+	var vm = this._view;
+	return vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;
+}
+
+function yRange(mouseY) {
+	var vm = this._view;
+	return vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;
+}
+
+var element_point = core_element.extend({
+	_type: 'point',
+
+	inRange: function(mouseX, mouseY) {
+		var vm = this._view;
+		return vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;
+	},
+
+	inLabelRange: xRange,
+	inXRange: xRange,
+	inYRange: yRange,
+
+	getCenterPoint: function() {
+		var vm = this._view;
+		return {
+			x: vm.x,
+			y: vm.y
+		};
+	},
+
+	getArea: function() {
+		return Math.PI * Math.pow(this._view.radius, 2);
+	},
+
+	tooltipPosition: function() {
+		var vm = this._view;
+		return {
+			x: vm.x,
+			y: vm.y,
+			padding: vm.radius + vm.borderWidth
+		};
+	},
+
+	draw: function(chartArea) {
+		var vm = this._view;
+		var ctx = this._chart.ctx;
+		var pointStyle = vm.pointStyle;
+		var rotation = vm.rotation;
+		var radius = vm.radius;
+		var x = vm.x;
+		var y = vm.y;
+		var globalDefaults = core_defaults.global;
+		var defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow
+
+		if (vm.skip) {
+			return;
+		}
+
+		// Clipping for Points.
+		if (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {
+			ctx.strokeStyle = vm.borderColor || defaultColor;
+			ctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);
+			ctx.fillStyle = vm.backgroundColor || defaultColor;
+			helpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);
+		}
+	}
+});
+
+var defaultColor$2 = core_defaults.global.defaultColor;
+
+core_defaults._set('global', {
+	elements: {
+		rectangle: {
+			backgroundColor: defaultColor$2,
+			borderColor: defaultColor$2,
+			borderSkipped: 'bottom',
+			borderWidth: 0
+		}
+	}
+});
+
+function isVertical(vm) {
+	return vm && vm.width !== undefined;
+}
+
+/**
+ * Helper function to get the bounds of the bar regardless of the orientation
+ * @param bar {Chart.Element.Rectangle} the bar
+ * @return {Bounds} bounds of the bar
+ * @private
+ */
+function getBarBounds(vm) {
+	var x1, x2, y1, y2, half;
+
+	if (isVertical(vm)) {
+		half = vm.width / 2;
+		x1 = vm.x - half;
+		x2 = vm.x + half;
+		y1 = Math.min(vm.y, vm.base);
+		y2 = Math.max(vm.y, vm.base);
+	} else {
+		half = vm.height / 2;
+		x1 = Math.min(vm.x, vm.base);
+		x2 = Math.max(vm.x, vm.base);
+		y1 = vm.y - half;
+		y2 = vm.y + half;
+	}
+
+	return {
+		left: x1,
+		top: y1,
+		right: x2,
+		bottom: y2
+	};
+}
+
+function swap(orig, v1, v2) {
+	return orig === v1 ? v2 : orig === v2 ? v1 : orig;
+}
+
+function parseBorderSkipped(vm) {
+	var edge = vm.borderSkipped;
+	var res = {};
+
+	if (!edge) {
+		return res;
+	}
+
+	if (vm.horizontal) {
+		if (vm.base > vm.x) {
+			edge = swap(edge, 'left', 'right');
+		}
+	} else if (vm.base < vm.y) {
+		edge = swap(edge, 'bottom', 'top');
+	}
+
+	res[edge] = true;
+	return res;
+}
+
+function parseBorderWidth(vm, maxW, maxH) {
+	var value = vm.borderWidth;
+	var skip = parseBorderSkipped(vm);
+	var t, r, b, l;
+
+	if (helpers$1.isObject(value)) {
+		t = +value.top || 0;
+		r = +value.right || 0;
+		b = +value.bottom || 0;
+		l = +value.left || 0;
+	} else {
+		t = r = b = l = +value || 0;
+	}
+
+	return {
+		t: skip.top || (t < 0) ? 0 : t > maxH ? maxH : t,
+		r: skip.right || (r < 0) ? 0 : r > maxW ? maxW : r,
+		b: skip.bottom || (b < 0) ? 0 : b > maxH ? maxH : b,
+		l: skip.left || (l < 0) ? 0 : l > maxW ? maxW : l
+	};
+}
+
+function boundingRects(vm) {
+	var bounds = getBarBounds(vm);
+	var width = bounds.right - bounds.left;
+	var height = bounds.bottom - bounds.top;
+	var border = parseBorderWidth(vm, width / 2, height / 2);
+
+	return {
+		outer: {
+			x: bounds.left,
+			y: bounds.top,
+			w: width,
+			h: height
+		},
+		inner: {
+			x: bounds.left + border.l,
+			y: bounds.top + border.t,
+			w: width - border.l - border.r,
+			h: height - border.t - border.b
+		}
+	};
+}
+
+function inRange(vm, x, y) {
+	var skipX = x === null;
+	var skipY = y === null;
+	var bounds = !vm || (skipX && skipY) ? false : getBarBounds(vm);
+
+	return bounds
+		&& (skipX || x >= bounds.left && x <= bounds.right)
+		&& (skipY || y >= bounds.top && y <= bounds.bottom);
+}
+
+var element_rectangle = core_element.extend({
+	_type: 'rectangle',
+
+	draw: function() {
+		var ctx = this._chart.ctx;
+		var vm = this._view;
+		var rects = boundingRects(vm);
+		var outer = rects.outer;
+		var inner = rects.inner;
+
+		ctx.fillStyle = vm.backgroundColor;
+		ctx.fillRect(outer.x, outer.y, outer.w, outer.h);
+
+		if (outer.w === inner.w && outer.h === inner.h) {
+			return;
+		}
+
+		ctx.save();
+		ctx.beginPath();
+		ctx.rect(outer.x, outer.y, outer.w, outer.h);
+		ctx.clip();
+		ctx.fillStyle = vm.borderColor;
+		ctx.rect(inner.x, inner.y, inner.w, inner.h);
+		ctx.fill('evenodd');
+		ctx.restore();
+	},
+
+	height: function() {
+		var vm = this._view;
+		return vm.base - vm.y;
+	},
+
+	inRange: function(mouseX, mouseY) {
+		return inRange(this._view, mouseX, mouseY);
+	},
+
+	inLabelRange: function(mouseX, mouseY) {
+		var vm = this._view;
+		return isVertical(vm)
+			? inRange(vm, mouseX, null)
+			: inRange(vm, null, mouseY);
+	},
+
+	inXRange: function(mouseX) {
+		return inRange(this._view, mouseX, null);
+	},
+
+	inYRange: function(mouseY) {
+		return inRange(this._view, null, mouseY);
+	},
+
+	getCenterPoint: function() {
+		var vm = this._view;
+		var x, y;
+		if (isVertical(vm)) {
+			x = vm.x;
+			y = (vm.y + vm.base) / 2;
+		} else {
+			x = (vm.x + vm.base) / 2;
+			y = vm.y;
+		}
+
+		return {x: x, y: y};
+	},
+
+	getArea: function() {
+		var vm = this._view;
+
+		return isVertical(vm)
+			? vm.width * Math.abs(vm.y - vm.base)
+			: vm.height * Math.abs(vm.x - vm.base);
+	},
+
+	tooltipPosition: function() {
+		var vm = this._view;
+		return {
+			x: vm.x,
+			y: vm.y
+		};
+	}
+});
+
+var elements = {};
+var Arc = element_arc;
+var Line = element_line;
+var Point = element_point;
+var Rectangle = element_rectangle;
+elements.Arc = Arc;
+elements.Line = Line;
+elements.Point = Point;
+elements.Rectangle = Rectangle;
+
+var deprecated = helpers$1._deprecated;
+var valueOrDefault$3 = helpers$1.valueOrDefault;
+
+core_defaults._set('bar', {
+	hover: {
+		mode: 'label'
+	},
+
+	scales: {
+		xAxes: [{
+			type: 'category',
+			offset: true,
+			gridLines: {
+				offsetGridLines: true
+			}
+		}],
+
+		yAxes: [{
+			type: 'linear'
+		}]
+	}
+});
+
+core_defaults._set('global', {
+	datasets: {
+		bar: {
+			categoryPercentage: 0.8,
+			barPercentage: 0.9
+		}
+	}
+});
+
+/**
+ * Computes the "optimal" sample size to maintain bars equally sized while preventing overlap.
+ * @private
+ */
+function computeMinSampleSize(scale, pixels) {
+	var min = scale._length;
+	var prev, curr, i, ilen;
+
+	for (i = 1, ilen = pixels.length; i < ilen; ++i) {
+		min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));
+	}
+
+	for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {
+		curr = scale.getPixelForTick(i);
+		min = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;
+		prev = curr;
+	}
+
+	return min;
+}
+
+/**
+ * Computes an "ideal" category based on the absolute bar thickness or, if undefined or null,
+ * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This
+ * mode currently always generates bars equally sized (until we introduce scriptable options?).
+ * @private
+ */
+function computeFitCategoryTraits(index, ruler, options) {
+	var thickness = options.barThickness;
+	var count = ruler.stackCount;
+	var curr = ruler.pixels[index];
+	var min = helpers$1.isNullOrUndef(thickness)
+		? computeMinSampleSize(ruler.scale, ruler.pixels)
+		: -1;
+	var size, ratio;
+
+	if (helpers$1.isNullOrUndef(thickness)) {
+		size = min * options.categoryPercentage;
+		ratio = options.barPercentage;
+	} else {
+		// When bar thickness is enforced, category and bar percentages are ignored.
+		// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')
+		// and deprecate barPercentage since this value is ignored when thickness is absolute.
+		size = thickness * count;
+		ratio = 1;
+	}
+
+	return {
+		chunk: size / count,
+		ratio: ratio,
+		start: curr - (size / 2)
+	};
+}
+
+/**
+ * Computes an "optimal" category that globally arranges bars side by side (no gap when
+ * percentage options are 1), based on the previous and following categories. This mode
+ * generates bars with different widths when data are not evenly spaced.
+ * @private
+ */
+function computeFlexCategoryTraits(index, ruler, options) {
+	var pixels = ruler.pixels;
+	var curr = pixels[index];
+	var prev = index > 0 ? pixels[index - 1] : null;
+	var next = index < pixels.length - 1 ? pixels[index + 1] : null;
+	var percent = options.categoryPercentage;
+	var start, size;
+
+	if (prev === null) {
+		// first data: its size is double based on the next point or,
+		// if it's also the last data, we use the scale size.
+		prev = curr - (next === null ? ruler.end - ruler.start : next - curr);
+	}
+
+	if (next === null) {
+		// last data: its size is also double based on the previous point.
+		next = curr + curr - prev;
+	}
+
+	start = curr - (curr - Math.min(prev, next)) / 2 * percent;
+	size = Math.abs(next - prev) / 2 * percent;
+
+	return {
+		chunk: size / ruler.stackCount,
+		ratio: options.barPercentage,
+		start: start
+	};
+}
+
+var controller_bar = core_datasetController.extend({
+
+	dataElementType: elements.Rectangle,
+
+	/**
+	 * @private
+	 */
+	_dataElementOptions: [
+		'backgroundColor',
+		'borderColor',
+		'borderSkipped',
+		'borderWidth',
+		'barPercentage',
+		'barThickness',
+		'categoryPercentage',
+		'maxBarThickness',
+		'minBarLength'
+	],
+
+	initialize: function() {
+		var me = this;
+		var meta, scaleOpts;
+
+		core_datasetController.prototype.initialize.apply(me, arguments);
+
+		meta = me.getMeta();
+		meta.stack = me.getDataset().stack;
+		meta.bar = true;
+
+		scaleOpts = me._getIndexScale().options;
+		deprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');
+		deprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');
+		deprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');
+		deprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');
+		deprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');
+	},
+
+	update: function(reset) {
+		var me = this;
+		var rects = me.getMeta().data;
+		var i, ilen;
+
+		me._ruler = me.getRuler();
+
+		for (i = 0, ilen = rects.length; i < ilen; ++i) {
+			me.updateElement(rects[i], i, reset);
+		}
+	},
+
+	updateElement: function(rectangle, index, reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var dataset = me.getDataset();
+		var options = me._resolveDataElementOptions(rectangle, index);
+
+		rectangle._xScale = me.getScaleForId(meta.xAxisID);
+		rectangle._yScale = me.getScaleForId(meta.yAxisID);
+		rectangle._datasetIndex = me.index;
+		rectangle._index = index;
+		rectangle._model = {
+			backgroundColor: options.backgroundColor,
+			borderColor: options.borderColor,
+			borderSkipped: options.borderSkipped,
+			borderWidth: options.borderWidth,
+			datasetLabel: dataset.label,
+			label: me.chart.data.labels[index]
+		};
+
+		if (helpers$1.isArray(dataset.data[index])) {
+			rectangle._model.borderSkipped = null;
+		}
+
+		me._updateElementGeometry(rectangle, index, reset, options);
+
+		rectangle.pivot();
+	},
+
+	/**
+	 * @private
+	 */
+	_updateElementGeometry: function(rectangle, index, reset, options) {
+		var me = this;
+		var model = rectangle._model;
+		var vscale = me._getValueScale();
+		var base = vscale.getBasePixel();
+		var horizontal = vscale.isHorizontal();
+		var ruler = me._ruler || me.getRuler();
+		var vpixels = me.calculateBarValuePixels(me.index, index, options);
+		var ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);
+
+		model.horizontal = horizontal;
+		model.base = reset ? base : vpixels.base;
+		model.x = horizontal ? reset ? base : vpixels.head : ipixels.center;
+		model.y = horizontal ? ipixels.center : reset ? base : vpixels.head;
+		model.height = horizontal ? ipixels.size : undefined;
+		model.width = horizontal ? undefined : ipixels.size;
+	},
+
+	/**
+	 * Returns the stacks based on groups and bar visibility.
+	 * @param {number} [last] - The dataset index
+	 * @returns {string[]} The list of stack IDs
+	 * @private
+	 */
+	_getStacks: function(last) {
+		var me = this;
+		var scale = me._getIndexScale();
+		var metasets = scale._getMatchingVisibleMetas(me._type);
+		var stacked = scale.options.stacked;
+		var ilen = metasets.length;
+		var stacks = [];
+		var i, meta;
+
+		for (i = 0; i < ilen; ++i) {
+			meta = metasets[i];
+			// stacked   | meta.stack
+			//           | found | not found | undefined
+			// false     |   x   |     x     |     x
+			// true      |       |     x     |
+			// undefined |       |     x     |     x
+			if (stacked === false || stacks.indexOf(meta.stack) === -1 ||
+				(stacked === undefined && meta.stack === undefined)) {
+				stacks.push(meta.stack);
+			}
+			if (meta.index === last) {
+				break;
+			}
+		}
+
+		return stacks;
+	},
+
+	/**
+	 * Returns the effective number of stacks based on groups and bar visibility.
+	 * @private
+	 */
+	getStackCount: function() {
+		return this._getStacks().length;
+	},
+
+	/**
+	 * Returns the stack index for the given dataset based on groups and bar visibility.
+	 * @param {number} [datasetIndex] - The dataset index
+	 * @param {string} [name] - The stack name to find
+	 * @returns {number} The stack index
+	 * @private
+	 */
+	getStackIndex: function(datasetIndex, name) {
+		var stacks = this._getStacks(datasetIndex);
+		var index = (name !== undefined)
+			? stacks.indexOf(name)
+			: -1; // indexOf returns -1 if element is not present
+
+		return (index === -1)
+			? stacks.length - 1
+			: index;
+	},
+
+	/**
+	 * @private
+	 */
+	getRuler: function() {
+		var me = this;
+		var scale = me._getIndexScale();
+		var pixels = [];
+		var i, ilen;
+
+		for (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {
+			pixels.push(scale.getPixelForValue(null, i, me.index));
+		}
+
+		return {
+			pixels: pixels,
+			start: scale._startPixel,
+			end: scale._endPixel,
+			stackCount: me.getStackCount(),
+			scale: scale
+		};
+	},
+
+	/**
+	 * Note: pixel values are not clamped to the scale area.
+	 * @private
+	 */
+	calculateBarValuePixels: function(datasetIndex, index, options) {
+		var me = this;
+		var chart = me.chart;
+		var scale = me._getValueScale();
+		var isHorizontal = scale.isHorizontal();
+		var datasets = chart.data.datasets;
+		var metasets = scale._getMatchingVisibleMetas(me._type);
+		var value = scale._parseValue(datasets[datasetIndex].data[index]);
+		var minBarLength = options.minBarLength;
+		var stacked = scale.options.stacked;
+		var stack = me.getMeta().stack;
+		var start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;
+		var length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;
+		var ilen = metasets.length;
+		var i, imeta, ivalue, base, head, size, stackLength;
+
+		if (stacked || (stacked === undefined && stack !== undefined)) {
+			for (i = 0; i < ilen; ++i) {
+				imeta = metasets[i];
+
+				if (imeta.index === datasetIndex) {
+					break;
+				}
+
+				if (imeta.stack === stack) {
+					stackLength = scale._parseValue(datasets[imeta.index].data[index]);
+					ivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;
+
+					if ((value.min < 0 && ivalue < 0) || (value.max >= 0 && ivalue > 0)) {
+						start += ivalue;
+					}
+				}
+			}
+		}
+
+		base = scale.getPixelForValue(start);
+		head = scale.getPixelForValue(start + length);
+		size = head - base;
+
+		if (minBarLength !== undefined && Math.abs(size) < minBarLength) {
+			size = minBarLength;
+			if (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {
+				head = base - minBarLength;
+			} else {
+				head = base + minBarLength;
+			}
+		}
+
+		return {
+			size: size,
+			base: base,
+			head: head,
+			center: head + size / 2
+		};
+	},
+
+	/**
+	 * @private
+	 */
+	calculateBarIndexPixels: function(datasetIndex, index, ruler, options) {
+		var me = this;
+		var range = options.barThickness === 'flex'
+			? computeFlexCategoryTraits(index, ruler, options)
+			: computeFitCategoryTraits(index, ruler, options);
+
+		var stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);
+		var center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);
+		var size = Math.min(
+			valueOrDefault$3(options.maxBarThickness, Infinity),
+			range.chunk * range.ratio);
+
+		return {
+			base: center - size / 2,
+			head: center + size / 2,
+			center: center,
+			size: size
+		};
+	},
+
+	draw: function() {
+		var me = this;
+		var chart = me.chart;
+		var scale = me._getValueScale();
+		var rects = me.getMeta().data;
+		var dataset = me.getDataset();
+		var ilen = rects.length;
+		var i = 0;
+
+		helpers$1.canvas.clipArea(chart.ctx, chart.chartArea);
+
+		for (; i < ilen; ++i) {
+			var val = scale._parseValue(dataset.data[i]);
+			if (!isNaN(val.min) && !isNaN(val.max)) {
+				rects[i].draw();
+			}
+		}
+
+		helpers$1.canvas.unclipArea(chart.ctx);
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDataElementOptions: function() {
+		var me = this;
+		var values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));
+		var indexOpts = me._getIndexScale().options;
+		var valueOpts = me._getValueScale().options;
+
+		values.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);
+		values.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);
+		values.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);
+		values.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);
+		values.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);
+
+		return values;
+	}
+
+});
+
+var valueOrDefault$4 = helpers$1.valueOrDefault;
+var resolve$1 = helpers$1.options.resolve;
+
+core_defaults._set('bubble', {
+	hover: {
+		mode: 'single'
+	},
+
+	scales: {
+		xAxes: [{
+			type: 'linear', // bubble should probably use a linear scale by default
+			position: 'bottom',
+			id: 'x-axis-0' // need an ID so datasets can reference the scale
+		}],
+		yAxes: [{
+			type: 'linear',
+			position: 'left',
+			id: 'y-axis-0'
+		}]
+	},
+
+	tooltips: {
+		callbacks: {
+			title: function() {
+				// Title doesn't make sense for scatter since we format the data as a point
+				return '';
+			},
+			label: function(item, data) {
+				var datasetLabel = data.datasets[item.datasetIndex].label || '';
+				var dataPoint = data.datasets[item.datasetIndex].data[item.index];
+				return datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';
+			}
+		}
+	}
+});
+
+var controller_bubble = core_datasetController.extend({
+	/**
+	 * @protected
+	 */
+	dataElementType: elements.Point,
 
-                var colorName = {
-                    "aliceblue": [240, 248, 255],
-                    "antiquewhite": [250, 235, 215],
-                    "aqua": [0, 255, 255],
-                    "aquamarine": [127, 255, 212],
-                    "azure": [240, 255, 255],
-                    "beige": [245, 245, 220],
-                    "bisque": [255, 228, 196],
-                    "black": [0, 0, 0],
-                    "blanchedalmond": [255, 235, 205],
-                    "blue": [0, 0, 255],
-                    "blueviolet": [138, 43, 226],
-                    "brown": [165, 42, 42],
-                    "burlywood": [222, 184, 135],
-                    "cadetblue": [95, 158, 160],
-                    "chartreuse": [127, 255, 0],
-                    "chocolate": [210, 105, 30],
-                    "coral": [255, 127, 80],
-                    "cornflowerblue": [100, 149, 237],
-                    "cornsilk": [255, 248, 220],
-                    "crimson": [220, 20, 60],
-                    "cyan": [0, 255, 255],
-                    "darkblue": [0, 0, 139],
-                    "darkcyan": [0, 139, 139],
-                    "darkgoldenrod": [184, 134, 11],
-                    "darkgray": [169, 169, 169],
-                    "darkgreen": [0, 100, 0],
-                    "darkgrey": [169, 169, 169],
-                    "darkkhaki": [189, 183, 107],
-                    "darkmagenta": [139, 0, 139],
-                    "darkolivegreen": [85, 107, 47],
-                    "darkorange": [255, 140, 0],
-                    "darkorchid": [153, 50, 204],
-                    "darkred": [139, 0, 0],
-                    "darksalmon": [233, 150, 122],
-                    "darkseagreen": [143, 188, 143],
-                    "darkslateblue": [72, 61, 139],
-                    "darkslategray": [47, 79, 79],
-                    "darkslategrey": [47, 79, 79],
-                    "darkturquoise": [0, 206, 209],
-                    "darkviolet": [148, 0, 211],
-                    "deeppink": [255, 20, 147],
-                    "deepskyblue": [0, 191, 255],
-                    "dimgray": [105, 105, 105],
-                    "dimgrey": [105, 105, 105],
-                    "dodgerblue": [30, 144, 255],
-                    "firebrick": [178, 34, 34],
-                    "floralwhite": [255, 250, 240],
-                    "forestgreen": [34, 139, 34],
-                    "fuchsia": [255, 0, 255],
-                    "gainsboro": [220, 220, 220],
-                    "ghostwhite": [248, 248, 255],
-                    "gold": [255, 215, 0],
-                    "goldenrod": [218, 165, 32],
-                    "gray": [128, 128, 128],
-                    "green": [0, 128, 0],
-                    "greenyellow": [173, 255, 47],
-                    "grey": [128, 128, 128],
-                    "honeydew": [240, 255, 240],
-                    "hotpink": [255, 105, 180],
-                    "indianred": [205, 92, 92],
-                    "indigo": [75, 0, 130],
-                    "ivory": [255, 255, 240],
-                    "khaki": [240, 230, 140],
-                    "lavender": [230, 230, 250],
-                    "lavenderblush": [255, 240, 245],
-                    "lawngreen": [124, 252, 0],
-                    "lemonchiffon": [255, 250, 205],
-                    "lightblue": [173, 216, 230],
-                    "lightcoral": [240, 128, 128],
-                    "lightcyan": [224, 255, 255],
-                    "lightgoldenrodyellow": [250, 250, 210],
-                    "lightgray": [211, 211, 211],
-                    "lightgreen": [144, 238, 144],
-                    "lightgrey": [211, 211, 211],
-                    "lightpink": [255, 182, 193],
-                    "lightsalmon": [255, 160, 122],
-                    "lightseagreen": [32, 178, 170],
-                    "lightskyblue": [135, 206, 250],
-                    "lightslategray": [119, 136, 153],
-                    "lightslategrey": [119, 136, 153],
-                    "lightsteelblue": [176, 196, 222],
-                    "lightyellow": [255, 255, 224],
-                    "lime": [0, 255, 0],
-                    "limegreen": [50, 205, 50],
-                    "linen": [250, 240, 230],
-                    "magenta": [255, 0, 255],
-                    "maroon": [128, 0, 0],
-                    "mediumaquamarine": [102, 205, 170],
-                    "mediumblue": [0, 0, 205],
-                    "mediumorchid": [186, 85, 211],
-                    "mediumpurple": [147, 112, 219],
-                    "mediumseagreen": [60, 179, 113],
-                    "mediumslateblue": [123, 104, 238],
-                    "mediumspringgreen": [0, 250, 154],
-                    "mediumturquoise": [72, 209, 204],
-                    "mediumvioletred": [199, 21, 133],
-                    "midnightblue": [25, 25, 112],
-                    "mintcream": [245, 255, 250],
-                    "mistyrose": [255, 228, 225],
-                    "moccasin": [255, 228, 181],
-                    "navajowhite": [255, 222, 173],
-                    "navy": [0, 0, 128],
-                    "oldlace": [253, 245, 230],
-                    "olive": [128, 128, 0],
-                    "olivedrab": [107, 142, 35],
-                    "orange": [255, 165, 0],
-                    "orangered": [255, 69, 0],
-                    "orchid": [218, 112, 214],
-                    "palegoldenrod": [238, 232, 170],
-                    "palegreen": [152, 251, 152],
-                    "paleturquoise": [175, 238, 238],
-                    "palevioletred": [219, 112, 147],
-                    "papayawhip": [255, 239, 213],
-                    "peachpuff": [255, 218, 185],
-                    "peru": [205, 133, 63],
-                    "pink": [255, 192, 203],
-                    "plum": [221, 160, 221],
-                    "powderblue": [176, 224, 230],
-                    "purple": [128, 0, 128],
-                    "rebeccapurple": [102, 51, 153],
-                    "red": [255, 0, 0],
-                    "rosybrown": [188, 143, 143],
-                    "royalblue": [65, 105, 225],
-                    "saddlebrown": [139, 69, 19],
-                    "salmon": [250, 128, 114],
-                    "sandybrown": [244, 164, 96],
-                    "seagreen": [46, 139, 87],
-                    "seashell": [255, 245, 238],
-                    "sienna": [160, 82, 45],
-                    "silver": [192, 192, 192],
-                    "skyblue": [135, 206, 235],
-                    "slateblue": [106, 90, 205],
-                    "slategray": [112, 128, 144],
-                    "slategrey": [112, 128, 144],
-                    "snow": [255, 250, 250],
-                    "springgreen": [0, 255, 127],
-                    "steelblue": [70, 130, 180],
-                    "tan": [210, 180, 140],
-                    "teal": [0, 128, 128],
-                    "thistle": [216, 191, 216],
-                    "tomato": [255, 99, 71],
-                    "turquoise": [64, 224, 208],
-                    "violet": [238, 130, 238],
-                    "wheat": [245, 222, 179],
-                    "white": [255, 255, 255],
-                    "whitesmoke": [245, 245, 245],
-                    "yellow": [255, 255, 0],
-                    "yellowgreen": [154, 205, 50]
-                };
+	/**
+	 * @private
+	 */
+	_dataElementOptions: [
+		'backgroundColor',
+		'borderColor',
+		'borderWidth',
+		'hoverBackgroundColor',
+		'hoverBorderColor',
+		'hoverBorderWidth',
+		'hoverRadius',
+		'hitRadius',
+		'pointStyle',
+		'rotation'
+	],
+
+	/**
+	 * @protected
+	 */
+	update: function(reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var points = meta.data;
+
+		// Update Points
+		helpers$1.each(points, function(point, index) {
+			me.updateElement(point, index, reset);
+		});
+	},
+
+	/**
+	 * @protected
+	 */
+	updateElement: function(point, index, reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var custom = point.custom || {};
+		var xScale = me.getScaleForId(meta.xAxisID);
+		var yScale = me.getScaleForId(meta.yAxisID);
+		var options = me._resolveDataElementOptions(point, index);
+		var data = me.getDataset().data[index];
+		var dsIndex = me.index;
+
+		var x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);
+		var y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);
+
+		point._xScale = xScale;
+		point._yScale = yScale;
+		point._options = options;
+		point._datasetIndex = dsIndex;
+		point._index = index;
+		point._model = {
+			backgroundColor: options.backgroundColor,
+			borderColor: options.borderColor,
+			borderWidth: options.borderWidth,
+			hitRadius: options.hitRadius,
+			pointStyle: options.pointStyle,
+			rotation: options.rotation,
+			radius: reset ? 0 : options.radius,
+			skip: custom.skip || isNaN(x) || isNaN(y),
+			x: x,
+			y: y,
+		};
+
+		point.pivot();
+	},
+
+	/**
+	 * @protected
+	 */
+	setHoverStyle: function(point) {
+		var model = point._model;
+		var options = point._options;
+		var getHoverColor = helpers$1.getHoverColor;
+
+		point.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth,
+			radius: model.radius
+		};
+
+		model.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
+		model.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));
+		model.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);
+		model.radius = options.radius + options.hoverRadius;
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDataElementOptions: function(point, index) {
+		var me = this;
+		var chart = me.chart;
+		var dataset = me.getDataset();
+		var custom = point.custom || {};
+		var data = dataset.data[index] || {};
+		var values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments);
+
+		// Scriptable options
+		var context = {
+			chart: chart,
+			dataIndex: index,
+			dataset: dataset,
+			datasetIndex: me.index
+		};
+
+		// In case values were cached (and thus frozen), we need to clone the values
+		if (me._cachedDataOpts === values) {
+			values = helpers$1.extend({}, values);
+		}
+
+		// Custom radius resolution
+		values.radius = resolve$1([
+			custom.radius,
+			data.r,
+			me._config.radius,
+			chart.options.elements.point.radius
+		], context, index);
+
+		return values;
+	}
+});
+
+var valueOrDefault$5 = helpers$1.valueOrDefault;
+
+var PI$1 = Math.PI;
+var DOUBLE_PI$1 = PI$1 * 2;
+var HALF_PI$1 = PI$1 / 2;
+
+core_defaults._set('doughnut', {
+	animation: {
+		// Boolean - Whether we animate the rotation of the Doughnut
+		animateRotate: true,
+		// Boolean - Whether we animate scaling the Doughnut from the centre
+		animateScale: false
+	},
+	hover: {
+		mode: 'single'
+	},
+	legendCallback: function(chart) {
+		var list = document.createElement('ul');
+		var data = chart.data;
+		var datasets = data.datasets;
+		var labels = data.labels;
+		var i, ilen, listItem, listItemSpan;
+
+		list.setAttribute('class', chart.id + '-legend');
+		if (datasets.length) {
+			for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {
+				listItem = list.appendChild(document.createElement('li'));
+				listItemSpan = listItem.appendChild(document.createElement('span'));
+				listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];
+				if (labels[i]) {
+					listItem.appendChild(document.createTextNode(labels[i]));
+				}
+			}
+		}
+
+		return list.outerHTML;
+	},
+	legend: {
+		labels: {
+			generateLabels: function(chart) {
+				var data = chart.data;
+				if (data.labels.length && data.datasets.length) {
+					return data.labels.map(function(label, i) {
+						var meta = chart.getDatasetMeta(0);
+						var style = meta.controller.getStyle(i);
+
+						return {
+							text: label,
+							fillStyle: style.backgroundColor,
+							strokeStyle: style.borderColor,
+							lineWidth: style.borderWidth,
+							hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,
+
+							// Extra data used for toggling the correct item
+							index: i
+						};
+					});
+				}
+				return [];
+			}
+		},
+
+		onClick: function(e, legendItem) {
+			var index = legendItem.index;
+			var chart = this.chart;
+			var i, ilen, meta;
+
+			for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
+				meta = chart.getDatasetMeta(i);
+				// toggle visibility of index if exists
+				if (meta.data[index]) {
+					meta.data[index].hidden = !meta.data[index].hidden;
+				}
+			}
+
+			chart.update();
+		}
+	},
+
+	// The percentage of the chart that we cut out of the middle.
+	cutoutPercentage: 50,
+
+	// The rotation of the chart, where the first data arc begins.
+	rotation: -HALF_PI$1,
+
+	// The total circumference of the chart.
+	circumference: DOUBLE_PI$1,
+
+	// Need to override these to give a nice default
+	tooltips: {
+		callbacks: {
+			title: function() {
+				return '';
+			},
+			label: function(tooltipItem, data) {
+				var dataLabel = data.labels[tooltipItem.index];
+				var value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
+
+				if (helpers$1.isArray(dataLabel)) {
+					// show value on first line of multiline label
+					// need to clone because we are changing the value
+					dataLabel = dataLabel.slice();
+					dataLabel[0] += value;
+				} else {
+					dataLabel += value;
+				}
+
+				return dataLabel;
+			}
+		}
+	}
+});
+
+var controller_doughnut = core_datasetController.extend({
+
+	dataElementType: elements.Arc,
+
+	linkScales: helpers$1.noop,
+
+	/**
+	 * @private
+	 */
+	_dataElementOptions: [
+		'backgroundColor',
+		'borderColor',
+		'borderWidth',
+		'borderAlign',
+		'hoverBackgroundColor',
+		'hoverBorderColor',
+		'hoverBorderWidth',
+	],
+
+	// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly
+	getRingIndex: function(datasetIndex) {
+		var ringIndex = 0;
+
+		for (var j = 0; j < datasetIndex; ++j) {
+			if (this.chart.isDatasetVisible(j)) {
+				++ringIndex;
+			}
+		}
+
+		return ringIndex;
+	},
+
+	update: function(reset) {
+		var me = this;
+		var chart = me.chart;
+		var chartArea = chart.chartArea;
+		var opts = chart.options;
+		var ratioX = 1;
+		var ratioY = 1;
+		var offsetX = 0;
+		var offsetY = 0;
+		var meta = me.getMeta();
+		var arcs = meta.data;
+		var cutout = opts.cutoutPercentage / 100 || 0;
+		var circumference = opts.circumference;
+		var chartWeight = me._getRingWeight(me.index);
+		var maxWidth, maxHeight, i, ilen;
+
+		// If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc
+		if (circumference < DOUBLE_PI$1) {
+			var startAngle = opts.rotation % DOUBLE_PI$1;
+			startAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;
+			var endAngle = startAngle + circumference;
+			var startX = Math.cos(startAngle);
+			var startY = Math.sin(startAngle);
+			var endX = Math.cos(endAngle);
+			var endY = Math.sin(endAngle);
+			var contains0 = (startAngle <= 0 && endAngle >= 0) || endAngle >= DOUBLE_PI$1;
+			var contains90 = (startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1) || endAngle >= DOUBLE_PI$1 + HALF_PI$1;
+			var contains180 = startAngle === -PI$1 || endAngle >= PI$1;
+			var contains270 = (startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1) || endAngle >= PI$1 + HALF_PI$1;
+			var minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);
+			var minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);
+			var maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);
+			var maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);
+			ratioX = (maxX - minX) / 2;
+			ratioY = (maxY - minY) / 2;
+			offsetX = -(maxX + minX) / 2;
+			offsetY = -(maxY + minY) / 2;
+		}
+
+		for (i = 0, ilen = arcs.length; i < ilen; ++i) {
+			arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);
+		}
+
+		chart.borderWidth = me.getMaxBorderWidth();
+		maxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;
+		maxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;
+		chart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);
+		chart.innerRadius = Math.max(chart.outerRadius * cutout, 0);
+		chart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);
+		chart.offsetX = offsetX * chart.outerRadius;
+		chart.offsetY = offsetY * chart.outerRadius;
+
+		meta.total = me.calculateTotal();
+
+		me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);
+		me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);
+
+		for (i = 0, ilen = arcs.length; i < ilen; ++i) {
+			me.updateElement(arcs[i], i, reset);
+		}
+	},
+
+	updateElement: function(arc, index, reset) {
+		var me = this;
+		var chart = me.chart;
+		var chartArea = chart.chartArea;
+		var opts = chart.options;
+		var animationOpts = opts.animation;
+		var centerX = (chartArea.left + chartArea.right) / 2;
+		var centerY = (chartArea.top + chartArea.bottom) / 2;
+		var startAngle = opts.rotation; // non reset case handled later
+		var endAngle = opts.rotation; // non reset case handled later
+		var dataset = me.getDataset();
+		var circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);
+		var innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;
+		var outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;
+		var options = arc._options || {};
+
+		helpers$1.extend(arc, {
+			// Utility
+			_datasetIndex: me.index,
+			_index: index,
+
+			// Desired view properties
+			_model: {
+				backgroundColor: options.backgroundColor,
+				borderColor: options.borderColor,
+				borderWidth: options.borderWidth,
+				borderAlign: options.borderAlign,
+				x: centerX + chart.offsetX,
+				y: centerY + chart.offsetY,
+				startAngle: startAngle,
+				endAngle: endAngle,
+				circumference: circumference,
+				outerRadius: outerRadius,
+				innerRadius: innerRadius,
+				label: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])
+			}
+		});
+
+		var model = arc._model;
+
+		// Set correct angles if not resetting
+		if (!reset || !animationOpts.animateRotate) {
+			if (index === 0) {
+				model.startAngle = opts.rotation;
+			} else {
+				model.startAngle = me.getMeta().data[index - 1]._model.endAngle;
+			}
+
+			model.endAngle = model.startAngle + model.circumference;
+		}
+
+		arc.pivot();
+	},
+
+	calculateTotal: function() {
+		var dataset = this.getDataset();
+		var meta = this.getMeta();
+		var total = 0;
+		var value;
+
+		helpers$1.each(meta.data, function(element, index) {
+			value = dataset.data[index];
+			if (!isNaN(value) && !element.hidden) {
+				total += Math.abs(value);
+			}
+		});
+
+		/* if (total === 0) {
+			total = NaN;
+		}*/
 
-                var conversions = createCommonjsModule(function (module) {
-                    /* MIT license */
+		return total;
+	},
+
+	calculateCircumference: function(value) {
+		var total = this.getMeta().total;
+		if (total > 0 && !isNaN(value)) {
+			return DOUBLE_PI$1 * (Math.abs(value) / total);
+		}
+		return 0;
+	},
+
+	// gets the max border or hover width to properly scale pie charts
+	getMaxBorderWidth: function(arcs) {
+		var me = this;
+		var max = 0;
+		var chart = me.chart;
+		var i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;
+
+		if (!arcs) {
+			// Find the outmost visible dataset
+			for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {
+				if (chart.isDatasetVisible(i)) {
+					meta = chart.getDatasetMeta(i);
+					arcs = meta.data;
+					if (i !== me.index) {
+						controller = meta.controller;
+					}
+					break;
+				}
+			}
+		}
+
+		if (!arcs) {
+			return 0;
+		}
+
+		for (i = 0, ilen = arcs.length; i < ilen; ++i) {
+			arc = arcs[i];
+			if (controller) {
+				controller._configure();
+				options = controller._resolveDataElementOptions(arc, i);
+			} else {
+				options = arc._options;
+			}
+			if (options.borderAlign !== 'inner') {
+				borderWidth = options.borderWidth;
+				hoverWidth = options.hoverBorderWidth;
+
+				max = borderWidth > max ? borderWidth : max;
+				max = hoverWidth > max ? hoverWidth : max;
+			}
+		}
+		return max;
+	},
+
+	/**
+	 * @protected
+	 */
+	setHoverStyle: function(arc) {
+		var model = arc._model;
+		var options = arc._options;
+		var getHoverColor = helpers$1.getHoverColor;
+
+		arc.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth,
+		};
+
+		model.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
+		model.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));
+		model.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);
+	},
+
+	/**
+	 * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
+	 * @private
+	 */
+	_getRingWeightOffset: function(datasetIndex) {
+		var ringWeightOffset = 0;
 
+		for (var i = 0; i < datasetIndex; ++i) {
+			if (this.chart.isDatasetVisible(i)) {
+				ringWeightOffset += this._getRingWeight(i);
+			}
+		}
 
-// NOTE: conversions should only return primitive values (i.e. arrays, or
-//       values that give correct `typeof` results).
-//       do not use box values types (i.e. Number(), String(), etc.)
+		return ringWeightOffset;
+	},
 
-                    var reverseKeywords = {};
-                    for (var key in colorName) {
-                        if (colorName.hasOwnProperty(key)) {
-                            reverseKeywords[colorName[key]] = key;
-                        }
-                    }
+	/**
+	 * @private
+	 */
+	_getRingWeight: function(dataSetIndex) {
+		return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);
+	},
 
-                    var convert = module.exports = {
-                        rgb: {channels: 3, labels: 'rgb'},
-                        hsl: {channels: 3, labels: 'hsl'},
-                        hsv: {channels: 3, labels: 'hsv'},
-                        hwb: {channels: 3, labels: 'hwb'},
-                        cmyk: {channels: 4, labels: 'cmyk'},
-                        xyz: {channels: 3, labels: 'xyz'},
-                        lab: {channels: 3, labels: 'lab'},
-                        lch: {channels: 3, labels: 'lch'},
-                        hex: {channels: 1, labels: ['hex']},
-                        keyword: {channels: 1, labels: ['keyword']},
-                        ansi16: {channels: 1, labels: ['ansi16']},
-                        ansi256: {channels: 1, labels: ['ansi256']},
-                        hcg: {channels: 3, labels: ['h', 'c', 'g']},
-                        apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
-                        gray: {channels: 1, labels: ['gray']}
-                    };
+	/**
+	 * Returns the sum of all visibile data set weights.  This value can be 0.
+	 * @private
+	 */
+	_getVisibleDatasetWeightTotal: function() {
+		return this._getRingWeightOffset(this.chart.data.datasets.length);
+	}
+});
+
+core_defaults._set('horizontalBar', {
+	hover: {
+		mode: 'index',
+		axis: 'y'
+	},
+
+	scales: {
+		xAxes: [{
+			type: 'linear',
+			position: 'bottom'
+		}],
+
+		yAxes: [{
+			type: 'category',
+			position: 'left',
+			offset: true,
+			gridLines: {
+				offsetGridLines: true
+			}
+		}]
+	},
+
+	elements: {
+		rectangle: {
+			borderSkipped: 'left'
+		}
+	},
+
+	tooltips: {
+		mode: 'index',
+		axis: 'y'
+	}
+});
+
+core_defaults._set('global', {
+	datasets: {
+		horizontalBar: {
+			categoryPercentage: 0.8,
+			barPercentage: 0.9
+		}
+	}
+});
+
+var controller_horizontalBar = controller_bar.extend({
+	/**
+	 * @private
+	 */
+	_getValueScaleId: function() {
+		return this.getMeta().xAxisID;
+	},
 
-// hide .channels and .labels properties
-                    for (var model in convert) {
-                        if (convert.hasOwnProperty(model)) {
-                            if (!('channels' in convert[model])) {
-                                throw new Error('missing channels property: ' + model);
-                            }
+	/**
+	 * @private
+	 */
+	_getIndexScaleId: function() {
+		return this.getMeta().yAxisID;
+	}
+});
+
+var valueOrDefault$6 = helpers$1.valueOrDefault;
+var resolve$2 = helpers$1.options.resolve;
+var isPointInArea = helpers$1.canvas._isPointInArea;
+
+core_defaults._set('line', {
+	showLines: true,
+	spanGaps: false,
+
+	hover: {
+		mode: 'label'
+	},
+
+	scales: {
+		xAxes: [{
+			type: 'category',
+			id: 'x-axis-0'
+		}],
+		yAxes: [{
+			type: 'linear',
+			id: 'y-axis-0'
+		}]
+	}
+});
+
+function scaleClip(scale, halfBorderWidth) {
+	var tickOpts = scale && scale.options.ticks || {};
+	var reverse = tickOpts.reverse;
+	var min = tickOpts.min === undefined ? halfBorderWidth : 0;
+	var max = tickOpts.max === undefined ? halfBorderWidth : 0;
+	return {
+		start: reverse ? max : min,
+		end: reverse ? min : max
+	};
+}
+
+function defaultClip(xScale, yScale, borderWidth) {
+	var halfBorderWidth = borderWidth / 2;
+	var x = scaleClip(xScale, halfBorderWidth);
+	var y = scaleClip(yScale, halfBorderWidth);
+
+	return {
+		top: y.end,
+		right: x.end,
+		bottom: y.start,
+		left: x.start
+	};
+}
+
+function toClip(value) {
+	var t, r, b, l;
+
+	if (helpers$1.isObject(value)) {
+		t = value.top;
+		r = value.right;
+		b = value.bottom;
+		l = value.left;
+	} else {
+		t = r = b = l = value;
+	}
+
+	return {
+		top: t,
+		right: r,
+		bottom: b,
+		left: l
+	};
+}
+
+
+var controller_line = core_datasetController.extend({
+
+	datasetElementType: elements.Line,
+
+	dataElementType: elements.Point,
+
+	/**
+	 * @private
+	 */
+	_datasetElementOptions: [
+		'backgroundColor',
+		'borderCapStyle',
+		'borderColor',
+		'borderDash',
+		'borderDashOffset',
+		'borderJoinStyle',
+		'borderWidth',
+		'cubicInterpolationMode',
+		'fill'
+	],
+
+	/**
+	 * @private
+	 */
+	_dataElementOptions: {
+		backgroundColor: 'pointBackgroundColor',
+		borderColor: 'pointBorderColor',
+		borderWidth: 'pointBorderWidth',
+		hitRadius: 'pointHitRadius',
+		hoverBackgroundColor: 'pointHoverBackgroundColor',
+		hoverBorderColor: 'pointHoverBorderColor',
+		hoverBorderWidth: 'pointHoverBorderWidth',
+		hoverRadius: 'pointHoverRadius',
+		pointStyle: 'pointStyle',
+		radius: 'pointRadius',
+		rotation: 'pointRotation'
+	},
+
+	update: function(reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var line = meta.dataset;
+		var points = meta.data || [];
+		var options = me.chart.options;
+		var config = me._config;
+		var showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);
+		var i, ilen;
+
+		me._xScale = me.getScaleForId(meta.xAxisID);
+		me._yScale = me.getScaleForId(meta.yAxisID);
+
+		// Update Line
+		if (showLine) {
+			// Compatibility: If the properties are defined with only the old name, use those values
+			if (config.tension !== undefined && config.lineTension === undefined) {
+				config.lineTension = config.tension;
+			}
+
+			// Utility
+			line._scale = me._yScale;
+			line._datasetIndex = me.index;
+			// Data
+			line._children = points;
+			// Model
+			line._model = me._resolveDatasetElementOptions(line);
+
+			line.pivot();
+		}
+
+		// Update Points
+		for (i = 0, ilen = points.length; i < ilen; ++i) {
+			me.updateElement(points[i], i, reset);
+		}
+
+		if (showLine && line._model.tension !== 0) {
+			me.updateBezierControlPoints();
+		}
+
+		// Now pivot the point for animation
+		for (i = 0, ilen = points.length; i < ilen; ++i) {
+			points[i].pivot();
+		}
+	},
+
+	updateElement: function(point, index, reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var custom = point.custom || {};
+		var dataset = me.getDataset();
+		var datasetIndex = me.index;
+		var value = dataset.data[index];
+		var xScale = me._xScale;
+		var yScale = me._yScale;
+		var lineModel = meta.dataset._model;
+		var x, y;
+
+		var options = me._resolveDataElementOptions(point, index);
+
+		x = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);
+		y = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);
+
+		// Utility
+		point._xScale = xScale;
+		point._yScale = yScale;
+		point._options = options;
+		point._datasetIndex = datasetIndex;
+		point._index = index;
+
+		// Desired view properties
+		point._model = {
+			x: x,
+			y: y,
+			skip: custom.skip || isNaN(x) || isNaN(y),
+			// Appearance
+			radius: options.radius,
+			pointStyle: options.pointStyle,
+			rotation: options.rotation,
+			backgroundColor: options.backgroundColor,
+			borderColor: options.borderColor,
+			borderWidth: options.borderWidth,
+			tension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),
+			steppedLine: lineModel ? lineModel.steppedLine : false,
+			// Tooltip
+			hitRadius: options.hitRadius
+		};
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDatasetElementOptions: function(element) {
+		var me = this;
+		var config = me._config;
+		var custom = element.custom || {};
+		var options = me.chart.options;
+		var lineOptions = options.elements.line;
+		var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);
+
+		// The default behavior of lines is to break at null values, according
+		// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158
+		// This option gives lines the ability to span gaps
+		values.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);
+		values.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);
+		values.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);
+		values.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));
+
+		return values;
+	},
+
+	calculatePointY: function(value, index, datasetIndex) {
+		var me = this;
+		var chart = me.chart;
+		var yScale = me._yScale;
+		var sumPos = 0;
+		var sumNeg = 0;
+		var i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;
+
+		if (yScale.options.stacked) {
+			rightValue = +yScale.getRightValue(value);
+			metasets = chart._getSortedVisibleDatasetMetas();
+			ilen = metasets.length;
+
+			for (i = 0; i < ilen; ++i) {
+				dsMeta = metasets[i];
+				if (dsMeta.index === datasetIndex) {
+					break;
+				}
+
+				ds = chart.data.datasets[dsMeta.index];
+				if (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {
+					stackedRightValue = +yScale.getRightValue(ds.data[index]);
+					if (stackedRightValue < 0) {
+						sumNeg += stackedRightValue || 0;
+					} else {
+						sumPos += stackedRightValue || 0;
+					}
+				}
+			}
+
+			if (rightValue < 0) {
+				return yScale.getPixelForValue(sumNeg + rightValue);
+			}
+			return yScale.getPixelForValue(sumPos + rightValue);
+		}
+		return yScale.getPixelForValue(value);
+	},
+
+	updateBezierControlPoints: function() {
+		var me = this;
+		var chart = me.chart;
+		var meta = me.getMeta();
+		var lineModel = meta.dataset._model;
+		var area = chart.chartArea;
+		var points = meta.data || [];
+		var i, ilen, model, controlPoints;
+
+		// Only consider points that are drawn in case the spanGaps option is used
+		if (lineModel.spanGaps) {
+			points = points.filter(function(pt) {
+				return !pt._model.skip;
+			});
+		}
+
+		function capControlPoint(pt, min, max) {
+			return Math.max(Math.min(pt, max), min);
+		}
+
+		if (lineModel.cubicInterpolationMode === 'monotone') {
+			helpers$1.splineCurveMonotone(points);
+		} else {
+			for (i = 0, ilen = points.length; i < ilen; ++i) {
+				model = points[i]._model;
+				controlPoints = helpers$1.splineCurve(
+					helpers$1.previousItem(points, i)._model,
+					model,
+					helpers$1.nextItem(points, i)._model,
+					lineModel.tension
+				);
+				model.controlPointPreviousX = controlPoints.previous.x;
+				model.controlPointPreviousY = controlPoints.previous.y;
+				model.controlPointNextX = controlPoints.next.x;
+				model.controlPointNextY = controlPoints.next.y;
+			}
+		}
+
+		if (chart.options.elements.line.capBezierPoints) {
+			for (i = 0, ilen = points.length; i < ilen; ++i) {
+				model = points[i]._model;
+				if (isPointInArea(model, area)) {
+					if (i > 0 && isPointInArea(points[i - 1]._model, area)) {
+						model.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);
+						model.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);
+					}
+					if (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {
+						model.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);
+						model.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);
+					}
+				}
+			}
+		}
+	},
+
+	draw: function() {
+		var me = this;
+		var chart = me.chart;
+		var meta = me.getMeta();
+		var points = meta.data || [];
+		var area = chart.chartArea;
+		var canvas = chart.canvas;
+		var i = 0;
+		var ilen = points.length;
+		var clip;
+
+		if (me._showLine) {
+			clip = meta.dataset._model.clip;
+
+			helpers$1.canvas.clipArea(chart.ctx, {
+				left: clip.left === false ? 0 : area.left - clip.left,
+				right: clip.right === false ? canvas.width : area.right + clip.right,
+				top: clip.top === false ? 0 : area.top - clip.top,
+				bottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom
+			});
+
+			meta.dataset.draw();
+
+			helpers$1.canvas.unclipArea(chart.ctx);
+		}
+
+		// Draw the points
+		for (; i < ilen; ++i) {
+			points[i].draw(area);
+		}
+	},
+
+	/**
+	 * @protected
+	 */
+	setHoverStyle: function(point) {
+		var model = point._model;
+		var options = point._options;
+		var getHoverColor = helpers$1.getHoverColor;
+
+		point.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth,
+			radius: model.radius
+		};
+
+		model.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
+		model.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));
+		model.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);
+		model.radius = valueOrDefault$6(options.hoverRadius, options.radius);
+	},
+});
+
+var resolve$3 = helpers$1.options.resolve;
+
+core_defaults._set('polarArea', {
+	scale: {
+		type: 'radialLinear',
+		angleLines: {
+			display: false
+		},
+		gridLines: {
+			circular: true
+		},
+		pointLabels: {
+			display: false
+		},
+		ticks: {
+			beginAtZero: true
+		}
+	},
+
+	// Boolean - Whether to animate the rotation of the chart
+	animation: {
+		animateRotate: true,
+		animateScale: true
+	},
+
+	startAngle: -0.5 * Math.PI,
+	legendCallback: function(chart) {
+		var list = document.createElement('ul');
+		var data = chart.data;
+		var datasets = data.datasets;
+		var labels = data.labels;
+		var i, ilen, listItem, listItemSpan;
+
+		list.setAttribute('class', chart.id + '-legend');
+		if (datasets.length) {
+			for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {
+				listItem = list.appendChild(document.createElement('li'));
+				listItemSpan = listItem.appendChild(document.createElement('span'));
+				listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];
+				if (labels[i]) {
+					listItem.appendChild(document.createTextNode(labels[i]));
+				}
+			}
+		}
+
+		return list.outerHTML;
+	},
+	legend: {
+		labels: {
+			generateLabels: function(chart) {
+				var data = chart.data;
+				if (data.labels.length && data.datasets.length) {
+					return data.labels.map(function(label, i) {
+						var meta = chart.getDatasetMeta(0);
+						var style = meta.controller.getStyle(i);
+
+						return {
+							text: label,
+							fillStyle: style.backgroundColor,
+							strokeStyle: style.borderColor,
+							lineWidth: style.borderWidth,
+							hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,
+
+							// Extra data used for toggling the correct item
+							index: i
+						};
+					});
+				}
+				return [];
+			}
+		},
+
+		onClick: function(e, legendItem) {
+			var index = legendItem.index;
+			var chart = this.chart;
+			var i, ilen, meta;
+
+			for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
+				meta = chart.getDatasetMeta(i);
+				meta.data[index].hidden = !meta.data[index].hidden;
+			}
+
+			chart.update();
+		}
+	},
+
+	// Need to override these to give a nice default
+	tooltips: {
+		callbacks: {
+			title: function() {
+				return '';
+			},
+			label: function(item, data) {
+				return data.labels[item.index] + ': ' + item.yLabel;
+			}
+		}
+	}
+});
+
+var controller_polarArea = core_datasetController.extend({
+
+	dataElementType: elements.Arc,
+
+	linkScales: helpers$1.noop,
+
+	/**
+	 * @private
+	 */
+	_dataElementOptions: [
+		'backgroundColor',
+		'borderColor',
+		'borderWidth',
+		'borderAlign',
+		'hoverBackgroundColor',
+		'hoverBorderColor',
+		'hoverBorderWidth',
+	],
+
+	/**
+	 * @private
+	 */
+	_getIndexScaleId: function() {
+		return this.chart.scale.id;
+	},
 
-                            if (!('labels' in convert[model])) {
-                                throw new Error('missing channel labels property: ' + model);
-                            }
+	/**
+	 * @private
+	 */
+	_getValueScaleId: function() {
+		return this.chart.scale.id;
+	},
+
+	update: function(reset) {
+		var me = this;
+		var dataset = me.getDataset();
+		var meta = me.getMeta();
+		var start = me.chart.options.startAngle || 0;
+		var starts = me._starts = [];
+		var angles = me._angles = [];
+		var arcs = meta.data;
+		var i, ilen, angle;
+
+		me._updateRadius();
+
+		meta.count = me.countVisibleElements();
+
+		for (i = 0, ilen = dataset.data.length; i < ilen; i++) {
+			starts[i] = start;
+			angle = me._computeAngle(i);
+			angles[i] = angle;
+			start += angle;
+		}
+
+		for (i = 0, ilen = arcs.length; i < ilen; ++i) {
+			arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);
+			me.updateElement(arcs[i], i, reset);
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	_updateRadius: function() {
+		var me = this;
+		var chart = me.chart;
+		var chartArea = chart.chartArea;
+		var opts = chart.options;
+		var minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);
+
+		chart.outerRadius = Math.max(minSize / 2, 0);
+		chart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);
+		chart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();
+
+		me.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);
+		me.innerRadius = me.outerRadius - chart.radiusLength;
+	},
+
+	updateElement: function(arc, index, reset) {
+		var me = this;
+		var chart = me.chart;
+		var dataset = me.getDataset();
+		var opts = chart.options;
+		var animationOpts = opts.animation;
+		var scale = chart.scale;
+		var labels = chart.data.labels;
+
+		var centerX = scale.xCenter;
+		var centerY = scale.yCenter;
+
+		// var negHalfPI = -0.5 * Math.PI;
+		var datasetStartAngle = opts.startAngle;
+		var distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);
+		var startAngle = me._starts[index];
+		var endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);
+
+		var resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);
+		var options = arc._options || {};
+
+		helpers$1.extend(arc, {
+			// Utility
+			_datasetIndex: me.index,
+			_index: index,
+			_scale: scale,
+
+			// Desired view properties
+			_model: {
+				backgroundColor: options.backgroundColor,
+				borderColor: options.borderColor,
+				borderWidth: options.borderWidth,
+				borderAlign: options.borderAlign,
+				x: centerX,
+				y: centerY,
+				innerRadius: 0,
+				outerRadius: reset ? resetRadius : distance,
+				startAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,
+				endAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,
+				label: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])
+			}
+		});
+
+		arc.pivot();
+	},
+
+	countVisibleElements: function() {
+		var dataset = this.getDataset();
+		var meta = this.getMeta();
+		var count = 0;
+
+		helpers$1.each(meta.data, function(element, index) {
+			if (!isNaN(dataset.data[index]) && !element.hidden) {
+				count++;
+			}
+		});
+
+		return count;
+	},
+
+	/**
+	 * @protected
+	 */
+	setHoverStyle: function(arc) {
+		var model = arc._model;
+		var options = arc._options;
+		var getHoverColor = helpers$1.getHoverColor;
+		var valueOrDefault = helpers$1.valueOrDefault;
+
+		arc.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth,
+		};
+
+		model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
+		model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));
+		model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);
+	},
+
+	/**
+	 * @private
+	 */
+	_computeAngle: function(index) {
+		var me = this;
+		var count = this.getMeta().count;
+		var dataset = me.getDataset();
+		var meta = me.getMeta();
+
+		if (isNaN(dataset.data[index]) || meta.data[index].hidden) {
+			return 0;
+		}
+
+		// Scriptable options
+		var context = {
+			chart: me.chart,
+			dataIndex: index,
+			dataset: dataset,
+			datasetIndex: me.index
+		};
+
+		return resolve$3([
+			me.chart.options.elements.arc.angle,
+			(2 * Math.PI) / count
+		], context, index);
+	}
+});
+
+core_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));
+core_defaults._set('pie', {
+	cutoutPercentage: 0
+});
 
-                            if (convert[model].labels.length !== convert[model].channels) {
-                                throw new Error('channel and label counts mismatch: ' + model);
-                            }
+// Pie charts are Doughnut chart with different defaults
+var controller_pie = controller_doughnut;
 
-                            var channels = convert[model].channels;
-                            var labels = convert[model].labels;
-                            delete convert[model].channels;
-                            delete convert[model].labels;
-                            Object.defineProperty(convert[model], 'channels', {value: channels});
-                            Object.defineProperty(convert[model], 'labels', {value: labels});
-                        }
-                    }
+var valueOrDefault$7 = helpers$1.valueOrDefault;
 
-                    convert.rgb.hsl = function (rgb) {
-                        var r = rgb[0] / 255;
-                        var g = rgb[1] / 255;
-                        var b = rgb[2] / 255;
-                        var min = Math.min(r, g, b);
-                        var max = Math.max(r, g, b);
-                        var delta = max - min;
-                        var h;
-                        var s;
-                        var l;
-
-                        if (max === min) {
-                            h = 0;
-                        } else if (r === max) {
-                            h = (g - b) / delta;
-                        } else if (g === max) {
-                            h = 2 + (b - r) / delta;
-                        } else if (b === max) {
-                            h = 4 + (r - g) / delta;
-                        }
+core_defaults._set('radar', {
+	spanGaps: false,
+	scale: {
+		type: 'radialLinear'
+	},
+	elements: {
+		line: {
+			fill: 'start',
+			tension: 0 // no bezier in radar
+		}
+	}
+});
 
-                        h = Math.min(h * 60, 360);
+var controller_radar = core_datasetController.extend({
+	datasetElementType: elements.Line,
 
-                        if (h < 0) {
-                            h += 360;
-                        }
+	dataElementType: elements.Point,
 
-                        l = (min + max) / 2;
+	linkScales: helpers$1.noop,
 
-                        if (max === min) {
-                            s = 0;
-                        } else if (l <= 0.5) {
-                            s = delta / (max + min);
-                        } else {
-                            s = delta / (2 - max - min);
-                        }
+	/**
+	 * @private
+	 */
+	_datasetElementOptions: [
+		'backgroundColor',
+		'borderWidth',
+		'borderColor',
+		'borderCapStyle',
+		'borderDash',
+		'borderDashOffset',
+		'borderJoinStyle',
+		'fill'
+	],
+
+	/**
+	 * @private
+	 */
+	_dataElementOptions: {
+		backgroundColor: 'pointBackgroundColor',
+		borderColor: 'pointBorderColor',
+		borderWidth: 'pointBorderWidth',
+		hitRadius: 'pointHitRadius',
+		hoverBackgroundColor: 'pointHoverBackgroundColor',
+		hoverBorderColor: 'pointHoverBorderColor',
+		hoverBorderWidth: 'pointHoverBorderWidth',
+		hoverRadius: 'pointHoverRadius',
+		pointStyle: 'pointStyle',
+		radius: 'pointRadius',
+		rotation: 'pointRotation'
+	},
+
+	/**
+	 * @private
+	 */
+	_getIndexScaleId: function() {
+		return this.chart.scale.id;
+	},
 
-                        return [h, s * 100, l * 100];
-                    };
-
-                    convert.rgb.hsv = function (rgb) {
-                        var rdif;
-                        var gdif;
-                        var bdif;
-                        var h;
-                        var s;
-
-                        var r = rgb[0] / 255;
-                        var g = rgb[1] / 255;
-                        var b = rgb[2] / 255;
-                        var v = Math.max(r, g, b);
-                        var diff = v - Math.min(r, g, b);
-                        var diffc = function (c) {
-                            return (v - c) / 6 / diff + 1 / 2;
-                        };
-
-                        if (diff === 0) {
-                            h = s = 0;
-                        } else {
-                            s = diff / v;
-                            rdif = diffc(r);
-                            gdif = diffc(g);
-                            bdif = diffc(b);
-
-                            if (r === v) {
-                                h = bdif - gdif;
-                            } else if (g === v) {
-                                h = (1 / 3) + rdif - bdif;
-                            } else if (b === v) {
-                                h = (2 / 3) + gdif - rdif;
-                            }
-                            if (h < 0) {
-                                h += 1;
-                            } else if (h > 1) {
-                                h -= 1;
-                            }
-                        }
+	/**
+	 * @private
+	 */
+	_getValueScaleId: function() {
+		return this.chart.scale.id;
+	},
+
+	update: function(reset) {
+		var me = this;
+		var meta = me.getMeta();
+		var line = meta.dataset;
+		var points = meta.data || [];
+		var scale = me.chart.scale;
+		var config = me._config;
+		var i, ilen;
+
+		// Compatibility: If the properties are defined with only the old name, use those values
+		if (config.tension !== undefined && config.lineTension === undefined) {
+			config.lineTension = config.tension;
+		}
+
+		// Utility
+		line._scale = scale;
+		line._datasetIndex = me.index;
+		// Data
+		line._children = points;
+		line._loop = true;
+		// Model
+		line._model = me._resolveDatasetElementOptions(line);
+
+		line.pivot();
+
+		// Update Points
+		for (i = 0, ilen = points.length; i < ilen; ++i) {
+			me.updateElement(points[i], i, reset);
+		}
+
+		// Update bezier control points
+		me.updateBezierControlPoints();
+
+		// Now pivot the point for animation
+		for (i = 0, ilen = points.length; i < ilen; ++i) {
+			points[i].pivot();
+		}
+	},
+
+	updateElement: function(point, index, reset) {
+		var me = this;
+		var custom = point.custom || {};
+		var dataset = me.getDataset();
+		var scale = me.chart.scale;
+		var pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);
+		var options = me._resolveDataElementOptions(point, index);
+		var lineModel = me.getMeta().dataset._model;
+		var x = reset ? scale.xCenter : pointPosition.x;
+		var y = reset ? scale.yCenter : pointPosition.y;
+
+		// Utility
+		point._scale = scale;
+		point._options = options;
+		point._datasetIndex = me.index;
+		point._index = index;
+
+		// Desired view properties
+		point._model = {
+			x: x, // value not used in dataset scale, but we want a consistent API between scales
+			y: y,
+			skip: custom.skip || isNaN(x) || isNaN(y),
+			// Appearance
+			radius: options.radius,
+			pointStyle: options.pointStyle,
+			rotation: options.rotation,
+			backgroundColor: options.backgroundColor,
+			borderColor: options.borderColor,
+			borderWidth: options.borderWidth,
+			tension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),
+
+			// Tooltip
+			hitRadius: options.hitRadius
+		};
+	},
+
+	/**
+	 * @private
+	 */
+	_resolveDatasetElementOptions: function() {
+		var me = this;
+		var config = me._config;
+		var options = me.chart.options;
+		var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);
+
+		values.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);
+		values.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);
+
+		return values;
+	},
+
+	updateBezierControlPoints: function() {
+		var me = this;
+		var meta = me.getMeta();
+		var area = me.chart.chartArea;
+		var points = meta.data || [];
+		var i, ilen, model, controlPoints;
+
+		// Only consider points that are drawn in case the spanGaps option is used
+		if (meta.dataset._model.spanGaps) {
+			points = points.filter(function(pt) {
+				return !pt._model.skip;
+			});
+		}
+
+		function capControlPoint(pt, min, max) {
+			return Math.max(Math.min(pt, max), min);
+		}
+
+		for (i = 0, ilen = points.length; i < ilen; ++i) {
+			model = points[i]._model;
+			controlPoints = helpers$1.splineCurve(
+				helpers$1.previousItem(points, i, true)._model,
+				model,
+				helpers$1.nextItem(points, i, true)._model,
+				model.tension
+			);
+
+			// Prevent the bezier going outside of the bounds of the graph
+			model.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);
+			model.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);
+			model.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);
+			model.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);
+		}
+	},
+
+	setHoverStyle: function(point) {
+		var model = point._model;
+		var options = point._options;
+		var getHoverColor = helpers$1.getHoverColor;
+
+		point.$previousStyle = {
+			backgroundColor: model.backgroundColor,
+			borderColor: model.borderColor,
+			borderWidth: model.borderWidth,
+			radius: model.radius
+		};
+
+		model.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
+		model.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));
+		model.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);
+		model.radius = valueOrDefault$7(options.hoverRadius, options.radius);
+	}
+});
+
+core_defaults._set('scatter', {
+	hover: {
+		mode: 'single'
+	},
+
+	scales: {
+		xAxes: [{
+			id: 'x-axis-1',    // need an ID so datasets can reference the scale
+			type: 'linear',    // scatter should not use a category axis
+			position: 'bottom'
+		}],
+		yAxes: [{
+			id: 'y-axis-1',
+			type: 'linear',
+			position: 'left'
+		}]
+	},
+
+	tooltips: {
+		callbacks: {
+			title: function() {
+				return '';     // doesn't make sense for scatter since data are formatted as a point
+			},
+			label: function(item) {
+				return '(' + item.xLabel + ', ' + item.yLabel + ')';
+			}
+		}
+	}
+});
+
+core_defaults._set('global', {
+	datasets: {
+		scatter: {
+			showLine: false
+		}
+	}
+});
 
-                        return [
-                            h * 360,
-                            s * 100,
-                            v * 100
-                        ];
-                    };
-
-                    convert.rgb.hwb = function (rgb) {
-                        var r = rgb[0];
-                        var g = rgb[1];
-                        var b = rgb[2];
-                        var h = convert.rgb.hsl(rgb)[0];
-                        var w = 1 / 255 * Math.min(r, Math.min(g, b));
-
-                        b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
-
-                        return [h, w * 100, b * 100];
-                    };
-
-                    convert.rgb.cmyk = function (rgb) {
-                        var r = rgb[0] / 255;
-                        var g = rgb[1] / 255;
-                        var b = rgb[2] / 255;
-                        var c;
-                        var m;
-                        var y;
-                        var k;
-
-                        k = Math.min(1 - r, 1 - g, 1 - b);
-                        c = (1 - r - k) / (1 - k) || 0;
-                        m = (1 - g - k) / (1 - k) || 0;
-                        y = (1 - b - k) / (1 - k) || 0;
-
-                        return [c * 100, m * 100, y * 100, k * 100];
-                    };
-
-                    /**
-                     * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
-                     * */
-                    function comparativeDistance(x, y) {
-                        return (
-                            Math.pow(x[0] - y[0], 2) +
-                            Math.pow(x[1] - y[1], 2) +
-                            Math.pow(x[2] - y[2], 2)
-                        );
-                    }
+// Scatter charts use line controllers
+var controller_scatter = controller_line;
 
-                    convert.rgb.keyword = function (rgb) {
-                        var reversed = reverseKeywords[rgb];
-                        if (reversed) {
-                            return reversed;
-                        }
+// NOTE export a map in which the key represents the controller type, not
+// the class, and so must be CamelCase in order to be correctly retrieved
+// by the controller in core.controller.js (`controllers[meta.type]`).
 
-                        var currentClosestDistance = Infinity;
-                        var currentClosestKeyword;
+var controllers = {
+	bar: controller_bar,
+	bubble: controller_bubble,
+	doughnut: controller_doughnut,
+	horizontalBar: controller_horizontalBar,
+	line: controller_line,
+	polarArea: controller_polarArea,
+	pie: controller_pie,
+	radar: controller_radar,
+	scatter: controller_scatter
+};
+
+/**
+ * Helper function to get relative position for an event
+ * @param {Event|IEvent} event - The event to get the position for
+ * @param {Chart} chart - The chart
+ * @returns {object} the event position
+ */
+function getRelativePosition(e, chart) {
+	if (e.native) {
+		return {
+			x: e.x,
+			y: e.y
+		};
+	}
+
+	return helpers$1.getRelativePosition(e, chart);
+}
+
+/**
+ * Helper function to traverse all of the visible elements in the chart
+ * @param {Chart} chart - the chart
+ * @param {function} handler - the callback to execute for each visible item
+ */
+function parseVisibleItems(chart, handler) {
+	var metasets = chart._getSortedVisibleDatasetMetas();
+	var metadata, i, j, ilen, jlen, element;
+
+	for (i = 0, ilen = metasets.length; i < ilen; ++i) {
+		metadata = metasets[i].data;
+		for (j = 0, jlen = metadata.length; j < jlen; ++j) {
+			element = metadata[j];
+			if (!element._view.skip) {
+				handler(element);
+			}
+		}
+	}
+}
+
+/**
+ * Helper function to get the items that intersect the event position
+ * @param {ChartElement[]} items - elements to filter
+ * @param {object} position - the point to be nearest to
+ * @return {ChartElement[]} the nearest items
+ */
+function getIntersectItems(chart, position) {
+	var elements = [];
+
+	parseVisibleItems(chart, function(element) {
+		if (element.inRange(position.x, position.y)) {
+			elements.push(element);
+		}
+	});
+
+	return elements;
+}
+
+/**
+ * Helper function to get the items nearest to the event position considering all visible items in teh chart
+ * @param {Chart} chart - the chart to look at elements from
+ * @param {object} position - the point to be nearest to
+ * @param {boolean} intersect - if true, only consider items that intersect the position
+ * @param {function} distanceMetric - function to provide the distance between points
+ * @return {ChartElement[]} the nearest items
+ */
+function getNearestItems(chart, position, intersect, distanceMetric) {
+	var minDistance = Number.POSITIVE_INFINITY;
+	var nearestItems = [];
+
+	parseVisibleItems(chart, function(element) {
+		if (intersect && !element.inRange(position.x, position.y)) {
+			return;
+		}
+
+		var center = element.getCenterPoint();
+		var distance = distanceMetric(position, center);
+		if (distance < minDistance) {
+			nearestItems = [element];
+			minDistance = distance;
+		} else if (distance === minDistance) {
+			// Can have multiple items at the same distance in which case we sort by size
+			nearestItems.push(element);
+		}
+	});
+
+	return nearestItems;
+}
+
+/**
+ * Get a distance metric function for two points based on the
+ * axis mode setting
+ * @param {string} axis - the axis mode. x|y|xy
+ */
+function getDistanceMetricForAxis(axis) {
+	var useX = axis.indexOf('x') !== -1;
+	var useY = axis.indexOf('y') !== -1;
+
+	return function(pt1, pt2) {
+		var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;
+		var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;
+		return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));
+	};
+}
+
+function indexMode(chart, e, options) {
+	var position = getRelativePosition(e, chart);
+	// Default axis for index mode is 'x' to match old behaviour
+	options.axis = options.axis || 'x';
+	var distanceMetric = getDistanceMetricForAxis(options.axis);
+	var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);
+	var elements = [];
+
+	if (!items.length) {
+		return [];
+	}
+
+	chart._getSortedVisibleDatasetMetas().forEach(function(meta) {
+		var element = meta.data[items[0]._index];
+
+		// don't count items that are skipped (null data)
+		if (element && !element._view.skip) {
+			elements.push(element);
+		}
+	});
+
+	return elements;
+}
+
+/**
+ * @interface IInteractionOptions
+ */
+/**
+ * If true, only consider items that intersect the point
+ * @name IInterfaceOptions#boolean
+ * @type Boolean
+ */
 
-                        for (var keyword in colorName) {
-                            if (colorName.hasOwnProperty(keyword)) {
-                                var value = colorName[keyword];
+/**
+ * Contains interaction related functions
+ * @namespace Chart.Interaction
+ */
+var core_interaction = {
+	// Helper function for different modes
+	modes: {
+		single: function(chart, e) {
+			var position = getRelativePosition(e, chart);
+			var elements = [];
+
+			parseVisibleItems(chart, function(element) {
+				if (element.inRange(position.x, position.y)) {
+					elements.push(element);
+					return elements;
+				}
+			});
+
+			return elements.slice(0, 1);
+		},
+
+		/**
+		 * @function Chart.Interaction.modes.label
+		 * @deprecated since version 2.4.0
+		 * @todo remove at version 3
+		 * @private
+		 */
+		label: indexMode,
+
+		/**
+		 * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something
+		 * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item
+		 * @function Chart.Interaction.modes.index
+		 * @since v2.4.0
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @param {IInteractionOptions} options - options to use during interaction
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		index: indexMode,
+
+		/**
+		 * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something
+		 * If the options.intersect is false, we find the nearest item and return the items in that dataset
+		 * @function Chart.Interaction.modes.dataset
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @param {IInteractionOptions} options - options to use during interaction
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		dataset: function(chart, e, options) {
+			var position = getRelativePosition(e, chart);
+			options.axis = options.axis || 'xy';
+			var distanceMetric = getDistanceMetricForAxis(options.axis);
+			var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);
+
+			if (items.length > 0) {
+				items = chart.getDatasetMeta(items[0]._datasetIndex).data;
+			}
+
+			return items;
+		},
+
+		/**
+		 * @function Chart.Interaction.modes.x-axis
+		 * @deprecated since version 2.4.0. Use index mode and intersect == true
+		 * @todo remove at version 3
+		 * @private
+		 */
+		'x-axis': function(chart, e) {
+			return indexMode(chart, e, {intersect: false});
+		},
+
+		/**
+		 * Point mode returns all elements that hit test based on the event position
+		 * of the event
+		 * @function Chart.Interaction.modes.intersect
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		point: function(chart, e) {
+			var position = getRelativePosition(e, chart);
+			return getIntersectItems(chart, position);
+		},
+
+		/**
+		 * nearest mode returns the element closest to the point
+		 * @function Chart.Interaction.modes.intersect
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @param {IInteractionOptions} options - options to use
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		nearest: function(chart, e, options) {
+			var position = getRelativePosition(e, chart);
+			options.axis = options.axis || 'xy';
+			var distanceMetric = getDistanceMetricForAxis(options.axis);
+			return getNearestItems(chart, position, options.intersect, distanceMetric);
+		},
+
+		/**
+		 * x mode returns the elements that hit-test at the current x coordinate
+		 * @function Chart.Interaction.modes.x
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @param {IInteractionOptions} options - options to use
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		x: function(chart, e, options) {
+			var position = getRelativePosition(e, chart);
+			var items = [];
+			var intersectsItem = false;
+
+			parseVisibleItems(chart, function(element) {
+				if (element.inXRange(position.x)) {
+					items.push(element);
+				}
+
+				if (element.inRange(position.x, position.y)) {
+					intersectsItem = true;
+				}
+			});
+
+			// If we want to trigger on an intersect and we don't have any items
+			// that intersect the position, return nothing
+			if (options.intersect && !intersectsItem) {
+				items = [];
+			}
+			return items;
+		},
+
+		/**
+		 * y mode returns the elements that hit-test at the current y coordinate
+		 * @function Chart.Interaction.modes.y
+		 * @param {Chart} chart - the chart we are returning items from
+		 * @param {Event} e - the event we are find things at
+		 * @param {IInteractionOptions} options - options to use
+		 * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
+		 */
+		y: function(chart, e, options) {
+			var position = getRelativePosition(e, chart);
+			var items = [];
+			var intersectsItem = false;
+
+			parseVisibleItems(chart, function(element) {
+				if (element.inYRange(position.y)) {
+					items.push(element);
+				}
+
+				if (element.inRange(position.x, position.y)) {
+					intersectsItem = true;
+				}
+			});
+
+			// If we want to trigger on an intersect and we don't have any items
+			// that intersect the position, return nothing
+			if (options.intersect && !intersectsItem) {
+				items = [];
+			}
+			return items;
+		}
+	}
+};
+
+var extend = helpers$1.extend;
+
+function filterByPosition(array, position) {
+	return helpers$1.where(array, function(v) {
+		return v.pos === position;
+	});
+}
+
+function sortByWeight(array, reverse) {
+	return array.sort(function(a, b) {
+		var v0 = reverse ? b : a;
+		var v1 = reverse ? a : b;
+		return v0.weight === v1.weight ?
+			v0.index - v1.index :
+			v0.weight - v1.weight;
+	});
+}
+
+function wrapBoxes(boxes) {
+	var layoutBoxes = [];
+	var i, ilen, box;
+
+	for (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {
+		box = boxes[i];
+		layoutBoxes.push({
+			index: i,
+			box: box,
+			pos: box.position,
+			horizontal: box.isHorizontal(),
+			weight: box.weight
+		});
+	}
+	return layoutBoxes;
+}
+
+function setLayoutDims(layouts, params) {
+	var i, ilen, layout;
+	for (i = 0, ilen = layouts.length; i < ilen; ++i) {
+		layout = layouts[i];
+		// store width used instead of chartArea.w in fitBoxes
+		layout.width = layout.horizontal
+			? layout.box.fullWidth && params.availableWidth
+			: params.vBoxMaxWidth;
+		// store height used instead of chartArea.h in fitBoxes
+		layout.height = layout.horizontal && params.hBoxMaxHeight;
+	}
+}
+
+function buildLayoutBoxes(boxes) {
+	var layoutBoxes = wrapBoxes(boxes);
+	var left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);
+	var right = sortByWeight(filterByPosition(layoutBoxes, 'right'));
+	var top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);
+	var bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));
+
+	return {
+		leftAndTop: left.concat(top),
+		rightAndBottom: right.concat(bottom),
+		chartArea: filterByPosition(layoutBoxes, 'chartArea'),
+		vertical: left.concat(right),
+		horizontal: top.concat(bottom)
+	};
+}
+
+function getCombinedMax(maxPadding, chartArea, a, b) {
+	return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);
+}
+
+function updateDims(chartArea, params, layout) {
+	var box = layout.box;
+	var maxPadding = chartArea.maxPadding;
+	var newWidth, newHeight;
+
+	if (layout.size) {
+		// this layout was already counted for, lets first reduce old size
+		chartArea[layout.pos] -= layout.size;
+	}
+	layout.size = layout.horizontal ? box.height : box.width;
+	chartArea[layout.pos] += layout.size;
+
+	if (box.getPadding) {
+		var boxPadding = box.getPadding();
+		maxPadding.top = Math.max(maxPadding.top, boxPadding.top);
+		maxPadding.left = Math.max(maxPadding.left, boxPadding.left);
+		maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);
+		maxPadding.right = Math.max(maxPadding.right, boxPadding.right);
+	}
+
+	newWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');
+	newHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');
+
+	if (newWidth !== chartArea.w || newHeight !== chartArea.h) {
+		chartArea.w = newWidth;
+		chartArea.h = newHeight;
+
+		// return true if chart area changed in layout's direction
+		return layout.horizontal ? newWidth !== chartArea.w : newHeight !== chartArea.h;
+	}
+}
+
+function handleMaxPadding(chartArea) {
+	var maxPadding = chartArea.maxPadding;
+
+	function updatePos(pos) {
+		var change = Math.max(maxPadding[pos] - chartArea[pos], 0);
+		chartArea[pos] += change;
+		return change;
+	}
+	chartArea.y += updatePos('top');
+	chartArea.x += updatePos('left');
+	updatePos('right');
+	updatePos('bottom');
+}
+
+function getMargins(horizontal, chartArea) {
+	var maxPadding = chartArea.maxPadding;
+
+	function marginForPositions(positions) {
+		var margin = {left: 0, top: 0, right: 0, bottom: 0};
+		positions.forEach(function(pos) {
+			margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);
+		});
+		return margin;
+	}
+
+	return horizontal
+		? marginForPositions(['left', 'right'])
+		: marginForPositions(['top', 'bottom']);
+}
+
+function fitBoxes(boxes, chartArea, params) {
+	var refitBoxes = [];
+	var i, ilen, layout, box, refit, changed;
+
+	for (i = 0, ilen = boxes.length; i < ilen; ++i) {
+		layout = boxes[i];
+		box = layout.box;
+
+		box.update(
+			layout.width || chartArea.w,
+			layout.height || chartArea.h,
+			getMargins(layout.horizontal, chartArea)
+		);
+		if (updateDims(chartArea, params, layout)) {
+			changed = true;
+			if (refitBoxes.length) {
+				// Dimensions changed and there were non full width boxes before this
+				// -> we have to refit those
+				refit = true;
+			}
+		}
+		if (!box.fullWidth) { // fullWidth boxes don't need to be re-fitted in any case
+			refitBoxes.push(layout);
+		}
+	}
+
+	return refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;
+}
+
+function placeBoxes(boxes, chartArea, params) {
+	var userPadding = params.padding;
+	var x = chartArea.x;
+	var y = chartArea.y;
+	var i, ilen, layout, box;
+
+	for (i = 0, ilen = boxes.length; i < ilen; ++i) {
+		layout = boxes[i];
+		box = layout.box;
+		if (layout.horizontal) {
+			box.left = box.fullWidth ? userPadding.left : chartArea.left;
+			box.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;
+			box.top = y;
+			box.bottom = y + box.height;
+			box.width = box.right - box.left;
+			y = box.bottom;
+		} else {
+			box.left = x;
+			box.right = x + box.width;
+			box.top = chartArea.top;
+			box.bottom = chartArea.top + chartArea.h;
+			box.height = box.bottom - box.top;
+			x = box.right;
+		}
+	}
+
+	chartArea.x = x;
+	chartArea.y = y;
+}
+
+core_defaults._set('global', {
+	layout: {
+		padding: {
+			top: 0,
+			right: 0,
+			bottom: 0,
+			left: 0
+		}
+	}
+});
+
+/**
+ * @interface ILayoutItem
+ * @prop {string} position - The position of the item in the chart layout. Possible values are
+ * 'left', 'top', 'right', 'bottom', and 'chartArea'
+ * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area
+ * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down
+ * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)
+ * @prop {function} update - Takes two parameters: width and height. Returns size of item
+ * @prop {function} getPadding -  Returns an object with padding on the edges
+ * @prop {number} width - Width of item. Must be valid after update()
+ * @prop {number} height - Height of item. Must be valid after update()
+ * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update
+ * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update
+ * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update
+ * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update
+ */
 
-                                // Compute comparative distance
-                                var distance = comparativeDistance(rgb, value);
+// The layout service is very self explanatory.  It's responsible for the layout within a chart.
+// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need
+// It is this service's responsibility of carrying out that layout.
+var core_layouts = {
+	defaults: {},
+
+	/**
+	 * Register a box to a chart.
+	 * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.
+	 * @param {Chart} chart - the chart to use
+	 * @param {ILayoutItem} item - the item to add to be layed out
+	 */
+	addBox: function(chart, item) {
+		if (!chart.boxes) {
+			chart.boxes = [];
+		}
+
+		// initialize item with default values
+		item.fullWidth = item.fullWidth || false;
+		item.position = item.position || 'top';
+		item.weight = item.weight || 0;
+		item._layers = item._layers || function() {
+			return [{
+				z: 0,
+				draw: function() {
+					item.draw.apply(item, arguments);
+				}
+			}];
+		};
+
+		chart.boxes.push(item);
+	},
+
+	/**
+	 * Remove a layoutItem from a chart
+	 * @param {Chart} chart - the chart to remove the box from
+	 * @param {ILayoutItem} layoutItem - the item to remove from the layout
+	 */
+	removeBox: function(chart, layoutItem) {
+		var index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;
+		if (index !== -1) {
+			chart.boxes.splice(index, 1);
+		}
+	},
+
+	/**
+	 * Sets (or updates) options on the given `item`.
+	 * @param {Chart} chart - the chart in which the item lives (or will be added to)
+	 * @param {ILayoutItem} item - the item to configure with the given options
+	 * @param {object} options - the new item options.
+	 */
+	configure: function(chart, item, options) {
+		var props = ['fullWidth', 'position', 'weight'];
+		var ilen = props.length;
+		var i = 0;
+		var prop;
+
+		for (; i < ilen; ++i) {
+			prop = props[i];
+			if (options.hasOwnProperty(prop)) {
+				item[prop] = options[prop];
+			}
+		}
+	},
+
+	/**
+	 * Fits boxes of the given chart into the given size by having each box measure itself
+	 * then running a fitting algorithm
+	 * @param {Chart} chart - the chart
+	 * @param {number} width - the width to fit into
+	 * @param {number} height - the height to fit into
+	 */
+	update: function(chart, width, height) {
+		if (!chart) {
+			return;
+		}
+
+		var layoutOptions = chart.options.layout || {};
+		var padding = helpers$1.options.toPadding(layoutOptions.padding);
+
+		var availableWidth = width - padding.width;
+		var availableHeight = height - padding.height;
+		var boxes = buildLayoutBoxes(chart.boxes);
+		var verticalBoxes = boxes.vertical;
+		var horizontalBoxes = boxes.horizontal;
+
+		// Essentially we now have any number of boxes on each of the 4 sides.
+		// Our canvas looks like the following.
+		// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and
+		// B1 is the bottom axis
+		// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays
+		// These locations are single-box locations only, when trying to register a chartArea location that is already taken,
+		// an error will be thrown.
+		//
+		// |----------------------------------------------------|
+		// |                  T1 (Full Width)                   |
+		// |----------------------------------------------------|
+		// |    |    |                 T2                  |    |
+		// |    |----|-------------------------------------|----|
+		// |    |    | C1 |                           | C2 |    |
+		// |    |    |----|                           |----|    |
+		// |    |    |                                     |    |
+		// | L1 | L2 |           ChartArea (C0)            | R1 |
+		// |    |    |                                     |    |
+		// |    |    |----|                           |----|    |
+		// |    |    | C3 |                           | C4 |    |
+		// |    |----|-------------------------------------|----|
+		// |    |    |                 B1                  |    |
+		// |----------------------------------------------------|
+		// |                  B2 (Full Width)                   |
+		// |----------------------------------------------------|
+		//
+
+		var params = Object.freeze({
+			outerWidth: width,
+			outerHeight: height,
+			padding: padding,
+			availableWidth: availableWidth,
+			vBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,
+			hBoxMaxHeight: availableHeight / 2
+		});
+		var chartArea = extend({
+			maxPadding: extend({}, padding),
+			w: availableWidth,
+			h: availableHeight,
+			x: padding.left,
+			y: padding.top
+		}, padding);
+
+		setLayoutDims(verticalBoxes.concat(horizontalBoxes), params);
+
+		// First fit vertical boxes
+		fitBoxes(verticalBoxes, chartArea, params);
+
+		// Then fit horizontal boxes
+		if (fitBoxes(horizontalBoxes, chartArea, params)) {
+			// if the area changed, re-fit vertical boxes
+			fitBoxes(verticalBoxes, chartArea, params);
+		}
+
+		handleMaxPadding(chartArea);
+
+		// Finally place the boxes to correct coordinates
+		placeBoxes(boxes.leftAndTop, chartArea, params);
+
+		// Move to opposite side of chart
+		chartArea.x += chartArea.w;
+		chartArea.y += chartArea.h;
+
+		placeBoxes(boxes.rightAndBottom, chartArea, params);
+
+		chart.chartArea = {
+			left: chartArea.left,
+			top: chartArea.top,
+			right: chartArea.left + chartArea.w,
+			bottom: chartArea.top + chartArea.h
+		};
+
+		// Finally update boxes in chartArea (radial scale for example)
+		helpers$1.each(boxes.chartArea, function(layout) {
+			var box = layout.box;
+			extend(box, chart.chartArea);
+			box.update(chartArea.w, chartArea.h);
+		});
+	}
+};
+
+/**
+ * Platform fallback implementation (minimal).
+ * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939
+ */
 
-                                // Check if its less, if so set as closest
-                                if (distance < currentClosestDistance) {
-                                    currentClosestDistance = distance;
-                                    currentClosestKeyword = keyword;
-                                }
-                            }
-                        }
+var platform_basic = {
+	acquireContext: function(item) {
+		if (item && item.canvas) {
+			// Support for any object associated to a canvas (including a context2d)
+			item = item.canvas;
+		}
+
+		return item && item.getContext('2d') || null;
+	}
+};
+
+var platform_dom = "/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n";
+
+var platform_dom$1 = /*#__PURE__*/Object.freeze({
+__proto__: null,
+'default': platform_dom
+});
+
+var stylesheet = getCjsExportFromNamespace(platform_dom$1);
+
+var EXPANDO_KEY = '$chartjs';
+var CSS_PREFIX = 'chartjs-';
+var CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';
+var CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';
+var CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';
+var ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];
+
+/**
+ * DOM event types -> Chart.js event types.
+ * Note: only events with different types are mapped.
+ * @see https://developer.mozilla.org/en-US/docs/Web/Events
+ */
+var EVENT_TYPES = {
+	touchstart: 'mousedown',
+	touchmove: 'mousemove',
+	touchend: 'mouseup',
+	pointerenter: 'mouseenter',
+	pointerdown: 'mousedown',
+	pointermove: 'mousemove',
+	pointerup: 'mouseup',
+	pointerleave: 'mouseout',
+	pointerout: 'mouseout'
+};
+
+/**
+ * The "used" size is the final value of a dimension property after all calculations have
+ * been performed. This method uses the computed style of `element` but returns undefined
+ * if the computed style is not expressed in pixels. That can happen in some cases where
+ * `element` has a size relative to its parent and this last one is not yet displayed,
+ * for example because of `display: none` on a parent node.
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value
+ * @returns {number} Size in pixels or undefined if unknown.
+ */
+function readUsedSize(element, property) {
+	var value = helpers$1.getStyle(element, property);
+	var matches = value && value.match(/^(\d+)(\.\d+)?px$/);
+	return matches ? Number(matches[1]) : undefined;
+}
+
+/**
+ * Initializes the canvas style and render size without modifying the canvas display size,
+ * since responsiveness is handled by the controller.resize() method. The config is used
+ * to determine the aspect ratio to apply in case no explicit height has been specified.
+ */
+function initCanvas(canvas, config) {
+	var style = canvas.style;
+
+	// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it
+	// returns null or '' if no explicit value has been set to the canvas attribute.
+	var renderHeight = canvas.getAttribute('height');
+	var renderWidth = canvas.getAttribute('width');
+
+	// Chart.js modifies some canvas values that we want to restore on destroy
+	canvas[EXPANDO_KEY] = {
+		initial: {
+			height: renderHeight,
+			width: renderWidth,
+			style: {
+				display: style.display,
+				height: style.height,
+				width: style.width
+			}
+		}
+	};
+
+	// Force canvas to display as block to avoid extra space caused by inline
+	// elements, which would interfere with the responsive resize process.
+	// https://github.com/chartjs/Chart.js/issues/2538
+	style.display = style.display || 'block';
+
+	if (renderWidth === null || renderWidth === '') {
+		var displayWidth = readUsedSize(canvas, 'width');
+		if (displayWidth !== undefined) {
+			canvas.width = displayWidth;
+		}
+	}
+
+	if (renderHeight === null || renderHeight === '') {
+		if (canvas.style.height === '') {
+			// If no explicit render height and style height, let's apply the aspect ratio,
+			// which one can be specified by the user but also by charts as default option
+			// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.
+			canvas.height = canvas.width / (config.options.aspectRatio || 2);
+		} else {
+			var displayHeight = readUsedSize(canvas, 'height');
+			if (displayWidth !== undefined) {
+				canvas.height = displayHeight;
+			}
+		}
+	}
+
+	return canvas;
+}
+
+/**
+ * Detects support for options object argument in addEventListener.
+ * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
+ * @private
+ */
+var supportsEventListenerOptions = (function() {
+	var supports = false;
+	try {
+		var options = Object.defineProperty({}, 'passive', {
+			// eslint-disable-next-line getter-return
+			get: function() {
+				supports = true;
+			}
+		});
+		window.addEventListener('e', null, options);
+	} catch (e) {
+		// continue regardless of error
+	}
+	return supports;
+}());
 
-                        return currentClosestKeyword;
-                    };
-
-                    convert.keyword.rgb = function (keyword) {
-                        return colorName[keyword];
-                    };
-
-                    convert.rgb.xyz = function (rgb) {
-                        var r = rgb[0] / 255;
-                        var g = rgb[1] / 255;
-                        var b = rgb[2] / 255;
-
-                        // assume sRGB
-                        r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
-                        g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
-                        b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
-
-                        var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
-                        var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
-                        var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
-
-                        return [x * 100, y * 100, z * 100];
-                    };
-
-                    convert.rgb.lab = function (rgb) {
-                        var xyz = convert.rgb.xyz(rgb);
-                        var x = xyz[0];
-                        var y = xyz[1];
-                        var z = xyz[2];
-                        var l;
-                        var a;
-                        var b;
-
-                        x /= 95.047;
-                        y /= 100;
-                        z /= 108.883;
-
-                        x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
-                        y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
-                        z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
-
-                        l = (116 * y) - 16;
-                        a = 500 * (x - y);
-                        b = 200 * (y - z);
-
-                        return [l, a, b];
-                    };
-
-                    convert.hsl.rgb = function (hsl) {
-                        var h = hsl[0] / 360;
-                        var s = hsl[1] / 100;
-                        var l = hsl[2] / 100;
-                        var t1;
-                        var t2;
-                        var t3;
-                        var rgb;
-                        var val;
-
-                        if (s === 0) {
-                            val = l * 255;
-                            return [val, val, val];
-                        }
+// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.
+// https://github.com/chartjs/Chart.js/issues/4287
+var eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;
+
+function addListener(node, type, listener) {
+	node.addEventListener(type, listener, eventListenerOptions);
+}
+
+function removeListener(node, type, listener) {
+	node.removeEventListener(type, listener, eventListenerOptions);
+}
+
+function createEvent(type, chart, x, y, nativeEvent) {
+	return {
+		type: type,
+		chart: chart,
+		native: nativeEvent || null,
+		x: x !== undefined ? x : null,
+		y: y !== undefined ? y : null,
+	};
+}
+
+function fromNativeEvent(event, chart) {
+	var type = EVENT_TYPES[event.type] || event.type;
+	var pos = helpers$1.getRelativePosition(event, chart);
+	return createEvent(type, chart, pos.x, pos.y, event);
+}
+
+function throttled(fn, thisArg) {
+	var ticking = false;
+	var args = [];
+
+	return function() {
+		args = Array.prototype.slice.call(arguments);
+		thisArg = thisArg || this;
+
+		if (!ticking) {
+			ticking = true;
+			helpers$1.requestAnimFrame.call(window, function() {
+				ticking = false;
+				fn.apply(thisArg, args);
+			});
+		}
+	};
+}
+
+function createDiv(cls) {
+	var el = document.createElement('div');
+	el.className = cls || '';
+	return el;
+}
 
-                        if (l < 0.5) {
-                            t2 = l * (1 + s);
-                        } else {
-                            t2 = l + s - l * s;
-                        }
+// Implementation based on https://github.com/marcj/css-element-queries
+function createResizer(handler) {
+	var maxSize = 1000000;
+
+	// NOTE(SB) Don't use innerHTML because it could be considered unsafe.
+	// https://github.com/chartjs/Chart.js/issues/5902
+	var resizer = createDiv(CSS_SIZE_MONITOR);
+	var expand = createDiv(CSS_SIZE_MONITOR + '-expand');
+	var shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');
+
+	expand.appendChild(createDiv());
+	shrink.appendChild(createDiv());
+
+	resizer.appendChild(expand);
+	resizer.appendChild(shrink);
+	resizer._reset = function() {
+		expand.scrollLeft = maxSize;
+		expand.scrollTop = maxSize;
+		shrink.scrollLeft = maxSize;
+		shrink.scrollTop = maxSize;
+	};
+
+	var onScroll = function() {
+		resizer._reset();
+		handler();
+	};
+
+	addListener(expand, 'scroll', onScroll.bind(expand, 'expand'));
+	addListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));
+
+	return resizer;
+}
 
-                        t1 = 2 * l - t2;
+// https://davidwalsh.name/detect-node-insertion
+function watchForRender(node, handler) {
+	var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});
+	var proxy = expando.renderProxy = function(e) {
+		if (e.animationName === CSS_RENDER_ANIMATION) {
+			handler();
+		}
+	};
+
+	helpers$1.each(ANIMATION_START_EVENTS, function(type) {
+		addListener(node, type, proxy);
+	});
+
+	// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class
+	// is removed then added back immediately (same animation frame?). Accessing the
+	// `offsetParent` property will force a reflow and re-evaluate the CSS animation.
+	// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics
+	// https://github.com/chartjs/Chart.js/issues/4737
+	expando.reflow = !!node.offsetParent;
+
+	node.classList.add(CSS_RENDER_MONITOR);
+}
+
+function unwatchForRender(node) {
+	var expando = node[EXPANDO_KEY] || {};
+	var proxy = expando.renderProxy;
+
+	if (proxy) {
+		helpers$1.each(ANIMATION_START_EVENTS, function(type) {
+			removeListener(node, type, proxy);
+		});
+
+		delete expando.renderProxy;
+	}
+
+	node.classList.remove(CSS_RENDER_MONITOR);
+}
+
+function addResizeListener(node, listener, chart) {
+	var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});
+
+	// Let's keep track of this added resizer and thus avoid DOM query when removing it.
+	var resizer = expando.resizer = createResizer(throttled(function() {
+		if (expando.resizer) {
+			var container = chart.options.maintainAspectRatio && node.parentNode;
+			var w = container ? container.clientWidth : 0;
+			listener(createEvent('resize', chart));
+			if (container && container.clientWidth < w && chart.canvas) {
+				// If the container size shrank during chart resize, let's assume
+				// scrollbar appeared. So we resize again with the scrollbar visible -
+				// effectively making chart smaller and the scrollbar hidden again.
+				// Because we are inside `throttled`, and currently `ticking`, scroll
+				// events are ignored during this whole 2 resize process.
+				// If we assumed wrong and something else happened, we are resizing
+				// twice in a frame (potential performance issue)
+				listener(createEvent('resize', chart));
+			}
+		}
+	}));
+
+	// The resizer needs to be attached to the node parent, so we first need to be
+	// sure that `node` is attached to the DOM before injecting the resizer element.
+	watchForRender(node, function() {
+		if (expando.resizer) {
+			var container = node.parentNode;
+			if (container && container !== resizer.parentNode) {
+				container.insertBefore(resizer, container.firstChild);
+			}
+
+			// The container size might have changed, let's reset the resizer state.
+			resizer._reset();
+		}
+	});
+}
+
+function removeResizeListener(node) {
+	var expando = node[EXPANDO_KEY] || {};
+	var resizer = expando.resizer;
+
+	delete expando.resizer;
+	unwatchForRender(node);
+
+	if (resizer && resizer.parentNode) {
+		resizer.parentNode.removeChild(resizer);
+	}
+}
+
+/**
+ * Injects CSS styles inline if the styles are not already present.
+ * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the <style>.
+ * @param {string} css - the CSS to be injected.
+ */
+function injectCSS(rootNode, css) {
+	// https://stackoverflow.com/q/3922139
+	var expando = rootNode[EXPANDO_KEY] || (rootNode[EXPANDO_KEY] = {});
+	if (!expando.containsStyles) {
+		expando.containsStyles = true;
+		css = '/* Chart.js */\n' + css;
+		var style = document.createElement('style');
+		style.setAttribute('type', 'text/css');
+		style.appendChild(document.createTextNode(css));
+		rootNode.appendChild(style);
+	}
+}
+
+var platform_dom$2 = {
+	/**
+	 * When `true`, prevents the automatic injection of the stylesheet required to
+	 * correctly detect when the chart is added to the DOM and then resized. This
+	 * switch has been added to allow external stylesheet (`dist/Chart(.min)?.js`)
+	 * to be manually imported to make this library compatible with any CSP.
+	 * See https://github.com/chartjs/Chart.js/issues/5208
+	 */
+	disableCSSInjection: false,
 
-                        rgb = [0, 0, 0];
-                        for (var i = 0; i < 3; i++) {
-                            t3 = h + 1 / 3 * -(i - 1);
-                            if (t3 < 0) {
-                                t3++;
-                            }
-                            if (t3 > 1) {
-                                t3--;
-                            }
+	/**
+	 * This property holds whether this platform is enabled for the current environment.
+	 * Currently used by platform.js to select the proper implementation.
+	 * @private
+	 */
+	_enabled: typeof window !== 'undefined' && typeof document !== 'undefined',
 
-                            if (6 * t3 < 1) {
-                                val = t1 + (t2 - t1) * 6 * t3;
-                            } else if (2 * t3 < 1) {
-                                val = t2;
-                            } else if (3 * t3 < 2) {
-                                val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
-                            } else {
-                                val = t1;
-                            }
+	/**
+	 * Initializes resources that depend on platform options.
+	 * @param {HTMLCanvasElement} canvas - The Canvas element.
+	 * @private
+	 */
+	_ensureLoaded: function(canvas) {
+		if (!this.disableCSSInjection) {
+			// If the canvas is in a shadow DOM, then the styles must also be inserted
+			// into the same shadow DOM.
+			// https://github.com/chartjs/Chart.js/issues/5763
+			var root = canvas.getRootNode ? canvas.getRootNode() : document;
+			var targetNode = root.host ? root : document.head;
+			injectCSS(targetNode, stylesheet);
+		}
+	},
+
+	acquireContext: function(item, config) {
+		if (typeof item === 'string') {
+			item = document.getElementById(item);
+		} else if (item.length) {
+			// Support for array based queries (such as jQuery)
+			item = item[0];
+		}
+
+		if (item && item.canvas) {
+			// Support for any object associated to a canvas (including a context2d)
+			item = item.canvas;
+		}
+
+		// To prevent canvas fingerprinting, some add-ons undefine the getContext
+		// method, for example: https://github.com/kkapsner/CanvasBlocker
+		// https://github.com/chartjs/Chart.js/issues/2807
+		var context = item && item.getContext && item.getContext('2d');
+
+		// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is
+		// inside an iframe or when running in a protected environment. We could guess the
+		// types from their toString() value but let's keep things flexible and assume it's
+		// a sufficient condition if the item has a context2D which has item as `canvas`.
+		// https://github.com/chartjs/Chart.js/issues/3887
+		// https://github.com/chartjs/Chart.js/issues/4102
+		// https://github.com/chartjs/Chart.js/issues/4152
+		if (context && context.canvas === item) {
+			// Load platform resources on first chart creation, to make it possible to
+			// import the library before setting platform options.
+			this._ensureLoaded(item);
+			initCanvas(item, config);
+			return context;
+		}
+
+		return null;
+	},
+
+	releaseContext: function(context) {
+		var canvas = context.canvas;
+		if (!canvas[EXPANDO_KEY]) {
+			return;
+		}
+
+		var initial = canvas[EXPANDO_KEY].initial;
+		['height', 'width'].forEach(function(prop) {
+			var value = initial[prop];
+			if (helpers$1.isNullOrUndef(value)) {
+				canvas.removeAttribute(prop);
+			} else {
+				canvas.setAttribute(prop, value);
+			}
+		});
+
+		helpers$1.each(initial.style || {}, function(value, key) {
+			canvas.style[key] = value;
+		});
+
+		// The canvas render size might have been changed (and thus the state stack discarded),
+		// we can't use save() and restore() to restore the initial state. So make sure that at
+		// least the canvas context is reset to the default state by setting the canvas width.
+		// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html
+		// eslint-disable-next-line no-self-assign
+		canvas.width = canvas.width;
+
+		delete canvas[EXPANDO_KEY];
+	},
+
+	addEventListener: function(chart, type, listener) {
+		var canvas = chart.canvas;
+		if (type === 'resize') {
+			// Note: the resize event is not supported on all browsers.
+			addResizeListener(canvas, listener, chart);
+			return;
+		}
+
+		var expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});
+		var proxies = expando.proxies || (expando.proxies = {});
+		var proxy = proxies[chart.id + '_' + type] = function(event) {
+			listener(fromNativeEvent(event, chart));
+		};
+
+		addListener(canvas, type, proxy);
+	},
+
+	removeEventListener: function(chart, type, listener) {
+		var canvas = chart.canvas;
+		if (type === 'resize') {
+			// Note: the resize event is not supported on all browsers.
+			removeResizeListener(canvas);
+			return;
+		}
+
+		var expando = listener[EXPANDO_KEY] || {};
+		var proxies = expando.proxies || {};
+		var proxy = proxies[chart.id + '_' + type];
+		if (!proxy) {
+			return;
+		}
+
+		removeListener(canvas, type, proxy);
+	}
+};
 
-                            rgb[i] = val * 255;
-                        }
+// DEPRECATIONS
 
-                        return rgb;
-                    };
-
-                    convert.hsl.hsv = function (hsl) {
-                        var h = hsl[0];
-                        var s = hsl[1] / 100;
-                        var l = hsl[2] / 100;
-                        var smin = s;
-                        var lmin = Math.max(l, 0.01);
-                        var sv;
-                        var v;
-
-                        l *= 2;
-                        s *= (l <= 1) ? l : 2 - l;
-                        smin *= lmin <= 1 ? lmin : 2 - lmin;
-                        v = (l + s) / 2;
-                        sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
-
-                        return [h, sv * 100, v * 100];
-                    };
-
-                    convert.hsv.rgb = function (hsv) {
-                        var h = hsv[0] / 60;
-                        var s = hsv[1] / 100;
-                        var v = hsv[2] / 100;
-                        var hi = Math.floor(h) % 6;
-
-                        var f = h - Math.floor(h);
-                        var p = 255 * v * (1 - s);
-                        var q = 255 * v * (1 - (s * f));
-                        var t = 255 * v * (1 - (s * (1 - f)));
-                        v *= 255;
-
-                        switch (hi) {
-                            case 0:
-                                return [v, t, p];
-                            case 1:
-                                return [q, v, p];
-                            case 2:
-                                return [p, v, t];
-                            case 3:
-                                return [p, q, v];
-                            case 4:
-                                return [t, p, v];
-                            case 5:
-                                return [v, p, q];
-                        }
-                    };
-
-                    convert.hsv.hsl = function (hsv) {
-                        var h = hsv[0];
-                        var s = hsv[1] / 100;
-                        var v = hsv[2] / 100;
-                        var vmin = Math.max(v, 0.01);
-                        var lmin;
-                        var sl;
-                        var l;
-
-                        l = (2 - s) * v;
-                        lmin = (2 - s) * vmin;
-                        sl = s * vmin;
-                        sl /= (lmin <= 1) ? lmin : 2 - lmin;
-                        sl = sl || 0;
-                        l /= 2;
-
-                        return [h, sl * 100, l * 100];
-                    };
+/**
+ * Provided for backward compatibility, use EventTarget.addEventListener instead.
+ * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
+ * @function Chart.helpers.addEvent
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers$1.addEvent = addListener;
+
+/**
+ * Provided for backward compatibility, use EventTarget.removeEventListener instead.
+ * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener
+ * @function Chart.helpers.removeEvent
+ * @deprecated since version 2.7.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers$1.removeEvent = removeListener;
 
-// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
-                    convert.hwb.rgb = function (hwb) {
-                        var h = hwb[0] / 360;
-                        var wh = hwb[1] / 100;
-                        var bl = hwb[2] / 100;
-                        var ratio = wh + bl;
-                        var i;
-                        var v;
-                        var f;
-                        var n;
-
-                        // wh + bl cant be > 1
-                        if (ratio > 1) {
-                            wh /= ratio;
-                            bl /= ratio;
-                        }
+// @TODO Make possible to select another platform at build time.
+var implementation = platform_dom$2._enabled ? platform_dom$2 : platform_basic;
 
-                        i = Math.floor(6 * h);
-                        v = 1 - bl;
-                        f = 6 * h - i;
+/**
+ * @namespace Chart.platform
+ * @see https://chartjs.gitbooks.io/proposals/content/Platform.html
+ * @since 2.4.0
+ */
+var platform = helpers$1.extend({
+	/**
+	 * @since 2.7.0
+	 */
+	initialize: function() {},
+
+	/**
+	 * Called at chart construction time, returns a context2d instance implementing
+	 * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.
+	 * @param {*} item - The native item from which to acquire context (platform specific)
+	 * @param {object} options - The chart options
+	 * @returns {CanvasRenderingContext2D} context2d instance
+	 */
+	acquireContext: function() {},
 
-                        if ((i & 0x01) !== 0) {
-                            f = 1 - f;
-                        }
+	/**
+	 * Called at chart destruction time, releases any resources associated to the context
+	 * previously returned by the acquireContext() method.
+	 * @param {CanvasRenderingContext2D} context - The context2d instance
+	 * @returns {boolean} true if the method succeeded, else false
+	 */
+	releaseContext: function() {},
+
+	/**
+	 * Registers the specified listener on the given chart.
+	 * @param {Chart} chart - Chart from which to listen for event
+	 * @param {string} type - The ({@link IEvent}) type to listen for
+	 * @param {function} listener - Receives a notification (an object that implements
+	 * the {@link IEvent} interface) when an event of the specified type occurs.
+	 */
+	addEventListener: function() {},
 
-                        n = wh + f * (v - wh); // linear interpolation
-
-                        var r;
-                        var g;
-                        var b;
-                        switch (i) {
-                            default:
-                            case 6:
-                            case 0: r = v; g = n; b = wh; break;
-                            case 1: r = n; g = v; b = wh; break;
-                            case 2: r = wh; g = v; b = n; break;
-                            case 3: r = wh; g = n; b = v; break;
-                            case 4: r = n; g = wh; b = v; break;
-                            case 5: r = v; g = wh; b = n; break;
-                        }
+	/**
+	 * Removes the specified listener previously registered with addEventListener.
+	 * @param {Chart} chart - Chart from which to remove the listener
+	 * @param {string} type - The ({@link IEvent}) type to remove
+	 * @param {function} listener - The listener function to remove from the event target.
+	 */
+	removeEventListener: function() {}
 
-                        return [r * 255, g * 255, b * 255];
-                    };
-
-                    convert.cmyk.rgb = function (cmyk) {
-                        var c = cmyk[0] / 100;
-                        var m = cmyk[1] / 100;
-                        var y = cmyk[2] / 100;
-                        var k = cmyk[3] / 100;
-                        var r;
-                        var g;
-                        var b;
-
-                        r = 1 - Math.min(1, c * (1 - k) + k);
-                        g = 1 - Math.min(1, m * (1 - k) + k);
-                        b = 1 - Math.min(1, y * (1 - k) + k);
-
-                        return [r * 255, g * 255, b * 255];
-                    };
-
-                    convert.xyz.rgb = function (xyz) {
-                        var x = xyz[0] / 100;
-                        var y = xyz[1] / 100;
-                        var z = xyz[2] / 100;
-                        var r;
-                        var g;
-                        var b;
-
-                        r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
-                        g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
-                        b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
-
-                        // assume sRGB
-                        r = r > 0.0031308
-                            ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
-                            : r * 12.92;
-
-                        g = g > 0.0031308
-                            ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
-                            : g * 12.92;
-
-                        b = b > 0.0031308
-                            ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
-                            : b * 12.92;
-
-                        r = Math.min(Math.max(0, r), 1);
-                        g = Math.min(Math.max(0, g), 1);
-                        b = Math.min(Math.max(0, b), 1);
-
-                        return [r * 255, g * 255, b * 255];
-                    };
-
-                    convert.xyz.lab = function (xyz) {
-                        var x = xyz[0];
-                        var y = xyz[1];
-                        var z = xyz[2];
-                        var l;
-                        var a;
-                        var b;
-
-                        x /= 95.047;
-                        y /= 100;
-                        z /= 108.883;
-
-                        x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
-                        y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
-                        z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
-
-                        l = (116 * y) - 16;
-                        a = 500 * (x - y);
-                        b = 200 * (y - z);
-
-                        return [l, a, b];
-                    };
-
-                    convert.lab.xyz = function (lab) {
-                        var l = lab[0];
-                        var a = lab[1];
-                        var b = lab[2];
-                        var x;
-                        var y;
-                        var z;
-
-                        y = (l + 16) / 116;
-                        x = a / 500 + y;
-                        z = y - b / 200;
-
-                        var y2 = Math.pow(y, 3);
-                        var x2 = Math.pow(x, 3);
-                        var z2 = Math.pow(z, 3);
-                        y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
-                        x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
-                        z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
-
-                        x *= 95.047;
-                        y *= 100;
-                        z *= 108.883;
-
-                        return [x, y, z];
-                    };
-
-                    convert.lab.lch = function (lab) {
-                        var l = lab[0];
-                        var a = lab[1];
-                        var b = lab[2];
-                        var hr;
-                        var h;
-                        var c;
-
-                        hr = Math.atan2(b, a);
-                        h = hr * 360 / 2 / Math.PI;
-
-                        if (h < 0) {
-                            h += 360;
-                        }
-
-                        c = Math.sqrt(a * a + b * b);
+}, implementation);
 
-                        return [l, c, h];
-                    };
+core_defaults._set('global', {
+	plugins: {}
+});
 
-                    convert.lch.lab = function (lch) {
-                        var l = lch[0];
-                        var c = lch[1];
-                        var h = lch[2];
-                        var a;
-                        var b;
-                        var hr;
+/**
+ * The plugin service singleton
+ * @namespace Chart.plugins
+ * @since 2.1.0
+ */
+var core_plugins = {
+	/**
+	 * Globally registered plugins.
+	 * @private
+	 */
+	_plugins: [],
 
-                        hr = h / 360 * 2 * Math.PI;
-                        a = c * Math.cos(hr);
-                        b = c * Math.sin(hr);
+	/**
+	 * This identifier is used to invalidate the descriptors cache attached to each chart
+	 * when a global plugin is registered or unregistered. In this case, the cache ID is
+	 * incremented and descriptors are regenerated during following API calls.
+	 * @private
+	 */
+	_cacheId: 0,
 
-                        return [l, a, b];
-                    };
+	/**
+	 * Registers the given plugin(s) if not already registered.
+	 * @param {IPlugin[]|IPlugin} plugins plugin instance(s).
+	 */
+	register: function(plugins) {
+		var p = this._plugins;
+		([]).concat(plugins).forEach(function(plugin) {
+			if (p.indexOf(plugin) === -1) {
+				p.push(plugin);
+			}
+		});
+
+		this._cacheId++;
+	},
+
+	/**
+	 * Unregisters the given plugin(s) only if registered.
+	 * @param {IPlugin[]|IPlugin} plugins plugin instance(s).
+	 */
+	unregister: function(plugins) {
+		var p = this._plugins;
+		([]).concat(plugins).forEach(function(plugin) {
+			var idx = p.indexOf(plugin);
+			if (idx !== -1) {
+				p.splice(idx, 1);
+			}
+		});
+
+		this._cacheId++;
+	},
+
+	/**
+	 * Remove all registered plugins.
+	 * @since 2.1.5
+	 */
+	clear: function() {
+		this._plugins = [];
+		this._cacheId++;
+	},
+
+	/**
+	 * Returns the number of registered plugins?
+	 * @returns {number}
+	 * @since 2.1.5
+	 */
+	count: function() {
+		return this._plugins.length;
+	},
+
+	/**
+	 * Returns all registered plugin instances.
+	 * @returns {IPlugin[]} array of plugin objects.
+	 * @since 2.1.5
+	 */
+	getAll: function() {
+		return this._plugins;
+	},
+
+	/**
+	 * Calls enabled plugins for `chart` on the specified hook and with the given args.
+	 * This method immediately returns as soon as a plugin explicitly returns false. The
+	 * returned value can be used, for instance, to interrupt the current action.
+	 * @param {Chart} chart - The chart instance for which plugins should be called.
+	 * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate').
+	 * @param {Array} [args] - Extra arguments to apply to the hook call.
+	 * @returns {boolean} false if any of the plugins return false, else returns true.
+	 */
+	notify: function(chart, hook, args) {
+		var descriptors = this.descriptors(chart);
+		var ilen = descriptors.length;
+		var i, descriptor, plugin, params, method;
+
+		for (i = 0; i < ilen; ++i) {
+			descriptor = descriptors[i];
+			plugin = descriptor.plugin;
+			method = plugin[hook];
+			if (typeof method === 'function') {
+				params = [chart].concat(args || []);
+				params.push(descriptor.options);
+				if (method.apply(plugin, params) === false) {
+					return false;
+				}
+			}
+		}
+
+		return true;
+	},
+
+	/**
+	 * Returns descriptors of enabled plugins for the given chart.
+	 * @returns {object[]} [{ plugin, options }]
+	 * @private
+	 */
+	descriptors: function(chart) {
+		var cache = chart.$plugins || (chart.$plugins = {});
+		if (cache.id === this._cacheId) {
+			return cache.descriptors;
+		}
+
+		var plugins = [];
+		var descriptors = [];
+		var config = (chart && chart.config) || {};
+		var options = (config.options && config.options.plugins) || {};
+
+		this._plugins.concat(config.plugins || []).forEach(function(plugin) {
+			var idx = plugins.indexOf(plugin);
+			if (idx !== -1) {
+				return;
+			}
+
+			var id = plugin.id;
+			var opts = options[id];
+			if (opts === false) {
+				return;
+			}
+
+			if (opts === true) {
+				opts = helpers$1.clone(core_defaults.global.plugins[id]);
+			}
+
+			plugins.push(plugin);
+			descriptors.push({
+				plugin: plugin,
+				options: opts || {}
+			});
+		});
+
+		cache.descriptors = descriptors;
+		cache.id = this._cacheId;
+		return descriptors;
+	},
+
+	/**
+	 * Invalidates cache for the given chart: descriptors hold a reference on plugin option,
+	 * but in some cases, this reference can be changed by the user when updating options.
+	 * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167
+	 * @private
+	 */
+	_invalidate: function(chart) {
+		delete chart.$plugins;
+	}
+};
+
+var core_scaleService = {
+	// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then
+	// use the new chart options to grab the correct scale
+	constructors: {},
+	// Use a registration function so that we can move to an ES6 map when we no longer need to support
+	// old browsers
+
+	// Scale config defaults
+	defaults: {},
+	registerScaleType: function(type, scaleConstructor, scaleDefaults) {
+		this.constructors[type] = scaleConstructor;
+		this.defaults[type] = helpers$1.clone(scaleDefaults);
+	},
+	getScaleConstructor: function(type) {
+		return this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;
+	},
+	getScaleDefaults: function(type) {
+		// Return the scale defaults merged with the global settings so that we always use the latest ones
+		return this.defaults.hasOwnProperty(type) ? helpers$1.merge({}, [core_defaults.scale, this.defaults[type]]) : {};
+	},
+	updateScaleDefaults: function(type, additions) {
+		var me = this;
+		if (me.defaults.hasOwnProperty(type)) {
+			me.defaults[type] = helpers$1.extend(me.defaults[type], additions);
+		}
+	},
+	addScalesToLayout: function(chart) {
+		// Adds each scale to the chart.boxes array to be sized accordingly
+		helpers$1.each(chart.scales, function(scale) {
+			// Set ILayoutItem parameters for backwards compatibility
+			scale.fullWidth = scale.options.fullWidth;
+			scale.position = scale.options.position;
+			scale.weight = scale.options.weight;
+			core_layouts.addBox(chart, scale);
+		});
+	}
+};
+
+var valueOrDefault$8 = helpers$1.valueOrDefault;
+var getRtlHelper = helpers$1.rtl.getRtlAdapter;
+
+core_defaults._set('global', {
+	tooltips: {
+		enabled: true,
+		custom: null,
+		mode: 'nearest',
+		position: 'average',
+		intersect: true,
+		backgroundColor: 'rgba(0,0,0,0.8)',
+		titleFontStyle: 'bold',
+		titleSpacing: 2,
+		titleMarginBottom: 6,
+		titleFontColor: '#fff',
+		titleAlign: 'left',
+		bodySpacing: 2,
+		bodyFontColor: '#fff',
+		bodyAlign: 'left',
+		footerFontStyle: 'bold',
+		footerSpacing: 2,
+		footerMarginTop: 6,
+		footerFontColor: '#fff',
+		footerAlign: 'left',
+		yPadding: 6,
+		xPadding: 6,
+		caretPadding: 2,
+		caretSize: 5,
+		cornerRadius: 6,
+		multiKeyBackground: '#fff',
+		displayColors: true,
+		borderColor: 'rgba(0,0,0,0)',
+		borderWidth: 0,
+		callbacks: {
+			// Args are: (tooltipItems, data)
+			beforeTitle: helpers$1.noop,
+			title: function(tooltipItems, data) {
+				var title = '';
+				var labels = data.labels;
+				var labelCount = labels ? labels.length : 0;
+
+				if (tooltipItems.length > 0) {
+					var item = tooltipItems[0];
+					if (item.label) {
+						title = item.label;
+					} else if (item.xLabel) {
+						title = item.xLabel;
+					} else if (labelCount > 0 && item.index < labelCount) {
+						title = labels[item.index];
+					}
+				}
+
+				return title;
+			},
+			afterTitle: helpers$1.noop,
+
+			// Args are: (tooltipItems, data)
+			beforeBody: helpers$1.noop,
+
+			// Args are: (tooltipItem, data)
+			beforeLabel: helpers$1.noop,
+			label: function(tooltipItem, data) {
+				var label = data.datasets[tooltipItem.datasetIndex].label || '';
+
+				if (label) {
+					label += ': ';
+				}
+				if (!helpers$1.isNullOrUndef(tooltipItem.value)) {
+					label += tooltipItem.value;
+				} else {
+					label += tooltipItem.yLabel;
+				}
+				return label;
+			},
+			labelColor: function(tooltipItem, chart) {
+				var meta = chart.getDatasetMeta(tooltipItem.datasetIndex);
+				var activeElement = meta.data[tooltipItem.index];
+				var view = activeElement._view;
+				return {
+					borderColor: view.borderColor,
+					backgroundColor: view.backgroundColor
+				};
+			},
+			labelTextColor: function() {
+				return this._options.bodyFontColor;
+			},
+			afterLabel: helpers$1.noop,
+
+			// Args are: (tooltipItems, data)
+			afterBody: helpers$1.noop,
+
+			// Args are: (tooltipItems, data)
+			beforeFooter: helpers$1.noop,
+			footer: helpers$1.noop,
+			afterFooter: helpers$1.noop
+		}
+	}
+});
+
+var positioners = {
+	/**
+	 * Average mode places the tooltip at the average position of the elements shown
+	 * @function Chart.Tooltip.positioners.average
+	 * @param elements {ChartElement[]} the elements being displayed in the tooltip
+	 * @returns {object} tooltip position
+	 */
+	average: function(elements) {
+		if (!elements.length) {
+			return false;
+		}
+
+		var i, len;
+		var x = 0;
+		var y = 0;
+		var count = 0;
+
+		for (i = 0, len = elements.length; i < len; ++i) {
+			var el = elements[i];
+			if (el && el.hasValue()) {
+				var pos = el.tooltipPosition();
+				x += pos.x;
+				y += pos.y;
+				++count;
+			}
+		}
+
+		return {
+			x: x / count,
+			y: y / count
+		};
+	},
+
+	/**
+	 * Gets the tooltip position nearest of the item nearest to the event position
+	 * @function Chart.Tooltip.positioners.nearest
+	 * @param elements {Chart.Element[]} the tooltip elements
+	 * @param eventPosition {object} the position of the event in canvas coordinates
+	 * @returns {object} the tooltip position
+	 */
+	nearest: function(elements, eventPosition) {
+		var x = eventPosition.x;
+		var y = eventPosition.y;
+		var minDistance = Number.POSITIVE_INFINITY;
+		var i, len, nearestElement;
+
+		for (i = 0, len = elements.length; i < len; ++i) {
+			var el = elements[i];
+			if (el && el.hasValue()) {
+				var center = el.getCenterPoint();
+				var d = helpers$1.distanceBetweenPoints(eventPosition, center);
+
+				if (d < minDistance) {
+					minDistance = d;
+					nearestElement = el;
+				}
+			}
+		}
+
+		if (nearestElement) {
+			var tp = nearestElement.tooltipPosition();
+			x = tp.x;
+			y = tp.y;
+		}
+
+		return {
+			x: x,
+			y: y
+		};
+	}
+};
 
-                    convert.rgb.ansi16 = function (args) {
-                        var r = args[0];
-                        var g = args[1];
-                        var b = args[2];
-                        var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
+// Helper to push or concat based on if the 2nd parameter is an array or not
+function pushOrConcat(base, toPush) {
+	if (toPush) {
+		if (helpers$1.isArray(toPush)) {
+			// base = base.concat(toPush);
+			Array.prototype.push.apply(base, toPush);
+		} else {
+			base.push(toPush);
+		}
+	}
+
+	return base;
+}
+
+/**
+ * Returns array of strings split by newline
+ * @param {string} value - The value to split by newline.
+ * @returns {string[]} value if newline present - Returned from String split() method
+ * @function
+ */
+function splitNewlines(str) {
+	if ((typeof str === 'string' || str instanceof String) && str.indexOf('\n') > -1) {
+		return str.split('\n');
+	}
+	return str;
+}
+
+
+/**
+ * Private helper to create a tooltip item model
+ * @param element - the chart element (point, arc, bar) to create the tooltip item for
+ * @return new tooltip item
+ */
+function createTooltipItem(element) {
+	var xScale = element._xScale;
+	var yScale = element._yScale || element._scale; // handle radar || polarArea charts
+	var index = element._index;
+	var datasetIndex = element._datasetIndex;
+	var controller = element._chart.getDatasetMeta(datasetIndex).controller;
+	var indexScale = controller._getIndexScale();
+	var valueScale = controller._getValueScale();
+
+	return {
+		xLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',
+		yLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',
+		label: indexScale ? '' + indexScale.getLabelForIndex(index, datasetIndex) : '',
+		value: valueScale ? '' + valueScale.getLabelForIndex(index, datasetIndex) : '',
+		index: index,
+		datasetIndex: datasetIndex,
+		x: element._model.x,
+		y: element._model.y
+	};
+}
+
+/**
+ * Helper to get the reset model for the tooltip
+ * @param tooltipOpts {object} the tooltip options
+ */
+function getBaseModel(tooltipOpts) {
+	var globalDefaults = core_defaults.global;
+
+	return {
+		// Positioning
+		xPadding: tooltipOpts.xPadding,
+		yPadding: tooltipOpts.yPadding,
+		xAlign: tooltipOpts.xAlign,
+		yAlign: tooltipOpts.yAlign,
+
+		// Drawing direction and text direction
+		rtl: tooltipOpts.rtl,
+		textDirection: tooltipOpts.textDirection,
+
+		// Body
+		bodyFontColor: tooltipOpts.bodyFontColor,
+		_bodyFontFamily: valueOrDefault$8(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),
+		_bodyFontStyle: valueOrDefault$8(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),
+		_bodyAlign: tooltipOpts.bodyAlign,
+		bodyFontSize: valueOrDefault$8(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),
+		bodySpacing: tooltipOpts.bodySpacing,
+
+		// Title
+		titleFontColor: tooltipOpts.titleFontColor,
+		_titleFontFamily: valueOrDefault$8(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),
+		_titleFontStyle: valueOrDefault$8(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),
+		titleFontSize: valueOrDefault$8(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),
+		_titleAlign: tooltipOpts.titleAlign,
+		titleSpacing: tooltipOpts.titleSpacing,
+		titleMarginBottom: tooltipOpts.titleMarginBottom,
+
+		// Footer
+		footerFontColor: tooltipOpts.footerFontColor,
+		_footerFontFamily: valueOrDefault$8(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),
+		_footerFontStyle: valueOrDefault$8(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),
+		footerFontSize: valueOrDefault$8(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),
+		_footerAlign: tooltipOpts.footerAlign,
+		footerSpacing: tooltipOpts.footerSpacing,
+		footerMarginTop: tooltipOpts.footerMarginTop,
+
+		// Appearance
+		caretSize: tooltipOpts.caretSize,
+		cornerRadius: tooltipOpts.cornerRadius,
+		backgroundColor: tooltipOpts.backgroundColor,
+		opacity: 0,
+		legendColorBackground: tooltipOpts.multiKeyBackground,
+		displayColors: tooltipOpts.displayColors,
+		borderColor: tooltipOpts.borderColor,
+		borderWidth: tooltipOpts.borderWidth
+	};
+}
+
+/**
+ * Get the size of the tooltip
+ */
+function getTooltipSize(tooltip, model) {
+	var ctx = tooltip._chart.ctx;
+
+	var height = model.yPadding * 2; // Tooltip Padding
+	var width = 0;
+
+	// Count of all lines in the body
+	var body = model.body;
+	var combinedBodyLength = body.reduce(function(count, bodyItem) {
+		return count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;
+	}, 0);
+	combinedBodyLength += model.beforeBody.length + model.afterBody.length;
+
+	var titleLineCount = model.title.length;
+	var footerLineCount = model.footer.length;
+	var titleFontSize = model.titleFontSize;
+	var bodyFontSize = model.bodyFontSize;
+	var footerFontSize = model.footerFontSize;
+
+	height += titleLineCount * titleFontSize; // Title Lines
+	height += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing
+	height += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin
+	height += combinedBodyLength * bodyFontSize; // Body Lines
+	height += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing
+	height += footerLineCount ? model.footerMarginTop : 0; // Footer Margin
+	height += footerLineCount * (footerFontSize); // Footer Lines
+	height += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing
+
+	// Title width
+	var widthPadding = 0;
+	var maxLineWidth = function(line) {
+		width = Math.max(width, ctx.measureText(line).width + widthPadding);
+	};
+
+	ctx.font = helpers$1.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);
+	helpers$1.each(model.title, maxLineWidth);
+
+	// Body width
+	ctx.font = helpers$1.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);
+	helpers$1.each(model.beforeBody.concat(model.afterBody), maxLineWidth);
+
+	// Body lines may include some extra width due to the color box
+	widthPadding = model.displayColors ? (bodyFontSize + 2) : 0;
+	helpers$1.each(body, function(bodyItem) {
+		helpers$1.each(bodyItem.before, maxLineWidth);
+		helpers$1.each(bodyItem.lines, maxLineWidth);
+		helpers$1.each(bodyItem.after, maxLineWidth);
+	});
+
+	// Reset back to 0
+	widthPadding = 0;
+
+	// Footer width
+	ctx.font = helpers$1.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);
+	helpers$1.each(model.footer, maxLineWidth);
+
+	// Add padding
+	width += 2 * model.xPadding;
+
+	return {
+		width: width,
+		height: height
+	};
+}
+
+/**
+ * Helper to get the alignment of a tooltip given the size
+ */
+function determineAlignment(tooltip, size) {
+	var model = tooltip._model;
+	var chart = tooltip._chart;
+	var chartArea = tooltip._chart.chartArea;
+	var xAlign = 'center';
+	var yAlign = 'center';
+
+	if (model.y < size.height) {
+		yAlign = 'top';
+	} else if (model.y > (chart.height - size.height)) {
+		yAlign = 'bottom';
+	}
+
+	var lf, rf; // functions to determine left, right alignment
+	var olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart
+	var yf; // function to get the y alignment if the tooltip goes outside of the left or right edges
+	var midX = (chartArea.left + chartArea.right) / 2;
+	var midY = (chartArea.top + chartArea.bottom) / 2;
+
+	if (yAlign === 'center') {
+		lf = function(x) {
+			return x <= midX;
+		};
+		rf = function(x) {
+			return x > midX;
+		};
+	} else {
+		lf = function(x) {
+			return x <= (size.width / 2);
+		};
+		rf = function(x) {
+			return x >= (chart.width - (size.width / 2));
+		};
+	}
+
+	olf = function(x) {
+		return x + size.width + model.caretSize + model.caretPadding > chart.width;
+	};
+	orf = function(x) {
+		return x - size.width - model.caretSize - model.caretPadding < 0;
+	};
+	yf = function(y) {
+		return y <= midY ? 'top' : 'bottom';
+	};
+
+	if (lf(model.x)) {
+		xAlign = 'left';
+
+		// Is tooltip too wide and goes over the right side of the chart.?
+		if (olf(model.x)) {
+			xAlign = 'center';
+			yAlign = yf(model.y);
+		}
+	} else if (rf(model.x)) {
+		xAlign = 'right';
+
+		// Is tooltip too wide and goes outside left edge of canvas?
+		if (orf(model.x)) {
+			xAlign = 'center';
+			yAlign = yf(model.y);
+		}
+	}
+
+	var opts = tooltip._options;
+	return {
+		xAlign: opts.xAlign ? opts.xAlign : xAlign,
+		yAlign: opts.yAlign ? opts.yAlign : yAlign
+	};
+}
+
+/**
+ * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment
+ */
+function getBackgroundPoint(vm, size, alignment, chart) {
+	// Background Position
+	var x = vm.x;
+	var y = vm.y;
+
+	var caretSize = vm.caretSize;
+	var caretPadding = vm.caretPadding;
+	var cornerRadius = vm.cornerRadius;
+	var xAlign = alignment.xAlign;
+	var yAlign = alignment.yAlign;
+	var paddingAndSize = caretSize + caretPadding;
+	var radiusAndPadding = cornerRadius + caretPadding;
+
+	if (xAlign === 'right') {
+		x -= size.width;
+	} else if (xAlign === 'center') {
+		x -= (size.width / 2);
+		if (x + size.width > chart.width) {
+			x = chart.width - size.width;
+		}
+		if (x < 0) {
+			x = 0;
+		}
+	}
+
+	if (yAlign === 'top') {
+		y += paddingAndSize;
+	} else if (yAlign === 'bottom') {
+		y -= size.height + paddingAndSize;
+	} else {
+		y -= (size.height / 2);
+	}
+
+	if (yAlign === 'center') {
+		if (xAlign === 'left') {
+			x += paddingAndSize;
+		} else if (xAlign === 'right') {
+			x -= paddingAndSize;
+		}
+	} else if (xAlign === 'left') {
+		x -= radiusAndPadding;
+	} else if (xAlign === 'right') {
+		x += radiusAndPadding;
+	}
+
+	return {
+		x: x,
+		y: y
+	};
+}
+
+function getAlignedX(vm, align) {
+	return align === 'center'
+		? vm.x + vm.width / 2
+		: align === 'right'
+			? vm.x + vm.width - vm.xPadding
+			: vm.x + vm.xPadding;
+}
+
+/**
+ * Helper to build before and after body lines
+ */
+function getBeforeAfterBodyLines(callback) {
+	return pushOrConcat([], splitNewlines(callback));
+}
+
+var exports$4 = core_element.extend({
+	initialize: function() {
+		this._model = getBaseModel(this._options);
+		this._lastActive = [];
+	},
+
+	// Get the title
+	// Args are: (tooltipItem, data)
+	getTitle: function() {
+		var me = this;
+		var opts = me._options;
+		var callbacks = opts.callbacks;
+
+		var beforeTitle = callbacks.beforeTitle.apply(me, arguments);
+		var title = callbacks.title.apply(me, arguments);
+		var afterTitle = callbacks.afterTitle.apply(me, arguments);
+
+		var lines = [];
+		lines = pushOrConcat(lines, splitNewlines(beforeTitle));
+		lines = pushOrConcat(lines, splitNewlines(title));
+		lines = pushOrConcat(lines, splitNewlines(afterTitle));
+
+		return lines;
+	},
+
+	// Args are: (tooltipItem, data)
+	getBeforeBody: function() {
+		return getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));
+	},
+
+	// Args are: (tooltipItem, data)
+	getBody: function(tooltipItems, data) {
+		var me = this;
+		var callbacks = me._options.callbacks;
+		var bodyItems = [];
+
+		helpers$1.each(tooltipItems, function(tooltipItem) {
+			var bodyItem = {
+				before: [],
+				lines: [],
+				after: []
+			};
+			pushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));
+			pushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));
+			pushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));
+
+			bodyItems.push(bodyItem);
+		});
+
+		return bodyItems;
+	},
+
+	// Args are: (tooltipItem, data)
+	getAfterBody: function() {
+		return getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));
+	},
+
+	// Get the footer and beforeFooter and afterFooter lines
+	// Args are: (tooltipItem, data)
+	getFooter: function() {
+		var me = this;
+		var callbacks = me._options.callbacks;
+
+		var beforeFooter = callbacks.beforeFooter.apply(me, arguments);
+		var footer = callbacks.footer.apply(me, arguments);
+		var afterFooter = callbacks.afterFooter.apply(me, arguments);
+
+		var lines = [];
+		lines = pushOrConcat(lines, splitNewlines(beforeFooter));
+		lines = pushOrConcat(lines, splitNewlines(footer));
+		lines = pushOrConcat(lines, splitNewlines(afterFooter));
+
+		return lines;
+	},
+
+	update: function(changed) {
+		var me = this;
+		var opts = me._options;
+
+		// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition
+		// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time
+		// which breaks any animations.
+		var existingModel = me._model;
+		var model = me._model = getBaseModel(opts);
+		var active = me._active;
+
+		var data = me._data;
+
+		// In the case where active.length === 0 we need to keep these at existing values for good animations
+		var alignment = {
+			xAlign: existingModel.xAlign,
+			yAlign: existingModel.yAlign
+		};
+		var backgroundPoint = {
+			x: existingModel.x,
+			y: existingModel.y
+		};
+		var tooltipSize = {
+			width: existingModel.width,
+			height: existingModel.height
+		};
+		var tooltipPosition = {
+			x: existingModel.caretX,
+			y: existingModel.caretY
+		};
+
+		var i, len;
+
+		if (active.length) {
+			model.opacity = 1;
+
+			var labelColors = [];
+			var labelTextColors = [];
+			tooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);
+
+			var tooltipItems = [];
+			for (i = 0, len = active.length; i < len; ++i) {
+				tooltipItems.push(createTooltipItem(active[i]));
+			}
+
+			// If the user provided a filter function, use it to modify the tooltip items
+			if (opts.filter) {
+				tooltipItems = tooltipItems.filter(function(a) {
+					return opts.filter(a, data);
+				});
+			}
+
+			// If the user provided a sorting function, use it to modify the tooltip items
+			if (opts.itemSort) {
+				tooltipItems = tooltipItems.sort(function(a, b) {
+					return opts.itemSort(a, b, data);
+				});
+			}
+
+			// Determine colors for boxes
+			helpers$1.each(tooltipItems, function(tooltipItem) {
+				labelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));
+				labelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));
+			});
+
+
+			// Build the Text Lines
+			model.title = me.getTitle(tooltipItems, data);
+			model.beforeBody = me.getBeforeBody(tooltipItems, data);
+			model.body = me.getBody(tooltipItems, data);
+			model.afterBody = me.getAfterBody(tooltipItems, data);
+			model.footer = me.getFooter(tooltipItems, data);
+
+			// Initial positioning and colors
+			model.x = tooltipPosition.x;
+			model.y = tooltipPosition.y;
+			model.caretPadding = opts.caretPadding;
+			model.labelColors = labelColors;
+			model.labelTextColors = labelTextColors;
+
+			// data points
+			model.dataPoints = tooltipItems;
+
+			// We need to determine alignment of the tooltip
+			tooltipSize = getTooltipSize(this, model);
+			alignment = determineAlignment(this, tooltipSize);
+			// Final Size and Position
+			backgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);
+		} else {
+			model.opacity = 0;
+		}
+
+		model.xAlign = alignment.xAlign;
+		model.yAlign = alignment.yAlign;
+		model.x = backgroundPoint.x;
+		model.y = backgroundPoint.y;
+		model.width = tooltipSize.width;
+		model.height = tooltipSize.height;
+
+		// Point where the caret on the tooltip points to
+		model.caretX = tooltipPosition.x;
+		model.caretY = tooltipPosition.y;
+
+		me._model = model;
+
+		if (changed && opts.custom) {
+			opts.custom.call(me, model);
+		}
+
+		return me;
+	},
+
+	drawCaret: function(tooltipPoint, size) {
+		var ctx = this._chart.ctx;
+		var vm = this._view;
+		var caretPosition = this.getCaretPosition(tooltipPoint, size, vm);
+
+		ctx.lineTo(caretPosition.x1, caretPosition.y1);
+		ctx.lineTo(caretPosition.x2, caretPosition.y2);
+		ctx.lineTo(caretPosition.x3, caretPosition.y3);
+	},
+	getCaretPosition: function(tooltipPoint, size, vm) {
+		var x1, x2, x3, y1, y2, y3;
+		var caretSize = vm.caretSize;
+		var cornerRadius = vm.cornerRadius;
+		var xAlign = vm.xAlign;
+		var yAlign = vm.yAlign;
+		var ptX = tooltipPoint.x;
+		var ptY = tooltipPoint.y;
+		var width = size.width;
+		var height = size.height;
+
+		if (yAlign === 'center') {
+			y2 = ptY + (height / 2);
+
+			if (xAlign === 'left') {
+				x1 = ptX;
+				x2 = x1 - caretSize;
+				x3 = x1;
+
+				y1 = y2 + caretSize;
+				y3 = y2 - caretSize;
+			} else {
+				x1 = ptX + width;
+				x2 = x1 + caretSize;
+				x3 = x1;
+
+				y1 = y2 - caretSize;
+				y3 = y2 + caretSize;
+			}
+		} else {
+			if (xAlign === 'left') {
+				x2 = ptX + cornerRadius + (caretSize);
+				x1 = x2 - caretSize;
+				x3 = x2 + caretSize;
+			} else if (xAlign === 'right') {
+				x2 = ptX + width - cornerRadius - caretSize;
+				x1 = x2 - caretSize;
+				x3 = x2 + caretSize;
+			} else {
+				x2 = vm.caretX;
+				x1 = x2 - caretSize;
+				x3 = x2 + caretSize;
+			}
+			if (yAlign === 'top') {
+				y1 = ptY;
+				y2 = y1 - caretSize;
+				y3 = y1;
+			} else {
+				y1 = ptY + height;
+				y2 = y1 + caretSize;
+				y3 = y1;
+				// invert drawing order
+				var tmp = x3;
+				x3 = x1;
+				x1 = tmp;
+			}
+		}
+		return {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};
+	},
+
+	drawTitle: function(pt, vm, ctx) {
+		var title = vm.title;
+		var length = title.length;
+		var titleFontSize, titleSpacing, i;
+
+		if (length) {
+			var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
+
+			pt.x = getAlignedX(vm, vm._titleAlign);
+
+			ctx.textAlign = rtlHelper.textAlign(vm._titleAlign);
+			ctx.textBaseline = 'middle';
+
+			titleFontSize = vm.titleFontSize;
+			titleSpacing = vm.titleSpacing;
+
+			ctx.fillStyle = vm.titleFontColor;
+			ctx.font = helpers$1.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);
+
+			for (i = 0; i < length; ++i) {
+				ctx.fillText(title[i], rtlHelper.x(pt.x), pt.y + titleFontSize / 2);
+				pt.y += titleFontSize + titleSpacing; // Line Height and spacing
+
+				if (i + 1 === length) {
+					pt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing
+				}
+			}
+		}
+	},
+
+	drawBody: function(pt, vm, ctx) {
+		var bodyFontSize = vm.bodyFontSize;
+		var bodySpacing = vm.bodySpacing;
+		var bodyAlign = vm._bodyAlign;
+		var body = vm.body;
+		var drawColorBoxes = vm.displayColors;
+		var xLinePadding = 0;
+		var colorX = drawColorBoxes ? getAlignedX(vm, 'left') : 0;
+
+		var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
+
+		var fillLineOfText = function(line) {
+			ctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyFontSize / 2);
+			pt.y += bodyFontSize + bodySpacing;
+		};
+
+		var bodyItem, textColor, labelColors, lines, i, j, ilen, jlen;
+		var bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);
+
+		ctx.textAlign = bodyAlign;
+		ctx.textBaseline = 'middle';
+		ctx.font = helpers$1.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);
+
+		pt.x = getAlignedX(vm, bodyAlignForCalculation);
+
+		// Before body lines
+		ctx.fillStyle = vm.bodyFontColor;
+		helpers$1.each(vm.beforeBody, fillLineOfText);
+
+		xLinePadding = drawColorBoxes && bodyAlignForCalculation !== 'right'
+			? bodyAlign === 'center' ? (bodyFontSize / 2 + 1) : (bodyFontSize + 2)
+			: 0;
+
+		// Draw body lines now
+		for (i = 0, ilen = body.length; i < ilen; ++i) {
+			bodyItem = body[i];
+			textColor = vm.labelTextColors[i];
+			labelColors = vm.labelColors[i];
+
+			ctx.fillStyle = textColor;
+			helpers$1.each(bodyItem.before, fillLineOfText);
+
+			lines = bodyItem.lines;
+			for (j = 0, jlen = lines.length; j < jlen; ++j) {
+				// Draw Legend-like boxes if needed
+				if (drawColorBoxes) {
+					var rtlColorX = rtlHelper.x(colorX);
+
+					// Fill a white rect so that colours merge nicely if the opacity is < 1
+					ctx.fillStyle = vm.legendColorBackground;
+					ctx.fillRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);
+
+					// Border
+					ctx.lineWidth = 1;
+					ctx.strokeStyle = labelColors.borderColor;
+					ctx.strokeRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);
+
+					// Inner square
+					ctx.fillStyle = labelColors.backgroundColor;
+					ctx.fillRect(rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX, 1), bodyFontSize - 2), pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);
+					ctx.fillStyle = textColor;
+				}
+
+				fillLineOfText(lines[j]);
+			}
+
+			helpers$1.each(bodyItem.after, fillLineOfText);
+		}
+
+		// Reset back to 0 for after body
+		xLinePadding = 0;
+
+		// After body lines
+		helpers$1.each(vm.afterBody, fillLineOfText);
+		pt.y -= bodySpacing; // Remove last body spacing
+	},
+
+	drawFooter: function(pt, vm, ctx) {
+		var footer = vm.footer;
+		var length = footer.length;
+		var footerFontSize, i;
+
+		if (length) {
+			var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
+
+			pt.x = getAlignedX(vm, vm._footerAlign);
+			pt.y += vm.footerMarginTop;
+
+			ctx.textAlign = rtlHelper.textAlign(vm._footerAlign);
+			ctx.textBaseline = 'middle';
+
+			footerFontSize = vm.footerFontSize;
+
+			ctx.fillStyle = vm.footerFontColor;
+			ctx.font = helpers$1.fontString(footerFontSize, vm._footerFontStyle, vm._footerFontFamily);
+
+			for (i = 0; i < length; ++i) {
+				ctx.fillText(footer[i], rtlHelper.x(pt.x), pt.y + footerFontSize / 2);
+				pt.y += footerFontSize + vm.footerSpacing;
+			}
+		}
+	},
+
+	drawBackground: function(pt, vm, ctx, tooltipSize) {
+		ctx.fillStyle = vm.backgroundColor;
+		ctx.strokeStyle = vm.borderColor;
+		ctx.lineWidth = vm.borderWidth;
+		var xAlign = vm.xAlign;
+		var yAlign = vm.yAlign;
+		var x = pt.x;
+		var y = pt.y;
+		var width = tooltipSize.width;
+		var height = tooltipSize.height;
+		var radius = vm.cornerRadius;
+
+		ctx.beginPath();
+		ctx.moveTo(x + radius, y);
+		if (yAlign === 'top') {
+			this.drawCaret(pt, tooltipSize);
+		}
+		ctx.lineTo(x + width - radius, y);
+		ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
+		if (yAlign === 'center' && xAlign === 'right') {
+			this.drawCaret(pt, tooltipSize);
+		}
+		ctx.lineTo(x + width, y + height - radius);
+		ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
+		if (yAlign === 'bottom') {
+			this.drawCaret(pt, tooltipSize);
+		}
+		ctx.lineTo(x + radius, y + height);
+		ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
+		if (yAlign === 'center' && xAlign === 'left') {
+			this.drawCaret(pt, tooltipSize);
+		}
+		ctx.lineTo(x, y + radius);
+		ctx.quadraticCurveTo(x, y, x + radius, y);
+		ctx.closePath();
+
+		ctx.fill();
+
+		if (vm.borderWidth > 0) {
+			ctx.stroke();
+		}
+	},
+
+	draw: function() {
+		var ctx = this._chart.ctx;
+		var vm = this._view;
+
+		if (vm.opacity === 0) {
+			return;
+		}
+
+		var tooltipSize = {
+			width: vm.width,
+			height: vm.height
+		};
+		var pt = {
+			x: vm.x,
+			y: vm.y
+		};
+
+		// IE11/Edge does not like very small opacities, so snap to 0
+		var opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;
+
+		// Truthy/falsey value for empty tooltip
+		var hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;
+
+		if (this._options.enabled && hasTooltipContent) {
+			ctx.save();
+			ctx.globalAlpha = opacity;
+
+			// Draw Background
+			this.drawBackground(pt, vm, ctx, tooltipSize);
+
+			// Draw Title, Body, and Footer
+			pt.y += vm.yPadding;
+
+			helpers$1.rtl.overrideTextDirection(ctx, vm.textDirection);
+
+			// Titles
+			this.drawTitle(pt, vm, ctx);
+
+			// Body
+			this.drawBody(pt, vm, ctx);
+
+			// Footer
+			this.drawFooter(pt, vm, ctx);
+
+			helpers$1.rtl.restoreTextDirection(ctx, vm.textDirection);
+
+			ctx.restore();
+		}
+	},
+
+	/**
+	 * Handle an event
+	 * @private
+	 * @param {IEvent} event - The event to handle
+	 * @returns {boolean} true if the tooltip changed
+	 */
+	handleEvent: function(e) {
+		var me = this;
+		var options = me._options;
+		var changed = false;
+
+		me._lastActive = me._lastActive || [];
+
+		// Find Active Elements for tooltips
+		if (e.type === 'mouseout') {
+			me._active = [];
+		} else {
+			me._active = me._chart.getElementsAtEventForMode(e, options.mode, options);
+			if (options.reverse) {
+				me._active.reverse();
+			}
+		}
+
+		// Remember Last Actives
+		changed = !helpers$1.arrayEquals(me._active, me._lastActive);
+
+		// Only handle target event on tooltip change
+		if (changed) {
+			me._lastActive = me._active;
+
+			if (options.enabled || options.custom) {
+				me._eventPosition = {
+					x: e.x,
+					y: e.y
+				};
+
+				me.update(true);
+				me.pivot();
+			}
+		}
+
+		return changed;
+	}
+});
+
+/**
+ * @namespace Chart.Tooltip.positioners
+ */
+var positioners_1 = positioners;
+
+var core_tooltip = exports$4;
+core_tooltip.positioners = positioners_1;
+
+var valueOrDefault$9 = helpers$1.valueOrDefault;
+
+core_defaults._set('global', {
+	elements: {},
+	events: [
+		'mousemove',
+		'mouseout',
+		'click',
+		'touchstart',
+		'touchmove'
+	],
+	hover: {
+		onHover: null,
+		mode: 'nearest',
+		intersect: true,
+		animationDuration: 400
+	},
+	onClick: null,
+	maintainAspectRatio: true,
+	responsive: true,
+	responsiveAnimationDuration: 0
+});
+
+/**
+ * Recursively merge the given config objects representing the `scales` option
+ * by incorporating scale defaults in `xAxes` and `yAxes` array items, then
+ * returns a deep copy of the result, thus doesn't alter inputs.
+ */
+function mergeScaleConfig(/* config objects ... */) {
+	return helpers$1.merge({}, [].slice.call(arguments), {
+		merger: function(key, target, source, options) {
+			if (key === 'xAxes' || key === 'yAxes') {
+				var slen = source[key].length;
+				var i, type, scale;
+
+				if (!target[key]) {
+					target[key] = [];
+				}
+
+				for (i = 0; i < slen; ++i) {
+					scale = source[key][i];
+					type = valueOrDefault$9(scale.type, key === 'xAxes' ? 'category' : 'linear');
+
+					if (i >= target[key].length) {
+						target[key].push({});
+					}
+
+					if (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {
+						// new/untyped scale or type changed: let's apply the new defaults
+						// then merge source scale to correctly overwrite the defaults.
+						helpers$1.merge(target[key][i], [core_scaleService.getScaleDefaults(type), scale]);
+					} else {
+						// scales type are the same
+						helpers$1.merge(target[key][i], scale);
+					}
+				}
+			} else {
+				helpers$1._merger(key, target, source, options);
+			}
+		}
+	});
+}
+
+/**
+ * Recursively merge the given config objects as the root options by handling
+ * default scale options for the `scales` and `scale` properties, then returns
+ * a deep copy of the result, thus doesn't alter inputs.
+ */
+function mergeConfig(/* config objects ... */) {
+	return helpers$1.merge({}, [].slice.call(arguments), {
+		merger: function(key, target, source, options) {
+			var tval = target[key] || {};
+			var sval = source[key];
+
+			if (key === 'scales') {
+				// scale config merging is complex. Add our own function here for that
+				target[key] = mergeScaleConfig(tval, sval);
+			} else if (key === 'scale') {
+				// used in polar area & radar charts since there is only one scale
+				target[key] = helpers$1.merge(tval, [core_scaleService.getScaleDefaults(sval.type), sval]);
+			} else {
+				helpers$1._merger(key, target, source, options);
+			}
+		}
+	});
+}
+
+function initConfig(config) {
+	config = config || {};
+
+	// Do NOT use mergeConfig for the data object because this method merges arrays
+	// and so would change references to labels and datasets, preventing data updates.
+	var data = config.data = config.data || {};
+	data.datasets = data.datasets || [];
+	data.labels = data.labels || [];
+
+	config.options = mergeConfig(
+		core_defaults.global,
+		core_defaults[config.type],
+		config.options || {});
+
+	return config;
+}
+
+function updateConfig(chart) {
+	var newOptions = chart.options;
+
+	helpers$1.each(chart.scales, function(scale) {
+		core_layouts.removeBox(chart, scale);
+	});
+
+	newOptions = mergeConfig(
+		core_defaults.global,
+		core_defaults[chart.config.type],
+		newOptions);
+
+	chart.options = chart.config.options = newOptions;
+	chart.ensureScalesHaveIDs();
+	chart.buildOrUpdateScales();
+
+	// Tooltip
+	chart.tooltip._options = newOptions.tooltips;
+	chart.tooltip.initialize();
+}
+
+function nextAvailableScaleId(axesOpts, prefix, index) {
+	var id;
+	var hasId = function(obj) {
+		return obj.id === id;
+	};
+
+	do {
+		id = prefix + index++;
+	} while (helpers$1.findIndex(axesOpts, hasId) >= 0);
+
+	return id;
+}
+
+function positionIsHorizontal(position) {
+	return position === 'top' || position === 'bottom';
+}
+
+function compare2Level(l1, l2) {
+	return function(a, b) {
+		return a[l1] === b[l1]
+			? a[l2] - b[l2]
+			: a[l1] - b[l1];
+	};
+}
+
+var Chart = function(item, config) {
+	this.construct(item, config);
+	return this;
+};
+
+helpers$1.extend(Chart.prototype, /** @lends Chart */ {
+	/**
+	 * @private
+	 */
+	construct: function(item, config) {
+		var me = this;
+
+		config = initConfig(config);
+
+		var context = platform.acquireContext(item, config);
+		var canvas = context && context.canvas;
+		var height = canvas && canvas.height;
+		var width = canvas && canvas.width;
+
+		me.id = helpers$1.uid();
+		me.ctx = context;
+		me.canvas = canvas;
+		me.config = config;
+		me.width = width;
+		me.height = height;
+		me.aspectRatio = height ? width / height : null;
+		me.options = config.options;
+		me._bufferedRender = false;
+		me._layers = [];
+
+		/**
+		 * Provided for backward compatibility, Chart and Chart.Controller have been merged,
+		 * the "instance" still need to be defined since it might be called from plugins.
+		 * @prop Chart#chart
+		 * @deprecated since version 2.6.0
+		 * @todo remove at version 3
+		 * @private
+		 */
+		me.chart = me;
+		me.controller = me; // chart.chart.controller #inception
+
+		// Add the chart instance to the global namespace
+		Chart.instances[me.id] = me;
+
+		// Define alias to the config data: `chart.data === chart.config.data`
+		Object.defineProperty(me, 'data', {
+			get: function() {
+				return me.config.data;
+			},
+			set: function(value) {
+				me.config.data = value;
+			}
+		});
+
+		if (!context || !canvas) {
+			// The given item is not a compatible context2d element, let's return before finalizing
+			// the chart initialization but after setting basic chart / controller properties that
+			// can help to figure out that the chart is not valid (e.g chart.canvas !== null);
+			// https://github.com/chartjs/Chart.js/issues/2807
+			console.error("Failed to create chart: can't acquire context from the given item");
+			return;
+		}
+
+		me.initialize();
+		me.update();
+	},
+
+	/**
+	 * @private
+	 */
+	initialize: function() {
+		var me = this;
+
+		// Before init plugin notification
+		core_plugins.notify(me, 'beforeInit');
+
+		helpers$1.retinaScale(me, me.options.devicePixelRatio);
+
+		me.bindEvents();
+
+		if (me.options.responsive) {
+			// Initial resize before chart draws (must be silent to preserve initial animations).
+			me.resize(true);
+		}
+
+		me.initToolTip();
+
+		// After init plugin notification
+		core_plugins.notify(me, 'afterInit');
+
+		return me;
+	},
+
+	clear: function() {
+		helpers$1.canvas.clear(this);
+		return this;
+	},
+
+	stop: function() {
+		// Stops any current animation loop occurring
+		core_animations.cancelAnimation(this);
+		return this;
+	},
+
+	resize: function(silent) {
+		var me = this;
+		var options = me.options;
+		var canvas = me.canvas;
+		var aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;
+
+		// the canvas render width and height will be casted to integers so make sure that
+		// the canvas display style uses the same integer values to avoid blurring effect.
+
+		// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed
+		var newWidth = Math.max(0, Math.floor(helpers$1.getMaximumWidth(canvas)));
+		var newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers$1.getMaximumHeight(canvas)));
+
+		if (me.width === newWidth && me.height === newHeight) {
+			return;
+		}
+
+		canvas.width = me.width = newWidth;
+		canvas.height = me.height = newHeight;
+		canvas.style.width = newWidth + 'px';
+		canvas.style.height = newHeight + 'px';
+
+		helpers$1.retinaScale(me, options.devicePixelRatio);
+
+		if (!silent) {
+			// Notify any plugins about the resize
+			var newSize = {width: newWidth, height: newHeight};
+			core_plugins.notify(me, 'resize', [newSize]);
+
+			// Notify of resize
+			if (options.onResize) {
+				options.onResize(me, newSize);
+			}
+
+			me.stop();
+			me.update({
+				duration: options.responsiveAnimationDuration
+			});
+		}
+	},
+
+	ensureScalesHaveIDs: function() {
+		var options = this.options;
+		var scalesOptions = options.scales || {};
+		var scaleOptions = options.scale;
+
+		helpers$1.each(scalesOptions.xAxes, function(xAxisOptions, index) {
+			if (!xAxisOptions.id) {
+				xAxisOptions.id = nextAvailableScaleId(scalesOptions.xAxes, 'x-axis-', index);
+			}
+		});
+
+		helpers$1.each(scalesOptions.yAxes, function(yAxisOptions, index) {
+			if (!yAxisOptions.id) {
+				yAxisOptions.id = nextAvailableScaleId(scalesOptions.yAxes, 'y-axis-', index);
+			}
+		});
+
+		if (scaleOptions) {
+			scaleOptions.id = scaleOptions.id || 'scale';
+		}
+	},
+
+	/**
+	 * Builds a map of scale ID to scale object for future lookup.
+	 */
+	buildOrUpdateScales: function() {
+		var me = this;
+		var options = me.options;
+		var scales = me.scales || {};
+		var items = [];
+		var updated = Object.keys(scales).reduce(function(obj, id) {
+			obj[id] = false;
+			return obj;
+		}, {});
+
+		if (options.scales) {
+			items = items.concat(
+				(options.scales.xAxes || []).map(function(xAxisOptions) {
+					return {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};
+				}),
+				(options.scales.yAxes || []).map(function(yAxisOptions) {
+					return {options: yAxisOptions, dtype: 'linear', dposition: 'left'};
+				})
+			);
+		}
+
+		if (options.scale) {
+			items.push({
+				options: options.scale,
+				dtype: 'radialLinear',
+				isDefault: true,
+				dposition: 'chartArea'
+			});
+		}
+
+		helpers$1.each(items, function(item) {
+			var scaleOptions = item.options;
+			var id = scaleOptions.id;
+			var scaleType = valueOrDefault$9(scaleOptions.type, item.dtype);
+
+			if (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {
+				scaleOptions.position = item.dposition;
+			}
+
+			updated[id] = true;
+			var scale = null;
+			if (id in scales && scales[id].type === scaleType) {
+				scale = scales[id];
+				scale.options = scaleOptions;
+				scale.ctx = me.ctx;
+				scale.chart = me;
+			} else {
+				var scaleClass = core_scaleService.getScaleConstructor(scaleType);
+				if (!scaleClass) {
+					return;
+				}
+				scale = new scaleClass({
+					id: id,
+					type: scaleType,
+					options: scaleOptions,
+					ctx: me.ctx,
+					chart: me
+				});
+				scales[scale.id] = scale;
+			}
+
+			scale.mergeTicksOptions();
+
+			// TODO(SB): I think we should be able to remove this custom case (options.scale)
+			// and consider it as a regular scale part of the "scales"" map only! This would
+			// make the logic easier and remove some useless? custom code.
+			if (item.isDefault) {
+				me.scale = scale;
+			}
+		});
+		// clear up discarded scales
+		helpers$1.each(updated, function(hasUpdated, id) {
+			if (!hasUpdated) {
+				delete scales[id];
+			}
+		});
+
+		me.scales = scales;
+
+		core_scaleService.addScalesToLayout(this);
+	},
+
+	buildOrUpdateControllers: function() {
+		var me = this;
+		var newControllers = [];
+		var datasets = me.data.datasets;
+		var i, ilen;
+
+		for (i = 0, ilen = datasets.length; i < ilen; i++) {
+			var dataset = datasets[i];
+			var meta = me.getDatasetMeta(i);
+			var type = dataset.type || me.config.type;
+
+			if (meta.type && meta.type !== type) {
+				me.destroyDatasetMeta(i);
+				meta = me.getDatasetMeta(i);
+			}
+			meta.type = type;
+			meta.order = dataset.order || 0;
+			meta.index = i;
+
+			if (meta.controller) {
+				meta.controller.updateIndex(i);
+				meta.controller.linkScales();
+			} else {
+				var ControllerClass = controllers[meta.type];
+				if (ControllerClass === undefined) {
+					throw new Error('"' + meta.type + '" is not a chart type.');
+				}
+
+				meta.controller = new ControllerClass(me, i);
+				newControllers.push(meta.controller);
+			}
+		}
+
+		return newControllers;
+	},
+
+	/**
+	 * Reset the elements of all datasets
+	 * @private
+	 */
+	resetElements: function() {
+		var me = this;
+		helpers$1.each(me.data.datasets, function(dataset, datasetIndex) {
+			me.getDatasetMeta(datasetIndex).controller.reset();
+		}, me);
+	},
+
+	/**
+	* Resets the chart back to it's state before the initial animation
+	*/
+	reset: function() {
+		this.resetElements();
+		this.tooltip.initialize();
+	},
+
+	update: function(config) {
+		var me = this;
+		var i, ilen;
+
+		if (!config || typeof config !== 'object') {
+			// backwards compatibility
+			config = {
+				duration: config,
+				lazy: arguments[1]
+			};
+		}
+
+		updateConfig(me);
+
+		// plugins options references might have change, let's invalidate the cache
+		// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167
+		core_plugins._invalidate(me);
+
+		if (core_plugins.notify(me, 'beforeUpdate') === false) {
+			return;
+		}
+
+		// In case the entire data object changed
+		me.tooltip._data = me.data;
+
+		// Make sure dataset controllers are updated and new controllers are reset
+		var newControllers = me.buildOrUpdateControllers();
+
+		// Make sure all dataset controllers have correct meta data counts
+		for (i = 0, ilen = me.data.datasets.length; i < ilen; i++) {
+			me.getDatasetMeta(i).controller.buildOrUpdateElements();
+		}
+
+		me.updateLayout();
+
+		// Can only reset the new controllers after the scales have been updated
+		if (me.options.animation && me.options.animation.duration) {
+			helpers$1.each(newControllers, function(controller) {
+				controller.reset();
+			});
+		}
+
+		me.updateDatasets();
+
+		// Need to reset tooltip in case it is displayed with elements that are removed
+		// after update.
+		me.tooltip.initialize();
+
+		// Last active contains items that were previously in the tooltip.
+		// When we reset the tooltip, we need to clear it
+		me.lastActive = [];
+
+		// Do this before render so that any plugins that need final scale updates can use it
+		core_plugins.notify(me, 'afterUpdate');
+
+		me._layers.sort(compare2Level('z', '_idx'));
+
+		if (me._bufferedRender) {
+			me._bufferedRequest = {
+				duration: config.duration,
+				easing: config.easing,
+				lazy: config.lazy
+			};
+		} else {
+			me.render(config);
+		}
+	},
+
+	/**
+	 * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`
+	 * hook, in which case, plugins will not be called on `afterLayout`.
+	 * @private
+	 */
+	updateLayout: function() {
+		var me = this;
+
+		if (core_plugins.notify(me, 'beforeLayout') === false) {
+			return;
+		}
+
+		core_layouts.update(this, this.width, this.height);
+
+		me._layers = [];
+		helpers$1.each(me.boxes, function(box) {
+			// _configure is called twice, once in core.scale.update and once here.
+			// Here the boxes are fully updated and at their final positions.
+			if (box._configure) {
+				box._configure();
+			}
+			me._layers.push.apply(me._layers, box._layers());
+		}, me);
+
+		me._layers.forEach(function(item, index) {
+			item._idx = index;
+		});
+
+		/**
+		 * Provided for backward compatibility, use `afterLayout` instead.
+		 * @method IPlugin#afterScaleUpdate
+		 * @deprecated since version 2.5.0
+		 * @todo remove at version 3
+		 * @private
+		 */
+		core_plugins.notify(me, 'afterScaleUpdate');
+		core_plugins.notify(me, 'afterLayout');
+	},
+
+	/**
+	 * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`
+	 * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.
+	 * @private
+	 */
+	updateDatasets: function() {
+		var me = this;
 
-                        value = Math.round(value / 50);
+		if (core_plugins.notify(me, 'beforeDatasetsUpdate') === false) {
+			return;
+		}
 
-                        if (value === 0) {
-                            return 30;
-                        }
+		for (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {
+			me.updateDataset(i);
+		}
 
-                        var ansi = 30
-                            + ((Math.round(b / 255) << 2)
-                                | (Math.round(g / 255) << 1)
-                                | Math.round(r / 255));
+		core_plugins.notify(me, 'afterDatasetsUpdate');
+	},
 
-                        if (value === 2) {
-                            ansi += 60;
-                        }
+	/**
+	 * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`
+	 * hook, in which case, plugins will not be called on `afterDatasetUpdate`.
+	 * @private
+	 */
+	updateDataset: function(index) {
+		var me = this;
+		var meta = me.getDatasetMeta(index);
+		var args = {
+			meta: meta,
+			index: index
+		};
+
+		if (core_plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {
+			return;
+		}
 
-                        return ansi;
-                    };
-
-                    convert.hsv.ansi16 = function (args) {
-                        // optimization here; we already know the value and don't need to get
-                        // it converted for us.
-                        return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
-                    };
-
-                    convert.rgb.ansi256 = function (args) {
-                        var r = args[0];
-                        var g = args[1];
-                        var b = args[2];
-
-                        // we use the extended greyscale palette here, with the exception of
-                        // black and white. normal palette only has 4 greyscale shades.
-                        if (r === g && g === b) {
-                            if (r < 8) {
-                                return 16;
-                            }
+		meta.controller._update();
 
-                            if (r > 248) {
-                                return 231;
-                            }
+		core_plugins.notify(me, 'afterDatasetUpdate', [args]);
+	},
 
-                            return Math.round(((r - 8) / 247) * 24) + 232;
-                        }
+	render: function(config) {
+		var me = this;
 
-                        var ansi = 16
-                            + (36 * Math.round(r / 255 * 5))
-                            + (6 * Math.round(g / 255 * 5))
-                            + Math.round(b / 255 * 5);
+		if (!config || typeof config !== 'object') {
+			// backwards compatibility
+			config = {
+				duration: config,
+				lazy: arguments[1]
+			};
+		}
 
-                        return ansi;
-                    };
+		var animationOptions = me.options.animation;
+		var duration = valueOrDefault$9(config.duration, animationOptions && animationOptions.duration);
+		var lazy = config.lazy;
 
-                    convert.ansi16.rgb = function (args) {
-                        var color = args % 10;
+		if (core_plugins.notify(me, 'beforeRender') === false) {
+			return;
+		}
 
-                        // handle greyscale
-                        if (color === 0 || color === 7) {
-                            if (args > 50) {
-                                color += 3.5;
-                            }
+		var onComplete = function(animation) {
+			core_plugins.notify(me, 'afterRender');
+			helpers$1.callback(animationOptions && animationOptions.onComplete, [animation], me);
+		};
 
-                            color = color / 10.5 * 255;
+		if (animationOptions && duration) {
+			var animation = new core_animation({
+				numSteps: duration / 16.66, // 60 fps
+				easing: config.easing || animationOptions.easing,
 
-                            return [color, color, color];
-                        }
+				render: function(chart, animationObject) {
+					var easingFunction = helpers$1.easing.effects[animationObject.easing];
+					var currentStep = animationObject.currentStep;
+					var stepDecimal = currentStep / animationObject.numSteps;
 
-                        var mult = (~~(args > 50) + 1) * 0.5;
-                        var r = ((color & 1) * mult) * 255;
-                        var g = (((color >> 1) & 1) * mult) * 255;
-                        var b = (((color >> 2) & 1) * mult) * 255;
+					chart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);
+				},
 
-                        return [r, g, b];
-                    };
+				onAnimationProgress: animationOptions.onProgress,
+				onAnimationComplete: onComplete
+			});
 
-                    convert.ansi256.rgb = function (args) {
-                        // handle greyscale
-                        if (args >= 232) {
-                            var c = (args - 232) * 10 + 8;
-                            return [c, c, c];
-                        }
+			core_animations.addAnimation(me, animation, duration, lazy);
+		} else {
+			me.draw();
 
-                        args -= 16;
+			// See https://github.com/chartjs/Chart.js/issues/3781
+			onComplete(new core_animation({numSteps: 0, chart: me}));
+		}
 
-                        var rem;
-                        var r = Math.floor(args / 36) / 5 * 255;
-                        var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
-                        var b = (rem % 6) / 5 * 255;
+		return me;
+	},
 
-                        return [r, g, b];
-                    };
+	draw: function(easingValue) {
+		var me = this;
+		var i, layers;
 
-                    convert.rgb.hex = function (args) {
-                        var integer = ((Math.round(args[0]) & 0xFF) << 16)
-                            + ((Math.round(args[1]) & 0xFF) << 8)
-                            + (Math.round(args[2]) & 0xFF);
+		me.clear();
 
-                        var string = integer.toString(16).toUpperCase();
-                        return '000000'.substring(string.length) + string;
-                    };
+		if (helpers$1.isNullOrUndef(easingValue)) {
+			easingValue = 1;
+		}
 
-                    convert.hex.rgb = function (args) {
-                        var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
-                        if (!match) {
-                            return [0, 0, 0];
-                        }
+		me.transition(easingValue);
 
-                        var colorString = match[0];
+		if (me.width <= 0 || me.height <= 0) {
+			return;
+		}
 
-                        if (match[0].length === 3) {
-                            colorString = colorString.split('').map(function (char) {
-                                return char + char;
-                            }).join('');
-                        }
+		if (core_plugins.notify(me, 'beforeDraw', [easingValue]) === false) {
+			return;
+		}
 
-                        var integer = parseInt(colorString, 16);
-                        var r = (integer >> 16) & 0xFF;
-                        var g = (integer >> 8) & 0xFF;
-                        var b = integer & 0xFF;
-
-                        return [r, g, b];
-                    };
-
-                    convert.rgb.hcg = function (rgb) {
-                        var r = rgb[0] / 255;
-                        var g = rgb[1] / 255;
-                        var b = rgb[2] / 255;
-                        var max = Math.max(Math.max(r, g), b);
-                        var min = Math.min(Math.min(r, g), b);
-                        var chroma = (max - min);
-                        var grayscale;
-                        var hue;
-
-                        if (chroma < 1) {
-                            grayscale = min / (1 - chroma);
-                        } else {
-                            grayscale = 0;
-                        }
+		// Because of plugin hooks (before/afterDatasetsDraw), datasets can't
+		// currently be part of layers. Instead, we draw
+		// layers <= 0 before(default, backward compat), and the rest after
+		layers = me._layers;
+		for (i = 0; i < layers.length && layers[i].z <= 0; ++i) {
+			layers[i].draw(me.chartArea);
+		}
 
-                        if (chroma <= 0) {
-                            hue = 0;
-                        } else
-                        if (max === r) {
-                            hue = ((g - b) / chroma) % 6;
-                        } else
-                        if (max === g) {
-                            hue = 2 + (b - r) / chroma;
-                        } else {
-                            hue = 4 + (r - g) / chroma + 4;
-                        }
+		me.drawDatasets(easingValue);
 
-                        hue /= 6;
-                        hue %= 1;
+		// Rest of layers
+		for (; i < layers.length; ++i) {
+			layers[i].draw(me.chartArea);
+		}
 
-                        return [hue * 360, chroma * 100, grayscale * 100];
-                    };
+		me._drawTooltip(easingValue);
 
-                    convert.hsl.hcg = function (hsl) {
-                        var s = hsl[1] / 100;
-                        var l = hsl[2] / 100;
-                        var c = 1;
-                        var f = 0;
+		core_plugins.notify(me, 'afterDraw', [easingValue]);
+	},
 
-                        if (l < 0.5) {
-                            c = 2.0 * s * l;
-                        } else {
-                            c = 2.0 * s * (1.0 - l);
-                        }
+	/**
+	 * @private
+	 */
+	transition: function(easingValue) {
+		var me = this;
 
-                        if (c < 1.0) {
-                            f = (l - 0.5 * c) / (1.0 - c);
-                        }
+		for (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {
+			if (me.isDatasetVisible(i)) {
+				me.getDatasetMeta(i).controller.transition(easingValue);
+			}
+		}
 
-                        return [hsl[0], c * 100, f * 100];
-                    };
+		me.tooltip.transition(easingValue);
+	},
 
-                    convert.hsv.hcg = function (hsv) {
-                        var s = hsv[1] / 100;
-                        var v = hsv[2] / 100;
+	/**
+	 * @private
+	 */
+	_getSortedDatasetMetas: function(filterVisible) {
+		var me = this;
+		var datasets = me.data.datasets || [];
+		var result = [];
+		var i, ilen;
 
-                        var c = s * v;
-                        var f = 0;
+		for (i = 0, ilen = datasets.length; i < ilen; ++i) {
+			if (!filterVisible || me.isDatasetVisible(i)) {
+				result.push(me.getDatasetMeta(i));
+			}
+		}
 
-                        if (c < 1.0) {
-                            f = (v - c) / (1 - c);
-                        }
+		result.sort(compare2Level('order', 'index'));
 
-                        return [hsv[0], c * 100, f * 100];
-                    };
+		return result;
+	},
 
-                    convert.hcg.rgb = function (hcg) {
-                        var h = hcg[0] / 360;
-                        var c = hcg[1] / 100;
-                        var g = hcg[2] / 100;
+	/**
+	 * @private
+	 */
+	_getSortedVisibleDatasetMetas: function() {
+		return this._getSortedDatasetMetas(true);
+	},
+
+	/**
+	 * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`
+	 * hook, in which case, plugins will not be called on `afterDatasetsDraw`.
+	 * @private
+	 */
+	drawDatasets: function(easingValue) {
+		var me = this;
+		var metasets, i;
+
+		if (core_plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {
+			return;
+		}
+
+		metasets = me._getSortedVisibleDatasetMetas();
+		for (i = metasets.length - 1; i >= 0; --i) {
+			me.drawDataset(metasets[i], easingValue);
+		}
+
+		core_plugins.notify(me, 'afterDatasetsDraw', [easingValue]);
+	},
+
+	/**
+	 * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`
+	 * hook, in which case, plugins will not be called on `afterDatasetDraw`.
+	 * @private
+	 */
+	drawDataset: function(meta, easingValue) {
+		var me = this;
+		var args = {
+			meta: meta,
+			index: meta.index,
+			easingValue: easingValue
+		};
+
+		if (core_plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {
+			return;
+		}
+
+		meta.controller.draw(easingValue);
+
+		core_plugins.notify(me, 'afterDatasetDraw', [args]);
+	},
+
+	/**
+	 * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`
+	 * hook, in which case, plugins will not be called on `afterTooltipDraw`.
+	 * @private
+	 */
+	_drawTooltip: function(easingValue) {
+		var me = this;
+		var tooltip = me.tooltip;
+		var args = {
+			tooltip: tooltip,
+			easingValue: easingValue
+		};
+
+		if (core_plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {
+			return;
+		}
+
+		tooltip.draw();
+
+		core_plugins.notify(me, 'afterTooltipDraw', [args]);
+	},
+
+	/**
+	 * Get the single element that was clicked on
+	 * @return An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw
+	 */
+	getElementAtEvent: function(e) {
+		return core_interaction.modes.single(this, e);
+	},
+
+	getElementsAtEvent: function(e) {
+		return core_interaction.modes.label(this, e, {intersect: true});
+	},
+
+	getElementsAtXAxis: function(e) {
+		return core_interaction.modes['x-axis'](this, e, {intersect: true});
+	},
+
+	getElementsAtEventForMode: function(e, mode, options) {
+		var method = core_interaction.modes[mode];
+		if (typeof method === 'function') {
+			return method(this, e, options);
+		}
+
+		return [];
+	},
+
+	getDatasetAtEvent: function(e) {
+		return core_interaction.modes.dataset(this, e, {intersect: true});
+	},
+
+	getDatasetMeta: function(datasetIndex) {
+		var me = this;
+		var dataset = me.data.datasets[datasetIndex];
+		if (!dataset._meta) {
+			dataset._meta = {};
+		}
+
+		var meta = dataset._meta[me.id];
+		if (!meta) {
+			meta = dataset._meta[me.id] = {
+				type: null,
+				data: [],
+				dataset: null,
+				controller: null,
+				hidden: null,			// See isDatasetVisible() comment
+				xAxisID: null,
+				yAxisID: null,
+				order: dataset.order || 0,
+				index: datasetIndex
+			};
+		}
+
+		return meta;
+	},
+
+	getVisibleDatasetCount: function() {
+		var count = 0;
+		for (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {
+			if (this.isDatasetVisible(i)) {
+				count++;
+			}
+		}
+		return count;
+	},
+
+	isDatasetVisible: function(datasetIndex) {
+		var meta = this.getDatasetMeta(datasetIndex);
+
+		// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,
+		// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.
+		return typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;
+	},
+
+	generateLegend: function() {
+		return this.options.legendCallback(this);
+	},
+
+	/**
+	 * @private
+	 */
+	destroyDatasetMeta: function(datasetIndex) {
+		var id = this.id;
+		var dataset = this.data.datasets[datasetIndex];
+		var meta = dataset._meta && dataset._meta[id];
+
+		if (meta) {
+			meta.controller.destroy();
+			delete dataset._meta[id];
+		}
+	},
+
+	destroy: function() {
+		var me = this;
+		var canvas = me.canvas;
+		var i, ilen;
+
+		me.stop();
+
+		// dataset controllers need to cleanup associated data
+		for (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {
+			me.destroyDatasetMeta(i);
+		}
+
+		if (canvas) {
+			me.unbindEvents();
+			helpers$1.canvas.clear(me);
+			platform.releaseContext(me.ctx);
+			me.canvas = null;
+			me.ctx = null;
+		}
+
+		core_plugins.notify(me, 'destroy');
+
+		delete Chart.instances[me.id];
+	},
+
+	toBase64Image: function() {
+		return this.canvas.toDataURL.apply(this.canvas, arguments);
+	},
+
+	initToolTip: function() {
+		var me = this;
+		me.tooltip = new core_tooltip({
+			_chart: me,
+			_chartInstance: me, // deprecated, backward compatibility
+			_data: me.data,
+			_options: me.options.tooltips
+		}, me);
+	},
+
+	/**
+	 * @private
+	 */
+	bindEvents: function() {
+		var me = this;
+		var listeners = me._listeners = {};
+		var listener = function() {
+			me.eventHandler.apply(me, arguments);
+		};
+
+		helpers$1.each(me.options.events, function(type) {
+			platform.addEventListener(me, type, listener);
+			listeners[type] = listener;
+		});
+
+		// Elements used to detect size change should not be injected for non responsive charts.
+		// See https://github.com/chartjs/Chart.js/issues/2210
+		if (me.options.responsive) {
+			listener = function() {
+				me.resize();
+			};
+
+			platform.addEventListener(me, 'resize', listener);
+			listeners.resize = listener;
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	unbindEvents: function() {
+		var me = this;
+		var listeners = me._listeners;
+		if (!listeners) {
+			return;
+		}
+
+		delete me._listeners;
+		helpers$1.each(listeners, function(listener, type) {
+			platform.removeEventListener(me, type, listener);
+		});
+	},
+
+	updateHoverStyle: function(elements, mode, enabled) {
+		var prefix = enabled ? 'set' : 'remove';
+		var element, i, ilen;
+
+		for (i = 0, ilen = elements.length; i < ilen; ++i) {
+			element = elements[i];
+			if (element) {
+				this.getDatasetMeta(element._datasetIndex).controller[prefix + 'HoverStyle'](element);
+			}
+		}
+
+		if (mode === 'dataset') {
+			this.getDatasetMeta(elements[0]._datasetIndex).controller['_' + prefix + 'DatasetHoverStyle']();
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	eventHandler: function(e) {
+		var me = this;
+		var tooltip = me.tooltip;
+
+		if (core_plugins.notify(me, 'beforeEvent', [e]) === false) {
+			return;
+		}
+
+		// Buffer any update calls so that renders do not occur
+		me._bufferedRender = true;
+		me._bufferedRequest = null;
+
+		var changed = me.handleEvent(e);
+		// for smooth tooltip animations issue #4989
+		// the tooltip should be the source of change
+		// Animation check workaround:
+		// tooltip._start will be null when tooltip isn't animating
+		if (tooltip) {
+			changed = tooltip._start
+				? tooltip.handleEvent(e)
+				: changed | tooltip.handleEvent(e);
+		}
+
+		core_plugins.notify(me, 'afterEvent', [e]);
+
+		var bufferedRequest = me._bufferedRequest;
+		if (bufferedRequest) {
+			// If we have an update that was triggered, we need to do a normal render
+			me.render(bufferedRequest);
+		} else if (changed && !me.animating) {
+			// If entering, leaving, or changing elements, animate the change via pivot
+			me.stop();
+
+			// We only need to render at this point. Updating will cause scales to be
+			// recomputed generating flicker & using more memory than necessary.
+			me.render({
+				duration: me.options.hover.animationDuration,
+				lazy: true
+			});
+		}
+
+		me._bufferedRender = false;
+		me._bufferedRequest = null;
+
+		return me;
+	},
+
+	/**
+	 * Handle an event
+	 * @private
+	 * @param {IEvent} event the event to handle
+	 * @return {boolean} true if the chart needs to re-render
+	 */
+	handleEvent: function(e) {
+		var me = this;
+		var options = me.options || {};
+		var hoverOptions = options.hover;
+		var changed = false;
+
+		me.lastActive = me.lastActive || [];
+
+		// Find Active Elements for hover and tooltips
+		if (e.type === 'mouseout') {
+			me.active = [];
+		} else {
+			me.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);
+		}
+
+		// Invoke onHover hook
+		// Need to call with native event here to not break backwards compatibility
+		helpers$1.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);
+
+		if (e.type === 'mouseup' || e.type === 'click') {
+			if (options.onClick) {
+				// Use e.native here for backwards compatibility
+				options.onClick.call(me, e.native, me.active);
+			}
+		}
+
+		// Remove styling for last active (even if it may still be active)
+		if (me.lastActive.length) {
+			me.updateHoverStyle(me.lastActive, hoverOptions.mode, false);
+		}
+
+		// Built in hover styling
+		if (me.active.length && hoverOptions.mode) {
+			me.updateHoverStyle(me.active, hoverOptions.mode, true);
+		}
+
+		changed = !helpers$1.arrayEquals(me.active, me.lastActive);
+
+		// Remember Last Actives
+		me.lastActive = me.active;
+
+		return changed;
+	}
+});
+
+/**
+ * NOTE(SB) We actually don't use this container anymore but we need to keep it
+ * for backward compatibility. Though, it can still be useful for plugins that
+ * would need to work on multiple charts?!
+ */
+Chart.instances = {};
 
-                        if (c === 0.0) {
-                            return [g * 255, g * 255, g * 255];
-                        }
+var core_controller = Chart;
 
-                        var pure = [0, 0, 0];
-                        var hi = (h % 1) * 6;
-                        var v = hi % 1;
-                        var w = 1 - v;
-                        var mg = 0;
-
-                        switch (Math.floor(hi)) {
-                            case 0:
-                                pure[0] = 1; pure[1] = v; pure[2] = 0; break;
-                            case 1:
-                                pure[0] = w; pure[1] = 1; pure[2] = 0; break;
-                            case 2:
-                                pure[0] = 0; pure[1] = 1; pure[2] = v; break;
-                            case 3:
-                                pure[0] = 0; pure[1] = w; pure[2] = 1; break;
-                            case 4:
-                                pure[0] = v; pure[1] = 0; pure[2] = 1; break;
-                            default:
-                                pure[0] = 1; pure[1] = 0; pure[2] = w;
-                        }
+// DEPRECATIONS
 
-                        mg = (1.0 - c) * g;
+/**
+ * Provided for backward compatibility, use Chart instead.
+ * @class Chart.Controller
+ * @deprecated since version 2.6
+ * @todo remove at version 3
+ * @private
+ */
+Chart.Controller = Chart;
+
+/**
+ * Provided for backward compatibility, not available anymore.
+ * @namespace Chart
+ * @deprecated since version 2.8
+ * @todo remove at version 3
+ * @private
+ */
+Chart.types = {};
+
+/**
+ * Provided for backward compatibility, not available anymore.
+ * @namespace Chart.helpers.configMerge
+ * @deprecated since version 2.8.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers$1.configMerge = mergeConfig;
+
+/**
+ * Provided for backward compatibility, not available anymore.
+ * @namespace Chart.helpers.scaleMerge
+ * @deprecated since version 2.8.0
+ * @todo remove at version 3
+ * @private
+ */
+helpers$1.scaleMerge = mergeScaleConfig;
+
+var core_helpers = function() {
+
+	// -- Basic js utility methods
+
+	helpers$1.where = function(collection, filterCallback) {
+		if (helpers$1.isArray(collection) && Array.prototype.filter) {
+			return collection.filter(filterCallback);
+		}
+		var filtered = [];
+
+		helpers$1.each(collection, function(item) {
+			if (filterCallback(item)) {
+				filtered.push(item);
+			}
+		});
+
+		return filtered;
+	};
+	helpers$1.findIndex = Array.prototype.findIndex ?
+		function(array, callback, scope) {
+			return array.findIndex(callback, scope);
+		} :
+		function(array, callback, scope) {
+			scope = scope === undefined ? array : scope;
+			for (var i = 0, ilen = array.length; i < ilen; ++i) {
+				if (callback.call(scope, array[i], i, array)) {
+					return i;
+				}
+			}
+			return -1;
+		};
+	helpers$1.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {
+		// Default to start of the array
+		if (helpers$1.isNullOrUndef(startIndex)) {
+			startIndex = -1;
+		}
+		for (var i = startIndex + 1; i < arrayToSearch.length; i++) {
+			var currentItem = arrayToSearch[i];
+			if (filterCallback(currentItem)) {
+				return currentItem;
+			}
+		}
+	};
+	helpers$1.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {
+		// Default to end of the array
+		if (helpers$1.isNullOrUndef(startIndex)) {
+			startIndex = arrayToSearch.length;
+		}
+		for (var i = startIndex - 1; i >= 0; i--) {
+			var currentItem = arrayToSearch[i];
+			if (filterCallback(currentItem)) {
+				return currentItem;
+			}
+		}
+	};
+
+	// -- Math methods
+	helpers$1.isNumber = function(n) {
+		return !isNaN(parseFloat(n)) && isFinite(n);
+	};
+	helpers$1.almostEquals = function(x, y, epsilon) {
+		return Math.abs(x - y) < epsilon;
+	};
+	helpers$1.almostWhole = function(x, epsilon) {
+		var rounded = Math.round(x);
+		return ((rounded - epsilon) <= x) && ((rounded + epsilon) >= x);
+	};
+	helpers$1.max = function(array) {
+		return array.reduce(function(max, value) {
+			if (!isNaN(value)) {
+				return Math.max(max, value);
+			}
+			return max;
+		}, Number.NEGATIVE_INFINITY);
+	};
+	helpers$1.min = function(array) {
+		return array.reduce(function(min, value) {
+			if (!isNaN(value)) {
+				return Math.min(min, value);
+			}
+			return min;
+		}, Number.POSITIVE_INFINITY);
+	};
+	helpers$1.sign = Math.sign ?
+		function(x) {
+			return Math.sign(x);
+		} :
+		function(x) {
+			x = +x; // convert to a number
+			if (x === 0 || isNaN(x)) {
+				return x;
+			}
+			return x > 0 ? 1 : -1;
+		};
+	helpers$1.toRadians = function(degrees) {
+		return degrees * (Math.PI / 180);
+	};
+	helpers$1.toDegrees = function(radians) {
+		return radians * (180 / Math.PI);
+	};
+
+	/**
+	 * Returns the number of decimal places
+	 * i.e. the number of digits after the decimal point, of the value of this Number.
+	 * @param {number} x - A number.
+	 * @returns {number} The number of decimal places.
+	 * @private
+	 */
+	helpers$1._decimalPlaces = function(x) {
+		if (!helpers$1.isFinite(x)) {
+			return;
+		}
+		var e = 1;
+		var p = 0;
+		while (Math.round(x * e) / e !== x) {
+			e *= 10;
+			p++;
+		}
+		return p;
+	};
+
+	// Gets the angle from vertical upright to the point about a centre.
+	helpers$1.getAngleFromPoint = function(centrePoint, anglePoint) {
+		var distanceFromXCenter = anglePoint.x - centrePoint.x;
+		var distanceFromYCenter = anglePoint.y - centrePoint.y;
+		var radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);
+
+		var angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);
+
+		if (angle < (-0.5 * Math.PI)) {
+			angle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]
+		}
+
+		return {
+			angle: angle,
+			distance: radialDistanceFromCenter
+		};
+	};
+	helpers$1.distanceBetweenPoints = function(pt1, pt2) {
+		return Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));
+	};
+
+	/**
+	 * Provided for backward compatibility, not available anymore
+	 * @function Chart.helpers.aliasPixel
+	 * @deprecated since version 2.8.0
+	 * @todo remove at version 3
+	 */
+	helpers$1.aliasPixel = function(pixelWidth) {
+		return (pixelWidth % 2 === 0) ? 0 : 0.5;
+	};
+
+	/**
+	 * Returns the aligned pixel value to avoid anti-aliasing blur
+	 * @param {Chart} chart - The chart instance.
+	 * @param {number} pixel - A pixel value.
+	 * @param {number} width - The width of the element.
+	 * @returns {number} The aligned pixel value.
+	 * @private
+	 */
+	helpers$1._alignPixel = function(chart, pixel, width) {
+		var devicePixelRatio = chart.currentDevicePixelRatio;
+		var halfWidth = width / 2;
+		return Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;
+	};
+
+	helpers$1.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {
+		// Props to Rob Spencer at scaled innovation for his post on splining between points
+		// http://scaledinnovation.com/analytics/splines/aboutSplines.html
+
+		// This function must also respect "skipped" points
+
+		var previous = firstPoint.skip ? middlePoint : firstPoint;
+		var current = middlePoint;
+		var next = afterPoint.skip ? middlePoint : afterPoint;
+
+		var d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));
+		var d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));
+
+		var s01 = d01 / (d01 + d12);
+		var s12 = d12 / (d01 + d12);
+
+		// If all points are the same, s01 & s02 will be inf
+		s01 = isNaN(s01) ? 0 : s01;
+		s12 = isNaN(s12) ? 0 : s12;
+
+		var fa = t * s01; // scaling factor for triangle Ta
+		var fb = t * s12;
+
+		return {
+			previous: {
+				x: current.x - fa * (next.x - previous.x),
+				y: current.y - fa * (next.y - previous.y)
+			},
+			next: {
+				x: current.x + fb * (next.x - previous.x),
+				y: current.y + fb * (next.y - previous.y)
+			}
+		};
+	};
+	helpers$1.EPSILON = Number.EPSILON || 1e-14;
+	helpers$1.splineCurveMonotone = function(points) {
+		// This function calculates Bézier control points in a similar way than |splineCurve|,
+		// but preserves monotonicity of the provided data and ensures no local extremums are added
+		// between the dataset discrete points due to the interpolation.
+		// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation
+
+		var pointsWithTangents = (points || []).map(function(point) {
+			return {
+				model: point._model,
+				deltaK: 0,
+				mK: 0
+			};
+		});
+
+		// Calculate slopes (deltaK) and initialize tangents (mK)
+		var pointsLen = pointsWithTangents.length;
+		var i, pointBefore, pointCurrent, pointAfter;
+		for (i = 0; i < pointsLen; ++i) {
+			pointCurrent = pointsWithTangents[i];
+			if (pointCurrent.model.skip) {
+				continue;
+			}
+
+			pointBefore = i > 0 ? pointsWithTangents[i - 1] : null;
+			pointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;
+			if (pointAfter && !pointAfter.model.skip) {
+				var slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);
+
+				// In the case of two points that appear at the same x pixel, slopeDeltaX is 0
+				pointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;
+			}
+
+			if (!pointBefore || pointBefore.model.skip) {
+				pointCurrent.mK = pointCurrent.deltaK;
+			} else if (!pointAfter || pointAfter.model.skip) {
+				pointCurrent.mK = pointBefore.deltaK;
+			} else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {
+				pointCurrent.mK = 0;
+			} else {
+				pointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;
+			}
+		}
+
+		// Adjust tangents to ensure monotonic properties
+		var alphaK, betaK, tauK, squaredMagnitude;
+		for (i = 0; i < pointsLen - 1; ++i) {
+			pointCurrent = pointsWithTangents[i];
+			pointAfter = pointsWithTangents[i + 1];
+			if (pointCurrent.model.skip || pointAfter.model.skip) {
+				continue;
+			}
+
+			if (helpers$1.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {
+				pointCurrent.mK = pointAfter.mK = 0;
+				continue;
+			}
+
+			alphaK = pointCurrent.mK / pointCurrent.deltaK;
+			betaK = pointAfter.mK / pointCurrent.deltaK;
+			squaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);
+			if (squaredMagnitude <= 9) {
+				continue;
+			}
+
+			tauK = 3 / Math.sqrt(squaredMagnitude);
+			pointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;
+			pointAfter.mK = betaK * tauK * pointCurrent.deltaK;
+		}
+
+		// Compute control points
+		var deltaX;
+		for (i = 0; i < pointsLen; ++i) {
+			pointCurrent = pointsWithTangents[i];
+			if (pointCurrent.model.skip) {
+				continue;
+			}
+
+			pointBefore = i > 0 ? pointsWithTangents[i - 1] : null;
+			pointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;
+			if (pointBefore && !pointBefore.model.skip) {
+				deltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;
+				pointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;
+				pointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;
+			}
+			if (pointAfter && !pointAfter.model.skip) {
+				deltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;
+				pointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;
+				pointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;
+			}
+		}
+	};
+	helpers$1.nextItem = function(collection, index, loop) {
+		if (loop) {
+			return index >= collection.length - 1 ? collection[0] : collection[index + 1];
+		}
+		return index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];
+	};
+	helpers$1.previousItem = function(collection, index, loop) {
+		if (loop) {
+			return index <= 0 ? collection[collection.length - 1] : collection[index - 1];
+		}
+		return index <= 0 ? collection[0] : collection[index - 1];
+	};
+	// Implementation of the nice number algorithm used in determining where axis labels will go
+	helpers$1.niceNum = function(range, round) {
+		var exponent = Math.floor(helpers$1.log10(range));
+		var fraction = range / Math.pow(10, exponent);
+		var niceFraction;
+
+		if (round) {
+			if (fraction < 1.5) {
+				niceFraction = 1;
+			} else if (fraction < 3) {
+				niceFraction = 2;
+			} else if (fraction < 7) {
+				niceFraction = 5;
+			} else {
+				niceFraction = 10;
+			}
+		} else if (fraction <= 1.0) {
+			niceFraction = 1;
+		} else if (fraction <= 2) {
+			niceFraction = 2;
+		} else if (fraction <= 5) {
+			niceFraction = 5;
+		} else {
+			niceFraction = 10;
+		}
+
+		return niceFraction * Math.pow(10, exponent);
+	};
+	// Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
+	helpers$1.requestAnimFrame = (function() {
+		if (typeof window === 'undefined') {
+			return function(callback) {
+				callback();
+			};
+		}
+		return window.requestAnimationFrame ||
+			window.webkitRequestAnimationFrame ||
+			window.mozRequestAnimationFrame ||
+			window.oRequestAnimationFrame ||
+			window.msRequestAnimationFrame ||
+			function(callback) {
+				return window.setTimeout(callback, 1000 / 60);
+			};
+	}());
+	// -- DOM methods
+	helpers$1.getRelativePosition = function(evt, chart) {
+		var mouseX, mouseY;
+		var e = evt.originalEvent || evt;
+		var canvas = evt.target || evt.srcElement;
+		var boundingRect = canvas.getBoundingClientRect();
+
+		var touches = e.touches;
+		if (touches && touches.length > 0) {
+			mouseX = touches[0].clientX;
+			mouseY = touches[0].clientY;
+
+		} else {
+			mouseX = e.clientX;
+			mouseY = e.clientY;
+		}
+
+		// Scale mouse coordinates into canvas coordinates
+		// by following the pattern laid out by 'jerryj' in the comments of
+		// https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
+		var paddingLeft = parseFloat(helpers$1.getStyle(canvas, 'padding-left'));
+		var paddingTop = parseFloat(helpers$1.getStyle(canvas, 'padding-top'));
+		var paddingRight = parseFloat(helpers$1.getStyle(canvas, 'padding-right'));
+		var paddingBottom = parseFloat(helpers$1.getStyle(canvas, 'padding-bottom'));
+		var width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;
+		var height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;
+
+		// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However
+		// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here
+		mouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);
+		mouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);
+
+		return {
+			x: mouseX,
+			y: mouseY
+		};
+
+	};
+
+	// Private helper function to convert max-width/max-height values that may be percentages into a number
+	function parseMaxStyle(styleValue, node, parentProperty) {
+		var valueInPixels;
+		if (typeof styleValue === 'string') {
+			valueInPixels = parseInt(styleValue, 10);
+
+			if (styleValue.indexOf('%') !== -1) {
+				// percentage * size in dimension
+				valueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];
+			}
+		} else {
+			valueInPixels = styleValue;
+		}
+
+		return valueInPixels;
+	}
+
+	/**
+	 * Returns if the given value contains an effective constraint.
+	 * @private
+	 */
+	function isConstrainedValue(value) {
+		return value !== undefined && value !== null && value !== 'none';
+	}
+
+	/**
+	 * Returns the max width or height of the given DOM node in a cross-browser compatible fashion
+	 * @param {HTMLElement} domNode - the node to check the constraint on
+	 * @param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')
+	 * @param {string} percentageProperty - property of parent to use when calculating width as a percentage
+	 * @see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}
+	 */
+	function getConstraintDimension(domNode, maxStyle, percentageProperty) {
+		var view = document.defaultView;
+		var parentNode = helpers$1._getParentNode(domNode);
+		var constrainedNode = view.getComputedStyle(domNode)[maxStyle];
+		var constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];
+		var hasCNode = isConstrainedValue(constrainedNode);
+		var hasCContainer = isConstrainedValue(constrainedContainer);
+		var infinity = Number.POSITIVE_INFINITY;
+
+		if (hasCNode || hasCContainer) {
+			return Math.min(
+				hasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,
+				hasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);
+		}
+
+		return 'none';
+	}
+	// returns Number or undefined if no constraint
+	helpers$1.getConstraintWidth = function(domNode) {
+		return getConstraintDimension(domNode, 'max-width', 'clientWidth');
+	};
+	// returns Number or undefined if no constraint
+	helpers$1.getConstraintHeight = function(domNode) {
+		return getConstraintDimension(domNode, 'max-height', 'clientHeight');
+	};
+	/**
+	 * @private
+ 	 */
+	helpers$1._calculatePadding = function(container, padding, parentDimension) {
+		padding = helpers$1.getStyle(container, padding);
+
+		return padding.indexOf('%') > -1 ? parentDimension * parseInt(padding, 10) / 100 : parseInt(padding, 10);
+	};
+	/**
+	 * @private
+	 */
+	helpers$1._getParentNode = function(domNode) {
+		var parent = domNode.parentNode;
+		if (parent && parent.toString() === '[object ShadowRoot]') {
+			parent = parent.host;
+		}
+		return parent;
+	};
+	helpers$1.getMaximumWidth = function(domNode) {
+		var container = helpers$1._getParentNode(domNode);
+		if (!container) {
+			return domNode.clientWidth;
+		}
+
+		var clientWidth = container.clientWidth;
+		var paddingLeft = helpers$1._calculatePadding(container, 'padding-left', clientWidth);
+		var paddingRight = helpers$1._calculatePadding(container, 'padding-right', clientWidth);
+
+		var w = clientWidth - paddingLeft - paddingRight;
+		var cw = helpers$1.getConstraintWidth(domNode);
+		return isNaN(cw) ? w : Math.min(w, cw);
+	};
+	helpers$1.getMaximumHeight = function(domNode) {
+		var container = helpers$1._getParentNode(domNode);
+		if (!container) {
+			return domNode.clientHeight;
+		}
+
+		var clientHeight = container.clientHeight;
+		var paddingTop = helpers$1._calculatePadding(container, 'padding-top', clientHeight);
+		var paddingBottom = helpers$1._calculatePadding(container, 'padding-bottom', clientHeight);
+
+		var h = clientHeight - paddingTop - paddingBottom;
+		var ch = helpers$1.getConstraintHeight(domNode);
+		return isNaN(ch) ? h : Math.min(h, ch);
+	};
+	helpers$1.getStyle = function(el, property) {
+		return el.currentStyle ?
+			el.currentStyle[property] :
+			document.defaultView.getComputedStyle(el, null).getPropertyValue(property);
+	};
+	helpers$1.retinaScale = function(chart, forceRatio) {
+		var pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;
+		if (pixelRatio === 1) {
+			return;
+		}
+
+		var canvas = chart.canvas;
+		var height = chart.height;
+		var width = chart.width;
+
+		canvas.height = height * pixelRatio;
+		canvas.width = width * pixelRatio;
+		chart.ctx.scale(pixelRatio, pixelRatio);
+
+		// If no style has been set on the canvas, the render size is used as display size,
+		// making the chart visually bigger, so let's enforce it to the "correct" values.
+		// See https://github.com/chartjs/Chart.js/issues/3575
+		if (!canvas.style.height && !canvas.style.width) {
+			canvas.style.height = height + 'px';
+			canvas.style.width = width + 'px';
+		}
+	};
+	// -- Canvas methods
+	helpers$1.fontString = function(pixelSize, fontStyle, fontFamily) {
+		return fontStyle + ' ' + pixelSize + 'px ' + fontFamily;
+	};
+	helpers$1.longestText = function(ctx, font, arrayOfThings, cache) {
+		cache = cache || {};
+		var data = cache.data = cache.data || {};
+		var gc = cache.garbageCollect = cache.garbageCollect || [];
+
+		if (cache.font !== font) {
+			data = cache.data = {};
+			gc = cache.garbageCollect = [];
+			cache.font = font;
+		}
+
+		ctx.font = font;
+		var longest = 0;
+		var ilen = arrayOfThings.length;
+		var i, j, jlen, thing, nestedThing;
+		for (i = 0; i < ilen; i++) {
+			thing = arrayOfThings[i];
+
+			// Undefined strings and arrays should not be measured
+			if (thing !== undefined && thing !== null && helpers$1.isArray(thing) !== true) {
+				longest = helpers$1.measureText(ctx, data, gc, longest, thing);
+			} else if (helpers$1.isArray(thing)) {
+				// if it is an array lets measure each element
+				// to do maybe simplify this function a bit so we can do this more recursively?
+				for (j = 0, jlen = thing.length; j < jlen; j++) {
+					nestedThing = thing[j];
+					// Undefined strings and arrays should not be measured
+					if (nestedThing !== undefined && nestedThing !== null && !helpers$1.isArray(nestedThing)) {
+						longest = helpers$1.measureText(ctx, data, gc, longest, nestedThing);
+					}
+				}
+			}
+		}
+
+		var gcLen = gc.length / 2;
+		if (gcLen > arrayOfThings.length) {
+			for (i = 0; i < gcLen; i++) {
+				delete data[gc[i]];
+			}
+			gc.splice(0, gcLen);
+		}
+		return longest;
+	};
+	helpers$1.measureText = function(ctx, data, gc, longest, string) {
+		var textWidth = data[string];
+		if (!textWidth) {
+			textWidth = data[string] = ctx.measureText(string).width;
+			gc.push(string);
+		}
+		if (textWidth > longest) {
+			longest = textWidth;
+		}
+		return longest;
+	};
+
+	/**
+	 * @deprecated
+	 */
+	helpers$1.numberOfLabelLines = function(arrayOfThings) {
+		var numberOfLines = 1;
+		helpers$1.each(arrayOfThings, function(thing) {
+			if (helpers$1.isArray(thing)) {
+				if (thing.length > numberOfLines) {
+					numberOfLines = thing.length;
+				}
+			}
+		});
+		return numberOfLines;
+	};
+
+	helpers$1.color = !chartjsColor ?
+		function(value) {
+			console.error('Color.js not found!');
+			return value;
+		} :
+		function(value) {
+			/* global CanvasGradient */
+			if (value instanceof CanvasGradient) {
+				value = core_defaults.global.defaultColor;
+			}
+
+			return chartjsColor(value);
+		};
+
+	helpers$1.getHoverColor = function(colorValue) {
+		/* global CanvasPattern */
+		return (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?
+			colorValue :
+			helpers$1.color(colorValue).saturate(0.5).darken(0.1).rgbString();
+	};
+};
+
+function abstract() {
+	throw new Error(
+		'This method is not implemented: either no adapter can ' +
+		'be found or an incomplete integration was provided.'
+	);
+}
+
+/**
+ * Date adapter (current used by the time scale)
+ * @namespace Chart._adapters._date
+ * @memberof Chart._adapters
+ * @private
+ */
 
-                        return [
-                            (c * pure[0] + mg) * 255,
-                            (c * pure[1] + mg) * 255,
-                            (c * pure[2] + mg) * 255
-                        ];
-                    };
+/**
+ * Currently supported unit string values.
+ * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')}
+ * @memberof Chart._adapters._date
+ * @name Unit
+ */
 
-                    convert.hcg.hsv = function (hcg) {
-                        var c = hcg[1] / 100;
-                        var g = hcg[2] / 100;
+/**
+ * @class
+ */
+function DateAdapter(options) {
+	this.options = options || {};
+}
+
+helpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ {
+	/**
+	 * Returns a map of time formats for the supported formatting units defined
+	 * in Unit as well as 'datetime' representing a detailed date/time string.
+	 * @returns {{string: string}}
+	 */
+	formats: abstract,
+
+	/**
+	 * Parses the given `value` and return the associated timestamp.
+	 * @param {any} value - the value to parse (usually comes from the data)
+	 * @param {string} [format] - the expected data format
+	 * @returns {(number|null)}
+	 * @function
+	 */
+	parse: abstract,
+
+	/**
+	 * Returns the formatted date in the specified `format` for a given `timestamp`.
+	 * @param {number} timestamp - the timestamp to format
+	 * @param {string} format - the date/time token
+	 * @return {string}
+	 * @function
+	 */
+	format: abstract,
+
+	/**
+	 * Adds the specified `amount` of `unit` to the given `timestamp`.
+	 * @param {number} timestamp - the input timestamp
+	 * @param {number} amount - the amount to add
+	 * @param {Unit} unit - the unit as string
+	 * @return {number}
+	 * @function
+	 */
+	add: abstract,
+
+	/**
+	 * Returns the number of `unit` between the given timestamps.
+	 * @param {number} max - the input timestamp (reference)
+	 * @param {number} min - the timestamp to substract
+	 * @param {Unit} unit - the unit as string
+	 * @return {number}
+	 * @function
+	 */
+	diff: abstract,
+
+	/**
+	 * Returns start of `unit` for the given `timestamp`.
+	 * @param {number} timestamp - the input timestamp
+	 * @param {Unit} unit - the unit as string
+	 * @param {number} [weekday] - the ISO day of the week with 1 being Monday
+	 * and 7 being Sunday (only needed if param *unit* is `isoWeek`).
+	 * @function
+	 */
+	startOf: abstract,
 
-                        var v = c + g * (1.0 - c);
-                        var f = 0;
+	/**
+	 * Returns end of `unit` for the given `timestamp`.
+	 * @param {number} timestamp - the input timestamp
+	 * @param {Unit} unit - the unit as string
+	 * @function
+	 */
+	endOf: abstract,
 
-                        if (v > 0.0) {
-                            f = c / v;
-                        }
+	// DEPRECATIONS
 
-                        return [hcg[0], f * 100, v * 100];
-                    };
+	/**
+	 * Provided for backward compatibility for scale.getValueForPixel(),
+	 * this method should be overridden only by the moment adapter.
+	 * @deprecated since version 2.8.0
+	 * @todo remove at version 3
+	 * @private
+	 */
+	_create: function(value) {
+		return value;
+	}
+});
 
-                    convert.hcg.hsl = function (hcg) {
-                        var c = hcg[1] / 100;
-                        var g = hcg[2] / 100;
+DateAdapter.override = function(members) {
+	helpers$1.extend(DateAdapter.prototype, members);
+};
 
-                        var l = g * (1.0 - c) + 0.5 * c;
-                        var s = 0;
+var _date = DateAdapter;
 
-                        if (l > 0.0 && l < 0.5) {
-                            s = c / (2 * l);
-                        } else
-                        if (l >= 0.5 && l < 1.0) {
-                            s = c / (2 * (1 - l));
-                        }
+var core_adapters = {
+	_date: _date
+};
 
-                        return [hcg[0], s * 100, l * 100];
-                    };
-
-                    convert.hcg.hwb = function (hcg) {
-                        var c = hcg[1] / 100;
-                        var g = hcg[2] / 100;
-                        var v = c + g * (1.0 - c);
-                        return [hcg[0], (v - c) * 100, (1 - v) * 100];
-                    };
-
-                    convert.hwb.hcg = function (hwb) {
-                        var w = hwb[1] / 100;
-                        var b = hwb[2] / 100;
-                        var v = 1 - b;
-                        var c = v - w;
-                        var g = 0;
-
-                        if (c < 1) {
-                            g = (v - c) / (1 - c);
-                        }
+/**
+ * Namespace to hold static tick generation functions
+ * @namespace Chart.Ticks
+ */
+var core_ticks = {
+	/**
+	 * Namespace to hold formatters for different types of ticks
+	 * @namespace Chart.Ticks.formatters
+	 */
+	formatters: {
+		/**
+		 * Formatter for value labels
+		 * @method Chart.Ticks.formatters.values
+		 * @param value the value to display
+		 * @return {string|string[]} the label to display
+		 */
+		values: function(value) {
+			return helpers$1.isArray(value) ? value : '' + value;
+		},
+
+		/**
+		 * Formatter for linear numeric ticks
+		 * @method Chart.Ticks.formatters.linear
+		 * @param tickValue {number} the value to be formatted
+		 * @param index {number} the position of the tickValue parameter in the ticks array
+		 * @param ticks {number[]} the list of ticks being converted
+		 * @return {string} string representation of the tickValue parameter
+		 */
+		linear: function(tickValue, index, ticks) {
+			// If we have lots of ticks, don't use the ones
+			var delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];
+
+			// If we have a number like 2.5 as the delta, figure out how many decimal places we need
+			if (Math.abs(delta) > 1) {
+				if (tickValue !== Math.floor(tickValue)) {
+					// not an integer
+					delta = tickValue - Math.floor(tickValue);
+				}
+			}
+
+			var logDelta = helpers$1.log10(Math.abs(delta));
+			var tickString = '';
+
+			if (tickValue !== 0) {
+				var maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));
+				if (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation
+					var logTick = helpers$1.log10(Math.abs(tickValue));
+					var numExponential = Math.floor(logTick) - Math.floor(logDelta);
+					numExponential = Math.max(Math.min(numExponential, 20), 0);
+					tickString = tickValue.toExponential(numExponential);
+				} else {
+					var numDecimal = -1 * Math.floor(logDelta);
+					numDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places
+					tickString = tickValue.toFixed(numDecimal);
+				}
+			} else {
+				tickString = '0'; // never show decimal places for 0
+			}
+
+			return tickString;
+		},
+
+		logarithmic: function(tickValue, index, ticks) {
+			var remain = tickValue / (Math.pow(10, Math.floor(helpers$1.log10(tickValue))));
+
+			if (tickValue === 0) {
+				return '0';
+			} else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {
+				return tickValue.toExponential();
+			}
+			return '';
+		}
+	}
+};
+
+var isArray = helpers$1.isArray;
+var isNullOrUndef = helpers$1.isNullOrUndef;
+var valueOrDefault$a = helpers$1.valueOrDefault;
+var valueAtIndexOrDefault = helpers$1.valueAtIndexOrDefault;
+
+core_defaults._set('scale', {
+	display: true,
+	position: 'left',
+	offset: false,
+
+	// grid line settings
+	gridLines: {
+		display: true,
+		color: 'rgba(0,0,0,0.1)',
+		lineWidth: 1,
+		drawBorder: true,
+		drawOnChartArea: true,
+		drawTicks: true,
+		tickMarkLength: 10,
+		zeroLineWidth: 1,
+		zeroLineColor: 'rgba(0,0,0,0.25)',
+		zeroLineBorderDash: [],
+		zeroLineBorderDashOffset: 0.0,
+		offsetGridLines: false,
+		borderDash: [],
+		borderDashOffset: 0.0
+	},
+
+	// scale label
+	scaleLabel: {
+		// display property
+		display: false,
+
+		// actual label
+		labelString: '',
+
+		// top/bottom padding
+		padding: {
+			top: 4,
+			bottom: 4
+		}
+	},
+
+	// label settings
+	ticks: {
+		beginAtZero: false,
+		minRotation: 0,
+		maxRotation: 50,
+		mirror: false,
+		padding: 0,
+		reverse: false,
+		display: true,
+		autoSkip: true,
+		autoSkipPadding: 0,
+		labelOffset: 0,
+		// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.
+		callback: core_ticks.formatters.values,
+		minor: {},
+		major: {}
+	}
+});
+
+/** Returns a new array containing numItems from arr */
+function sample(arr, numItems) {
+	var result = [];
+	var increment = arr.length / numItems;
+	var i = 0;
+	var len = arr.length;
+
+	for (; i < len; i += increment) {
+		result.push(arr[Math.floor(i)]);
+	}
+	return result;
+}
+
+function getPixelForGridLine(scale, index, offsetGridLines) {
+	var length = scale.getTicks().length;
+	var validIndex = Math.min(index, length - 1);
+	var lineValue = scale.getPixelForTick(validIndex);
+	var start = scale._startPixel;
+	var end = scale._endPixel;
+	var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.
+	var offset;
+
+	if (offsetGridLines) {
+		if (length === 1) {
+			offset = Math.max(lineValue - start, end - lineValue);
+		} else if (index === 0) {
+			offset = (scale.getPixelForTick(1) - lineValue) / 2;
+		} else {
+			offset = (lineValue - scale.getPixelForTick(validIndex - 1)) / 2;
+		}
+		lineValue += validIndex < index ? offset : -offset;
+
+		// Return undefined if the pixel is out of the range
+		if (lineValue < start - epsilon || lineValue > end + epsilon) {
+			return;
+		}
+	}
+	return lineValue;
+}
+
+function garbageCollect(caches, length) {
+	helpers$1.each(caches, function(cache) {
+		var gc = cache.gc;
+		var gcLen = gc.length / 2;
+		var i;
+		if (gcLen > length) {
+			for (i = 0; i < gcLen; ++i) {
+				delete cache.data[gc[i]];
+			}
+			gc.splice(0, gcLen);
+		}
+	});
+}
+
+/**
+ * Returns {width, height, offset} objects for the first, last, widest, highest tick
+ * labels where offset indicates the anchor point offset from the top in pixels.
+ */
+function computeLabelSizes(ctx, tickFonts, ticks, caches) {
+	var length = ticks.length;
+	var widths = [];
+	var heights = [];
+	var offsets = [];
+	var i, j, jlen, label, tickFont, fontString, cache, lineHeight, width, height, nestedLabel, widest, highest;
+
+	for (i = 0; i < length; ++i) {
+		label = ticks[i].label;
+		tickFont = ticks[i].major ? tickFonts.major : tickFonts.minor;
+		ctx.font = fontString = tickFont.string;
+		cache = caches[fontString] = caches[fontString] || {data: {}, gc: []};
+		lineHeight = tickFont.lineHeight;
+		width = height = 0;
+		// Undefined labels and arrays should not be measured
+		if (!isNullOrUndef(label) && !isArray(label)) {
+			width = helpers$1.measureText(ctx, cache.data, cache.gc, width, label);
+			height = lineHeight;
+		} else if (isArray(label)) {
+			// if it is an array let's measure each element
+			for (j = 0, jlen = label.length; j < jlen; ++j) {
+				nestedLabel = label[j];
+				// Undefined labels and arrays should not be measured
+				if (!isNullOrUndef(nestedLabel) && !isArray(nestedLabel)) {
+					width = helpers$1.measureText(ctx, cache.data, cache.gc, width, nestedLabel);
+					height += lineHeight;
+				}
+			}
+		}
+		widths.push(width);
+		heights.push(height);
+		offsets.push(lineHeight / 2);
+	}
+	garbageCollect(caches, length);
+
+	widest = widths.indexOf(Math.max.apply(null, widths));
+	highest = heights.indexOf(Math.max.apply(null, heights));
+
+	function valueAt(idx) {
+		return {
+			width: widths[idx] || 0,
+			height: heights[idx] || 0,
+			offset: offsets[idx] || 0
+		};
+	}
+
+	return {
+		first: valueAt(0),
+		last: valueAt(length - 1),
+		widest: valueAt(widest),
+		highest: valueAt(highest)
+	};
+}
+
+function getTickMarkLength(options) {
+	return options.drawTicks ? options.tickMarkLength : 0;
+}
+
+function getScaleLabelHeight(options) {
+	var font, padding;
+
+	if (!options.display) {
+		return 0;
+	}
+
+	font = helpers$1.options._parseFont(options);
+	padding = helpers$1.options.toPadding(options.padding);
+
+	return font.lineHeight + padding.height;
+}
+
+function parseFontOptions(options, nestedOpts) {
+	return helpers$1.extend(helpers$1.options._parseFont({
+		fontFamily: valueOrDefault$a(nestedOpts.fontFamily, options.fontFamily),
+		fontSize: valueOrDefault$a(nestedOpts.fontSize, options.fontSize),
+		fontStyle: valueOrDefault$a(nestedOpts.fontStyle, options.fontStyle),
+		lineHeight: valueOrDefault$a(nestedOpts.lineHeight, options.lineHeight)
+	}), {
+		color: helpers$1.options.resolve([nestedOpts.fontColor, options.fontColor, core_defaults.global.defaultFontColor])
+	});
+}
+
+function parseTickFontOptions(options) {
+	var minor = parseFontOptions(options, options.minor);
+	var major = options.major.enabled ? parseFontOptions(options, options.major) : minor;
+
+	return {minor: minor, major: major};
+}
+
+function nonSkipped(ticksToFilter) {
+	var filtered = [];
+	var item, index, len;
+	for (index = 0, len = ticksToFilter.length; index < len; ++index) {
+		item = ticksToFilter[index];
+		if (typeof item._index !== 'undefined') {
+			filtered.push(item);
+		}
+	}
+	return filtered;
+}
+
+function getEvenSpacing(arr) {
+	var len = arr.length;
+	var i, diff;
+
+	if (len < 2) {
+		return false;
+	}
+
+	for (diff = arr[0], i = 1; i < len; ++i) {
+		if (arr[i] - arr[i - 1] !== diff) {
+			return false;
+		}
+	}
+	return diff;
+}
+
+function calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {
+	var evenMajorSpacing = getEvenSpacing(majorIndices);
+	var spacing = (ticks.length - 1) / ticksLimit;
+	var factors, factor, i, ilen;
+
+	// If the major ticks are evenly spaced apart, place the minor ticks
+	// so that they divide the major ticks into even chunks
+	if (!evenMajorSpacing) {
+		return Math.max(spacing, 1);
+	}
+
+	factors = helpers$1.math._factorize(evenMajorSpacing);
+	for (i = 0, ilen = factors.length - 1; i < ilen; i++) {
+		factor = factors[i];
+		if (factor > spacing) {
+			return factor;
+		}
+	}
+	return Math.max(spacing, 1);
+}
+
+function getMajorIndices(ticks) {
+	var result = [];
+	var i, ilen;
+	for (i = 0, ilen = ticks.length; i < ilen; i++) {
+		if (ticks[i].major) {
+			result.push(i);
+		}
+	}
+	return result;
+}
+
+function skipMajors(ticks, majorIndices, spacing) {
+	var count = 0;
+	var next = majorIndices[0];
+	var i, tick;
+
+	spacing = Math.ceil(spacing);
+	for (i = 0; i < ticks.length; i++) {
+		tick = ticks[i];
+		if (i === next) {
+			tick._index = i;
+			count++;
+			next = majorIndices[count * spacing];
+		} else {
+			delete tick.label;
+		}
+	}
+}
+
+function skip(ticks, spacing, majorStart, majorEnd) {
+	var start = valueOrDefault$a(majorStart, 0);
+	var end = Math.min(valueOrDefault$a(majorEnd, ticks.length), ticks.length);
+	var count = 0;
+	var length, i, tick, next;
+
+	spacing = Math.ceil(spacing);
+	if (majorEnd) {
+		length = majorEnd - majorStart;
+		spacing = length / Math.floor(length / spacing);
+	}
+
+	next = start;
+
+	while (next < 0) {
+		count++;
+		next = Math.round(start + count * spacing);
+	}
+
+	for (i = Math.max(start, 0); i < end; i++) {
+		tick = ticks[i];
+		if (i === next) {
+			tick._index = i;
+			count++;
+			next = Math.round(start + count * spacing);
+		} else {
+			delete tick.label;
+		}
+	}
+}
+
+var Scale = core_element.extend({
+
+	zeroLineIndex: 0,
+
+	/**
+	 * Get the padding needed for the scale
+	 * @method getPadding
+	 * @private
+	 * @returns {Padding} the necessary padding
+	 */
+	getPadding: function() {
+		var me = this;
+		return {
+			left: me.paddingLeft || 0,
+			top: me.paddingTop || 0,
+			right: me.paddingRight || 0,
+			bottom: me.paddingBottom || 0
+		};
+	},
+
+	/**
+	 * Returns the scale tick objects ({label, major})
+	 * @since 2.7
+	 */
+	getTicks: function() {
+		return this._ticks;
+	},
+
+	/**
+	* @private
+	*/
+	_getLabels: function() {
+		var data = this.chart.data;
+		return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
+	},
+
+	// These methods are ordered by lifecyle. Utilities then follow.
+	// Any function defined here is inherited by all scale types.
+	// Any function can be extended by the scale type
+
+	/**
+	 * Provided for backward compatibility, not available anymore
+	 * @function Chart.Scale.mergeTicksOptions
+	 * @deprecated since version 2.8.0
+	 * @todo remove at version 3
+	 */
+	mergeTicksOptions: function() {
+		// noop
+	},
+
+	beforeUpdate: function() {
+		helpers$1.callback(this.options.beforeUpdate, [this]);
+	},
+
+	/**
+	 * @param {number} maxWidth - the max width in pixels
+	 * @param {number} maxHeight - the max height in pixels
+	 * @param {object} margins - the space between the edge of the other scales and edge of the chart
+	 *   This space comes from two sources:
+	 *     - padding - space that's required to show the labels at the edges of the scale
+	 *     - thickness of scales or legends in another orientation
+	 */
+	update: function(maxWidth, maxHeight, margins) {
+		var me = this;
+		var tickOpts = me.options.ticks;
+		var sampleSize = tickOpts.sampleSize;
+		var i, ilen, labels, ticks, samplingEnabled;
+
+		// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
+		me.beforeUpdate();
+
+		// Absorb the master measurements
+		me.maxWidth = maxWidth;
+		me.maxHeight = maxHeight;
+		me.margins = helpers$1.extend({
+			left: 0,
+			right: 0,
+			top: 0,
+			bottom: 0
+		}, margins);
+
+		me._ticks = null;
+		me.ticks = null;
+		me._labelSizes = null;
+		me._maxLabelLines = 0;
+		me.longestLabelWidth = 0;
+		me.longestTextCache = me.longestTextCache || {};
+		me._gridLineItems = null;
+		me._labelItems = null;
+
+		// Dimensions
+		me.beforeSetDimensions();
+		me.setDimensions();
+		me.afterSetDimensions();
+
+		// Data min/max
+		me.beforeDataLimits();
+		me.determineDataLimits();
+		me.afterDataLimits();
+
+		// Ticks - `this.ticks` is now DEPRECATED!
+		// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member
+		// and must not be accessed directly from outside this class. `this.ticks` being
+		// around for long time and not marked as private, we can't change its structure
+		// without unexpected breaking changes. If you need to access the scale ticks,
+		// use scale.getTicks() instead.
+
+		me.beforeBuildTicks();
+
+		// New implementations should return an array of objects but for BACKWARD COMPAT,
+		// we still support no return (`this.ticks` internally set by calling this method).
+		ticks = me.buildTicks() || [];
+
+		// Allow modification of ticks in callback.
+		ticks = me.afterBuildTicks(ticks) || ticks;
+
+		// Ensure ticks contains ticks in new tick format
+		if ((!ticks || !ticks.length) && me.ticks) {
+			ticks = [];
+			for (i = 0, ilen = me.ticks.length; i < ilen; ++i) {
+				ticks.push({
+					value: me.ticks[i],
+					major: false
+				});
+			}
+		}
+
+		me._ticks = ticks;
+
+		// Compute tick rotation and fit using a sampled subset of labels
+		// We generally don't need to compute the size of every single label for determining scale size
+		samplingEnabled = sampleSize < ticks.length;
+		labels = me._convertTicksToLabels(samplingEnabled ? sample(ticks, sampleSize) : ticks);
+
+		// _configure is called twice, once here, once from core.controller.updateLayout.
+		// Here we haven't been positioned yet, but dimensions are correct.
+		// Variables set in _configure are needed for calculateTickRotation, and
+		// it's ok that coordinates are not correct there, only dimensions matter.
+		me._configure();
+
+		// Tick Rotation
+		me.beforeCalculateTickRotation();
+		me.calculateTickRotation();
+		me.afterCalculateTickRotation();
+
+		me.beforeFit();
+		me.fit();
+		me.afterFit();
+
+		// Auto-skip
+		me._ticksToDraw = tickOpts.display && (tickOpts.autoSkip || tickOpts.source === 'auto') ? me._autoSkip(ticks) : ticks;
+
+		if (samplingEnabled) {
+			// Generate labels using all non-skipped ticks
+			labels = me._convertTicksToLabels(me._ticksToDraw);
+		}
+
+		me.ticks = labels;   // BACKWARD COMPATIBILITY
+
+		// IMPORTANT: after this point, we consider that `this.ticks` will NEVER change!
+
+		me.afterUpdate();
+
+		// TODO(v3): remove minSize as a public property and return value from all layout boxes. It is unused
+		// make maxWidth and maxHeight private
+		return me.minSize;
+	},
+
+	/**
+	 * @private
+	 */
+	_configure: function() {
+		var me = this;
+		var reversePixels = me.options.ticks.reverse;
+		var startPixel, endPixel;
+
+		if (me.isHorizontal()) {
+			startPixel = me.left;
+			endPixel = me.right;
+		} else {
+			startPixel = me.top;
+			endPixel = me.bottom;
+			// by default vertical scales are from bottom to top, so pixels are reversed
+			reversePixels = !reversePixels;
+		}
+		me._startPixel = startPixel;
+		me._endPixel = endPixel;
+		me._reversePixels = reversePixels;
+		me._length = endPixel - startPixel;
+	},
+
+	afterUpdate: function() {
+		helpers$1.callback(this.options.afterUpdate, [this]);
+	},
+
+	//
+
+	beforeSetDimensions: function() {
+		helpers$1.callback(this.options.beforeSetDimensions, [this]);
+	},
+	setDimensions: function() {
+		var me = this;
+		// Set the unconstrained dimension before label rotation
+		if (me.isHorizontal()) {
+			// Reset position before calculating rotation
+			me.width = me.maxWidth;
+			me.left = 0;
+			me.right = me.width;
+		} else {
+			me.height = me.maxHeight;
+
+			// Reset position before calculating rotation
+			me.top = 0;
+			me.bottom = me.height;
+		}
+
+		// Reset padding
+		me.paddingLeft = 0;
+		me.paddingTop = 0;
+		me.paddingRight = 0;
+		me.paddingBottom = 0;
+	},
+	afterSetDimensions: function() {
+		helpers$1.callback(this.options.afterSetDimensions, [this]);
+	},
+
+	// Data limits
+	beforeDataLimits: function() {
+		helpers$1.callback(this.options.beforeDataLimits, [this]);
+	},
+	determineDataLimits: helpers$1.noop,
+	afterDataLimits: function() {
+		helpers$1.callback(this.options.afterDataLimits, [this]);
+	},
+
+	//
+	beforeBuildTicks: function() {
+		helpers$1.callback(this.options.beforeBuildTicks, [this]);
+	},
+	buildTicks: helpers$1.noop,
+	afterBuildTicks: function(ticks) {
+		var me = this;
+		// ticks is empty for old axis implementations here
+		if (isArray(ticks) && ticks.length) {
+			return helpers$1.callback(me.options.afterBuildTicks, [me, ticks]);
+		}
+		// Support old implementations (that modified `this.ticks` directly in buildTicks)
+		me.ticks = helpers$1.callback(me.options.afterBuildTicks, [me, me.ticks]) || me.ticks;
+		return ticks;
+	},
+
+	beforeTickToLabelConversion: function() {
+		helpers$1.callback(this.options.beforeTickToLabelConversion, [this]);
+	},
+	convertTicksToLabels: function() {
+		var me = this;
+		// Convert ticks to strings
+		var tickOpts = me.options.ticks;
+		me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);
+	},
+	afterTickToLabelConversion: function() {
+		helpers$1.callback(this.options.afterTickToLabelConversion, [this]);
+	},
+
+	//
+
+	beforeCalculateTickRotation: function() {
+		helpers$1.callback(this.options.beforeCalculateTickRotation, [this]);
+	},
+	calculateTickRotation: function() {
+		var me = this;
+		var options = me.options;
+		var tickOpts = options.ticks;
+		var numTicks = me.getTicks().length;
+		var minRotation = tickOpts.minRotation || 0;
+		var maxRotation = tickOpts.maxRotation;
+		var labelRotation = minRotation;
+		var labelSizes, maxLabelWidth, maxLabelHeight, maxWidth, tickWidth, maxHeight, maxLabelDiagonal;
+
+		if (!me._isVisible() || !tickOpts.display || minRotation >= maxRotation || numTicks <= 1 || !me.isHorizontal()) {
+			me.labelRotation = minRotation;
+			return;
+		}
+
+		labelSizes = me._getLabelSizes();
+		maxLabelWidth = labelSizes.widest.width;
+		maxLabelHeight = labelSizes.highest.height - labelSizes.highest.offset;
+
+		// Estimate the width of each grid based on the canvas width, the maximum
+		// label width and the number of tick intervals
+		maxWidth = Math.min(me.maxWidth, me.chart.width - maxLabelWidth);
+		tickWidth = options.offset ? me.maxWidth / numTicks : maxWidth / (numTicks - 1);
+
+		// Allow 3 pixels x2 padding either side for label readability
+		if (maxLabelWidth + 6 > tickWidth) {
+			tickWidth = maxWidth / (numTicks - (options.offset ? 0.5 : 1));
+			maxHeight = me.maxHeight - getTickMarkLength(options.gridLines)
+				- tickOpts.padding - getScaleLabelHeight(options.scaleLabel);
+			maxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);
+			labelRotation = helpers$1.toDegrees(Math.min(
+				Math.asin(Math.min((labelSizes.highest.height + 6) / tickWidth, 1)),
+				Math.asin(Math.min(maxHeight / maxLabelDiagonal, 1)) - Math.asin(maxLabelHeight / maxLabelDiagonal)
+			));
+			labelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));
+		}
+
+		me.labelRotation = labelRotation;
+	},
+	afterCalculateTickRotation: function() {
+		helpers$1.callback(this.options.afterCalculateTickRotation, [this]);
+	},
+
+	//
+
+	beforeFit: function() {
+		helpers$1.callback(this.options.beforeFit, [this]);
+	},
+	fit: function() {
+		var me = this;
+		// Reset
+		var minSize = me.minSize = {
+			width: 0,
+			height: 0
+		};
+
+		var chart = me.chart;
+		var opts = me.options;
+		var tickOpts = opts.ticks;
+		var scaleLabelOpts = opts.scaleLabel;
+		var gridLineOpts = opts.gridLines;
+		var display = me._isVisible();
+		var isBottom = opts.position === 'bottom';
+		var isHorizontal = me.isHorizontal();
+
+		// Width
+		if (isHorizontal) {
+			minSize.width = me.maxWidth;
+		} else if (display) {
+			minSize.width = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);
+		}
+
+		// height
+		if (!isHorizontal) {
+			minSize.height = me.maxHeight; // fill all the height
+		} else if (display) {
+			minSize.height = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);
+		}
+
+		// Don't bother fitting the ticks if we are not showing the labels
+		if (tickOpts.display && display) {
+			var tickFonts = parseTickFontOptions(tickOpts);
+			var labelSizes = me._getLabelSizes();
+			var firstLabelSize = labelSizes.first;
+			var lastLabelSize = labelSizes.last;
+			var widestLabelSize = labelSizes.widest;
+			var highestLabelSize = labelSizes.highest;
+			var lineSpace = tickFonts.minor.lineHeight * 0.4;
+			var tickPadding = tickOpts.padding;
+
+			if (isHorizontal) {
+				// A horizontal axis is more constrained by the height.
+				var isRotated = me.labelRotation !== 0;
+				var angleRadians = helpers$1.toRadians(me.labelRotation);
+				var cosRotation = Math.cos(angleRadians);
+				var sinRotation = Math.sin(angleRadians);
+
+				var labelHeight = sinRotation * widestLabelSize.width
+					+ cosRotation * (highestLabelSize.height - (isRotated ? highestLabelSize.offset : 0))
+					+ (isRotated ? 0 : lineSpace); // padding
+
+				minSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);
+
+				var offsetLeft = me.getPixelForTick(0) - me.left;
+				var offsetRight = me.right - me.getPixelForTick(me.getTicks().length - 1);
+				var paddingLeft, paddingRight;
+
+				// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned
+				// which means that the right padding is dominated by the font height
+				if (isRotated) {
+					paddingLeft = isBottom ?
+						cosRotation * firstLabelSize.width + sinRotation * firstLabelSize.offset :
+						sinRotation * (firstLabelSize.height - firstLabelSize.offset);
+					paddingRight = isBottom ?
+						sinRotation * (lastLabelSize.height - lastLabelSize.offset) :
+						cosRotation * lastLabelSize.width + sinRotation * lastLabelSize.offset;
+				} else {
+					paddingLeft = firstLabelSize.width / 2;
+					paddingRight = lastLabelSize.width / 2;
+				}
+
+				// Adjust padding taking into account changes in offsets
+				// and add 3 px to move away from canvas edges
+				me.paddingLeft = Math.max((paddingLeft - offsetLeft) * me.width / (me.width - offsetLeft), 0) + 3;
+				me.paddingRight = Math.max((paddingRight - offsetRight) * me.width / (me.width - offsetRight), 0) + 3;
+			} else {
+				// A vertical axis is more constrained by the width. Labels are the
+				// dominant factor here, so get that length first and account for padding
+				var labelWidth = tickOpts.mirror ? 0 :
+					// use lineSpace for consistency with horizontal axis
+					// tickPadding is not implemented for horizontal
+					widestLabelSize.width + tickPadding + lineSpace;
+
+				minSize.width = Math.min(me.maxWidth, minSize.width + labelWidth);
+
+				me.paddingTop = firstLabelSize.height / 2;
+				me.paddingBottom = lastLabelSize.height / 2;
+			}
+		}
+
+		me.handleMargins();
+
+		if (isHorizontal) {
+			me.width = me._length = chart.width - me.margins.left - me.margins.right;
+			me.height = minSize.height;
+		} else {
+			me.width = minSize.width;
+			me.height = me._length = chart.height - me.margins.top - me.margins.bottom;
+		}
+	},
+
+	/**
+	 * Handle margins and padding interactions
+	 * @private
+	 */
+	handleMargins: function() {
+		var me = this;
+		if (me.margins) {
+			me.margins.left = Math.max(me.paddingLeft, me.margins.left);
+			me.margins.top = Math.max(me.paddingTop, me.margins.top);
+			me.margins.right = Math.max(me.paddingRight, me.margins.right);
+			me.margins.bottom = Math.max(me.paddingBottom, me.margins.bottom);
+		}
+	},
+
+	afterFit: function() {
+		helpers$1.callback(this.options.afterFit, [this]);
+	},
+
+	// Shared Methods
+	isHorizontal: function() {
+		var pos = this.options.position;
+		return pos === 'top' || pos === 'bottom';
+	},
+	isFullWidth: function() {
+		return this.options.fullWidth;
+	},
+
+	// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not
+	getRightValue: function(rawValue) {
+		// Null and undefined values first
+		if (isNullOrUndef(rawValue)) {
+			return NaN;
+		}
+		// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values
+		if ((typeof rawValue === 'number' || rawValue instanceof Number) && !isFinite(rawValue)) {
+			return NaN;
+		}
+
+		// If it is in fact an object, dive in one more level
+		if (rawValue) {
+			if (this.isHorizontal()) {
+				if (rawValue.x !== undefined) {
+					return this.getRightValue(rawValue.x);
+				}
+			} else if (rawValue.y !== undefined) {
+				return this.getRightValue(rawValue.y);
+			}
+		}
+
+		// Value is good, return it
+		return rawValue;
+	},
+
+	_convertTicksToLabels: function(ticks) {
+		var me = this;
+		var labels, i, ilen;
+
+		me.ticks = ticks.map(function(tick) {
+			return tick.value;
+		});
+
+		me.beforeTickToLabelConversion();
+
+		// New implementations should return the formatted tick labels but for BACKWARD
+		// COMPAT, we still support no return (`this.ticks` internally changed by calling
+		// this method and supposed to contain only string values).
+		labels = me.convertTicksToLabels(ticks) || me.ticks;
+
+		me.afterTickToLabelConversion();
+
+		// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)
+		for (i = 0, ilen = ticks.length; i < ilen; ++i) {
+			ticks[i].label = labels[i];
+		}
+
+		return labels;
+	},
+
+	/**
+	 * @private
+	 */
+	_getLabelSizes: function() {
+		var me = this;
+		var labelSizes = me._labelSizes;
 
-                        return [hwb[0], c * 100, g * 100];
-                    };
+		if (!labelSizes) {
+			me._labelSizes = labelSizes = computeLabelSizes(me.ctx, parseTickFontOptions(me.options.ticks), me.getTicks(), me.longestTextCache);
+			me.longestLabelWidth = labelSizes.widest.width;
+		}
 
-                    convert.apple.rgb = function (apple) {
-                        return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
-                    };
+		return labelSizes;
+	},
 
-                    convert.rgb.apple = function (rgb) {
-                        return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
-                    };
+	/**
+	 * @private
+	 */
+	_parseValue: function(value) {
+		var start, end, min, max;
+
+		if (isArray(value)) {
+			start = +this.getRightValue(value[0]);
+			end = +this.getRightValue(value[1]);
+			min = Math.min(start, end);
+			max = Math.max(start, end);
+		} else {
+			value = +this.getRightValue(value);
+			start = undefined;
+			end = value;
+			min = value;
+			max = value;
+		}
+
+		return {
+			min: min,
+			max: max,
+			start: start,
+			end: end
+		};
+	},
+
+	/**
+	* @private
+	*/
+	_getScaleLabel: function(rawValue) {
+		var v = this._parseValue(rawValue);
+		if (v.start !== undefined) {
+			return '[' + v.start + ', ' + v.end + ']';
+		}
+
+		return +this.getRightValue(rawValue);
+	},
+
+	/**
+	 * Used to get the value to display in the tooltip for the data at the given index
+	 * @param index
+	 * @param datasetIndex
+	 */
+	getLabelForIndex: helpers$1.noop,
+
+	/**
+	 * Returns the location of the given data point. Value can either be an index or a numerical value
+	 * The coordinate (0, 0) is at the upper-left corner of the canvas
+	 * @param value
+	 * @param index
+	 * @param datasetIndex
+	 */
+	getPixelForValue: helpers$1.noop,
 
-                    convert.gray.rgb = function (args) {
-                        return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
-                    };
+	/**
+	 * Used to get the data value from a given pixel. This is the inverse of getPixelForValue
+	 * The coordinate (0, 0) is at the upper-left corner of the canvas
+	 * @param pixel
+	 */
+	getValueForPixel: helpers$1.noop,
 
-                    convert.gray.hsl = convert.gray.hsv = function (args) {
-                        return [0, 0, args[0]];
-                    };
+	/**
+	 * Returns the location of the tick at the given index
+	 * The coordinate (0, 0) is at the upper-left corner of the canvas
+	 */
+	getPixelForTick: function(index) {
+		var me = this;
+		var offset = me.options.offset;
+		var numTicks = me._ticks.length;
+		var tickWidth = 1 / Math.max(numTicks - (offset ? 0 : 1), 1);
+
+		return index < 0 || index > numTicks - 1
+			? null
+			: me.getPixelForDecimal(index * tickWidth + (offset ? tickWidth / 2 : 0));
+	},
+
+	/**
+	 * Utility for getting the pixel location of a percentage of scale
+	 * The coordinate (0, 0) is at the upper-left corner of the canvas
+	 */
+	getPixelForDecimal: function(decimal) {
+		var me = this;
 
-                    convert.gray.hwb = function (gray) {
-                        return [0, 100, gray[0]];
-                    };
+		if (me._reversePixels) {
+			decimal = 1 - decimal;
+		}
 
-                    convert.gray.cmyk = function (gray) {
-                        return [0, 0, 0, gray[0]];
-                    };
+		return me._startPixel + decimal * me._length;
+	},
 
-                    convert.gray.lab = function (gray) {
-                        return [gray[0], 0, 0];
-                    };
+	getDecimalForPixel: function(pixel) {
+		var decimal = (pixel - this._startPixel) / this._length;
+		return this._reversePixels ? 1 - decimal : decimal;
+	},
 
-                    convert.gray.hex = function (gray) {
-                        var val = Math.round(gray[0] / 100 * 255) & 0xFF;
-                        var integer = (val << 16) + (val << 8) + val;
+	/**
+	 * Returns the pixel for the minimum chart value
+	 * The coordinate (0, 0) is at the upper-left corner of the canvas
+	 */
+	getBasePixel: function() {
+		return this.getPixelForValue(this.getBaseValue());
+	},
+
+	getBaseValue: function() {
+		var me = this;
+		var min = me.min;
+		var max = me.max;
+
+		return me.beginAtZero ? 0 :
+			min < 0 && max < 0 ? max :
+			min > 0 && max > 0 ? min :
+			0;
+	},
+
+	/**
+	 * Returns a subset of ticks to be plotted to avoid overlapping labels.
+	 * @private
+	 */
+	_autoSkip: function(ticks) {
+		var me = this;
+		var tickOpts = me.options.ticks;
+		var axisLength = me._length;
+		var ticksLimit = tickOpts.maxTicksLimit || axisLength / me._tickSize() + 1;
+		var majorIndices = tickOpts.major.enabled ? getMajorIndices(ticks) : [];
+		var numMajorIndices = majorIndices.length;
+		var first = majorIndices[0];
+		var last = majorIndices[numMajorIndices - 1];
+		var i, ilen, spacing, avgMajorSpacing;
+
+		// If there are too many major ticks to display them all
+		if (numMajorIndices > ticksLimit) {
+			skipMajors(ticks, majorIndices, numMajorIndices / ticksLimit);
+			return nonSkipped(ticks);
+		}
+
+		spacing = calculateSpacing(majorIndices, ticks, axisLength, ticksLimit);
+
+		if (numMajorIndices > 0) {
+			for (i = 0, ilen = numMajorIndices - 1; i < ilen; i++) {
+				skip(ticks, spacing, majorIndices[i], majorIndices[i + 1]);
+			}
+			avgMajorSpacing = numMajorIndices > 1 ? (last - first) / (numMajorIndices - 1) : null;
+			skip(ticks, spacing, helpers$1.isNullOrUndef(avgMajorSpacing) ? 0 : first - avgMajorSpacing, first);
+			skip(ticks, spacing, last, helpers$1.isNullOrUndef(avgMajorSpacing) ? ticks.length : last + avgMajorSpacing);
+			return nonSkipped(ticks);
+		}
+		skip(ticks, spacing);
+		return nonSkipped(ticks);
+	},
+
+	/**
+	 * @private
+	 */
+	_tickSize: function() {
+		var me = this;
+		var optionTicks = me.options.ticks;
+
+		// Calculate space needed by label in axis direction.
+		var rot = helpers$1.toRadians(me.labelRotation);
+		var cos = Math.abs(Math.cos(rot));
+		var sin = Math.abs(Math.sin(rot));
+
+		var labelSizes = me._getLabelSizes();
+		var padding = optionTicks.autoSkipPadding || 0;
+		var w = labelSizes ? labelSizes.widest.width + padding : 0;
+		var h = labelSizes ? labelSizes.highest.height + padding : 0;
+
+		// Calculate space needed for 1 tick in axis direction.
+		return me.isHorizontal()
+			? h * cos > w * sin ? w / cos : h / sin
+			: h * sin < w * cos ? h / cos : w / sin;
+	},
+
+	/**
+	 * @private
+	 */
+	_isVisible: function() {
+		var me = this;
+		var chart = me.chart;
+		var display = me.options.display;
+		var i, ilen, meta;
+
+		if (display !== 'auto') {
+			return !!display;
+		}
+
+		// When 'auto', the scale is visible if at least one associated dataset is visible.
+		for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {
+			if (chart.isDatasetVisible(i)) {
+				meta = chart.getDatasetMeta(i);
+				if (meta.xAxisID === me.id || meta.yAxisID === me.id) {
+					return true;
+				}
+			}
+		}
+
+		return false;
+	},
+
+	/**
+	 * @private
+	 */
+	_computeGridLineItems: function(chartArea) {
+		var me = this;
+		var chart = me.chart;
+		var options = me.options;
+		var gridLines = options.gridLines;
+		var position = options.position;
+		var offsetGridLines = gridLines.offsetGridLines;
+		var isHorizontal = me.isHorizontal();
+		var ticks = me._ticksToDraw;
+		var ticksLength = ticks.length + (offsetGridLines ? 1 : 0);
+
+		var tl = getTickMarkLength(gridLines);
+		var items = [];
+		var axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;
+		var axisHalfWidth = axisWidth / 2;
+		var alignPixel = helpers$1._alignPixel;
+		var alignBorderValue = function(pixel) {
+			return alignPixel(chart, pixel, axisWidth);
+		};
+		var borderValue, i, tick, lineValue, alignedLineValue;
+		var tx1, ty1, tx2, ty2, x1, y1, x2, y2, lineWidth, lineColor, borderDash, borderDashOffset;
+
+		if (position === 'top') {
+			borderValue = alignBorderValue(me.bottom);
+			ty1 = me.bottom - tl;
+			ty2 = borderValue - axisHalfWidth;
+			y1 = alignBorderValue(chartArea.top) + axisHalfWidth;
+			y2 = chartArea.bottom;
+		} else if (position === 'bottom') {
+			borderValue = alignBorderValue(me.top);
+			y1 = chartArea.top;
+			y2 = alignBorderValue(chartArea.bottom) - axisHalfWidth;
+			ty1 = borderValue + axisHalfWidth;
+			ty2 = me.top + tl;
+		} else if (position === 'left') {
+			borderValue = alignBorderValue(me.right);
+			tx1 = me.right - tl;
+			tx2 = borderValue - axisHalfWidth;
+			x1 = alignBorderValue(chartArea.left) + axisHalfWidth;
+			x2 = chartArea.right;
+		} else {
+			borderValue = alignBorderValue(me.left);
+			x1 = chartArea.left;
+			x2 = alignBorderValue(chartArea.right) - axisHalfWidth;
+			tx1 = borderValue + axisHalfWidth;
+			tx2 = me.left + tl;
+		}
+
+		for (i = 0; i < ticksLength; ++i) {
+			tick = ticks[i] || {};
+
+			// autoskipper skipped this tick (#4635)
+			if (isNullOrUndef(tick.label) && i < ticks.length) {
+				continue;
+			}
+
+			if (i === me.zeroLineIndex && options.offset === offsetGridLines) {
+				// Draw the first index specially
+				lineWidth = gridLines.zeroLineWidth;
+				lineColor = gridLines.zeroLineColor;
+				borderDash = gridLines.zeroLineBorderDash || [];
+				borderDashOffset = gridLines.zeroLineBorderDashOffset || 0.0;
+			} else {
+				lineWidth = valueAtIndexOrDefault(gridLines.lineWidth, i, 1);
+				lineColor = valueAtIndexOrDefault(gridLines.color, i, 'rgba(0,0,0,0.1)');
+				borderDash = gridLines.borderDash || [];
+				borderDashOffset = gridLines.borderDashOffset || 0.0;
+			}
+
+			lineValue = getPixelForGridLine(me, tick._index || i, offsetGridLines);
+
+			// Skip if the pixel is out of the range
+			if (lineValue === undefined) {
+				continue;
+			}
+
+			alignedLineValue = alignPixel(chart, lineValue, lineWidth);
+
+			if (isHorizontal) {
+				tx1 = tx2 = x1 = x2 = alignedLineValue;
+			} else {
+				ty1 = ty2 = y1 = y2 = alignedLineValue;
+			}
+
+			items.push({
+				tx1: tx1,
+				ty1: ty1,
+				tx2: tx2,
+				ty2: ty2,
+				x1: x1,
+				y1: y1,
+				x2: x2,
+				y2: y2,
+				width: lineWidth,
+				color: lineColor,
+				borderDash: borderDash,
+				borderDashOffset: borderDashOffset,
+			});
+		}
+
+		items.ticksLength = ticksLength;
+		items.borderValue = borderValue;
+
+		return items;
+	},
+
+	/**
+	 * @private
+	 */
+	_computeLabelItems: function() {
+		var me = this;
+		var options = me.options;
+		var optionTicks = options.ticks;
+		var position = options.position;
+		var isMirrored = optionTicks.mirror;
+		var isHorizontal = me.isHorizontal();
+		var ticks = me._ticksToDraw;
+		var fonts = parseTickFontOptions(optionTicks);
+		var tickPadding = optionTicks.padding;
+		var tl = getTickMarkLength(options.gridLines);
+		var rotation = -helpers$1.toRadians(me.labelRotation);
+		var items = [];
+		var i, ilen, tick, label, x, y, textAlign, pixel, font, lineHeight, lineCount, textOffset;
+
+		if (position === 'top') {
+			y = me.bottom - tl - tickPadding;
+			textAlign = !rotation ? 'center' : 'left';
+		} else if (position === 'bottom') {
+			y = me.top + tl + tickPadding;
+			textAlign = !rotation ? 'center' : 'right';
+		} else if (position === 'left') {
+			x = me.right - (isMirrored ? 0 : tl) - tickPadding;
+			textAlign = isMirrored ? 'left' : 'right';
+		} else {
+			x = me.left + (isMirrored ? 0 : tl) + tickPadding;
+			textAlign = isMirrored ? 'right' : 'left';
+		}
+
+		for (i = 0, ilen = ticks.length; i < ilen; ++i) {
+			tick = ticks[i];
+			label = tick.label;
+
+			// autoskipper skipped this tick (#4635)
+			if (isNullOrUndef(label)) {
+				continue;
+			}
+
+			pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;
+			font = tick.major ? fonts.major : fonts.minor;
+			lineHeight = font.lineHeight;
+			lineCount = isArray(label) ? label.length : 1;
+
+			if (isHorizontal) {
+				x = pixel;
+				textOffset = position === 'top'
+					? ((!rotation ? 0.5 : 1) - lineCount) * lineHeight
+					: (!rotation ? 0.5 : 0) * lineHeight;
+			} else {
+				y = pixel;
+				textOffset = (1 - lineCount) * lineHeight / 2;
+			}
+
+			items.push({
+				x: x,
+				y: y,
+				rotation: rotation,
+				label: label,
+				font: font,
+				textOffset: textOffset,
+				textAlign: textAlign
+			});
+		}
+
+		return items;
+	},
+
+	/**
+	 * @private
+	 */
+	_drawGrid: function(chartArea) {
+		var me = this;
+		var gridLines = me.options.gridLines;
+
+		if (!gridLines.display) {
+			return;
+		}
+
+		var ctx = me.ctx;
+		var chart = me.chart;
+		var alignPixel = helpers$1._alignPixel;
+		var axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;
+		var items = me._gridLineItems || (me._gridLineItems = me._computeGridLineItems(chartArea));
+		var width, color, i, ilen, item;
+
+		for (i = 0, ilen = items.length; i < ilen; ++i) {
+			item = items[i];
+			width = item.width;
+			color = item.color;
+
+			if (width && color) {
+				ctx.save();
+				ctx.lineWidth = width;
+				ctx.strokeStyle = color;
+				if (ctx.setLineDash) {
+					ctx.setLineDash(item.borderDash);
+					ctx.lineDashOffset = item.borderDashOffset;
+				}
+
+				ctx.beginPath();
+
+				if (gridLines.drawTicks) {
+					ctx.moveTo(item.tx1, item.ty1);
+					ctx.lineTo(item.tx2, item.ty2);
+				}
+
+				if (gridLines.drawOnChartArea) {
+					ctx.moveTo(item.x1, item.y1);
+					ctx.lineTo(item.x2, item.y2);
+				}
+
+				ctx.stroke();
+				ctx.restore();
+			}
+		}
+
+		if (axisWidth) {
+			// Draw the line at the edge of the axis
+			var firstLineWidth = axisWidth;
+			var lastLineWidth = valueAtIndexOrDefault(gridLines.lineWidth, items.ticksLength - 1, 1);
+			var borderValue = items.borderValue;
+			var x1, x2, y1, y2;
+
+			if (me.isHorizontal()) {
+				x1 = alignPixel(chart, me.left, firstLineWidth) - firstLineWidth / 2;
+				x2 = alignPixel(chart, me.right, lastLineWidth) + lastLineWidth / 2;
+				y1 = y2 = borderValue;
+			} else {
+				y1 = alignPixel(chart, me.top, firstLineWidth) - firstLineWidth / 2;
+				y2 = alignPixel(chart, me.bottom, lastLineWidth) + lastLineWidth / 2;
+				x1 = x2 = borderValue;
+			}
+
+			ctx.lineWidth = axisWidth;
+			ctx.strokeStyle = valueAtIndexOrDefault(gridLines.color, 0);
+			ctx.beginPath();
+			ctx.moveTo(x1, y1);
+			ctx.lineTo(x2, y2);
+			ctx.stroke();
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	_drawLabels: function() {
+		var me = this;
+		var optionTicks = me.options.ticks;
+
+		if (!optionTicks.display) {
+			return;
+		}
+
+		var ctx = me.ctx;
+		var items = me._labelItems || (me._labelItems = me._computeLabelItems());
+		var i, j, ilen, jlen, item, tickFont, label, y;
+
+		for (i = 0, ilen = items.length; i < ilen; ++i) {
+			item = items[i];
+			tickFont = item.font;
+
+			// Make sure we draw text in the correct color and font
+			ctx.save();
+			ctx.translate(item.x, item.y);
+			ctx.rotate(item.rotation);
+			ctx.font = tickFont.string;
+			ctx.fillStyle = tickFont.color;
+			ctx.textBaseline = 'middle';
+			ctx.textAlign = item.textAlign;
+
+			label = item.label;
+			y = item.textOffset;
+			if (isArray(label)) {
+				for (j = 0, jlen = label.length; j < jlen; ++j) {
+					// We just make sure the multiline element is a string here..
+					ctx.fillText('' + label[j], 0, y);
+					y += tickFont.lineHeight;
+				}
+			} else {
+				ctx.fillText(label, 0, y);
+			}
+			ctx.restore();
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	_drawTitle: function() {
+		var me = this;
+		var ctx = me.ctx;
+		var options = me.options;
+		var scaleLabel = options.scaleLabel;
+
+		if (!scaleLabel.display) {
+			return;
+		}
+
+		var scaleLabelFontColor = valueOrDefault$a(scaleLabel.fontColor, core_defaults.global.defaultFontColor);
+		var scaleLabelFont = helpers$1.options._parseFont(scaleLabel);
+		var scaleLabelPadding = helpers$1.options.toPadding(scaleLabel.padding);
+		var halfLineHeight = scaleLabelFont.lineHeight / 2;
+		var position = options.position;
+		var rotation = 0;
+		var scaleLabelX, scaleLabelY;
+
+		if (me.isHorizontal()) {
+			scaleLabelX = me.left + me.width / 2; // midpoint of the width
+			scaleLabelY = position === 'bottom'
+				? me.bottom - halfLineHeight - scaleLabelPadding.bottom
+				: me.top + halfLineHeight + scaleLabelPadding.top;
+		} else {
+			var isLeft = position === 'left';
+			scaleLabelX = isLeft
+				? me.left + halfLineHeight + scaleLabelPadding.top
+				: me.right - halfLineHeight - scaleLabelPadding.top;
+			scaleLabelY = me.top + me.height / 2;
+			rotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;
+		}
+
+		ctx.save();
+		ctx.translate(scaleLabelX, scaleLabelY);
+		ctx.rotate(rotation);
+		ctx.textAlign = 'center';
+		ctx.textBaseline = 'middle';
+		ctx.fillStyle = scaleLabelFontColor; // render in correct colour
+		ctx.font = scaleLabelFont.string;
+		ctx.fillText(scaleLabel.labelString, 0, 0);
+		ctx.restore();
+	},
+
+	draw: function(chartArea) {
+		var me = this;
+
+		if (!me._isVisible()) {
+			return;
+		}
+
+		me._drawGrid(chartArea);
+		me._drawTitle();
+		me._drawLabels();
+	},
+
+	/**
+	 * @private
+	 */
+	_layers: function() {
+		var me = this;
+		var opts = me.options;
+		var tz = opts.ticks && opts.ticks.z || 0;
+		var gz = opts.gridLines && opts.gridLines.z || 0;
+
+		if (!me._isVisible() || tz === gz || me.draw !== me._draw) {
+			// backward compatibility: draw has been overridden by custom scale
+			return [{
+				z: tz,
+				draw: function() {
+					me.draw.apply(me, arguments);
+				}
+			}];
+		}
+
+		return [{
+			z: gz,
+			draw: function() {
+				me._drawGrid.apply(me, arguments);
+				me._drawTitle.apply(me, arguments);
+			}
+		}, {
+			z: tz,
+			draw: function() {
+				me._drawLabels.apply(me, arguments);
+			}
+		}];
+	},
+
+	/**
+	 * @private
+	 */
+	_getMatchingVisibleMetas: function(type) {
+		var me = this;
+		var isHorizontal = me.isHorizontal();
+		return me.chart._getSortedVisibleDatasetMetas()
+			.filter(function(meta) {
+				return (!type || meta.type === type)
+					&& (isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id);
+			});
+	}
+});
+
+Scale.prototype._draw = Scale.prototype.draw;
+
+var core_scale = Scale;
+
+var isNullOrUndef$1 = helpers$1.isNullOrUndef;
+
+var defaultConfig = {
+	position: 'bottom'
+};
+
+var scale_category = core_scale.extend({
+	determineDataLimits: function() {
+		var me = this;
+		var labels = me._getLabels();
+		var ticksOpts = me.options.ticks;
+		var min = ticksOpts.min;
+		var max = ticksOpts.max;
+		var minIndex = 0;
+		var maxIndex = labels.length - 1;
+		var findIndex;
+
+		if (min !== undefined) {
+			// user specified min value
+			findIndex = labels.indexOf(min);
+			if (findIndex >= 0) {
+				minIndex = findIndex;
+			}
+		}
+
+		if (max !== undefined) {
+			// user specified max value
+			findIndex = labels.indexOf(max);
+			if (findIndex >= 0) {
+				maxIndex = findIndex;
+			}
+		}
+
+		me.minIndex = minIndex;
+		me.maxIndex = maxIndex;
+		me.min = labels[minIndex];
+		me.max = labels[maxIndex];
+	},
+
+	buildTicks: function() {
+		var me = this;
+		var labels = me._getLabels();
+		var minIndex = me.minIndex;
+		var maxIndex = me.maxIndex;
+
+		// If we are viewing some subset of labels, slice the original array
+		me.ticks = (minIndex === 0 && maxIndex === labels.length - 1) ? labels : labels.slice(minIndex, maxIndex + 1);
+	},
+
+	getLabelForIndex: function(index, datasetIndex) {
+		var me = this;
+		var chart = me.chart;
+
+		if (chart.getDatasetMeta(datasetIndex).controller._getValueScaleId() === me.id) {
+			return me.getRightValue(chart.data.datasets[datasetIndex].data[index]);
+		}
+
+		return me._getLabels()[index];
+	},
+
+	_configure: function() {
+		var me = this;
+		var offset = me.options.offset;
+		var ticks = me.ticks;
+
+		core_scale.prototype._configure.call(me);
+
+		if (!me.isHorizontal()) {
+			// For backward compatibility, vertical category scale reverse is inverted.
+			me._reversePixels = !me._reversePixels;
+		}
+
+		if (!ticks) {
+			return;
+		}
+
+		me._startValue = me.minIndex - (offset ? 0.5 : 0);
+		me._valueRange = Math.max(ticks.length - (offset ? 0 : 1), 1);
+	},
+
+	// Used to get data value locations.  Value can either be an index or a numerical value
+	getPixelForValue: function(value, index, datasetIndex) {
+		var me = this;
+		var valueCategory, labels, idx;
+
+		if (!isNullOrUndef$1(index) && !isNullOrUndef$1(datasetIndex)) {
+			value = me.chart.data.datasets[datasetIndex].data[index];
+		}
+
+		// If value is a data object, then index is the index in the data array,
+		// not the index of the scale. We need to change that.
+		if (!isNullOrUndef$1(value)) {
+			valueCategory = me.isHorizontal() ? value.x : value.y;
+		}
+		if (valueCategory !== undefined || (value !== undefined && isNaN(index))) {
+			labels = me._getLabels();
+			value = helpers$1.valueOrDefault(valueCategory, value);
+			idx = labels.indexOf(value);
+			index = idx !== -1 ? idx : index;
+			if (isNaN(index)) {
+				index = value;
+			}
+		}
+		return me.getPixelForDecimal((index - me._startValue) / me._valueRange);
+	},
+
+	getPixelForTick: function(index) {
+		var ticks = this.ticks;
+		return index < 0 || index > ticks.length - 1
+			? null
+			: this.getPixelForValue(ticks[index], index + this.minIndex);
+	},
+
+	getValueForPixel: function(pixel) {
+		var me = this;
+		var value = Math.round(me._startValue + me.getDecimalForPixel(pixel) * me._valueRange);
+		return Math.min(Math.max(value, 0), me.ticks.length - 1);
+	},
+
+	getBasePixel: function() {
+		return this.bottom;
+	}
+});
 
-                        var string = integer.toString(16).toUpperCase();
-                        return '000000'.substring(string.length) + string;
-                    };
+// INTERNAL: static default options, registered in src/index.js
+var _defaults = defaultConfig;
+scale_category._defaults = _defaults;
 
-                    convert.rgb.gray = function (rgb) {
-                        var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
-                        return [val / 255 * 100];
-                    };
-                });
-                var conversions_1 = conversions.rgb;
-                var conversions_2 = conversions.hsl;
-                var conversions_3 = conversions.hsv;
-                var conversions_4 = conversions.hwb;
-                var conversions_5 = conversions.cmyk;
-                var conversions_6 = conversions.xyz;
-                var conversions_7 = conversions.lab;
-                var conversions_8 = conversions.lch;
-                var conversions_9 = conversions.hex;
-                var conversions_10 = conversions.keyword;
-                var conversions_11 = conversions.ansi16;
-                var conversions_12 = conversions.ansi256;
-                var conversions_13 = conversions.hcg;
-                var conversions_14 = conversions.apple;
-                var conversions_15 = conversions.gray;
-
-                /*
-	this function routes a model to all other models.
+var noop = helpers$1.noop;
+var isNullOrUndef$2 = helpers$1.isNullOrUndef;
 
-	all functions that are routed have a property `.conversion` attached
-	to the returned synthetic function. This property is an array
-	of strings, each with the steps in between the 'from' and 'to'
-	color models (inclusive).
+/**
+ * Generate a set of linear ticks
+ * @param generationOptions the options used to generate the ticks
+ * @param dataRange the range of the data
+ * @returns {number[]} array of tick values
+ */
+function generateTicks(generationOptions, dataRange) {
+	var ticks = [];
+	// To get a "nice" value for the tick spacing, we will use the appropriately named
+	// "nice number" algorithm. See https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks
+	// for details.
+
+	var MIN_SPACING = 1e-14;
+	var stepSize = generationOptions.stepSize;
+	var unit = stepSize || 1;
+	var maxNumSpaces = generationOptions.maxTicks - 1;
+	var min = generationOptions.min;
+	var max = generationOptions.max;
+	var precision = generationOptions.precision;
+	var rmin = dataRange.min;
+	var rmax = dataRange.max;
+	var spacing = helpers$1.niceNum((rmax - rmin) / maxNumSpaces / unit) * unit;
+	var factor, niceMin, niceMax, numSpaces;
+
+	// Beyond MIN_SPACING floating point numbers being to lose precision
+	// such that we can't do the math necessary to generate ticks
+	if (spacing < MIN_SPACING && isNullOrUndef$2(min) && isNullOrUndef$2(max)) {
+		return [rmin, rmax];
+	}
+
+	numSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing);
+	if (numSpaces > maxNumSpaces) {
+		// If the calculated num of spaces exceeds maxNumSpaces, recalculate it
+		spacing = helpers$1.niceNum(numSpaces * spacing / maxNumSpaces / unit) * unit;
+	}
+
+	if (stepSize || isNullOrUndef$2(precision)) {
+		// If a precision is not specified, calculate factor based on spacing
+		factor = Math.pow(10, helpers$1._decimalPlaces(spacing));
+	} else {
+		// If the user specified a precision, round to that number of decimal places
+		factor = Math.pow(10, precision);
+		spacing = Math.ceil(spacing * factor) / factor;
+	}
+
+	niceMin = Math.floor(rmin / spacing) * spacing;
+	niceMax = Math.ceil(rmax / spacing) * spacing;
+
+	// If min, max and stepSize is set and they make an evenly spaced scale use it.
+	if (stepSize) {
+		// If very close to our whole number, use it.
+		if (!isNullOrUndef$2(min) && helpers$1.almostWhole(min / spacing, spacing / 1000)) {
+			niceMin = min;
+		}
+		if (!isNullOrUndef$2(max) && helpers$1.almostWhole(max / spacing, spacing / 1000)) {
+			niceMax = max;
+		}
+	}
+
+	numSpaces = (niceMax - niceMin) / spacing;
+	// If very close to our rounded value, use it.
+	if (helpers$1.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {
+		numSpaces = Math.round(numSpaces);
+	} else {
+		numSpaces = Math.ceil(numSpaces);
+	}
+
+	niceMin = Math.round(niceMin * factor) / factor;
+	niceMax = Math.round(niceMax * factor) / factor;
+	ticks.push(isNullOrUndef$2(min) ? niceMin : min);
+	for (var j = 1; j < numSpaces; ++j) {
+		ticks.push(Math.round((niceMin + j * spacing) * factor) / factor);
+	}
+	ticks.push(isNullOrUndef$2(max) ? niceMax : max);
+
+	return ticks;
+}
+
+var scale_linearbase = core_scale.extend({
+	getRightValue: function(value) {
+		if (typeof value === 'string') {
+			return +value;
+		}
+		return core_scale.prototype.getRightValue.call(this, value);
+	},
+
+	handleTickRangeOptions: function() {
+		var me = this;
+		var opts = me.options;
+		var tickOpts = opts.ticks;
+
+		// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,
+		// do nothing since that would make the chart weird. If the user really wants a weird chart
+		// axis, they can manually override it
+		if (tickOpts.beginAtZero) {
+			var minSign = helpers$1.sign(me.min);
+			var maxSign = helpers$1.sign(me.max);
+
+			if (minSign < 0 && maxSign < 0) {
+				// move the top up to 0
+				me.max = 0;
+			} else if (minSign > 0 && maxSign > 0) {
+				// move the bottom down to 0
+				me.min = 0;
+			}
+		}
+
+		var setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;
+		var setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;
+
+		if (tickOpts.min !== undefined) {
+			me.min = tickOpts.min;
+		} else if (tickOpts.suggestedMin !== undefined) {
+			if (me.min === null) {
+				me.min = tickOpts.suggestedMin;
+			} else {
+				me.min = Math.min(me.min, tickOpts.suggestedMin);
+			}
+		}
+
+		if (tickOpts.max !== undefined) {
+			me.max = tickOpts.max;
+		} else if (tickOpts.suggestedMax !== undefined) {
+			if (me.max === null) {
+				me.max = tickOpts.suggestedMax;
+			} else {
+				me.max = Math.max(me.max, tickOpts.suggestedMax);
+			}
+		}
+
+		if (setMin !== setMax) {
+			// We set the min or the max but not both.
+			// So ensure that our range is good
+			// Inverted or 0 length range can happen when
+			// ticks.min is set, and no datasets are visible
+			if (me.min >= me.max) {
+				if (setMin) {
+					me.max = me.min + 1;
+				} else {
+					me.min = me.max - 1;
+				}
+			}
+		}
+
+		if (me.min === me.max) {
+			me.max++;
+
+			if (!tickOpts.beginAtZero) {
+				me.min--;
+			}
+		}
+	},
+
+	getTickLimit: function() {
+		var me = this;
+		var tickOpts = me.options.ticks;
+		var stepSize = tickOpts.stepSize;
+		var maxTicksLimit = tickOpts.maxTicksLimit;
+		var maxTicks;
+
+		if (stepSize) {
+			maxTicks = Math.ceil(me.max / stepSize) - Math.floor(me.min / stepSize) + 1;
+		} else {
+			maxTicks = me._computeTickLimit();
+			maxTicksLimit = maxTicksLimit || 11;
+		}
+
+		if (maxTicksLimit) {
+			maxTicks = Math.min(maxTicksLimit, maxTicks);
+		}
+
+		return maxTicks;
+	},
+
+	_computeTickLimit: function() {
+		return Number.POSITIVE_INFINITY;
+	},
+
+	handleDirectionalChanges: noop,
+
+	buildTicks: function() {
+		var me = this;
+		var opts = me.options;
+		var tickOpts = opts.ticks;
+
+		// Figure out what the max number of ticks we can support it is based on the size of
+		// the axis area. For now, we say that the minimum tick spacing in pixels must be 40
+		// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on
+		// the graph. Make sure we always have at least 2 ticks
+		var maxTicks = me.getTickLimit();
+		maxTicks = Math.max(2, maxTicks);
+
+		var numericGeneratorOptions = {
+			maxTicks: maxTicks,
+			min: tickOpts.min,
+			max: tickOpts.max,
+			precision: tickOpts.precision,
+			stepSize: helpers$1.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)
+		};
+		var ticks = me.ticks = generateTicks(numericGeneratorOptions, me);
+
+		me.handleDirectionalChanges();
+
+		// At this point, we need to update our max and min given the tick values since we have expanded the
+		// range of the scale
+		me.max = helpers$1.max(ticks);
+		me.min = helpers$1.min(ticks);
+
+		if (tickOpts.reverse) {
+			ticks.reverse();
+
+			me.start = me.max;
+			me.end = me.min;
+		} else {
+			me.start = me.min;
+			me.end = me.max;
+		}
+	},
+
+	convertTicksToLabels: function() {
+		var me = this;
+		me.ticksAsNumbers = me.ticks.slice();
+		me.zeroLineIndex = me.ticks.indexOf(0);
+
+		core_scale.prototype.convertTicksToLabels.call(me);
+	},
+
+	_configure: function() {
+		var me = this;
+		var ticks = me.getTicks();
+		var start = me.min;
+		var end = me.max;
+		var offset;
+
+		core_scale.prototype._configure.call(me);
+
+		if (me.options.offset && ticks.length) {
+			offset = (end - start) / Math.max(ticks.length - 1, 1) / 2;
+			start -= offset;
+			end += offset;
+		}
+		me._startValue = start;
+		me._endValue = end;
+		me._valueRange = end - start;
+	}
+});
+
+var defaultConfig$1 = {
+	position: 'left',
+	ticks: {
+		callback: core_ticks.formatters.linear
+	}
+};
+
+var DEFAULT_MIN = 0;
+var DEFAULT_MAX = 1;
+
+function getOrCreateStack(stacks, stacked, meta) {
+	var key = [
+		meta.type,
+		// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined
+		stacked === undefined && meta.stack === undefined ? meta.index : '',
+		meta.stack
+	].join('.');
+
+	if (stacks[key] === undefined) {
+		stacks[key] = {
+			pos: [],
+			neg: []
+		};
+	}
+
+	return stacks[key];
+}
+
+function stackData(scale, stacks, meta, data) {
+	var opts = scale.options;
+	var stacked = opts.stacked;
+	var stack = getOrCreateStack(stacks, stacked, meta);
+	var pos = stack.pos;
+	var neg = stack.neg;
+	var ilen = data.length;
+	var i, value;
+
+	for (i = 0; i < ilen; ++i) {
+		value = scale._parseValue(data[i]);
+		if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {
+			continue;
+		}
+
+		pos[i] = pos[i] || 0;
+		neg[i] = neg[i] || 0;
+
+		if (opts.relativePoints) {
+			pos[i] = 100;
+		} else if (value.min < 0 || value.max < 0) {
+			neg[i] += value.min;
+		} else {
+			pos[i] += value.max;
+		}
+	}
+}
+
+function updateMinMax(scale, meta, data) {
+	var ilen = data.length;
+	var i, value;
+
+	for (i = 0; i < ilen; ++i) {
+		value = scale._parseValue(data[i]);
+		if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {
+			continue;
+		}
+
+		scale.min = Math.min(scale.min, value.min);
+		scale.max = Math.max(scale.max, value.max);
+	}
+}
+
+var scale_linear = scale_linearbase.extend({
+	determineDataLimits: function() {
+		var me = this;
+		var opts = me.options;
+		var chart = me.chart;
+		var datasets = chart.data.datasets;
+		var metasets = me._getMatchingVisibleMetas();
+		var hasStacks = opts.stacked;
+		var stacks = {};
+		var ilen = metasets.length;
+		var i, meta, data, values;
+
+		me.min = Number.POSITIVE_INFINITY;
+		me.max = Number.NEGATIVE_INFINITY;
+
+		if (hasStacks === undefined) {
+			for (i = 0; !hasStacks && i < ilen; ++i) {
+				meta = metasets[i];
+				hasStacks = meta.stack !== undefined;
+			}
+		}
+
+		for (i = 0; i < ilen; ++i) {
+			meta = metasets[i];
+			data = datasets[meta.index].data;
+			if (hasStacks) {
+				stackData(me, stacks, meta, data);
+			} else {
+				updateMinMax(me, meta, data);
+			}
+		}
+
+		helpers$1.each(stacks, function(stackValues) {
+			values = stackValues.pos.concat(stackValues.neg);
+			me.min = Math.min(me.min, helpers$1.min(values));
+			me.max = Math.max(me.max, helpers$1.max(values));
+		});
+
+		me.min = helpers$1.isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;
+		me.max = helpers$1.isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;
+
+		// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero
+		me.handleTickRangeOptions();
+	},
+
+	// Returns the maximum number of ticks based on the scale dimension
+	_computeTickLimit: function() {
+		var me = this;
+		var tickFont;
+
+		if (me.isHorizontal()) {
+			return Math.ceil(me.width / 40);
+		}
+		tickFont = helpers$1.options._parseFont(me.options.ticks);
+		return Math.ceil(me.height / tickFont.lineHeight);
+	},
+
+	// Called after the ticks are built. We need
+	handleDirectionalChanges: function() {
+		if (!this.isHorizontal()) {
+			// We are in a vertical orientation. The top value is the highest. So reverse the array
+			this.ticks.reverse();
+		}
+	},
+
+	getLabelForIndex: function(index, datasetIndex) {
+		return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);
+	},
+
+	// Utils
+	getPixelForValue: function(value) {
+		var me = this;
+		return me.getPixelForDecimal((+me.getRightValue(value) - me._startValue) / me._valueRange);
+	},
+
+	getValueForPixel: function(pixel) {
+		return this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;
+	},
+
+	getPixelForTick: function(index) {
+		var ticks = this.ticksAsNumbers;
+		if (index < 0 || index > ticks.length - 1) {
+			return null;
+		}
+		return this.getPixelForValue(ticks[index]);
+	}
+});
 
-	conversions that are not possible simply are not included.
-*/
+// INTERNAL: static default options, registered in src/index.js
+var _defaults$1 = defaultConfig$1;
+scale_linear._defaults = _defaults$1;
 
-                function buildGraph() {
-                    var graph = {};
-                    // https://jsperf.com/object-keys-vs-for-in-with-closure/3
-                    var models = Object.keys(conversions);
-
-                    for (var len = models.length, i = 0; i < len; i++) {
-                        graph[models[i]] = {
-                            // http://jsperf.com/1-vs-infinity
-                            // micro-opt, but this is simple.
-                            distance: -1,
-                            parent: null
-                        };
-                    }
+var valueOrDefault$b = helpers$1.valueOrDefault;
+var log10 = helpers$1.math.log10;
 
-                    return graph;
-                }
+/**
+ * Generate a set of logarithmic ticks
+ * @param generationOptions the options used to generate the ticks
+ * @param dataRange the range of the data
+ * @returns {number[]} array of tick values
+ */
+function generateTicks$1(generationOptions, dataRange) {
+	var ticks = [];
 
-// https://en.wikipedia.org/wiki/Breadth-first_search
-                function deriveBFS(fromModel) {
-                    var graph = buildGraph();
-                    var queue = [fromModel]; // unshift -> queue -> pop
+	var tickVal = valueOrDefault$b(generationOptions.min, Math.pow(10, Math.floor(log10(dataRange.min))));
 
-                    graph[fromModel].distance = 0;
+	var endExp = Math.floor(log10(dataRange.max));
+	var endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));
+	var exp, significand;
 
-                    while (queue.length) {
-                        var current = queue.pop();
-                        var adjacents = Object.keys(conversions[current]);
+	if (tickVal === 0) {
+		exp = Math.floor(log10(dataRange.minNotZero));
+		significand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));
 
-                        for (var len = adjacents.length, i = 0; i < len; i++) {
-                            var adjacent = adjacents[i];
-                            var node = graph[adjacent];
+		ticks.push(tickVal);
+		tickVal = significand * Math.pow(10, exp);
+	} else {
+		exp = Math.floor(log10(tickVal));
+		significand = Math.floor(tickVal / Math.pow(10, exp));
+	}
+	var precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;
 
-                            if (node.distance === -1) {
-                                node.distance = graph[current].distance + 1;
-                                node.parent = current;
-                                queue.unshift(adjacent);
-                            }
-                        }
-                    }
+	do {
+		ticks.push(tickVal);
 
-                    return graph;
-                }
+		++significand;
+		if (significand === 10) {
+			significand = 1;
+			++exp;
+			precision = exp >= 0 ? 1 : precision;
+		}
 
-                function link(from, to) {
-                    return function (args) {
-                        return to(from(args));
-                    };
-                }
+		tickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;
+	} while (exp < endExp || (exp === endExp && significand < endSignificand));
 
-                function wrapConversion(toModel, graph) {
-                    var path = [graph[toModel].parent, toModel];
-                    var fn = conversions[graph[toModel].parent][toModel];
+	var lastTick = valueOrDefault$b(generationOptions.max, tickVal);
+	ticks.push(lastTick);
 
-                    var cur = graph[toModel].parent;
-                    while (graph[cur].parent) {
-                        path.unshift(graph[cur].parent);
-                        fn = link(conversions[graph[cur].parent][cur], fn);
-                        cur = graph[cur].parent;
-                    }
+	return ticks;
+}
 
-                    fn.conversion = path;
-                    return fn;
-                }
+var defaultConfig$2 = {
+	position: 'left',
 
-                var route = function (fromModel) {
-                    var graph = deriveBFS(fromModel);
-                    var conversion = {};
+	// label settings
+	ticks: {
+		callback: core_ticks.formatters.logarithmic
+	}
+};
 
-                    var models = Object.keys(graph);
-                    for (var len = models.length, i = 0; i < len; i++) {
-                        var toModel = models[i];
-                        var node = graph[toModel];
+// TODO(v3): change this to positiveOrDefault
+function nonNegativeOrDefault(value, defaultValue) {
+	return helpers$1.isFinite(value) && value >= 0 ? value : defaultValue;
+}
+
+var scale_logarithmic = core_scale.extend({
+	determineDataLimits: function() {
+		var me = this;
+		var opts = me.options;
+		var chart = me.chart;
+		var datasets = chart.data.datasets;
+		var isHorizontal = me.isHorizontal();
+		function IDMatches(meta) {
+			return isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;
+		}
+		var datasetIndex, meta, value, data, i, ilen;
+
+		// Calculate Range
+		me.min = Number.POSITIVE_INFINITY;
+		me.max = Number.NEGATIVE_INFINITY;
+		me.minNotZero = Number.POSITIVE_INFINITY;
+
+		var hasStacks = opts.stacked;
+		if (hasStacks === undefined) {
+			for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
+				meta = chart.getDatasetMeta(datasetIndex);
+				if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&
+					meta.stack !== undefined) {
+					hasStacks = true;
+					break;
+				}
+			}
+		}
+
+		if (opts.stacked || hasStacks) {
+			var valuesPerStack = {};
+
+			for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
+				meta = chart.getDatasetMeta(datasetIndex);
+				var key = [
+					meta.type,
+					// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined
+					((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),
+					meta.stack
+				].join('.');
+
+				if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {
+					if (valuesPerStack[key] === undefined) {
+						valuesPerStack[key] = [];
+					}
+
+					data = datasets[datasetIndex].data;
+					for (i = 0, ilen = data.length; i < ilen; i++) {
+						var values = valuesPerStack[key];
+						value = me._parseValue(data[i]);
+						// invalid, hidden and negative values are ignored
+						if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {
+							continue;
+						}
+						values[i] = values[i] || 0;
+						values[i] += value.max;
+					}
+				}
+			}
+
+			helpers$1.each(valuesPerStack, function(valuesForType) {
+				if (valuesForType.length > 0) {
+					var minVal = helpers$1.min(valuesForType);
+					var maxVal = helpers$1.max(valuesForType);
+					me.min = Math.min(me.min, minVal);
+					me.max = Math.max(me.max, maxVal);
+				}
+			});
+
+		} else {
+			for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
+				meta = chart.getDatasetMeta(datasetIndex);
+				if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {
+					data = datasets[datasetIndex].data;
+					for (i = 0, ilen = data.length; i < ilen; i++) {
+						value = me._parseValue(data[i]);
+						// invalid, hidden and negative values are ignored
+						if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {
+							continue;
+						}
+
+						me.min = Math.min(value.min, me.min);
+						me.max = Math.max(value.max, me.max);
+
+						if (value.min !== 0) {
+							me.minNotZero = Math.min(value.min, me.minNotZero);
+						}
+					}
+				}
+			}
+		}
+
+		me.min = helpers$1.isFinite(me.min) ? me.min : null;
+		me.max = helpers$1.isFinite(me.max) ? me.max : null;
+		me.minNotZero = helpers$1.isFinite(me.minNotZero) ? me.minNotZero : null;
+
+		// Common base implementation to handle ticks.min, ticks.max
+		this.handleTickRangeOptions();
+	},
+
+	handleTickRangeOptions: function() {
+		var me = this;
+		var tickOpts = me.options.ticks;
+		var DEFAULT_MIN = 1;
+		var DEFAULT_MAX = 10;
+
+		me.min = nonNegativeOrDefault(tickOpts.min, me.min);
+		me.max = nonNegativeOrDefault(tickOpts.max, me.max);
+
+		if (me.min === me.max) {
+			if (me.min !== 0 && me.min !== null) {
+				me.min = Math.pow(10, Math.floor(log10(me.min)) - 1);
+				me.max = Math.pow(10, Math.floor(log10(me.max)) + 1);
+			} else {
+				me.min = DEFAULT_MIN;
+				me.max = DEFAULT_MAX;
+			}
+		}
+		if (me.min === null) {
+			me.min = Math.pow(10, Math.floor(log10(me.max)) - 1);
+		}
+		if (me.max === null) {
+			me.max = me.min !== 0
+				? Math.pow(10, Math.floor(log10(me.min)) + 1)
+				: DEFAULT_MAX;
+		}
+		if (me.minNotZero === null) {
+			if (me.min > 0) {
+				me.minNotZero = me.min;
+			} else if (me.max < 1) {
+				me.minNotZero = Math.pow(10, Math.floor(log10(me.max)));
+			} else {
+				me.minNotZero = DEFAULT_MIN;
+			}
+		}
+	},
+
+	buildTicks: function() {
+		var me = this;
+		var tickOpts = me.options.ticks;
+		var reverse = !me.isHorizontal();
+
+		var generationOptions = {
+			min: nonNegativeOrDefault(tickOpts.min),
+			max: nonNegativeOrDefault(tickOpts.max)
+		};
+		var ticks = me.ticks = generateTicks$1(generationOptions, me);
+
+		// At this point, we need to update our max and min given the tick values since we have expanded the
+		// range of the scale
+		me.max = helpers$1.max(ticks);
+		me.min = helpers$1.min(ticks);
+
+		if (tickOpts.reverse) {
+			reverse = !reverse;
+			me.start = me.max;
+			me.end = me.min;
+		} else {
+			me.start = me.min;
+			me.end = me.max;
+		}
+		if (reverse) {
+			ticks.reverse();
+		}
+	},
+
+	convertTicksToLabels: function() {
+		this.tickValues = this.ticks.slice();
+
+		core_scale.prototype.convertTicksToLabels.call(this);
+	},
+
+	// Get the correct tooltip label
+	getLabelForIndex: function(index, datasetIndex) {
+		return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);
+	},
+
+	getPixelForTick: function(index) {
+		var ticks = this.tickValues;
+		if (index < 0 || index > ticks.length - 1) {
+			return null;
+		}
+		return this.getPixelForValue(ticks[index]);
+	},
+
+	/**
+	 * Returns the value of the first tick.
+	 * @param {number} value - The minimum not zero value.
+	 * @return {number} The first tick value.
+	 * @private
+	 */
+	_getFirstTickValue: function(value) {
+		var exp = Math.floor(log10(value));
+		var significand = Math.floor(value / Math.pow(10, exp));
+
+		return significand * Math.pow(10, exp);
+	},
+
+	_configure: function() {
+		var me = this;
+		var start = me.min;
+		var offset = 0;
+
+		core_scale.prototype._configure.call(me);
+
+		if (start === 0) {
+			start = me._getFirstTickValue(me.minNotZero);
+			offset = valueOrDefault$b(me.options.ticks.fontSize, core_defaults.global.defaultFontSize) / me._length;
+		}
+
+		me._startValue = log10(start);
+		me._valueOffset = offset;
+		me._valueRange = (log10(me.max) - log10(start)) / (1 - offset);
+	},
+
+	getPixelForValue: function(value) {
+		var me = this;
+		var decimal = 0;
+
+		value = +me.getRightValue(value);
+
+		if (value > me.min && value > 0) {
+			decimal = (log10(value) - me._startValue) / me._valueRange + me._valueOffset;
+		}
+		return me.getPixelForDecimal(decimal);
+	},
+
+	getValueForPixel: function(pixel) {
+		var me = this;
+		var decimal = me.getDecimalForPixel(pixel);
+		return decimal === 0 && me.min === 0
+			? 0
+			: Math.pow(10, me._startValue + (decimal - me._valueOffset) * me._valueRange);
+	}
+});
 
-                        if (node.parent === null) {
-                            // no possible conversion, or this node is the source model.
-                            continue;
-                        }
+// INTERNAL: static default options, registered in src/index.js
+var _defaults$2 = defaultConfig$2;
+scale_logarithmic._defaults = _defaults$2;
+
+var valueOrDefault$c = helpers$1.valueOrDefault;
+var valueAtIndexOrDefault$1 = helpers$1.valueAtIndexOrDefault;
+var resolve$4 = helpers$1.options.resolve;
+
+var defaultConfig$3 = {
+	display: true,
+
+	// Boolean - Whether to animate scaling the chart from the centre
+	animate: true,
+	position: 'chartArea',
+
+	angleLines: {
+		display: true,
+		color: 'rgba(0,0,0,0.1)',
+		lineWidth: 1,
+		borderDash: [],
+		borderDashOffset: 0.0
+	},
+
+	gridLines: {
+		circular: false
+	},
+
+	// label settings
+	ticks: {
+		// Boolean - Show a backdrop to the scale label
+		showLabelBackdrop: true,
+
+		// String - The colour of the label backdrop
+		backdropColor: 'rgba(255,255,255,0.75)',
+
+		// Number - The backdrop padding above & below the label in pixels
+		backdropPaddingY: 2,
+
+		// Number - The backdrop padding to the side of the label in pixels
+		backdropPaddingX: 2,
+
+		callback: core_ticks.formatters.linear
+	},
+
+	pointLabels: {
+		// Boolean - if true, show point labels
+		display: true,
+
+		// Number - Point label font size in pixels
+		fontSize: 10,
+
+		// Function - Used to convert point labels
+		callback: function(label) {
+			return label;
+		}
+	}
+};
+
+function getTickBackdropHeight(opts) {
+	var tickOpts = opts.ticks;
+
+	if (tickOpts.display && opts.display) {
+		return valueOrDefault$c(tickOpts.fontSize, core_defaults.global.defaultFontSize) + tickOpts.backdropPaddingY * 2;
+	}
+	return 0;
+}
+
+function measureLabelSize(ctx, lineHeight, label) {
+	if (helpers$1.isArray(label)) {
+		return {
+			w: helpers$1.longestText(ctx, ctx.font, label),
+			h: label.length * lineHeight
+		};
+	}
+
+	return {
+		w: ctx.measureText(label).width,
+		h: lineHeight
+	};
+}
+
+function determineLimits(angle, pos, size, min, max) {
+	if (angle === min || angle === max) {
+		return {
+			start: pos - (size / 2),
+			end: pos + (size / 2)
+		};
+	} else if (angle < min || angle > max) {
+		return {
+			start: pos - size,
+			end: pos
+		};
+	}
+
+	return {
+		start: pos,
+		end: pos + size
+	};
+}
+
+/**
+ * Helper function to fit a radial linear scale with point labels
+ */
+function fitWithPointLabels(scale) {
+
+	// Right, this is really confusing and there is a lot of maths going on here
+	// The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9
+	//
+	// Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif
+	//
+	// Solution:
+	//
+	// We assume the radius of the polygon is half the size of the canvas at first
+	// at each index we check if the text overlaps.
+	//
+	// Where it does, we store that angle and that index.
+	//
+	// After finding the largest index and angle we calculate how much we need to remove
+	// from the shape radius to move the point inwards by that x.
+	//
+	// We average the left and right distances to get the maximum shape radius that can fit in the box
+	// along with labels.
+	//
+	// Once we have that, we can find the centre point for the chart, by taking the x text protrusion
+	// on each side, removing that from the size, halving it and adding the left x protrusion width.
+	//
+	// This will mean we have a shape fitted to the canvas, as large as it can be with the labels
+	// and position it in the most space efficient manner
+	//
+	// https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif
+
+	var plFont = helpers$1.options._parseFont(scale.options.pointLabels);
+
+	// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.
+	// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points
+	var furthestLimits = {
+		l: 0,
+		r: scale.width,
+		t: 0,
+		b: scale.height - scale.paddingTop
+	};
+	var furthestAngles = {};
+	var i, textSize, pointPosition;
+
+	scale.ctx.font = plFont.string;
+	scale._pointLabelSizes = [];
+
+	var valueCount = scale.chart.data.labels.length;
+	for (i = 0; i < valueCount; i++) {
+		pointPosition = scale.getPointPosition(i, scale.drawingArea + 5);
+		textSize = measureLabelSize(scale.ctx, plFont.lineHeight, scale.pointLabels[i]);
+		scale._pointLabelSizes[i] = textSize;
+
+		// Add quarter circle to make degree 0 mean top of circle
+		var angleRadians = scale.getIndexAngle(i);
+		var angle = helpers$1.toDegrees(angleRadians) % 360;
+		var hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);
+		var vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);
+
+		if (hLimits.start < furthestLimits.l) {
+			furthestLimits.l = hLimits.start;
+			furthestAngles.l = angleRadians;
+		}
+
+		if (hLimits.end > furthestLimits.r) {
+			furthestLimits.r = hLimits.end;
+			furthestAngles.r = angleRadians;
+		}
+
+		if (vLimits.start < furthestLimits.t) {
+			furthestLimits.t = vLimits.start;
+			furthestAngles.t = angleRadians;
+		}
+
+		if (vLimits.end > furthestLimits.b) {
+			furthestLimits.b = vLimits.end;
+			furthestAngles.b = angleRadians;
+		}
+	}
+
+	scale.setReductions(scale.drawingArea, furthestLimits, furthestAngles);
+}
+
+function getTextAlignForAngle(angle) {
+	if (angle === 0 || angle === 180) {
+		return 'center';
+	} else if (angle < 180) {
+		return 'left';
+	}
+
+	return 'right';
+}
+
+function fillText(ctx, text, position, lineHeight) {
+	var y = position.y + lineHeight / 2;
+	var i, ilen;
+
+	if (helpers$1.isArray(text)) {
+		for (i = 0, ilen = text.length; i < ilen; ++i) {
+			ctx.fillText(text[i], position.x, y);
+			y += lineHeight;
+		}
+	} else {
+		ctx.fillText(text, position.x, y);
+	}
+}
+
+function adjustPointPositionForLabelHeight(angle, textSize, position) {
+	if (angle === 90 || angle === 270) {
+		position.y -= (textSize.h / 2);
+	} else if (angle > 270 || angle < 90) {
+		position.y -= textSize.h;
+	}
+}
+
+function drawPointLabels(scale) {
+	var ctx = scale.ctx;
+	var opts = scale.options;
+	var pointLabelOpts = opts.pointLabels;
+	var tickBackdropHeight = getTickBackdropHeight(opts);
+	var outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);
+	var plFont = helpers$1.options._parseFont(pointLabelOpts);
+
+	ctx.save();
+
+	ctx.font = plFont.string;
+	ctx.textBaseline = 'middle';
+
+	for (var i = scale.chart.data.labels.length - 1; i >= 0; i--) {
+		// Extra pixels out for some label spacing
+		var extra = (i === 0 ? tickBackdropHeight / 2 : 0);
+		var pointLabelPosition = scale.getPointPosition(i, outerDistance + extra + 5);
+
+		// Keep this in loop since we may support array properties here
+		var pointLabelFontColor = valueAtIndexOrDefault$1(pointLabelOpts.fontColor, i, core_defaults.global.defaultFontColor);
+		ctx.fillStyle = pointLabelFontColor;
+
+		var angleRadians = scale.getIndexAngle(i);
+		var angle = helpers$1.toDegrees(angleRadians);
+		ctx.textAlign = getTextAlignForAngle(angle);
+		adjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);
+		fillText(ctx, scale.pointLabels[i], pointLabelPosition, plFont.lineHeight);
+	}
+	ctx.restore();
+}
+
+function drawRadiusLine(scale, gridLineOpts, radius, index) {
+	var ctx = scale.ctx;
+	var circular = gridLineOpts.circular;
+	var valueCount = scale.chart.data.labels.length;
+	var lineColor = valueAtIndexOrDefault$1(gridLineOpts.color, index - 1);
+	var lineWidth = valueAtIndexOrDefault$1(gridLineOpts.lineWidth, index - 1);
+	var pointPosition;
+
+	if ((!circular && !valueCount) || !lineColor || !lineWidth) {
+		return;
+	}
+
+	ctx.save();
+	ctx.strokeStyle = lineColor;
+	ctx.lineWidth = lineWidth;
+	if (ctx.setLineDash) {
+		ctx.setLineDash(gridLineOpts.borderDash || []);
+		ctx.lineDashOffset = gridLineOpts.borderDashOffset || 0.0;
+	}
+
+	ctx.beginPath();
+	if (circular) {
+		// Draw circular arcs between the points
+		ctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);
+	} else {
+		// Draw straight lines connecting each index
+		pointPosition = scale.getPointPosition(0, radius);
+		ctx.moveTo(pointPosition.x, pointPosition.y);
+
+		for (var i = 1; i < valueCount; i++) {
+			pointPosition = scale.getPointPosition(i, radius);
+			ctx.lineTo(pointPosition.x, pointPosition.y);
+		}
+	}
+	ctx.closePath();
+	ctx.stroke();
+	ctx.restore();
+}
+
+function numberOrZero(param) {
+	return helpers$1.isNumber(param) ? param : 0;
+}
+
+var scale_radialLinear = scale_linearbase.extend({
+	setDimensions: function() {
+		var me = this;
+
+		// Set the unconstrained dimension before label rotation
+		me.width = me.maxWidth;
+		me.height = me.maxHeight;
+		me.paddingTop = getTickBackdropHeight(me.options) / 2;
+		me.xCenter = Math.floor(me.width / 2);
+		me.yCenter = Math.floor((me.height - me.paddingTop) / 2);
+		me.drawingArea = Math.min(me.height - me.paddingTop, me.width) / 2;
+	},
+
+	determineDataLimits: function() {
+		var me = this;
+		var chart = me.chart;
+		var min = Number.POSITIVE_INFINITY;
+		var max = Number.NEGATIVE_INFINITY;
+
+		helpers$1.each(chart.data.datasets, function(dataset, datasetIndex) {
+			if (chart.isDatasetVisible(datasetIndex)) {
+				var meta = chart.getDatasetMeta(datasetIndex);
+
+				helpers$1.each(dataset.data, function(rawValue, index) {
+					var value = +me.getRightValue(rawValue);
+					if (isNaN(value) || meta.data[index].hidden) {
+						return;
+					}
+
+					min = Math.min(value, min);
+					max = Math.max(value, max);
+				});
+			}
+		});
+
+		me.min = (min === Number.POSITIVE_INFINITY ? 0 : min);
+		me.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);
+
+		// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero
+		me.handleTickRangeOptions();
+	},
+
+	// Returns the maximum number of ticks based on the scale dimension
+	_computeTickLimit: function() {
+		return Math.ceil(this.drawingArea / getTickBackdropHeight(this.options));
+	},
+
+	convertTicksToLabels: function() {
+		var me = this;
+
+		scale_linearbase.prototype.convertTicksToLabels.call(me);
+
+		// Point labels
+		me.pointLabels = me.chart.data.labels.map(function() {
+			var label = helpers$1.callback(me.options.pointLabels.callback, arguments, me);
+			return label || label === 0 ? label : '';
+		});
+	},
+
+	getLabelForIndex: function(index, datasetIndex) {
+		return +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);
+	},
+
+	fit: function() {
+		var me = this;
+		var opts = me.options;
+
+		if (opts.display && opts.pointLabels.display) {
+			fitWithPointLabels(me);
+		} else {
+			me.setCenterPoint(0, 0, 0, 0);
+		}
+	},
+
+	/**
+	 * Set radius reductions and determine new radius and center point
+	 * @private
+	 */
+	setReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {
+		var me = this;
+		var radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);
+		var radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);
+		var radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);
+		var radiusReductionBottom = -Math.max(furthestLimits.b - (me.height - me.paddingTop), 0) / Math.cos(furthestAngles.b);
+
+		radiusReductionLeft = numberOrZero(radiusReductionLeft);
+		radiusReductionRight = numberOrZero(radiusReductionRight);
+		radiusReductionTop = numberOrZero(radiusReductionTop);
+		radiusReductionBottom = numberOrZero(radiusReductionBottom);
+
+		me.drawingArea = Math.min(
+			Math.floor(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),
+			Math.floor(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));
+		me.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);
+	},
+
+	setCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {
+		var me = this;
+		var maxRight = me.width - rightMovement - me.drawingArea;
+		var maxLeft = leftMovement + me.drawingArea;
+		var maxTop = topMovement + me.drawingArea;
+		var maxBottom = (me.height - me.paddingTop) - bottomMovement - me.drawingArea;
+
+		me.xCenter = Math.floor(((maxLeft + maxRight) / 2) + me.left);
+		me.yCenter = Math.floor(((maxTop + maxBottom) / 2) + me.top + me.paddingTop);
+	},
+
+	getIndexAngle: function(index) {
+		var chart = this.chart;
+		var angleMultiplier = 360 / chart.data.labels.length;
+		var options = chart.options || {};
+		var startAngle = options.startAngle || 0;
+
+		// Start from the top instead of right, so remove a quarter of the circle
+		var angle = (index * angleMultiplier + startAngle) % 360;
+
+		return (angle < 0 ? angle + 360 : angle) * Math.PI * 2 / 360;
+	},
+
+	getDistanceFromCenterForValue: function(value) {
+		var me = this;
+
+		if (helpers$1.isNullOrUndef(value)) {
+			return NaN;
+		}
+
+		// Take into account half font size + the yPadding of the top value
+		var scalingFactor = me.drawingArea / (me.max - me.min);
+		if (me.options.ticks.reverse) {
+			return (me.max - value) * scalingFactor;
+		}
+		return (value - me.min) * scalingFactor;
+	},
+
+	getPointPosition: function(index, distanceFromCenter) {
+		var me = this;
+		var thisAngle = me.getIndexAngle(index) - (Math.PI / 2);
+		return {
+			x: Math.cos(thisAngle) * distanceFromCenter + me.xCenter,
+			y: Math.sin(thisAngle) * distanceFromCenter + me.yCenter
+		};
+	},
+
+	getPointPositionForValue: function(index, value) {
+		return this.getPointPosition(index, this.getDistanceFromCenterForValue(value));
+	},
+
+	getBasePosition: function(index) {
+		var me = this;
+		var min = me.min;
+		var max = me.max;
+
+		return me.getPointPositionForValue(index || 0,
+			me.beginAtZero ? 0 :
+			min < 0 && max < 0 ? max :
+			min > 0 && max > 0 ? min :
+			0);
+	},
+
+	/**
+	 * @private
+	 */
+	_drawGrid: function() {
+		var me = this;
+		var ctx = me.ctx;
+		var opts = me.options;
+		var gridLineOpts = opts.gridLines;
+		var angleLineOpts = opts.angleLines;
+		var lineWidth = valueOrDefault$c(angleLineOpts.lineWidth, gridLineOpts.lineWidth);
+		var lineColor = valueOrDefault$c(angleLineOpts.color, gridLineOpts.color);
+		var i, offset, position;
+
+		if (opts.pointLabels.display) {
+			drawPointLabels(me);
+		}
+
+		if (gridLineOpts.display) {
+			helpers$1.each(me.ticks, function(label, index) {
+				if (index !== 0) {
+					offset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);
+					drawRadiusLine(me, gridLineOpts, offset, index);
+				}
+			});
+		}
+
+		if (angleLineOpts.display && lineWidth && lineColor) {
+			ctx.save();
+			ctx.lineWidth = lineWidth;
+			ctx.strokeStyle = lineColor;
+			if (ctx.setLineDash) {
+				ctx.setLineDash(resolve$4([angleLineOpts.borderDash, gridLineOpts.borderDash, []]));
+				ctx.lineDashOffset = resolve$4([angleLineOpts.borderDashOffset, gridLineOpts.borderDashOffset, 0.0]);
+			}
+
+			for (i = me.chart.data.labels.length - 1; i >= 0; i--) {
+				offset = me.getDistanceFromCenterForValue(opts.ticks.reverse ? me.min : me.max);
+				position = me.getPointPosition(i, offset);
+				ctx.beginPath();
+				ctx.moveTo(me.xCenter, me.yCenter);
+				ctx.lineTo(position.x, position.y);
+				ctx.stroke();
+			}
+
+			ctx.restore();
+		}
+	},
+
+	/**
+	 * @private
+	 */
+	_drawLabels: function() {
+		var me = this;
+		var ctx = me.ctx;
+		var opts = me.options;
+		var tickOpts = opts.ticks;
+
+		if (!tickOpts.display) {
+			return;
+		}
+
+		var startAngle = me.getIndexAngle(0);
+		var tickFont = helpers$1.options._parseFont(tickOpts);
+		var tickFontColor = valueOrDefault$c(tickOpts.fontColor, core_defaults.global.defaultFontColor);
+		var offset, width;
+
+		ctx.save();
+		ctx.font = tickFont.string;
+		ctx.translate(me.xCenter, me.yCenter);
+		ctx.rotate(startAngle);
+		ctx.textAlign = 'center';
+		ctx.textBaseline = 'middle';
+
+		helpers$1.each(me.ticks, function(label, index) {
+			if (index === 0 && !tickOpts.reverse) {
+				return;
+			}
+
+			offset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);
+
+			if (tickOpts.showLabelBackdrop) {
+				width = ctx.measureText(label).width;
+				ctx.fillStyle = tickOpts.backdropColor;
+
+				ctx.fillRect(
+					-width / 2 - tickOpts.backdropPaddingX,
+					-offset - tickFont.size / 2 - tickOpts.backdropPaddingY,
+					width + tickOpts.backdropPaddingX * 2,
+					tickFont.size + tickOpts.backdropPaddingY * 2
+				);
+			}
+
+			ctx.fillStyle = tickFontColor;
+			ctx.fillText(label, 0, -offset);
+		});
+
+		ctx.restore();
+	},
+
+	/**
+	 * @private
+	 */
+	_drawTitle: helpers$1.noop
+});
 
-                        conversion[toModel] = wrapConversion(toModel, graph);
-                    }
+// INTERNAL: static default options, registered in src/index.js
+var _defaults$3 = defaultConfig$3;
+scale_radialLinear._defaults = _defaults$3;
 
-                    return conversion;
-                };
+var deprecated$1 = helpers$1._deprecated;
+var resolve$5 = helpers$1.options.resolve;
+var valueOrDefault$d = helpers$1.valueOrDefault;
 
-                var convert = {};
+// Integer constants are from the ES6 spec.
+var MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;
+var MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
+
+var INTERVALS = {
+	millisecond: {
+		common: true,
+		size: 1,
+		steps: 1000
+	},
+	second: {
+		common: true,
+		size: 1000,
+		steps: 60
+	},
+	minute: {
+		common: true,
+		size: 60000,
+		steps: 60
+	},
+	hour: {
+		common: true,
+		size: 3600000,
+		steps: 24
+	},
+	day: {
+		common: true,
+		size: 86400000,
+		steps: 30
+	},
+	week: {
+		common: false,
+		size: 604800000,
+		steps: 4
+	},
+	month: {
+		common: true,
+		size: 2.628e9,
+		steps: 12
+	},
+	quarter: {
+		common: false,
+		size: 7.884e9,
+		steps: 4
+	},
+	year: {
+		common: true,
+		size: 3.154e10
+	}
+};
+
+var UNITS = Object.keys(INTERVALS);
+
+function sorter(a, b) {
+	return a - b;
+}
+
+function arrayUnique(items) {
+	var hash = {};
+	var out = [];
+	var i, ilen, item;
+
+	for (i = 0, ilen = items.length; i < ilen; ++i) {
+		item = items[i];
+		if (!hash[item]) {
+			hash[item] = true;
+			out.push(item);
+		}
+	}
+
+	return out;
+}
+
+function getMin(options) {
+	return helpers$1.valueOrDefault(options.time.min, options.ticks.min);
+}
+
+function getMax(options) {
+	return helpers$1.valueOrDefault(options.time.max, options.ticks.max);
+}
+
+/**
+ * Returns an array of {time, pos} objects used to interpolate a specific `time` or position
+ * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is
+ * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other
+ * extremity (left + width or top + height). Note that it would be more optimized to directly
+ * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need
+ * to create the lookup table. The table ALWAYS contains at least two items: min and max.
+ *
+ * @param {number[]} timestamps - timestamps sorted from lowest to highest.
+ * @param {string} distribution - If 'linear', timestamps will be spread linearly along the min
+ * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.
+ * If 'series', timestamps will be positioned at the same distance from each other. In this
+ * case, only timestamps that break the time linearity are registered, meaning that in the
+ * best case, all timestamps are linear, the table contains only min and max.
+ */
+function buildLookupTable(timestamps, min, max, distribution) {
+	if (distribution === 'linear' || !timestamps.length) {
+		return [
+			{time: min, pos: 0},
+			{time: max, pos: 1}
+		];
+	}
+
+	var table = [];
+	var items = [min];
+	var i, ilen, prev, curr, next;
+
+	for (i = 0, ilen = timestamps.length; i < ilen; ++i) {
+		curr = timestamps[i];
+		if (curr > min && curr < max) {
+			items.push(curr);
+		}
+	}
+
+	items.push(max);
+
+	for (i = 0, ilen = items.length; i < ilen; ++i) {
+		next = items[i + 1];
+		prev = items[i - 1];
+		curr = items[i];
+
+		// only add points that breaks the scale linearity
+		if (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {
+			table.push({time: curr, pos: i / (ilen - 1)});
+		}
+	}
+
+	return table;
+}
 
-                var models = Object.keys(conversions);
+// @see adapted from https://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/
+function lookup(table, key, value) {
+	var lo = 0;
+	var hi = table.length - 1;
+	var mid, i0, i1;
+
+	while (lo >= 0 && lo <= hi) {
+		mid = (lo + hi) >> 1;
+		i0 = table[mid - 1] || null;
+		i1 = table[mid];
+
+		if (!i0) {
+			// given value is outside table (before first item)
+			return {lo: null, hi: i1};
+		} else if (i1[key] < value) {
+			lo = mid + 1;
+		} else if (i0[key] > value) {
+			hi = mid - 1;
+		} else {
+			return {lo: i0, hi: i1};
+		}
+	}
+
+	// given value is outside table (after last item)
+	return {lo: i1, hi: null};
+}
+
+/**
+ * Linearly interpolates the given source `value` using the table items `skey` values and
+ * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')
+ * returns the position for a timestamp equal to 42. If value is out of bounds, values at
+ * index [0, 1] or [n - 1, n] are used for the interpolation.
+ */
+function interpolate$1(table, skey, sval, tkey) {
+	var range = lookup(table, skey, sval);
+
+	// Note: the lookup table ALWAYS contains at least 2 items (min and max)
+	var prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;
+	var next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;
+
+	var span = next[skey] - prev[skey];
+	var ratio = span ? (sval - prev[skey]) / span : 0;
+	var offset = (next[tkey] - prev[tkey]) * ratio;
+
+	return prev[tkey] + offset;
+}
+
+function toTimestamp(scale, input) {
+	var adapter = scale._adapter;
+	var options = scale.options.time;
+	var parser = options.parser;
+	var format = parser || options.format;
+	var value = input;
+
+	if (typeof parser === 'function') {
+		value = parser(value);
+	}
+
+	// Only parse if its not a timestamp already
+	if (!helpers$1.isFinite(value)) {
+		value = typeof format === 'string'
+			? adapter.parse(value, format)
+			: adapter.parse(value);
+	}
+
+	if (value !== null) {
+		return +value;
+	}
+
+	// Labels are in an incompatible format and no `parser` has been provided.
+	// The user might still use the deprecated `format` option for parsing.
+	if (!parser && typeof format === 'function') {
+		value = format(input);
+
+		// `format` could return something else than a timestamp, if so, parse it
+		if (!helpers$1.isFinite(value)) {
+			value = adapter.parse(value);
+		}
+	}
+
+	return value;
+}
+
+function parse(scale, input) {
+	if (helpers$1.isNullOrUndef(input)) {
+		return null;
+	}
+
+	var options = scale.options.time;
+	var value = toTimestamp(scale, scale.getRightValue(input));
+	if (value === null) {
+		return value;
+	}
+
+	if (options.round) {
+		value = +scale._adapter.startOf(value, options.round);
+	}
+
+	return value;
+}
+
+/**
+ * Figures out what unit results in an appropriate number of auto-generated ticks
+ */
+function determineUnitForAutoTicks(minUnit, min, max, capacity) {
+	var ilen = UNITS.length;
+	var i, interval, factor;
 
-                function wrapRaw(fn) {
-                    var wrappedFn = function (args) {
-                        if (args === undefined || args === null) {
-                            return args;
-                        }
+	for (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {
+		interval = INTERVALS[UNITS[i]];
+		factor = interval.steps ? interval.steps : MAX_INTEGER;
 
-                        if (arguments.length > 1) {
-                            args = Array.prototype.slice.call(arguments);
-                        }
+		if (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {
+			return UNITS[i];
+		}
+	}
 
-                        return fn(args);
-                    };
+	return UNITS[ilen - 1];
+}
 
-                    // preserve .conversion property if there is one
-                    if ('conversion' in fn) {
-                        wrappedFn.conversion = fn.conversion;
-                    }
+/**
+ * Figures out what unit to format a set of ticks with
+ */
+function determineUnitForFormatting(scale, numTicks, minUnit, min, max) {
+	var i, unit;
+
+	for (i = UNITS.length - 1; i >= UNITS.indexOf(minUnit); i--) {
+		unit = UNITS[i];
+		if (INTERVALS[unit].common && scale._adapter.diff(max, min, unit) >= numTicks - 1) {
+			return unit;
+		}
+	}
+
+	return UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];
+}
+
+function determineMajorUnit(unit) {
+	for (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {
+		if (INTERVALS[UNITS[i]].common) {
+			return UNITS[i];
+		}
+	}
+}
+
+/**
+ * Generates a maximum of `capacity` timestamps between min and max, rounded to the
+ * `minor` unit using the given scale time `options`.
+ * Important: this method can return ticks outside the min and max range, it's the
+ * responsibility of the calling code to clamp values if needed.
+ */
+function generate(scale, min, max, capacity) {
+	var adapter = scale._adapter;
+	var options = scale.options;
+	var timeOpts = options.time;
+	var minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);
+	var stepSize = resolve$5([timeOpts.stepSize, timeOpts.unitStepSize, 1]);
+	var weekday = minor === 'week' ? timeOpts.isoWeekday : false;
+	var first = min;
+	var ticks = [];
+	var time;
+
+	// For 'week' unit, handle the first day of week option
+	if (weekday) {
+		first = +adapter.startOf(first, 'isoWeek', weekday);
+	}
+
+	// Align first ticks on unit
+	first = +adapter.startOf(first, weekday ? 'day' : minor);
+
+	// Prevent browser from freezing in case user options request millions of milliseconds
+	if (adapter.diff(max, min, minor) > 100000 * stepSize) {
+		throw min + ' and ' + max + ' are too far apart with stepSize of ' + stepSize + ' ' + minor;
+	}
+
+	for (time = first; time < max; time = +adapter.add(time, stepSize, minor)) {
+		ticks.push(time);
+	}
+
+	if (time === max || options.bounds === 'ticks') {
+		ticks.push(time);
+	}
+
+	return ticks;
+}
+
+/**
+ * Returns the start and end offsets from edges in the form of {start, end}
+ * where each value is a relative width to the scale and ranges between 0 and 1.
+ * They add extra margins on the both sides by scaling down the original scale.
+ * Offsets are added when the `offset` option is true.
+ */
+function computeOffsets(table, ticks, min, max, options) {
+	var start = 0;
+	var end = 0;
+	var first, last;
+
+	if (options.offset && ticks.length) {
+		first = interpolate$1(table, 'time', ticks[0], 'pos');
+		if (ticks.length === 1) {
+			start = 1 - first;
+		} else {
+			start = (interpolate$1(table, 'time', ticks[1], 'pos') - first) / 2;
+		}
+		last = interpolate$1(table, 'time', ticks[ticks.length - 1], 'pos');
+		if (ticks.length === 1) {
+			end = last;
+		} else {
+			end = (last - interpolate$1(table, 'time', ticks[ticks.length - 2], 'pos')) / 2;
+		}
+	}
+
+	return {start: start, end: end, factor: 1 / (start + 1 + end)};
+}
+
+function setMajorTicks(scale, ticks, map, majorUnit) {
+	var adapter = scale._adapter;
+	var first = +adapter.startOf(ticks[0].value, majorUnit);
+	var last = ticks[ticks.length - 1].value;
+	var major, index;
+
+	for (major = first; major <= last; major = +adapter.add(major, 1, majorUnit)) {
+		index = map[major];
+		if (index >= 0) {
+			ticks[index].major = true;
+		}
+	}
+	return ticks;
+}
+
+function ticksFromTimestamps(scale, values, majorUnit) {
+	var ticks = [];
+	var map = {};
+	var ilen = values.length;
+	var i, value;
+
+	for (i = 0; i < ilen; ++i) {
+		value = values[i];
+		map[value] = i;
+
+		ticks.push({
+			value: value,
+			major: false
+		});
+	}
+
+	// We set the major ticks separately from the above loop because calling startOf for every tick
+	// is expensive when there is a large number of ticks
+	return (ilen === 0 || !majorUnit) ? ticks : setMajorTicks(scale, ticks, map, majorUnit);
+}
+
+var defaultConfig$4 = {
+	position: 'bottom',
+
+	/**
+	 * Data distribution along the scale:
+	 * - 'linear': data are spread according to their time (distances can vary),
+	 * - 'series': data are spread at the same distance from each other.
+	 * @see https://github.com/chartjs/Chart.js/pull/4507
+	 * @since 2.7.0
+	 */
+	distribution: 'linear',
+
+	/**
+	 * Scale boundary strategy (bypassed by min/max time options)
+	 * - `data`: make sure data are fully visible, ticks outside are removed
+	 * - `ticks`: make sure ticks are fully visible, data outside are truncated
+	 * @see https://github.com/chartjs/Chart.js/pull/4556
+	 * @since 2.7.0
+	 */
+	bounds: 'data',
+
+	adapters: {},
+	time: {
+		parser: false, // false == a pattern string from https://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment
+		unit: false, // false == automatic or override with week, month, year, etc.
+		round: false, // none, or override with week, month, year, etc.
+		displayFormat: false, // DEPRECATED
+		isoWeekday: false, // override week start day - see https://momentjs.com/docs/#/get-set/iso-weekday/
+		minUnit: 'millisecond',
+		displayFormats: {}
+	},
+	ticks: {
+		autoSkip: false,
+
+		/**
+		 * Ticks generation input values:
+		 * - 'auto': generates "optimal" ticks based on scale size and time options.
+		 * - 'data': generates ticks from data (including labels from data {t|x|y} objects).
+		 * - 'labels': generates ticks from user given `data.labels` values ONLY.
+		 * @see https://github.com/chartjs/Chart.js/pull/4507
+		 * @since 2.7.0
+		 */
+		source: 'auto',
+
+		major: {
+			enabled: false
+		}
+	}
+};
+
+var scale_time = core_scale.extend({
+	initialize: function() {
+		this.mergeTicksOptions();
+		core_scale.prototype.initialize.call(this);
+	},
+
+	update: function() {
+		var me = this;
+		var options = me.options;
+		var time = options.time || (options.time = {});
+		var adapter = me._adapter = new core_adapters._date(options.adapters.date);
+
+		// DEPRECATIONS: output a message only one time per update
+		deprecated$1('time scale', time.format, 'time.format', 'time.parser');
+		deprecated$1('time scale', time.min, 'time.min', 'ticks.min');
+		deprecated$1('time scale', time.max, 'time.max', 'ticks.max');
+
+		// Backward compatibility: before introducing adapter, `displayFormats` was
+		// supposed to contain *all* unit/string pairs but this can't be resolved
+		// when loading the scale (adapters are loaded afterward), so let's populate
+		// missing formats on update
+		helpers$1.mergeIf(time.displayFormats, adapter.formats());
+
+		return core_scale.prototype.update.apply(me, arguments);
+	},
+
+	/**
+	 * Allows data to be referenced via 't' attribute
+	 */
+	getRightValue: function(rawValue) {
+		if (rawValue && rawValue.t !== undefined) {
+			rawValue = rawValue.t;
+		}
+		return core_scale.prototype.getRightValue.call(this, rawValue);
+	},
+
+	determineDataLimits: function() {
+		var me = this;
+		var chart = me.chart;
+		var adapter = me._adapter;
+		var options = me.options;
+		var unit = options.time.unit || 'day';
+		var min = MAX_INTEGER;
+		var max = MIN_INTEGER;
+		var timestamps = [];
+		var datasets = [];
+		var labels = [];
+		var i, j, ilen, jlen, data, timestamp, labelsAdded;
+		var dataLabels = me._getLabels();
+
+		for (i = 0, ilen = dataLabels.length; i < ilen; ++i) {
+			labels.push(parse(me, dataLabels[i]));
+		}
+
+		for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
+			if (chart.isDatasetVisible(i)) {
+				data = chart.data.datasets[i].data;
+
+				// Let's consider that all data have the same format.
+				if (helpers$1.isObject(data[0])) {
+					datasets[i] = [];
+
+					for (j = 0, jlen = data.length; j < jlen; ++j) {
+						timestamp = parse(me, data[j]);
+						timestamps.push(timestamp);
+						datasets[i][j] = timestamp;
+					}
+				} else {
+					datasets[i] = labels.slice(0);
+					if (!labelsAdded) {
+						timestamps = timestamps.concat(labels);
+						labelsAdded = true;
+					}
+				}
+			} else {
+				datasets[i] = [];
+			}
+		}
+
+		if (labels.length) {
+			min = Math.min(min, labels[0]);
+			max = Math.max(max, labels[labels.length - 1]);
+		}
+
+		if (timestamps.length) {
+			timestamps = ilen > 1 ? arrayUnique(timestamps).sort(sorter) : timestamps.sort(sorter);
+			min = Math.min(min, timestamps[0]);
+			max = Math.max(max, timestamps[timestamps.length - 1]);
+		}
+
+		min = parse(me, getMin(options)) || min;
+		max = parse(me, getMax(options)) || max;
+
+		// In case there is no valid min/max, set limits based on unit time option
+		min = min === MAX_INTEGER ? +adapter.startOf(Date.now(), unit) : min;
+		max = max === MIN_INTEGER ? +adapter.endOf(Date.now(), unit) + 1 : max;
+
+		// Make sure that max is strictly higher than min (required by the lookup table)
+		me.min = Math.min(min, max);
+		me.max = Math.max(min + 1, max);
+
+		// PRIVATE
+		me._table = [];
+		me._timestamps = {
+			data: timestamps,
+			datasets: datasets,
+			labels: labels
+		};
+	},
+
+	buildTicks: function() {
+		var me = this;
+		var min = me.min;
+		var max = me.max;
+		var options = me.options;
+		var tickOpts = options.ticks;
+		var timeOpts = options.time;
+		var timestamps = me._timestamps;
+		var ticks = [];
+		var capacity = me.getLabelCapacity(min);
+		var source = tickOpts.source;
+		var distribution = options.distribution;
+		var i, ilen, timestamp;
+
+		if (source === 'data' || (source === 'auto' && distribution === 'series')) {
+			timestamps = timestamps.data;
+		} else if (source === 'labels') {
+			timestamps = timestamps.labels;
+		} else {
+			timestamps = generate(me, min, max, capacity);
+		}
+
+		if (options.bounds === 'ticks' && timestamps.length) {
+			min = timestamps[0];
+			max = timestamps[timestamps.length - 1];
+		}
+
+		// Enforce limits with user min/max options
+		min = parse(me, getMin(options)) || min;
+		max = parse(me, getMax(options)) || max;
+
+		// Remove ticks outside the min/max range
+		for (i = 0, ilen = timestamps.length; i < ilen; ++i) {
+			timestamp = timestamps[i];
+			if (timestamp >= min && timestamp <= max) {
+				ticks.push(timestamp);
+			}
+		}
+
+		me.min = min;
+		me.max = max;
+
+		// PRIVATE
+		// determineUnitForFormatting relies on the number of ticks so we don't use it when
+		// autoSkip is enabled because we don't yet know what the final number of ticks will be
+		me._unit = timeOpts.unit || (tickOpts.autoSkip
+			? determineUnitForAutoTicks(timeOpts.minUnit, me.min, me.max, capacity)
+			: determineUnitForFormatting(me, ticks.length, timeOpts.minUnit, me.min, me.max));
+		me._majorUnit = !tickOpts.major.enabled || me._unit === 'year' ? undefined
+			: determineMajorUnit(me._unit);
+		me._table = buildLookupTable(me._timestamps.data, min, max, distribution);
+		me._offsets = computeOffsets(me._table, ticks, min, max, options);
+
+		if (tickOpts.reverse) {
+			ticks.reverse();
+		}
+
+		return ticksFromTimestamps(me, ticks, me._majorUnit);
+	},
+
+	getLabelForIndex: function(index, datasetIndex) {
+		var me = this;
+		var adapter = me._adapter;
+		var data = me.chart.data;
+		var timeOpts = me.options.time;
+		var label = data.labels && index < data.labels.length ? data.labels[index] : '';
+		var value = data.datasets[datasetIndex].data[index];
+
+		if (helpers$1.isObject(value)) {
+			label = me.getRightValue(value);
+		}
+		if (timeOpts.tooltipFormat) {
+			return adapter.format(toTimestamp(me, label), timeOpts.tooltipFormat);
+		}
+		if (typeof label === 'string') {
+			return label;
+		}
+		return adapter.format(toTimestamp(me, label), timeOpts.displayFormats.datetime);
+	},
+
+	/**
+	 * Function to format an individual tick mark
+	 * @private
+	 */
+	tickFormatFunction: function(time, index, ticks, format) {
+		var me = this;
+		var adapter = me._adapter;
+		var options = me.options;
+		var formats = options.time.displayFormats;
+		var minorFormat = formats[me._unit];
+		var majorUnit = me._majorUnit;
+		var majorFormat = formats[majorUnit];
+		var tick = ticks[index];
+		var tickOpts = options.ticks;
+		var major = majorUnit && majorFormat && tick && tick.major;
+		var label = adapter.format(time, format ? format : major ? majorFormat : minorFormat);
+		var nestedTickOpts = major ? tickOpts.major : tickOpts.minor;
+		var formatter = resolve$5([
+			nestedTickOpts.callback,
+			nestedTickOpts.userCallback,
+			tickOpts.callback,
+			tickOpts.userCallback
+		]);
+
+		return formatter ? formatter(label, index, ticks) : label;
+	},
+
+	convertTicksToLabels: function(ticks) {
+		var labels = [];
+		var i, ilen;
+
+		for (i = 0, ilen = ticks.length; i < ilen; ++i) {
+			labels.push(this.tickFormatFunction(ticks[i].value, i, ticks));
+		}
+
+		return labels;
+	},
+
+	/**
+	 * @private
+	 */
+	getPixelForOffset: function(time) {
+		var me = this;
+		var offsets = me._offsets;
+		var pos = interpolate$1(me._table, 'time', time, 'pos');
+		return me.getPixelForDecimal((offsets.start + pos) * offsets.factor);
+	},
+
+	getPixelForValue: function(value, index, datasetIndex) {
+		var me = this;
+		var time = null;
+
+		if (index !== undefined && datasetIndex !== undefined) {
+			time = me._timestamps.datasets[datasetIndex][index];
+		}
+
+		if (time === null) {
+			time = parse(me, value);
+		}
+
+		if (time !== null) {
+			return me.getPixelForOffset(time);
+		}
+	},
+
+	getPixelForTick: function(index) {
+		var ticks = this.getTicks();
+		return index >= 0 && index < ticks.length ?
+			this.getPixelForOffset(ticks[index].value) :
+			null;
+	},
+
+	getValueForPixel: function(pixel) {
+		var me = this;
+		var offsets = me._offsets;
+		var pos = me.getDecimalForPixel(pixel) / offsets.factor - offsets.end;
+		var time = interpolate$1(me._table, 'pos', pos, 'time');
+
+		// DEPRECATION, we should return time directly
+		return me._adapter._create(time);
+	},
+
+	/**
+	 * @private
+	 */
+	_getLabelSize: function(label) {
+		var me = this;
+		var ticksOpts = me.options.ticks;
+		var tickLabelWidth = me.ctx.measureText(label).width;
+		var angle = helpers$1.toRadians(me.isHorizontal() ? ticksOpts.maxRotation : ticksOpts.minRotation);
+		var cosRotation = Math.cos(angle);
+		var sinRotation = Math.sin(angle);
+		var tickFontSize = valueOrDefault$d(ticksOpts.fontSize, core_defaults.global.defaultFontSize);
+
+		return {
+			w: (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation),
+			h: (tickLabelWidth * sinRotation) + (tickFontSize * cosRotation)
+		};
+	},
+
+	/**
+	 * Crude approximation of what the label width might be
+	 * @private
+	 */
+	getLabelWidth: function(label) {
+		return this._getLabelSize(label).w;
+	},
 
-                    return wrappedFn;
-                }
+	/**
+	 * @private
+	 */
+	getLabelCapacity: function(exampleTime) {
+		var me = this;
+		var timeOpts = me.options.time;
+		var displayFormats = timeOpts.displayFormats;
 
-                function wrapRounded(fn) {
-                    var wrappedFn = function (args) {
-                        if (args === undefined || args === null) {
-                            return args;
-                        }
+		// pick the longest format (milliseconds) for guestimation
+		var format = displayFormats[timeOpts.unit] || displayFormats.millisecond;
+		var exampleLabel = me.tickFormatFunction(exampleTime, 0, ticksFromTimestamps(me, [exampleTime], me._majorUnit), format);
+		var size = me._getLabelSize(exampleLabel);
+		var capacity = Math.floor(me.isHorizontal() ? me.width / size.w : me.height / size.h);
 
-                        if (arguments.length > 1) {
-                            args = Array.prototype.slice.call(arguments);
-                        }
+		if (me.options.offset) {
+			capacity--;
+		}
 
-                        var result = fn(args);
+		return capacity > 0 ? capacity : 1;
+	}
+});
 
-                        // we're assuming the result is an array here.
-                        // see notice in conversions.js; don't use box types
-                        // in conversion functions.
-                        if (typeof result === 'object') {
-                            for (var len = result.length, i = 0; i < len; i++) {
-                                result[i] = Math.round(result[i]);
-                            }
-                        }
+// INTERNAL: static default options, registered in src/index.js
+var _defaults$4 = defaultConfig$4;
+scale_time._defaults = _defaults$4;
+
+var scales = {
+	category: scale_category,
+	linear: scale_linear,
+	logarithmic: scale_logarithmic,
+	radialLinear: scale_radialLinear,
+	time: scale_time
+};
+
+var FORMATS = {
+	datetime: 'MMM D, YYYY, h:mm:ss a',
+	millisecond: 'h:mm:ss.SSS a',
+	second: 'h:mm:ss a',
+	minute: 'h:mm a',
+	hour: 'hA',
+	day: 'MMM D',
+	week: 'll',
+	month: 'MMM YYYY',
+	quarter: '[Q]Q - YYYY',
+	year: 'YYYY'
+};
+
+core_adapters._date.override(typeof moment === 'function' ? {
+	_id: 'moment', // DEBUG ONLY
+
+	formats: function() {
+		return FORMATS;
+	},
+
+	parse: function(value, format) {
+		if (typeof value === 'string' && typeof format === 'string') {
+			value = moment(value, format);
+		} else if (!(value instanceof moment)) {
+			value = moment(value);
+		}
+		return value.isValid() ? value.valueOf() : null;
+	},
+
+	format: function(time, format) {
+		return moment(time).format(format);
+	},
+
+	add: function(time, amount, unit) {
+		return moment(time).add(amount, unit).valueOf();
+	},
+
+	diff: function(max, min, unit) {
+		return moment(max).diff(moment(min), unit);
+	},
+
+	startOf: function(time, unit, weekday) {
+		time = moment(time);
+		if (unit === 'isoWeek') {
+			return time.isoWeekday(weekday).valueOf();
+		}
+		return time.startOf(unit).valueOf();
+	},
+
+	endOf: function(time, unit) {
+		return moment(time).endOf(unit).valueOf();
+	},
+
+	// DEPRECATIONS
+
+	/**
+	 * Provided for backward compatibility with scale.getValueForPixel().
+	 * @deprecated since version 2.8.0
+	 * @todo remove at version 3
+	 * @private
+	 */
+	_create: function(time) {
+		return moment(time);
+	},
+} : {});
+
+core_defaults._set('global', {
+	plugins: {
+		filler: {
+			propagate: true
+		}
+	}
+});
+
+var mappers = {
+	dataset: function(source) {
+		var index = source.fill;
+		var chart = source.chart;
+		var meta = chart.getDatasetMeta(index);
+		var visible = meta && chart.isDatasetVisible(index);
+		var points = (visible && meta.dataset._children) || [];
+		var length = points.length || 0;
+
+		return !length ? null : function(point, i) {
+			return (i < length && points[i]._view) || null;
+		};
+	},
+
+	boundary: function(source) {
+		var boundary = source.boundary;
+		var x = boundary ? boundary.x : null;
+		var y = boundary ? boundary.y : null;
+
+		if (helpers$1.isArray(boundary)) {
+			return function(point, i) {
+				return boundary[i];
+			};
+		}
+
+		return function(point) {
+			return {
+				x: x === null ? point.x : x,
+				y: y === null ? point.y : y,
+			};
+		};
+	}
+};
 
-                        return result;
-                    };
+// @todo if (fill[0] === '#')
+function decodeFill(el, index, count) {
+	var model = el._model || {};
+	var fill = model.fill;
+	var target;
+
+	if (fill === undefined) {
+		fill = !!model.backgroundColor;
+	}
+
+	if (fill === false || fill === null) {
+		return false;
+	}
+
+	if (fill === true) {
+		return 'origin';
+	}
+
+	target = parseFloat(fill, 10);
+	if (isFinite(target) && Math.floor(target) === target) {
+		if (fill[0] === '-' || fill[0] === '+') {
+			target = index + target;
+		}
+
+		if (target === index || target < 0 || target >= count) {
+			return false;
+		}
+
+		return target;
+	}
+
+	switch (fill) {
+	// compatibility
+	case 'bottom':
+		return 'start';
+	case 'top':
+		return 'end';
+	case 'zero':
+		return 'origin';
+	// supported boundaries
+	case 'origin':
+	case 'start':
+	case 'end':
+		return fill;
+	// invalid fill values
+	default:
+		return false;
+	}
+}
+
+function computeLinearBoundary(source) {
+	var model = source.el._model || {};
+	var scale = source.el._scale || {};
+	var fill = source.fill;
+	var target = null;
+	var horizontal;
+
+	if (isFinite(fill)) {
+		return null;
+	}
+
+	// Backward compatibility: until v3, we still need to support boundary values set on
+	// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and
+	// controllers might still use it (e.g. the Smith chart).
+
+	if (fill === 'start') {
+		target = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;
+	} else if (fill === 'end') {
+		target = model.scaleTop === undefined ? scale.top : model.scaleTop;
+	} else if (model.scaleZero !== undefined) {
+		target = model.scaleZero;
+	} else if (scale.getBasePixel) {
+		target = scale.getBasePixel();
+	}
+
+	if (target !== undefined && target !== null) {
+		if (target.x !== undefined && target.y !== undefined) {
+			return target;
+		}
+
+		if (helpers$1.isFinite(target)) {
+			horizontal = scale.isHorizontal();
+			return {
+				x: horizontal ? target : null,
+				y: horizontal ? null : target
+			};
+		}
+	}
+
+	return null;
+}
+
+function computeCircularBoundary(source) {
+	var scale = source.el._scale;
+	var options = scale.options;
+	var length = scale.chart.data.labels.length;
+	var fill = source.fill;
+	var target = [];
+	var start, end, center, i, point;
+
+	if (!length) {
+		return null;
+	}
+
+	start = options.ticks.reverse ? scale.max : scale.min;
+	end = options.ticks.reverse ? scale.min : scale.max;
+	center = scale.getPointPositionForValue(0, start);
+	for (i = 0; i < length; ++i) {
+		point = fill === 'start' || fill === 'end'
+			? scale.getPointPositionForValue(i, fill === 'start' ? start : end)
+			: scale.getBasePosition(i);
+		if (options.gridLines.circular) {
+			point.cx = center.x;
+			point.cy = center.y;
+			point.angle = scale.getIndexAngle(i) - Math.PI / 2;
+		}
+		target.push(point);
+	}
+	return target;
+}
+
+function computeBoundary(source) {
+	var scale = source.el._scale || {};
+
+	if (scale.getPointPositionForValue) {
+		return computeCircularBoundary(source);
+	}
+	return computeLinearBoundary(source);
+}
+
+function resolveTarget(sources, index, propagate) {
+	var source = sources[index];
+	var fill = source.fill;
+	var visited = [index];
+	var target;
+
+	if (!propagate) {
+		return fill;
+	}
+
+	while (fill !== false && visited.indexOf(fill) === -1) {
+		if (!isFinite(fill)) {
+			return fill;
+		}
+
+		target = sources[fill];
+		if (!target) {
+			return false;
+		}
+
+		if (target.visible) {
+			return fill;
+		}
+
+		visited.push(fill);
+		fill = target.fill;
+	}
+
+	return false;
+}
+
+function createMapper(source) {
+	var fill = source.fill;
+	var type = 'dataset';
+
+	if (fill === false) {
+		return null;
+	}
+
+	if (!isFinite(fill)) {
+		type = 'boundary';
+	}
+
+	return mappers[type](source);
+}
+
+function isDrawable(point) {
+	return point && !point.skip;
+}
+
+function drawArea(ctx, curve0, curve1, len0, len1) {
+	var i, cx, cy, r;
+
+	if (!len0 || !len1) {
+		return;
+	}
+
+	// building first area curve (normal)
+	ctx.moveTo(curve0[0].x, curve0[0].y);
+	for (i = 1; i < len0; ++i) {
+		helpers$1.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);
+	}
+
+	if (curve1[0].angle !== undefined) {
+		cx = curve1[0].cx;
+		cy = curve1[0].cy;
+		r = Math.sqrt(Math.pow(curve1[0].x - cx, 2) + Math.pow(curve1[0].y - cy, 2));
+		for (i = len1 - 1; i > 0; --i) {
+			ctx.arc(cx, cy, r, curve1[i].angle, curve1[i - 1].angle, true);
+		}
+		return;
+	}
+
+	// joining the two area curves
+	ctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);
+
+	// building opposite area curve (reverse)
+	for (i = len1 - 1; i > 0; --i) {
+		helpers$1.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);
+	}
+}
+
+function doFill(ctx, points, mapper, view, color, loop) {
+	var count = points.length;
+	var span = view.spanGaps;
+	var curve0 = [];
+	var curve1 = [];
+	var len0 = 0;
+	var len1 = 0;
+	var i, ilen, index, p0, p1, d0, d1, loopOffset;
+
+	ctx.beginPath();
+
+	for (i = 0, ilen = count; i < ilen; ++i) {
+		index = i % count;
+		p0 = points[index]._view;
+		p1 = mapper(p0, index, view);
+		d0 = isDrawable(p0);
+		d1 = isDrawable(p1);
+
+		if (loop && loopOffset === undefined && d0) {
+			loopOffset = i + 1;
+			ilen = count + loopOffset;
+		}
+
+		if (d0 && d1) {
+			len0 = curve0.push(p0);
+			len1 = curve1.push(p1);
+		} else if (len0 && len1) {
+			if (!span) {
+				drawArea(ctx, curve0, curve1, len0, len1);
+				len0 = len1 = 0;
+				curve0 = [];
+				curve1 = [];
+			} else {
+				if (d0) {
+					curve0.push(p0);
+				}
+				if (d1) {
+					curve1.push(p1);
+				}
+			}
+		}
+	}
+
+	drawArea(ctx, curve0, curve1, len0, len1);
+
+	ctx.closePath();
+	ctx.fillStyle = color;
+	ctx.fill();
+}
+
+var plugin_filler = {
+	id: 'filler',
+
+	afterDatasetsUpdate: function(chart, options) {
+		var count = (chart.data.datasets || []).length;
+		var propagate = options.propagate;
+		var sources = [];
+		var meta, i, el, source;
+
+		for (i = 0; i < count; ++i) {
+			meta = chart.getDatasetMeta(i);
+			el = meta.dataset;
+			source = null;
+
+			if (el && el._model && el instanceof elements.Line) {
+				source = {
+					visible: chart.isDatasetVisible(i),
+					fill: decodeFill(el, i, count),
+					chart: chart,
+					el: el
+				};
+			}
+
+			meta.$filler = source;
+			sources.push(source);
+		}
+
+		for (i = 0; i < count; ++i) {
+			source = sources[i];
+			if (!source) {
+				continue;
+			}
+
+			source.fill = resolveTarget(sources, i, propagate);
+			source.boundary = computeBoundary(source);
+			source.mapper = createMapper(source);
+		}
+	},
+
+	beforeDatasetsDraw: function(chart) {
+		var metasets = chart._getSortedVisibleDatasetMetas();
+		var ctx = chart.ctx;
+		var meta, i, el, view, points, mapper, color;
+
+		for (i = metasets.length - 1; i >= 0; --i) {
+			meta = metasets[i].$filler;
+
+			if (!meta || !meta.visible) {
+				continue;
+			}
+
+			el = meta.el;
+			view = el._view;
+			points = el._children || [];
+			mapper = meta.mapper;
+			color = view.backgroundColor || core_defaults.global.defaultColor;
+
+			if (mapper && color && points.length) {
+				helpers$1.canvas.clipArea(ctx, chart.chartArea);
+				doFill(ctx, points, mapper, view, color, el._loop);
+				helpers$1.canvas.unclipArea(ctx);
+			}
+		}
+	}
+};
+
+var getRtlHelper$1 = helpers$1.rtl.getRtlAdapter;
+var noop$1 = helpers$1.noop;
+var valueOrDefault$e = helpers$1.valueOrDefault;
+
+core_defaults._set('global', {
+	legend: {
+		display: true,
+		position: 'top',
+		align: 'center',
+		fullWidth: true,
+		reverse: false,
+		weight: 1000,
+
+		// a callback that will handle
+		onClick: function(e, legendItem) {
+			var index = legendItem.datasetIndex;
+			var ci = this.chart;
+			var meta = ci.getDatasetMeta(index);
+
+			// See controller.isDatasetVisible comment
+			meta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;
+
+			// We hid a dataset ... rerender the chart
+			ci.update();
+		},
+
+		onHover: null,
+		onLeave: null,
+
+		labels: {
+			boxWidth: 40,
+			padding: 10,
+			// Generates labels shown in the legend
+			// Valid properties to return:
+			// text : text to display
+			// fillStyle : fill of coloured box
+			// strokeStyle: stroke of coloured box
+			// hidden : if this legend item refers to a hidden item
+			// lineCap : cap style for line
+			// lineDash
+			// lineDashOffset :
+			// lineJoin :
+			// lineWidth :
+			generateLabels: function(chart) {
+				var datasets = chart.data.datasets;
+				var options = chart.options.legend || {};
+				var usePointStyle = options.labels && options.labels.usePointStyle;
+
+				return chart._getSortedDatasetMetas().map(function(meta) {
+					var style = meta.controller.getStyle(usePointStyle ? 0 : undefined);
+
+					return {
+						text: datasets[meta.index].label,
+						fillStyle: style.backgroundColor,
+						hidden: !chart.isDatasetVisible(meta.index),
+						lineCap: style.borderCapStyle,
+						lineDash: style.borderDash,
+						lineDashOffset: style.borderDashOffset,
+						lineJoin: style.borderJoinStyle,
+						lineWidth: style.borderWidth,
+						strokeStyle: style.borderColor,
+						pointStyle: style.pointStyle,
+						rotation: style.rotation,
+
+						// Below is extra data used for toggling the datasets
+						datasetIndex: meta.index
+					};
+				}, this);
+			}
+		}
+	},
+
+	legendCallback: function(chart) {
+		var list = document.createElement('ul');
+		var datasets = chart.data.datasets;
+		var i, ilen, listItem, listItemSpan;
+
+		list.setAttribute('class', chart.id + '-legend');
+
+		for (i = 0, ilen = datasets.length; i < ilen; i++) {
+			listItem = list.appendChild(document.createElement('li'));
+			listItemSpan = listItem.appendChild(document.createElement('span'));
+			listItemSpan.style.backgroundColor = datasets[i].backgroundColor;
+			if (datasets[i].label) {
+				listItem.appendChild(document.createTextNode(datasets[i].label));
+			}
+		}
+
+		return list.outerHTML;
+	}
+});
+
+/**
+ * Helper function to get the box width based on the usePointStyle option
+ * @param {object} labelopts - the label options on the legend
+ * @param {number} fontSize - the label font size
+ * @return {number} width of the color box area
+ */
+function getBoxWidth(labelOpts, fontSize) {
+	return labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?
+		fontSize :
+		labelOpts.boxWidth;
+}
+
+/**
+ * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!
+ */
+var Legend = core_element.extend({
+
+	initialize: function(config) {
+		var me = this;
+		helpers$1.extend(me, config);
+
+		// Contains hit boxes for each dataset (in dataset order)
+		me.legendHitBoxes = [];
+
+		/**
+ 		 * @private
+ 		 */
+		me._hoveredItem = null;
+
+		// Are we in doughnut mode which has a different data type
+		me.doughnutMode = false;
+	},
+
+	// These methods are ordered by lifecycle. Utilities then follow.
+	// Any function defined here is inherited by all legend types.
+	// Any function can be extended by the legend type
+
+	beforeUpdate: noop$1,
+	update: function(maxWidth, maxHeight, margins) {
+		var me = this;
+
+		// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
+		me.beforeUpdate();
+
+		// Absorb the master measurements
+		me.maxWidth = maxWidth;
+		me.maxHeight = maxHeight;
+		me.margins = margins;
+
+		// Dimensions
+		me.beforeSetDimensions();
+		me.setDimensions();
+		me.afterSetDimensions();
+		// Labels
+		me.beforeBuildLabels();
+		me.buildLabels();
+		me.afterBuildLabels();
+
+		// Fit
+		me.beforeFit();
+		me.fit();
+		me.afterFit();
+		//
+		me.afterUpdate();
+
+		return me.minSize;
+	},
+	afterUpdate: noop$1,
+
+	//
+
+	beforeSetDimensions: noop$1,
+	setDimensions: function() {
+		var me = this;
+		// Set the unconstrained dimension before label rotation
+		if (me.isHorizontal()) {
+			// Reset position before calculating rotation
+			me.width = me.maxWidth;
+			me.left = 0;
+			me.right = me.width;
+		} else {
+			me.height = me.maxHeight;
+
+			// Reset position before calculating rotation
+			me.top = 0;
+			me.bottom = me.height;
+		}
+
+		// Reset padding
+		me.paddingLeft = 0;
+		me.paddingTop = 0;
+		me.paddingRight = 0;
+		me.paddingBottom = 0;
+
+		// Reset minSize
+		me.minSize = {
+			width: 0,
+			height: 0
+		};
+	},
+	afterSetDimensions: noop$1,
+
+	//
+
+	beforeBuildLabels: noop$1,
+	buildLabels: function() {
+		var me = this;
+		var labelOpts = me.options.labels || {};
+		var legendItems = helpers$1.callback(labelOpts.generateLabels, [me.chart], me) || [];
+
+		if (labelOpts.filter) {
+			legendItems = legendItems.filter(function(item) {
+				return labelOpts.filter(item, me.chart.data);
+			});
+		}
+
+		if (me.options.reverse) {
+			legendItems.reverse();
+		}
+
+		me.legendItems = legendItems;
+	},
+	afterBuildLabels: noop$1,
+
+	//
+
+	beforeFit: noop$1,
+	fit: function() {
+		var me = this;
+		var opts = me.options;
+		var labelOpts = opts.labels;
+		var display = opts.display;
+
+		var ctx = me.ctx;
+
+		var labelFont = helpers$1.options._parseFont(labelOpts);
+		var fontSize = labelFont.size;
+
+		// Reset hit boxes
+		var hitboxes = me.legendHitBoxes = [];
+
+		var minSize = me.minSize;
+		var isHorizontal = me.isHorizontal();
+
+		if (isHorizontal) {
+			minSize.width = me.maxWidth; // fill all the width
+			minSize.height = display ? 10 : 0;
+		} else {
+			minSize.width = display ? 10 : 0;
+			minSize.height = me.maxHeight; // fill all the height
+		}
+
+		// Increase sizes here
+		if (!display) {
+			me.width = minSize.width = me.height = minSize.height = 0;
+			return;
+		}
+		ctx.font = labelFont.string;
+
+		if (isHorizontal) {
+			// Labels
+
+			// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one
+			var lineWidths = me.lineWidths = [0];
+			var totalHeight = 0;
+
+			ctx.textAlign = 'left';
+			ctx.textBaseline = 'middle';
+
+			helpers$1.each(me.legendItems, function(legendItem, i) {
+				var boxWidth = getBoxWidth(labelOpts, fontSize);
+				var width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;
+
+				if (i === 0 || lineWidths[lineWidths.length - 1] + width + 2 * labelOpts.padding > minSize.width) {
+					totalHeight += fontSize + labelOpts.padding;
+					lineWidths[lineWidths.length - (i > 0 ? 0 : 1)] = 0;
+				}
+
+				// Store the hitbox width and height here. Final position will be updated in `draw`
+				hitboxes[i] = {
+					left: 0,
+					top: 0,
+					width: width,
+					height: fontSize
+				};
+
+				lineWidths[lineWidths.length - 1] += width + labelOpts.padding;
+			});
+
+			minSize.height += totalHeight;
+
+		} else {
+			var vPadding = labelOpts.padding;
+			var columnWidths = me.columnWidths = [];
+			var columnHeights = me.columnHeights = [];
+			var totalWidth = labelOpts.padding;
+			var currentColWidth = 0;
+			var currentColHeight = 0;
+
+			helpers$1.each(me.legendItems, function(legendItem, i) {
+				var boxWidth = getBoxWidth(labelOpts, fontSize);
+				var itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;
+
+				// If too tall, go to new column
+				if (i > 0 && currentColHeight + fontSize + 2 * vPadding > minSize.height) {
+					totalWidth += currentColWidth + labelOpts.padding;
+					columnWidths.push(currentColWidth); // previous column width
+					columnHeights.push(currentColHeight);
+					currentColWidth = 0;
+					currentColHeight = 0;
+				}
+
+				// Get max width
+				currentColWidth = Math.max(currentColWidth, itemWidth);
+				currentColHeight += fontSize + vPadding;
+
+				// Store the hitbox width and height here. Final position will be updated in `draw`
+				hitboxes[i] = {
+					left: 0,
+					top: 0,
+					width: itemWidth,
+					height: fontSize
+				};
+			});
+
+			totalWidth += currentColWidth;
+			columnWidths.push(currentColWidth);
+			columnHeights.push(currentColHeight);
+			minSize.width += totalWidth;
+		}
+
+		me.width = minSize.width;
+		me.height = minSize.height;
+	},
+	afterFit: noop$1,
+
+	// Shared Methods
+	isHorizontal: function() {
+		return this.options.position === 'top' || this.options.position === 'bottom';
+	},
+
+	// Actually draw the legend on the canvas
+	draw: function() {
+		var me = this;
+		var opts = me.options;
+		var labelOpts = opts.labels;
+		var globalDefaults = core_defaults.global;
+		var defaultColor = globalDefaults.defaultColor;
+		var lineDefault = globalDefaults.elements.line;
+		var legendHeight = me.height;
+		var columnHeights = me.columnHeights;
+		var legendWidth = me.width;
+		var lineWidths = me.lineWidths;
+
+		if (!opts.display) {
+			return;
+		}
+
+		var rtlHelper = getRtlHelper$1(opts.rtl, me.left, me.minSize.width);
+		var ctx = me.ctx;
+		var fontColor = valueOrDefault$e(labelOpts.fontColor, globalDefaults.defaultFontColor);
+		var labelFont = helpers$1.options._parseFont(labelOpts);
+		var fontSize = labelFont.size;
+		var cursor;
+
+		// Canvas setup
+		ctx.textAlign = rtlHelper.textAlign('left');
+		ctx.textBaseline = 'middle';
+		ctx.lineWidth = 0.5;
+		ctx.strokeStyle = fontColor; // for strikethrough effect
+		ctx.fillStyle = fontColor; // render in correct colour
+		ctx.font = labelFont.string;
+
+		var boxWidth = getBoxWidth(labelOpts, fontSize);
+		var hitboxes = me.legendHitBoxes;
+
+		// current position
+		var drawLegendBox = function(x, y, legendItem) {
+			if (isNaN(boxWidth) || boxWidth <= 0) {
+				return;
+			}
+
+			// Set the ctx for the box
+			ctx.save();
+
+			var lineWidth = valueOrDefault$e(legendItem.lineWidth, lineDefault.borderWidth);
+			ctx.fillStyle = valueOrDefault$e(legendItem.fillStyle, defaultColor);
+			ctx.lineCap = valueOrDefault$e(legendItem.lineCap, lineDefault.borderCapStyle);
+			ctx.lineDashOffset = valueOrDefault$e(legendItem.lineDashOffset, lineDefault.borderDashOffset);
+			ctx.lineJoin = valueOrDefault$e(legendItem.lineJoin, lineDefault.borderJoinStyle);
+			ctx.lineWidth = lineWidth;
+			ctx.strokeStyle = valueOrDefault$e(legendItem.strokeStyle, defaultColor);
+
+			if (ctx.setLineDash) {
+				// IE 9 and 10 do not support line dash
+				ctx.setLineDash(valueOrDefault$e(legendItem.lineDash, lineDefault.borderDash));
+			}
+
+			if (labelOpts && labelOpts.usePointStyle) {
+				// Recalculate x and y for drawPoint() because its expecting
+				// x and y to be center of figure (instead of top left)
+				var radius = boxWidth * Math.SQRT2 / 2;
+				var centerX = rtlHelper.xPlus(x, boxWidth / 2);
+				var centerY = y + fontSize / 2;
+
+				// Draw pointStyle as legend symbol
+				helpers$1.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY, legendItem.rotation);
+			} else {
+				// Draw box as legend symbol
+				ctx.fillRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);
+				if (lineWidth !== 0) {
+					ctx.strokeRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);
+				}
+			}
+
+			ctx.restore();
+		};
+
+		var fillText = function(x, y, legendItem, textWidth) {
+			var halfFontSize = fontSize / 2;
+			var xLeft = rtlHelper.xPlus(x, boxWidth + halfFontSize);
+			var yMiddle = y + halfFontSize;
+
+			ctx.fillText(legendItem.text, xLeft, yMiddle);
+
+			if (legendItem.hidden) {
+				// Strikethrough the text if hidden
+				ctx.beginPath();
+				ctx.lineWidth = 2;
+				ctx.moveTo(xLeft, yMiddle);
+				ctx.lineTo(rtlHelper.xPlus(xLeft, textWidth), yMiddle);
+				ctx.stroke();
+			}
+		};
+
+		var alignmentOffset = function(dimension, blockSize) {
+			switch (opts.align) {
+			case 'start':
+				return labelOpts.padding;
+			case 'end':
+				return dimension - blockSize;
+			default: // center
+				return (dimension - blockSize + labelOpts.padding) / 2;
+			}
+		};
+
+		// Horizontal
+		var isHorizontal = me.isHorizontal();
+		if (isHorizontal) {
+			cursor = {
+				x: me.left + alignmentOffset(legendWidth, lineWidths[0]),
+				y: me.top + labelOpts.padding,
+				line: 0
+			};
+		} else {
+			cursor = {
+				x: me.left + labelOpts.padding,
+				y: me.top + alignmentOffset(legendHeight, columnHeights[0]),
+				line: 0
+			};
+		}
+
+		helpers$1.rtl.overrideTextDirection(me.ctx, opts.textDirection);
+
+		var itemHeight = fontSize + labelOpts.padding;
+		helpers$1.each(me.legendItems, function(legendItem, i) {
+			var textWidth = ctx.measureText(legendItem.text).width;
+			var width = boxWidth + (fontSize / 2) + textWidth;
+			var x = cursor.x;
+			var y = cursor.y;
+
+			rtlHelper.setWidth(me.minSize.width);
+
+			// Use (me.left + me.minSize.width) and (me.top + me.minSize.height)
+			// instead of me.right and me.bottom because me.width and me.height
+			// may have been changed since me.minSize was calculated
+			if (isHorizontal) {
+				if (i > 0 && x + width + labelOpts.padding > me.left + me.minSize.width) {
+					y = cursor.y += itemHeight;
+					cursor.line++;
+					x = cursor.x = me.left + alignmentOffset(legendWidth, lineWidths[cursor.line]);
+				}
+			} else if (i > 0 && y + itemHeight > me.top + me.minSize.height) {
+				x = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;
+				cursor.line++;
+				y = cursor.y = me.top + alignmentOffset(legendHeight, columnHeights[cursor.line]);
+			}
+
+			var realX = rtlHelper.x(x);
+
+			drawLegendBox(realX, y, legendItem);
+
+			hitboxes[i].left = rtlHelper.leftForLtr(realX, hitboxes[i].width);
+			hitboxes[i].top = y;
+
+			// Fill the actual label
+			fillText(realX, y, legendItem, textWidth);
+
+			if (isHorizontal) {
+				cursor.x += width + labelOpts.padding;
+			} else {
+				cursor.y += itemHeight;
+			}
+		});
+
+		helpers$1.rtl.restoreTextDirection(me.ctx, opts.textDirection);
+	},
+
+	/**
+	 * @private
+	 */
+	_getLegendItemAt: function(x, y) {
+		var me = this;
+		var i, hitBox, lh;
+
+		if (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {
+			// See if we are touching one of the dataset boxes
+			lh = me.legendHitBoxes;
+			for (i = 0; i < lh.length; ++i) {
+				hitBox = lh[i];
+
+				if (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {
+					// Touching an element
+					return me.legendItems[i];
+				}
+			}
+		}
+
+		return null;
+	},
+
+	/**
+	 * Handle an event
+	 * @private
+	 * @param {IEvent} event - The event to handle
+	 */
+	handleEvent: function(e) {
+		var me = this;
+		var opts = me.options;
+		var type = e.type === 'mouseup' ? 'click' : e.type;
+		var hoveredItem;
+
+		if (type === 'mousemove') {
+			if (!opts.onHover && !opts.onLeave) {
+				return;
+			}
+		} else if (type === 'click') {
+			if (!opts.onClick) {
+				return;
+			}
+		} else {
+			return;
+		}
+
+		// Chart event already has relative position in it
+		hoveredItem = me._getLegendItemAt(e.x, e.y);
+
+		if (type === 'click') {
+			if (hoveredItem && opts.onClick) {
+				// use e.native for backwards compatibility
+				opts.onClick.call(me, e.native, hoveredItem);
+			}
+		} else {
+			if (opts.onLeave && hoveredItem !== me._hoveredItem) {
+				if (me._hoveredItem) {
+					opts.onLeave.call(me, e.native, me._hoveredItem);
+				}
+				me._hoveredItem = hoveredItem;
+			}
+
+			if (opts.onHover && hoveredItem) {
+				// use e.native for backwards compatibility
+				opts.onHover.call(me, e.native, hoveredItem);
+			}
+		}
+	}
+});
+
+function createNewLegendAndAttach(chart, legendOpts) {
+	var legend = new Legend({
+		ctx: chart.ctx,
+		options: legendOpts,
+		chart: chart
+	});
+
+	core_layouts.configure(chart, legend, legendOpts);
+	core_layouts.addBox(chart, legend);
+	chart.legend = legend;
+}
+
+var plugin_legend = {
+	id: 'legend',
+
+	/**
+	 * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making
+	 * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of
+	 * the plugin, which one will be re-exposed in the chart.js file.
+	 * https://github.com/chartjs/Chart.js/pull/2640
+	 * @private
+	 */
+	_element: Legend,
+
+	beforeInit: function(chart) {
+		var legendOpts = chart.options.legend;
+
+		if (legendOpts) {
+			createNewLegendAndAttach(chart, legendOpts);
+		}
+	},
+
+	beforeUpdate: function(chart) {
+		var legendOpts = chart.options.legend;
+		var legend = chart.legend;
+
+		if (legendOpts) {
+			helpers$1.mergeIf(legendOpts, core_defaults.global.legend);
+
+			if (legend) {
+				core_layouts.configure(chart, legend, legendOpts);
+				legend.options = legendOpts;
+			} else {
+				createNewLegendAndAttach(chart, legendOpts);
+			}
+		} else if (legend) {
+			core_layouts.removeBox(chart, legend);
+			delete chart.legend;
+		}
+	},
+
+	afterEvent: function(chart, e) {
+		var legend = chart.legend;
+		if (legend) {
+			legend.handleEvent(e);
+		}
+	}
+};
+
+var noop$2 = helpers$1.noop;
+
+core_defaults._set('global', {
+	title: {
+		display: false,
+		fontStyle: 'bold',
+		fullWidth: true,
+		padding: 10,
+		position: 'top',
+		text: '',
+		weight: 2000         // by default greater than legend (1000) to be above
+	}
+});
+
+/**
+ * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!
+ */
+var Title = core_element.extend({
+	initialize: function(config) {
+		var me = this;
+		helpers$1.extend(me, config);
+
+		// Contains hit boxes for each dataset (in dataset order)
+		me.legendHitBoxes = [];
+	},
+
+	// These methods are ordered by lifecycle. Utilities then follow.
+
+	beforeUpdate: noop$2,
+	update: function(maxWidth, maxHeight, margins) {
+		var me = this;
+
+		// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
+		me.beforeUpdate();
+
+		// Absorb the master measurements
+		me.maxWidth = maxWidth;
+		me.maxHeight = maxHeight;
+		me.margins = margins;
+
+		// Dimensions
+		me.beforeSetDimensions();
+		me.setDimensions();
+		me.afterSetDimensions();
+		// Labels
+		me.beforeBuildLabels();
+		me.buildLabels();
+		me.afterBuildLabels();
+
+		// Fit
+		me.beforeFit();
+		me.fit();
+		me.afterFit();
+		//
+		me.afterUpdate();
+
+		return me.minSize;
+
+	},
+	afterUpdate: noop$2,
+
+	//
+
+	beforeSetDimensions: noop$2,
+	setDimensions: function() {
+		var me = this;
+		// Set the unconstrained dimension before label rotation
+		if (me.isHorizontal()) {
+			// Reset position before calculating rotation
+			me.width = me.maxWidth;
+			me.left = 0;
+			me.right = me.width;
+		} else {
+			me.height = me.maxHeight;
+
+			// Reset position before calculating rotation
+			me.top = 0;
+			me.bottom = me.height;
+		}
+
+		// Reset padding
+		me.paddingLeft = 0;
+		me.paddingTop = 0;
+		me.paddingRight = 0;
+		me.paddingBottom = 0;
+
+		// Reset minSize
+		me.minSize = {
+			width: 0,
+			height: 0
+		};
+	},
+	afterSetDimensions: noop$2,
+
+	//
+
+	beforeBuildLabels: noop$2,
+	buildLabels: noop$2,
+	afterBuildLabels: noop$2,
+
+	//
+
+	beforeFit: noop$2,
+	fit: function() {
+		var me = this;
+		var opts = me.options;
+		var minSize = me.minSize = {};
+		var isHorizontal = me.isHorizontal();
+		var lineCount, textSize;
+
+		if (!opts.display) {
+			me.width = minSize.width = me.height = minSize.height = 0;
+			return;
+		}
+
+		lineCount = helpers$1.isArray(opts.text) ? opts.text.length : 1;
+		textSize = lineCount * helpers$1.options._parseFont(opts).lineHeight + opts.padding * 2;
+
+		me.width = minSize.width = isHorizontal ? me.maxWidth : textSize;
+		me.height = minSize.height = isHorizontal ? textSize : me.maxHeight;
+	},
+	afterFit: noop$2,
+
+	// Shared Methods
+	isHorizontal: function() {
+		var pos = this.options.position;
+		return pos === 'top' || pos === 'bottom';
+	},
+
+	// Actually draw the title block on the canvas
+	draw: function() {
+		var me = this;
+		var ctx = me.ctx;
+		var opts = me.options;
+
+		if (!opts.display) {
+			return;
+		}
+
+		var fontOpts = helpers$1.options._parseFont(opts);
+		var lineHeight = fontOpts.lineHeight;
+		var offset = lineHeight / 2 + opts.padding;
+		var rotation = 0;
+		var top = me.top;
+		var left = me.left;
+		var bottom = me.bottom;
+		var right = me.right;
+		var maxWidth, titleX, titleY;
+
+		ctx.fillStyle = helpers$1.valueOrDefault(opts.fontColor, core_defaults.global.defaultFontColor); // render in correct colour
+		ctx.font = fontOpts.string;
+
+		// Horizontal
+		if (me.isHorizontal()) {
+			titleX = left + ((right - left) / 2); // midpoint of the width
+			titleY = top + offset;
+			maxWidth = right - left;
+		} else {
+			titleX = opts.position === 'left' ? left + offset : right - offset;
+			titleY = top + ((bottom - top) / 2);
+			maxWidth = bottom - top;
+			rotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);
+		}
+
+		ctx.save();
+		ctx.translate(titleX, titleY);
+		ctx.rotate(rotation);
+		ctx.textAlign = 'center';
+		ctx.textBaseline = 'middle';
+
+		var text = opts.text;
+		if (helpers$1.isArray(text)) {
+			var y = 0;
+			for (var i = 0; i < text.length; ++i) {
+				ctx.fillText(text[i], 0, y, maxWidth);
+				y += lineHeight;
+			}
+		} else {
+			ctx.fillText(text, 0, 0, maxWidth);
+		}
+
+		ctx.restore();
+	}
+});
+
+function createNewTitleBlockAndAttach(chart, titleOpts) {
+	var title = new Title({
+		ctx: chart.ctx,
+		options: titleOpts,
+		chart: chart
+	});
+
+	core_layouts.configure(chart, title, titleOpts);
+	core_layouts.addBox(chart, title);
+	chart.titleBlock = title;
+}
+
+var plugin_title = {
+	id: 'title',
+
+	/**
+	 * Backward compatibility: since 2.1.5, the title is registered as a plugin, making
+	 * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of
+	 * the plugin, which one will be re-exposed in the chart.js file.
+	 * https://github.com/chartjs/Chart.js/pull/2640
+	 * @private
+	 */
+	_element: Title,
+
+	beforeInit: function(chart) {
+		var titleOpts = chart.options.title;
+
+		if (titleOpts) {
+			createNewTitleBlockAndAttach(chart, titleOpts);
+		}
+	},
+
+	beforeUpdate: function(chart) {
+		var titleOpts = chart.options.title;
+		var titleBlock = chart.titleBlock;
+
+		if (titleOpts) {
+			helpers$1.mergeIf(titleOpts, core_defaults.global.title);
+
+			if (titleBlock) {
+				core_layouts.configure(chart, titleBlock, titleOpts);
+				titleBlock.options = titleOpts;
+			} else {
+				createNewTitleBlockAndAttach(chart, titleOpts);
+			}
+		} else if (titleBlock) {
+			core_layouts.removeBox(chart, titleBlock);
+			delete chart.titleBlock;
+		}
+	}
+};
+
+var plugins = {};
+var filler = plugin_filler;
+var legend = plugin_legend;
+var title = plugin_title;
+plugins.filler = filler;
+plugins.legend = legend;
+plugins.title = title;
+
+/**
+ * @namespace Chart
+ */
 
-                    // preserve .conversion property if there is one
-                    if ('conversion' in fn) {
-                        wrappedFn.conversion = fn.conversion;
-                    }
 
-                    return wrappedFn;
-                }
+core_controller.helpers = helpers$1;
 
-                models.forEach(function (fromModel) {
-                    convert[fromModel] = {};
+// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!
+core_helpers();
+
+core_controller._adapters = core_adapters;
+core_controller.Animation = core_animation;
+core_controller.animationService = core_animations;
+core_controller.controllers = controllers;
+core_controller.DatasetController = core_datasetController;
+core_controller.defaults = core_defaults;
+core_controller.Element = core_element;
+core_controller.elements = elements;
+core_controller.Interaction = core_interaction;
+core_controller.layouts = core_layouts;
+core_controller.platform = platform;
+core_controller.plugins = core_plugins;
+core_controller.Scale = core_scale;
+core_controller.scaleService = core_scaleService;
+core_controller.Ticks = core_ticks;
+core_controller.Tooltip = core_tooltip;
 
-                    Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
-                    Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
+// Register built-in scales
 
-                    var routes = route(fromModel);
-                    var routeModels = Object.keys(routes);
+core_controller.helpers.each(scales, function(scale, type) {
+	core_controller.scaleService.registerScaleType(type, scale, scale._defaults);
+});
 
-                    routeModels.forEach(function (toModel) {
-                        var fn = routes[toModel];
+// Load to register built-in adapters (as side effects)
 
-                        convert[fromModel][toModel] = wrapRounded(fn);
-                        convert[fromModel][toModel].raw = wrapRaw(fn);
-                    });
-                });
 
-                var colorConvert = convert;
-
-                var colorName$1 = {
-                    "aliceblue": [240, 248, 255],
-                    "antiquewhite": [250, 235, 215],
-                    "aqua": [0, 255, 255],
-                    "aquamarine": [127, 255, 212],
-                    "azure": [240, 255, 255],
-                    "beige": [245, 245, 220],
-                    "bisque": [255, 228, 196],
-                    "black": [0, 0, 0],
-                    "blanchedalmond": [255, 235, 205],
-                    "blue": [0, 0, 255],
-                    "blueviolet": [138, 43, 226],
-                    "brown": [165, 42, 42],
-                    "burlywood": [222, 184, 135],
-                    "cadetblue": [95, 158, 160],
-                    "chartreuse": [127, 255, 0],
-                    "chocolate": [210, 105, 30],
-                    "coral": [255, 127, 80],
-                    "cornflowerblue": [100, 149, 237],
-                    "cornsilk": [255, 248, 220],
-                    "crimson": [220, 20, 60],
-                    "cyan": [0, 255, 255],
-                    "darkblue": [0, 0, 139],
-                    "darkcyan": [0, 139, 139],
-                    "darkgoldenrod": [184, 134, 11],
-                    "darkgray": [169, 169, 169],
-                    "darkgreen": [0, 100, 0],
-                    "darkgrey": [169, 169, 169],
-                    "darkkhaki": [189, 183, 107],
-                    "darkmagenta": [139, 0, 139],
-                    "darkolivegreen": [85, 107, 47],
-                    "darkorange": [255, 140, 0],
-                    "darkorchid": [153, 50, 204],
-                    "darkred": [139, 0, 0],
-                    "darksalmon": [233, 150, 122],
-                    "darkseagreen": [143, 188, 143],
-                    "darkslateblue": [72, 61, 139],
-                    "darkslategray": [47, 79, 79],
-                    "darkslategrey": [47, 79, 79],
-                    "darkturquoise": [0, 206, 209],
-                    "darkviolet": [148, 0, 211],
-                    "deeppink": [255, 20, 147],
-                    "deepskyblue": [0, 191, 255],
-                    "dimgray": [105, 105, 105],
-                    "dimgrey": [105, 105, 105],
-                    "dodgerblue": [30, 144, 255],
-                    "firebrick": [178, 34, 34],
-                    "floralwhite": [255, 250, 240],
-                    "forestgreen": [34, 139, 34],
-                    "fuchsia": [255, 0, 255],
-                    "gainsboro": [220, 220, 220],
-                    "ghostwhite": [248, 248, 255],
-                    "gold": [255, 215, 0],
-                    "goldenrod": [218, 165, 32],
-                    "gray": [128, 128, 128],
-                    "green": [0, 128, 0],
-                    "greenyellow": [173, 255, 47],
-                    "grey": [128, 128, 128],
-                    "honeydew": [240, 255, 240],
-                    "hotpink": [255, 105, 180],
-                    "indianred": [205, 92, 92],
-                    "indigo": [75, 0, 130],
-                    "ivory": [255, 255, 240],
-                    "khaki": [240, 230, 140],
-                    "lavender": [230, 230, 250],
-                    "lavenderblush": [255, 240, 245],
-                    "lawngreen": [124, 252, 0],
-                    "lemonchiffon": [255, 250, 205],
-                    "lightblue": [173, 216, 230],
-                    "lightcoral": [240, 128, 128],
-                    "lightcyan": [224, 255, 255],
-                    "lightgoldenrodyellow": [250, 250, 210],
-                    "lightgray": [211, 211, 211],
-                    "lightgreen": [144, 238, 144],
-                    "lightgrey": [211, 211, 211],
-                    "lightpink": [255, 182, 193],
-                    "lightsalmon": [255, 160, 122],
-                    "lightseagreen": [32, 178, 170],
-                    "lightskyblue": [135, 206, 250],
-                    "lightslategray": [119, 136, 153],
-                    "lightslategrey": [119, 136, 153],
-                    "lightsteelblue": [176, 196, 222],
-                    "lightyellow": [255, 255, 224],
-                    "lime": [0, 255, 0],
-                    "limegreen": [50, 205, 50],
-                    "linen": [250, 240, 230],
-                    "magenta": [255, 0, 255],
-                    "maroon": [128, 0, 0],
-                    "mediumaquamarine": [102, 205, 170],
-                    "mediumblue": [0, 0, 205],
-                    "mediumorchid": [186, 85, 211],
-                    "mediumpurple": [147, 112, 219],
-                    "mediumseagreen": [60, 179, 113],
-                    "mediumslateblue": [123, 104, 238],
-                    "mediumspringgreen": [0, 250, 154],
-                    "mediumturquoise": [72, 209, 204],
-                    "mediumvioletred": [199, 21, 133],
-                    "midnightblue": [25, 25, 112],
-                    "mintcream": [245, 255, 250],
-                    "mistyrose": [255, 228, 225],
-                    "moccasin": [255, 228, 181],
-                    "navajowhite": [255, 222, 173],
-                    "navy": [0, 0, 128],
-                    "oldlace": [253, 245, 230],
-                    "olive": [128, 128, 0],
-                    "olivedrab": [107, 142, 35],
-                    "orange": [255, 165, 0],
-                    "orangered": [255, 69, 0],
-                    "orchid": [218, 112, 214],
-                    "palegoldenrod": [238, 232, 170],
-                    "palegreen": [152, 251, 152],
-                    "paleturquoise": [175, 238, 238],
-                    "palevioletred": [219, 112, 147],
-                    "papayawhip": [255, 239, 213],
-                    "peachpuff": [255, 218, 185],
-                    "peru": [205, 133, 63],
-                    "pink": [255, 192, 203],
-                    "plum": [221, 160, 221],
-                    "powderblue": [176, 224, 230],
-                    "purple": [128, 0, 128],
-                    "rebeccapurple": [102, 51, 153],
-                    "red": [255, 0, 0],
-                    "rosybrown": [188, 143, 143],
-                    "royalblue": [65, 105, 225],
-                    "saddlebrown": [139, 69, 19],
-                    "salmon": [250, 128, 114],
-                    "sandybrown": [244, 164, 96],
-                    "seagreen": [46, 139, 87],
-                    "seashell": [255, 245, 238],
-                    "sienna": [160, 82, 45],
-                    "silver": [192, 192, 192],
-                    "skyblue": [135, 206, 235],
-                    "slateblue": [106, 90, 205],
-                    "slategray": [112, 128, 144],
-                    "slategrey": [112, 128, 144],
-                    "snow": [255, 250, 250],
-                    "springgreen": [0, 255, 127],
-                    "steelblue": [70, 130, 180],
-                    "tan": [210, 180, 140],
-                    "teal": [0, 128, 128],
-                    "thistle": [216, 191, 216],
-                    "tomato": [255, 99, 71],
-                    "turquoise": [64, 224, 208],
-                    "violet": [238, 130, 238],
-                    "wheat": [245, 222, 179],
-                    "white": [255, 255, 255],
-                    "whitesmoke": [245, 245, 245],
-                    "yellow": [255, 255, 0],
-                    "yellowgreen": [154, 205, 50]
-                };
+// Loading built-in plugins
 
-                /* MIT license */
-
-
-                var colorString = {
-                    getRgba: getRgba,
-                    getHsla: getHsla,
-                    getRgb: getRgb,
-                    getHsl: getHsl,
-                    getHwb: getHwb,
-                    getAlpha: getAlpha,
-
-                    hexString: hexString,
-                    rgbString: rgbString,
-                    rgbaString: rgbaString,
-                    percentString: percentString,
-                    percentaString: percentaString,
-                    hslString: hslString,
-                    hslaString: hslaString,
-                    hwbString: hwbString,
-                    keyword: keyword
-                };
+for (var k in plugins) {
+	if (plugins.hasOwnProperty(k)) {
+		core_controller.plugins.register(plugins[k]);
+	}
+}
 
-                function getRgba(string) {
-                    if (!string) {
-                        return;
-                    }
-                    var abbr =  /^#([a-fA-F0-9]{3,4})$/i,
-                        hex =  /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,
-                        rgba = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,
-                        per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,
-                        keyword = /(\w+)/;
-
-                    var rgb = [0, 0, 0],
-                        a = 1,
-                        match = string.match(abbr),
-                        hexAlpha = "";
-                    if (match) {
-                        match = match[1];
-                        hexAlpha = match[3];
-                        for (var i = 0; i < rgb.length; i++) {
-                            rgb[i] = parseInt(match[i] + match[i], 16);
-                        }
-                        if (hexAlpha) {
-                            a = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;
-                        }
-                    }
-                    else if (match = string.match(hex)) {
-                        hexAlpha = match[2];
-                        match = match[1];
-                        for (var i = 0; i < rgb.length; i++) {
-                            rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);
-                        }
-                        if (hexAlpha) {
-                            a = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;
-                        }
-                    }
-                    else if (match = string.match(rgba)) {
-                        for (var i = 0; i < rgb.length; i++) {
-                            rgb[i] = parseInt(match[i + 1]);
-                        }
-                        a = parseFloat(match[4]);
-                    }
-                    else if (match = string.match(per)) {
-                        for (var i = 0; i < rgb.length; i++) {
-                            rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
-                        }
-                        a = parseFloat(match[4]);
-                    }
-                    else if (match = string.match(keyword)) {
-                        if (match[1] == "transparent") {
-                            return [0, 0, 0, 0];
-                        }
-                        rgb = colorName$1[match[1]];
-                        if (!rgb) {
-                            return;
-                        }
-                    }
+core_controller.platform.initialize();
 
-                    for (var i = 0; i < rgb.length; i++) {
-                        rgb[i] = scale(rgb[i], 0, 255);
-                    }
-                    if (!a && a != 0) {
-                        a = 1;
-                    }
-                    else {
-                        a = scale(a, 0, 1);
-                    }
-                    rgb[3] = a;
-                    return rgb;
-                }
+var src = core_controller;
+if (typeof window !== 'undefined') {
+	window.Chart = core_controller;
+}
 
-                function getHsla(string) {
-                    if (!string) {
-                        return;
-                    }
-                    var hsl = /^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/;
-                    var match = string.match(hsl);
-                    if (match) {
-                        var alpha = parseFloat(match[4]);
-                        var h = scale(parseInt(match[1]), 0, 360),
-                            s = scale(parseFloat(match[2]), 0, 100),
-                            l = scale(parseFloat(match[3]), 0, 100),
-                            a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);
-                        return [h, s, l, a];
-                    }
-                }
+// DEPRECATIONS
 
-                function getHwb(string) {
-                    if (!string) {
-                        return;
-                    }
-                    var hwb = /^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/;
-                    var match = string.match(hwb);
-                    if (match) {
-                        var alpha = parseFloat(match[4]);
-                        var h = scale(parseInt(match[1]), 0, 360),
-                            w = scale(parseFloat(match[2]), 0, 100),
-                            b = scale(parseFloat(match[3]), 0, 100),
-                            a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);
-                        return [h, w, b, a];
-                    }
-                }
+/**
+ * Provided for backward compatibility, not available anymore
+ * @namespace Chart.Chart
+ * @deprecated since version 2.8.0
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.Chart = core_controller;
+
+/**
+ * Provided for backward compatibility, not available anymore
+ * @namespace Chart.Legend
+ * @deprecated since version 2.1.5
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.Legend = plugins.legend._element;
+
+/**
+ * Provided for backward compatibility, not available anymore
+ * @namespace Chart.Title
+ * @deprecated since version 2.1.5
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.Title = plugins.title._element;
+
+/**
+ * Provided for backward compatibility, use Chart.plugins instead
+ * @namespace Chart.pluginService
+ * @deprecated since version 2.1.5
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.pluginService = core_controller.plugins;
+
+/**
+ * Provided for backward compatibility, inheriting from Chart.PlugingBase has no
+ * effect, instead simply create/register plugins via plain JavaScript objects.
+ * @interface Chart.PluginBase
+ * @deprecated since version 2.5.0
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.PluginBase = core_controller.Element.extend({});
+
+/**
+ * Provided for backward compatibility, use Chart.helpers.canvas instead.
+ * @namespace Chart.canvasHelpers
+ * @deprecated since version 2.6.0
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.canvasHelpers = core_controller.helpers.canvas;
+
+/**
+ * Provided for backward compatibility, use Chart.layouts instead.
+ * @namespace Chart.layoutService
+ * @deprecated since version 2.7.3
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.layoutService = core_controller.layouts;
+
+/**
+ * Provided for backward compatibility, not available anymore.
+ * @namespace Chart.LinearScaleBase
+ * @deprecated since version 2.8
+ * @todo remove at version 3
+ * @private
+ */
+core_controller.LinearScaleBase = scale_linearbase;
 
-                function getRgb(string) {
-                    var rgba = getRgba(string);
-                    return rgba && rgba.slice(0, 3);
-                }
+/**
+ * Provided for backward compatibility, instead we should create a new Chart
+ * by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).
+ * @deprecated since version 2.8.0
+ * @todo remove at version 3
+ */
+core_controller.helpers.each(
+	[
+		'Bar',
+		'Bubble',
+		'Doughnut',
+		'Line',
+		'PolarArea',
+		'Radar',
+		'Scatter'
+	],
+	function(klass) {
+		core_controller[klass] = function(ctx, cfg) {
+			return new core_controller(ctx, core_controller.helpers.merge(cfg || {}, {
+				type: klass.charAt(0).toLowerCase() + klass.slice(1)
+			}));
+		};
+	}
+);
+
+return src;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/annotation.js":
+/*!******************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/annotation.js ***!
+  \******************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = function(Chart) {
+	var chartHelpers = Chart.helpers;
+
+	var helpers = __webpack_require__(/*! ./helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
+	var events = __webpack_require__(/*! ./events.js */ "./node_modules/chartjs-plugin-annotation/src/events.js")(Chart);
+
+	var annotationTypes = Chart.Annotation.types;
+
+	function setAfterDataLimitsHook(axisOptions) {
+		helpers.decorate(axisOptions, 'afterDataLimits', function(previous, scale) {
+			if (previous) previous(scale);
+			helpers.adjustScaleRange(scale);
+		});
+	}
+
+	function draw(drawTime) {
+		return function(chartInstance, easingDecimal) {
+			var defaultDrawTime = chartInstance.annotation.options.drawTime;
+
+			helpers.elements(chartInstance)
+				.filter(function(element) {
+					return drawTime === (element.options.drawTime || defaultDrawTime);
+				})
+				.forEach(function(element) {
+					element.transition(easingDecimal).draw();
+				});
+		};
+	}
+
+	return {
+		beforeInit: function(chartInstance) {
+			var chartOptions = chartInstance.options;
+
+			// Initialize chart instance plugin namespace
+			var ns = chartInstance.annotation = {
+				elements: {},
+				options: helpers.initConfig(chartOptions.annotation || {}),
+				onDestroy: [],
+				firstRun: true,
+				supported: false
+			};
+
+			// Add the annotation scale adjuster to each scale's afterDataLimits hook
+			chartInstance.ensureScalesHaveIDs();
+			if (chartOptions.scales) {
+				ns.supported = true;
+				chartHelpers.each(chartOptions.scales.xAxes, setAfterDataLimitsHook);
+				chartHelpers.each(chartOptions.scales.yAxes, setAfterDataLimitsHook);
+			}
+		},
+		beforeUpdate: function(chartInstance) {
+			var ns = chartInstance.annotation;
+
+			if (!ns.supported) {
+				return;
+			}
+
+			if (!ns.firstRun) {
+				ns.options = helpers.initConfig(chartInstance.options.annotation || {});
+			} else {
+				ns.firstRun = false;
+			}
+
+			var elementIds = [];
+
+			// Add new elements, or update existing ones
+			ns.options.annotations.forEach(function(annotation) {
+				var id = annotation.id || helpers.objectId();
+				
+				// No element with that ID exists, and it's a valid annotation type
+				if (!ns.elements[id] && annotationTypes[annotation.type]) {
+					var cls = annotationTypes[annotation.type];
+					var element = new cls({
+						id: id,
+						options: annotation,
+						chartInstance: chartInstance,
+					});
+					element.initialize();
+					ns.elements[id] = element;
+					annotation.id = id;
+					elementIds.push(id);
+				} else if (ns.elements[id]) {
+					// Nothing to do for update, since the element config references
+					// the same object that exists in the chart annotation config
+					elementIds.push(id);
+				}
+			});
+
+			// Delete removed elements
+			Object.keys(ns.elements).forEach(function(id) {
+				if (elementIds.indexOf(id) === -1) {
+					ns.elements[id].destroy();
+					delete ns.elements[id];
+				}
+			});
+		},
+		afterScaleUpdate: function(chartInstance) {
+			helpers.elements(chartInstance).forEach(function(element) {
+				element.configure();
+			});
+		},
+		beforeDatasetsDraw: draw('beforeDatasetsDraw'),
+		afterDatasetsDraw: draw('afterDatasetsDraw'),
+		afterDraw: draw('afterDraw'),
+		afterInit: function(chartInstance) {
+			// Detect and intercept events that happen on an annotation element
+			var watchFor = chartInstance.annotation.options.events;
+			if (chartHelpers.isArray(watchFor) && watchFor.length > 0) {
+				var canvas = chartInstance.chart.canvas;
+				var eventHandler = events.dispatcher.bind(chartInstance);
+				events.collapseHoverEvents(watchFor).forEach(function(eventName) {
+					chartHelpers.addEvent(canvas, eventName, eventHandler);
+					chartInstance.annotation.onDestroy.push(function() {
+						chartHelpers.removeEvent(canvas, eventName, eventHandler);
+					});
+				});
+			}
+		},
+		destroy: function(chartInstance) {
+			var deregisterers = chartInstance.annotation.onDestroy;
+			while (deregisterers.length > 0) {
+				deregisterers.pop()();
+			}
+		}
+	};
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/element.js":
+/*!***************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/element.js ***!
+  \***************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+module.exports = function(Chart) {
+	var chartHelpers = Chart.helpers;
+	
+	var AnnotationElement = Chart.Element.extend({
+		initialize: function() {
+			this.hidden = false;
+			this.hovering = false;
+			this._model = chartHelpers.clone(this._model) || {};
+			this.setDataLimits();
+		},
+		destroy: function() {},
+		setDataLimits: function() {},
+		configure: function() {},
+		inRange: function() {},
+		getCenterPoint: function() {},
+		getWidth: function() {},
+		getHeight: function() {},
+		getArea: function() {},
+		draw: function() {}
+	});
+
+	return AnnotationElement;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/events.js":
+/*!**************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/events.js ***!
+  \**************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = function(Chart) {
+	var chartHelpers = Chart.helpers;
+	var helpers = __webpack_require__(/*! ./helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
+
+	function collapseHoverEvents(events) {
+		var hover = false;
+		var filteredEvents = events.filter(function(eventName) {
+			switch (eventName) {
+				case 'mouseenter':
+				case 'mouseover':
+				case 'mouseout':
+				case 'mouseleave':
+					hover = true;
+					return false;
+
+				default:
+					return true;
+			}
+		});
+		if (hover && filteredEvents.indexOf('mousemove') === -1) {
+			filteredEvents.push('mousemove');
+		}
+		return filteredEvents;
+	}
+
+	function dispatcher(e) {
+		var ns = this.annotation;
+		var elements = helpers.elements(this);
+		var position = chartHelpers.getRelativePosition(e, this.chart);
+		var element = helpers.getNearestItems(elements, position);
+		var events = collapseHoverEvents(ns.options.events);
+		var dblClickSpeed = ns.options.dblClickSpeed;
+		var eventHandlers = [];
+		var eventHandlerName = helpers.getEventHandlerName(e.type);
+		var options = (element || {}).options;
+
+		// Detect hover events
+		if (e.type === 'mousemove') {
+			if (element && !element.hovering) {
+				// hover started
+				['mouseenter', 'mouseover'].forEach(function(eventName) {
+					var eventHandlerName = helpers.getEventHandlerName(eventName);
+					var hoverEvent = helpers.createMouseEvent(eventName, e); // recreate the event to match the handler
+					element.hovering = true;
+					if (typeof options[eventHandlerName] === 'function') {
+						eventHandlers.push([ options[eventHandlerName], hoverEvent, element ]);
+					}
+				});
+			} else if (!element) {
+				// hover ended
+				elements.forEach(function(element) {
+					if (element.hovering) {
+						element.hovering = false;
+						var options = element.options;
+						['mouseout', 'mouseleave'].forEach(function(eventName) {
+							var eventHandlerName = helpers.getEventHandlerName(eventName);
+							var hoverEvent = helpers.createMouseEvent(eventName, e); // recreate the event to match the handler
+							if (typeof options[eventHandlerName] === 'function') {
+								eventHandlers.push([ options[eventHandlerName], hoverEvent, element ]);
+							}
+						});
+					}
+				});
+			}
+		}
+
+		// Suppress duplicate click events during a double click
+		// 1. click -> 2. click -> 3. dblclick
+		//
+		// 1: wait dblClickSpeed ms, then fire click
+		// 2: cancel (1) if it is waiting then wait dblClickSpeed ms then fire click, else fire click immediately
+		// 3: cancel (1) or (2) if waiting, then fire dblclick 
+		if (element && events.indexOf('dblclick') > -1 && typeof options.onDblclick === 'function') {
+			if (e.type === 'click' && typeof options.onClick === 'function') {
+				clearTimeout(element.clickTimeout);
+				element.clickTimeout = setTimeout(function() {
+					delete element.clickTimeout;
+					options.onClick.call(element, e);
+				}, dblClickSpeed);
+				e.stopImmediatePropagation();
+				e.preventDefault();
+				return;
+			} else if (e.type === 'dblclick' && element.clickTimeout) {
+				clearTimeout(element.clickTimeout);
+				delete element.clickTimeout;
+			}
+		}
+
+		// Dispatch the event to the usual handler, but only if we haven't substituted it
+		if (element && typeof options[eventHandlerName] === 'function' && eventHandlers.length === 0) {
+			eventHandlers.push([ options[eventHandlerName], e, element ]);
+		}
+
+		if (eventHandlers.length > 0) {
+			e.stopImmediatePropagation();
+			e.preventDefault();
+			eventHandlers.forEach(function(eventHandler) {
+				// [handler, event, element]
+				eventHandler[0].call(eventHandler[2], eventHandler[1]);
+			});
+		}
+	}
+
+	return {
+		dispatcher: dispatcher,
+		collapseHoverEvents: collapseHoverEvents
+	};
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/helpers.js":
+/*!***************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/helpers.js ***!
+  \***************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+function noop() {}
+
+function elements(chartInstance) {
+	// Turn the elements object into an array of elements
+	var elements = chartInstance.annotation.elements;
+	return Object.keys(elements).map(function(id) {
+		return elements[id];
+	});
+}
+
+function objectId() {
+	return Math.random().toString(36).substr(2, 6);
+}
+
+function isValid(rawValue) {
+	if (rawValue === null || typeof rawValue === 'undefined') {
+		return false;
+	} else if (typeof rawValue === 'number') {
+		return isFinite(rawValue);
+	} else {
+		return !!rawValue;
+	}
+}
+
+function decorate(obj, prop, func) {
+	var prefix = '$';
+	if (!obj[prefix + prop]) {
+		if (obj[prop]) {
+			obj[prefix + prop] = obj[prop].bind(obj);
+			obj[prop] = function() {
+				var args = [ obj[prefix + prop] ].concat(Array.prototype.slice.call(arguments));
+				return func.apply(obj, args);
+			};
+		} else {
+			obj[prop] = function() {
+				var args = [ undefined ].concat(Array.prototype.slice.call(arguments));
+				return func.apply(obj, args);
+			};
+		}
+	}
+}
+
+function callEach(fns, method) {
+	fns.forEach(function(fn) {
+		(method ? fn[method] : fn)();
+	});
+}
+
+function getEventHandlerName(eventName) {
+	return 'on' + eventName[0].toUpperCase() + eventName.substring(1);
+}
+
+function createMouseEvent(type, previousEvent) {
+	try {
+		return new MouseEvent(type, previousEvent);
+	} catch (exception) {
+		try {
+			var m = document.createEvent('MouseEvent');
+			m.initMouseEvent(
+				type,
+				previousEvent.canBubble,
+				previousEvent.cancelable,
+				previousEvent.view,
+				previousEvent.detail,
+				previousEvent.screenX,
+				previousEvent.screenY,
+				previousEvent.clientX,
+				previousEvent.clientY,
+				previousEvent.ctrlKey,
+				previousEvent.altKey,
+				previousEvent.shiftKey,
+				previousEvent.metaKey,
+				previousEvent.button,
+				previousEvent.relatedTarget
+			);
+			return m;
+		} catch (exception2) {
+			var e = document.createEvent('Event');
+			e.initEvent(
+				type,
+				previousEvent.canBubble,
+				previousEvent.cancelable
+			);
+			return e;
+		}
+	}
+}
+
+module.exports = function(Chart) {
+	var chartHelpers = Chart.helpers;
+
+	function initConfig(config) {
+		config = chartHelpers.configMerge(Chart.Annotation.defaults, config);
+		if (chartHelpers.isArray(config.annotations)) {
+			config.annotations.forEach(function(annotation) {
+				annotation.label = chartHelpers.configMerge(Chart.Annotation.labelDefaults, annotation.label);
+			});
+		}
+		return config;
+	}
+
+	function getScaleLimits(scaleId, annotations, scaleMin, scaleMax) {
+		var ranges = annotations.filter(function(annotation) {
+			return !!annotation._model.ranges[scaleId];
+		}).map(function(annotation) {
+			return annotation._model.ranges[scaleId];
+		});
+
+		var min = ranges.map(function(range) {
+			return Number(range.min);
+		}).reduce(function(a, b) {
+			return isFinite(b) && !isNaN(b) && b < a ? b : a;
+		}, scaleMin);
+
+		var max = ranges.map(function(range) {
+			return Number(range.max);
+		}).reduce(function(a, b) {
+			return isFinite(b) && !isNaN(b) && b > a ? b : a;
+		}, scaleMax);
+
+		return {
+			min: min,
+			max: max
+		};
+	}
+
+	function adjustScaleRange(scale) {
+		// Adjust the scale range to include annotation values
+		var range = getScaleLimits(scale.id, elements(scale.chart), scale.min, scale.max);
+		if (typeof scale.options.ticks.min === 'undefined' && typeof scale.options.ticks.suggestedMin === 'undefined') {
+			scale.min = range.min;
+		}
+		if (typeof scale.options.ticks.max === 'undefined' && typeof scale.options.ticks.suggestedMax === 'undefined') {
+			scale.max = range.max;
+		}
+		if (scale.handleTickRangeOptions) {
+			scale.handleTickRangeOptions();
+		}
+	}
+
+	function getNearestItems(annotations, position) {
+		var minDistance = Number.POSITIVE_INFINITY;
+
+		return annotations
+			.filter(function(element) {
+				return element.inRange(position.x, position.y);
+			})
+			.reduce(function(nearestItems, element) {
+				var center = element.getCenterPoint();
+				var distance = chartHelpers.distanceBetweenPoints(position, center);
+
+				if (distance < minDistance) {
+					nearestItems = [element];
+					minDistance = distance;
+				} else if (distance === minDistance) {
+					// Can have multiple items at the same distance in which case we sort by size
+					nearestItems.push(element);
+				}
+
+				return nearestItems;
+			}, [])
+			.sort(function(a, b) {
+				// If there are multiple elements equally close,
+				// sort them by size, then by index
+				var sizeA = a.getArea(), sizeB = b.getArea();
+				return (sizeA > sizeB || sizeA < sizeB) ? sizeA - sizeB : a._index - b._index;
+			})
+			.slice(0, 1)[0]; // return only the top item
+	}
+
+	return {
+		initConfig: initConfig,
+		elements: elements,
+		callEach: callEach,
+		noop: noop,
+		objectId: objectId,
+		isValid: isValid,
+		decorate: decorate,
+		adjustScaleRange: adjustScaleRange,
+		getNearestItems: getNearestItems,
+		getEventHandlerName: getEventHandlerName,
+		createMouseEvent: createMouseEvent
+	};
+};
+
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/index.js":
+/*!*************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/index.js ***!
+  \*************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function getHsl(string) {
-                    var hsla = getHsla(string);
-                    return hsla && hsla.slice(0, 3);
-                }
+// Get the chart variable
+var Chart = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
+Chart = typeof(Chart) === 'function' ? Chart : window.Chart;
 
-                function getAlpha(string) {
-                    var vals = getRgba(string);
-                    if (vals) {
-                        return vals[3];
-                    }
-                    else if (vals = getHsla(string)) {
-                        return vals[3];
-                    }
-                    else if (vals = getHwb(string)) {
-                        return vals[3];
-                    }
-                }
+// Configure plugin namespace
+Chart.Annotation = Chart.Annotation || {};
+
+Chart.Annotation.drawTimeOptions = {
+	afterDraw: 'afterDraw',
+	afterDatasetsDraw: 'afterDatasetsDraw',
+	beforeDatasetsDraw: 'beforeDatasetsDraw'
+};
+
+Chart.Annotation.defaults = {
+	drawTime: 'afterDatasetsDraw',
+	dblClickSpeed: 350, // ms
+	events: [],
+	annotations: []
+};
+
+Chart.Annotation.labelDefaults = {
+	backgroundColor: 'rgba(0,0,0,0.8)',
+	fontFamily: Chart.defaults.global.defaultFontFamily,
+	fontSize: Chart.defaults.global.defaultFontSize,
+	fontStyle: 'bold',
+	fontColor: '#fff',
+	xPadding: 6,
+	yPadding: 6,
+	cornerRadius: 6,
+	position: 'center',
+	xAdjust: 0,
+	yAdjust: 0,
+	enabled: false,
+	content: null
+};
+
+Chart.Annotation.Element = __webpack_require__(/*! ./element.js */ "./node_modules/chartjs-plugin-annotation/src/element.js")(Chart);
+
+Chart.Annotation.types = {
+	line: __webpack_require__(/*! ./types/line.js */ "./node_modules/chartjs-plugin-annotation/src/types/line.js")(Chart),
+	box: __webpack_require__(/*! ./types/box.js */ "./node_modules/chartjs-plugin-annotation/src/types/box.js")(Chart)
+};
+
+var annotationPlugin = __webpack_require__(/*! ./annotation.js */ "./node_modules/chartjs-plugin-annotation/src/annotation.js")(Chart);
+
+module.exports = annotationPlugin;
+Chart.pluginService.register(annotationPlugin);
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/types/box.js":
+/*!*****************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/types/box.js ***!
+  \*****************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-// generators
-                function hexString(rgba, a) {
-                    var a = (a !== undefined && rgba.length === 3) ? a : rgba[3];
-                    return "#" + hexDouble(rgba[0])
-                        + hexDouble(rgba[1])
-                        + hexDouble(rgba[2])
-                        + (
-                            (a >= 0 && a < 1)
-                                ? hexDouble(Math.round(a * 255))
-                                : ""
-                        );
-                }
+// Box Annotation implementation
+module.exports = function(Chart) {
+	var helpers = __webpack_require__(/*! ../helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
+	
+	var BoxAnnotation = Chart.Annotation.Element.extend({
+		setDataLimits: function() {
+			var model = this._model;
+			var options = this.options;
+			var chartInstance = this.chartInstance;
+
+			var xScale = chartInstance.scales[options.xScaleID];
+			var yScale = chartInstance.scales[options.yScaleID];
+			var chartArea = chartInstance.chartArea;
+
+			// Set the data range for this annotation
+			model.ranges = {};
+			
+			if (!chartArea) {
+				return;
+			}
+			
+			var min = 0;
+			var max = 0;
+			
+			if (xScale) {
+				min = helpers.isValid(options.xMin) ? options.xMin : xScale.getPixelForValue(chartArea.left);
+				max = helpers.isValid(options.xMax) ? options.xMax : xScale.getPixelForValue(chartArea.right);
+
+				model.ranges[options.xScaleID] = {
+					min: Math.min(min, max),
+					max: Math.max(min, max)
+				};
+			}
+
+			if (yScale) {
+				min = helpers.isValid(options.yMin) ? options.yMin : yScale.getPixelForValue(chartArea.bottom);
+				max = helpers.isValid(options.yMax) ? options.yMax : yScale.getPixelForValue(chartArea.top);
+
+				model.ranges[options.yScaleID] = {
+					min: Math.min(min, max),
+					max: Math.max(min, max)
+				};
+			}
+		},
+		configure: function() {
+			var model = this._model;
+			var options = this.options;
+			var chartInstance = this.chartInstance;
+
+			var xScale = chartInstance.scales[options.xScaleID];
+			var yScale = chartInstance.scales[options.yScaleID];
+			var chartArea = chartInstance.chartArea;
+
+			// clip annotations to the chart area
+			model.clip = {
+				x1: chartArea.left,
+				x2: chartArea.right,
+				y1: chartArea.top,
+				y2: chartArea.bottom
+			};
+
+			var left = chartArea.left, 
+				top = chartArea.top, 
+				right = chartArea.right, 
+				bottom = chartArea.bottom;
+
+			var min, max;
+
+			if (xScale) {
+				min = helpers.isValid(options.xMin) ? xScale.getPixelForValue(options.xMin) : chartArea.left;
+				max = helpers.isValid(options.xMax) ? xScale.getPixelForValue(options.xMax) : chartArea.right;
+				left = Math.min(min, max);
+				right = Math.max(min, max);
+			}
+
+			if (yScale) {
+				min = helpers.isValid(options.yMin) ? yScale.getPixelForValue(options.yMin) : chartArea.bottom;
+				max = helpers.isValid(options.yMax) ? yScale.getPixelForValue(options.yMax) : chartArea.top;
+				top = Math.min(min, max);
+				bottom = Math.max(min, max);
+			}
+
+			// Ensure model has rect coordinates
+			model.left = left;
+			model.top = top;
+			model.right = right;
+			model.bottom = bottom;
+
+			// Stylistic options
+			model.borderColor = options.borderColor;
+			model.borderWidth = options.borderWidth;
+			model.backgroundColor = options.backgroundColor;
+		},
+		inRange: function(mouseX, mouseY) {
+			var model = this._model;
+			return model &&
+				mouseX >= model.left && 
+				mouseX <= model.right && 
+				mouseY >= model.top && 
+				mouseY <= model.bottom;
+		},
+		getCenterPoint: function() {
+			var model = this._model;
+			return {
+				x: (model.right + model.left) / 2,
+				y: (model.bottom + model.top) / 2
+			};
+		},
+		getWidth: function() {
+			var model = this._model;
+			return Math.abs(model.right - model.left);
+		},
+		getHeight: function() {
+			var model = this._model;
+			return Math.abs(model.bottom - model.top);
+		},
+		getArea: function() {
+			return this.getWidth() * this.getHeight();
+		},
+		draw: function() {
+			var view = this._view;
+			var ctx = this.chartInstance.chart.ctx;
+
+			ctx.save();
+
+			// Canvas setup
+			ctx.beginPath();
+			ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
+			ctx.clip();
+
+			ctx.lineWidth = view.borderWidth;
+			ctx.strokeStyle = view.borderColor;
+			ctx.fillStyle = view.backgroundColor;
+
+			// Draw
+			var width = view.right - view.left,
+				height = view.bottom - view.top;
+			ctx.fillRect(view.left, view.top, width, height);
+			ctx.strokeRect(view.left, view.top, width, height);
+
+			ctx.restore();
+		}
+	});
+
+	return BoxAnnotation;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/chartjs-plugin-annotation/src/types/line.js":
+/*!******************************************************************!*\
+  !*** ./node_modules/chartjs-plugin-annotation/src/types/line.js ***!
+  \******************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function rgbString(rgba, alpha) {
-                    if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {
-                        return rgbaString(rgba, alpha);
-                    }
-                    return "rgb(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2] + ")";
-                }
+// Line Annotation implementation
+module.exports = function(Chart) {
+	var chartHelpers = Chart.helpers;
+	var helpers = __webpack_require__(/*! ../helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
+
+	var horizontalKeyword = 'horizontal';
+	var verticalKeyword = 'vertical';
+
+	var LineAnnotation = Chart.Annotation.Element.extend({
+		setDataLimits: function() {
+			var model = this._model;
+			var options = this.options;
+
+			// Set the data range for this annotation
+			model.ranges = {};
+			model.ranges[options.scaleID] = {
+				min: options.value,
+				max: options.endValue || options.value
+			};
+		},
+		configure: function() {
+			var model = this._model;
+			var options = this.options;
+			var chartInstance = this.chartInstance;
+			var ctx = chartInstance.chart.ctx;
+
+			var scale = chartInstance.scales[options.scaleID];
+			var pixel, endPixel;
+			if (scale) {
+				pixel = helpers.isValid(options.value) ? scale.getPixelForValue(options.value) : NaN;
+				endPixel = helpers.isValid(options.endValue) ? scale.getPixelForValue(options.endValue) : pixel;
+			}
+
+			if (isNaN(pixel)) {
+				return;
+			}
+
+			var chartArea = chartInstance.chartArea;
+
+			// clip annotations to the chart area
+			model.clip = {
+				x1: chartArea.left,
+				x2: chartArea.right,
+				y1: chartArea.top,
+				y2: chartArea.bottom
+			};
+
+			if (this.options.mode == horizontalKeyword) {
+				model.x1 = chartArea.left;
+				model.x2 = chartArea.right;
+				model.y1 = pixel;
+				model.y2 = endPixel;
+			} else {
+				model.y1 = chartArea.top;
+				model.y2 = chartArea.bottom;
+				model.x1 = pixel;
+				model.x2 = endPixel;
+			}
+
+			model.line = new LineFunction(model);
+			model.mode = options.mode;
+
+			// Figure out the label:
+			model.labelBackgroundColor = options.label.backgroundColor;
+			model.labelFontFamily = options.label.fontFamily;
+			model.labelFontSize = options.label.fontSize;
+			model.labelFontStyle = options.label.fontStyle;
+			model.labelFontColor = options.label.fontColor;
+			model.labelXPadding = options.label.xPadding;
+			model.labelYPadding = options.label.yPadding;
+			model.labelCornerRadius = options.label.cornerRadius;
+			model.labelPosition = options.label.position;
+			model.labelXAdjust = options.label.xAdjust;
+			model.labelYAdjust = options.label.yAdjust;
+			model.labelEnabled = options.label.enabled;
+			model.labelContent = options.label.content;
+
+			ctx.font = chartHelpers.fontString(model.labelFontSize, model.labelFontStyle, model.labelFontFamily);
+			var textWidth = ctx.measureText(model.labelContent).width;
+			var textHeight = ctx.measureText('M').width;
+			var labelPosition = calculateLabelPosition(model, textWidth, textHeight, model.labelXPadding, model.labelYPadding);
+			model.labelX = labelPosition.x - model.labelXPadding;
+			model.labelY = labelPosition.y - model.labelYPadding;
+			model.labelWidth = textWidth + (2 * model.labelXPadding);
+			model.labelHeight = textHeight + (2 * model.labelYPadding);
+
+			model.borderColor = options.borderColor;
+			model.borderWidth = options.borderWidth;
+			model.borderDash = options.borderDash || [];
+			model.borderDashOffset = options.borderDashOffset || 0;
+		},
+		inRange: function(mouseX, mouseY) {
+			var model = this._model;
+			
+			return (
+				// On the line
+				model.line &&
+				model.line.intersects(mouseX, mouseY, this.getHeight())
+			) || (
+				// On the label
+				model.labelEnabled &&
+				model.labelContent &&
+				mouseX >= model.labelX && 
+				mouseX <= model.labelX + model.labelWidth && 
+				mouseY >= model.labelY && 
+				mouseY <= model.labelY + model.labelHeight
+			);
+		},
+		getCenterPoint: function() {
+			return {
+				x: (this._model.x2 + this._model.x1) / 2,
+				y: (this._model.y2 + this._model.y1) / 2
+			};
+		},
+		getWidth: function() {
+			return Math.abs(this._model.right - this._model.left);
+		},
+		getHeight: function() {
+			return this._model.borderWidth || 1;
+		},
+		getArea: function() {
+			return Math.sqrt(Math.pow(this.getWidth(), 2) + Math.pow(this.getHeight(), 2));
+		},
+		draw: function() {
+			var view = this._view;
+			var ctx = this.chartInstance.chart.ctx;
+
+			if (!view.clip) {
+				return;
+			}
+
+			ctx.save();
+
+			// Canvas setup
+			ctx.beginPath();
+			ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
+			ctx.clip();
+
+			ctx.lineWidth = view.borderWidth;
+			ctx.strokeStyle = view.borderColor;
+
+			if (ctx.setLineDash) {
+				ctx.setLineDash(view.borderDash);
+			}
+			ctx.lineDashOffset = view.borderDashOffset;
+
+			// Draw
+			ctx.beginPath();
+			ctx.moveTo(view.x1, view.y1);
+			ctx.lineTo(view.x2, view.y2);
+			ctx.stroke();
+
+			if (view.labelEnabled && view.labelContent) {
+				ctx.beginPath();
+				ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
+				ctx.clip();
+
+				ctx.fillStyle = view.labelBackgroundColor;
+				// Draw the tooltip
+				chartHelpers.drawRoundedRectangle(
+					ctx,
+					view.labelX, // x
+					view.labelY, // y
+					view.labelWidth, // width
+					view.labelHeight, // height
+					view.labelCornerRadius // radius
+				);
+				ctx.fill();
+
+				// Draw the text
+				ctx.font = chartHelpers.fontString(
+					view.labelFontSize,
+					view.labelFontStyle,
+					view.labelFontFamily
+				);
+				ctx.fillStyle = view.labelFontColor;
+				ctx.textAlign = 'center';
+				ctx.textBaseline = 'middle';
+				ctx.fillText(
+					view.labelContent,
+					view.labelX + (view.labelWidth / 2),
+					view.labelY + (view.labelHeight / 2)
+				);
+			}
+
+			ctx.restore();
+		}
+	});
+
+	function LineFunction(view) {
+		// Describe the line in slope-intercept form (y = mx + b).
+		// Note that the axes are rotated 90° CCW, which causes the
+		// x- and y-axes to be swapped.
+		var m = (view.x2 - view.x1) / (view.y2 - view.y1);
+		var b = view.x1 || 0;
+
+		this.m = m;
+		this.b = b;
+
+		this.getX = function(y) {
+			// Coordinates are relative to the origin of the canvas
+			return m * (y - view.y1) + b;
+		};
+
+		this.getY = function(x) {
+			return ((x - b) / m) + view.y1;
+		};
+
+		this.intersects = function(x, y, epsilon) {
+			epsilon = epsilon || 0.001;
+			var dy = this.getY(x),
+				dx = this.getX(y);
+			return (
+				(!isFinite(dy) || Math.abs(y - dy) < epsilon) &&
+				(!isFinite(dx) || Math.abs(x - dx) < epsilon)
+			);
+		};
+	}
+
+	function calculateLabelPosition(view, width, height, padWidth, padHeight) {
+		var line = view.line;
+		var ret = {}, xa = 0, ya = 0;
+
+		switch (true) {
+			// top align
+			case view.mode == verticalKeyword && view.labelPosition == "top":
+				ya = padHeight + view.labelYAdjust;
+				xa = (width / 2) + view.labelXAdjust;
+				ret.y = view.y1 + ya;
+				ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
+			break;
+
+			// bottom align
+			case view.mode == verticalKeyword && view.labelPosition == "bottom":
+				ya = height + padHeight + view.labelYAdjust;
+				xa = (width / 2) + view.labelXAdjust;
+				ret.y = view.y2 - ya;
+				ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
+			break;
+
+			// left align
+			case view.mode == horizontalKeyword && view.labelPosition == "left":
+				xa = padWidth + view.labelXAdjust;
+				ya = -(height / 2) + view.labelYAdjust;
+				ret.x = view.x1 + xa;
+				ret.y = line.getY(ret.x) + ya;
+			break;
+
+			// right align
+			case view.mode == horizontalKeyword && view.labelPosition == "right":
+				xa = width + padWidth + view.labelXAdjust;
+				ya = -(height / 2) + view.labelYAdjust;
+				ret.x = view.x2 - xa;
+				ret.y = line.getY(ret.x) + ya;
+			break;
+
+			// center align
+			default:
+				ret.x = ((view.x1 + view.x2 - width) / 2) + view.labelXAdjust;
+				ret.y = ((view.y1 + view.y2 - height) / 2) + view.labelYAdjust;
+		}
+
+		return ret;
+	}
+
+	return LineAnnotation;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/cytoscape-dagre/cytoscape-dagre.js":
+/*!*********************************************************!*\
+  !*** ./node_modules/cytoscape-dagre/cytoscape-dagre.js ***!
+  \*********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function rgbaString(rgba, alpha) {
-                    if (alpha === undefined) {
-                        alpha = (rgba[3] !== undefined ? rgba[3] : 1);
-                    }
-                    return "rgba(" + rgba[0] + ", " + rgba[1] + ", " + rgba[2]
-                        + ", " + alpha + ")";
-                }
+!function(e,n){ true?module.exports=n(__webpack_require__(/*! dagre */ "./node_modules/dagre/index.js")):undefined}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){var r=t(1),o=function(e){e&&e("layout","dagre",r)};"undefined"!=typeof cytoscape&&o(cytoscape),e.exports=o},function(e,n,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(2),i=t(3),a=t(4);function u(e){this.options=i({},o,e)}u.prototype.run=function(){var e=this.options,n=e.cy,t=e.eles,o=function(e,n){return"function"==typeof n?n.apply(e,[e]):n},i=e.boundingBox||{x1:0,y1:0,w:n.width(),h:n.height()};void 0===i.x2&&(i.x2=i.x1+i.w),void 0===i.w&&(i.w=i.x2-i.x1),void 0===i.y2&&(i.y2=i.y1+i.h),void 0===i.h&&(i.h=i.y2-i.y1);var u=new a.graphlib.Graph({multigraph:!0,compound:!0}),c={},f=function(e,n){null!=n&&(c[e]=n)};f("nodesep",e.nodeSep),f("edgesep",e.edgeSep),f("ranksep",e.rankSep),f("rankdir",e.rankDir),f("ranker",e.ranker),u.setGraph(c),u.setDefaultEdgeLabel((function(){return{}})),u.setDefaultNodeLabel((function(){return{}}));for(var d=t.nodes(),s=0;s<d.length;s++){var y=d[s],p=y.layoutDimensions(e);u.setNode(y.id(),{width:p.w,height:p.h,name:y.id()})}for(var l=0;l<d.length;l++){var g=d[l];g.isChild()&&u.setParent(g.id(),g.parent().id())}for(var h=t.edges().stdFilter((function(e){return!e.source().isParent()&&!e.target().isParent()})),x=0;x<h.length;x++){var b=h[x];u.setEdge(b.source().id(),b.target().id(),{minlen:o(b,e.minLen),weight:o(b,e.edgeWeight),name:b.id()},b.id())}a.layout(u);for(var v,m=u.nodes(),w=0;w<m.length;w++){var S=m[w],j=u.node(S);n.getElementById(S).scratch().dagre=j}e.boundingBox?(v={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0},d.forEach((function(e){var n=e.scratch().dagre;v.x1=Math.min(v.x1,n.x),v.x2=Math.max(v.x2,n.x),v.y1=Math.min(v.y1,n.y),v.y2=Math.max(v.y2,n.y)})),v.w=v.x2-v.x1,v.h=v.y2-v.y1):v=i;return d.layoutPositions(this,e,(function(n){var t=(n="object"===r(n)?n:this).scratch().dagre;return function(n){if(e.boundingBox){var t=0===v.w?0:(n.x-v.x1)/v.w,r=0===v.h?0:(n.y-v.y1)/v.h;return{x:i.x1+t*i.w,y:i.y1+r*i.h}}return n}({x:t.x,y:t.y})})),this},e.exports=u},function(e,n){var t={nodeSep:void 0,edgeSep:void 0,rankSep:void 0,rankDir:void 0,ranker:void 0,minLen:function(e){return 1},edgeWeight:function(e){return 1},fit:!0,padding:30,spacingFactor:void 0,nodeDimensionsIncludeLabels:!1,animate:!1,animateFilter:function(e,n){return!0},animationDuration:500,animationEasing:void 0,boundingBox:void 0,transform:function(e,n){return n},ready:function(){},stop:function(){}};e.exports=t},function(e,n){e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return t.forEach((function(n){Object.keys(n).forEach((function(t){return e[t]=n[t]}))})),e}},function(n,t){n.exports=e}])}));
 
-                function percentString(rgba, alpha) {
-                    if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {
-                        return percentaString(rgba, alpha);
-                    }
-                    var r = Math.round(rgba[0]/255 * 100),
-                        g = Math.round(rgba[1]/255 * 100),
-                        b = Math.round(rgba[2]/255 * 100);
+/***/ }),
 
-                    return "rgb(" + r + "%, " + g + "%, " + b + "%)";
-                }
+/***/ "./node_modules/cytoscape/dist/cytoscape.cjs.js":
+/*!******************************************************!*\
+  !*** ./node_modules/cytoscape/dist/cytoscape.cjs.js ***!
+  \******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function percentaString(rgba, alpha) {
-                    var r = Math.round(rgba[0]/255 * 100),
-                        g = Math.round(rgba[1]/255 * 100),
-                        b = Math.round(rgba[2]/255 * 100);
-                    return "rgba(" + r + "%, " + g + "%, " + b + "%, " + (alpha || rgba[3] || 1) + ")";
-                }
+"use strict";
+/* WEBPACK VAR INJECTION */(function(setImmediate) {/**
+ * Copyright (c) 2016-2020, The Cytoscape Consortium.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the “Software”), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to do
+ * so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
 
-                function hslString(hsla, alpha) {
-                    if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {
-                        return hslaString(hsla, alpha);
-                    }
-                    return "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)";
-                }
 
-                function hslaString(hsla, alpha) {
-                    if (alpha === undefined) {
-                        alpha = (hsla[3] !== undefined ? hsla[3] : 1);
-                    }
-                    return "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, "
-                        + alpha + ")";
-                }
 
-// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
-// (hwb have alpha optional & 1 is default value)
-                function hwbString(hwb, alpha) {
-                    if (alpha === undefined) {
-                        alpha = (hwb[3] !== undefined ? hwb[3] : 1);
-                    }
-                    return "hwb(" + hwb[0] + ", " + hwb[1] + "%, " + hwb[2] + "%"
-                        + (alpha !== undefined && alpha !== 1 ? ", " + alpha : "") + ")";
-                }
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
 
-                function keyword(rgb) {
-                    return reverseNames[rgb.slice(0, 3)];
-                }
+var util = _interopDefault(__webpack_require__(/*! lodash.debounce */ "./node_modules/lodash.debounce/index.js"));
+var Heap = _interopDefault(__webpack_require__(/*! heap */ "./node_modules/heap/index.js"));
 
-// helpers
-                function scale(num, min, max) {
-                    return Math.min(Math.max(min, num), max);
-                }
+function _typeof(obj) {
+  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
+    _typeof = function (obj) {
+      return typeof obj;
+    };
+  } else {
+    _typeof = function (obj) {
+      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
+    };
+  }
 
-                function hexDouble(num) {
-                    var str = num.toString(16).toUpperCase();
-                    return (str.length < 2) ? "0" + str : str;
-                }
+  return _typeof(obj);
+}
 
+function _classCallCheck(instance, Constructor) {
+  if (!(instance instanceof Constructor)) {
+    throw new TypeError("Cannot call a class as a function");
+  }
+}
+
+function _defineProperties(target, props) {
+  for (var i = 0; i < props.length; i++) {
+    var descriptor = props[i];
+    descriptor.enumerable = descriptor.enumerable || false;
+    descriptor.configurable = true;
+    if ("value" in descriptor) descriptor.writable = true;
+    Object.defineProperty(target, descriptor.key, descriptor);
+  }
+}
+
+function _createClass(Constructor, protoProps, staticProps) {
+  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+  if (staticProps) _defineProperties(Constructor, staticProps);
+  return Constructor;
+}
+
+function _defineProperty(obj, key, value) {
+  if (key in obj) {
+    Object.defineProperty(obj, key, {
+      value: value,
+      enumerable: true,
+      configurable: true,
+      writable: true
+    });
+  } else {
+    obj[key] = value;
+  }
 
-//create a list of reverse color names
-                var reverseNames = {};
-                for (var name in colorName$1) {
-                    reverseNames[colorName$1[name]] = name;
-                }
+  return obj;
+}
 
-                /* MIT license */
+function _slicedToArray(arr, i) {
+  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
+}
 
+function _arrayWithHoles(arr) {
+  if (Array.isArray(arr)) return arr;
+}
 
+function _iterableToArrayLimit(arr, i) {
+  var _arr = [];
+  var _n = true;
+  var _d = false;
+  var _e = undefined;
 
-                var Color = function (obj) {
-                    if (obj instanceof Color) {
-                        return obj;
-                    }
-                    if (!(this instanceof Color)) {
-                        return new Color(obj);
-                    }
+  try {
+    for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
+      _arr.push(_s.value);
 
-                    this.valid = false;
-                    this.values = {
-                        rgb: [0, 0, 0],
-                        hsl: [0, 0, 0],
-                        hsv: [0, 0, 0],
-                        hwb: [0, 0, 0],
-                        cmyk: [0, 0, 0, 0],
-                        alpha: 1
-                    };
-
-                    // parse Color() argument
-                    var vals;
-                    if (typeof obj === 'string') {
-                        vals = colorString.getRgba(obj);
-                        if (vals) {
-                            this.setValues('rgb', vals);
-                        } else if (vals = colorString.getHsla(obj)) {
-                            this.setValues('hsl', vals);
-                        } else if (vals = colorString.getHwb(obj)) {
-                            this.setValues('hwb', vals);
-                        }
-                    } else if (typeof obj === 'object') {
-                        vals = obj;
-                        if (vals.r !== undefined || vals.red !== undefined) {
-                            this.setValues('rgb', vals);
-                        } else if (vals.l !== undefined || vals.lightness !== undefined) {
-                            this.setValues('hsl', vals);
-                        } else if (vals.v !== undefined || vals.value !== undefined) {
-                            this.setValues('hsv', vals);
-                        } else if (vals.w !== undefined || vals.whiteness !== undefined) {
-                            this.setValues('hwb', vals);
-                        } else if (vals.c !== undefined || vals.cyan !== undefined) {
-                            this.setValues('cmyk', vals);
-                        }
-                    }
-                };
+      if (i && _arr.length === i) break;
+    }
+  } catch (err) {
+    _d = true;
+    _e = err;
+  } finally {
+    try {
+      if (!_n && _i["return"] != null) _i["return"]();
+    } finally {
+      if (_d) throw _e;
+    }
+  }
 
-                Color.prototype = {
-                    isValid: function () {
-                        return this.valid;
-                    },
-                    rgb: function () {
-                        return this.setSpace('rgb', arguments);
-                    },
-                    hsl: function () {
-                        return this.setSpace('hsl', arguments);
-                    },
-                    hsv: function () {
-                        return this.setSpace('hsv', arguments);
-                    },
-                    hwb: function () {
-                        return this.setSpace('hwb', arguments);
-                    },
-                    cmyk: function () {
-                        return this.setSpace('cmyk', arguments);
-                    },
-
-                    rgbArray: function () {
-                        return this.values.rgb;
-                    },
-                    hslArray: function () {
-                        return this.values.hsl;
-                    },
-                    hsvArray: function () {
-                        return this.values.hsv;
-                    },
-                    hwbArray: function () {
-                        var values = this.values;
-                        if (values.alpha !== 1) {
-                            return values.hwb.concat([values.alpha]);
-                        }
-                        return values.hwb;
-                    },
-                    cmykArray: function () {
-                        return this.values.cmyk;
-                    },
-                    rgbaArray: function () {
-                        var values = this.values;
-                        return values.rgb.concat([values.alpha]);
-                    },
-                    hslaArray: function () {
-                        var values = this.values;
-                        return values.hsl.concat([values.alpha]);
-                    },
-                    alpha: function (val) {
-                        if (val === undefined) {
-                            return this.values.alpha;
-                        }
-                        this.setValues('alpha', val);
-                        return this;
-                    },
-
-                    red: function (val) {
-                        return this.setChannel('rgb', 0, val);
-                    },
-                    green: function (val) {
-                        return this.setChannel('rgb', 1, val);
-                    },
-                    blue: function (val) {
-                        return this.setChannel('rgb', 2, val);
-                    },
-                    hue: function (val) {
-                        if (val) {
-                            val %= 360;
-                            val = val < 0 ? 360 + val : val;
-                        }
-                        return this.setChannel('hsl', 0, val);
-                    },
-                    saturation: function (val) {
-                        return this.setChannel('hsl', 1, val);
-                    },
-                    lightness: function (val) {
-                        return this.setChannel('hsl', 2, val);
-                    },
-                    saturationv: function (val) {
-                        return this.setChannel('hsv', 1, val);
-                    },
-                    whiteness: function (val) {
-                        return this.setChannel('hwb', 1, val);
-                    },
-                    blackness: function (val) {
-                        return this.setChannel('hwb', 2, val);
-                    },
-                    value: function (val) {
-                        return this.setChannel('hsv', 2, val);
-                    },
-                    cyan: function (val) {
-                        return this.setChannel('cmyk', 0, val);
-                    },
-                    magenta: function (val) {
-                        return this.setChannel('cmyk', 1, val);
-                    },
-                    yellow: function (val) {
-                        return this.setChannel('cmyk', 2, val);
-                    },
-                    black: function (val) {
-                        return this.setChannel('cmyk', 3, val);
-                    },
-
-                    hexString: function () {
-                        return colorString.hexString(this.values.rgb);
-                    },
-                    rgbString: function () {
-                        return colorString.rgbString(this.values.rgb, this.values.alpha);
-                    },
-                    rgbaString: function () {
-                        return colorString.rgbaString(this.values.rgb, this.values.alpha);
-                    },
-                    percentString: function () {
-                        return colorString.percentString(this.values.rgb, this.values.alpha);
-                    },
-                    hslString: function () {
-                        return colorString.hslString(this.values.hsl, this.values.alpha);
-                    },
-                    hslaString: function () {
-                        return colorString.hslaString(this.values.hsl, this.values.alpha);
-                    },
-                    hwbString: function () {
-                        return colorString.hwbString(this.values.hwb, this.values.alpha);
-                    },
-                    keyword: function () {
-                        return colorString.keyword(this.values.rgb, this.values.alpha);
-                    },
-
-                    rgbNumber: function () {
-                        var rgb = this.values.rgb;
-                        return (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];
-                    },
-
-                    luminosity: function () {
-                        // http://www.w3.org/TR/WCAG20/#relativeluminancedef
-                        var rgb = this.values.rgb;
-                        var lum = [];
-                        for (var i = 0; i < rgb.length; i++) {
-                            var chan = rgb[i] / 255;
-                            lum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);
-                        }
-                        return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
-                    },
-
-                    contrast: function (color2) {
-                        // http://www.w3.org/TR/WCAG20/#contrast-ratiodef
-                        var lum1 = this.luminosity();
-                        var lum2 = color2.luminosity();
-                        if (lum1 > lum2) {
-                            return (lum1 + 0.05) / (lum2 + 0.05);
-                        }
-                        return (lum2 + 0.05) / (lum1 + 0.05);
-                    },
+  return _arr;
+}
+
+function _nonIterableRest() {
+  throw new TypeError("Invalid attempt to destructure non-iterable instance");
+}
+
+var window$1 = typeof window === 'undefined' ? null : window; // eslint-disable-line no-undef
+
+var navigator = window$1 ? window$1.navigator : null;
+var document$1 = window$1 ? window$1.document : null;
+
+var typeofstr = _typeof('');
+
+var typeofobj = _typeof({});
+
+var typeoffn = _typeof(function () {});
+
+var typeofhtmlele = typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement);
+
+var instanceStr = function instanceStr(obj) {
+  return obj && obj.instanceString && fn(obj.instanceString) ? obj.instanceString() : null;
+};
+
+var string = function string(obj) {
+  return obj != null && _typeof(obj) == typeofstr;
+};
+var fn = function fn(obj) {
+  return obj != null && _typeof(obj) === typeoffn;
+};
+var array = function array(obj) {
+  return !elementOrCollection(obj) && (Array.isArray ? Array.isArray(obj) : obj != null && obj instanceof Array);
+};
+var plainObject = function plainObject(obj) {
+  return obj != null && _typeof(obj) === typeofobj && !array(obj) && obj.constructor === Object;
+};
+var object = function object(obj) {
+  return obj != null && _typeof(obj) === typeofobj;
+};
+var number = function number(obj) {
+  return obj != null && _typeof(obj) === _typeof(1) && !isNaN(obj);
+};
+var integer = function integer(obj) {
+  return number(obj) && Math.floor(obj) === obj;
+};
+var htmlElement = function htmlElement(obj) {
+  if ('undefined' === typeofhtmlele) {
+    return undefined;
+  } else {
+    return null != obj && obj instanceof HTMLElement;
+  }
+};
+var elementOrCollection = function elementOrCollection(obj) {
+  return element(obj) || collection(obj);
+};
+var element = function element(obj) {
+  return instanceStr(obj) === 'collection' && obj._private.single;
+};
+var collection = function collection(obj) {
+  return instanceStr(obj) === 'collection' && !obj._private.single;
+};
+var core = function core(obj) {
+  return instanceStr(obj) === 'core';
+};
+var stylesheet = function stylesheet(obj) {
+  return instanceStr(obj) === 'stylesheet';
+};
+var event = function event(obj) {
+  return instanceStr(obj) === 'event';
+};
+var emptyString = function emptyString(obj) {
+  if (obj === undefined || obj === null) {
+    // null is empty
+    return true;
+  } else if (obj === '' || obj.match(/^\s+$/)) {
+    return true; // empty string is empty
+  }
 
-                    level: function (color2) {
-                        var contrastRatio = this.contrast(color2);
-                        if (contrastRatio >= 7.1) {
-                            return 'AAA';
-                        }
+  return false; // otherwise, we don't know what we've got
+};
+var domElement = function domElement(obj) {
+  if (typeof HTMLElement === 'undefined') {
+    return false; // we're not in a browser so it doesn't matter
+  } else {
+    return obj instanceof HTMLElement;
+  }
+};
+var boundingBox = function boundingBox(obj) {
+  return plainObject(obj) && number(obj.x1) && number(obj.x2) && number(obj.y1) && number(obj.y2);
+};
+var promise = function promise(obj) {
+  return object(obj) && fn(obj.then);
+};
+var ms = function ms() {
+  return navigator && navigator.userAgent.match(/msie|trident|edge/i);
+}; // probably a better way to detect this...
+
+var memoize = function memoize(fn, keyFn) {
+  if (!keyFn) {
+    keyFn = function keyFn() {
+      if (arguments.length === 1) {
+        return arguments[0];
+      } else if (arguments.length === 0) {
+        return 'undefined';
+      }
+
+      var args = [];
+
+      for (var i = 0; i < arguments.length; i++) {
+        args.push(arguments[i]);
+      }
+
+      return args.join('$');
+    };
+  }
 
-                        return (contrastRatio >= 4.5) ? 'AA' : '';
-                    },
+  var memoizedFn = function memoizedFn() {
+    var self = this;
+    var args = arguments;
+    var ret;
+    var k = keyFn.apply(self, args);
+    var cache = memoizedFn.cache;
 
-                    dark: function () {
-                        // YIQ equation from http://24ways.org/2010/calculating-color-contrast
-                        var rgb = this.values.rgb;
-                        var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;
-                        return yiq < 128;
-                    },
+    if (!(ret = cache[k])) {
+      ret = cache[k] = fn.apply(self, args);
+    }
 
-                    light: function () {
-                        return !this.dark();
-                    },
+    return ret;
+  };
+
+  memoizedFn.cache = {};
+  return memoizedFn;
+};
+
+var camel2dash = memoize(function (str) {
+  return str.replace(/([A-Z])/g, function (v) {
+    return '-' + v.toLowerCase();
+  });
+});
+var dash2camel = memoize(function (str) {
+  return str.replace(/(-\w)/g, function (v) {
+    return v[1].toUpperCase();
+  });
+});
+var prependCamel = memoize(function (prefix, str) {
+  return prefix + str[0].toUpperCase() + str.substring(1);
+}, function (prefix, str) {
+  return prefix + '$' + str;
+});
+var capitalize = function capitalize(str) {
+  if (emptyString(str)) {
+    return str;
+  }
 
-                    negate: function () {
-                        var rgb = [];
-                        for (var i = 0; i < 3; i++) {
-                            rgb[i] = 255 - this.values.rgb[i];
-                        }
-                        this.setValues('rgb', rgb);
-                        return this;
-                    },
-
-                    lighten: function (ratio) {
-                        var hsl = this.values.hsl;
-                        hsl[2] += hsl[2] * ratio;
-                        this.setValues('hsl', hsl);
-                        return this;
-                    },
-
-                    darken: function (ratio) {
-                        var hsl = this.values.hsl;
-                        hsl[2] -= hsl[2] * ratio;
-                        this.setValues('hsl', hsl);
-                        return this;
-                    },
-
-                    saturate: function (ratio) {
-                        var hsl = this.values.hsl;
-                        hsl[1] += hsl[1] * ratio;
-                        this.setValues('hsl', hsl);
-                        return this;
-                    },
-
-                    desaturate: function (ratio) {
-                        var hsl = this.values.hsl;
-                        hsl[1] -= hsl[1] * ratio;
-                        this.setValues('hsl', hsl);
-                        return this;
-                    },
-
-                    whiten: function (ratio) {
-                        var hwb = this.values.hwb;
-                        hwb[1] += hwb[1] * ratio;
-                        this.setValues('hwb', hwb);
-                        return this;
-                    },
-
-                    blacken: function (ratio) {
-                        var hwb = this.values.hwb;
-                        hwb[2] += hwb[2] * ratio;
-                        this.setValues('hwb', hwb);
-                        return this;
-                    },
-
-                    greyscale: function () {
-                        var rgb = this.values.rgb;
-                        // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
-                        var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
-                        this.setValues('rgb', [val, val, val]);
-                        return this;
-                    },
-
-                    clearer: function (ratio) {
-                        var alpha = this.values.alpha;
-                        this.setValues('alpha', alpha - (alpha * ratio));
-                        return this;
-                    },
-
-                    opaquer: function (ratio) {
-                        var alpha = this.values.alpha;
-                        this.setValues('alpha', alpha + (alpha * ratio));
-                        return this;
-                    },
-
-                    rotate: function (degrees) {
-                        var hsl = this.values.hsl;
-                        var hue = (hsl[0] + degrees) % 360;
-                        hsl[0] = hue < 0 ? 360 + hue : hue;
-                        this.setValues('hsl', hsl);
-                        return this;
-                    },
-
-                    /**
-                     * Ported from sass implementation in C
-                     * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
-                     */
-                    mix: function (mixinColor, weight) {
-                        var color1 = this;
-                        var color2 = mixinColor;
-                        var p = weight === undefined ? 0.5 : weight;
-
-                        var w = 2 * p - 1;
-                        var a = color1.alpha() - color2.alpha();
-
-                        var w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
-                        var w2 = 1 - w1;
-
-                        return this
-                            .rgb(
-                                w1 * color1.red() + w2 * color2.red(),
-                                w1 * color1.green() + w2 * color2.green(),
-                                w1 * color1.blue() + w2 * color2.blue()
-                            )
-                            .alpha(color1.alpha() * p + color2.alpha() * (1 - p));
-                    },
-
-                    toJSON: function () {
-                        return this.rgb();
-                    },
-
-                    clone: function () {
-                        // NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,
-                        // making the final build way to big to embed in Chart.js. So let's do it manually,
-                        // assuming that values to clone are 1 dimension arrays containing only numbers,
-                        // except 'alpha' which is a number.
-                        var result = new Color();
-                        var source = this.values;
-                        var target = result.values;
-                        var value, type;
-
-                        for (var prop in source) {
-                            if (source.hasOwnProperty(prop)) {
-                                value = source[prop];
-                                type = ({}).toString.call(value);
-                                if (type === '[object Array]') {
-                                    target[prop] = value.slice(0);
-                                } else if (type === '[object Number]') {
-                                    target[prop] = value;
-                                } else {
-                                    console.error('unexpected color value:', value);
-                                }
-                            }
-                        }
+  return str.charAt(0).toUpperCase() + str.substring(1);
+};
+
+var number$1 = '(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))';
+var rgba = 'rgb[a]?\\((' + number$1 + '[%]?)\\s*,\\s*(' + number$1 + '[%]?)\\s*,\\s*(' + number$1 + '[%]?)(?:\\s*,\\s*(' + number$1 + '))?\\)';
+var rgbaNoBackRefs = 'rgb[a]?\\((?:' + number$1 + '[%]?)\\s*,\\s*(?:' + number$1 + '[%]?)\\s*,\\s*(?:' + number$1 + '[%]?)(?:\\s*,\\s*(?:' + number$1 + '))?\\)';
+var hsla = 'hsl[a]?\\((' + number$1 + ')\\s*,\\s*(' + number$1 + '[%])\\s*,\\s*(' + number$1 + '[%])(?:\\s*,\\s*(' + number$1 + '))?\\)';
+var hslaNoBackRefs = 'hsl[a]?\\((?:' + number$1 + ')\\s*,\\s*(?:' + number$1 + '[%])\\s*,\\s*(?:' + number$1 + '[%])(?:\\s*,\\s*(?:' + number$1 + '))?\\)';
+var hex3 = '\\#[0-9a-fA-F]{3}';
+var hex6 = '\\#[0-9a-fA-F]{6}';
+
+var ascending = function ascending(a, b) {
+  if (a < b) {
+    return -1;
+  } else if (a > b) {
+    return 1;
+  } else {
+    return 0;
+  }
+};
+var descending = function descending(a, b) {
+  return -1 * ascending(a, b);
+};
 
-                        return result;
-                    }
-                };
+var extend = Object.assign != null ? Object.assign.bind(Object) : function (tgt) {
+  var args = arguments;
 
-                Color.prototype.spaces = {
-                    rgb: ['red', 'green', 'blue'],
-                    hsl: ['hue', 'saturation', 'lightness'],
-                    hsv: ['hue', 'saturation', 'value'],
-                    hwb: ['hue', 'whiteness', 'blackness'],
-                    cmyk: ['cyan', 'magenta', 'yellow', 'black']
-                };
+  for (var i = 1; i < args.length; i++) {
+    var obj = args[i];
 
-                Color.prototype.maxes = {
-                    rgb: [255, 255, 255],
-                    hsl: [360, 100, 100],
-                    hsv: [360, 100, 100],
-                    hwb: [360, 100, 100],
-                    cmyk: [100, 100, 100, 100]
-                };
+    if (obj == null) {
+      continue;
+    }
 
-                Color.prototype.getValues = function (space) {
-                    var values = this.values;
-                    var vals = {};
+    var keys = Object.keys(obj);
 
-                    for (var i = 0; i < space.length; i++) {
-                        vals[space.charAt(i)] = values[space][i];
-                    }
+    for (var j = 0; j < keys.length; j++) {
+      var k = keys[j];
+      tgt[k] = obj[k];
+    }
+  }
 
-                    if (values.alpha !== 1) {
-                        vals.a = values.alpha;
-                    }
+  return tgt;
+};
 
-                    // {r: 255, g: 255, b: 255, a: 0.4}
-                    return vals;
-                };
+var hex2tuple = function hex2tuple(hex) {
+  if (!(hex.length === 4 || hex.length === 7) || hex[0] !== '#') {
+    return;
+  }
 
-                Color.prototype.setValues = function (space, vals) {
-                    var values = this.values;
-                    var spaces = this.spaces;
-                    var maxes = this.maxes;
-                    var alpha = 1;
-                    var i;
-
-                    this.valid = true;
-
-                    if (space === 'alpha') {
-                        alpha = vals;
-                    } else if (vals.length) {
-                        // [10, 10, 10]
-                        values[space] = vals.slice(0, space.length);
-                        alpha = vals[space.length];
-                    } else if (vals[space.charAt(0)] !== undefined) {
-                        // {r: 10, g: 10, b: 10}
-                        for (i = 0; i < space.length; i++) {
-                            values[space][i] = vals[space.charAt(i)];
-                        }
+  var shortHex = hex.length === 4;
+  var r, g, b;
+  var base = 16;
+
+  if (shortHex) {
+    r = parseInt(hex[1] + hex[1], base);
+    g = parseInt(hex[2] + hex[2], base);
+    b = parseInt(hex[3] + hex[3], base);
+  } else {
+    r = parseInt(hex[1] + hex[2], base);
+    g = parseInt(hex[3] + hex[4], base);
+    b = parseInt(hex[5] + hex[6], base);
+  }
 
-                        alpha = vals.a;
-                    } else if (vals[spaces[space][0]] !== undefined) {
-                        // {red: 10, green: 10, blue: 10}
-                        var chans = spaces[space];
+  return [r, g, b];
+}; // get [r, g, b, a] from hsl(0, 0, 0) or hsla(0, 0, 0, 0)
 
-                        for (i = 0; i < space.length; i++) {
-                            values[space][i] = vals[chans[i]];
-                        }
+var hsl2tuple = function hsl2tuple(hsl) {
+  var ret;
+  var h, s, l, a, r, g, b;
 
-                        alpha = vals.alpha;
-                    }
+  function hue2rgb(p, q, t) {
+    if (t < 0) t += 1;
+    if (t > 1) t -= 1;
+    if (t < 1 / 6) return p + (q - p) * 6 * t;
+    if (t < 1 / 2) return q;
+    if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
+    return p;
+  }
 
-                    values.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));
+  var m = new RegExp('^' + hsla + '$').exec(hsl);
 
-                    if (space === 'alpha') {
-                        return false;
-                    }
+  if (m) {
+    // get hue
+    h = parseInt(m[1]);
 
-                    var capped;
+    if (h < 0) {
+      h = (360 - -1 * h % 360) % 360;
+    } else if (h > 360) {
+      h = h % 360;
+    }
 
-                    // cap values of the space prior converting all values
-                    for (i = 0; i < space.length; i++) {
-                        capped = Math.max(0, Math.min(maxes[space][i], values[space][i]));
-                        values[space][i] = Math.round(capped);
-                    }
+    h /= 360; // normalise on [0, 1]
 
-                    // convert to all the other color spaces
-                    for (var sname in spaces) {
-                        if (sname !== space) {
-                            values[sname] = colorConvert[space][sname](values[space]);
-                        }
-                    }
+    s = parseFloat(m[2]);
 
-                    return true;
-                };
+    if (s < 0 || s > 100) {
+      return;
+    } // saturation is [0, 100]
 
-                Color.prototype.setSpace = function (space, args) {
-                    var vals = args[0];
 
-                    if (vals === undefined) {
-                        // color.rgb()
-                        return this.getValues(space);
-                    }
+    s = s / 100; // normalise on [0, 1]
 
-                    // color.rgb(10, 10, 10)
-                    if (typeof vals === 'number') {
-                        vals = Array.prototype.slice.call(args);
-                    }
+    l = parseFloat(m[3]);
 
-                    this.setValues(space, vals);
-                    return this;
-                };
+    if (l < 0 || l > 100) {
+      return;
+    } // lightness is [0, 100]
 
-                Color.prototype.setChannel = function (space, index, val) {
-                    var svalues = this.values[space];
-                    if (val === undefined) {
-                        // color.red()
-                        return svalues[index];
-                    } else if (val === svalues[index]) {
-                        // color.red(color.red())
-                        return this;
-                    }
 
-                    // color.red(100)
-                    svalues[index] = val;
-                    this.setValues(space, svalues);
+    l = l / 100; // normalise on [0, 1]
 
-                    return this;
-                };
+    a = m[4];
 
-                if (typeof window !== 'undefined') {
-                    window.Color = Color;
-                }
+    if (a !== undefined) {
+      a = parseFloat(a);
 
-                var chartjsColor = Color;
-
-                /**
-                 * @namespace Chart.helpers
-                 */
-                var helpers = {
-                    /**
-                     * An empty function that can be used, for example, for optional callback.
-                     */
-                    noop: function() {},
-
-                    /**
-                     * Returns a unique id, sequentially generated from a global variable.
-                     * @returns {number}
-                     * @function
-                     */
-                    uid: (function() {
-                        var id = 0;
-                        return function() {
-                            return id++;
-                        };
-                    }()),
-
-                    /**
-                     * Returns true if `value` is neither null nor undefined, else returns false.
-                     * @param {*} value - The value to test.
-                     * @returns {boolean}
-                     * @since 2.7.0
-                     */
-                    isNullOrUndef: function(value) {
-                        return value === null || typeof value === 'undefined';
-                    },
-
-                    /**
-                     * Returns true if `value` is an array (including typed arrays), else returns false.
-                     * @param {*} value - The value to test.
-                     * @returns {boolean}
-                     * @function
-                     */
-                    isArray: function(value) {
-                        if (Array.isArray && Array.isArray(value)) {
-                            return true;
-                        }
-                        var type = Object.prototype.toString.call(value);
-                        if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {
-                            return true;
-                        }
-                        return false;
-                    },
-
-                    /**
-                     * Returns true if `value` is an object (excluding null), else returns false.
-                     * @param {*} value - The value to test.
-                     * @returns {boolean}
-                     * @since 2.7.0
-                     */
-                    isObject: function(value) {
-                        return value !== null && Object.prototype.toString.call(value) === '[object Object]';
-                    },
-
-                    /**
-                     * Returns true if `value` is a finite number, else returns false
-                     * @param {*} value  - The value to test.
-                     * @returns {boolean}
-                     */
-                    isFinite: function(value) {
-                        return (typeof value === 'number' || value instanceof Number) && isFinite(value);
-                    },
-
-                    /**
-                     * Returns `value` if defined, else returns `defaultValue`.
-                     * @param {*} value - The value to return if defined.
-                     * @param {*} defaultValue - The value to return if `value` is undefined.
-                     * @returns {*}
-                     */
-                    valueOrDefault: function(value, defaultValue) {
-                        return typeof value === 'undefined' ? defaultValue : value;
-                    },
-
-                    /**
-                     * Returns value at the given `index` in array if defined, else returns `defaultValue`.
-                     * @param {Array} value - The array to lookup for value at `index`.
-                     * @param {number} index - The index in `value` to lookup for value.
-                     * @param {*} defaultValue - The value to return if `value[index]` is undefined.
-                     * @returns {*}
-                     */
-                    valueAtIndexOrDefault: function(value, index, defaultValue) {
-                        return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);
-                    },
-
-                    /**
-                     * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the
-                     * value returned by `fn`. If `fn` is not a function, this method returns undefined.
-                     * @param {function} fn - The function to call.
-                     * @param {Array|undefined|null} args - The arguments with which `fn` should be called.
-                     * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.
-                     * @returns {*}
-                     */
-                    callback: function(fn, args, thisArg) {
-                        if (fn && typeof fn.call === 'function') {
-                            return fn.apply(thisArg, args);
-                        }
-                    },
-
-                    /**
-                     * Note(SB) for performance sake, this method should only be used when loopable type
-                     * is unknown or in none intensive code (not called often and small loopable). Else
-                     * it's preferable to use a regular for() loop and save extra function calls.
-                     * @param {object|Array} loopable - The object or array to be iterated.
-                     * @param {function} fn - The function to call for each item.
-                     * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.
-                     * @param {boolean} [reverse] - If true, iterates backward on the loopable.
-                     */
-                    each: function(loopable, fn, thisArg, reverse) {
-                        var i, len, keys;
-                        if (helpers.isArray(loopable)) {
-                            len = loopable.length;
-                            if (reverse) {
-                                for (i = len - 1; i >= 0; i--) {
-                                    fn.call(thisArg, loopable[i], i);
-                                }
-                            } else {
-                                for (i = 0; i < len; i++) {
-                                    fn.call(thisArg, loopable[i], i);
-                                }
-                            }
-                        } else if (helpers.isObject(loopable)) {
-                            keys = Object.keys(loopable);
-                            len = keys.length;
-                            for (i = 0; i < len; i++) {
-                                fn.call(thisArg, loopable[keys[i]], keys[i]);
-                            }
-                        }
-                    },
-
-                    /**
-                     * Returns true if the `a0` and `a1` arrays have the same content, else returns false.
-                     * @see https://stackoverflow.com/a/14853974
-                     * @param {Array} a0 - The array to compare
-                     * @param {Array} a1 - The array to compare
-                     * @returns {boolean}
-                     */
-                    arrayEquals: function(a0, a1) {
-                        var i, ilen, v0, v1;
-
-                        if (!a0 || !a1 || a0.length !== a1.length) {
-                            return false;
-                        }
+      if (a < 0 || a > 1) {
+        return;
+      } // alpha is [0, 1]
 
-                        for (i = 0, ilen = a0.length; i < ilen; ++i) {
-                            v0 = a0[i];
-                            v1 = a1[i];
-
-                            if (v0 instanceof Array && v1 instanceof Array) {
-                                if (!helpers.arrayEquals(v0, v1)) {
-                                    return false;
-                                }
-                            } else if (v0 !== v1) {
-                                // NOTE: two different object instances will never be equal: {x:20} != {x:20}
-                                return false;
-                            }
-                        }
+    } // now, convert to rgb
+    // code from http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
 
-                        return true;
-                    },
-
-                    /**
-                     * Returns a deep copy of `source` without keeping references on objects and arrays.
-                     * @param {*} source - The value to clone.
-                     * @returns {*}
-                     */
-                    clone: function(source) {
-                        if (helpers.isArray(source)) {
-                            return source.map(helpers.clone);
-                        }
 
-                        if (helpers.isObject(source)) {
-                            var target = {};
-                            var keys = Object.keys(source);
-                            var klen = keys.length;
-                            var k = 0;
+    if (s === 0) {
+      r = g = b = Math.round(l * 255); // achromatic
+    } else {
+      var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
+      var p = 2 * l - q;
+      r = Math.round(255 * hue2rgb(p, q, h + 1 / 3));
+      g = Math.round(255 * hue2rgb(p, q, h));
+      b = Math.round(255 * hue2rgb(p, q, h - 1 / 3));
+    }
 
-                            for (; k < klen; ++k) {
-                                target[keys[k]] = helpers.clone(source[keys[k]]);
-                            }
+    ret = [r, g, b, a];
+  }
 
-                            return target;
-                        }
+  return ret;
+}; // get [r, g, b, a] from rgb(0, 0, 0) or rgba(0, 0, 0, 0)
 
-                        return source;
-                    },
-
-                    /**
-                     * The default merger when Chart.helpers.merge is called without merger option.
-                     * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.
-                     * @private
-                     */
-                    _merger: function(key, target, source, options) {
-                        var tval = target[key];
-                        var sval = source[key];
-
-                        if (helpers.isObject(tval) && helpers.isObject(sval)) {
-                            helpers.merge(tval, sval, options);
-                        } else {
-                            target[key] = helpers.clone(sval);
-                        }
-                    },
-
-                    /**
-                     * Merges source[key] in target[key] only if target[key] is undefined.
-                     * @private
-                     */
-                    _mergerIf: function(key, target, source) {
-                        var tval = target[key];
-                        var sval = source[key];
-
-                        if (helpers.isObject(tval) && helpers.isObject(sval)) {
-                            helpers.mergeIf(tval, sval);
-                        } else if (!target.hasOwnProperty(key)) {
-                            target[key] = helpers.clone(sval);
-                        }
-                    },
-
-                    /**
-                     * Recursively deep copies `source` properties into `target` with the given `options`.
-                     * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
-                     * @param {object} target - The target object in which all sources are merged into.
-                     * @param {object|object[]} source - Object(s) to merge into `target`.
-                     * @param {object} [options] - Merging options:
-                     * @param {function} [options.merger] - The merge method (key, target, source, options)
-                     * @returns {object} The `target` object.
-                     */
-                    merge: function(target, source, options) {
-                        var sources = helpers.isArray(source) ? source : [source];
-                        var ilen = sources.length;
-                        var merge, i, keys, klen, k;
-
-                        if (!helpers.isObject(target)) {
-                            return target;
-                        }
+var rgb2tuple = function rgb2tuple(rgb) {
+  var ret;
+  var m = new RegExp('^' + rgba + '$').exec(rgb);
 
-                        options = options || {};
-                        merge = options.merger || helpers._merger;
+  if (m) {
+    ret = [];
+    var isPct = [];
 
-                        for (i = 0; i < ilen; ++i) {
-                            source = sources[i];
-                            if (!helpers.isObject(source)) {
-                                continue;
-                            }
+    for (var i = 1; i <= 3; i++) {
+      var channel = m[i];
 
-                            keys = Object.keys(source);
-                            for (k = 0, klen = keys.length; k < klen; ++k) {
-                                merge(keys[k], target, source, options);
-                            }
-                        }
+      if (channel[channel.length - 1] === '%') {
+        isPct[i] = true;
+      }
 
-                        return target;
-                    },
-
-                    /**
-                     * Recursively deep copies `source` properties into `target` *only* if not defined in target.
-                     * IMPORTANT: `target` is not cloned and will be updated with `source` properties.
-                     * @param {object} target - The target object in which all sources are merged into.
-                     * @param {object|object[]} source - Object(s) to merge into `target`.
-                     * @returns {object} The `target` object.
-                     */
-                    mergeIf: function(target, source) {
-                        return helpers.merge(target, source, {merger: helpers._mergerIf});
-                    },
-
-                    /**
-                     * Applies the contents of two or more objects together into the first object.
-                     * @param {object} target - The target object in which all objects are merged into.
-                     * @param {object} arg1 - Object containing additional properties to merge in target.
-                     * @param {object} argN - Additional objects containing properties to merge in target.
-                     * @returns {object} The `target` object.
-                     */
-                    extend: Object.assign || function(target) {
-                        return helpers.merge(target, [].slice.call(arguments, 1), {
-                            merger: function(key, dst, src) {
-                                dst[key] = src[key];
-                            }
-                        });
-                    },
-
-                    /**
-                     * Basic javascript inheritance based on the model created in Backbone.js
-                     */
-                    inherits: function(extensions) {
-                        var me = this;
-                        var ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {
-                            return me.apply(this, arguments);
-                        };
-
-                        var Surrogate = function() {
-                            this.constructor = ChartElement;
-                        };
-
-                        Surrogate.prototype = me.prototype;
-                        ChartElement.prototype = new Surrogate();
-                        ChartElement.extend = helpers.inherits;
-
-                        if (extensions) {
-                            helpers.extend(ChartElement.prototype, extensions);
-                        }
+      channel = parseFloat(channel);
 
-                        ChartElement.__super__ = me.prototype;
-                        return ChartElement;
-                    },
+      if (isPct[i]) {
+        channel = channel / 100 * 255; // normalise to [0, 255]
+      }
 
-                    _deprecated: function(scope, value, previous, current) {
-                        if (value !== undefined) {
-                            console.warn(scope + ': "' + previous +
-                                '" is deprecated. Please use "' + current + '" instead');
-                        }
-                    }
-                };
+      if (channel < 0 || channel > 255) {
+        return;
+      } // invalid channel value
 
-                var helpers_core = helpers;
 
-// DEPRECATIONS
+      ret.push(Math.floor(channel));
+    }
 
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.callback instead.
-                 * @function Chart.helpers.callCallback
-                 * @deprecated since version 2.6.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers.callCallback = helpers.callback;
-
-                /**
-                 * Provided for backward compatibility, use Array.prototype.indexOf instead.
-                 * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+
-                 * @function Chart.helpers.indexOf
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers.indexOf = function(array, item, fromIndex) {
-                    return Array.prototype.indexOf.call(array, item, fromIndex);
-                };
+    var atLeastOneIsPct = isPct[1] || isPct[2] || isPct[3];
+    var allArePct = isPct[1] && isPct[2] && isPct[3];
 
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.
-                 * @function Chart.helpers.getValueOrDefault
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers.getValueOrDefault = helpers.valueOrDefault;
-
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.
-                 * @function Chart.helpers.getValueAtIndexOrDefault
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;
-
-                /**
-                 * Easing functions adapted from Robert Penner's easing equations.
-                 * @namespace Chart.helpers.easingEffects
-                 * @see http://www.robertpenner.com/easing/
-                 */
-                var effects = {
-                    linear: function(t) {
-                        return t;
-                    },
-
-                    easeInQuad: function(t) {
-                        return t * t;
-                    },
-
-                    easeOutQuad: function(t) {
-                        return -t * (t - 2);
-                    },
-
-                    easeInOutQuad: function(t) {
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * t * t;
-                        }
-                        return -0.5 * ((--t) * (t - 2) - 1);
-                    },
+    if (atLeastOneIsPct && !allArePct) {
+      return;
+    } // must all be percent values if one is
 
-                    easeInCubic: function(t) {
-                        return t * t * t;
-                    },
 
-                    easeOutCubic: function(t) {
-                        return (t = t - 1) * t * t + 1;
-                    },
+    var alpha = m[4];
 
-                    easeInOutCubic: function(t) {
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * t * t * t;
-                        }
-                        return 0.5 * ((t -= 2) * t * t + 2);
-                    },
+    if (alpha !== undefined) {
+      alpha = parseFloat(alpha);
 
-                    easeInQuart: function(t) {
-                        return t * t * t * t;
-                    },
+      if (alpha < 0 || alpha > 1) {
+        return;
+      } // invalid alpha value
 
-                    easeOutQuart: function(t) {
-                        return -((t = t - 1) * t * t * t - 1);
-                    },
 
-                    easeInOutQuart: function(t) {
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * t * t * t * t;
-                        }
-                        return -0.5 * ((t -= 2) * t * t * t - 2);
-                    },
+      ret.push(alpha);
+    }
+  }
 
-                    easeInQuint: function(t) {
-                        return t * t * t * t * t;
-                    },
+  return ret;
+};
+var colorname2tuple = function colorname2tuple(color) {
+  return colors[color.toLowerCase()];
+};
+var color2tuple = function color2tuple(color) {
+  return (array(color) ? color : null) || colorname2tuple(color) || hex2tuple(color) || rgb2tuple(color) || hsl2tuple(color);
+};
+var colors = {
+  // special colour names
+  transparent: [0, 0, 0, 0],
+  // NB alpha === 0
+  // regular colours
+  aliceblue: [240, 248, 255],
+  antiquewhite: [250, 235, 215],
+  aqua: [0, 255, 255],
+  aquamarine: [127, 255, 212],
+  azure: [240, 255, 255],
+  beige: [245, 245, 220],
+  bisque: [255, 228, 196],
+  black: [0, 0, 0],
+  blanchedalmond: [255, 235, 205],
+  blue: [0, 0, 255],
+  blueviolet: [138, 43, 226],
+  brown: [165, 42, 42],
+  burlywood: [222, 184, 135],
+  cadetblue: [95, 158, 160],
+  chartreuse: [127, 255, 0],
+  chocolate: [210, 105, 30],
+  coral: [255, 127, 80],
+  cornflowerblue: [100, 149, 237],
+  cornsilk: [255, 248, 220],
+  crimson: [220, 20, 60],
+  cyan: [0, 255, 255],
+  darkblue: [0, 0, 139],
+  darkcyan: [0, 139, 139],
+  darkgoldenrod: [184, 134, 11],
+  darkgray: [169, 169, 169],
+  darkgreen: [0, 100, 0],
+  darkgrey: [169, 169, 169],
+  darkkhaki: [189, 183, 107],
+  darkmagenta: [139, 0, 139],
+  darkolivegreen: [85, 107, 47],
+  darkorange: [255, 140, 0],
+  darkorchid: [153, 50, 204],
+  darkred: [139, 0, 0],
+  darksalmon: [233, 150, 122],
+  darkseagreen: [143, 188, 143],
+  darkslateblue: [72, 61, 139],
+  darkslategray: [47, 79, 79],
+  darkslategrey: [47, 79, 79],
+  darkturquoise: [0, 206, 209],
+  darkviolet: [148, 0, 211],
+  deeppink: [255, 20, 147],
+  deepskyblue: [0, 191, 255],
+  dimgray: [105, 105, 105],
+  dimgrey: [105, 105, 105],
+  dodgerblue: [30, 144, 255],
+  firebrick: [178, 34, 34],
+  floralwhite: [255, 250, 240],
+  forestgreen: [34, 139, 34],
+  fuchsia: [255, 0, 255],
+  gainsboro: [220, 220, 220],
+  ghostwhite: [248, 248, 255],
+  gold: [255, 215, 0],
+  goldenrod: [218, 165, 32],
+  gray: [128, 128, 128],
+  grey: [128, 128, 128],
+  green: [0, 128, 0],
+  greenyellow: [173, 255, 47],
+  honeydew: [240, 255, 240],
+  hotpink: [255, 105, 180],
+  indianred: [205, 92, 92],
+  indigo: [75, 0, 130],
+  ivory: [255, 255, 240],
+  khaki: [240, 230, 140],
+  lavender: [230, 230, 250],
+  lavenderblush: [255, 240, 245],
+  lawngreen: [124, 252, 0],
+  lemonchiffon: [255, 250, 205],
+  lightblue: [173, 216, 230],
+  lightcoral: [240, 128, 128],
+  lightcyan: [224, 255, 255],
+  lightgoldenrodyellow: [250, 250, 210],
+  lightgray: [211, 211, 211],
+  lightgreen: [144, 238, 144],
+  lightgrey: [211, 211, 211],
+  lightpink: [255, 182, 193],
+  lightsalmon: [255, 160, 122],
+  lightseagreen: [32, 178, 170],
+  lightskyblue: [135, 206, 250],
+  lightslategray: [119, 136, 153],
+  lightslategrey: [119, 136, 153],
+  lightsteelblue: [176, 196, 222],
+  lightyellow: [255, 255, 224],
+  lime: [0, 255, 0],
+  limegreen: [50, 205, 50],
+  linen: [250, 240, 230],
+  magenta: [255, 0, 255],
+  maroon: [128, 0, 0],
+  mediumaquamarine: [102, 205, 170],
+  mediumblue: [0, 0, 205],
+  mediumorchid: [186, 85, 211],
+  mediumpurple: [147, 112, 219],
+  mediumseagreen: [60, 179, 113],
+  mediumslateblue: [123, 104, 238],
+  mediumspringgreen: [0, 250, 154],
+  mediumturquoise: [72, 209, 204],
+  mediumvioletred: [199, 21, 133],
+  midnightblue: [25, 25, 112],
+  mintcream: [245, 255, 250],
+  mistyrose: [255, 228, 225],
+  moccasin: [255, 228, 181],
+  navajowhite: [255, 222, 173],
+  navy: [0, 0, 128],
+  oldlace: [253, 245, 230],
+  olive: [128, 128, 0],
+  olivedrab: [107, 142, 35],
+  orange: [255, 165, 0],
+  orangered: [255, 69, 0],
+  orchid: [218, 112, 214],
+  palegoldenrod: [238, 232, 170],
+  palegreen: [152, 251, 152],
+  paleturquoise: [175, 238, 238],
+  palevioletred: [219, 112, 147],
+  papayawhip: [255, 239, 213],
+  peachpuff: [255, 218, 185],
+  peru: [205, 133, 63],
+  pink: [255, 192, 203],
+  plum: [221, 160, 221],
+  powderblue: [176, 224, 230],
+  purple: [128, 0, 128],
+  red: [255, 0, 0],
+  rosybrown: [188, 143, 143],
+  royalblue: [65, 105, 225],
+  saddlebrown: [139, 69, 19],
+  salmon: [250, 128, 114],
+  sandybrown: [244, 164, 96],
+  seagreen: [46, 139, 87],
+  seashell: [255, 245, 238],
+  sienna: [160, 82, 45],
+  silver: [192, 192, 192],
+  skyblue: [135, 206, 235],
+  slateblue: [106, 90, 205],
+  slategray: [112, 128, 144],
+  slategrey: [112, 128, 144],
+  snow: [255, 250, 250],
+  springgreen: [0, 255, 127],
+  steelblue: [70, 130, 180],
+  tan: [210, 180, 140],
+  teal: [0, 128, 128],
+  thistle: [216, 191, 216],
+  tomato: [255, 99, 71],
+  turquoise: [64, 224, 208],
+  violet: [238, 130, 238],
+  wheat: [245, 222, 179],
+  white: [255, 255, 255],
+  whitesmoke: [245, 245, 245],
+  yellow: [255, 255, 0],
+  yellowgreen: [154, 205, 50]
+};
+
+var setMap = function setMap(options) {
+  var obj = options.map;
+  var keys = options.keys;
+  var l = keys.length;
+
+  for (var i = 0; i < l; i++) {
+    var key = keys[i];
+
+    if (plainObject(key)) {
+      throw Error('Tried to set map with object key');
+    }
 
-                    easeOutQuint: function(t) {
-                        return (t = t - 1) * t * t * t * t + 1;
-                    },
+    if (i < keys.length - 1) {
+      // extend the map if necessary
+      if (obj[key] == null) {
+        obj[key] = {};
+      }
 
-                    easeInOutQuint: function(t) {
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * t * t * t * t * t;
-                        }
-                        return 0.5 * ((t -= 2) * t * t * t * t + 2);
-                    },
+      obj = obj[key];
+    } else {
+      // set the value
+      obj[key] = options.value;
+    }
+  }
+}; // gets the value in a map even if it's not built in places
 
-                    easeInSine: function(t) {
-                        return -Math.cos(t * (Math.PI / 2)) + 1;
-                    },
+var getMap = function getMap(options) {
+  var obj = options.map;
+  var keys = options.keys;
+  var l = keys.length;
 
-                    easeOutSine: function(t) {
-                        return Math.sin(t * (Math.PI / 2));
-                    },
+  for (var i = 0; i < l; i++) {
+    var key = keys[i];
 
-                    easeInOutSine: function(t) {
-                        return -0.5 * (Math.cos(Math.PI * t) - 1);
-                    },
+    if (plainObject(key)) {
+      throw Error('Tried to get map with object key');
+    }
 
-                    easeInExpo: function(t) {
-                        return (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));
-                    },
+    obj = obj[key];
 
-                    easeOutExpo: function(t) {
-                        return (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;
-                    },
+    if (obj == null) {
+      return obj;
+    }
+  }
 
-                    easeInOutExpo: function(t) {
-                        if (t === 0) {
-                            return 0;
-                        }
-                        if (t === 1) {
-                            return 1;
-                        }
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * Math.pow(2, 10 * (t - 1));
-                        }
-                        return 0.5 * (-Math.pow(2, -10 * --t) + 2);
-                    },
+  return obj;
+}; // deletes the entry in the map
+
+var performance = window$1 ? window$1.performance : null;
+var pnow = performance && performance.now ? function () {
+  return performance.now();
+} : function () {
+  return Date.now();
+};
+
+var raf = function () {
+  if (window$1) {
+    if (window$1.requestAnimationFrame) {
+      return function (fn) {
+        window$1.requestAnimationFrame(fn);
+      };
+    } else if (window$1.mozRequestAnimationFrame) {
+      return function (fn) {
+        window$1.mozRequestAnimationFrame(fn);
+      };
+    } else if (window$1.webkitRequestAnimationFrame) {
+      return function (fn) {
+        window$1.webkitRequestAnimationFrame(fn);
+      };
+    } else if (window$1.msRequestAnimationFrame) {
+      return function (fn) {
+        window$1.msRequestAnimationFrame(fn);
+      };
+    }
+  }
 
-                    easeInCirc: function(t) {
-                        if (t >= 1) {
-                            return t;
-                        }
-                        return -(Math.sqrt(1 - t * t) - 1);
-                    },
+  return function (fn) {
+    if (fn) {
+      setTimeout(function () {
+        fn(pnow());
+      }, 1000 / 60);
+    }
+  };
+}();
 
-                    easeOutCirc: function(t) {
-                        return Math.sqrt(1 - (t = t - 1) * t);
-                    },
+var requestAnimationFrame = function requestAnimationFrame(fn) {
+  return raf(fn);
+};
+var performanceNow = pnow;
 
-                    easeInOutCirc: function(t) {
-                        if ((t /= 0.5) < 1) {
-                            return -0.5 * (Math.sqrt(1 - t * t) - 1);
-                        }
-                        return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
-                    },
-
-                    easeInElastic: function(t) {
-                        var s = 1.70158;
-                        var p = 0;
-                        var a = 1;
-                        if (t === 0) {
-                            return 0;
-                        }
-                        if (t === 1) {
-                            return 1;
-                        }
-                        if (!p) {
-                            p = 0.3;
-                        }
-                        if (a < 1) {
-                            a = 1;
-                            s = p / 4;
-                        } else {
-                            s = p / (2 * Math.PI) * Math.asin(1 / a);
-                        }
-                        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));
-                    },
-
-                    easeOutElastic: function(t) {
-                        var s = 1.70158;
-                        var p = 0;
-                        var a = 1;
-                        if (t === 0) {
-                            return 0;
-                        }
-                        if (t === 1) {
-                            return 1;
-                        }
-                        if (!p) {
-                            p = 0.3;
-                        }
-                        if (a < 1) {
-                            a = 1;
-                            s = p / 4;
-                        } else {
-                            s = p / (2 * Math.PI) * Math.asin(1 / a);
-                        }
-                        return a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;
-                    },
-
-                    easeInOutElastic: function(t) {
-                        var s = 1.70158;
-                        var p = 0;
-                        var a = 1;
-                        if (t === 0) {
-                            return 0;
-                        }
-                        if ((t /= 0.5) === 2) {
-                            return 1;
-                        }
-                        if (!p) {
-                            p = 0.45;
-                        }
-                        if (a < 1) {
-                            a = 1;
-                            s = p / 4;
-                        } else {
-                            s = p / (2 * Math.PI) * Math.asin(1 / a);
-                        }
-                        if (t < 1) {
-                            return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));
-                        }
-                        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;
-                    },
-                    easeInBack: function(t) {
-                        var s = 1.70158;
-                        return t * t * ((s + 1) * t - s);
-                    },
-
-                    easeOutBack: function(t) {
-                        var s = 1.70158;
-                        return (t = t - 1) * t * ((s + 1) * t + s) + 1;
-                    },
-
-                    easeInOutBack: function(t) {
-                        var s = 1.70158;
-                        if ((t /= 0.5) < 1) {
-                            return 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));
-                        }
-                        return 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);
-                    },
+var DEFAULT_HASH_SEED = 9261;
+var K = 65599; // 37 also works pretty well
 
-                    easeInBounce: function(t) {
-                        return 1 - effects.easeOutBounce(1 - t);
-                    },
+var DEFAULT_HASH_SEED_ALT = 5381;
+var hashIterableInts = function hashIterableInts(iterator) {
+  var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED;
+  // sdbm/string-hash
+  var hash = seed;
+  var entry;
 
-                    easeOutBounce: function(t) {
-                        if (t < (1 / 2.75)) {
-                            return 7.5625 * t * t;
-                        }
-                        if (t < (2 / 2.75)) {
-                            return 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;
-                        }
-                        if (t < (2.5 / 2.75)) {
-                            return 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;
-                        }
-                        return 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;
-                    },
+  for (;;) {
+    entry = iterator.next();
 
-                    easeInOutBounce: function(t) {
-                        if (t < 0.5) {
-                            return effects.easeInBounce(t * 2) * 0.5;
-                        }
-                        return effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;
-                    }
-                };
+    if (entry.done) {
+      break;
+    }
 
-                var helpers_easing = {
-                    effects: effects
-                };
+    hash = hash * K + entry.value | 0;
+  }
 
-// DEPRECATIONS
+  return hash;
+};
+var hashInt = function hashInt(num) {
+  var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED;
+  // sdbm/string-hash
+  return seed * K + num | 0;
+};
+var hashIntAlt = function hashIntAlt(num) {
+  var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED_ALT;
+  // djb2/string-hash
+  return (seed << 5) + seed + num | 0;
+};
+var combineHashes = function combineHashes(hash1, hash2) {
+  return hash1 * 0x200000 + hash2;
+};
+var combineHashesArray = function combineHashesArray(hashes) {
+  return hashes[0] * 0x200000 + hashes[1];
+};
+var hashArrays = function hashArrays(hashes1, hashes2) {
+  return [hashInt(hashes1[0], hashes2[0]), hashIntAlt(hashes1[1], hashes2[1])];
+};
+var hashIntsArray = function hashIntsArray(ints, seed) {
+  var entry = {
+    value: 0,
+    done: false
+  };
+  var i = 0;
+  var length = ints.length;
+  var iterator = {
+    next: function next() {
+      if (i < length) {
+        entry.value = ints[i++];
+      } else {
+        entry.done = true;
+      }
+
+      return entry;
+    }
+  };
+  return hashIterableInts(iterator, seed);
+};
+var hashString = function hashString(str, seed) {
+  var entry = {
+    value: 0,
+    done: false
+  };
+  var i = 0;
+  var length = str.length;
+  var iterator = {
+    next: function next() {
+      if (i < length) {
+        entry.value = str.charCodeAt(i++);
+      } else {
+        entry.done = true;
+      }
+
+      return entry;
+    }
+  };
+  return hashIterableInts(iterator, seed);
+};
+var hashStrings = function hashStrings() {
+  return hashStringsArray(arguments);
+};
+var hashStringsArray = function hashStringsArray(strs) {
+  var hash;
+
+  for (var i = 0; i < strs.length; i++) {
+    var str = strs[i];
+
+    if (i === 0) {
+      hash = hashString(str);
+    } else {
+      hash = hashString(str, hash);
+    }
+  }
 
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.easing.effects instead.
-                 * @function Chart.helpers.easingEffects
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers_core.easingEffects = effects;
-
-                var PI = Math.PI;
-                var RAD_PER_DEG = PI / 180;
-                var DOUBLE_PI = PI * 2;
-                var HALF_PI = PI / 2;
-                var QUARTER_PI = PI / 4;
-                var TWO_THIRDS_PI = PI * 2 / 3;
-
-                /**
-                 * @namespace Chart.helpers.canvas
-                 */
-                var exports$1 = {
-                    /**
-                     * Clears the entire canvas associated to the given `chart`.
-                     * @param {Chart} chart - The chart for which to clear the canvas.
-                     */
-                    clear: function(chart) {
-                        chart.ctx.clearRect(0, 0, chart.width, chart.height);
-                    },
-
-                    /**
-                     * Creates a "path" for a rectangle with rounded corners at position (x, y) with a
-                     * given size (width, height) and the same `radius` for all corners.
-                     * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.
-                     * @param {number} x - The x axis of the coordinate for the rectangle starting point.
-                     * @param {number} y - The y axis of the coordinate for the rectangle starting point.
-                     * @param {number} width - The rectangle's width.
-                     * @param {number} height - The rectangle's height.
-                     * @param {number} radius - The rounded amount (in pixels) for the four corners.
-                     * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?
-                     */
-                    roundedRect: function(ctx, x, y, width, height, radius) {
-                        if (radius) {
-                            var r = Math.min(radius, height / 2, width / 2);
-                            var left = x + r;
-                            var top = y + r;
-                            var right = x + width - r;
-                            var bottom = y + height - r;
-
-                            ctx.moveTo(x, top);
-                            if (left < right && top < bottom) {
-                                ctx.arc(left, top, r, -PI, -HALF_PI);
-                                ctx.arc(right, top, r, -HALF_PI, 0);
-                                ctx.arc(right, bottom, r, 0, HALF_PI);
-                                ctx.arc(left, bottom, r, HALF_PI, PI);
-                            } else if (left < right) {
-                                ctx.moveTo(left, y);
-                                ctx.arc(right, top, r, -HALF_PI, HALF_PI);
-                                ctx.arc(left, top, r, HALF_PI, PI + HALF_PI);
-                            } else if (top < bottom) {
-                                ctx.arc(left, top, r, -PI, 0);
-                                ctx.arc(left, bottom, r, 0, PI);
-                            } else {
-                                ctx.arc(left, top, r, -PI, PI);
-                            }
-                            ctx.closePath();
-                            ctx.moveTo(x, y);
-                        } else {
-                            ctx.rect(x, y, width, height);
-                        }
-                    },
-
-                    drawPoint: function(ctx, style, radius, x, y, rotation) {
-                        var type, xOffset, yOffset, size, cornerRadius;
-                        var rad = (rotation || 0) * RAD_PER_DEG;
-
-                        if (style && typeof style === 'object') {
-                            type = style.toString();
-                            if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {
-                                ctx.save();
-                                ctx.translate(x, y);
-                                ctx.rotate(rad);
-                                ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);
-                                ctx.restore();
-                                return;
-                            }
-                        }
+  return hash;
+};
+
+/*global console */
+var warningsEnabled = true;
+var warnSupported = console.warn != null; // eslint-disable-line no-console
+
+var traceSupported = console.trace != null; // eslint-disable-line no-console
+
+var MAX_INT = Number.MAX_SAFE_INTEGER || 9007199254740991;
+var trueify = function trueify() {
+  return true;
+};
+var falsify = function falsify() {
+  return false;
+};
+var zeroify = function zeroify() {
+  return 0;
+};
+var noop = function noop() {};
+var error = function error(msg) {
+  throw new Error(msg);
+};
+var warnings = function warnings(enabled) {
+  if (enabled !== undefined) {
+    warningsEnabled = !!enabled;
+  } else {
+    return warningsEnabled;
+  }
+};
+var warn = function warn(msg) {
+  /* eslint-disable no-console */
+  if (!warnings()) {
+    return;
+  }
 
-                        if (isNaN(radius) || radius <= 0) {
-                            return;
-                        }
+  if (warnSupported) {
+    console.warn(msg);
+  } else {
+    console.log(msg);
 
-                        ctx.beginPath();
-
-                        switch (style) {
-                            // Default includes circle
-                            default:
-                                ctx.arc(x, y, radius, 0, DOUBLE_PI);
-                                ctx.closePath();
-                                break;
-                            case 'triangle':
-                                ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
-                                rad += TWO_THIRDS_PI;
-                                ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
-                                rad += TWO_THIRDS_PI;
-                                ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
-                                ctx.closePath();
-                                break;
-                            case 'rectRounded':
-                                // NOTE: the rounded rect implementation changed to use `arc` instead of
-                                // `quadraticCurveTo` since it generates better results when rect is
-                                // almost a circle. 0.516 (instead of 0.5) produces results with visually
-                                // closer proportion to the previous impl and it is inscribed in the
-                                // circle with `radius`. For more details, see the following PRs:
-                                // https://github.com/chartjs/Chart.js/issues/5597
-                                // https://github.com/chartjs/Chart.js/issues/5858
-                                cornerRadius = radius * 0.516;
-                                size = radius - cornerRadius;
-                                xOffset = Math.cos(rad + QUARTER_PI) * size;
-                                yOffset = Math.sin(rad + QUARTER_PI) * size;
-                                ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);
-                                ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);
-                                ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);
-                                ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);
-                                ctx.closePath();
-                                break;
-                            case 'rect':
-                                if (!rotation) {
-                                    size = Math.SQRT1_2 * radius;
-                                    ctx.rect(x - size, y - size, 2 * size, 2 * size);
-                                    break;
-                                }
-                                rad += QUARTER_PI;
-                            /* falls through */
-                            case 'rectRot':
-                                xOffset = Math.cos(rad) * radius;
-                                yOffset = Math.sin(rad) * radius;
-                                ctx.moveTo(x - xOffset, y - yOffset);
-                                ctx.lineTo(x + yOffset, y - xOffset);
-                                ctx.lineTo(x + xOffset, y + yOffset);
-                                ctx.lineTo(x - yOffset, y + xOffset);
-                                ctx.closePath();
-                                break;
-                            case 'crossRot':
-                                rad += QUARTER_PI;
-                            /* falls through */
-                            case 'cross':
-                                xOffset = Math.cos(rad) * radius;
-                                yOffset = Math.sin(rad) * radius;
-                                ctx.moveTo(x - xOffset, y - yOffset);
-                                ctx.lineTo(x + xOffset, y + yOffset);
-                                ctx.moveTo(x + yOffset, y - xOffset);
-                                ctx.lineTo(x - yOffset, y + xOffset);
-                                break;
-                            case 'star':
-                                xOffset = Math.cos(rad) * radius;
-                                yOffset = Math.sin(rad) * radius;
-                                ctx.moveTo(x - xOffset, y - yOffset);
-                                ctx.lineTo(x + xOffset, y + yOffset);
-                                ctx.moveTo(x + yOffset, y - xOffset);
-                                ctx.lineTo(x - yOffset, y + xOffset);
-                                rad += QUARTER_PI;
-                                xOffset = Math.cos(rad) * radius;
-                                yOffset = Math.sin(rad) * radius;
-                                ctx.moveTo(x - xOffset, y - yOffset);
-                                ctx.lineTo(x + xOffset, y + yOffset);
-                                ctx.moveTo(x + yOffset, y - xOffset);
-                                ctx.lineTo(x - yOffset, y + xOffset);
-                                break;
-                            case 'line':
-                                xOffset = Math.cos(rad) * radius;
-                                yOffset = Math.sin(rad) * radius;
-                                ctx.moveTo(x - xOffset, y - yOffset);
-                                ctx.lineTo(x + xOffset, y + yOffset);
-                                break;
-                            case 'dash':
-                                ctx.moveTo(x, y);
-                                ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);
-                                break;
-                        }
+    if (traceSupported) {
+      console.trace();
+    }
+  }
+};
+/* eslint-enable */
 
-                        ctx.fill();
-                        ctx.stroke();
-                    },
-
-                    /**
-                     * Returns true if the point is inside the rectangle
-                     * @param {object} point - The point to test
-                     * @param {object} area - The rectangle
-                     * @returns {boolean}
-                     * @private
-                     */
-                    _isPointInArea: function(point, area) {
-                        var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.
-
-                        return point.x > area.left - epsilon && point.x < area.right + epsilon &&
-                            point.y > area.top - epsilon && point.y < area.bottom + epsilon;
-                    },
-
-                    clipArea: function(ctx, area) {
-                        ctx.save();
-                        ctx.beginPath();
-                        ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);
-                        ctx.clip();
-                    },
-
-                    unclipArea: function(ctx) {
-                        ctx.restore();
-                    },
-
-                    lineTo: function(ctx, previous, target, flip) {
-                        var stepped = target.steppedLine;
-                        if (stepped) {
-                            if (stepped === 'middle') {
-                                var midpoint = (previous.x + target.x) / 2.0;
-                                ctx.lineTo(midpoint, flip ? target.y : previous.y);
-                                ctx.lineTo(midpoint, flip ? previous.y : target.y);
-                            } else if ((stepped === 'after' && !flip) || (stepped !== 'after' && flip)) {
-                                ctx.lineTo(previous.x, target.y);
-                            } else {
-                                ctx.lineTo(target.x, previous.y);
-                            }
-                            ctx.lineTo(target.x, target.y);
-                            return;
-                        }
+var clone = function clone(obj) {
+  return extend({}, obj);
+}; // gets a shallow copy of the argument
 
-                        if (!target.tension) {
-                            ctx.lineTo(target.x, target.y);
-                            return;
-                        }
+var copy = function copy(obj) {
+  if (obj == null) {
+    return obj;
+  }
 
-                        ctx.bezierCurveTo(
-                            flip ? previous.controlPointPreviousX : previous.controlPointNextX,
-                            flip ? previous.controlPointPreviousY : previous.controlPointNextY,
-                            flip ? target.controlPointNextX : target.controlPointPreviousX,
-                            flip ? target.controlPointNextY : target.controlPointPreviousY,
-                            target.x,
-                            target.y);
-                    }
-                };
+  if (array(obj)) {
+    return obj.slice();
+  } else if (plainObject(obj)) {
+    return clone(obj);
+  } else {
+    return obj;
+  }
+};
+var copyArray = function copyArray(arr) {
+  return arr.slice();
+};
+var uuid = function uuid(a, b
+/* placeholders */
+) {
+  for ( // loop :)
+  b = a = ''; // b - result , a - numeric letiable
+  a++ < 36; //
+  b += a * 51 & 52 // if "a" is not 9 or 14 or 19 or 24
+  ? //  return a random number or 4
+  (a ^ 15 // if "a" is not 15
+  ? // genetate a random number from 0 to 15
+  8 ^ Math.random() * (a ^ 20 ? 16 : 4) // unless "a" is 20, in which case a random number from 8 to 11
+  : 4 //  otherwise 4
+  ).toString(16) : '-' //  in other cases (if "a" is 9,14,19,24) insert "-"
+  ) {
+  }
 
-                var helpers_canvas = exports$1;
+  return b;
+};
+var _staticEmptyObject = {};
+var staticEmptyObject = function staticEmptyObject() {
+  return _staticEmptyObject;
+};
+var defaults = function defaults(_defaults) {
+  var keys = Object.keys(_defaults);
+  return function (opts) {
+    var filledOpts = {};
+
+    for (var i = 0; i < keys.length; i++) {
+      var key = keys[i];
+      var optVal = opts == null ? undefined : opts[key];
+      filledOpts[key] = optVal === undefined ? _defaults[key] : optVal;
+    }
 
-// DEPRECATIONS
+    return filledOpts;
+  };
+};
+var removeFromArray = function removeFromArray(arr, ele, manyCopies) {
+  for (var i = arr.length; i >= 0; i--) {
+    if (arr[i] === ele) {
+      arr.splice(i, 1);
+
+      if (!manyCopies) {
+        break;
+      }
+    }
+  }
+};
+var clearArray = function clearArray(arr) {
+  arr.splice(0, arr.length);
+};
+var push = function push(arr, otherArr) {
+  for (var i = 0; i < otherArr.length; i++) {
+    var el = otherArr[i];
+    arr.push(el);
+  }
+};
+var getPrefixedProperty = function getPrefixedProperty(obj, propName, prefix) {
+  if (prefix) {
+    propName = prependCamel(prefix, propName); // e.g. (labelWidth, source) => sourceLabelWidth
+  }
 
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.
-                 * @namespace Chart.helpers.clear
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers_core.clear = exports$1.clear;
-
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.
-                 * @namespace Chart.helpers.drawRoundedRectangle
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers_core.drawRoundedRectangle = function(ctx) {
-                    ctx.beginPath();
-                    exports$1.roundedRect.apply(exports$1, arguments);
-                };
+  return obj[propName];
+};
+var setPrefixedProperty = function setPrefixedProperty(obj, propName, prefix, value) {
+  if (prefix) {
+    propName = prependCamel(prefix, propName); // e.g. (labelWidth, source) => sourceLabelWidth
+  }
 
-                var defaults = {
-                    /**
-                     * @private
-                     */
-                    _set: function(scope, values) {
-                        return helpers_core.merge(this[scope] || (this[scope] = {}), values);
-                    }
-                };
+  obj[propName] = value;
+};
 
-// TODO(v3): remove 'global' from namespace.  all default are global and
-// there's inconsistency around which options are under 'global'
-                defaults._set('global', {
-                    defaultColor: 'rgba(0,0,0,0.1)',
-                    defaultFontColor: '#666',
-                    defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
-                    defaultFontSize: 12,
-                    defaultFontStyle: 'normal',
-                    defaultLineHeight: 1.2,
-                    showLines: true
-                });
+/* global Map */
+var ObjectMap =
+/*#__PURE__*/
+function () {
+  function ObjectMap() {
+    _classCallCheck(this, ObjectMap);
 
-                var core_defaults = defaults;
+    this._obj = {};
+  }
 
-                var valueOrDefault = helpers_core.valueOrDefault;
+  _createClass(ObjectMap, [{
+    key: "set",
+    value: function set(key, val) {
+      this._obj[key] = val;
+      return this;
+    }
+  }, {
+    key: "delete",
+    value: function _delete(key) {
+      this._obj[key] = undefined;
+      return this;
+    }
+  }, {
+    key: "clear",
+    value: function clear() {
+      this._obj = {};
+    }
+  }, {
+    key: "has",
+    value: function has(key) {
+      return this._obj[key] !== undefined;
+    }
+  }, {
+    key: "get",
+    value: function get(key) {
+      return this._obj[key];
+    }
+  }]);
 
-                /**
-                 * Converts the given font object into a CSS font string.
-                 * @param {object} font - A font object.
-                 * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
-                 * @private
-                 */
-                function toFontString(font) {
-                    if (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {
-                        return null;
-                    }
+  return ObjectMap;
+}();
 
-                    return (font.style ? font.style + ' ' : '')
-                        + (font.weight ? font.weight + ' ' : '')
-                        + font.size + 'px '
-                        + font.family;
-                }
+var Map$1 = typeof Map !== 'undefined' ? Map : ObjectMap;
 
-                /**
-                 * @alias Chart.helpers.options
-                 * @namespace
-                 */
-                var helpers_options = {
-                    /**
-                     * Converts the given line height `value` in pixels for a specific font `size`.
-                     * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').
-                     * @param {number} size - The font size (in pixels) used to resolve relative `value`.
-                     * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).
-                     * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
-                     * @since 2.7.0
-                     */
-                    toLineHeight: function(value, size) {
-                        var matches = ('' + value).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);
-                        if (!matches || matches[1] === 'normal') {
-                            return size * 1.2;
-                        }
+/* global Set */
+var undef =  "undefined" ;
 
-                        value = +matches[2];
+var ObjectSet =
+/*#__PURE__*/
+function () {
+  function ObjectSet(arrayOrObjectSet) {
+    _classCallCheck(this, ObjectSet);
 
-                        switch (matches[3]) {
-                            case 'px':
-                                return value;
-                            case '%':
-                                value /= 100;
-                                break;
-                        }
+    this._obj = Object.create(null);
+    this.size = 0;
 
-                        return size * value;
-                    },
-
-                    /**
-                     * Converts the given value into a padding object with pre-computed width/height.
-                     * @param {number|object} value - If a number, set the value to all TRBL component,
-                     *  else, if and object, use defined properties and sets undefined ones to 0.
-                     * @returns {object} The padding values (top, right, bottom, left, width, height)
-                     * @since 2.7.0
-                     */
-                    toPadding: function(value) {
-                        var t, r, b, l;
-
-                        if (helpers_core.isObject(value)) {
-                            t = +value.top || 0;
-                            r = +value.right || 0;
-                            b = +value.bottom || 0;
-                            l = +value.left || 0;
-                        } else {
-                            t = r = b = l = +value || 0;
-                        }
+    if (arrayOrObjectSet != null) {
+      var arr;
 
-                        return {
-                            top: t,
-                            right: r,
-                            bottom: b,
-                            left: l,
-                            height: t + b,
-                            width: l + r
-                        };
-                    },
-
-                    /**
-                     * Parses font options and returns the font object.
-                     * @param {object} options - A object that contains font options to be parsed.
-                     * @return {object} The font object.
-                     * @todo Support font.* options and renamed to toFont().
-                     * @private
-                     */
-                    _parseFont: function(options) {
-                        var globalDefaults = core_defaults.global;
-                        var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);
-                        var font = {
-                            family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),
-                            lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),
-                            size: size,
-                            style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),
-                            weight: null,
-                            string: ''
-                        };
-
-                        font.string = toFontString(font);
-                        return font;
-                    },
-
-                    /**
-                     * Evaluates the given `inputs` sequentially and returns the first defined value.
-                     * @param {Array} inputs - An array of values, falling back to the last value.
-                     * @param {object} [context] - If defined and the current value is a function, the value
-                     * is called with `context` as first argument and the result becomes the new input.
-                     * @param {number} [index] - If defined and the current value is an array, the value
-                     * at `index` become the new input.
-                     * @param {object} [info] - object to return information about resolution in
-                     * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.
-                     * @since 2.7.0
-                     */
-                    resolve: function(inputs, context, index, info) {
-                        var cacheable = true;
-                        var i, ilen, value;
-
-                        for (i = 0, ilen = inputs.length; i < ilen; ++i) {
-                            value = inputs[i];
-                            if (value === undefined) {
-                                continue;
-                            }
-                            if (context !== undefined && typeof value === 'function') {
-                                value = value(context);
-                                cacheable = false;
-                            }
-                            if (index !== undefined && helpers_core.isArray(value)) {
-                                value = value[index];
-                                cacheable = false;
-                            }
-                            if (value !== undefined) {
-                                if (info && !cacheable) {
-                                    info.cacheable = false;
-                                }
-                                return value;
-                            }
-                        }
-                    }
-                };
+      if (arrayOrObjectSet.instanceString != null && arrayOrObjectSet.instanceString() === this.instanceString()) {
+        arr = arrayOrObjectSet.toArray();
+      } else {
+        arr = arrayOrObjectSet;
+      }
 
-                /**
-                 * @alias Chart.helpers.math
-                 * @namespace
-                 */
-                var exports$2 = {
-                    /**
-                     * Returns an array of factors sorted from 1 to sqrt(value)
-                     * @private
-                     */
-                    _factorize: function(value) {
-                        var result = [];
-                        var sqrt = Math.sqrt(value);
-                        var i;
-
-                        for (i = 1; i < sqrt; i++) {
-                            if (value % i === 0) {
-                                result.push(i);
-                                result.push(value / i);
-                            }
-                        }
-                        if (sqrt === (sqrt | 0)) { // if value is a square number
-                            result.push(sqrt);
-                        }
+      for (var i = 0; i < arr.length; i++) {
+        this.add(arr[i]);
+      }
+    }
+  }
 
-                        result.sort(function(a, b) {
-                            return a - b;
-                        }).pop();
-                        return result;
-                    },
+  _createClass(ObjectSet, [{
+    key: "instanceString",
+    value: function instanceString() {
+      return 'set';
+    }
+  }, {
+    key: "add",
+    value: function add(val) {
+      var o = this._obj;
+
+      if (o[val] !== 1) {
+        o[val] = 1;
+        this.size++;
+      }
+    }
+  }, {
+    key: "delete",
+    value: function _delete(val) {
+      var o = this._obj;
+
+      if (o[val] === 1) {
+        o[val] = 0;
+        this.size--;
+      }
+    }
+  }, {
+    key: "clear",
+    value: function clear() {
+      this._obj = Object.create(null);
+    }
+  }, {
+    key: "has",
+    value: function has(val) {
+      return this._obj[val] === 1;
+    }
+  }, {
+    key: "toArray",
+    value: function toArray() {
+      var _this = this;
 
-                    log10: Math.log10 || function(x) {
-                        var exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.
-                        // Check for whole powers of 10,
-                        // which due to floating point rounding error should be corrected.
-                        var powerOf10 = Math.round(exponent);
-                        var isPowerOf10 = x === Math.pow(10, powerOf10);
+      return Object.keys(this._obj).filter(function (key) {
+        return _this.has(key);
+      });
+    }
+  }, {
+    key: "forEach",
+    value: function forEach(callback, thisArg) {
+      return this.toArray().forEach(callback, thisArg);
+    }
+  }]);
 
-                        return isPowerOf10 ? powerOf10 : exponent;
-                    }
-                };
+  return ObjectSet;
+}();
 
-                var helpers_math = exports$2;
+var Set$1 = (typeof Set === "undefined" ? "undefined" : _typeof(Set)) !== undef ? Set : ObjectSet;
 
-// DEPRECATIONS
+var Element = function Element(cy, params) {
+  var restore = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
 
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.math.log10 instead.
-                 * @namespace Chart.helpers.log10
-                 * @deprecated since version 2.9.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers_core.log10 = exports$2.log10;
-
-                var getRtlAdapter = function(rectX, width) {
-                    return {
-                        x: function(x) {
-                            return rectX + rectX + width - x;
-                        },
-                        setWidth: function(w) {
-                            width = w;
-                        },
-                        textAlign: function(align) {
-                            if (align === 'center') {
-                                return align;
-                            }
-                            return align === 'right' ? 'left' : 'right';
-                        },
-                        xPlus: function(x, value) {
-                            return x - value;
-                        },
-                        leftForLtr: function(x, itemWidth) {
-                            return x - itemWidth;
-                        },
-                    };
-                };
+  if (cy === undefined || params === undefined || !core(cy)) {
+    error('An element must have a core reference and parameters set');
+    return;
+  }
 
-                var getLtrAdapter = function() {
-                    return {
-                        x: function(x) {
-                            return x;
-                        },
-                        setWidth: function(w) { // eslint-disable-line no-unused-vars
-                        },
-                        textAlign: function(align) {
-                            return align;
-                        },
-                        xPlus: function(x, value) {
-                            return x + value;
-                        },
-                        leftForLtr: function(x, _itemWidth) { // eslint-disable-line no-unused-vars
-                            return x;
-                        },
-                    };
-                };
+  var group = params.group; // try to automatically infer the group if unspecified
 
-                var getAdapter = function(rtl, rectX, width) {
-                    return rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();
-                };
+  if (group == null) {
+    if (params.data && params.data.source != null && params.data.target != null) {
+      group = 'edges';
+    } else {
+      group = 'nodes';
+    }
+  } // validate group
+
+
+  if (group !== 'nodes' && group !== 'edges') {
+    error('An element must be of type `nodes` or `edges`; you specified `' + group + '`');
+    return;
+  } // make the element array-like, just like a collection
+
+
+  this.length = 1;
+  this[0] = this; // NOTE: when something is added here, add also to ele.json()
+
+  var _p = this._private = {
+    cy: cy,
+    single: true,
+    // indicates this is an element
+    data: params.data || {},
+    // data object
+    position: params.position || {
+      x: 0,
+      y: 0
+    },
+    // (x, y) position pair
+    autoWidth: undefined,
+    // width and height of nodes calculated by the renderer when set to special 'auto' value
+    autoHeight: undefined,
+    autoPadding: undefined,
+    compoundBoundsClean: false,
+    // whether the compound dimensions need to be recalculated the next time dimensions are read
+    listeners: [],
+    // array of bound listeners
+    group: group,
+    // string; 'nodes' or 'edges'
+    style: {},
+    // properties as set by the style
+    rstyle: {},
+    // properties for style sent from the renderer to the core
+    styleCxts: [],
+    // applied style contexts from the styler
+    styleKeys: {},
+    // per-group keys of style property values
+    removed: true,
+    // whether it's inside the vis; true if removed (set true here since we call restore)
+    selected: params.selected ? true : false,
+    // whether it's selected
+    selectable: params.selectable === undefined ? true : params.selectable ? true : false,
+    // whether it's selectable
+    locked: params.locked ? true : false,
+    // whether the element is locked (cannot be moved)
+    grabbed: false,
+    // whether the element is grabbed by the mouse; renderer sets this privately
+    grabbable: params.grabbable === undefined ? true : params.grabbable ? true : false,
+    // whether the element can be grabbed
+    pannable: params.pannable === undefined ? group === 'edges' ? true : false : params.pannable ? true : false,
+    // whether the element has passthrough panning enabled
+    active: false,
+    // whether the element is active from user interaction
+    classes: new Set$1(),
+    // map ( className => true )
+    animation: {
+      // object for currently-running animations
+      current: [],
+      queue: []
+    },
+    rscratch: {},
+    // object in which the renderer can store information
+    scratch: params.scratch || {},
+    // scratch objects
+    edges: [],
+    // array of connected edges
+    children: [],
+    // array of children
+    parent: null,
+    // parent ref
+    traversalCache: {},
+    // cache of output of traversal functions
+    backgrounding: false,
+    // whether background images are loading
+    bbCache: null,
+    // cache of the current bounding box
+    bbCacheShift: {
+      x: 0,
+      y: 0
+    },
+    // shift applied to cached bb to be applied on next get
+    bodyBounds: null,
+    // bounds cache of element body, w/o overlay
+    overlayBounds: null,
+    // bounds cache of element body, including overlay
+    labelBounds: {
+      // bounds cache of labels
+      all: null,
+      source: null,
+      target: null,
+      main: null
+    },
+    arrowBounds: {
+      // bounds cache of edge arrows
+      source: null,
+      target: null,
+      'mid-source': null,
+      'mid-target': null
+    }
+  };
 
-                var overrideTextDirection = function(ctx, direction) {
-                    var style, original;
-                    if (direction === 'ltr' || direction === 'rtl') {
-                        style = ctx.canvas.style;
-                        original = [
-                            style.getPropertyValue('direction'),
-                            style.getPropertyPriority('direction'),
-                        ];
-
-                        style.setProperty('direction', direction, 'important');
-                        ctx.prevTextDirection = original;
-                    }
-                };
+  if (_p.position.x == null) {
+    _p.position.x = 0;
+  }
 
-                var restoreTextDirection = function(ctx) {
-                    var original = ctx.prevTextDirection;
-                    if (original !== undefined) {
-                        delete ctx.prevTextDirection;
-                        ctx.canvas.style.setProperty('direction', original[0], original[1]);
-                    }
-                };
+  if (_p.position.y == null) {
+    _p.position.y = 0;
+  } // renderedPosition overrides if specified
 
-                var helpers_rtl = {
-                    getRtlAdapter: getAdapter,
-                    overrideTextDirection: overrideTextDirection,
-                    restoreTextDirection: restoreTextDirection,
-                };
 
-                var helpers$1 = helpers_core;
-                var easing = helpers_easing;
-                var canvas = helpers_canvas;
-                var options = helpers_options;
-                var math = helpers_math;
-                var rtl = helpers_rtl;
-                helpers$1.easing = easing;
-                helpers$1.canvas = canvas;
-                helpers$1.options = options;
-                helpers$1.math = math;
-                helpers$1.rtl = rtl;
-
-                function interpolate(start, view, model, ease) {
-                    var keys = Object.keys(model);
-                    var i, ilen, key, actual, origin, target, type, c0, c1;
-
-                    for (i = 0, ilen = keys.length; i < ilen; ++i) {
-                        key = keys[i];
-
-                        target = model[key];
-
-                        // if a value is added to the model after pivot() has been called, the view
-                        // doesn't contain it, so let's initialize the view to the target value.
-                        if (!view.hasOwnProperty(key)) {
-                            view[key] = target;
-                        }
+  if (params.renderedPosition) {
+    var rpos = params.renderedPosition;
+    var pan = cy.pan();
+    var zoom = cy.zoom();
+    _p.position = {
+      x: (rpos.x - pan.x) / zoom,
+      y: (rpos.y - pan.y) / zoom
+    };
+  }
 
-                        actual = view[key];
+  var classes = [];
 
-                        if (actual === target || key[0] === '_') {
-                            continue;
-                        }
+  if (array(params.classes)) {
+    classes = params.classes;
+  } else if (string(params.classes)) {
+    classes = params.classes.split(/\s+/);
+  }
 
-                        if (!start.hasOwnProperty(key)) {
-                            start[key] = actual;
-                        }
+  for (var i = 0, l = classes.length; i < l; i++) {
+    var cls = classes[i];
 
-                        origin = start[key];
-
-                        type = typeof target;
-
-                        if (type === typeof origin) {
-                            if (type === 'string') {
-                                c0 = chartjsColor(origin);
-                                if (c0.valid) {
-                                    c1 = chartjsColor(target);
-                                    if (c1.valid) {
-                                        view[key] = c1.mix(c0, ease).rgbString();
-                                        continue;
-                                    }
-                                }
-                            } else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {
-                                view[key] = origin + (target - origin) * ease;
-                                continue;
-                            }
-                        }
+    if (!cls || cls === '') {
+      continue;
+    }
 
-                        view[key] = target;
-                    }
-                }
-
-                var Element = function(configuration) {
-                    helpers$1.extend(this, configuration);
-                    this.initialize.apply(this, arguments);
-                };
+    _p.classes.add(cls);
+  }
 
-                helpers$1.extend(Element.prototype, {
-                    _type: undefined,
+  this.createEmitter();
+  var bypass = params.style || params.css;
 
-                    initialize: function() {
-                        this.hidden = false;
-                    },
+  if (bypass) {
+    warn('Setting a `style` bypass at element creation is deprecated');
+    this.style(bypass);
+  }
 
-                    pivot: function() {
-                        var me = this;
-                        if (!me._view) {
-                            me._view = helpers$1.extend({}, me._model);
-                        }
-                        me._start = {};
-                        return me;
-                    },
-
-                    transition: function(ease) {
-                        var me = this;
-                        var model = me._model;
-                        var start = me._start;
-                        var view = me._view;
-
-                        // No animation -> No Transition
-                        if (!model || ease === 1) {
-                            me._view = helpers$1.extend({}, model);
-                            me._start = null;
-                            return me;
-                        }
+  if (restore === undefined || restore) {
+    this.restore();
+  }
+};
+
+var defineSearch = function defineSearch(params) {
+  params = {
+    bfs: params.bfs || !params.dfs,
+    dfs: params.dfs || !params.bfs
+  }; // from pseudocode on wikipedia
+
+  return function searchFn(roots, fn$1, directed) {
+    var options;
+
+    if (plainObject(roots) && !elementOrCollection(roots)) {
+      options = roots;
+      roots = options.roots || options.root;
+      fn$1 = options.visit;
+      directed = options.directed;
+    }
 
-                        if (!view) {
-                            view = me._view = {};
-                        }
+    directed = arguments.length === 2 && !fn(fn$1) ? fn$1 : directed;
+    fn$1 = fn(fn$1) ? fn$1 : function () {};
+    var cy = this._private.cy;
+    var v = roots = string(roots) ? this.filter(roots) : roots;
+    var Q = [];
+    var connectedNodes = [];
+    var connectedBy = {};
+    var id2depth = {};
+    var V = {};
+    var j = 0;
+    var found;
+
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges; // enqueue v
+
+
+    for (var i = 0; i < v.length; i++) {
+      var vi = v[i];
+      var viId = vi.id();
+
+      if (vi.isNode()) {
+        Q.unshift(vi);
+
+        if (params.bfs) {
+          V[viId] = true;
+          connectedNodes.push(vi);
+        }
 
-                        if (!start) {
-                            start = me._start = {};
-                        }
+        id2depth[viId] = 0;
+      }
+    }
 
-                        interpolate(start, view, model, ease);
+    var _loop2 = function _loop2() {
+      var v = params.bfs ? Q.shift() : Q.pop();
+      var vId = v.id();
 
-                        return me;
-                    },
+      if (params.dfs) {
+        if (V[vId]) {
+          return "continue";
+        }
 
-                    tooltipPosition: function() {
-                        return {
-                            x: this._model.x,
-                            y: this._model.y
-                        };
-                    },
+        V[vId] = true;
+        connectedNodes.push(v);
+      }
+
+      var depth = id2depth[vId];
+      var prevEdge = connectedBy[vId];
+      var src = prevEdge != null ? prevEdge.source() : null;
+      var tgt = prevEdge != null ? prevEdge.target() : null;
+      var prevNode = prevEdge == null ? undefined : v.same(src) ? tgt[0] : src[0];
+      var ret = void 0;
+      ret = fn$1(v, prevEdge, prevNode, j++, depth);
+
+      if (ret === true) {
+        found = v;
+        return "break";
+      }
+
+      if (ret === false) {
+        return "break";
+      }
+
+      var vwEdges = v.connectedEdges().filter(function (e) {
+        return (!directed || e.source().same(v)) && edges.has(e);
+      });
 
-                    hasValue: function() {
-                        return helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);
-                    }
-                });
+      for (var _i2 = 0; _i2 < vwEdges.length; _i2++) {
+        var e = vwEdges[_i2];
+        var w = e.connectedNodes().filter(function (n) {
+          return !n.same(v) && nodes.has(n);
+        });
+        var wId = w.id();
 
-                Element.extend = helpers$1.inherits;
+        if (w.length !== 0 && !V[wId]) {
+          w = w[0];
+          Q.push(w);
 
-                var core_element = Element;
+          if (params.bfs) {
+            V[wId] = true;
+            connectedNodes.push(w);
+          }
 
-                var exports$3 = core_element.extend({
-                    chart: null, // the animation associated chart instance
-                    currentStep: 0, // the current animation step
-                    numSteps: 60, // default number of steps
-                    easing: '', // the easing to use for this animation
-                    render: null, // render function used by the animation service
+          connectedBy[wId] = e;
+          id2depth[wId] = id2depth[vId] + 1;
+        }
+      }
+    };
 
-                    onAnimationProgress: null, // user specified callback to fire on each step of the animation
-                    onAnimationComplete: null, // user specified callback to fire when the animation finishes
-                });
+    _loop: while (Q.length !== 0) {
+      var _ret = _loop2();
 
-                var core_animation = exports$3;
+      switch (_ret) {
+        case "continue":
+          continue;
 
-// DEPRECATIONS
+        case "break":
+          break _loop;
+      }
+    }
 
-                /**
-                 * Provided for backward compatibility, use Chart.Animation instead
-                 * @prop Chart.Animation#animationObject
-                 * @deprecated since version 2.6.0
-                 * @todo remove at version 3
-                 */
-                Object.defineProperty(exports$3.prototype, 'animationObject', {
-                    get: function() {
-                        return this;
-                    }
-                });
+    var connectedEles = cy.collection();
 
-                /**
-                 * Provided for backward compatibility, use Chart.Animation#chart instead
-                 * @prop Chart.Animation#chartInstance
-                 * @deprecated since version 2.6.0
-                 * @todo remove at version 3
-                 */
-                Object.defineProperty(exports$3.prototype, 'chartInstance', {
-                    get: function() {
-                        return this.chart;
-                    },
-                    set: function(value) {
-                        this.chart = value;
-                    }
-                });
+    for (var _i = 0; _i < connectedNodes.length; _i++) {
+      var node = connectedNodes[_i];
+      var edge = connectedBy[node.id()];
 
-                core_defaults._set('global', {
-                    animation: {
-                        duration: 1000,
-                        easing: 'easeOutQuart',
-                        onProgress: helpers$1.noop,
-                        onComplete: helpers$1.noop
-                    }
-                });
+      if (edge != null) {
+        connectedEles.push(edge);
+      }
 
-                var core_animations = {
-                    animations: [],
-                    request: null,
-
-                    /**
-                     * @param {Chart} chart - The chart to animate.
-                     * @param {Chart.Animation} animation - The animation that we will animate.
-                     * @param {number} duration - The animation duration in ms.
-                     * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions
-                     */
-                    addAnimation: function(chart, animation, duration, lazy) {
-                        var animations = this.animations;
-                        var i, ilen;
-
-                        animation.chart = chart;
-                        animation.startTime = Date.now();
-                        animation.duration = duration;
-
-                        if (!lazy) {
-                            chart.animating = true;
-                        }
+      connectedEles.push(node);
+    }
 
-                        for (i = 0, ilen = animations.length; i < ilen; ++i) {
-                            if (animations[i].chart === chart) {
-                                animations[i] = animation;
-                                return;
-                            }
-                        }
+    return {
+      path: cy.collection(connectedEles),
+      found: cy.collection(found)
+    };
+  };
+}; // search, spanning trees, etc
+
+
+var elesfn = {
+  breadthFirstSearch: defineSearch({
+    bfs: true
+  }),
+  depthFirstSearch: defineSearch({
+    dfs: true
+  })
+}; // nice, short mathemathical alias
+
+elesfn.bfs = elesfn.breadthFirstSearch;
+elesfn.dfs = elesfn.depthFirstSearch;
+
+var dijkstraDefaults = defaults({
+  root: null,
+  weight: function weight(edge) {
+    return 1;
+  },
+  directed: false
+});
+var elesfn$1 = {
+  dijkstra: function dijkstra(options) {
+    if (!plainObject(options)) {
+      var args = arguments;
+      options = {
+        root: args[0],
+        weight: args[1],
+        directed: args[2]
+      };
+    }
 
-                        animations.push(animation);
+    var _dijkstraDefaults = dijkstraDefaults(options),
+        root = _dijkstraDefaults.root,
+        weight = _dijkstraDefaults.weight,
+        directed = _dijkstraDefaults.directed;
+
+    var eles = this;
+    var weightFn = weight;
+    var source = string(root) ? this.filter(root)[0] : root[0];
+    var dist = {};
+    var prev = {};
+    var knownDist = {};
+
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges;
+
+    edges.unmergeBy(function (ele) {
+      return ele.isLoop();
+    });
+
+    var getDist = function getDist(node) {
+      return dist[node.id()];
+    };
+
+    var setDist = function setDist(node, d) {
+      dist[node.id()] = d;
+      Q.updateItem(node);
+    };
+
+    var Q = new Heap(function (a, b) {
+      return getDist(a) - getDist(b);
+    });
+
+    for (var i = 0; i < nodes.length; i++) {
+      var node = nodes[i];
+      dist[node.id()] = node.same(source) ? 0 : Infinity;
+      Q.push(node);
+    }
 
-                        // If there are no animations queued, manually kickstart a digest, for lack of a better word
-                        if (animations.length === 1) {
-                            this.requestAnimationFrame();
-                        }
-                    },
+    var distBetween = function distBetween(u, v) {
+      var uvs = (directed ? u.edgesTo(v) : u.edgesWith(v)).intersect(edges);
+      var smallestDistance = Infinity;
+      var smallestEdge;
 
-                    cancelAnimation: function(chart) {
-                        var index = helpers$1.findIndex(this.animations, function(animation) {
-                            return animation.chart === chart;
-                        });
+      for (var _i = 0; _i < uvs.length; _i++) {
+        var edge = uvs[_i];
 
-                        if (index !== -1) {
-                            this.animations.splice(index, 1);
-                            chart.animating = false;
-                        }
-                    },
-
-                    requestAnimationFrame: function() {
-                        var me = this;
-                        if (me.request === null) {
-                            // Skip animation frame requests until the active one is executed.
-                            // This can happen when processing mouse events, e.g. 'mousemove'
-                            // and 'mouseout' events will trigger multiple renders.
-                            me.request = helpers$1.requestAnimFrame.call(window, function() {
-                                me.request = null;
-                                me.startDigest();
-                            });
-                        }
-                    },
+        var _weight = weightFn(edge);
 
-                    /**
-                     * @private
-                     */
-                    startDigest: function() {
-                        var me = this;
+        if (_weight < smallestDistance || !smallestEdge) {
+          smallestDistance = _weight;
+          smallestEdge = edge;
+        }
+      }
+
+      return {
+        edge: smallestEdge,
+        dist: smallestDistance
+      };
+    };
+
+    while (Q.size() > 0) {
+      var u = Q.pop();
+      var smalletsDist = getDist(u);
+      var uid = u.id();
+      knownDist[uid] = smalletsDist;
+
+      if (smalletsDist === Infinity) {
+        continue;
+      }
+
+      var neighbors = u.neighborhood().intersect(nodes);
+
+      for (var _i2 = 0; _i2 < neighbors.length; _i2++) {
+        var v = neighbors[_i2];
+        var vid = v.id();
+        var vDist = distBetween(u, v);
+        var alt = smalletsDist + vDist.dist;
+
+        if (alt < getDist(v)) {
+          setDist(v, alt);
+          prev[vid] = {
+            node: u,
+            edge: vDist.edge
+          };
+        }
+      } // for
+
+    } // while
+
+
+    return {
+      distanceTo: function distanceTo(node) {
+        var target = string(node) ? nodes.filter(node)[0] : node[0];
+        return knownDist[target.id()];
+      },
+      pathTo: function pathTo(node) {
+        var target = string(node) ? nodes.filter(node)[0] : node[0];
+        var S = [];
+        var u = target;
+        var uid = u.id();
+
+        if (target.length > 0) {
+          S.unshift(target);
+
+          while (prev[uid]) {
+            var p = prev[uid];
+            S.unshift(p.edge);
+            S.unshift(p.node);
+            u = p.node;
+            uid = u.id();
+          }
+        }
 
-                        me.advance();
+        return eles.spawn(S);
+      }
+    };
+  }
+};
+
+var elesfn$2 = {
+  // kruskal's algorithm (finds min spanning tree, assuming undirected graph)
+  // implemented from pseudocode from wikipedia
+  kruskal: function kruskal(weightFn) {
+    weightFn = weightFn || function (edge) {
+      return 1;
+    };
+
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges;
+
+    var numNodes = nodes.length;
+    var forest = new Array(numNodes);
+    var A = nodes; // assumes byGroup() creates new collections that can be safely mutated
+
+    var findSetIndex = function findSetIndex(ele) {
+      for (var i = 0; i < forest.length; i++) {
+        var eles = forest[i];
+
+        if (eles.has(ele)) {
+          return i;
+        }
+      }
+    }; // start with one forest per node
 
-                        // Do we have more stuff to animate?
-                        if (me.animations.length > 0) {
-                            me.requestAnimationFrame();
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    advance: function() {
-                        var animations = this.animations;
-                        var animation, chart, numSteps, nextStep;
-                        var i = 0;
-
-                        // 1 animation per chart, so we are looping charts here
-                        while (i < animations.length) {
-                            animation = animations[i];
-                            chart = animation.chart;
-                            numSteps = animation.numSteps;
-
-                            // Make sure that currentStep starts at 1
-                            // https://github.com/chartjs/Chart.js/issues/6104
-                            nextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;
-                            animation.currentStep = Math.min(nextStep, numSteps);
-
-                            helpers$1.callback(animation.render, [chart, animation], chart);
-                            helpers$1.callback(animation.onAnimationProgress, [animation], chart);
-
-                            if (animation.currentStep >= numSteps) {
-                                helpers$1.callback(animation.onAnimationComplete, [animation], chart);
-                                chart.animating = false;
-                                animations.splice(i, 1);
-                            } else {
-                                ++i;
-                            }
-                        }
-                    }
-                };
 
-                var resolve = helpers$1.options.resolve;
+    for (var i = 0; i < numNodes; i++) {
+      forest[i] = this.spawn(nodes[i]);
+    }
 
-                var arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];
+    var S = edges.sort(function (a, b) {
+      return weightFn(a) - weightFn(b);
+    });
+
+    for (var _i = 0; _i < S.length; _i++) {
+      var edge = S[_i];
+      var u = edge.source()[0];
+      var v = edge.target()[0];
+      var setUIndex = findSetIndex(u);
+      var setVIndex = findSetIndex(v);
+      var setU = forest[setUIndex];
+      var setV = forest[setVIndex];
+
+      if (setUIndex !== setVIndex) {
+        A.merge(edge); // combine forests for u and v
+
+        setU.merge(setV);
+        forest.splice(setVIndex, 1);
+      }
+    }
 
-                /**
-                 * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',
-                 * 'unshift') and notify the listener AFTER the array has been altered. Listeners are
-                 * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.
-                 */
-                function listenArrayEvents(array, listener) {
-                    if (array._chartjs) {
-                        array._chartjs.listeners.push(listener);
-                        return;
-                    }
+    return A;
+  }
+};
+
+var aStarDefaults = defaults({
+  root: null,
+  goal: null,
+  weight: function weight(edge) {
+    return 1;
+  },
+  heuristic: function heuristic(edge) {
+    return 0;
+  },
+  directed: false
+});
+var elesfn$3 = {
+  // Implemented from pseudocode from wikipedia
+  aStar: function aStar(options) {
+    var cy = this.cy();
+
+    var _aStarDefaults = aStarDefaults(options),
+        root = _aStarDefaults.root,
+        goal = _aStarDefaults.goal,
+        heuristic = _aStarDefaults.heuristic,
+        directed = _aStarDefaults.directed,
+        weight = _aStarDefaults.weight;
+
+    root = cy.collection(root)[0];
+    goal = cy.collection(goal)[0];
+    var sid = root.id();
+    var tid = goal.id();
+    var gScore = {};
+    var fScore = {};
+    var closedSetIds = {};
+    var openSet = new Heap(function (a, b) {
+      return fScore[a.id()] - fScore[b.id()];
+    });
+    var openSetIds = new Set$1();
+    var cameFrom = {};
+    var cameFromEdge = {};
+
+    var addToOpenSet = function addToOpenSet(ele, id) {
+      openSet.push(ele);
+      openSetIds.add(id);
+    };
+
+    var cMin, cMinId;
+
+    var popFromOpenSet = function popFromOpenSet() {
+      cMin = openSet.pop();
+      cMinId = cMin.id();
+      openSetIds["delete"](cMinId);
+    };
+
+    var isInOpenSet = function isInOpenSet(id) {
+      return openSetIds.has(id);
+    };
+
+    addToOpenSet(root, sid);
+    gScore[sid] = 0;
+    fScore[sid] = heuristic(root); // Counter
+
+    var steps = 0; // Main loop
+
+    while (openSet.size() > 0) {
+      popFromOpenSet();
+      steps++; // If we've found our goal, then we are done
+
+      if (cMinId === tid) {
+        var path = [];
+        var pathNode = goal;
+        var pathNodeId = tid;
+        var pathEdge = cameFromEdge[pathNodeId];
+
+        for (;;) {
+          path.unshift(pathNode);
+
+          if (pathEdge != null) {
+            path.unshift(pathEdge);
+          }
+
+          pathNode = cameFrom[pathNodeId];
+
+          if (pathNode == null) {
+            break;
+          }
+
+          pathNodeId = pathNode.id();
+          pathEdge = cameFromEdge[pathNodeId];
+        }
 
-                    Object.defineProperty(array, '_chartjs', {
-                        configurable: true,
-                        enumerable: false,
-                        value: {
-                            listeners: [listener]
-                        }
-                    });
-
-                    arrayEvents.forEach(function(key) {
-                        var method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);
-                        var base = array[key];
-
-                        Object.defineProperty(array, key, {
-                            configurable: true,
-                            enumerable: false,
-                            value: function() {
-                                var args = Array.prototype.slice.call(arguments);
-                                var res = base.apply(this, args);
-
-                                helpers$1.each(array._chartjs.listeners, function(object) {
-                                    if (typeof object[method] === 'function') {
-                                        object[method].apply(object, args);
-                                    }
-                                });
-
-                                return res;
-                            }
-                        });
-                    });
-                }
+        return {
+          found: true,
+          distance: gScore[cMinId],
+          path: this.spawn(path),
+          steps: steps
+        };
+      } // Add cMin to processed nodes
 
-                /**
-                 * Removes the given array event listener and cleanup extra attached properties (such as
-                 * the _chartjs stub and overridden methods) if array doesn't have any more listeners.
-                 */
-                function unlistenArrayEvents(array, listener) {
-                    var stub = array._chartjs;
-                    if (!stub) {
-                        return;
-                    }
 
-                    var listeners = stub.listeners;
-                    var index = listeners.indexOf(listener);
-                    if (index !== -1) {
-                        listeners.splice(index, 1);
-                    }
+      closedSetIds[cMinId] = true; // Update scores for neighbors of cMin
+      // Take into account if graph is directed or not
 
-                    if (listeners.length > 0) {
-                        return;
-                    }
+      var vwEdges = cMin._private.edges;
 
-                    arrayEvents.forEach(function(key) {
-                        delete array[key];
-                    });
+      for (var i = 0; i < vwEdges.length; i++) {
+        var e = vwEdges[i]; // edge must be in set of calling eles
 
-                    delete array._chartjs;
-                }
+        if (!this.hasElementWithId(e.id())) {
+          continue;
+        } // cMin must be the source of edge if directed
 
-// Base class for all dataset controllers (line, bar, etc)
-                var DatasetController = function(chart, datasetIndex) {
-                    this.initialize(chart, datasetIndex);
-                };
 
-                helpers$1.extend(DatasetController.prototype, {
-
-                    /**
-                     * Element type used to generate a meta dataset (e.g. Chart.element.Line).
-                     * @type {Chart.core.element}
-                     */
-                    datasetElementType: null,
-
-                    /**
-                     * Element type used to generate a meta data (e.g. Chart.element.Point).
-                     * @type {Chart.core.element}
-                     */
-                    dataElementType: null,
-
-                    /**
-                     * Dataset element option keys to be resolved in _resolveDatasetElementOptions.
-                     * A derived controller may override this to resolve controller-specific options.
-                     * The keys defined here are for backward compatibility for legend styles.
-                     * @private
-                     */
-                    _datasetElementOptions: [
-                        'backgroundColor',
-                        'borderCapStyle',
-                        'borderColor',
-                        'borderDash',
-                        'borderDashOffset',
-                        'borderJoinStyle',
-                        'borderWidth'
-                    ],
-
-                    /**
-                     * Data element option keys to be resolved in _resolveDataElementOptions.
-                     * A derived controller may override this to resolve controller-specific options.
-                     * The keys defined here are for backward compatibility for legend styles.
-                     * @private
-                     */
-                    _dataElementOptions: [
-                        'backgroundColor',
-                        'borderColor',
-                        'borderWidth',
-                        'pointStyle'
-                    ],
-
-                    initialize: function(chart, datasetIndex) {
-                        var me = this;
-                        me.chart = chart;
-                        me.index = datasetIndex;
-                        me.linkScales();
-                        me.addElements();
-                        me._type = me.getMeta().type;
-                    },
-
-                    updateIndex: function(datasetIndex) {
-                        this.index = datasetIndex;
-                    },
-
-                    linkScales: function() {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var chart = me.chart;
-                        var scales = chart.scales;
-                        var dataset = me.getDataset();
-                        var scalesOpts = chart.options.scales;
-
-                        if (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {
-                            meta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;
-                        }
-                        if (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {
-                            meta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;
-                        }
-                    },
-
-                    getDataset: function() {
-                        return this.chart.data.datasets[this.index];
-                    },
-
-                    getMeta: function() {
-                        return this.chart.getDatasetMeta(this.index);
-                    },
-
-                    getScaleForId: function(scaleID) {
-                        return this.chart.scales[scaleID];
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getValueScaleId: function() {
-                        return this.getMeta().yAxisID;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getIndexScaleId: function() {
-                        return this.getMeta().xAxisID;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getValueScale: function() {
-                        return this.getScaleForId(this._getValueScaleId());
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getIndexScale: function() {
-                        return this.getScaleForId(this._getIndexScaleId());
-                    },
-
-                    reset: function() {
-                        this._update(true);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    destroy: function() {
-                        if (this._data) {
-                            unlistenArrayEvents(this._data, this);
-                        }
-                    },
-
-                    createMetaDataset: function() {
-                        var me = this;
-                        var type = me.datasetElementType;
-                        return type && new type({
-                            _chart: me.chart,
-                            _datasetIndex: me.index
-                        });
-                    },
-
-                    createMetaData: function(index) {
-                        var me = this;
-                        var type = me.dataElementType;
-                        return type && new type({
-                            _chart: me.chart,
-                            _datasetIndex: me.index,
-                            _index: index
-                        });
-                    },
+        if (directed && e.data('source') !== cMinId) {
+          continue;
+        }
 
-                    addElements: function() {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var data = me.getDataset().data || [];
-                        var metaData = meta.data;
-                        var i, ilen;
+        var wSrc = e.source();
+        var wTgt = e.target();
+        var w = wSrc.id() !== cMinId ? wSrc : wTgt;
+        var wid = w.id(); // node must be in set of calling eles
 
-                        for (i = 0, ilen = data.length; i < ilen; ++i) {
-                            metaData[i] = metaData[i] || me.createMetaData(i);
-                        }
+        if (!this.hasElementWithId(wid)) {
+          continue;
+        } // if node is in closedSet, ignore it
 
-                        meta.dataset = meta.dataset || me.createMetaDataset();
-                    },
-
-                    addElementAndReset: function(index) {
-                        var element = this.createMetaData(index);
-                        this.getMeta().data.splice(index, 0, element);
-                        this.updateElement(element, index, true);
-                    },
-
-                    buildOrUpdateElements: function() {
-                        var me = this;
-                        var dataset = me.getDataset();
-                        var data = dataset.data || (dataset.data = []);
-
-                        // In order to correctly handle data addition/deletion animation (an thus simulate
-                        // real-time charts), we need to monitor these data modifications and synchronize
-                        // the internal meta data accordingly.
-                        if (me._data !== data) {
-                            if (me._data) {
-                                // This case happens when the user replaced the data array instance.
-                                unlistenArrayEvents(me._data, me);
-                            }
 
-                            if (data && Object.isExtensible(data)) {
-                                listenArrayEvents(data, me);
-                            }
-                            me._data = data;
-                        }
+        if (closedSetIds[wid]) {
+          continue;
+        } // New tentative score for node w
 
-                        // Re-sync meta data in case the user replaced the data array or if we missed
-                        // any updates and so make sure that we handle number of datapoints changing.
-                        me.resyncElements();
-                    },
-
-                    /**
-                     * Returns the merged user-supplied and default dataset-level options
-                     * @private
-                     */
-                    _configure: function() {
-                        var me = this;
-                        me._config = helpers$1.merge({}, [
-                            me.chart.options.datasets[me._type],
-                            me.getDataset(),
-                        ], {
-                            merger: function(key, target, source) {
-                                if (key !== '_meta' && key !== 'data') {
-                                    helpers$1._merger(key, target, source);
-                                }
-                            }
-                        });
-                    },
 
-                    _update: function(reset) {
-                        var me = this;
-                        me._configure();
-                        me._cachedDataOpts = null;
-                        me.update(reset);
-                    },
+        var tempScore = gScore[cMinId] + weight(e); // Update gScore for node w if:
+        //   w not present in openSet
+        // OR
+        //   tentative gScore is less than previous value
+        // w not in openSet
 
-                    update: helpers$1.noop,
+        if (!isInOpenSet(wid)) {
+          gScore[wid] = tempScore;
+          fScore[wid] = tempScore + heuristic(w);
+          addToOpenSet(w, wid);
+          cameFrom[wid] = cMin;
+          cameFromEdge[wid] = e;
+          continue;
+        } // w already in openSet, but with greater gScore
 
-                    transition: function(easingValue) {
-                        var meta = this.getMeta();
-                        var elements = meta.data || [];
-                        var ilen = elements.length;
-                        var i = 0;
 
-                        for (; i < ilen; ++i) {
-                            elements[i].transition(easingValue);
-                        }
+        if (tempScore < gScore[wid]) {
+          gScore[wid] = tempScore;
+          fScore[wid] = tempScore + heuristic(w);
+          cameFrom[wid] = cMin;
+        }
+      } // End of neighbors update
 
-                        if (meta.dataset) {
-                            meta.dataset.transition(easingValue);
-                        }
-                    },
+    } // End of main loop
+    // If we've reached here, then we've not reached our goal
 
-                    draw: function() {
-                        var meta = this.getMeta();
-                        var elements = meta.data || [];
-                        var ilen = elements.length;
-                        var i = 0;
 
-                        if (meta.dataset) {
-                            meta.dataset.draw();
-                        }
+    return {
+      found: false,
+      distance: undefined,
+      path: undefined,
+      steps: steps
+    };
+  }
+}; // elesfn
 
-                        for (; i < ilen; ++i) {
-                            elements[i].draw();
-                        }
-                    },
-
-                    /**
-                     * Returns a set of predefined style properties that should be used to represent the dataset
-                     * or the data if the index is specified
-                     * @param {number} index - data index
-                     * @return {IStyleInterface} style object
-                     */
-                    getStyle: function(index) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var dataset = meta.dataset;
-                        var style;
-
-                        me._configure();
-                        if (dataset && index === undefined) {
-                            style = me._resolveDatasetElementOptions(dataset || {});
-                        } else {
-                            index = index || 0;
-                            style = me._resolveDataElementOptions(meta.data[index] || {}, index);
-                        }
+var floydWarshallDefaults = defaults({
+  weight: function weight(edge) {
+    return 1;
+  },
+  directed: false
+});
+var elesfn$4 = {
+  // Implemented from pseudocode from wikipedia
+  floydWarshall: function floydWarshall(options) {
+    var cy = this.cy();
 
-                        if (style.fill === false || style.fill === null) {
-                            style.backgroundColor = style.borderColor;
-                        }
+    var _floydWarshallDefault = floydWarshallDefaults(options),
+        weight = _floydWarshallDefault.weight,
+        directed = _floydWarshallDefault.directed;
 
-                        return style;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDatasetElementOptions: function(element, hover) {
-                        var me = this;
-                        var chart = me.chart;
-                        var datasetOpts = me._config;
-                        var custom = element.custom || {};
-                        var options = chart.options.elements[me.datasetElementType.prototype._type] || {};
-                        var elementOptions = me._datasetElementOptions;
-                        var values = {};
-                        var i, ilen, key, readKey;
-
-                        // Scriptable options
-                        var context = {
-                            chart: chart,
-                            dataset: me.getDataset(),
-                            datasetIndex: me.index,
-                            hover: hover
-                        };
-
-                        for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {
-                            key = elementOptions[i];
-                            readKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;
-                            values[key] = resolve([
-                                custom[readKey],
-                                datasetOpts[readKey],
-                                options[readKey]
-                            ], context);
-                        }
+    var weightFn = weight;
 
-                        return values;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDataElementOptions: function(element, index) {
-                        var me = this;
-                        var custom = element && element.custom;
-                        var cached = me._cachedDataOpts;
-                        if (cached && !custom) {
-                            return cached;
-                        }
-                        var chart = me.chart;
-                        var datasetOpts = me._config;
-                        var options = chart.options.elements[me.dataElementType.prototype._type] || {};
-                        var elementOptions = me._dataElementOptions;
-                        var values = {};
-
-                        // Scriptable options
-                        var context = {
-                            chart: chart,
-                            dataIndex: index,
-                            dataset: me.getDataset(),
-                            datasetIndex: me.index
-                        };
-
-                        // `resolve` sets cacheable to `false` if any option is indexed or scripted
-                        var info = {cacheable: !custom};
-
-                        var keys, i, ilen, key;
-
-                        custom = custom || {};
-
-                        if (helpers$1.isArray(elementOptions)) {
-                            for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {
-                                key = elementOptions[i];
-                                values[key] = resolve([
-                                    custom[key],
-                                    datasetOpts[key],
-                                    options[key]
-                                ], context, index, info);
-                            }
-                        } else {
-                            keys = Object.keys(elementOptions);
-                            for (i = 0, ilen = keys.length; i < ilen; ++i) {
-                                key = keys[i];
-                                values[key] = resolve([
-                                    custom[key],
-                                    datasetOpts[elementOptions[key]],
-                                    datasetOpts[key],
-                                    options[key]
-                                ], context, index, info);
-                            }
-                        }
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges;
 
-                        if (info.cacheable) {
-                            me._cachedDataOpts = Object.freeze(values);
-                        }
+    var N = nodes.length;
+    var Nsq = N * N;
 
-                        return values;
-                    },
-
-                    removeHoverStyle: function(element) {
-                        helpers$1.merge(element._model, element.$previousStyle || {});
-                        delete element.$previousStyle;
-                    },
-
-                    setHoverStyle: function(element) {
-                        var dataset = this.chart.data.datasets[element._datasetIndex];
-                        var index = element._index;
-                        var custom = element.custom || {};
-                        var model = element._model;
-                        var getHoverColor = helpers$1.getHoverColor;
-
-                        element.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth
-                        };
-
-                        model.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);
-                        model.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);
-                        model.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _removeDatasetHoverStyle: function() {
-                        var element = this.getMeta().dataset;
-
-                        if (element) {
-                            this.removeHoverStyle(element);
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _setDatasetHoverStyle: function() {
-                        var element = this.getMeta().dataset;
-                        var prev = {};
-                        var i, ilen, key, keys, hoverOptions, model;
-
-                        if (!element) {
-                            return;
-                        }
+    var indexOf = function indexOf(node) {
+      return nodes.indexOf(node);
+    };
 
-                        model = element._model;
-                        hoverOptions = this._resolveDatasetElementOptions(element, true);
+    var atIndex = function atIndex(i) {
+      return nodes[i];
+    }; // Initialize distance matrix
 
-                        keys = Object.keys(hoverOptions);
-                        for (i = 0, ilen = keys.length; i < ilen; ++i) {
-                            key = keys[i];
-                            prev[key] = model[key];
-                            model[key] = hoverOptions[key];
-                        }
 
-                        element.$previousStyle = prev;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    resyncElements: function() {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var data = me.getDataset().data;
-                        var numMeta = meta.data.length;
-                        var numData = data.length;
-
-                        if (numData < numMeta) {
-                            meta.data.splice(numData, numMeta - numData);
-                        } else if (numData > numMeta) {
-                            me.insertElements(numMeta, numData - numMeta);
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    insertElements: function(start, count) {
-                        for (var i = 0; i < count; ++i) {
-                            this.addElementAndReset(start + i);
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    onDataPush: function() {
-                        var count = arguments.length;
-                        this.insertElements(this.getDataset().data.length - count, count);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    onDataPop: function() {
-                        this.getMeta().data.pop();
-                    },
-
-                    /**
-                     * @private
-                     */
-                    onDataShift: function() {
-                        this.getMeta().data.shift();
-                    },
-
-                    /**
-                     * @private
-                     */
-                    onDataSplice: function(start, count) {
-                        this.getMeta().data.splice(start, count);
-                        this.insertElements(start, arguments.length - 2);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    onDataUnshift: function() {
-                        this.insertElements(0, arguments.length);
-                    }
-                });
+    var dist = new Array(Nsq);
 
-                DatasetController.extend = helpers$1.inherits;
+    for (var n = 0; n < Nsq; n++) {
+      var j = n % N;
+      var i = (n - j) / N;
 
-                var core_datasetController = DatasetController;
+      if (i === j) {
+        dist[n] = 0;
+      } else {
+        dist[n] = Infinity;
+      }
+    } // Initialize matrix used for path reconstruction
+    // Initialize distance matrix
 
-                var TAU = Math.PI * 2;
 
-                core_defaults._set('global', {
-                    elements: {
-                        arc: {
-                            backgroundColor: core_defaults.global.defaultColor,
-                            borderColor: '#fff',
-                            borderWidth: 2,
-                            borderAlign: 'center'
-                        }
-                    }
-                });
+    var next = new Array(Nsq);
+    var edgeNext = new Array(Nsq); // Process edges
 
-                function clipArc(ctx, arc) {
-                    var startAngle = arc.startAngle;
-                    var endAngle = arc.endAngle;
-                    var pixelMargin = arc.pixelMargin;
-                    var angleMargin = pixelMargin / arc.outerRadius;
-                    var x = arc.x;
-                    var y = arc.y;
-
-                    // Draw an inner border by cliping the arc and drawing a double-width border
-                    // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders
-                    ctx.beginPath();
-                    ctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);
-                    if (arc.innerRadius > pixelMargin) {
-                        angleMargin = pixelMargin / arc.innerRadius;
-                        ctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);
-                    } else {
-                        ctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);
-                    }
-                    ctx.closePath();
-                    ctx.clip();
-                }
+    for (var _i = 0; _i < edges.length; _i++) {
+      var edge = edges[_i];
+      var src = edge.source()[0];
+      var tgt = edge.target()[0];
 
-                function drawFullCircleBorders(ctx, vm, arc, inner) {
-                    var endAngle = arc.endAngle;
-                    var i;
-
-                    if (inner) {
-                        arc.endAngle = arc.startAngle + TAU;
-                        clipArc(ctx, arc);
-                        arc.endAngle = endAngle;
-                        if (arc.endAngle === arc.startAngle && arc.fullCircles) {
-                            arc.endAngle += TAU;
-                            arc.fullCircles--;
-                        }
-                    }
+      if (src === tgt) {
+        continue;
+      } // exclude loops
 
-                    ctx.beginPath();
-                    ctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);
-                    for (i = 0; i < arc.fullCircles; ++i) {
-                        ctx.stroke();
-                    }
 
-                    ctx.beginPath();
-                    ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);
-                    for (i = 0; i < arc.fullCircles; ++i) {
-                        ctx.stroke();
-                    }
-                }
+      var s = indexOf(src);
+      var t = indexOf(tgt);
+      var st = s * N + t; // source to target index
 
-                function drawBorder(ctx, vm, arc) {
-                    var inner = vm.borderAlign === 'inner';
+      var _weight = weightFn(edge); // Check if already process another edge between same 2 nodes
 
-                    if (inner) {
-                        ctx.lineWidth = vm.borderWidth * 2;
-                        ctx.lineJoin = 'round';
-                    } else {
-                        ctx.lineWidth = vm.borderWidth;
-                        ctx.lineJoin = 'bevel';
-                    }
 
-                    if (arc.fullCircles) {
-                        drawFullCircleBorders(ctx, vm, arc, inner);
-                    }
+      if (dist[st] > _weight) {
+        dist[st] = _weight;
+        next[st] = t;
+        edgeNext[st] = edge;
+      } // If undirected graph, process 'reversed' edge
 
-                    if (inner) {
-                        clipArc(ctx, arc);
-                    }
 
-                    ctx.beginPath();
-                    ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);
-                    ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
-                    ctx.closePath();
-                    ctx.stroke();
-                }
+      if (!directed) {
+        var ts = t * N + s; // target to source index
 
-                var element_arc = core_element.extend({
-                    _type: 'arc',
+        if (!directed && dist[ts] > _weight) {
+          dist[ts] = _weight;
+          next[ts] = s;
+          edgeNext[ts] = edge;
+        }
+      }
+    } // Main loop
 
-                    inLabelRange: function(mouseX) {
-                        var vm = this._view;
 
-                        if (vm) {
-                            return (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));
-                        }
-                        return false;
-                    },
-
-                    inRange: function(chartX, chartY) {
-                        var vm = this._view;
-
-                        if (vm) {
-                            var pointRelativePosition = helpers$1.getAngleFromPoint(vm, {x: chartX, y: chartY});
-                            var angle = pointRelativePosition.angle;
-                            var distance = pointRelativePosition.distance;
-
-                            // Sanitise angle range
-                            var startAngle = vm.startAngle;
-                            var endAngle = vm.endAngle;
-                            while (endAngle < startAngle) {
-                                endAngle += TAU;
-                            }
-                            while (angle > endAngle) {
-                                angle -= TAU;
-                            }
-                            while (angle < startAngle) {
-                                angle += TAU;
-                            }
+    for (var k = 0; k < N; k++) {
+      for (var _i2 = 0; _i2 < N; _i2++) {
+        var ik = _i2 * N + k;
 
-                            // Check if within the range of the open/close angle
-                            var betweenAngles = (angle >= startAngle && angle <= endAngle);
-                            var withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);
+        for (var _j = 0; _j < N; _j++) {
+          var ij = _i2 * N + _j;
+          var kj = k * N + _j;
 
-                            return (betweenAngles && withinRadius);
-                        }
-                        return false;
-                    },
-
-                    getCenterPoint: function() {
-                        var vm = this._view;
-                        var halfAngle = (vm.startAngle + vm.endAngle) / 2;
-                        var halfRadius = (vm.innerRadius + vm.outerRadius) / 2;
-                        return {
-                            x: vm.x + Math.cos(halfAngle) * halfRadius,
-                            y: vm.y + Math.sin(halfAngle) * halfRadius
-                        };
-                    },
-
-                    getArea: function() {
-                        var vm = this._view;
-                        return Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));
-                    },
-
-                    tooltipPosition: function() {
-                        var vm = this._view;
-                        var centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);
-                        var rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;
-
-                        return {
-                            x: vm.x + (Math.cos(centreAngle) * rangeFromCentre),
-                            y: vm.y + (Math.sin(centreAngle) * rangeFromCentre)
-                        };
-                    },
-
-                    draw: function() {
-                        var ctx = this._chart.ctx;
-                        var vm = this._view;
-                        var pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0;
-                        var arc = {
-                            x: vm.x,
-                            y: vm.y,
-                            innerRadius: vm.innerRadius,
-                            outerRadius: Math.max(vm.outerRadius - pixelMargin, 0),
-                            pixelMargin: pixelMargin,
-                            startAngle: vm.startAngle,
-                            endAngle: vm.endAngle,
-                            fullCircles: Math.floor(vm.circumference / TAU)
-                        };
-                        var i;
-
-                        ctx.save();
-
-                        ctx.fillStyle = vm.backgroundColor;
-                        ctx.strokeStyle = vm.borderColor;
-
-                        if (arc.fullCircles) {
-                            arc.endAngle = arc.startAngle + TAU;
-                            ctx.beginPath();
-                            ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);
-                            ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
-                            ctx.closePath();
-                            for (i = 0; i < arc.fullCircles; ++i) {
-                                ctx.fill();
-                            }
-                            arc.endAngle = arc.startAngle + vm.circumference % TAU;
-                        }
+          if (dist[ik] + dist[kj] < dist[ij]) {
+            dist[ij] = dist[ik] + dist[kj];
+            next[ij] = next[ik];
+          }
+        }
+      }
+    }
 
-                        ctx.beginPath();
-                        ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);
-                        ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);
-                        ctx.closePath();
-                        ctx.fill();
+    var getArgEle = function getArgEle(ele) {
+      return (string(ele) ? cy.filter(ele) : ele)[0];
+    };
+
+    var indexOfArgEle = function indexOfArgEle(ele) {
+      return indexOf(getArgEle(ele));
+    };
+
+    var res = {
+      distance: function distance(from, to) {
+        var i = indexOfArgEle(from);
+        var j = indexOfArgEle(to);
+        return dist[i * N + j];
+      },
+      path: function path(from, to) {
+        var i = indexOfArgEle(from);
+        var j = indexOfArgEle(to);
+        var fromNode = atIndex(i);
+
+        if (i === j) {
+          return fromNode.collection();
+        }
 
-                        if (vm.borderWidth) {
-                            drawBorder(ctx, vm, arc);
-                        }
+        if (next[i * N + j] == null) {
+          return cy.collection();
+        }
 
-                        ctx.restore();
-                    }
-                });
+        var path = cy.collection();
+        var prev = i;
+        var edge;
+        path.merge(fromNode);
+
+        while (i !== j) {
+          prev = i;
+          i = next[i * N + j];
+          edge = edgeNext[prev * N + i];
+          path.merge(edge);
+          path.merge(atIndex(i));
+        }
 
-                var valueOrDefault$1 = helpers$1.valueOrDefault;
-
-                var defaultColor = core_defaults.global.defaultColor;
-
-                core_defaults._set('global', {
-                    elements: {
-                        line: {
-                            tension: 0.4,
-                            backgroundColor: defaultColor,
-                            borderWidth: 3,
-                            borderColor: defaultColor,
-                            borderCapStyle: 'butt',
-                            borderDash: [],
-                            borderDashOffset: 0.0,
-                            borderJoinStyle: 'miter',
-                            capBezierPoints: true,
-                            fill: true, // do we fill in the area between the line and its base axis
-                        }
-                    }
-                });
+        return path;
+      }
+    };
+    return res;
+  } // floydWarshall
+
+}; // elesfn
+
+var bellmanFordDefaults = defaults({
+  weight: function weight(edge) {
+    return 1;
+  },
+  directed: false,
+  root: null
+});
+var elesfn$5 = {
+  // Implemented from pseudocode from wikipedia
+  bellmanFord: function bellmanFord(options) {
+    var _this = this;
+
+    var _bellmanFordDefaults = bellmanFordDefaults(options),
+        weight = _bellmanFordDefaults.weight,
+        directed = _bellmanFordDefaults.directed,
+        root = _bellmanFordDefaults.root;
+
+    var weightFn = weight;
+    var eles = this;
+    var cy = this.cy();
+
+    var _this$byGroup = this.byGroup(),
+        edges = _this$byGroup.edges,
+        nodes = _this$byGroup.nodes;
+
+    var numNodes = nodes.length;
+    var infoMap = new Map$1();
+    var hasNegativeWeightCycle = false;
+    var negativeWeightCycles = [];
+    root = cy.collection(root)[0]; // in case selector passed
+
+    edges.unmergeBy(function (edge) {
+      return edge.isLoop();
+    });
+    var numEdges = edges.length;
+
+    var getInfo = function getInfo(node) {
+      var obj = infoMap.get(node.id());
+
+      if (!obj) {
+        obj = {};
+        infoMap.set(node.id(), obj);
+      }
+
+      return obj;
+    };
+
+    var getNodeFromTo = function getNodeFromTo(to) {
+      return (string(to) ? cy.$(to) : to)[0];
+    };
+
+    var distanceTo = function distanceTo(to) {
+      return getInfo(getNodeFromTo(to)).dist;
+    };
+
+    var pathTo = function pathTo(to) {
+      var thisStart = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : root;
+      var end = getNodeFromTo(to);
+      var path = [];
+      var node = end;
+
+      for (;;) {
+        if (node == null) {
+          return _this.spawn();
+        }
 
-                var element_line = core_element.extend({
-                    _type: 'line',
-
-                    draw: function() {
-                        var me = this;
-                        var vm = me._view;
-                        var ctx = me._chart.ctx;
-                        var spanGaps = vm.spanGaps;
-                        var points = me._children.slice(); // clone array
-                        var globalDefaults = core_defaults.global;
-                        var globalOptionLineElements = globalDefaults.elements.line;
-                        var lastDrawnIndex = -1;
-                        var closePath = me._loop;
-                        var index, previous, currentVM;
-
-                        if (!points.length) {
-                            return;
-                        }
+        var _getInfo = getInfo(node),
+            edge = _getInfo.edge,
+            pred = _getInfo.pred;
 
-                        if (me._loop) {
-                            for (index = 0; index < points.length; ++index) {
-                                previous = helpers$1.previousItem(points, index);
-                                // If the line has an open path, shift the point array
-                                if (!points[index]._view.skip && previous._view.skip) {
-                                    points = points.slice(index).concat(points.slice(0, index));
-                                    closePath = spanGaps;
-                                    break;
-                                }
-                            }
-                            // If the line has a close path, add the first point again
-                            if (closePath) {
-                                points.push(points[0]);
-                            }
-                        }
+        path.unshift(node[0]);
 
-                        ctx.save();
+        if (node.same(thisStart) && path.length > 0) {
+          break;
+        }
 
-                        // Stroke Line Options
-                        ctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;
+        if (edge != null) {
+          path.unshift(edge);
+        }
 
-                        // IE 9 and 10 do not support line dash
-                        if (ctx.setLineDash) {
-                            ctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);
-                        }
+        node = pred;
+      }
 
-                        ctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);
-                        ctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;
-                        ctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);
-                        ctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;
+      return eles.spawn(path);
+    }; // Initializations { dist, pred, edge }
 
-                        // Stroke Line
-                        ctx.beginPath();
 
-                        // First point moves to it's starting position no matter what
-                        currentVM = points[0]._view;
-                        if (!currentVM.skip) {
-                            ctx.moveTo(currentVM.x, currentVM.y);
-                            lastDrawnIndex = 0;
-                        }
+    for (var i = 0; i < numNodes; i++) {
+      var node = nodes[i];
+      var info = getInfo(node);
 
-                        for (index = 1; index < points.length; ++index) {
-                            currentVM = points[index]._view;
-                            previous = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];
-
-                            if (!currentVM.skip) {
-                                if ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {
-                                    // There was a gap and this is the first point after the gap
-                                    ctx.moveTo(currentVM.x, currentVM.y);
-                                } else {
-                                    // Line to next point
-                                    helpers$1.canvas.lineTo(ctx, previous._view, currentVM);
-                                }
-                                lastDrawnIndex = index;
-                            }
-                        }
+      if (node.same(root)) {
+        info.dist = 0;
+      } else {
+        info.dist = Infinity;
+      }
 
-                        if (closePath) {
-                            ctx.closePath();
-                        }
+      info.pred = null;
+      info.edge = null;
+    } // Edges relaxation
 
-                        ctx.stroke();
-                        ctx.restore();
-                    }
-                });
 
-                var valueOrDefault$2 = helpers$1.valueOrDefault;
-
-                var defaultColor$1 = core_defaults.global.defaultColor;
-
-                core_defaults._set('global', {
-                    elements: {
-                        point: {
-                            radius: 3,
-                            pointStyle: 'circle',
-                            backgroundColor: defaultColor$1,
-                            borderColor: defaultColor$1,
-                            borderWidth: 1,
-                            // Hover
-                            hitRadius: 1,
-                            hoverRadius: 4,
-                            hoverBorderWidth: 1
-                        }
-                    }
-                });
+    var replacedEdge = false;
 
-                function xRange(mouseX) {
-                    var vm = this._view;
-                    return vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;
-                }
+    var checkForEdgeReplacement = function checkForEdgeReplacement(node1, node2, edge, info1, info2, weight) {
+      var dist = info1.dist + weight;
 
-                function yRange(mouseY) {
-                    var vm = this._view;
-                    return vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;
-                }
+      if (dist < info2.dist && !edge.same(info1.edge)) {
+        info2.dist = dist;
+        info2.pred = node1;
+        info2.edge = edge;
+        replacedEdge = true;
+      }
+    };
 
-                var element_point = core_element.extend({
-                    _type: 'point',
-
-                    inRange: function(mouseX, mouseY) {
-                        var vm = this._view;
-                        return vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;
-                    },
-
-                    inLabelRange: xRange,
-                    inXRange: xRange,
-                    inYRange: yRange,
-
-                    getCenterPoint: function() {
-                        var vm = this._view;
-                        return {
-                            x: vm.x,
-                            y: vm.y
-                        };
-                    },
-
-                    getArea: function() {
-                        return Math.PI * Math.pow(this._view.radius, 2);
-                    },
-
-                    tooltipPosition: function() {
-                        var vm = this._view;
-                        return {
-                            x: vm.x,
-                            y: vm.y,
-                            padding: vm.radius + vm.borderWidth
-                        };
-                    },
-
-                    draw: function(chartArea) {
-                        var vm = this._view;
-                        var ctx = this._chart.ctx;
-                        var pointStyle = vm.pointStyle;
-                        var rotation = vm.rotation;
-                        var radius = vm.radius;
-                        var x = vm.x;
-                        var y = vm.y;
-                        var globalDefaults = core_defaults.global;
-                        var defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow
-
-                        if (vm.skip) {
-                            return;
-                        }
+    for (var _i = 1; _i < numNodes; _i++) {
+      replacedEdge = false;
 
-                        // Clipping for Points.
-                        if (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {
-                            ctx.strokeStyle = vm.borderColor || defaultColor;
-                            ctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);
-                            ctx.fillStyle = vm.backgroundColor || defaultColor;
-                            helpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);
-                        }
-                    }
-                });
+      for (var e = 0; e < numEdges; e++) {
+        var edge = edges[e];
+        var src = edge.source();
+        var tgt = edge.target();
 
-                var defaultColor$2 = core_defaults.global.defaultColor;
+        var _weight = weightFn(edge);
 
-                core_defaults._set('global', {
-                    elements: {
-                        rectangle: {
-                            backgroundColor: defaultColor$2,
-                            borderColor: defaultColor$2,
-                            borderSkipped: 'bottom',
-                            borderWidth: 0
-                        }
-                    }
-                });
+        var srcInfo = getInfo(src);
+        var tgtInfo = getInfo(tgt);
+        checkForEdgeReplacement(src, tgt, edge, srcInfo, tgtInfo, _weight); // If undirected graph, we need to take into account the 'reverse' edge
 
-                function isVertical(vm) {
-                    return vm && vm.width !== undefined;
-                }
+        if (!directed) {
+          checkForEdgeReplacement(tgt, src, edge, tgtInfo, srcInfo, _weight);
+        }
+      }
 
-                /**
-                 * Helper function to get the bounds of the bar regardless of the orientation
-                 * @param bar {Chart.Element.Rectangle} the bar
-                 * @return {Bounds} bounds of the bar
-                 * @private
-                 */
-                function getBarBounds(vm) {
-                    var x1, x2, y1, y2, half;
-
-                    if (isVertical(vm)) {
-                        half = vm.width / 2;
-                        x1 = vm.x - half;
-                        x2 = vm.x + half;
-                        y1 = Math.min(vm.y, vm.base);
-                        y2 = Math.max(vm.y, vm.base);
-                    } else {
-                        half = vm.height / 2;
-                        x1 = Math.min(vm.x, vm.base);
-                        x2 = Math.max(vm.x, vm.base);
-                        y1 = vm.y - half;
-                        y2 = vm.y + half;
-                    }
+      if (!replacedEdge) {
+        break;
+      }
+    }
 
-                    return {
-                        left: x1,
-                        top: y1,
-                        right: x2,
-                        bottom: y2
-                    };
-                }
+    if (replacedEdge) {
+      // Check for negative weight cycles
+      for (var _e = 0; _e < numEdges; _e++) {
+        var _edge = edges[_e];
 
-                function swap(orig, v1, v2) {
-                    return orig === v1 ? v2 : orig === v2 ? v1 : orig;
-                }
+        var _src = _edge.source();
 
-                function parseBorderSkipped(vm) {
-                    var edge = vm.borderSkipped;
-                    var res = {};
+        var _tgt = _edge.target();
 
-                    if (!edge) {
-                        return res;
-                    }
+        var _weight2 = weightFn(_edge);
 
-                    if (vm.horizontal) {
-                        if (vm.base > vm.x) {
-                            edge = swap(edge, 'left', 'right');
-                        }
-                    } else if (vm.base < vm.y) {
-                        edge = swap(edge, 'bottom', 'top');
-                    }
+        var srcDist = getInfo(_src).dist;
+        var tgtDist = getInfo(_tgt).dist;
 
-                    res[edge] = true;
-                    return res;
-                }
+        if (srcDist + _weight2 < tgtDist || !directed && tgtDist + _weight2 < srcDist) {
+          warn('Graph contains a negative weight cycle for Bellman-Ford');
+          hasNegativeWeightCycle = true;
+          break;
+        }
+      }
+    }
 
-                function parseBorderWidth(vm, maxW, maxH) {
-                    var value = vm.borderWidth;
-                    var skip = parseBorderSkipped(vm);
-                    var t, r, b, l;
+    return {
+      distanceTo: distanceTo,
+      pathTo: pathTo,
+      hasNegativeWeightCycle: hasNegativeWeightCycle,
+      negativeWeightCycles: negativeWeightCycles
+    };
+  } // bellmanFord
 
-                    if (helpers$1.isObject(value)) {
-                        t = +value.top || 0;
-                        r = +value.right || 0;
-                        b = +value.bottom || 0;
-                        l = +value.left || 0;
-                    } else {
-                        t = r = b = l = +value || 0;
-                    }
+}; // elesfn
 
-                    return {
-                        t: skip.top || (t < 0) ? 0 : t > maxH ? maxH : t,
-                        r: skip.right || (r < 0) ? 0 : r > maxW ? maxW : r,
-                        b: skip.bottom || (b < 0) ? 0 : b > maxH ? maxH : b,
-                        l: skip.left || (l < 0) ? 0 : l > maxW ? maxW : l
-                    };
-                }
+var sqrt2 = Math.sqrt(2); // Function which colapses 2 (meta) nodes into one
+// Updates the remaining edge lists
+// Receives as a paramater the edge which causes the collapse
 
-                function boundingRects(vm) {
-                    var bounds = getBarBounds(vm);
-                    var width = bounds.right - bounds.left;
-                    var height = bounds.bottom - bounds.top;
-                    var border = parseBorderWidth(vm, width / 2, height / 2);
-
-                    return {
-                        outer: {
-                            x: bounds.left,
-                            y: bounds.top,
-                            w: width,
-                            h: height
-                        },
-                        inner: {
-                            x: bounds.left + border.l,
-                            y: bounds.top + border.t,
-                            w: width - border.l - border.r,
-                            h: height - border.t - border.b
-                        }
-                    };
-                }
+var collapse = function collapse(edgeIndex, nodeMap, remainingEdges) {
+  if (remainingEdges.length === 0) {
+    error("Karger-Stein must be run on a connected (sub)graph");
+  }
 
-                function inRange(vm, x, y) {
-                    var skipX = x === null;
-                    var skipY = y === null;
-                    var bounds = !vm || (skipX && skipY) ? false : getBarBounds(vm);
+  var edgeInfo = remainingEdges[edgeIndex];
+  var sourceIn = edgeInfo[1];
+  var targetIn = edgeInfo[2];
+  var partition1 = nodeMap[sourceIn];
+  var partition2 = nodeMap[targetIn];
+  var newEdges = remainingEdges; // re-use array
+  // Delete all edges between partition1 and partition2
+
+  for (var i = newEdges.length - 1; i >= 0; i--) {
+    var edge = newEdges[i];
+    var src = edge[1];
+    var tgt = edge[2];
+
+    if (nodeMap[src] === partition1 && nodeMap[tgt] === partition2 || nodeMap[src] === partition2 && nodeMap[tgt] === partition1) {
+      newEdges.splice(i, 1);
+    }
+  } // All edges pointing to partition2 should now point to partition1
 
-                    return bounds
-                        && (skipX || x >= bounds.left && x <= bounds.right)
-                        && (skipY || y >= bounds.top && y <= bounds.bottom);
-                }
 
-                var element_rectangle = core_element.extend({
-                    _type: 'rectangle',
+  for (var _i = 0; _i < newEdges.length; _i++) {
+    var _edge = newEdges[_i];
 
-                    draw: function() {
-                        var ctx = this._chart.ctx;
-                        var vm = this._view;
-                        var rects = boundingRects(vm);
-                        var outer = rects.outer;
-                        var inner = rects.inner;
+    if (_edge[1] === partition2) {
+      // Check source
+      newEdges[_i] = _edge.slice(); // copy
 
-                        ctx.fillStyle = vm.backgroundColor;
-                        ctx.fillRect(outer.x, outer.y, outer.w, outer.h);
+      newEdges[_i][1] = partition1;
+    } else if (_edge[2] === partition2) {
+      // Check target
+      newEdges[_i] = _edge.slice(); // copy
 
-                        if (outer.w === inner.w && outer.h === inner.h) {
-                            return;
-                        }
+      newEdges[_i][2] = partition1;
+    }
+  } // Move all nodes from partition2 to partition1
 
-                        ctx.save();
-                        ctx.beginPath();
-                        ctx.rect(outer.x, outer.y, outer.w, outer.h);
-                        ctx.clip();
-                        ctx.fillStyle = vm.borderColor;
-                        ctx.rect(inner.x, inner.y, inner.w, inner.h);
-                        ctx.fill('evenodd');
-                        ctx.restore();
-                    },
-
-                    height: function() {
-                        var vm = this._view;
-                        return vm.base - vm.y;
-                    },
-
-                    inRange: function(mouseX, mouseY) {
-                        return inRange(this._view, mouseX, mouseY);
-                    },
-
-                    inLabelRange: function(mouseX, mouseY) {
-                        var vm = this._view;
-                        return isVertical(vm)
-                            ? inRange(vm, mouseX, null)
-                            : inRange(vm, null, mouseY);
-                    },
-
-                    inXRange: function(mouseX) {
-                        return inRange(this._view, mouseX, null);
-                    },
-
-                    inYRange: function(mouseY) {
-                        return inRange(this._view, null, mouseY);
-                    },
-
-                    getCenterPoint: function() {
-                        var vm = this._view;
-                        var x, y;
-                        if (isVertical(vm)) {
-                            x = vm.x;
-                            y = (vm.y + vm.base) / 2;
-                        } else {
-                            x = (vm.x + vm.base) / 2;
-                            y = vm.y;
-                        }
 
-                        return {x: x, y: y};
-                    },
+  for (var _i2 = 0; _i2 < nodeMap.length; _i2++) {
+    if (nodeMap[_i2] === partition2) {
+      nodeMap[_i2] = partition1;
+    }
+  }
 
-                    getArea: function() {
-                        var vm = this._view;
+  return newEdges;
+}; // Contracts a graph until we reach a certain number of meta nodes
 
-                        return isVertical(vm)
-                            ? vm.width * Math.abs(vm.y - vm.base)
-                            : vm.height * Math.abs(vm.x - vm.base);
-                    },
 
-                    tooltipPosition: function() {
-                        var vm = this._view;
-                        return {
-                            x: vm.x,
-                            y: vm.y
-                        };
-                    }
-                });
+var contractUntil = function contractUntil(metaNodeMap, remainingEdges, size, sizeLimit) {
+  while (size > sizeLimit) {
+    // Choose an edge randomly
+    var edgeIndex = Math.floor(Math.random() * remainingEdges.length); // Collapse graph based on edge
 
-                var elements = {};
-                var Arc = element_arc;
-                var Line = element_line;
-                var Point = element_point;
-                var Rectangle = element_rectangle;
-                elements.Arc = Arc;
-                elements.Line = Line;
-                elements.Point = Point;
-                elements.Rectangle = Rectangle;
-
-                var deprecated = helpers$1._deprecated;
-                var valueOrDefault$3 = helpers$1.valueOrDefault;
-
-                core_defaults._set('bar', {
-                    hover: {
-                        mode: 'label'
-                    },
-
-                    scales: {
-                        xAxes: [{
-                            type: 'category',
-                            offset: true,
-                            gridLines: {
-                                offsetGridLines: true
-                            }
-                        }],
+    remainingEdges = collapse(edgeIndex, metaNodeMap, remainingEdges);
+    size--;
+  }
 
-                        yAxes: [{
-                            type: 'linear'
-                        }]
-                    }
-                });
+  return remainingEdges;
+};
 
-                core_defaults._set('global', {
-                    datasets: {
-                        bar: {
-                            categoryPercentage: 0.8,
-                            barPercentage: 0.9
-                        }
-                    }
-                });
+var elesfn$6 = {
+  // Computes the minimum cut of an undirected graph
+  // Returns the correct answer with high probability
+  kargerStein: function kargerStein() {
+    var _this = this;
 
-                /**
-                 * Computes the "optimal" sample size to maintain bars equally sized while preventing overlap.
-                 * @private
-                 */
-                function computeMinSampleSize(scale, pixels) {
-                    var min = scale._length;
-                    var prev, curr, i, ilen;
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges;
 
-                    for (i = 1, ilen = pixels.length; i < ilen; ++i) {
-                        min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));
-                    }
+    edges.unmergeBy(function (edge) {
+      return edge.isLoop();
+    });
+    var numNodes = nodes.length;
+    var numEdges = edges.length;
+    var numIter = Math.ceil(Math.pow(Math.log(numNodes) / Math.LN2, 2));
+    var stopSize = Math.floor(numNodes / sqrt2);
 
-                    for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {
-                        curr = scale.getPixelForTick(i);
-                        min = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;
-                        prev = curr;
-                    }
+    if (numNodes < 2) {
+      error('At least 2 nodes are required for Karger-Stein algorithm');
+      return undefined;
+    } // Now store edge destination as indexes
+    // Format for each edge (edge index, source node index, target node index)
 
-                    return min;
-                }
 
-                /**
-                 * Computes an "ideal" category based on the absolute bar thickness or, if undefined or null,
-                 * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This
-                 * mode currently always generates bars equally sized (until we introduce scriptable options?).
-                 * @private
-                 */
-                function computeFitCategoryTraits(index, ruler, options) {
-                    var thickness = options.barThickness;
-                    var count = ruler.stackCount;
-                    var curr = ruler.pixels[index];
-                    var min = helpers$1.isNullOrUndef(thickness)
-                        ? computeMinSampleSize(ruler.scale, ruler.pixels)
-                        : -1;
-                    var size, ratio;
-
-                    if (helpers$1.isNullOrUndef(thickness)) {
-                        size = min * options.categoryPercentage;
-                        ratio = options.barPercentage;
-                    } else {
-                        // When bar thickness is enforced, category and bar percentages are ignored.
-                        // Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')
-                        // and deprecate barPercentage since this value is ignored when thickness is absolute.
-                        size = thickness * count;
-                        ratio = 1;
-                    }
+    var edgeIndexes = [];
 
-                    return {
-                        chunk: size / count,
-                        ratio: ratio,
-                        start: curr - (size / 2)
-                    };
-                }
+    for (var i = 0; i < numEdges; i++) {
+      var e = edges[i];
+      edgeIndexes.push([i, nodes.indexOf(e.source()), nodes.indexOf(e.target())]);
+    } // We will store the best cut found here
 
-                /**
-                 * Computes an "optimal" category that globally arranges bars side by side (no gap when
-                 * percentage options are 1), based on the previous and following categories. This mode
-                 * generates bars with different widths when data are not evenly spaced.
-                 * @private
-                 */
-                function computeFlexCategoryTraits(index, ruler, options) {
-                    var pixels = ruler.pixels;
-                    var curr = pixels[index];
-                    var prev = index > 0 ? pixels[index - 1] : null;
-                    var next = index < pixels.length - 1 ? pixels[index + 1] : null;
-                    var percent = options.categoryPercentage;
-                    var start, size;
-
-                    if (prev === null) {
-                        // first data: its size is double based on the next point or,
-                        // if it's also the last data, we use the scale size.
-                        prev = curr - (next === null ? ruler.end - ruler.start : next - curr);
-                    }
 
-                    if (next === null) {
-                        // last data: its size is also double based on the previous point.
-                        next = curr + curr - prev;
-                    }
+    var minCutSize = Infinity;
+    var minCutEdgeIndexes = [];
+    var minCutNodeMap = new Array(numNodes); // Initial meta node partition
 
-                    start = curr - (curr - Math.min(prev, next)) / 2 * percent;
-                    size = Math.abs(next - prev) / 2 * percent;
+    var metaNodeMap = new Array(numNodes);
+    var metaNodeMap2 = new Array(numNodes);
 
-                    return {
-                        chunk: size / ruler.stackCount,
-                        ratio: options.barPercentage,
-                        start: start
-                    };
-                }
+    var copyNodesMap = function copyNodesMap(from, to) {
+      for (var _i3 = 0; _i3 < numNodes; _i3++) {
+        to[_i3] = from[_i3];
+      }
+    }; // Main loop
 
-                var controller_bar = core_datasetController.extend({
-
-                    dataElementType: elements.Rectangle,
-
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: [
-                        'backgroundColor',
-                        'borderColor',
-                        'borderSkipped',
-                        'borderWidth',
-                        'barPercentage',
-                        'barThickness',
-                        'categoryPercentage',
-                        'maxBarThickness',
-                        'minBarLength'
-                    ],
-
-                    initialize: function() {
-                        var me = this;
-                        var meta, scaleOpts;
-
-                        core_datasetController.prototype.initialize.apply(me, arguments);
-
-                        meta = me.getMeta();
-                        meta.stack = me.getDataset().stack;
-                        meta.bar = true;
-
-                        scaleOpts = me._getIndexScale().options;
-                        deprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');
-                        deprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');
-                        deprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');
-                        deprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');
-                        deprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');
-                    },
-
-                    update: function(reset) {
-                        var me = this;
-                        var rects = me.getMeta().data;
-                        var i, ilen;
-
-                        me._ruler = me.getRuler();
-
-                        for (i = 0, ilen = rects.length; i < ilen; ++i) {
-                            me.updateElement(rects[i], i, reset);
-                        }
-                    },
-
-                    updateElement: function(rectangle, index, reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var dataset = me.getDataset();
-                        var options = me._resolveDataElementOptions(rectangle, index);
-
-                        rectangle._xScale = me.getScaleForId(meta.xAxisID);
-                        rectangle._yScale = me.getScaleForId(meta.yAxisID);
-                        rectangle._datasetIndex = me.index;
-                        rectangle._index = index;
-                        rectangle._model = {
-                            backgroundColor: options.backgroundColor,
-                            borderColor: options.borderColor,
-                            borderSkipped: options.borderSkipped,
-                            borderWidth: options.borderWidth,
-                            datasetLabel: dataset.label,
-                            label: me.chart.data.labels[index]
-                        };
-
-                        if (helpers$1.isArray(dataset.data[index])) {
-                            rectangle._model.borderSkipped = null;
-                        }
 
-                        me._updateElementGeometry(rectangle, index, reset, options);
-
-                        rectangle.pivot();
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _updateElementGeometry: function(rectangle, index, reset, options) {
-                        var me = this;
-                        var model = rectangle._model;
-                        var vscale = me._getValueScale();
-                        var base = vscale.getBasePixel();
-                        var horizontal = vscale.isHorizontal();
-                        var ruler = me._ruler || me.getRuler();
-                        var vpixels = me.calculateBarValuePixels(me.index, index, options);
-                        var ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);
-
-                        model.horizontal = horizontal;
-                        model.base = reset ? base : vpixels.base;
-                        model.x = horizontal ? reset ? base : vpixels.head : ipixels.center;
-                        model.y = horizontal ? ipixels.center : reset ? base : vpixels.head;
-                        model.height = horizontal ? ipixels.size : undefined;
-                        model.width = horizontal ? undefined : ipixels.size;
-                    },
-
-                    /**
-                     * Returns the stacks based on groups and bar visibility.
-                     * @param {number} [last] - The dataset index
-                     * @returns {string[]} The list of stack IDs
-                     * @private
-                     */
-                    _getStacks: function(last) {
-                        var me = this;
-                        var scale = me._getIndexScale();
-                        var metasets = scale._getMatchingVisibleMetas(me._type);
-                        var stacked = scale.options.stacked;
-                        var ilen = metasets.length;
-                        var stacks = [];
-                        var i, meta;
-
-                        for (i = 0; i < ilen; ++i) {
-                            meta = metasets[i];
-                            // stacked   | meta.stack
-                            //           | found | not found | undefined
-                            // false     |   x   |     x     |     x
-                            // true      |       |     x     |
-                            // undefined |       |     x     |     x
-                            if (stacked === false || stacks.indexOf(meta.stack) === -1 ||
-                                (stacked === undefined && meta.stack === undefined)) {
-                                stacks.push(meta.stack);
-                            }
-                            if (meta.index === last) {
-                                break;
-                            }
-                        }
+    for (var iter = 0; iter <= numIter; iter++) {
+      // Reset meta node partition
+      for (var _i4 = 0; _i4 < numNodes; _i4++) {
+        metaNodeMap[_i4] = _i4;
+      } // Contract until stop point (stopSize nodes)
 
-                        return stacks;
-                    },
-
-                    /**
-                     * Returns the effective number of stacks based on groups and bar visibility.
-                     * @private
-                     */
-                    getStackCount: function() {
-                        return this._getStacks().length;
-                    },
-
-                    /**
-                     * Returns the stack index for the given dataset based on groups and bar visibility.
-                     * @param {number} [datasetIndex] - The dataset index
-                     * @param {string} [name] - The stack name to find
-                     * @returns {number} The stack index
-                     * @private
-                     */
-                    getStackIndex: function(datasetIndex, name) {
-                        var stacks = this._getStacks(datasetIndex);
-                        var index = (name !== undefined)
-                            ? stacks.indexOf(name)
-                            : -1; // indexOf returns -1 if element is not present
-
-                        return (index === -1)
-                            ? stacks.length - 1
-                            : index;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    getRuler: function() {
-                        var me = this;
-                        var scale = me._getIndexScale();
-                        var pixels = [];
-                        var i, ilen;
-
-                        for (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {
-                            pixels.push(scale.getPixelForValue(null, i, me.index));
-                        }
 
-                        return {
-                            pixels: pixels,
-                            start: scale._startPixel,
-                            end: scale._endPixel,
-                            stackCount: me.getStackCount(),
-                            scale: scale
-                        };
-                    },
-
-                    /**
-                     * Note: pixel values are not clamped to the scale area.
-                     * @private
-                     */
-                    calculateBarValuePixels: function(datasetIndex, index, options) {
-                        var me = this;
-                        var chart = me.chart;
-                        var scale = me._getValueScale();
-                        var isHorizontal = scale.isHorizontal();
-                        var datasets = chart.data.datasets;
-                        var metasets = scale._getMatchingVisibleMetas(me._type);
-                        var value = scale._parseValue(datasets[datasetIndex].data[index]);
-                        var minBarLength = options.minBarLength;
-                        var stacked = scale.options.stacked;
-                        var stack = me.getMeta().stack;
-                        var start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;
-                        var length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;
-                        var ilen = metasets.length;
-                        var i, imeta, ivalue, base, head, size, stackLength;
-
-                        if (stacked || (stacked === undefined && stack !== undefined)) {
-                            for (i = 0; i < ilen; ++i) {
-                                imeta = metasets[i];
-
-                                if (imeta.index === datasetIndex) {
-                                    break;
-                                }
-
-                                if (imeta.stack === stack) {
-                                    stackLength = scale._parseValue(datasets[imeta.index].data[index]);
-                                    ivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;
-
-                                    if ((value.min < 0 && ivalue < 0) || (value.max >= 0 && ivalue > 0)) {
-                                        start += ivalue;
-                                    }
-                                }
-                            }
-                        }
+      var edgesState = contractUntil(metaNodeMap, edgeIndexes.slice(), numNodes, stopSize);
+      var edgesState2 = edgesState.slice(); // copy
+      // Create a copy of the colapsed nodes state
 
-                        base = scale.getPixelForValue(start);
-                        head = scale.getPixelForValue(start + length);
-                        size = head - base;
+      copyNodesMap(metaNodeMap, metaNodeMap2); // Run 2 iterations starting in the stop state
 
-                        if (minBarLength !== undefined && Math.abs(size) < minBarLength) {
-                            size = minBarLength;
-                            if (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {
-                                head = base - minBarLength;
-                            } else {
-                                head = base + minBarLength;
-                            }
-                        }
+      var res1 = contractUntil(metaNodeMap, edgesState, stopSize, 2);
+      var res2 = contractUntil(metaNodeMap2, edgesState2, stopSize, 2); // Is any of the 2 results the best cut so far?
 
-                        return {
-                            size: size,
-                            base: base,
-                            head: head,
-                            center: head + size / 2
-                        };
-                    },
-
-                    /**
-                     * @private
-                     */
-                    calculateBarIndexPixels: function(datasetIndex, index, ruler, options) {
-                        var me = this;
-                        var range = options.barThickness === 'flex'
-                            ? computeFlexCategoryTraits(index, ruler, options)
-                            : computeFitCategoryTraits(index, ruler, options);
-
-                        var stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);
-                        var center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);
-                        var size = Math.min(
-                            valueOrDefault$3(options.maxBarThickness, Infinity),
-                            range.chunk * range.ratio);
-
-                        return {
-                            base: center - size / 2,
-                            head: center + size / 2,
-                            center: center,
-                            size: size
-                        };
-                    },
-
-                    draw: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var scale = me._getValueScale();
-                        var rects = me.getMeta().data;
-                        var dataset = me.getDataset();
-                        var ilen = rects.length;
-                        var i = 0;
-
-                        helpers$1.canvas.clipArea(chart.ctx, chart.chartArea);
-
-                        for (; i < ilen; ++i) {
-                            var val = scale._parseValue(dataset.data[i]);
-                            if (!isNaN(val.min) && !isNaN(val.max)) {
-                                rects[i].draw();
-                            }
-                        }
+      if (res1.length <= res2.length && res1.length < minCutSize) {
+        minCutSize = res1.length;
+        minCutEdgeIndexes = res1;
+        copyNodesMap(metaNodeMap, minCutNodeMap);
+      } else if (res2.length <= res1.length && res2.length < minCutSize) {
+        minCutSize = res2.length;
+        minCutEdgeIndexes = res2;
+        copyNodesMap(metaNodeMap2, minCutNodeMap);
+      }
+    } // end of main loop
+    // Construct result
 
-                        helpers$1.canvas.unclipArea(chart.ctx);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDataElementOptions: function() {
-                        var me = this;
-                        var values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));
-                        var indexOpts = me._getIndexScale().options;
-                        var valueOpts = me._getValueScale().options;
-
-                        values.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);
-                        values.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);
-                        values.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);
-                        values.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);
-                        values.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);
-
-                        return values;
-                    }
 
-                });
+    var cut = this.spawn(minCutEdgeIndexes.map(function (e) {
+      return edges[e[0]];
+    }));
+    var partition1 = this.spawn();
+    var partition2 = this.spawn(); // traverse metaNodeMap for best cut
 
-                var valueOrDefault$4 = helpers$1.valueOrDefault;
-                var resolve$1 = helpers$1.options.resolve;
-
-                core_defaults._set('bubble', {
-                    hover: {
-                        mode: 'single'
-                    },
-
-                    scales: {
-                        xAxes: [{
-                            type: 'linear', // bubble should probably use a linear scale by default
-                            position: 'bottom',
-                            id: 'x-axis-0' // need an ID so datasets can reference the scale
-                        }],
-                        yAxes: [{
-                            type: 'linear',
-                            position: 'left',
-                            id: 'y-axis-0'
-                        }]
-                    },
-
-                    tooltips: {
-                        callbacks: {
-                            title: function() {
-                                // Title doesn't make sense for scatter since we format the data as a point
-                                return '';
-                            },
-                            label: function(item, data) {
-                                var datasetLabel = data.datasets[item.datasetIndex].label || '';
-                                var dataPoint = data.datasets[item.datasetIndex].data[item.index];
-                                return datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';
-                            }
-                        }
-                    }
-                });
+    var witnessNodePartition = minCutNodeMap[0];
 
-                var controller_bubble = core_datasetController.extend({
-                    /**
-                     * @protected
-                     */
-                    dataElementType: elements.Point,
-
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: [
-                        'backgroundColor',
-                        'borderColor',
-                        'borderWidth',
-                        'hoverBackgroundColor',
-                        'hoverBorderColor',
-                        'hoverBorderWidth',
-                        'hoverRadius',
-                        'hitRadius',
-                        'pointStyle',
-                        'rotation'
-                    ],
-
-                    /**
-                     * @protected
-                     */
-                    update: function(reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var points = meta.data;
-
-                        // Update Points
-                        helpers$1.each(points, function(point, index) {
-                            me.updateElement(point, index, reset);
-                        });
-                    },
-
-                    /**
-                     * @protected
-                     */
-                    updateElement: function(point, index, reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var custom = point.custom || {};
-                        var xScale = me.getScaleForId(meta.xAxisID);
-                        var yScale = me.getScaleForId(meta.yAxisID);
-                        var options = me._resolveDataElementOptions(point, index);
-                        var data = me.getDataset().data[index];
-                        var dsIndex = me.index;
-
-                        var x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);
-                        var y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);
-
-                        point._xScale = xScale;
-                        point._yScale = yScale;
-                        point._options = options;
-                        point._datasetIndex = dsIndex;
-                        point._index = index;
-                        point._model = {
-                            backgroundColor: options.backgroundColor,
-                            borderColor: options.borderColor,
-                            borderWidth: options.borderWidth,
-                            hitRadius: options.hitRadius,
-                            pointStyle: options.pointStyle,
-                            rotation: options.rotation,
-                            radius: reset ? 0 : options.radius,
-                            skip: custom.skip || isNaN(x) || isNaN(y),
-                            x: x,
-                            y: y,
-                        };
-
-                        point.pivot();
-                    },
-
-                    /**
-                     * @protected
-                     */
-                    setHoverStyle: function(point) {
-                        var model = point._model;
-                        var options = point._options;
-                        var getHoverColor = helpers$1.getHoverColor;
-
-                        point.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth,
-                            radius: model.radius
-                        };
-
-                        model.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
-                        model.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));
-                        model.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);
-                        model.radius = options.radius + options.hoverRadius;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDataElementOptions: function(point, index) {
-                        var me = this;
-                        var chart = me.chart;
-                        var dataset = me.getDataset();
-                        var custom = point.custom || {};
-                        var data = dataset.data[index] || {};
-                        var values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments);
-
-                        // Scriptable options
-                        var context = {
-                            chart: chart,
-                            dataIndex: index,
-                            dataset: dataset,
-                            datasetIndex: me.index
-                        };
-
-                        // In case values were cached (and thus frozen), we need to clone the values
-                        if (me._cachedDataOpts === values) {
-                            values = helpers$1.extend({}, values);
-                        }
+    for (var _i5 = 0; _i5 < minCutNodeMap.length; _i5++) {
+      var partitionId = minCutNodeMap[_i5];
+      var node = nodes[_i5];
 
-                        // Custom radius resolution
-                        values.radius = resolve$1([
-                            custom.radius,
-                            data.r,
-                            me._config.radius,
-                            chart.options.elements.point.radius
-                        ], context, index);
+      if (partitionId === witnessNodePartition) {
+        partition1.merge(node);
+      } else {
+        partition2.merge(node);
+      }
+    } // construct components corresponding to each disjoint subset of nodes
 
-                        return values;
-                    }
-                });
 
-                var valueOrDefault$5 = helpers$1.valueOrDefault;
-
-                var PI$1 = Math.PI;
-                var DOUBLE_PI$1 = PI$1 * 2;
-                var HALF_PI$1 = PI$1 / 2;
-
-                core_defaults._set('doughnut', {
-                    animation: {
-                        // Boolean - Whether we animate the rotation of the Doughnut
-                        animateRotate: true,
-                        // Boolean - Whether we animate scaling the Doughnut from the centre
-                        animateScale: false
-                    },
-                    hover: {
-                        mode: 'single'
-                    },
-                    legendCallback: function(chart) {
-                        var list = document.createElement('ul');
-                        var data = chart.data;
-                        var datasets = data.datasets;
-                        var labels = data.labels;
-                        var i, ilen, listItem, listItemSpan;
-
-                        list.setAttribute('class', chart.id + '-legend');
-                        if (datasets.length) {
-                            for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {
-                                listItem = list.appendChild(document.createElement('li'));
-                                listItemSpan = listItem.appendChild(document.createElement('span'));
-                                listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];
-                                if (labels[i]) {
-                                    listItem.appendChild(document.createTextNode(labels[i]));
-                                }
-                            }
-                        }
+    var constructComponent = function constructComponent(subset) {
+      var component = _this.spawn();
+
+      subset.forEach(function (node) {
+        component.merge(node);
+        node.connectedEdges().forEach(function (edge) {
+          // ensure edge is within calling collection and edge is not in cut
+          if (_this.contains(edge) && !cut.contains(edge)) {
+            component.merge(edge);
+          }
+        });
+      });
+      return component;
+    };
+
+    var components = [constructComponent(partition1), constructComponent(partition2)];
+    var ret = {
+      cut: cut,
+      components: components,
+      // n.b. partitions are included to be compatible with the old api spec
+      // (could be removed in a future major version)
+      partition1: partition1,
+      partition2: partition2
+    };
+    return ret;
+  }
+}; // elesfn
+
+var copyPosition = function copyPosition(p) {
+  return {
+    x: p.x,
+    y: p.y
+  };
+};
+var modelToRenderedPosition = function modelToRenderedPosition(p, zoom, pan) {
+  return {
+    x: p.x * zoom + pan.x,
+    y: p.y * zoom + pan.y
+  };
+};
+var renderedToModelPosition = function renderedToModelPosition(p, zoom, pan) {
+  return {
+    x: (p.x - pan.x) / zoom,
+    y: (p.y - pan.y) / zoom
+  };
+};
+var array2point = function array2point(arr) {
+  return {
+    x: arr[0],
+    y: arr[1]
+  };
+};
+var min = function min(arr) {
+  var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
+  var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
+  var min = Infinity;
+
+  for (var i = begin; i < end; i++) {
+    var val = arr[i];
+
+    if (isFinite(val)) {
+      min = Math.min(val, min);
+    }
+  }
 
-                        return list.outerHTML;
-                    },
-                    legend: {
-                        labels: {
-                            generateLabels: function(chart) {
-                                var data = chart.data;
-                                if (data.labels.length && data.datasets.length) {
-                                    return data.labels.map(function(label, i) {
-                                        var meta = chart.getDatasetMeta(0);
-                                        var style = meta.controller.getStyle(i);
-
-                                        return {
-                                            text: label,
-                                            fillStyle: style.backgroundColor,
-                                            strokeStyle: style.borderColor,
-                                            lineWidth: style.borderWidth,
-                                            hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,
-
-                                            // Extra data used for toggling the correct item
-                                            index: i
-                                        };
-                                    });
-                                }
-                                return [];
-                            }
-                        },
-
-                        onClick: function(e, legendItem) {
-                            var index = legendItem.index;
-                            var chart = this.chart;
-                            var i, ilen, meta;
-
-                            for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
-                                meta = chart.getDatasetMeta(i);
-                                // toggle visibility of index if exists
-                                if (meta.data[index]) {
-                                    meta.data[index].hidden = !meta.data[index].hidden;
-                                }
-                            }
+  return min;
+};
+var max = function max(arr) {
+  var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
+  var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
+  var max = -Infinity;
 
-                            chart.update();
-                        }
-                    },
-
-                    // The percentage of the chart that we cut out of the middle.
-                    cutoutPercentage: 50,
-
-                    // The rotation of the chart, where the first data arc begins.
-                    rotation: -HALF_PI$1,
-
-                    // The total circumference of the chart.
-                    circumference: DOUBLE_PI$1,
-
-                    // Need to override these to give a nice default
-                    tooltips: {
-                        callbacks: {
-                            title: function() {
-                                return '';
-                            },
-                            label: function(tooltipItem, data) {
-                                var dataLabel = data.labels[tooltipItem.index];
-                                var value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
-
-                                if (helpers$1.isArray(dataLabel)) {
-                                    // show value on first line of multiline label
-                                    // need to clone because we are changing the value
-                                    dataLabel = dataLabel.slice();
-                                    dataLabel[0] += value;
-                                } else {
-                                    dataLabel += value;
-                                }
-
-                                return dataLabel;
-                            }
-                        }
-                    }
-                });
+  for (var i = begin; i < end; i++) {
+    var val = arr[i];
 
-                var controller_doughnut = core_datasetController.extend({
+    if (isFinite(val)) {
+      max = Math.max(val, max);
+    }
+  }
 
-                    dataElementType: elements.Arc,
+  return max;
+};
+var mean = function mean(arr) {
+  var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
+  var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
+  var total = 0;
+  var n = 0;
 
-                    linkScales: helpers$1.noop,
+  for (var i = begin; i < end; i++) {
+    var val = arr[i];
 
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: [
-                        'backgroundColor',
-                        'borderColor',
-                        'borderWidth',
-                        'borderAlign',
-                        'hoverBackgroundColor',
-                        'hoverBorderColor',
-                        'hoverBorderWidth',
-                    ],
+    if (isFinite(val)) {
+      total += val;
+      n++;
+    }
+  }
 
-                    // Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly
-                    getRingIndex: function(datasetIndex) {
-                        var ringIndex = 0;
+  return total / n;
+};
+var median = function median(arr) {
+  var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
+  var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
+  var copy = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
+  var sort = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
+  var includeHoles = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
+
+  if (copy) {
+    arr = arr.slice(begin, end);
+  } else {
+    if (end < arr.length) {
+      arr.splice(end, arr.length - end);
+    }
 
-                        for (var j = 0; j < datasetIndex; ++j) {
-                            if (this.chart.isDatasetVisible(j)) {
-                                ++ringIndex;
-                            }
-                        }
+    if (begin > 0) {
+      arr.splice(0, begin);
+    }
+  } // all non finite (e.g. Infinity, NaN) elements must be -Infinity so they go to the start
 
-                        return ringIndex;
-                    },
-
-                    update: function(reset) {
-                        var me = this;
-                        var chart = me.chart;
-                        var chartArea = chart.chartArea;
-                        var opts = chart.options;
-                        var ratioX = 1;
-                        var ratioY = 1;
-                        var offsetX = 0;
-                        var offsetY = 0;
-                        var meta = me.getMeta();
-                        var arcs = meta.data;
-                        var cutout = opts.cutoutPercentage / 100 || 0;
-                        var circumference = opts.circumference;
-                        var chartWeight = me._getRingWeight(me.index);
-                        var maxWidth, maxHeight, i, ilen;
-
-                        // If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc
-                        if (circumference < DOUBLE_PI$1) {
-                            var startAngle = opts.rotation % DOUBLE_PI$1;
-                            startAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;
-                            var endAngle = startAngle + circumference;
-                            var startX = Math.cos(startAngle);
-                            var startY = Math.sin(startAngle);
-                            var endX = Math.cos(endAngle);
-                            var endY = Math.sin(endAngle);
-                            var contains0 = (startAngle <= 0 && endAngle >= 0) || endAngle >= DOUBLE_PI$1;
-                            var contains90 = (startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1) || endAngle >= DOUBLE_PI$1 + HALF_PI$1;
-                            var contains180 = startAngle === -PI$1 || endAngle >= PI$1;
-                            var contains270 = (startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1) || endAngle >= PI$1 + HALF_PI$1;
-                            var minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);
-                            var minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);
-                            var maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);
-                            var maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);
-                            ratioX = (maxX - minX) / 2;
-                            ratioY = (maxY - minY) / 2;
-                            offsetX = -(maxX + minX) / 2;
-                            offsetY = -(maxY + minY) / 2;
-                        }
 
-                        for (i = 0, ilen = arcs.length; i < ilen; ++i) {
-                            arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);
-                        }
+  var off = 0; // offset from non-finite values
 
-                        chart.borderWidth = me.getMaxBorderWidth();
-                        maxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;
-                        maxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;
-                        chart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);
-                        chart.innerRadius = Math.max(chart.outerRadius * cutout, 0);
-                        chart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);
-                        chart.offsetX = offsetX * chart.outerRadius;
-                        chart.offsetY = offsetY * chart.outerRadius;
+  for (var i = arr.length - 1; i >= 0; i--) {
+    var v = arr[i];
 
-                        meta.total = me.calculateTotal();
+    if (includeHoles) {
+      if (!isFinite(v)) {
+        arr[i] = -Infinity;
+        off++;
+      }
+    } else {
+      // just remove it if we don't want to consider holes
+      arr.splice(i, 1);
+    }
+  }
 
-                        me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);
-                        me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);
+  if (sort) {
+    arr.sort(function (a, b) {
+      return a - b;
+    }); // requires copy = true if you don't want to change the orig
+  }
 
-                        for (i = 0, ilen = arcs.length; i < ilen; ++i) {
-                            me.updateElement(arcs[i], i, reset);
-                        }
-                    },
-
-                    updateElement: function(arc, index, reset) {
-                        var me = this;
-                        var chart = me.chart;
-                        var chartArea = chart.chartArea;
-                        var opts = chart.options;
-                        var animationOpts = opts.animation;
-                        var centerX = (chartArea.left + chartArea.right) / 2;
-                        var centerY = (chartArea.top + chartArea.bottom) / 2;
-                        var startAngle = opts.rotation; // non reset case handled later
-                        var endAngle = opts.rotation; // non reset case handled later
-                        var dataset = me.getDataset();
-                        var circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);
-                        var innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;
-                        var outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;
-                        var options = arc._options || {};
-
-                        helpers$1.extend(arc, {
-                            // Utility
-                            _datasetIndex: me.index,
-                            _index: index,
-
-                            // Desired view properties
-                            _model: {
-                                backgroundColor: options.backgroundColor,
-                                borderColor: options.borderColor,
-                                borderWidth: options.borderWidth,
-                                borderAlign: options.borderAlign,
-                                x: centerX + chart.offsetX,
-                                y: centerY + chart.offsetY,
-                                startAngle: startAngle,
-                                endAngle: endAngle,
-                                circumference: circumference,
-                                outerRadius: outerRadius,
-                                innerRadius: innerRadius,
-                                label: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])
-                            }
-                        });
+  var len = arr.length;
+  var mid = Math.floor(len / 2);
 
-                        var model = arc._model;
+  if (len % 2 !== 0) {
+    return arr[mid + 1 + off];
+  } else {
+    return (arr[mid - 1 + off] + arr[mid + off]) / 2;
+  }
+};
+var deg2rad = function deg2rad(deg) {
+  return Math.PI * deg / 180;
+};
+var getAngleFromDisp = function getAngleFromDisp(dispX, dispY) {
+  return Math.atan2(dispY, dispX) - Math.PI / 2;
+};
+var log2 = Math.log2 || function (n) {
+  return Math.log(n) / Math.log(2);
+};
+var signum = function signum(x) {
+  if (x > 0) {
+    return 1;
+  } else if (x < 0) {
+    return -1;
+  } else {
+    return 0;
+  }
+};
+var dist = function dist(p1, p2) {
+  return Math.sqrt(sqdist(p1, p2));
+};
+var sqdist = function sqdist(p1, p2) {
+  var dx = p2.x - p1.x;
+  var dy = p2.y - p1.y;
+  return dx * dx + dy * dy;
+};
+var inPlaceSumNormalize = function inPlaceSumNormalize(v) {
+  var length = v.length; // First, get sum of all elements
+
+  var total = 0;
+
+  for (var i = 0; i < length; i++) {
+    total += v[i];
+  } // Now, divide each by the sum of all elements
+
+
+  for (var _i = 0; _i < length; _i++) {
+    v[_i] = v[_i] / total;
+  }
 
-                        // Set correct angles if not resetting
-                        if (!reset || !animationOpts.animateRotate) {
-                            if (index === 0) {
-                                model.startAngle = opts.rotation;
-                            } else {
-                                model.startAngle = me.getMeta().data[index - 1]._model.endAngle;
-                            }
+  return v;
+};
+
+var qbezierAt = function qbezierAt(p0, p1, p2, t) {
+  return (1 - t) * (1 - t) * p0 + 2 * (1 - t) * t * p1 + t * t * p2;
+};
+var qbezierPtAt = function qbezierPtAt(p0, p1, p2, t) {
+  return {
+    x: qbezierAt(p0.x, p1.x, p2.x, t),
+    y: qbezierAt(p0.y, p1.y, p2.y, t)
+  };
+};
+var lineAt = function lineAt(p0, p1, t, d) {
+  var vec = {
+    x: p1.x - p0.x,
+    y: p1.y - p0.y
+  };
+  var vecDist = dist(p0, p1);
+  var normVec = {
+    x: vec.x / vecDist,
+    y: vec.y / vecDist
+  };
+  t = t == null ? 0 : t;
+  d = d != null ? d : t * vecDist;
+  return {
+    x: p0.x + normVec.x * d,
+    y: p0.y + normVec.y * d
+  };
+};
+var bound = function bound(min, val, max) {
+  return Math.max(min, Math.min(max, val));
+}; // makes a full bb (x1, y1, x2, y2, w, h) from implicit params
+
+var makeBoundingBox = function makeBoundingBox(bb) {
+  if (bb == null) {
+    return {
+      x1: Infinity,
+      y1: Infinity,
+      x2: -Infinity,
+      y2: -Infinity,
+      w: 0,
+      h: 0
+    };
+  } else if (bb.x1 != null && bb.y1 != null) {
+    if (bb.x2 != null && bb.y2 != null && bb.x2 >= bb.x1 && bb.y2 >= bb.y1) {
+      return {
+        x1: bb.x1,
+        y1: bb.y1,
+        x2: bb.x2,
+        y2: bb.y2,
+        w: bb.x2 - bb.x1,
+        h: bb.y2 - bb.y1
+      };
+    } else if (bb.w != null && bb.h != null && bb.w >= 0 && bb.h >= 0) {
+      return {
+        x1: bb.x1,
+        y1: bb.y1,
+        x2: bb.x1 + bb.w,
+        y2: bb.y1 + bb.h,
+        w: bb.w,
+        h: bb.h
+      };
+    }
+  }
+};
+var copyBoundingBox = function copyBoundingBox(bb) {
+  return {
+    x1: bb.x1,
+    x2: bb.x2,
+    w: bb.w,
+    y1: bb.y1,
+    y2: bb.y2,
+    h: bb.h
+  };
+};
+var clearBoundingBox = function clearBoundingBox(bb) {
+  bb.x1 = Infinity;
+  bb.y1 = Infinity;
+  bb.x2 = -Infinity;
+  bb.y2 = -Infinity;
+  bb.w = 0;
+  bb.h = 0;
+};
+var updateBoundingBox = function updateBoundingBox(bb1, bb2) {
+  // update bb1 with bb2 bounds
+  bb1.x1 = Math.min(bb1.x1, bb2.x1);
+  bb1.x2 = Math.max(bb1.x2, bb2.x2);
+  bb1.w = bb1.x2 - bb1.x1;
+  bb1.y1 = Math.min(bb1.y1, bb2.y1);
+  bb1.y2 = Math.max(bb1.y2, bb2.y2);
+  bb1.h = bb1.y2 - bb1.y1;
+};
+var expandBoundingBoxByPoint = function expandBoundingBoxByPoint(bb, x, y) {
+  bb.x1 = Math.min(bb.x1, x);
+  bb.x2 = Math.max(bb.x2, x);
+  bb.w = bb.x2 - bb.x1;
+  bb.y1 = Math.min(bb.y1, y);
+  bb.y2 = Math.max(bb.y2, y);
+  bb.h = bb.y2 - bb.y1;
+};
+var expandBoundingBox = function expandBoundingBox(bb) {
+  var padding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
+  bb.x1 -= padding;
+  bb.x2 += padding;
+  bb.y1 -= padding;
+  bb.y2 += padding;
+  bb.w = bb.x2 - bb.x1;
+  bb.h = bb.y2 - bb.y1;
+  return bb;
+};
+var expandBoundingBoxSides = function expandBoundingBoxSides(bb) {
+  var padding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0];
+  var top, right, bottom, left;
+
+  if (padding.length === 1) {
+    top = right = bottom = left = padding[0];
+  } else if (padding.length === 2) {
+    top = bottom = padding[0];
+    left = right = padding[1];
+  } else if (padding.length === 4) {
+    var _padding = _slicedToArray(padding, 4);
+
+    top = _padding[0];
+    right = _padding[1];
+    bottom = _padding[2];
+    left = _padding[3];
+  }
 
-                            model.endAngle = model.startAngle + model.circumference;
-                        }
+  bb.x1 -= left;
+  bb.x2 += right;
+  bb.y1 -= top;
+  bb.y2 += bottom;
+  bb.w = bb.x2 - bb.x1;
+  bb.h = bb.y2 - bb.y1;
+  return bb;
+};
+
+var assignBoundingBox = function assignBoundingBox(bb1, bb2) {
+  bb1.x1 = bb2.x1;
+  bb1.y1 = bb2.y1;
+  bb1.x2 = bb2.x2;
+  bb1.y2 = bb2.y2;
+  bb1.w = bb1.x2 - bb1.x1;
+  bb1.h = bb1.y2 - bb1.y1;
+};
+var assignShiftToBoundingBox = function assignShiftToBoundingBox(bb, delta) {
+  bb.x1 += delta.x;
+  bb.x2 += delta.x;
+  bb.y1 += delta.y;
+  bb.y2 += delta.y;
+};
+var boundingBoxesIntersect = function boundingBoxesIntersect(bb1, bb2) {
+  // case: one bb to right of other
+  if (bb1.x1 > bb2.x2) {
+    return false;
+  }
 
-                        arc.pivot();
-                    },
+  if (bb2.x1 > bb1.x2) {
+    return false;
+  } // case: one bb to left of other
 
-                    calculateTotal: function() {
-                        var dataset = this.getDataset();
-                        var meta = this.getMeta();
-                        var total = 0;
-                        var value;
 
-                        helpers$1.each(meta.data, function(element, index) {
-                            value = dataset.data[index];
-                            if (!isNaN(value) && !element.hidden) {
-                                total += Math.abs(value);
-                            }
-                        });
+  if (bb1.x2 < bb2.x1) {
+    return false;
+  }
 
-                        /* if (total === 0) {
-			total = NaN;
-		}*/
+  if (bb2.x2 < bb1.x1) {
+    return false;
+  } // case: one bb above other
 
-                        return total;
-                    },
 
-                    calculateCircumference: function(value) {
-                        var total = this.getMeta().total;
-                        if (total > 0 && !isNaN(value)) {
-                            return DOUBLE_PI$1 * (Math.abs(value) / total);
-                        }
-                        return 0;
-                    },
-
-                    // gets the max border or hover width to properly scale pie charts
-                    getMaxBorderWidth: function(arcs) {
-                        var me = this;
-                        var max = 0;
-                        var chart = me.chart;
-                        var i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;
-
-                        if (!arcs) {
-                            // Find the outmost visible dataset
-                            for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {
-                                if (chart.isDatasetVisible(i)) {
-                                    meta = chart.getDatasetMeta(i);
-                                    arcs = meta.data;
-                                    if (i !== me.index) {
-                                        controller = meta.controller;
-                                    }
-                                    break;
-                                }
-                            }
-                        }
+  if (bb1.y2 < bb2.y1) {
+    return false;
+  }
 
-                        if (!arcs) {
-                            return 0;
-                        }
+  if (bb2.y2 < bb1.y1) {
+    return false;
+  } // case: one bb below other
 
-                        for (i = 0, ilen = arcs.length; i < ilen; ++i) {
-                            arc = arcs[i];
-                            if (controller) {
-                                controller._configure();
-                                options = controller._resolveDataElementOptions(arc, i);
-                            } else {
-                                options = arc._options;
-                            }
-                            if (options.borderAlign !== 'inner') {
-                                borderWidth = options.borderWidth;
-                                hoverWidth = options.hoverBorderWidth;
 
-                                max = borderWidth > max ? borderWidth : max;
-                                max = hoverWidth > max ? hoverWidth : max;
-                            }
-                        }
-                        return max;
-                    },
-
-                    /**
-                     * @protected
-                     */
-                    setHoverStyle: function(arc) {
-                        var model = arc._model;
-                        var options = arc._options;
-                        var getHoverColor = helpers$1.getHoverColor;
-
-                        arc.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth,
-                        };
-
-                        model.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
-                        model.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));
-                        model.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);
-                    },
-
-                    /**
-                     * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
-                     * @private
-                     */
-                    _getRingWeightOffset: function(datasetIndex) {
-                        var ringWeightOffset = 0;
-
-                        for (var i = 0; i < datasetIndex; ++i) {
-                            if (this.chart.isDatasetVisible(i)) {
-                                ringWeightOffset += this._getRingWeight(i);
-                            }
-                        }
+  if (bb1.y1 > bb2.y2) {
+    return false;
+  }
 
-                        return ringWeightOffset;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getRingWeight: function(dataSetIndex) {
-                        return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);
-                    },
-
-                    /**
-                     * Returns the sum of all visibile data set weights.  This value can be 0.
-                     * @private
-                     */
-                    _getVisibleDatasetWeightTotal: function() {
-                        return this._getRingWeightOffset(this.chart.data.datasets.length);
-                    }
-                });
+  if (bb2.y1 > bb1.y2) {
+    return false;
+  } // otherwise, must have some overlap
+
+
+  return true;
+};
+var inBoundingBox = function inBoundingBox(bb, x, y) {
+  return bb.x1 <= x && x <= bb.x2 && bb.y1 <= y && y <= bb.y2;
+};
+var pointInBoundingBox = function pointInBoundingBox(bb, pt) {
+  return inBoundingBox(bb, pt.x, pt.y);
+};
+var boundingBoxInBoundingBox = function boundingBoxInBoundingBox(bb1, bb2) {
+  return inBoundingBox(bb1, bb2.x1, bb2.y1) && inBoundingBox(bb1, bb2.x2, bb2.y2);
+};
+var roundRectangleIntersectLine = function roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding) {
+  var cornerRadius = getRoundRectangleRadius(width, height);
+  var halfWidth = width / 2;
+  var halfHeight = height / 2; // Check intersections with straight line segments
+
+  var straightLineIntersections; // Top segment, left to right
+
+  {
+    var topStartX = nodeX - halfWidth + cornerRadius - padding;
+    var topStartY = nodeY - halfHeight - padding;
+    var topEndX = nodeX + halfWidth - cornerRadius + padding;
+    var topEndY = topStartY;
+    straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, topStartX, topStartY, topEndX, topEndY, false);
+
+    if (straightLineIntersections.length > 0) {
+      return straightLineIntersections;
+    }
+  } // Right segment, top to bottom
 
-                core_defaults._set('horizontalBar', {
-                    hover: {
-                        mode: 'index',
-                        axis: 'y'
-                    },
-
-                    scales: {
-                        xAxes: [{
-                            type: 'linear',
-                            position: 'bottom'
-                        }],
-
-                        yAxes: [{
-                            type: 'category',
-                            position: 'left',
-                            offset: true,
-                            gridLines: {
-                                offsetGridLines: true
-                            }
-                        }]
-                    },
+  {
+    var rightStartX = nodeX + halfWidth + padding;
+    var rightStartY = nodeY - halfHeight + cornerRadius - padding;
+    var rightEndX = rightStartX;
+    var rightEndY = nodeY + halfHeight - cornerRadius + padding;
+    straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, rightStartX, rightStartY, rightEndX, rightEndY, false);
 
-                    elements: {
-                        rectangle: {
-                            borderSkipped: 'left'
-                        }
-                    },
+    if (straightLineIntersections.length > 0) {
+      return straightLineIntersections;
+    }
+  } // Bottom segment, left to right
 
-                    tooltips: {
-                        mode: 'index',
-                        axis: 'y'
-                    }
-                });
+  {
+    var bottomStartX = nodeX - halfWidth + cornerRadius - padding;
+    var bottomStartY = nodeY + halfHeight + padding;
+    var bottomEndX = nodeX + halfWidth - cornerRadius + padding;
+    var bottomEndY = bottomStartY;
+    straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, bottomStartX, bottomStartY, bottomEndX, bottomEndY, false);
 
-                core_defaults._set('global', {
-                    datasets: {
-                        horizontalBar: {
-                            categoryPercentage: 0.8,
-                            barPercentage: 0.9
-                        }
-                    }
-                });
+    if (straightLineIntersections.length > 0) {
+      return straightLineIntersections;
+    }
+  } // Left segment, top to bottom
 
-                var controller_horizontalBar = controller_bar.extend({
-                    /**
-                     * @private
-                     */
-                    _getValueScaleId: function() {
-                        return this.getMeta().xAxisID;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getIndexScaleId: function() {
-                        return this.getMeta().yAxisID;
-                    }
-                });
+  {
+    var leftStartX = nodeX - halfWidth - padding;
+    var leftStartY = nodeY - halfHeight + cornerRadius - padding;
+    var leftEndX = leftStartX;
+    var leftEndY = nodeY + halfHeight - cornerRadius + padding;
+    straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, leftStartX, leftStartY, leftEndX, leftEndY, false);
 
-                var valueOrDefault$6 = helpers$1.valueOrDefault;
-                var resolve$2 = helpers$1.options.resolve;
-                var isPointInArea = helpers$1.canvas._isPointInArea;
-
-                core_defaults._set('line', {
-                    showLines: true,
-                    spanGaps: false,
-
-                    hover: {
-                        mode: 'label'
-                    },
-
-                    scales: {
-                        xAxes: [{
-                            type: 'category',
-                            id: 'x-axis-0'
-                        }],
-                        yAxes: [{
-                            type: 'linear',
-                            id: 'y-axis-0'
-                        }]
-                    }
-                });
+    if (straightLineIntersections.length > 0) {
+      return straightLineIntersections;
+    }
+  } // Check intersections with arc segments
 
-                function scaleClip(scale, halfBorderWidth) {
-                    var tickOpts = scale && scale.options.ticks || {};
-                    var reverse = tickOpts.reverse;
-                    var min = tickOpts.min === undefined ? halfBorderWidth : 0;
-                    var max = tickOpts.max === undefined ? halfBorderWidth : 0;
-                    return {
-                        start: reverse ? max : min,
-                        end: reverse ? min : max
-                    };
-                }
+  var arcIntersections; // Top Left
 
-                function defaultClip(xScale, yScale, borderWidth) {
-                    var halfBorderWidth = borderWidth / 2;
-                    var x = scaleClip(xScale, halfBorderWidth);
-                    var y = scaleClip(yScale, halfBorderWidth);
-
-                    return {
-                        top: y.end,
-                        right: x.end,
-                        bottom: y.start,
-                        left: x.start
-                    };
-                }
+  {
+    var topLeftCenterX = nodeX - halfWidth + cornerRadius;
+    var topLeftCenterY = nodeY - halfHeight + cornerRadius;
+    arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, topLeftCenterX, topLeftCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
 
-                function toClip(value) {
-                    var t, r, b, l;
+    if (arcIntersections.length > 0 && arcIntersections[0] <= topLeftCenterX && arcIntersections[1] <= topLeftCenterY) {
+      return [arcIntersections[0], arcIntersections[1]];
+    }
+  } // Top Right
 
-                    if (helpers$1.isObject(value)) {
-                        t = value.top;
-                        r = value.right;
-                        b = value.bottom;
-                        l = value.left;
-                    } else {
-                        t = r = b = l = value;
-                    }
+  {
+    var topRightCenterX = nodeX + halfWidth - cornerRadius;
+    var topRightCenterY = nodeY - halfHeight + cornerRadius;
+    arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, topRightCenterX, topRightCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
 
-                    return {
-                        top: t,
-                        right: r,
-                        bottom: b,
-                        left: l
-                    };
-                }
+    if (arcIntersections.length > 0 && arcIntersections[0] >= topRightCenterX && arcIntersections[1] <= topRightCenterY) {
+      return [arcIntersections[0], arcIntersections[1]];
+    }
+  } // Bottom Right
 
+  {
+    var bottomRightCenterX = nodeX + halfWidth - cornerRadius;
+    var bottomRightCenterY = nodeY + halfHeight - cornerRadius;
+    arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, bottomRightCenterX, bottomRightCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
 
-                var controller_line = core_datasetController.extend({
-
-                    datasetElementType: elements.Line,
-
-                    dataElementType: elements.Point,
-
-                    /**
-                     * @private
-                     */
-                    _datasetElementOptions: [
-                        'backgroundColor',
-                        'borderCapStyle',
-                        'borderColor',
-                        'borderDash',
-                        'borderDashOffset',
-                        'borderJoinStyle',
-                        'borderWidth',
-                        'cubicInterpolationMode',
-                        'fill'
-                    ],
-
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: {
-                        backgroundColor: 'pointBackgroundColor',
-                        borderColor: 'pointBorderColor',
-                        borderWidth: 'pointBorderWidth',
-                        hitRadius: 'pointHitRadius',
-                        hoverBackgroundColor: 'pointHoverBackgroundColor',
-                        hoverBorderColor: 'pointHoverBorderColor',
-                        hoverBorderWidth: 'pointHoverBorderWidth',
-                        hoverRadius: 'pointHoverRadius',
-                        pointStyle: 'pointStyle',
-                        radius: 'pointRadius',
-                        rotation: 'pointRotation'
-                    },
-
-                    update: function(reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var line = meta.dataset;
-                        var points = meta.data || [];
-                        var options = me.chart.options;
-                        var config = me._config;
-                        var showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);
-                        var i, ilen;
-
-                        me._xScale = me.getScaleForId(meta.xAxisID);
-                        me._yScale = me.getScaleForId(meta.yAxisID);
-
-                        // Update Line
-                        if (showLine) {
-                            // Compatibility: If the properties are defined with only the old name, use those values
-                            if (config.tension !== undefined && config.lineTension === undefined) {
-                                config.lineTension = config.tension;
-                            }
+    if (arcIntersections.length > 0 && arcIntersections[0] >= bottomRightCenterX && arcIntersections[1] >= bottomRightCenterY) {
+      return [arcIntersections[0], arcIntersections[1]];
+    }
+  } // Bottom Left
 
-                            // Utility
-                            line._scale = me._yScale;
-                            line._datasetIndex = me.index;
-                            // Data
-                            line._children = points;
-                            // Model
-                            line._model = me._resolveDatasetElementOptions(line);
+  {
+    var bottomLeftCenterX = nodeX - halfWidth + cornerRadius;
+    var bottomLeftCenterY = nodeY + halfHeight - cornerRadius;
+    arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, bottomLeftCenterX, bottomLeftCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
 
-                            line.pivot();
-                        }
+    if (arcIntersections.length > 0 && arcIntersections[0] <= bottomLeftCenterX && arcIntersections[1] >= bottomLeftCenterY) {
+      return [arcIntersections[0], arcIntersections[1]];
+    }
+  }
+  return []; // if nothing
+};
+var inLineVicinity = function inLineVicinity(x, y, lx1, ly1, lx2, ly2, tolerance) {
+  var t = tolerance;
+  var x1 = Math.min(lx1, lx2);
+  var x2 = Math.max(lx1, lx2);
+  var y1 = Math.min(ly1, ly2);
+  var y2 = Math.max(ly1, ly2);
+  return x1 - t <= x && x <= x2 + t && y1 - t <= y && y <= y2 + t;
+};
+var inBezierVicinity = function inBezierVicinity(x, y, x1, y1, x2, y2, x3, y3, tolerance) {
+  var bb = {
+    x1: Math.min(x1, x3, x2) - tolerance,
+    x2: Math.max(x1, x3, x2) + tolerance,
+    y1: Math.min(y1, y3, y2) - tolerance,
+    y2: Math.max(y1, y3, y2) + tolerance
+  }; // if outside the rough bounding box for the bezier, then it can't be a hit
+
+  if (x < bb.x1 || x > bb.x2 || y < bb.y1 || y > bb.y2) {
+    // console.log('bezier out of rough bb')
+    return false;
+  } else {
+    // console.log('do more expensive check');
+    return true;
+  }
+};
+var solveQuadratic = function solveQuadratic(a, b, c, val) {
+  c -= val;
+  var r = b * b - 4 * a * c;
 
-                        // Update Points
-                        for (i = 0, ilen = points.length; i < ilen; ++i) {
-                            me.updateElement(points[i], i, reset);
-                        }
+  if (r < 0) {
+    return [];
+  }
 
-                        if (showLine && line._model.tension !== 0) {
-                            me.updateBezierControlPoints();
-                        }
+  var sqrtR = Math.sqrt(r);
+  var denom = 2 * a;
+  var root1 = (-b + sqrtR) / denom;
+  var root2 = (-b - sqrtR) / denom;
+  return [root1, root2];
+};
+var solveCubic = function solveCubic(a, b, c, d, result) {
+  // Solves a cubic function, returns root in form [r1, i1, r2, i2, r3, i3], where
+  // r is the real component, i is the imaginary component
+  // An implementation of the Cardano method from the year 1545
+  // http://en.wikipedia.org/wiki/Cubic_function#The_nature_of_the_roots
+  var epsilon = 0.00001; // avoid division by zero while keeping the overall expression close in value
+
+  if (a === 0) {
+    a = epsilon;
+  }
 
-                        // Now pivot the point for animation
-                        for (i = 0, ilen = points.length; i < ilen; ++i) {
-                            points[i].pivot();
-                        }
-                    },
-
-                    updateElement: function(point, index, reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var custom = point.custom || {};
-                        var dataset = me.getDataset();
-                        var datasetIndex = me.index;
-                        var value = dataset.data[index];
-                        var xScale = me._xScale;
-                        var yScale = me._yScale;
-                        var lineModel = meta.dataset._model;
-                        var x, y;
-
-                        var options = me._resolveDataElementOptions(point, index);
-
-                        x = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);
-                        y = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);
-
-                        // Utility
-                        point._xScale = xScale;
-                        point._yScale = yScale;
-                        point._options = options;
-                        point._datasetIndex = datasetIndex;
-                        point._index = index;
-
-                        // Desired view properties
-                        point._model = {
-                            x: x,
-                            y: y,
-                            skip: custom.skip || isNaN(x) || isNaN(y),
-                            // Appearance
-                            radius: options.radius,
-                            pointStyle: options.pointStyle,
-                            rotation: options.rotation,
-                            backgroundColor: options.backgroundColor,
-                            borderColor: options.borderColor,
-                            borderWidth: options.borderWidth,
-                            tension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),
-                            steppedLine: lineModel ? lineModel.steppedLine : false,
-                            // Tooltip
-                            hitRadius: options.hitRadius
-                        };
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDatasetElementOptions: function(element) {
-                        var me = this;
-                        var config = me._config;
-                        var custom = element.custom || {};
-                        var options = me.chart.options;
-                        var lineOptions = options.elements.line;
-                        var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);
-
-                        // The default behavior of lines is to break at null values, according
-                        // to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158
-                        // This option gives lines the ability to span gaps
-                        values.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);
-                        values.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);
-                        values.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);
-                        values.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));
-
-                        return values;
-                    },
-
-                    calculatePointY: function(value, index, datasetIndex) {
-                        var me = this;
-                        var chart = me.chart;
-                        var yScale = me._yScale;
-                        var sumPos = 0;
-                        var sumNeg = 0;
-                        var i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;
-
-                        if (yScale.options.stacked) {
-                            rightValue = +yScale.getRightValue(value);
-                            metasets = chart._getSortedVisibleDatasetMetas();
-                            ilen = metasets.length;
-
-                            for (i = 0; i < ilen; ++i) {
-                                dsMeta = metasets[i];
-                                if (dsMeta.index === datasetIndex) {
-                                    break;
-                                }
-
-                                ds = chart.data.datasets[dsMeta.index];
-                                if (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {
-                                    stackedRightValue = +yScale.getRightValue(ds.data[index]);
-                                    if (stackedRightValue < 0) {
-                                        sumNeg += stackedRightValue || 0;
-                                    } else {
-                                        sumPos += stackedRightValue || 0;
-                                    }
-                                }
-                            }
+  b /= a;
+  c /= a;
+  d /= a;
+  var discriminant, q, r, dum1, s, t, term1, r13;
+  q = (3.0 * c - b * b) / 9.0;
+  r = -(27.0 * d) + b * (9.0 * c - 2.0 * (b * b));
+  r /= 54.0;
+  discriminant = q * q * q + r * r;
+  result[1] = 0;
+  term1 = b / 3.0;
+
+  if (discriminant > 0) {
+    s = r + Math.sqrt(discriminant);
+    s = s < 0 ? -Math.pow(-s, 1.0 / 3.0) : Math.pow(s, 1.0 / 3.0);
+    t = r - Math.sqrt(discriminant);
+    t = t < 0 ? -Math.pow(-t, 1.0 / 3.0) : Math.pow(t, 1.0 / 3.0);
+    result[0] = -term1 + s + t;
+    term1 += (s + t) / 2.0;
+    result[4] = result[2] = -term1;
+    term1 = Math.sqrt(3.0) * (-t + s) / 2;
+    result[3] = term1;
+    result[5] = -term1;
+    return;
+  }
 
-                            if (rightValue < 0) {
-                                return yScale.getPixelForValue(sumNeg + rightValue);
-                            }
-                            return yScale.getPixelForValue(sumPos + rightValue);
-                        }
-                        return yScale.getPixelForValue(value);
-                    },
-
-                    updateBezierControlPoints: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var meta = me.getMeta();
-                        var lineModel = meta.dataset._model;
-                        var area = chart.chartArea;
-                        var points = meta.data || [];
-                        var i, ilen, model, controlPoints;
-
-                        // Only consider points that are drawn in case the spanGaps option is used
-                        if (lineModel.spanGaps) {
-                            points = points.filter(function(pt) {
-                                return !pt._model.skip;
-                            });
-                        }
+  result[5] = result[3] = 0;
 
-                        function capControlPoint(pt, min, max) {
-                            return Math.max(Math.min(pt, max), min);
-                        }
+  if (discriminant === 0) {
+    r13 = r < 0 ? -Math.pow(-r, 1.0 / 3.0) : Math.pow(r, 1.0 / 3.0);
+    result[0] = -term1 + 2.0 * r13;
+    result[4] = result[2] = -(r13 + term1);
+    return;
+  }
 
-                        if (lineModel.cubicInterpolationMode === 'monotone') {
-                            helpers$1.splineCurveMonotone(points);
-                        } else {
-                            for (i = 0, ilen = points.length; i < ilen; ++i) {
-                                model = points[i]._model;
-                                controlPoints = helpers$1.splineCurve(
-                                    helpers$1.previousItem(points, i)._model,
-                                    model,
-                                    helpers$1.nextItem(points, i)._model,
-                                    lineModel.tension
-                                );
-                                model.controlPointPreviousX = controlPoints.previous.x;
-                                model.controlPointPreviousY = controlPoints.previous.y;
-                                model.controlPointNextX = controlPoints.next.x;
-                                model.controlPointNextY = controlPoints.next.y;
-                            }
-                        }
+  q = -q;
+  dum1 = q * q * q;
+  dum1 = Math.acos(r / Math.sqrt(dum1));
+  r13 = 2.0 * Math.sqrt(q);
+  result[0] = -term1 + r13 * Math.cos(dum1 / 3.0);
+  result[2] = -term1 + r13 * Math.cos((dum1 + 2.0 * Math.PI) / 3.0);
+  result[4] = -term1 + r13 * Math.cos((dum1 + 4.0 * Math.PI) / 3.0);
+  return;
+};
+var sqdistToQuadraticBezier = function sqdistToQuadraticBezier(x, y, x1, y1, x2, y2, x3, y3) {
+  // Find minimum distance by using the minimum of the distance
+  // function between the given point and the curve
+  // This gives the coefficients of the resulting cubic equation
+  // whose roots tell us where a possible minimum is
+  // (Coefficients are divided by 4)
+  var a = 1.0 * x1 * x1 - 4 * x1 * x2 + 2 * x1 * x3 + 4 * x2 * x2 - 4 * x2 * x3 + x3 * x3 + y1 * y1 - 4 * y1 * y2 + 2 * y1 * y3 + 4 * y2 * y2 - 4 * y2 * y3 + y3 * y3;
+  var b = 1.0 * 9 * x1 * x2 - 3 * x1 * x1 - 3 * x1 * x3 - 6 * x2 * x2 + 3 * x2 * x3 + 9 * y1 * y2 - 3 * y1 * y1 - 3 * y1 * y3 - 6 * y2 * y2 + 3 * y2 * y3;
+  var c = 1.0 * 3 * x1 * x1 - 6 * x1 * x2 + x1 * x3 - x1 * x + 2 * x2 * x2 + 2 * x2 * x - x3 * x + 3 * y1 * y1 - 6 * y1 * y2 + y1 * y3 - y1 * y + 2 * y2 * y2 + 2 * y2 * y - y3 * y;
+  var d = 1.0 * x1 * x2 - x1 * x1 + x1 * x - x2 * x + y1 * y2 - y1 * y1 + y1 * y - y2 * y; // debug("coefficients: " + a / a + ", " + b / a + ", " + c / a + ", " + d / a);
+
+  var roots = []; // Use the cubic solving algorithm
+
+  solveCubic(a, b, c, d, roots);
+  var zeroThreshold = 0.0000001;
+  var params = [];
+
+  for (var index = 0; index < 6; index += 2) {
+    if (Math.abs(roots[index + 1]) < zeroThreshold && roots[index] >= 0 && roots[index] <= 1.0) {
+      params.push(roots[index]);
+    }
+  }
 
-                        if (chart.options.elements.line.capBezierPoints) {
-                            for (i = 0, ilen = points.length; i < ilen; ++i) {
-                                model = points[i]._model;
-                                if (isPointInArea(model, area)) {
-                                    if (i > 0 && isPointInArea(points[i - 1]._model, area)) {
-                                        model.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);
-                                        model.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);
-                                    }
-                                    if (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {
-                                        model.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);
-                                        model.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);
-                                    }
-                                }
-                            }
-                        }
-                    },
-
-                    draw: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var meta = me.getMeta();
-                        var points = meta.data || [];
-                        var area = chart.chartArea;
-                        var canvas = chart.canvas;
-                        var i = 0;
-                        var ilen = points.length;
-                        var clip;
-
-                        if (me._showLine) {
-                            clip = meta.dataset._model.clip;
-
-                            helpers$1.canvas.clipArea(chart.ctx, {
-                                left: clip.left === false ? 0 : area.left - clip.left,
-                                right: clip.right === false ? canvas.width : area.right + clip.right,
-                                top: clip.top === false ? 0 : area.top - clip.top,
-                                bottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom
-                            });
-
-                            meta.dataset.draw();
-
-                            helpers$1.canvas.unclipArea(chart.ctx);
-                        }
+  params.push(1.0);
+  params.push(0.0);
+  var minDistanceSquared = -1;
+  var curX, curY, distSquared;
+
+  for (var i = 0; i < params.length; i++) {
+    curX = Math.pow(1.0 - params[i], 2.0) * x1 + 2.0 * (1 - params[i]) * params[i] * x2 + params[i] * params[i] * x3;
+    curY = Math.pow(1 - params[i], 2.0) * y1 + 2 * (1.0 - params[i]) * params[i] * y2 + params[i] * params[i] * y3;
+    distSquared = Math.pow(curX - x, 2) + Math.pow(curY - y, 2); // debug('distance for param ' + params[i] + ": " + Math.sqrt(distSquared));
+
+    if (minDistanceSquared >= 0) {
+      if (distSquared < minDistanceSquared) {
+        minDistanceSquared = distSquared;
+      }
+    } else {
+      minDistanceSquared = distSquared;
+    }
+  }
 
-                        // Draw the points
-                        for (; i < ilen; ++i) {
-                            points[i].draw(area);
-                        }
-                    },
-
-                    /**
-                     * @protected
-                     */
-                    setHoverStyle: function(point) {
-                        var model = point._model;
-                        var options = point._options;
-                        var getHoverColor = helpers$1.getHoverColor;
-
-                        point.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth,
-                            radius: model.radius
-                        };
-
-                        model.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
-                        model.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));
-                        model.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);
-                        model.radius = valueOrDefault$6(options.hoverRadius, options.radius);
-                    },
-                });
+  return minDistanceSquared;
+};
+var sqdistToFiniteLine = function sqdistToFiniteLine(x, y, x1, y1, x2, y2) {
+  var offset = [x - x1, y - y1];
+  var line = [x2 - x1, y2 - y1];
+  var lineSq = line[0] * line[0] + line[1] * line[1];
+  var hypSq = offset[0] * offset[0] + offset[1] * offset[1];
+  var dotProduct = offset[0] * line[0] + offset[1] * line[1];
+  var adjSq = dotProduct * dotProduct / lineSq;
+
+  if (dotProduct < 0) {
+    return hypSq;
+  }
 
-                var resolve$3 = helpers$1.options.resolve;
-
-                core_defaults._set('polarArea', {
-                    scale: {
-                        type: 'radialLinear',
-                        angleLines: {
-                            display: false
-                        },
-                        gridLines: {
-                            circular: true
-                        },
-                        pointLabels: {
-                            display: false
-                        },
-                        ticks: {
-                            beginAtZero: true
-                        }
-                    },
-
-                    // Boolean - Whether to animate the rotation of the chart
-                    animation: {
-                        animateRotate: true,
-                        animateScale: true
-                    },
-
-                    startAngle: -0.5 * Math.PI,
-                    legendCallback: function(chart) {
-                        var list = document.createElement('ul');
-                        var data = chart.data;
-                        var datasets = data.datasets;
-                        var labels = data.labels;
-                        var i, ilen, listItem, listItemSpan;
-
-                        list.setAttribute('class', chart.id + '-legend');
-                        if (datasets.length) {
-                            for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {
-                                listItem = list.appendChild(document.createElement('li'));
-                                listItemSpan = listItem.appendChild(document.createElement('span'));
-                                listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];
-                                if (labels[i]) {
-                                    listItem.appendChild(document.createTextNode(labels[i]));
-                                }
-                            }
-                        }
+  if (adjSq > lineSq) {
+    return (x - x2) * (x - x2) + (y - y2) * (y - y2);
+  }
 
-                        return list.outerHTML;
-                    },
-                    legend: {
-                        labels: {
-                            generateLabels: function(chart) {
-                                var data = chart.data;
-                                if (data.labels.length && data.datasets.length) {
-                                    return data.labels.map(function(label, i) {
-                                        var meta = chart.getDatasetMeta(0);
-                                        var style = meta.controller.getStyle(i);
-
-                                        return {
-                                            text: label,
-                                            fillStyle: style.backgroundColor,
-                                            strokeStyle: style.borderColor,
-                                            lineWidth: style.borderWidth,
-                                            hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,
-
-                                            // Extra data used for toggling the correct item
-                                            index: i
-                                        };
-                                    });
-                                }
-                                return [];
-                            }
-                        },
+  return hypSq - adjSq;
+};
+var pointInsidePolygonPoints = function pointInsidePolygonPoints(x, y, points) {
+  var x1, y1, x2, y2;
+  var y3; // Intersect with vertical line through (x, y)
 
-                        onClick: function(e, legendItem) {
-                            var index = legendItem.index;
-                            var chart = this.chart;
-                            var i, ilen, meta;
+  var up = 0; // let down = 0;
 
-                            for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
-                                meta = chart.getDatasetMeta(i);
-                                meta.data[index].hidden = !meta.data[index].hidden;
-                            }
+  for (var i = 0; i < points.length / 2; i++) {
+    x1 = points[i * 2];
+    y1 = points[i * 2 + 1];
 
-                            chart.update();
-                        }
-                    },
-
-                    // Need to override these to give a nice default
-                    tooltips: {
-                        callbacks: {
-                            title: function() {
-                                return '';
-                            },
-                            label: function(item, data) {
-                                return data.labels[item.index] + ': ' + item.yLabel;
-                            }
-                        }
-                    }
-                });
+    if (i + 1 < points.length / 2) {
+      x2 = points[(i + 1) * 2];
+      y2 = points[(i + 1) * 2 + 1];
+    } else {
+      x2 = points[(i + 1 - points.length / 2) * 2];
+      y2 = points[(i + 1 - points.length / 2) * 2 + 1];
+    }
 
-                var controller_polarArea = core_datasetController.extend({
-
-                    dataElementType: elements.Arc,
-
-                    linkScales: helpers$1.noop,
-
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: [
-                        'backgroundColor',
-                        'borderColor',
-                        'borderWidth',
-                        'borderAlign',
-                        'hoverBackgroundColor',
-                        'hoverBorderColor',
-                        'hoverBorderWidth',
-                    ],
-
-                    /**
-                     * @private
-                     */
-                    _getIndexScaleId: function() {
-                        return this.chart.scale.id;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getValueScaleId: function() {
-                        return this.chart.scale.id;
-                    },
-
-                    update: function(reset) {
-                        var me = this;
-                        var dataset = me.getDataset();
-                        var meta = me.getMeta();
-                        var start = me.chart.options.startAngle || 0;
-                        var starts = me._starts = [];
-                        var angles = me._angles = [];
-                        var arcs = meta.data;
-                        var i, ilen, angle;
-
-                        me._updateRadius();
-
-                        meta.count = me.countVisibleElements();
-
-                        for (i = 0, ilen = dataset.data.length; i < ilen; i++) {
-                            starts[i] = start;
-                            angle = me._computeAngle(i);
-                            angles[i] = angle;
-                            start += angle;
-                        }
+    if (x1 == x && x2 == x) ; else if (x1 >= x && x >= x2 || x1 <= x && x <= x2) {
+      y3 = (x - x1) / (x2 - x1) * (y2 - y1) + y1;
 
-                        for (i = 0, ilen = arcs.length; i < ilen; ++i) {
-                            arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);
-                            me.updateElement(arcs[i], i, reset);
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _updateRadius: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var chartArea = chart.chartArea;
-                        var opts = chart.options;
-                        var minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);
-
-                        chart.outerRadius = Math.max(minSize / 2, 0);
-                        chart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);
-                        chart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();
-
-                        me.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);
-                        me.innerRadius = me.outerRadius - chart.radiusLength;
-                    },
-
-                    updateElement: function(arc, index, reset) {
-                        var me = this;
-                        var chart = me.chart;
-                        var dataset = me.getDataset();
-                        var opts = chart.options;
-                        var animationOpts = opts.animation;
-                        var scale = chart.scale;
-                        var labels = chart.data.labels;
-
-                        var centerX = scale.xCenter;
-                        var centerY = scale.yCenter;
-
-                        // var negHalfPI = -0.5 * Math.PI;
-                        var datasetStartAngle = opts.startAngle;
-                        var distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);
-                        var startAngle = me._starts[index];
-                        var endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);
-
-                        var resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);
-                        var options = arc._options || {};
-
-                        helpers$1.extend(arc, {
-                            // Utility
-                            _datasetIndex: me.index,
-                            _index: index,
-                            _scale: scale,
-
-                            // Desired view properties
-                            _model: {
-                                backgroundColor: options.backgroundColor,
-                                borderColor: options.borderColor,
-                                borderWidth: options.borderWidth,
-                                borderAlign: options.borderAlign,
-                                x: centerX,
-                                y: centerY,
-                                innerRadius: 0,
-                                outerRadius: reset ? resetRadius : distance,
-                                startAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,
-                                endAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,
-                                label: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])
-                            }
-                        });
+      if (y3 > y) {
+        up++;
+      } // if( y3 < y ){
+      // down++;
+      // }
 
-                        arc.pivot();
-                    },
+    } else {
+      continue;
+    }
+  }
 
-                    countVisibleElements: function() {
-                        var dataset = this.getDataset();
-                        var meta = this.getMeta();
-                        var count = 0;
+  if (up % 2 === 0) {
+    return false;
+  } else {
+    return true;
+  }
+};
+var pointInsidePolygon = function pointInsidePolygon(x, y, basePoints, centerX, centerY, width, height, direction, padding) {
+  var transformedPoints = new Array(basePoints.length); // Gives negative angle
 
-                        helpers$1.each(meta.data, function(element, index) {
-                            if (!isNaN(dataset.data[index]) && !element.hidden) {
-                                count++;
-                            }
-                        });
+  var angle;
 
-                        return count;
-                    },
-
-                    /**
-                     * @protected
-                     */
-                    setHoverStyle: function(arc) {
-                        var model = arc._model;
-                        var options = arc._options;
-                        var getHoverColor = helpers$1.getHoverColor;
-                        var valueOrDefault = helpers$1.valueOrDefault;
-
-                        arc.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth,
-                        };
-
-                        model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
-                        model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));
-                        model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _computeAngle: function(index) {
-                        var me = this;
-                        var count = this.getMeta().count;
-                        var dataset = me.getDataset();
-                        var meta = me.getMeta();
-
-                        if (isNaN(dataset.data[index]) || meta.data[index].hidden) {
-                            return 0;
-                        }
+  if (direction[0] != null) {
+    angle = Math.atan(direction[1] / direction[0]);
 
-                        // Scriptable options
-                        var context = {
-                            chart: me.chart,
-                            dataIndex: index,
-                            dataset: dataset,
-                            datasetIndex: me.index
-                        };
-
-                        return resolve$3([
-                            me.chart.options.elements.arc.angle,
-                            (2 * Math.PI) / count
-                        ], context, index);
-                    }
-                });
+    if (direction[0] < 0) {
+      angle = angle + Math.PI / 2;
+    } else {
+      angle = -angle - Math.PI / 2;
+    }
+  } else {
+    angle = direction;
+  }
 
-                core_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));
-                core_defaults._set('pie', {
-                    cutoutPercentage: 0
-                });
+  var cos = Math.cos(-angle);
+  var sin = Math.sin(-angle); //    console.log("base: " + basePoints);
 
-// Pie charts are Doughnut chart with different defaults
-                var controller_pie = controller_doughnut;
-
-                var valueOrDefault$7 = helpers$1.valueOrDefault;
-
-                core_defaults._set('radar', {
-                    spanGaps: false,
-                    scale: {
-                        type: 'radialLinear'
-                    },
-                    elements: {
-                        line: {
-                            fill: 'start',
-                            tension: 0 // no bezier in radar
-                        }
-                    }
-                });
+  for (var i = 0; i < transformedPoints.length / 2; i++) {
+    transformedPoints[i * 2] = width / 2 * (basePoints[i * 2] * cos - basePoints[i * 2 + 1] * sin);
+    transformedPoints[i * 2 + 1] = height / 2 * (basePoints[i * 2 + 1] * cos + basePoints[i * 2] * sin);
+    transformedPoints[i * 2] += centerX;
+    transformedPoints[i * 2 + 1] += centerY;
+  }
 
-                var controller_radar = core_datasetController.extend({
-                    datasetElementType: elements.Line,
-
-                    dataElementType: elements.Point,
-
-                    linkScales: helpers$1.noop,
-
-                    /**
-                     * @private
-                     */
-                    _datasetElementOptions: [
-                        'backgroundColor',
-                        'borderWidth',
-                        'borderColor',
-                        'borderCapStyle',
-                        'borderDash',
-                        'borderDashOffset',
-                        'borderJoinStyle',
-                        'fill'
-                    ],
-
-                    /**
-                     * @private
-                     */
-                    _dataElementOptions: {
-                        backgroundColor: 'pointBackgroundColor',
-                        borderColor: 'pointBorderColor',
-                        borderWidth: 'pointBorderWidth',
-                        hitRadius: 'pointHitRadius',
-                        hoverBackgroundColor: 'pointHoverBackgroundColor',
-                        hoverBorderColor: 'pointHoverBorderColor',
-                        hoverBorderWidth: 'pointHoverBorderWidth',
-                        hoverRadius: 'pointHoverRadius',
-                        pointStyle: 'pointStyle',
-                        radius: 'pointRadius',
-                        rotation: 'pointRotation'
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getIndexScaleId: function() {
-                        return this.chart.scale.id;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getValueScaleId: function() {
-                        return this.chart.scale.id;
-                    },
-
-                    update: function(reset) {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var line = meta.dataset;
-                        var points = meta.data || [];
-                        var scale = me.chart.scale;
-                        var config = me._config;
-                        var i, ilen;
-
-                        // Compatibility: If the properties are defined with only the old name, use those values
-                        if (config.tension !== undefined && config.lineTension === undefined) {
-                            config.lineTension = config.tension;
-                        }
+  var points;
 
-                        // Utility
-                        line._scale = scale;
-                        line._datasetIndex = me.index;
-                        // Data
-                        line._children = points;
-                        line._loop = true;
-                        // Model
-                        line._model = me._resolveDatasetElementOptions(line);
+  if (padding > 0) {
+    var expandedLineSet = expandPolygon(transformedPoints, -padding);
+    points = joinLines(expandedLineSet);
+  } else {
+    points = transformedPoints;
+  }
 
-                        line.pivot();
+  return pointInsidePolygonPoints(x, y, points);
+};
+var pointInsideRoundPolygon = function pointInsideRoundPolygon(x, y, basePoints, centerX, centerY, width, height) {
+  var cutPolygonPoints = new Array(basePoints.length);
+  var halfW = width / 2;
+  var halfH = height / 2;
+  var cornerRadius = getRoundPolygonRadius(width, height);
+  var squaredCornerRadius = cornerRadius * cornerRadius;
+
+  for (var i = 0; i < basePoints.length / 4; i++) {
+    var sourceUv = void 0,
+        destUv = void 0;
+
+    if (i === 0) {
+      sourceUv = basePoints.length - 2;
+    } else {
+      sourceUv = i * 4 - 2;
+    }
 
-                        // Update Points
-                        for (i = 0, ilen = points.length; i < ilen; ++i) {
-                            me.updateElement(points[i], i, reset);
-                        }
+    destUv = i * 4 + 2;
+    var px = centerX + halfW * basePoints[i * 4];
+    var py = centerY + halfH * basePoints[i * 4 + 1];
+    var cosTheta = -basePoints[sourceUv] * basePoints[destUv] - basePoints[sourceUv + 1] * basePoints[destUv + 1];
+    var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
+    var cp0x = px - offset * basePoints[sourceUv];
+    var cp0y = py - offset * basePoints[sourceUv + 1];
+    var cp1x = px + offset * basePoints[destUv];
+    var cp1y = py + offset * basePoints[destUv + 1];
+    cutPolygonPoints[i * 4] = cp0x;
+    cutPolygonPoints[i * 4 + 1] = cp0y;
+    cutPolygonPoints[i * 4 + 2] = cp1x;
+    cutPolygonPoints[i * 4 + 3] = cp1y;
+    var orthx = basePoints[sourceUv + 1];
+    var orthy = -basePoints[sourceUv];
+    var cosAlpha = orthx * basePoints[destUv] + orthy * basePoints[destUv + 1];
+
+    if (cosAlpha < 0) {
+      orthx *= -1;
+      orthy *= -1;
+    }
 
-                        // Update bezier control points
-                        me.updateBezierControlPoints();
+    var cx = cp0x + orthx * cornerRadius;
+    var cy = cp0y + orthy * cornerRadius;
+    var squaredDistance = Math.pow(cx - x, 2) + Math.pow(cy - y, 2);
 
-                        // Now pivot the point for animation
-                        for (i = 0, ilen = points.length; i < ilen; ++i) {
-                            points[i].pivot();
-                        }
-                    },
-
-                    updateElement: function(point, index, reset) {
-                        var me = this;
-                        var custom = point.custom || {};
-                        var dataset = me.getDataset();
-                        var scale = me.chart.scale;
-                        var pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);
-                        var options = me._resolveDataElementOptions(point, index);
-                        var lineModel = me.getMeta().dataset._model;
-                        var x = reset ? scale.xCenter : pointPosition.x;
-                        var y = reset ? scale.yCenter : pointPosition.y;
-
-                        // Utility
-                        point._scale = scale;
-                        point._options = options;
-                        point._datasetIndex = me.index;
-                        point._index = index;
-
-                        // Desired view properties
-                        point._model = {
-                            x: x, // value not used in dataset scale, but we want a consistent API between scales
-                            y: y,
-                            skip: custom.skip || isNaN(x) || isNaN(y),
-                            // Appearance
-                            radius: options.radius,
-                            pointStyle: options.pointStyle,
-                            rotation: options.rotation,
-                            backgroundColor: options.backgroundColor,
-                            borderColor: options.borderColor,
-                            borderWidth: options.borderWidth,
-                            tension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),
-
-                            // Tooltip
-                            hitRadius: options.hitRadius
-                        };
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _resolveDatasetElementOptions: function() {
-                        var me = this;
-                        var config = me._config;
-                        var options = me.chart.options;
-                        var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);
-
-                        values.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);
-                        values.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);
-
-                        return values;
-                    },
-
-                    updateBezierControlPoints: function() {
-                        var me = this;
-                        var meta = me.getMeta();
-                        var area = me.chart.chartArea;
-                        var points = meta.data || [];
-                        var i, ilen, model, controlPoints;
-
-                        // Only consider points that are drawn in case the spanGaps option is used
-                        if (meta.dataset._model.spanGaps) {
-                            points = points.filter(function(pt) {
-                                return !pt._model.skip;
-                            });
-                        }
+    if (squaredDistance <= squaredCornerRadius) {
+      return true;
+    }
+  }
 
-                        function capControlPoint(pt, min, max) {
-                            return Math.max(Math.min(pt, max), min);
-                        }
+  return pointInsidePolygonPoints(x, y, cutPolygonPoints);
+};
+var joinLines = function joinLines(lineSet) {
+  var vertices = new Array(lineSet.length / 2);
+  var currentLineStartX, currentLineStartY, currentLineEndX, currentLineEndY;
+  var nextLineStartX, nextLineStartY, nextLineEndX, nextLineEndY;
+
+  for (var i = 0; i < lineSet.length / 4; i++) {
+    currentLineStartX = lineSet[i * 4];
+    currentLineStartY = lineSet[i * 4 + 1];
+    currentLineEndX = lineSet[i * 4 + 2];
+    currentLineEndY = lineSet[i * 4 + 3];
+
+    if (i < lineSet.length / 4 - 1) {
+      nextLineStartX = lineSet[(i + 1) * 4];
+      nextLineStartY = lineSet[(i + 1) * 4 + 1];
+      nextLineEndX = lineSet[(i + 1) * 4 + 2];
+      nextLineEndY = lineSet[(i + 1) * 4 + 3];
+    } else {
+      nextLineStartX = lineSet[0];
+      nextLineStartY = lineSet[1];
+      nextLineEndX = lineSet[2];
+      nextLineEndY = lineSet[3];
+    }
 
-                        for (i = 0, ilen = points.length; i < ilen; ++i) {
-                            model = points[i]._model;
-                            controlPoints = helpers$1.splineCurve(
-                                helpers$1.previousItem(points, i, true)._model,
-                                model,
-                                helpers$1.nextItem(points, i, true)._model,
-                                model.tension
-                            );
-
-                            // Prevent the bezier going outside of the bounds of the graph
-                            model.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);
-                            model.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);
-                            model.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);
-                            model.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);
-                        }
-                    },
-
-                    setHoverStyle: function(point) {
-                        var model = point._model;
-                        var options = point._options;
-                        var getHoverColor = helpers$1.getHoverColor;
-
-                        point.$previousStyle = {
-                            backgroundColor: model.backgroundColor,
-                            borderColor: model.borderColor,
-                            borderWidth: model.borderWidth,
-                            radius: model.radius
-                        };
-
-                        model.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
-                        model.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));
-                        model.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);
-                        model.radius = valueOrDefault$7(options.hoverRadius, options.radius);
-                    }
-                });
+    var intersection = finiteLinesIntersect(currentLineStartX, currentLineStartY, currentLineEndX, currentLineEndY, nextLineStartX, nextLineStartY, nextLineEndX, nextLineEndY, true);
+    vertices[i * 2] = intersection[0];
+    vertices[i * 2 + 1] = intersection[1];
+  }
 
-                core_defaults._set('scatter', {
-                    hover: {
-                        mode: 'single'
-                    },
-
-                    scales: {
-                        xAxes: [{
-                            id: 'x-axis-1',    // need an ID so datasets can reference the scale
-                            type: 'linear',    // scatter should not use a category axis
-                            position: 'bottom'
-                        }],
-                        yAxes: [{
-                            id: 'y-axis-1',
-                            type: 'linear',
-                            position: 'left'
-                        }]
-                    },
-
-                    tooltips: {
-                        callbacks: {
-                            title: function() {
-                                return '';     // doesn't make sense for scatter since data are formatted as a point
-                            },
-                            label: function(item) {
-                                return '(' + item.xLabel + ', ' + item.yLabel + ')';
-                            }
-                        }
-                    }
-                });
+  return vertices;
+};
+var expandPolygon = function expandPolygon(points, pad) {
+  var expandedLineSet = new Array(points.length * 2);
+  var currentPointX, currentPointY, nextPointX, nextPointY;
+
+  for (var i = 0; i < points.length / 2; i++) {
+    currentPointX = points[i * 2];
+    currentPointY = points[i * 2 + 1];
+
+    if (i < points.length / 2 - 1) {
+      nextPointX = points[(i + 1) * 2];
+      nextPointY = points[(i + 1) * 2 + 1];
+    } else {
+      nextPointX = points[0];
+      nextPointY = points[1];
+    } // Current line: [currentPointX, currentPointY] to [nextPointX, nextPointY]
+    // Assume CCW polygon winding
+
+
+    var offsetX = nextPointY - currentPointY;
+    var offsetY = -(nextPointX - currentPointX); // Normalize
+
+    var offsetLength = Math.sqrt(offsetX * offsetX + offsetY * offsetY);
+    var normalizedOffsetX = offsetX / offsetLength;
+    var normalizedOffsetY = offsetY / offsetLength;
+    expandedLineSet[i * 4] = currentPointX + normalizedOffsetX * pad;
+    expandedLineSet[i * 4 + 1] = currentPointY + normalizedOffsetY * pad;
+    expandedLineSet[i * 4 + 2] = nextPointX + normalizedOffsetX * pad;
+    expandedLineSet[i * 4 + 3] = nextPointY + normalizedOffsetY * pad;
+  }
 
-                core_defaults._set('global', {
-                    datasets: {
-                        scatter: {
-                            showLine: false
-                        }
-                    }
-                });
+  return expandedLineSet;
+};
+var intersectLineEllipse = function intersectLineEllipse(x, y, centerX, centerY, ellipseWradius, ellipseHradius) {
+  var dispX = centerX - x;
+  var dispY = centerY - y;
+  dispX /= ellipseWradius;
+  dispY /= ellipseHradius;
+  var len = Math.sqrt(dispX * dispX + dispY * dispY);
+  var newLength = len - 1;
+
+  if (newLength < 0) {
+    return [];
+  }
 
-// Scatter charts use line controllers
-                var controller_scatter = controller_line;
+  var lenProportion = newLength / len;
+  return [(centerX - x) * lenProportion + x, (centerY - y) * lenProportion + y];
+};
+var checkInEllipse = function checkInEllipse(x, y, width, height, centerX, centerY, padding) {
+  x -= centerX;
+  y -= centerY;
+  x /= width / 2 + padding;
+  y /= height / 2 + padding;
+  return x * x + y * y <= 1;
+}; // Returns intersections of increasing distance from line's start point
+
+var intersectLineCircle = function intersectLineCircle(x1, y1, x2, y2, centerX, centerY, radius) {
+  // Calculate d, direction vector of line
+  var d = [x2 - x1, y2 - y1]; // Direction vector of line
+
+  var f = [x1 - centerX, y1 - centerY];
+  var a = d[0] * d[0] + d[1] * d[1];
+  var b = 2 * (f[0] * d[0] + f[1] * d[1]);
+  var c = f[0] * f[0] + f[1] * f[1] - radius * radius;
+  var discriminant = b * b - 4 * a * c;
+
+  if (discriminant < 0) {
+    return [];
+  }
 
-// NOTE export a map in which the key represents the controller type, not
-// the class, and so must be CamelCase in order to be correctly retrieved
-// by the controller in core.controller.js (`controllers[meta.type]`).
+  var t1 = (-b + Math.sqrt(discriminant)) / (2 * a);
+  var t2 = (-b - Math.sqrt(discriminant)) / (2 * a);
+  var tMin = Math.min(t1, t2);
+  var tMax = Math.max(t1, t2);
+  var inRangeParams = [];
 
-                var controllers = {
-                    bar: controller_bar,
-                    bubble: controller_bubble,
-                    doughnut: controller_doughnut,
-                    horizontalBar: controller_horizontalBar,
-                    line: controller_line,
-                    polarArea: controller_polarArea,
-                    pie: controller_pie,
-                    radar: controller_radar,
-                    scatter: controller_scatter
-                };
+  if (tMin >= 0 && tMin <= 1) {
+    inRangeParams.push(tMin);
+  }
 
-                /**
-                 * Helper function to get relative position for an event
-                 * @param {Event|IEvent} event - The event to get the position for
-                 * @param {Chart} chart - The chart
-                 * @returns {object} the event position
-                 */
-                function getRelativePosition(e, chart) {
-                    if (e.native) {
-                        return {
-                            x: e.x,
-                            y: e.y
-                        };
-                    }
+  if (tMax >= 0 && tMax <= 1) {
+    inRangeParams.push(tMax);
+  }
 
-                    return helpers$1.getRelativePosition(e, chart);
-                }
+  if (inRangeParams.length === 0) {
+    return [];
+  }
 
-                /**
-                 * Helper function to traverse all of the visible elements in the chart
-                 * @param {Chart} chart - the chart
-                 * @param {function} handler - the callback to execute for each visible item
-                 */
-                function parseVisibleItems(chart, handler) {
-                    var metasets = chart._getSortedVisibleDatasetMetas();
-                    var metadata, i, j, ilen, jlen, element;
-
-                    for (i = 0, ilen = metasets.length; i < ilen; ++i) {
-                        metadata = metasets[i].data;
-                        for (j = 0, jlen = metadata.length; j < jlen; ++j) {
-                            element = metadata[j];
-                            if (!element._view.skip) {
-                                handler(element);
-                            }
-                        }
-                    }
-                }
+  var nearIntersectionX = inRangeParams[0] * d[0] + x1;
+  var nearIntersectionY = inRangeParams[0] * d[1] + y1;
 
-                /**
-                 * Helper function to get the items that intersect the event position
-                 * @param {ChartElement[]} items - elements to filter
-                 * @param {object} position - the point to be nearest to
-                 * @return {ChartElement[]} the nearest items
-                 */
-                function getIntersectItems(chart, position) {
-                    var elements = [];
-
-                    parseVisibleItems(chart, function(element) {
-                        if (element.inRange(position.x, position.y)) {
-                            elements.push(element);
-                        }
-                    });
+  if (inRangeParams.length > 1) {
+    if (inRangeParams[0] == inRangeParams[1]) {
+      return [nearIntersectionX, nearIntersectionY];
+    } else {
+      var farIntersectionX = inRangeParams[1] * d[0] + x1;
+      var farIntersectionY = inRangeParams[1] * d[1] + y1;
+      return [nearIntersectionX, nearIntersectionY, farIntersectionX, farIntersectionY];
+    }
+  } else {
+    return [nearIntersectionX, nearIntersectionY];
+  }
+};
+var midOfThree = function midOfThree(a, b, c) {
+  if (b <= a && a <= c || c <= a && a <= b) {
+    return a;
+  } else if (a <= b && b <= c || c <= b && b <= a) {
+    return b;
+  } else {
+    return c;
+  }
+}; // (x1,y1)=>(x2,y2) intersect with (x3,y3)=>(x4,y4)
+
+var finiteLinesIntersect = function finiteLinesIntersect(x1, y1, x2, y2, x3, y3, x4, y4, infiniteLines) {
+  var dx13 = x1 - x3;
+  var dx21 = x2 - x1;
+  var dx43 = x4 - x3;
+  var dy13 = y1 - y3;
+  var dy21 = y2 - y1;
+  var dy43 = y4 - y3;
+  var ua_t = dx43 * dy13 - dy43 * dx13;
+  var ub_t = dx21 * dy13 - dy21 * dx13;
+  var u_b = dy43 * dx21 - dx43 * dy21;
+
+  if (u_b !== 0) {
+    var ua = ua_t / u_b;
+    var ub = ub_t / u_b;
+    var flptThreshold = 0.001;
+
+    var _min = 0 - flptThreshold;
+
+    var _max = 1 + flptThreshold;
+
+    if (_min <= ua && ua <= _max && _min <= ub && ub <= _max) {
+      return [x1 + ua * dx21, y1 + ua * dy21];
+    } else {
+      if (!infiniteLines) {
+        return [];
+      } else {
+        return [x1 + ua * dx21, y1 + ua * dy21];
+      }
+    }
+  } else {
+    if (ua_t === 0 || ub_t === 0) {
+      // Parallel, coincident lines. Check if overlap
+      // Check endpoint of second line
+      if (midOfThree(x1, x2, x4) === x4) {
+        return [x4, y4];
+      } // Check start point of second line
 
-                    return elements;
-                }
 
-                /**
-                 * Helper function to get the items nearest to the event position considering all visible items in teh chart
-                 * @param {Chart} chart - the chart to look at elements from
-                 * @param {object} position - the point to be nearest to
-                 * @param {boolean} intersect - if true, only consider items that intersect the position
-                 * @param {function} distanceMetric - function to provide the distance between points
-                 * @return {ChartElement[]} the nearest items
-                 */
-                function getNearestItems(chart, position, intersect, distanceMetric) {
-                    var minDistance = Number.POSITIVE_INFINITY;
-                    var nearestItems = [];
-
-                    parseVisibleItems(chart, function(element) {
-                        if (intersect && !element.inRange(position.x, position.y)) {
-                            return;
-                        }
+      if (midOfThree(x1, x2, x3) === x3) {
+        return [x3, y3];
+      } // Endpoint of first line
 
-                        var center = element.getCenterPoint();
-                        var distance = distanceMetric(position, center);
-                        if (distance < minDistance) {
-                            nearestItems = [element];
-                            minDistance = distance;
-                        } else if (distance === minDistance) {
-                            // Can have multiple items at the same distance in which case we sort by size
-                            nearestItems.push(element);
-                        }
-                    });
 
-                    return nearestItems;
-                }
+      if (midOfThree(x3, x4, x2) === x2) {
+        return [x2, y2];
+      }
 
-                /**
-                 * Get a distance metric function for two points based on the
-                 * axis mode setting
-                 * @param {string} axis - the axis mode. x|y|xy
-                 */
-                function getDistanceMetricForAxis(axis) {
-                    var useX = axis.indexOf('x') !== -1;
-                    var useY = axis.indexOf('y') !== -1;
-
-                    return function(pt1, pt2) {
-                        var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;
-                        var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;
-                        return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));
-                    };
-                }
+      return [];
+    } else {
+      // Parallel, non-coincident
+      return [];
+    }
+  }
+}; // math.polygonIntersectLine( x, y, basePoints, centerX, centerY, width, height, padding )
+// intersect a node polygon (pts transformed)
+//
+// math.polygonIntersectLine( x, y, basePoints, centerX, centerY )
+// intersect the points (no transform)
 
-                function indexMode(chart, e, options) {
-                    var position = getRelativePosition(e, chart);
-                    // Default axis for index mode is 'x' to match old behaviour
-                    options.axis = options.axis || 'x';
-                    var distanceMetric = getDistanceMetricForAxis(options.axis);
-                    var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);
-                    var elements = [];
+var polygonIntersectLine = function polygonIntersectLine(x, y, basePoints, centerX, centerY, width, height, padding) {
+  var intersections = [];
+  var intersection;
+  var transformedPoints = new Array(basePoints.length);
+  var doTransform = true;
 
-                    if (!items.length) {
-                        return [];
-                    }
+  if (width == null) {
+    doTransform = false;
+  }
 
-                    chart._getSortedVisibleDatasetMetas().forEach(function(meta) {
-                        var element = meta.data[items[0]._index];
+  var points;
 
-                        // don't count items that are skipped (null data)
-                        if (element && !element._view.skip) {
-                            elements.push(element);
-                        }
-                    });
+  if (doTransform) {
+    for (var i = 0; i < transformedPoints.length / 2; i++) {
+      transformedPoints[i * 2] = basePoints[i * 2] * width + centerX;
+      transformedPoints[i * 2 + 1] = basePoints[i * 2 + 1] * height + centerY;
+    }
 
-                    return elements;
-                }
+    if (padding > 0) {
+      var expandedLineSet = expandPolygon(transformedPoints, -padding);
+      points = joinLines(expandedLineSet);
+    } else {
+      points = transformedPoints;
+    }
+  } else {
+    points = basePoints;
+  }
 
-                /**
-                 * @interface IInteractionOptions
-                 */
-                /**
-                 * If true, only consider items that intersect the point
-                 * @name IInterfaceOptions#boolean
-                 * @type Boolean
-                 */
-
-                /**
-                 * Contains interaction related functions
-                 * @namespace Chart.Interaction
-                 */
-                var core_interaction = {
-                    // Helper function for different modes
-                    modes: {
-                        single: function(chart, e) {
-                            var position = getRelativePosition(e, chart);
-                            var elements = [];
-
-                            parseVisibleItems(chart, function(element) {
-                                if (element.inRange(position.x, position.y)) {
-                                    elements.push(element);
-                                    return elements;
-                                }
-                            });
-
-                            return elements.slice(0, 1);
-                        },
-
-                        /**
-                         * @function Chart.Interaction.modes.label
-                         * @deprecated since version 2.4.0
-                         * @todo remove at version 3
-                         * @private
-                         */
-                        label: indexMode,
-
-                        /**
-                         * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something
-                         * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item
-                         * @function Chart.Interaction.modes.index
-                         * @since v2.4.0
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @param {IInteractionOptions} options - options to use during interaction
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        index: indexMode,
-
-                        /**
-                         * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something
-                         * If the options.intersect is false, we find the nearest item and return the items in that dataset
-                         * @function Chart.Interaction.modes.dataset
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @param {IInteractionOptions} options - options to use during interaction
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        dataset: function(chart, e, options) {
-                            var position = getRelativePosition(e, chart);
-                            options.axis = options.axis || 'xy';
-                            var distanceMetric = getDistanceMetricForAxis(options.axis);
-                            var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);
-
-                            if (items.length > 0) {
-                                items = chart.getDatasetMeta(items[0]._datasetIndex).data;
-                            }
+  var currentX, currentY, nextX, nextY;
 
-                            return items;
-                        },
-
-                        /**
-                         * @function Chart.Interaction.modes.x-axis
-                         * @deprecated since version 2.4.0. Use index mode and intersect == true
-                         * @todo remove at version 3
-                         * @private
-                         */
-                        'x-axis': function(chart, e) {
-                            return indexMode(chart, e, {intersect: false});
-                        },
-
-                        /**
-                         * Point mode returns all elements that hit test based on the event position
-                         * of the event
-                         * @function Chart.Interaction.modes.intersect
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        point: function(chart, e) {
-                            var position = getRelativePosition(e, chart);
-                            return getIntersectItems(chart, position);
-                        },
-
-                        /**
-                         * nearest mode returns the element closest to the point
-                         * @function Chart.Interaction.modes.intersect
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @param {IInteractionOptions} options - options to use
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        nearest: function(chart, e, options) {
-                            var position = getRelativePosition(e, chart);
-                            options.axis = options.axis || 'xy';
-                            var distanceMetric = getDistanceMetricForAxis(options.axis);
-                            return getNearestItems(chart, position, options.intersect, distanceMetric);
-                        },
-
-                        /**
-                         * x mode returns the elements that hit-test at the current x coordinate
-                         * @function Chart.Interaction.modes.x
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @param {IInteractionOptions} options - options to use
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        x: function(chart, e, options) {
-                            var position = getRelativePosition(e, chart);
-                            var items = [];
-                            var intersectsItem = false;
-
-                            parseVisibleItems(chart, function(element) {
-                                if (element.inXRange(position.x)) {
-                                    items.push(element);
-                                }
-
-                                if (element.inRange(position.x, position.y)) {
-                                    intersectsItem = true;
-                                }
-                            });
-
-                            // If we want to trigger on an intersect and we don't have any items
-                            // that intersect the position, return nothing
-                            if (options.intersect && !intersectsItem) {
-                                items = [];
-                            }
-                            return items;
-                        },
-
-                        /**
-                         * y mode returns the elements that hit-test at the current y coordinate
-                         * @function Chart.Interaction.modes.y
-                         * @param {Chart} chart - the chart we are returning items from
-                         * @param {Event} e - the event we are find things at
-                         * @param {IInteractionOptions} options - options to use
-                         * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned
-                         */
-                        y: function(chart, e, options) {
-                            var position = getRelativePosition(e, chart);
-                            var items = [];
-                            var intersectsItem = false;
-
-                            parseVisibleItems(chart, function(element) {
-                                if (element.inYRange(position.y)) {
-                                    items.push(element);
-                                }
-
-                                if (element.inRange(position.x, position.y)) {
-                                    intersectsItem = true;
-                                }
-                            });
-
-                            // If we want to trigger on an intersect and we don't have any items
-                            // that intersect the position, return nothing
-                            if (options.intersect && !intersectsItem) {
-                                items = [];
-                            }
-                            return items;
-                        }
-                    }
-                };
+  for (var _i2 = 0; _i2 < points.length / 2; _i2++) {
+    currentX = points[_i2 * 2];
+    currentY = points[_i2 * 2 + 1];
 
-                var extend = helpers$1.extend;
+    if (_i2 < points.length / 2 - 1) {
+      nextX = points[(_i2 + 1) * 2];
+      nextY = points[(_i2 + 1) * 2 + 1];
+    } else {
+      nextX = points[0];
+      nextY = points[1];
+    }
 
-                function filterByPosition(array, position) {
-                    return helpers$1.where(array, function(v) {
-                        return v.pos === position;
-                    });
-                }
+    intersection = finiteLinesIntersect(x, y, centerX, centerY, currentX, currentY, nextX, nextY);
 
-                function sortByWeight(array, reverse) {
-                    return array.sort(function(a, b) {
-                        var v0 = reverse ? b : a;
-                        var v1 = reverse ? a : b;
-                        return v0.weight === v1.weight ?
-                            v0.index - v1.index :
-                            v0.weight - v1.weight;
-                    });
-                }
+    if (intersection.length !== 0) {
+      intersections.push(intersection[0], intersection[1]);
+    }
+  }
 
-                function wrapBoxes(boxes) {
-                    var layoutBoxes = [];
-                    var i, ilen, box;
-
-                    for (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {
-                        box = boxes[i];
-                        layoutBoxes.push({
-                            index: i,
-                            box: box,
-                            pos: box.position,
-                            horizontal: box.isHorizontal(),
-                            weight: box.weight
-                        });
-                    }
-                    return layoutBoxes;
-                }
+  return intersections;
+};
+var roundPolygonIntersectLine = function roundPolygonIntersectLine(x, y, basePoints, centerX, centerY, width, height, padding) {
+  var intersections = [];
+  var intersection;
+  var lines = new Array(basePoints.length);
+  var halfW = width / 2;
+  var halfH = height / 2;
+  var cornerRadius = getRoundPolygonRadius(width, height);
+
+  for (var i = 0; i < basePoints.length / 4; i++) {
+    var sourceUv = void 0,
+        destUv = void 0;
+
+    if (i === 0) {
+      sourceUv = basePoints.length - 2;
+    } else {
+      sourceUv = i * 4 - 2;
+    }
 
-                function setLayoutDims(layouts, params) {
-                    var i, ilen, layout;
-                    for (i = 0, ilen = layouts.length; i < ilen; ++i) {
-                        layout = layouts[i];
-                        // store width used instead of chartArea.w in fitBoxes
-                        layout.width = layout.horizontal
-                            ? layout.box.fullWidth && params.availableWidth
-                            : params.vBoxMaxWidth;
-                        // store height used instead of chartArea.h in fitBoxes
-                        layout.height = layout.horizontal && params.hBoxMaxHeight;
-                    }
-                }
+    destUv = i * 4 + 2;
+    var px = centerX + halfW * basePoints[i * 4];
+    var py = centerY + halfH * basePoints[i * 4 + 1];
+    var cosTheta = -basePoints[sourceUv] * basePoints[destUv] - basePoints[sourceUv + 1] * basePoints[destUv + 1];
+    var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
+    var cp0x = px - offset * basePoints[sourceUv];
+    var cp0y = py - offset * basePoints[sourceUv + 1];
+    var cp1x = px + offset * basePoints[destUv];
+    var cp1y = py + offset * basePoints[destUv + 1];
+
+    if (i === 0) {
+      lines[basePoints.length - 2] = cp0x;
+      lines[basePoints.length - 1] = cp0y;
+    } else {
+      lines[i * 4 - 2] = cp0x;
+      lines[i * 4 - 1] = cp0y;
+    }
 
-                function buildLayoutBoxes(boxes) {
-                    var layoutBoxes = wrapBoxes(boxes);
-                    var left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);
-                    var right = sortByWeight(filterByPosition(layoutBoxes, 'right'));
-                    var top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);
-                    var bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));
-
-                    return {
-                        leftAndTop: left.concat(top),
-                        rightAndBottom: right.concat(bottom),
-                        chartArea: filterByPosition(layoutBoxes, 'chartArea'),
-                        vertical: left.concat(right),
-                        horizontal: top.concat(bottom)
-                    };
-                }
+    lines[i * 4] = cp1x;
+    lines[i * 4 + 1] = cp1y;
+    var orthx = basePoints[sourceUv + 1];
+    var orthy = -basePoints[sourceUv];
+    var cosAlpha = orthx * basePoints[destUv] + orthy * basePoints[destUv + 1];
 
-                function getCombinedMax(maxPadding, chartArea, a, b) {
-                    return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);
-                }
+    if (cosAlpha < 0) {
+      orthx *= -1;
+      orthy *= -1;
+    }
 
-                function updateDims(chartArea, params, layout) {
-                    var box = layout.box;
-                    var maxPadding = chartArea.maxPadding;
-                    var newWidth, newHeight;
+    var cx = cp0x + orthx * cornerRadius;
+    var cy = cp0y + orthy * cornerRadius;
+    intersection = intersectLineCircle(x, y, centerX, centerY, cx, cy, cornerRadius);
 
-                    if (layout.size) {
-                        // this layout was already counted for, lets first reduce old size
-                        chartArea[layout.pos] -= layout.size;
-                    }
-                    layout.size = layout.horizontal ? box.height : box.width;
-                    chartArea[layout.pos] += layout.size;
-
-                    if (box.getPadding) {
-                        var boxPadding = box.getPadding();
-                        maxPadding.top = Math.max(maxPadding.top, boxPadding.top);
-                        maxPadding.left = Math.max(maxPadding.left, boxPadding.left);
-                        maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);
-                        maxPadding.right = Math.max(maxPadding.right, boxPadding.right);
-                    }
+    if (intersection.length !== 0) {
+      intersections.push(intersection[0], intersection[1]);
+    }
+  }
 
-                    newWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');
-                    newHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');
+  for (var _i3 = 0; _i3 < lines.length / 4; _i3++) {
+    intersection = finiteLinesIntersect(x, y, centerX, centerY, lines[_i3 * 4], lines[_i3 * 4 + 1], lines[_i3 * 4 + 2], lines[_i3 * 4 + 3], false);
 
-                    if (newWidth !== chartArea.w || newHeight !== chartArea.h) {
-                        chartArea.w = newWidth;
-                        chartArea.h = newHeight;
+    if (intersection.length !== 0) {
+      intersections.push(intersection[0], intersection[1]);
+    }
+  }
 
-                        // return true if chart area changed in layout's direction
-                        return layout.horizontal ? newWidth !== chartArea.w : newHeight !== chartArea.h;
-                    }
-                }
+  if (intersections.length > 2) {
+    var lowestIntersection = [intersections[0], intersections[1]];
+    var lowestSquaredDistance = Math.pow(lowestIntersection[0] - x, 2) + Math.pow(lowestIntersection[1] - y, 2);
 
-                function handleMaxPadding(chartArea) {
-                    var maxPadding = chartArea.maxPadding;
+    for (var _i4 = 1; _i4 < intersections.length / 2; _i4++) {
+      var squaredDistance = Math.pow(intersections[_i4 * 2] - x, 2) + Math.pow(intersections[_i4 * 2 + 1] - y, 2);
 
-                    function updatePos(pos) {
-                        var change = Math.max(maxPadding[pos] - chartArea[pos], 0);
-                        chartArea[pos] += change;
-                        return change;
-                    }
-                    chartArea.y += updatePos('top');
-                    chartArea.x += updatePos('left');
-                    updatePos('right');
-                    updatePos('bottom');
-                }
+      if (squaredDistance <= lowestSquaredDistance) {
+        lowestIntersection[0] = intersections[_i4 * 2];
+        lowestIntersection[1] = intersections[_i4 * 2 + 1];
+        lowestSquaredDistance = squaredDistance;
+      }
+    }
 
-                function getMargins(horizontal, chartArea) {
-                    var maxPadding = chartArea.maxPadding;
+    return lowestIntersection;
+  }
 
-                    function marginForPositions(positions) {
-                        var margin = {left: 0, top: 0, right: 0, bottom: 0};
-                        positions.forEach(function(pos) {
-                            margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);
-                        });
-                        return margin;
-                    }
+  return intersections;
+};
+var shortenIntersection = function shortenIntersection(intersection, offset, amount) {
+  var disp = [intersection[0] - offset[0], intersection[1] - offset[1]];
+  var length = Math.sqrt(disp[0] * disp[0] + disp[1] * disp[1]);
+  var lenRatio = (length - amount) / length;
 
-                    return horizontal
-                        ? marginForPositions(['left', 'right'])
-                        : marginForPositions(['top', 'bottom']);
-                }
+  if (lenRatio < 0) {
+    lenRatio = 0.00001;
+  }
 
-                function fitBoxes(boxes, chartArea, params) {
-                    var refitBoxes = [];
-                    var i, ilen, layout, box, refit, changed;
+  return [offset[0] + lenRatio * disp[0], offset[1] + lenRatio * disp[1]];
+};
+var generateUnitNgonPointsFitToSquare = function generateUnitNgonPointsFitToSquare(sides, rotationRadians) {
+  var points = generateUnitNgonPoints(sides, rotationRadians);
+  points = fitPolygonToSquare(points);
+  return points;
+};
+var fitPolygonToSquare = function fitPolygonToSquare(points) {
+  var x, y;
+  var sides = points.length / 2;
+  var minX = Infinity,
+      minY = Infinity,
+      maxX = -Infinity,
+      maxY = -Infinity;
+
+  for (var i = 0; i < sides; i++) {
+    x = points[2 * i];
+    y = points[2 * i + 1];
+    minX = Math.min(minX, x);
+    maxX = Math.max(maxX, x);
+    minY = Math.min(minY, y);
+    maxY = Math.max(maxY, y);
+  } // stretch factors
+
+
+  var sx = 2 / (maxX - minX);
+  var sy = 2 / (maxY - minY);
+
+  for (var _i5 = 0; _i5 < sides; _i5++) {
+    x = points[2 * _i5] = points[2 * _i5] * sx;
+    y = points[2 * _i5 + 1] = points[2 * _i5 + 1] * sy;
+    minX = Math.min(minX, x);
+    maxX = Math.max(maxX, x);
+    minY = Math.min(minY, y);
+    maxY = Math.max(maxY, y);
+  }
 
-                    for (i = 0, ilen = boxes.length; i < ilen; ++i) {
-                        layout = boxes[i];
-                        box = layout.box;
+  if (minY < -1) {
+    for (var _i6 = 0; _i6 < sides; _i6++) {
+      y = points[2 * _i6 + 1] = points[2 * _i6 + 1] + (-1 - minY);
+    }
+  }
 
-                        box.update(
-                            layout.width || chartArea.w,
-                            layout.height || chartArea.h,
-                            getMargins(layout.horizontal, chartArea)
-                        );
-                        if (updateDims(chartArea, params, layout)) {
-                            changed = true;
-                            if (refitBoxes.length) {
-                                // Dimensions changed and there were non full width boxes before this
-                                // -> we have to refit those
-                                refit = true;
-                            }
-                        }
-                        if (!box.fullWidth) { // fullWidth boxes don't need to be re-fitted in any case
-                            refitBoxes.push(layout);
-                        }
-                    }
+  return points;
+};
+var generateUnitNgonPoints = function generateUnitNgonPoints(sides, rotationRadians) {
+  var increment = 1.0 / sides * 2 * Math.PI;
+  var startAngle = sides % 2 === 0 ? Math.PI / 2.0 + increment / 2.0 : Math.PI / 2.0;
+  startAngle += rotationRadians;
+  var points = new Array(sides * 2);
+  var currentAngle;
 
-                    return refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;
-                }
+  for (var i = 0; i < sides; i++) {
+    currentAngle = i * increment + startAngle;
+    points[2 * i] = Math.cos(currentAngle); // x
 
-                function placeBoxes(boxes, chartArea, params) {
-                    var userPadding = params.padding;
-                    var x = chartArea.x;
-                    var y = chartArea.y;
-                    var i, ilen, layout, box;
-
-                    for (i = 0, ilen = boxes.length; i < ilen; ++i) {
-                        layout = boxes[i];
-                        box = layout.box;
-                        if (layout.horizontal) {
-                            box.left = box.fullWidth ? userPadding.left : chartArea.left;
-                            box.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;
-                            box.top = y;
-                            box.bottom = y + box.height;
-                            box.width = box.right - box.left;
-                            y = box.bottom;
-                        } else {
-                            box.left = x;
-                            box.right = x + box.width;
-                            box.top = chartArea.top;
-                            box.bottom = chartArea.top + chartArea.h;
-                            box.height = box.bottom - box.top;
-                            x = box.right;
-                        }
-                    }
+    points[2 * i + 1] = Math.sin(-currentAngle); // y
+  }
 
-                    chartArea.x = x;
-                    chartArea.y = y;
-                }
+  return points;
+}; // Set the default radius, unless half of width or height is smaller than default
+
+var getRoundRectangleRadius = function getRoundRectangleRadius(width, height) {
+  return Math.min(width / 4, height / 4, 8);
+}; // Set the default radius
+
+var getRoundPolygonRadius = function getRoundPolygonRadius(width, height) {
+  return Math.min(width / 10, height / 10, 8);
+};
+var getCutRectangleCornerLength = function getCutRectangleCornerLength() {
+  return 8;
+};
+var bezierPtsToQuadCoeff = function bezierPtsToQuadCoeff(p0, p1, p2) {
+  return [p0 - 2 * p1 + p2, 2 * (p1 - p0), p0];
+}; // get curve width, height, and control point position offsets as a percentage of node height / width
+
+var getBarrelCurveConstants = function getBarrelCurveConstants(width, height) {
+  return {
+    heightOffset: Math.min(15, 0.05 * height),
+    widthOffset: Math.min(100, 0.25 * width),
+    ctrlPtOffsetPct: 0.05
+  };
+};
+
+var pageRankDefaults = defaults({
+  dampingFactor: 0.8,
+  precision: 0.000001,
+  iterations: 200,
+  weight: function weight(edge) {
+    return 1;
+  }
+});
+var elesfn$7 = {
+  pageRank: function pageRank(options) {
+    var _pageRankDefaults = pageRankDefaults(options),
+        dampingFactor = _pageRankDefaults.dampingFactor,
+        precision = _pageRankDefaults.precision,
+        iterations = _pageRankDefaults.iterations,
+        weight = _pageRankDefaults.weight;
 
-                core_defaults._set('global', {
-                    layout: {
-                        padding: {
-                            top: 0,
-                            right: 0,
-                            bottom: 0,
-                            left: 0
-                        }
-                    }
-                });
+    var cy = this._private.cy;
 
-                /**
-                 * @interface ILayoutItem
-                 * @prop {string} position - The position of the item in the chart layout. Possible values are
-                 * 'left', 'top', 'right', 'bottom', and 'chartArea'
-                 * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area
-                 * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down
-                 * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)
-                 * @prop {function} update - Takes two parameters: width and height. Returns size of item
-                 * @prop {function} getPadding -  Returns an object with padding on the edges
-                 * @prop {number} width - Width of item. Must be valid after update()
-                 * @prop {number} height - Height of item. Must be valid after update()
-                 * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update
-                 * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update
-                 * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update
-                 * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update
-                 */
+    var _this$byGroup = this.byGroup(),
+        nodes = _this$byGroup.nodes,
+        edges = _this$byGroup.edges;
 
-// The layout service is very self explanatory.  It's responsible for the layout within a chart.
-// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need
-// It is this service's responsibility of carrying out that layout.
-                var core_layouts = {
-                    defaults: {},
-
-                    /**
-                     * Register a box to a chart.
-                     * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.
-                     * @param {Chart} chart - the chart to use
-                     * @param {ILayoutItem} item - the item to add to be layed out
-                     */
-                    addBox: function(chart, item) {
-                        if (!chart.boxes) {
-                            chart.boxes = [];
-                        }
+    var numNodes = nodes.length;
+    var numNodesSqd = numNodes * numNodes;
+    var numEdges = edges.length; // Construct transposed adjacency matrix
+    // First lets have a zeroed matrix of the right size
+    // We'll also keep track of the sum of each column
 
-                        // initialize item with default values
-                        item.fullWidth = item.fullWidth || false;
-                        item.position = item.position || 'top';
-                        item.weight = item.weight || 0;
-                        item._layers = item._layers || function() {
-                            return [{
-                                z: 0,
-                                draw: function() {
-                                    item.draw.apply(item, arguments);
-                                }
-                            }];
-                        };
-
-                        chart.boxes.push(item);
-                    },
-
-                    /**
-                     * Remove a layoutItem from a chart
-                     * @param {Chart} chart - the chart to remove the box from
-                     * @param {ILayoutItem} layoutItem - the item to remove from the layout
-                     */
-                    removeBox: function(chart, layoutItem) {
-                        var index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;
-                        if (index !== -1) {
-                            chart.boxes.splice(index, 1);
-                        }
-                    },
-
-                    /**
-                     * Sets (or updates) options on the given `item`.
-                     * @param {Chart} chart - the chart in which the item lives (or will be added to)
-                     * @param {ILayoutItem} item - the item to configure with the given options
-                     * @param {object} options - the new item options.
-                     */
-                    configure: function(chart, item, options) {
-                        var props = ['fullWidth', 'position', 'weight'];
-                        var ilen = props.length;
-                        var i = 0;
-                        var prop;
-
-                        for (; i < ilen; ++i) {
-                            prop = props[i];
-                            if (options.hasOwnProperty(prop)) {
-                                item[prop] = options[prop];
-                            }
-                        }
-                    },
-
-                    /**
-                     * Fits boxes of the given chart into the given size by having each box measure itself
-                     * then running a fitting algorithm
-                     * @param {Chart} chart - the chart
-                     * @param {number} width - the width to fit into
-                     * @param {number} height - the height to fit into
-                     */
-                    update: function(chart, width, height) {
-                        if (!chart) {
-                            return;
-                        }
+    var matrix = new Array(numNodesSqd);
+    var columnSum = new Array(numNodes);
+    var additionalProb = (1 - dampingFactor) / numNodes; // Create null matrix
 
-                        var layoutOptions = chart.options.layout || {};
-                        var padding = helpers$1.options.toPadding(layoutOptions.padding);
-
-                        var availableWidth = width - padding.width;
-                        var availableHeight = height - padding.height;
-                        var boxes = buildLayoutBoxes(chart.boxes);
-                        var verticalBoxes = boxes.vertical;
-                        var horizontalBoxes = boxes.horizontal;
-
-                        // Essentially we now have any number of boxes on each of the 4 sides.
-                        // Our canvas looks like the following.
-                        // The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and
-                        // B1 is the bottom axis
-                        // There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays
-                        // These locations are single-box locations only, when trying to register a chartArea location that is already taken,
-                        // an error will be thrown.
-                        //
-                        // |----------------------------------------------------|
-                        // |                  T1 (Full Width)                   |
-                        // |----------------------------------------------------|
-                        // |    |    |                 T2                  |    |
-                        // |    |----|-------------------------------------|----|
-                        // |    |    | C1 |                           | C2 |    |
-                        // |    |    |----|                           |----|    |
-                        // |    |    |                                     |    |
-                        // | L1 | L2 |           ChartArea (C0)            | R1 |
-                        // |    |    |                                     |    |
-                        // |    |    |----|                           |----|    |
-                        // |    |    | C3 |                           | C4 |    |
-                        // |    |----|-------------------------------------|----|
-                        // |    |    |                 B1                  |    |
-                        // |----------------------------------------------------|
-                        // |                  B2 (Full Width)                   |
-                        // |----------------------------------------------------|
-                        //
-
-                        var params = Object.freeze({
-                            outerWidth: width,
-                            outerHeight: height,
-                            padding: padding,
-                            availableWidth: availableWidth,
-                            vBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,
-                            hBoxMaxHeight: availableHeight / 2
-                        });
-                        var chartArea = extend({
-                            maxPadding: extend({}, padding),
-                            w: availableWidth,
-                            h: availableHeight,
-                            x: padding.left,
-                            y: padding.top
-                        }, padding);
-
-                        setLayoutDims(verticalBoxes.concat(horizontalBoxes), params);
-
-                        // First fit vertical boxes
-                        fitBoxes(verticalBoxes, chartArea, params);
-
-                        // Then fit horizontal boxes
-                        if (fitBoxes(horizontalBoxes, chartArea, params)) {
-                            // if the area changed, re-fit vertical boxes
-                            fitBoxes(verticalBoxes, chartArea, params);
-                        }
+    for (var i = 0; i < numNodes; i++) {
+      for (var j = 0; j < numNodes; j++) {
+        var n = i * numNodes + j;
+        matrix[n] = 0;
+      }
 
-                        handleMaxPadding(chartArea);
+      columnSum[i] = 0;
+    } // Now, process edges
 
-                        // Finally place the boxes to correct coordinates
-                        placeBoxes(boxes.leftAndTop, chartArea, params);
 
-                        // Move to opposite side of chart
-                        chartArea.x += chartArea.w;
-                        chartArea.y += chartArea.h;
+    for (var _i = 0; _i < numEdges; _i++) {
+      var edge = edges[_i];
+      var srcId = edge.data('source');
+      var tgtId = edge.data('target'); // Don't include loops in the matrix
 
-                        placeBoxes(boxes.rightAndBottom, chartArea, params);
+      if (srcId === tgtId) {
+        continue;
+      }
 
-                        chart.chartArea = {
-                            left: chartArea.left,
-                            top: chartArea.top,
-                            right: chartArea.left + chartArea.w,
-                            bottom: chartArea.top + chartArea.h
-                        };
+      var s = nodes.indexOfId(srcId);
+      var t = nodes.indexOfId(tgtId);
+      var w = weight(edge);
 
-                        // Finally update boxes in chartArea (radial scale for example)
-                        helpers$1.each(boxes.chartArea, function(layout) {
-                            var box = layout.box;
-                            extend(box, chart.chartArea);
-                            box.update(chartArea.w, chartArea.h);
-                        });
-                    }
-                };
+      var _n = t * numNodes + s; // Update matrix
 
-                /**
-                 * Platform fallback implementation (minimal).
-                 * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939
-                 */
 
-                var platform_basic = {
-                    acquireContext: function(item) {
-                        if (item && item.canvas) {
-                            // Support for any object associated to a canvas (including a context2d)
-                            item = item.canvas;
-                        }
+      matrix[_n] += w; // Update column sum
 
-                        return item && item.getContext('2d') || null;
-                    }
-                };
+      columnSum[s] += w;
+    } // Add additional probability based on damping factor
+    // Also, take into account columns that have sum = 0
 
-                var platform_dom = "/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n";
 
-                var platform_dom$1 = /*#__PURE__*/Object.freeze({
-                    __proto__: null,
-                    'default': platform_dom
-                });
+    var p = 1.0 / numNodes + additionalProb; // Shorthand
+    // Traverse matrix, column by column
 
-                var stylesheet = getCjsExportFromNamespace(platform_dom$1);
-
-                var EXPANDO_KEY = '$chartjs';
-                var CSS_PREFIX = 'chartjs-';
-                var CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';
-                var CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';
-                var CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';
-                var ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];
-
-                /**
-                 * DOM event types -> Chart.js event types.
-                 * Note: only events with different types are mapped.
-                 * @see https://developer.mozilla.org/en-US/docs/Web/Events
-                 */
-                var EVENT_TYPES = {
-                    touchstart: 'mousedown',
-                    touchmove: 'mousemove',
-                    touchend: 'mouseup',
-                    pointerenter: 'mouseenter',
-                    pointerdown: 'mousedown',
-                    pointermove: 'mousemove',
-                    pointerup: 'mouseup',
-                    pointerleave: 'mouseout',
-                    pointerout: 'mouseout'
-                };
+    for (var _j = 0; _j < numNodes; _j++) {
+      if (columnSum[_j] === 0) {
+        // No 'links' out from node jth, assume equal probability for each possible node
+        for (var _i2 = 0; _i2 < numNodes; _i2++) {
+          var _n2 = _i2 * numNodes + _j;
 
-                /**
-                 * The "used" size is the final value of a dimension property after all calculations have
-                 * been performed. This method uses the computed style of `element` but returns undefined
-                 * if the computed style is not expressed in pixels. That can happen in some cases where
-                 * `element` has a size relative to its parent and this last one is not yet displayed,
-                 * for example because of `display: none` on a parent node.
-                 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value
-                 * @returns {number} Size in pixels or undefined if unknown.
-                 */
-                function readUsedSize(element, property) {
-                    var value = helpers$1.getStyle(element, property);
-                    var matches = value && value.match(/^(\d+)(\.\d+)?px$/);
-                    return matches ? Number(matches[1]) : undefined;
-                }
+          matrix[_n2] = p;
+        }
+      } else {
+        // Node jth has outgoing link, compute normalized probabilities
+        for (var _i3 = 0; _i3 < numNodes; _i3++) {
+          var _n3 = _i3 * numNodes + _j;
 
-                /**
-                 * Initializes the canvas style and render size without modifying the canvas display size,
-                 * since responsiveness is handled by the controller.resize() method. The config is used
-                 * to determine the aspect ratio to apply in case no explicit height has been specified.
-                 */
-                function initCanvas(canvas, config) {
-                    var style = canvas.style;
-
-                    // NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it
-                    // returns null or '' if no explicit value has been set to the canvas attribute.
-                    var renderHeight = canvas.getAttribute('height');
-                    var renderWidth = canvas.getAttribute('width');
-
-                    // Chart.js modifies some canvas values that we want to restore on destroy
-                    canvas[EXPANDO_KEY] = {
-                        initial: {
-                            height: renderHeight,
-                            width: renderWidth,
-                            style: {
-                                display: style.display,
-                                height: style.height,
-                                width: style.width
-                            }
-                        }
-                    };
+          matrix[_n3] = matrix[_n3] / columnSum[_j] + additionalProb;
+        }
+      }
+    } // Compute dominant eigenvector using power method
 
-                    // Force canvas to display as block to avoid extra space caused by inline
-                    // elements, which would interfere with the responsive resize process.
-                    // https://github.com/chartjs/Chart.js/issues/2538
-                    style.display = style.display || 'block';
 
-                    if (renderWidth === null || renderWidth === '') {
-                        var displayWidth = readUsedSize(canvas, 'width');
-                        if (displayWidth !== undefined) {
-                            canvas.width = displayWidth;
-                        }
-                    }
+    var eigenvector = new Array(numNodes);
+    var temp = new Array(numNodes);
+    var previous; // Start with a vector of all 1's
+    // Also, initialize a null vector which will be used as shorthand
 
-                    if (renderHeight === null || renderHeight === '') {
-                        if (canvas.style.height === '') {
-                            // If no explicit render height and style height, let's apply the aspect ratio,
-                            // which one can be specified by the user but also by charts as default option
-                            // (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.
-                            canvas.height = canvas.width / (config.options.aspectRatio || 2);
-                        } else {
-                            var displayHeight = readUsedSize(canvas, 'height');
-                            if (displayWidth !== undefined) {
-                                canvas.height = displayHeight;
-                            }
-                        }
-                    }
+    for (var _i4 = 0; _i4 < numNodes; _i4++) {
+      eigenvector[_i4] = 1;
+    }
 
-                    return canvas;
-                }
+    for (var iter = 0; iter < iterations; iter++) {
+      // Temp array with all 0's
+      for (var _i5 = 0; _i5 < numNodes; _i5++) {
+        temp[_i5] = 0;
+      } // Multiply matrix with previous result
 
-                /**
-                 * Detects support for options object argument in addEventListener.
-                 * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
-                 * @private
-                 */
-                var supportsEventListenerOptions = (function() {
-                    var supports = false;
-                    try {
-                        var options = Object.defineProperty({}, 'passive', {
-                            // eslint-disable-next-line getter-return
-                            get: function() {
-                                supports = true;
-                            }
-                        });
-                        window.addEventListener('e', null, options);
-                    } catch (e) {
-                        // continue regardless of error
-                    }
-                    return supports;
-                }());
 
-// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.
-// https://github.com/chartjs/Chart.js/issues/4287
-                var eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;
+      for (var _i6 = 0; _i6 < numNodes; _i6++) {
+        for (var _j2 = 0; _j2 < numNodes; _j2++) {
+          var _n4 = _i6 * numNodes + _j2;
 
-                function addListener(node, type, listener) {
-                    node.addEventListener(type, listener, eventListenerOptions);
-                }
+          temp[_i6] += matrix[_n4] * eigenvector[_j2];
+        }
+      }
+
+      inPlaceSumNormalize(temp);
+      previous = eigenvector;
+      eigenvector = temp;
+      temp = previous;
+      var diff = 0; // Compute difference (squared module) of both vectors
+
+      for (var _i7 = 0; _i7 < numNodes; _i7++) {
+        var delta = previous[_i7] - eigenvector[_i7];
+        diff += delta * delta;
+      } // If difference is less than the desired threshold, stop iterating
+
+
+      if (diff < precision) {
+        break;
+      }
+    } // Construct result
+
+
+    var res = {
+      rank: function rank(node) {
+        node = cy.collection(node)[0];
+        return eigenvector[nodes.indexOf(node)];
+      }
+    };
+    return res;
+  } // pageRank
+
+}; // elesfn
+
+var defaults$1 = defaults({
+  root: null,
+  weight: function weight(edge) {
+    return 1;
+  },
+  directed: false,
+  alpha: 0
+});
+var elesfn$8 = {
+  degreeCentralityNormalized: function degreeCentralityNormalized(options) {
+    options = defaults$1(options);
+    var cy = this.cy();
+    var nodes = this.nodes();
+    var numNodes = nodes.length;
+
+    if (!options.directed) {
+      var degrees = {};
+      var maxDegree = 0;
+
+      for (var i = 0; i < numNodes; i++) {
+        var node = nodes[i]; // add current node to the current options object and call degreeCentrality
+
+        options.root = node;
+        var currDegree = this.degreeCentrality(options);
+
+        if (maxDegree < currDegree.degree) {
+          maxDegree = currDegree.degree;
+        }
 
-                function removeListener(node, type, listener) {
-                    node.removeEventListener(type, listener, eventListenerOptions);
-                }
+        degrees[node.id()] = currDegree.degree;
+      }
 
-                function createEvent(type, chart, x, y, nativeEvent) {
-                    return {
-                        type: type,
-                        chart: chart,
-                        native: nativeEvent || null,
-                        x: x !== undefined ? x : null,
-                        y: y !== undefined ? y : null,
-                    };
-                }
+      return {
+        degree: function degree(node) {
+          if (maxDegree === 0) {
+            return 0;
+          }
 
-                function fromNativeEvent(event, chart) {
-                    var type = EVENT_TYPES[event.type] || event.type;
-                    var pos = helpers$1.getRelativePosition(event, chart);
-                    return createEvent(type, chart, pos.x, pos.y, event);
-                }
+          if (string(node)) {
+            // from is a selector string
+            node = cy.filter(node);
+          }
 
-                function throttled(fn, thisArg) {
-                    var ticking = false;
-                    var args = [];
+          return degrees[node.id()] / maxDegree;
+        }
+      };
+    } else {
+      var indegrees = {};
+      var outdegrees = {};
+      var maxIndegree = 0;
+      var maxOutdegree = 0;
 
-                    return function() {
-                        args = Array.prototype.slice.call(arguments);
-                        thisArg = thisArg || this;
+      for (var _i = 0; _i < numNodes; _i++) {
+        var _node = nodes[_i];
 
-                        if (!ticking) {
-                            ticking = true;
-                            helpers$1.requestAnimFrame.call(window, function() {
-                                ticking = false;
-                                fn.apply(thisArg, args);
-                            });
-                        }
-                    };
-                }
+        var id = _node.id(); // add current node to the current options object and call degreeCentrality
 
-                function createDiv(cls) {
-                    var el = document.createElement('div');
-                    el.className = cls || '';
-                    return el;
-                }
 
-// Implementation based on https://github.com/marcj/css-element-queries
-                function createResizer(handler) {
-                    var maxSize = 1000000;
-
-                    // NOTE(SB) Don't use innerHTML because it could be considered unsafe.
-                    // https://github.com/chartjs/Chart.js/issues/5902
-                    var resizer = createDiv(CSS_SIZE_MONITOR);
-                    var expand = createDiv(CSS_SIZE_MONITOR + '-expand');
-                    var shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');
-
-                    expand.appendChild(createDiv());
-                    shrink.appendChild(createDiv());
-
-                    resizer.appendChild(expand);
-                    resizer.appendChild(shrink);
-                    resizer._reset = function() {
-                        expand.scrollLeft = maxSize;
-                        expand.scrollTop = maxSize;
-                        shrink.scrollLeft = maxSize;
-                        shrink.scrollTop = maxSize;
-                    };
-
-                    var onScroll = function() {
-                        resizer._reset();
-                        handler();
-                    };
-
-                    addListener(expand, 'scroll', onScroll.bind(expand, 'expand'));
-                    addListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));
-
-                    return resizer;
-                }
+        options.root = _node;
 
-// https://davidwalsh.name/detect-node-insertion
-                function watchForRender(node, handler) {
-                    var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});
-                    var proxy = expando.renderProxy = function(e) {
-                        if (e.animationName === CSS_RENDER_ANIMATION) {
-                            handler();
-                        }
-                    };
+        var _currDegree = this.degreeCentrality(options);
 
-                    helpers$1.each(ANIMATION_START_EVENTS, function(type) {
-                        addListener(node, type, proxy);
-                    });
+        if (maxIndegree < _currDegree.indegree) maxIndegree = _currDegree.indegree;
+        if (maxOutdegree < _currDegree.outdegree) maxOutdegree = _currDegree.outdegree;
+        indegrees[id] = _currDegree.indegree;
+        outdegrees[id] = _currDegree.outdegree;
+      }
 
-                    // #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class
-                    // is removed then added back immediately (same animation frame?). Accessing the
-                    // `offsetParent` property will force a reflow and re-evaluate the CSS animation.
-                    // https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics
-                    // https://github.com/chartjs/Chart.js/issues/4737
-                    expando.reflow = !!node.offsetParent;
+      return {
+        indegree: function indegree(node) {
+          if (maxIndegree == 0) {
+            return 0;
+          }
 
-                    node.classList.add(CSS_RENDER_MONITOR);
-                }
+          if (string(node)) {
+            // from is a selector string
+            node = cy.filter(node);
+          }
 
-                function unwatchForRender(node) {
-                    var expando = node[EXPANDO_KEY] || {};
-                    var proxy = expando.renderProxy;
+          return indegrees[node.id()] / maxIndegree;
+        },
+        outdegree: function outdegree(node) {
+          if (maxOutdegree === 0) {
+            return 0;
+          }
 
-                    if (proxy) {
-                        helpers$1.each(ANIMATION_START_EVENTS, function(type) {
-                            removeListener(node, type, proxy);
-                        });
+          if (string(node)) {
+            // from is a selector string
+            node = cy.filter(node);
+          }
 
-                        delete expando.renderProxy;
-                    }
+          return outdegrees[node.id()] / maxOutdegree;
+        }
+      };
+    }
+  },
+  // degreeCentralityNormalized
+  // Implemented from the algorithm in Opsahl's paper
+  // "Node centrality in weighted networks: Generalizing degree and shortest paths"
+  // check the heading 2 "Degree"
+  degreeCentrality: function degreeCentrality(options) {
+    options = defaults$1(options);
+    var cy = this.cy();
+    var callingEles = this;
+    var _options = options,
+        root = _options.root,
+        weight = _options.weight,
+        directed = _options.directed,
+        alpha = _options.alpha;
+    root = cy.collection(root)[0];
+
+    if (!directed) {
+      var connEdges = root.connectedEdges().intersection(callingEles);
+      var k = connEdges.length;
+      var s = 0; // Now, sum edge weights
+
+      for (var i = 0; i < connEdges.length; i++) {
+        s += weight(connEdges[i]);
+      }
+
+      return {
+        degree: Math.pow(k, 1 - alpha) * Math.pow(s, alpha)
+      };
+    } else {
+      var edges = root.connectedEdges();
+      var incoming = edges.filter(function (edge) {
+        return edge.target().same(root) && callingEles.has(edge);
+      });
+      var outgoing = edges.filter(function (edge) {
+        return edge.source().same(root) && callingEles.has(edge);
+      });
+      var k_in = incoming.length;
+      var k_out = outgoing.length;
+      var s_in = 0;
+      var s_out = 0; // Now, sum incoming edge weights
 
-                    node.classList.remove(CSS_RENDER_MONITOR);
-                }
+      for (var _i2 = 0; _i2 < incoming.length; _i2++) {
+        s_in += weight(incoming[_i2]);
+      } // Now, sum outgoing edge weights
 
-                function addResizeListener(node, listener, chart) {
-                    var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});
-
-                    // Let's keep track of this added resizer and thus avoid DOM query when removing it.
-                    var resizer = expando.resizer = createResizer(throttled(function() {
-                        if (expando.resizer) {
-                            var container = chart.options.maintainAspectRatio && node.parentNode;
-                            var w = container ? container.clientWidth : 0;
-                            listener(createEvent('resize', chart));
-                            if (container && container.clientWidth < w && chart.canvas) {
-                                // If the container size shrank during chart resize, let's assume
-                                // scrollbar appeared. So we resize again with the scrollbar visible -
-                                // effectively making chart smaller and the scrollbar hidden again.
-                                // Because we are inside `throttled`, and currently `ticking`, scroll
-                                // events are ignored during this whole 2 resize process.
-                                // If we assumed wrong and something else happened, we are resizing
-                                // twice in a frame (potential performance issue)
-                                listener(createEvent('resize', chart));
-                            }
-                        }
-                    }));
-
-                    // The resizer needs to be attached to the node parent, so we first need to be
-                    // sure that `node` is attached to the DOM before injecting the resizer element.
-                    watchForRender(node, function() {
-                        if (expando.resizer) {
-                            var container = node.parentNode;
-                            if (container && container !== resizer.parentNode) {
-                                container.insertBefore(resizer, container.firstChild);
-                            }
 
-                            // The container size might have changed, let's reset the resizer state.
-                            resizer._reset();
-                        }
-                    });
-                }
+      for (var _i3 = 0; _i3 < outgoing.length; _i3++) {
+        s_out += weight(outgoing[_i3]);
+      }
 
-                function removeResizeListener(node) {
-                    var expando = node[EXPANDO_KEY] || {};
-                    var resizer = expando.resizer;
+      return {
+        indegree: Math.pow(k_in, 1 - alpha) * Math.pow(s_in, alpha),
+        outdegree: Math.pow(k_out, 1 - alpha) * Math.pow(s_out, alpha)
+      };
+    }
+  } // degreeCentrality
 
-                    delete expando.resizer;
-                    unwatchForRender(node);
+}; // elesfn
+// nice, short mathemathical alias
 
-                    if (resizer && resizer.parentNode) {
-                        resizer.parentNode.removeChild(resizer);
-                    }
-                }
+elesfn$8.dc = elesfn$8.degreeCentrality;
+elesfn$8.dcn = elesfn$8.degreeCentralityNormalised = elesfn$8.degreeCentralityNormalized;
+
+var defaults$2 = defaults({
+  harmonic: true,
+  weight: function weight() {
+    return 1;
+  },
+  directed: false,
+  root: null
+});
+var elesfn$9 = {
+  closenessCentralityNormalized: function closenessCentralityNormalized(options) {
+    var _defaults = defaults$2(options),
+        harmonic = _defaults.harmonic,
+        weight = _defaults.weight,
+        directed = _defaults.directed;
+
+    var cy = this.cy();
+    var closenesses = {};
+    var maxCloseness = 0;
+    var nodes = this.nodes();
+    var fw = this.floydWarshall({
+      weight: weight,
+      directed: directed
+    }); // Compute closeness for every node and find the maximum closeness
+
+    for (var i = 0; i < nodes.length; i++) {
+      var currCloseness = 0;
+      var node_i = nodes[i];
+
+      for (var j = 0; j < nodes.length; j++) {
+        if (i !== j) {
+          var d = fw.distance(node_i, nodes[j]);
+
+          if (harmonic) {
+            currCloseness += 1 / d;
+          } else {
+            currCloseness += d;
+          }
+        }
+      }
 
-                /**
-                 * Injects CSS styles inline if the styles are not already present.
-                 * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the <style>.
-                 * @param {string} css - the CSS to be injected.
-                 */
-                function injectCSS(rootNode, css) {
-                    // https://stackoverflow.com/q/3922139
-                    var expando = rootNode[EXPANDO_KEY] || (rootNode[EXPANDO_KEY] = {});
-                    if (!expando.containsStyles) {
-                        expando.containsStyles = true;
-                        css = '/* Chart.js */\n' + css;
-                        var style = document.createElement('style');
-                        style.setAttribute('type', 'text/css');
-                        style.appendChild(document.createTextNode(css));
-                        rootNode.appendChild(style);
-                    }
-                }
+      if (!harmonic) {
+        currCloseness = 1 / currCloseness;
+      }
 
-                var platform_dom$2 = {
-                    /**
-                     * When `true`, prevents the automatic injection of the stylesheet required to
-                     * correctly detect when the chart is added to the DOM and then resized. This
-                     * switch has been added to allow external stylesheet (`dist/Chart(.min)?.js`)
-                     * to be manually imported to make this library compatible with any CSP.
-                     * See https://github.com/chartjs/Chart.js/issues/5208
-                     */
-                    disableCSSInjection: false,
-
-                    /**
-                     * This property holds whether this platform is enabled for the current environment.
-                     * Currently used by platform.js to select the proper implementation.
-                     * @private
-                     */
-                    _enabled: typeof window !== 'undefined' && typeof document !== 'undefined',
-
-                    /**
-                     * Initializes resources that depend on platform options.
-                     * @param {HTMLCanvasElement} canvas - The Canvas element.
-                     * @private
-                     */
-                    _ensureLoaded: function(canvas) {
-                        if (!this.disableCSSInjection) {
-                            // If the canvas is in a shadow DOM, then the styles must also be inserted
-                            // into the same shadow DOM.
-                            // https://github.com/chartjs/Chart.js/issues/5763
-                            var root = canvas.getRootNode ? canvas.getRootNode() : document;
-                            var targetNode = root.host ? root : document.head;
-                            injectCSS(targetNode, stylesheet);
-                        }
-                    },
-
-                    acquireContext: function(item, config) {
-                        if (typeof item === 'string') {
-                            item = document.getElementById(item);
-                        } else if (item.length) {
-                            // Support for array based queries (such as jQuery)
-                            item = item[0];
-                        }
+      if (maxCloseness < currCloseness) {
+        maxCloseness = currCloseness;
+      }
 
-                        if (item && item.canvas) {
-                            // Support for any object associated to a canvas (including a context2d)
-                            item = item.canvas;
-                        }
+      closenesses[node_i.id()] = currCloseness;
+    }
 
-                        // To prevent canvas fingerprinting, some add-ons undefine the getContext
-                        // method, for example: https://github.com/kkapsner/CanvasBlocker
-                        // https://github.com/chartjs/Chart.js/issues/2807
-                        var context = item && item.getContext && item.getContext('2d');
-
-                        // `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is
-                        // inside an iframe or when running in a protected environment. We could guess the
-                        // types from their toString() value but let's keep things flexible and assume it's
-                        // a sufficient condition if the item has a context2D which has item as `canvas`.
-                        // https://github.com/chartjs/Chart.js/issues/3887
-                        // https://github.com/chartjs/Chart.js/issues/4102
-                        // https://github.com/chartjs/Chart.js/issues/4152
-                        if (context && context.canvas === item) {
-                            // Load platform resources on first chart creation, to make it possible to
-                            // import the library before setting platform options.
-                            this._ensureLoaded(item);
-                            initCanvas(item, config);
-                            return context;
-                        }
+    return {
+      closeness: function closeness(node) {
+        if (maxCloseness == 0) {
+          return 0;
+        }
 
-                        return null;
-                    },
+        if (string(node)) {
+          // from is a selector string
+          node = cy.filter(node)[0].id();
+        } else {
+          // from is a node
+          node = node.id();
+        }
 
-                    releaseContext: function(context) {
-                        var canvas = context.canvas;
-                        if (!canvas[EXPANDO_KEY]) {
-                            return;
-                        }
+        return closenesses[node] / maxCloseness;
+      }
+    };
+  },
+  // Implemented from pseudocode from wikipedia
+  closenessCentrality: function closenessCentrality(options) {
+    var _defaults2 = defaults$2(options),
+        root = _defaults2.root,
+        weight = _defaults2.weight,
+        directed = _defaults2.directed,
+        harmonic = _defaults2.harmonic;
+
+    root = this.filter(root)[0]; // we need distance from this node to every other node
+
+    var dijkstra = this.dijkstra({
+      root: root,
+      weight: weight,
+      directed: directed
+    });
+    var totalDistance = 0;
+    var nodes = this.nodes();
+
+    for (var i = 0; i < nodes.length; i++) {
+      var n = nodes[i];
+
+      if (!n.same(root)) {
+        var d = dijkstra.distanceTo(n);
+
+        if (harmonic) {
+          totalDistance += 1 / d;
+        } else {
+          totalDistance += d;
+        }
+      }
+    }
 
-                        var initial = canvas[EXPANDO_KEY].initial;
-                        ['height', 'width'].forEach(function(prop) {
-                            var value = initial[prop];
-                            if (helpers$1.isNullOrUndef(value)) {
-                                canvas.removeAttribute(prop);
-                            } else {
-                                canvas.setAttribute(prop, value);
-                            }
-                        });
+    return harmonic ? totalDistance : 1 / totalDistance;
+  } // closenessCentrality
 
-                        helpers$1.each(initial.style || {}, function(value, key) {
-                            canvas.style[key] = value;
-                        });
+}; // elesfn
+// nice, short mathemathical alias
 
-                        // The canvas render size might have been changed (and thus the state stack discarded),
-                        // we can't use save() and restore() to restore the initial state. So make sure that at
-                        // least the canvas context is reset to the default state by setting the canvas width.
-                        // https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html
-                        // eslint-disable-next-line no-self-assign
-                        canvas.width = canvas.width;
-
-                        delete canvas[EXPANDO_KEY];
-                    },
-
-                    addEventListener: function(chart, type, listener) {
-                        var canvas = chart.canvas;
-                        if (type === 'resize') {
-                            // Note: the resize event is not supported on all browsers.
-                            addResizeListener(canvas, listener, chart);
-                            return;
-                        }
+elesfn$9.cc = elesfn$9.closenessCentrality;
+elesfn$9.ccn = elesfn$9.closenessCentralityNormalised = elesfn$9.closenessCentralityNormalized;
+
+var defaults$3 = defaults({
+  weight: null,
+  directed: false
+});
+var elesfn$a = {
+  // Implemented from the algorithm in the paper "On Variants of Shortest-Path Betweenness Centrality and their Generic Computation" by Ulrik Brandes
+  betweennessCentrality: function betweennessCentrality(options) {
+    var _defaults = defaults$3(options),
+        directed = _defaults.directed,
+        weight = _defaults.weight;
+
+    var weighted = weight != null;
+    var cy = this.cy(); // starting
+
+    var V = this.nodes();
+    var A = {};
+    var _C = {};
+    var max = 0;
+    var C = {
+      set: function set(key, val) {
+        _C[key] = val;
+
+        if (val > max) {
+          max = val;
+        }
+      },
+      get: function get(key) {
+        return _C[key];
+      }
+    }; // A contains the neighborhoods of every node
+
+    for (var i = 0; i < V.length; i++) {
+      var v = V[i];
+      var vid = v.id();
+
+      if (directed) {
+        A[vid] = v.outgoers().nodes(); // get outgoers of every node
+      } else {
+        A[vid] = v.openNeighborhood().nodes(); // get neighbors of every node
+      }
+
+      C.set(vid, 0);
+    }
 
-                        var expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});
-                        var proxies = expando.proxies || (expando.proxies = {});
-                        var proxy = proxies[chart.id + '_' + type] = function(event) {
-                            listener(fromNativeEvent(event, chart));
-                        };
-
-                        addListener(canvas, type, proxy);
-                    },
-
-                    removeEventListener: function(chart, type, listener) {
-                        var canvas = chart.canvas;
-                        if (type === 'resize') {
-                            // Note: the resize event is not supported on all browsers.
-                            removeResizeListener(canvas);
-                            return;
-                        }
+    var _loop = function _loop(s) {
+      var sid = V[s].id();
+      var S = []; // stack
 
-                        var expando = listener[EXPANDO_KEY] || {};
-                        var proxies = expando.proxies || {};
-                        var proxy = proxies[chart.id + '_' + type];
-                        if (!proxy) {
-                            return;
-                        }
+      var P = {};
+      var g = {};
+      var d = {};
+      var Q = new Heap(function (a, b) {
+        return d[a] - d[b];
+      }); // queue
+      // init dictionaries
 
-                        removeListener(canvas, type, proxy);
-                    }
-                };
+      for (var _i = 0; _i < V.length; _i++) {
+        var _vid = V[_i].id();
 
-// DEPRECATIONS
+        P[_vid] = [];
+        g[_vid] = 0;
+        d[_vid] = Infinity;
+      }
 
-                /**
-                 * Provided for backward compatibility, use EventTarget.addEventListener instead.
-                 * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+
-                 * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
-                 * @function Chart.helpers.addEvent
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers$1.addEvent = addListener;
-
-                /**
-                 * Provided for backward compatibility, use EventTarget.removeEventListener instead.
-                 * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+
-                 * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener
-                 * @function Chart.helpers.removeEvent
-                 * @deprecated since version 2.7.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers$1.removeEvent = removeListener;
+      g[sid] = 1; // sigma
 
-// @TODO Make possible to select another platform at build time.
-                var implementation = platform_dom$2._enabled ? platform_dom$2 : platform_basic;
-
-                /**
-                 * @namespace Chart.platform
-                 * @see https://chartjs.gitbooks.io/proposals/content/Platform.html
-                 * @since 2.4.0
-                 */
-                var platform = helpers$1.extend({
-                    /**
-                     * @since 2.7.0
-                     */
-                    initialize: function() {},
-
-                    /**
-                     * Called at chart construction time, returns a context2d instance implementing
-                     * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.
-                     * @param {*} item - The native item from which to acquire context (platform specific)
-                     * @param {object} options - The chart options
-                     * @returns {CanvasRenderingContext2D} context2d instance
-                     */
-                    acquireContext: function() {},
-
-                    /**
-                     * Called at chart destruction time, releases any resources associated to the context
-                     * previously returned by the acquireContext() method.
-                     * @param {CanvasRenderingContext2D} context - The context2d instance
-                     * @returns {boolean} true if the method succeeded, else false
-                     */
-                    releaseContext: function() {},
-
-                    /**
-                     * Registers the specified listener on the given chart.
-                     * @param {Chart} chart - Chart from which to listen for event
-                     * @param {string} type - The ({@link IEvent}) type to listen for
-                     * @param {function} listener - Receives a notification (an object that implements
-                     * the {@link IEvent} interface) when an event of the specified type occurs.
-                     */
-                    addEventListener: function() {},
-
-                    /**
-                     * Removes the specified listener previously registered with addEventListener.
-                     * @param {Chart} chart - Chart from which to remove the listener
-                     * @param {string} type - The ({@link IEvent}) type to remove
-                     * @param {function} listener - The listener function to remove from the event target.
-                     */
-                    removeEventListener: function() {}
-
-                }, implementation);
-
-                core_defaults._set('global', {
-                    plugins: {}
-                });
+      d[sid] = 0; // distance to s
 
-                /**
-                 * The plugin service singleton
-                 * @namespace Chart.plugins
-                 * @since 2.1.0
-                 */
-                var core_plugins = {
-                    /**
-                     * Globally registered plugins.
-                     * @private
-                     */
-                    _plugins: [],
-
-                    /**
-                     * This identifier is used to invalidate the descriptors cache attached to each chart
-                     * when a global plugin is registered or unregistered. In this case, the cache ID is
-                     * incremented and descriptors are regenerated during following API calls.
-                     * @private
-                     */
-                    _cacheId: 0,
-
-                    /**
-                     * Registers the given plugin(s) if not already registered.
-                     * @param {IPlugin[]|IPlugin} plugins plugin instance(s).
-                     */
-                    register: function(plugins) {
-                        var p = this._plugins;
-                        ([]).concat(plugins).forEach(function(plugin) {
-                            if (p.indexOf(plugin) === -1) {
-                                p.push(plugin);
-                            }
-                        });
+      Q.push(sid);
 
-                        this._cacheId++;
-                    },
-
-                    /**
-                     * Unregisters the given plugin(s) only if registered.
-                     * @param {IPlugin[]|IPlugin} plugins plugin instance(s).
-                     */
-                    unregister: function(plugins) {
-                        var p = this._plugins;
-                        ([]).concat(plugins).forEach(function(plugin) {
-                            var idx = p.indexOf(plugin);
-                            if (idx !== -1) {
-                                p.splice(idx, 1);
-                            }
-                        });
+      while (!Q.empty()) {
+        var _v = Q.pop();
 
-                        this._cacheId++;
-                    },
-
-                    /**
-                     * Remove all registered plugins.
-                     * @since 2.1.5
-                     */
-                    clear: function() {
-                        this._plugins = [];
-                        this._cacheId++;
-                    },
-
-                    /**
-                     * Returns the number of registered plugins?
-                     * @returns {number}
-                     * @since 2.1.5
-                     */
-                    count: function() {
-                        return this._plugins.length;
-                    },
-
-                    /**
-                     * Returns all registered plugin instances.
-                     * @returns {IPlugin[]} array of plugin objects.
-                     * @since 2.1.5
-                     */
-                    getAll: function() {
-                        return this._plugins;
-                    },
-
-                    /**
-                     * Calls enabled plugins for `chart` on the specified hook and with the given args.
-                     * This method immediately returns as soon as a plugin explicitly returns false. The
-                     * returned value can be used, for instance, to interrupt the current action.
-                     * @param {Chart} chart - The chart instance for which plugins should be called.
-                     * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate').
-                     * @param {Array} [args] - Extra arguments to apply to the hook call.
-                     * @returns {boolean} false if any of the plugins return false, else returns true.
-                     */
-                    notify: function(chart, hook, args) {
-                        var descriptors = this.descriptors(chart);
-                        var ilen = descriptors.length;
-                        var i, descriptor, plugin, params, method;
-
-                        for (i = 0; i < ilen; ++i) {
-                            descriptor = descriptors[i];
-                            plugin = descriptor.plugin;
-                            method = plugin[hook];
-                            if (typeof method === 'function') {
-                                params = [chart].concat(args || []);
-                                params.push(descriptor.options);
-                                if (method.apply(plugin, params) === false) {
-                                    return false;
-                                }
-                            }
-                        }
+        S.push(_v);
 
-                        return true;
-                    },
-
-                    /**
-                     * Returns descriptors of enabled plugins for the given chart.
-                     * @returns {object[]} [{ plugin, options }]
-                     * @private
-                     */
-                    descriptors: function(chart) {
-                        var cache = chart.$plugins || (chart.$plugins = {});
-                        if (cache.id === this._cacheId) {
-                            return cache.descriptors;
-                        }
+        if (weighted) {
+          for (var j = 0; j < A[_v].length; j++) {
+            var w = A[_v][j];
+            var vEle = cy.getElementById(_v);
+            var edge = void 0;
 
-                        var plugins = [];
-                        var descriptors = [];
-                        var config = (chart && chart.config) || {};
-                        var options = (config.options && config.options.plugins) || {};
+            if (vEle.edgesTo(w).length > 0) {
+              edge = vEle.edgesTo(w)[0];
+            } else {
+              edge = w.edgesTo(vEle)[0];
+            }
 
-                        this._plugins.concat(config.plugins || []).forEach(function(plugin) {
-                            var idx = plugins.indexOf(plugin);
-                            if (idx !== -1) {
-                                return;
-                            }
+            var edgeWeight = weight(edge);
+            w = w.id();
 
-                            var id = plugin.id;
-                            var opts = options[id];
-                            if (opts === false) {
-                                return;
-                            }
+            if (d[w] > d[_v] + edgeWeight) {
+              d[w] = d[_v] + edgeWeight;
 
-                            if (opts === true) {
-                                opts = helpers$1.clone(core_defaults.global.plugins[id]);
-                            }
+              if (Q.nodes.indexOf(w) < 0) {
+                //if w is not in Q
+                Q.push(w);
+              } else {
+                // update position if w is in Q
+                Q.updateItem(w);
+              }
 
-                            plugins.push(plugin);
-                            descriptors.push({
-                                plugin: plugin,
-                                options: opts || {}
-                            });
-                        });
+              g[w] = 0;
+              P[w] = [];
+            }
 
-                        cache.descriptors = descriptors;
-                        cache.id = this._cacheId;
-                        return descriptors;
-                    },
-
-                    /**
-                     * Invalidates cache for the given chart: descriptors hold a reference on plugin option,
-                     * but in some cases, this reference can be changed by the user when updating options.
-                     * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167
-                     * @private
-                     */
-                    _invalidate: function(chart) {
-                        delete chart.$plugins;
-                    }
-                };
+            if (d[w] == d[_v] + edgeWeight) {
+              g[w] = g[w] + g[_v];
+              P[w].push(_v);
+            }
+          }
+        } else {
+          for (var _j = 0; _j < A[_v].length; _j++) {
+            var _w = A[_v][_j].id();
+
+            if (d[_w] == Infinity) {
+              Q.push(_w);
+              d[_w] = d[_v] + 1;
+            }
 
-                var core_scaleService = {
-                    // Scale registration object. Extensions can register new scale types (such as log or DB scales) and then
-                    // use the new chart options to grab the correct scale
-                    constructors: {},
-                    // Use a registration function so that we can move to an ES6 map when we no longer need to support
-                    // old browsers
-
-                    // Scale config defaults
-                    defaults: {},
-                    registerScaleType: function(type, scaleConstructor, scaleDefaults) {
-                        this.constructors[type] = scaleConstructor;
-                        this.defaults[type] = helpers$1.clone(scaleDefaults);
-                    },
-                    getScaleConstructor: function(type) {
-                        return this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;
-                    },
-                    getScaleDefaults: function(type) {
-                        // Return the scale defaults merged with the global settings so that we always use the latest ones
-                        return this.defaults.hasOwnProperty(type) ? helpers$1.merge({}, [core_defaults.scale, this.defaults[type]]) : {};
-                    },
-                    updateScaleDefaults: function(type, additions) {
-                        var me = this;
-                        if (me.defaults.hasOwnProperty(type)) {
-                            me.defaults[type] = helpers$1.extend(me.defaults[type], additions);
-                        }
-                    },
-                    addScalesToLayout: function(chart) {
-                        // Adds each scale to the chart.boxes array to be sized accordingly
-                        helpers$1.each(chart.scales, function(scale) {
-                            // Set ILayoutItem parameters for backwards compatibility
-                            scale.fullWidth = scale.options.fullWidth;
-                            scale.position = scale.options.position;
-                            scale.weight = scale.options.weight;
-                            core_layouts.addBox(chart, scale);
-                        });
-                    }
-                };
+            if (d[_w] == d[_v] + 1) {
+              g[_w] = g[_w] + g[_v];
 
-                var valueOrDefault$8 = helpers$1.valueOrDefault;
-                var getRtlHelper = helpers$1.rtl.getRtlAdapter;
-
-                core_defaults._set('global', {
-                    tooltips: {
-                        enabled: true,
-                        custom: null,
-                        mode: 'nearest',
-                        position: 'average',
-                        intersect: true,
-                        backgroundColor: 'rgba(0,0,0,0.8)',
-                        titleFontStyle: 'bold',
-                        titleSpacing: 2,
-                        titleMarginBottom: 6,
-                        titleFontColor: '#fff',
-                        titleAlign: 'left',
-                        bodySpacing: 2,
-                        bodyFontColor: '#fff',
-                        bodyAlign: 'left',
-                        footerFontStyle: 'bold',
-                        footerSpacing: 2,
-                        footerMarginTop: 6,
-                        footerFontColor: '#fff',
-                        footerAlign: 'left',
-                        yPadding: 6,
-                        xPadding: 6,
-                        caretPadding: 2,
-                        caretSize: 5,
-                        cornerRadius: 6,
-                        multiKeyBackground: '#fff',
-                        displayColors: true,
-                        borderColor: 'rgba(0,0,0,0)',
-                        borderWidth: 0,
-                        callbacks: {
-                            // Args are: (tooltipItems, data)
-                            beforeTitle: helpers$1.noop,
-                            title: function(tooltipItems, data) {
-                                var title = '';
-                                var labels = data.labels;
-                                var labelCount = labels ? labels.length : 0;
-
-                                if (tooltipItems.length > 0) {
-                                    var item = tooltipItems[0];
-                                    if (item.label) {
-                                        title = item.label;
-                                    } else if (item.xLabel) {
-                                        title = item.xLabel;
-                                    } else if (labelCount > 0 && item.index < labelCount) {
-                                        title = labels[item.index];
-                                    }
-                                }
-
-                                return title;
-                            },
-                            afterTitle: helpers$1.noop,
-
-                            // Args are: (tooltipItems, data)
-                            beforeBody: helpers$1.noop,
-
-                            // Args are: (tooltipItem, data)
-                            beforeLabel: helpers$1.noop,
-                            label: function(tooltipItem, data) {
-                                var label = data.datasets[tooltipItem.datasetIndex].label || '';
-
-                                if (label) {
-                                    label += ': ';
-                                }
-                                if (!helpers$1.isNullOrUndef(tooltipItem.value)) {
-                                    label += tooltipItem.value;
-                                } else {
-                                    label += tooltipItem.yLabel;
-                                }
-                                return label;
-                            },
-                            labelColor: function(tooltipItem, chart) {
-                                var meta = chart.getDatasetMeta(tooltipItem.datasetIndex);
-                                var activeElement = meta.data[tooltipItem.index];
-                                var view = activeElement._view;
-                                return {
-                                    borderColor: view.borderColor,
-                                    backgroundColor: view.backgroundColor
-                                };
-                            },
-                            labelTextColor: function() {
-                                return this._options.bodyFontColor;
-                            },
-                            afterLabel: helpers$1.noop,
-
-                            // Args are: (tooltipItems, data)
-                            afterBody: helpers$1.noop,
-
-                            // Args are: (tooltipItems, data)
-                            beforeFooter: helpers$1.noop,
-                            footer: helpers$1.noop,
-                            afterFooter: helpers$1.noop
-                        }
-                    }
-                });
+              P[_w].push(_v);
+            }
+          }
+        }
+      }
 
-                var positioners = {
-                    /**
-                     * Average mode places the tooltip at the average position of the elements shown
-                     * @function Chart.Tooltip.positioners.average
-                     * @param elements {ChartElement[]} the elements being displayed in the tooltip
-                     * @returns {object} tooltip position
-                     */
-                    average: function(elements) {
-                        if (!elements.length) {
-                            return false;
-                        }
+      var e = {};
 
-                        var i, len;
-                        var x = 0;
-                        var y = 0;
-                        var count = 0;
-
-                        for (i = 0, len = elements.length; i < len; ++i) {
-                            var el = elements[i];
-                            if (el && el.hasValue()) {
-                                var pos = el.tooltipPosition();
-                                x += pos.x;
-                                y += pos.y;
-                                ++count;
-                            }
-                        }
+      for (var _i2 = 0; _i2 < V.length; _i2++) {
+        e[V[_i2].id()] = 0;
+      }
 
-                        return {
-                            x: x / count,
-                            y: y / count
-                        };
-                    },
-
-                    /**
-                     * Gets the tooltip position nearest of the item nearest to the event position
-                     * @function Chart.Tooltip.positioners.nearest
-                     * @param elements {Chart.Element[]} the tooltip elements
-                     * @param eventPosition {object} the position of the event in canvas coordinates
-                     * @returns {object} the tooltip position
-                     */
-                    nearest: function(elements, eventPosition) {
-                        var x = eventPosition.x;
-                        var y = eventPosition.y;
-                        var minDistance = Number.POSITIVE_INFINITY;
-                        var i, len, nearestElement;
-
-                        for (i = 0, len = elements.length; i < len; ++i) {
-                            var el = elements[i];
-                            if (el && el.hasValue()) {
-                                var center = el.getCenterPoint();
-                                var d = helpers$1.distanceBetweenPoints(eventPosition, center);
-
-                                if (d < minDistance) {
-                                    minDistance = d;
-                                    nearestElement = el;
-                                }
-                            }
-                        }
+      while (S.length > 0) {
+        var _w2 = S.pop();
 
-                        if (nearestElement) {
-                            var tp = nearestElement.tooltipPosition();
-                            x = tp.x;
-                            y = tp.y;
-                        }
+        for (var _j2 = 0; _j2 < P[_w2].length; _j2++) {
+          var _v2 = P[_w2][_j2];
+          e[_v2] = e[_v2] + g[_v2] / g[_w2] * (1 + e[_w2]);
+        }
 
-                        return {
-                            x: x,
-                            y: y
-                        };
-                    }
-                };
+        if (_w2 != V[s].id()) {
+          C.set(_w2, C.get(_w2) + e[_w2]);
+        }
+      }
+    };
 
-// Helper to push or concat based on if the 2nd parameter is an array or not
-                function pushOrConcat(base, toPush) {
-                    if (toPush) {
-                        if (helpers$1.isArray(toPush)) {
-                            // base = base.concat(toPush);
-                            Array.prototype.push.apply(base, toPush);
-                        } else {
-                            base.push(toPush);
-                        }
-                    }
+    for (var s = 0; s < V.length; s++) {
+      _loop(s);
+    }
 
-                    return base;
-                }
+    var ret = {
+      betweenness: function betweenness(node) {
+        var id = cy.collection(node).id();
+        return C.get(id);
+      },
+      betweennessNormalized: function betweennessNormalized(node) {
+        if (max == 0) {
+          return 0;
+        }
 
-                /**
-                 * Returns array of strings split by newline
-                 * @param {string} value - The value to split by newline.
-                 * @returns {string[]} value if newline present - Returned from String split() method
-                 * @function
-                 */
-                function splitNewlines(str) {
-                    if ((typeof str === 'string' || str instanceof String) && str.indexOf('\n') > -1) {
-                        return str.split('\n');
-                    }
-                    return str;
-                }
+        var id = cy.collection(node).id();
+        return C.get(id) / max;
+      }
+    }; // alias
 
+    ret.betweennessNormalised = ret.betweennessNormalized;
+    return ret;
+  } // betweennessCentrality
 
-                /**
-                 * Private helper to create a tooltip item model
-                 * @param element - the chart element (point, arc, bar) to create the tooltip item for
-                 * @return new tooltip item
-                 */
-                function createTooltipItem(element) {
-                    var xScale = element._xScale;
-                    var yScale = element._yScale || element._scale; // handle radar || polarArea charts
-                    var index = element._index;
-                    var datasetIndex = element._datasetIndex;
-                    var controller = element._chart.getDatasetMeta(datasetIndex).controller;
-                    var indexScale = controller._getIndexScale();
-                    var valueScale = controller._getValueScale();
-
-                    return {
-                        xLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',
-                        yLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',
-                        label: indexScale ? '' + indexScale.getLabelForIndex(index, datasetIndex) : '',
-                        value: valueScale ? '' + valueScale.getLabelForIndex(index, datasetIndex) : '',
-                        index: index,
-                        datasetIndex: datasetIndex,
-                        x: element._model.x,
-                        y: element._model.y
-                    };
-                }
+}; // elesfn
+// nice, short mathemathical alias
 
-                /**
-                 * Helper to get the reset model for the tooltip
-                 * @param tooltipOpts {object} the tooltip options
-                 */
-                function getBaseModel(tooltipOpts) {
-                    var globalDefaults = core_defaults.global;
-
-                    return {
-                        // Positioning
-                        xPadding: tooltipOpts.xPadding,
-                        yPadding: tooltipOpts.yPadding,
-                        xAlign: tooltipOpts.xAlign,
-                        yAlign: tooltipOpts.yAlign,
-
-                        // Drawing direction and text direction
-                        rtl: tooltipOpts.rtl,
-                        textDirection: tooltipOpts.textDirection,
-
-                        // Body
-                        bodyFontColor: tooltipOpts.bodyFontColor,
-                        _bodyFontFamily: valueOrDefault$8(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),
-                        _bodyFontStyle: valueOrDefault$8(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),
-                        _bodyAlign: tooltipOpts.bodyAlign,
-                        bodyFontSize: valueOrDefault$8(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),
-                        bodySpacing: tooltipOpts.bodySpacing,
-
-                        // Title
-                        titleFontColor: tooltipOpts.titleFontColor,
-                        _titleFontFamily: valueOrDefault$8(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),
-                        _titleFontStyle: valueOrDefault$8(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),
-                        titleFontSize: valueOrDefault$8(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),
-                        _titleAlign: tooltipOpts.titleAlign,
-                        titleSpacing: tooltipOpts.titleSpacing,
-                        titleMarginBottom: tooltipOpts.titleMarginBottom,
-
-                        // Footer
-                        footerFontColor: tooltipOpts.footerFontColor,
-                        _footerFontFamily: valueOrDefault$8(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),
-                        _footerFontStyle: valueOrDefault$8(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),
-                        footerFontSize: valueOrDefault$8(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),
-                        _footerAlign: tooltipOpts.footerAlign,
-                        footerSpacing: tooltipOpts.footerSpacing,
-                        footerMarginTop: tooltipOpts.footerMarginTop,
-
-                        // Appearance
-                        caretSize: tooltipOpts.caretSize,
-                        cornerRadius: tooltipOpts.cornerRadius,
-                        backgroundColor: tooltipOpts.backgroundColor,
-                        opacity: 0,
-                        legendColorBackground: tooltipOpts.multiKeyBackground,
-                        displayColors: tooltipOpts.displayColors,
-                        borderColor: tooltipOpts.borderColor,
-                        borderWidth: tooltipOpts.borderWidth
-                    };
-                }
+elesfn$a.bc = elesfn$a.betweennessCentrality;
 
-                /**
-                 * Get the size of the tooltip
-                 */
-                function getTooltipSize(tooltip, model) {
-                    var ctx = tooltip._chart.ctx;
-
-                    var height = model.yPadding * 2; // Tooltip Padding
-                    var width = 0;
-
-                    // Count of all lines in the body
-                    var body = model.body;
-                    var combinedBodyLength = body.reduce(function(count, bodyItem) {
-                        return count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;
-                    }, 0);
-                    combinedBodyLength += model.beforeBody.length + model.afterBody.length;
-
-                    var titleLineCount = model.title.length;
-                    var footerLineCount = model.footer.length;
-                    var titleFontSize = model.titleFontSize;
-                    var bodyFontSize = model.bodyFontSize;
-                    var footerFontSize = model.footerFontSize;
-
-                    height += titleLineCount * titleFontSize; // Title Lines
-                    height += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing
-                    height += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin
-                    height += combinedBodyLength * bodyFontSize; // Body Lines
-                    height += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing
-                    height += footerLineCount ? model.footerMarginTop : 0; // Footer Margin
-                    height += footerLineCount * (footerFontSize); // Footer Lines
-                    height += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing
-
-                    // Title width
-                    var widthPadding = 0;
-                    var maxLineWidth = function(line) {
-                        width = Math.max(width, ctx.measureText(line).width + widthPadding);
-                    };
-
-                    ctx.font = helpers$1.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);
-                    helpers$1.each(model.title, maxLineWidth);
-
-                    // Body width
-                    ctx.font = helpers$1.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);
-                    helpers$1.each(model.beforeBody.concat(model.afterBody), maxLineWidth);
-
-                    // Body lines may include some extra width due to the color box
-                    widthPadding = model.displayColors ? (bodyFontSize + 2) : 0;
-                    helpers$1.each(body, function(bodyItem) {
-                        helpers$1.each(bodyItem.before, maxLineWidth);
-                        helpers$1.each(bodyItem.lines, maxLineWidth);
-                        helpers$1.each(bodyItem.after, maxLineWidth);
-                    });
-
-                    // Reset back to 0
-                    widthPadding = 0;
-
-                    // Footer width
-                    ctx.font = helpers$1.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);
-                    helpers$1.each(model.footer, maxLineWidth);
-
-                    // Add padding
-                    width += 2 * model.xPadding;
-
-                    return {
-                        width: width,
-                        height: height
-                    };
-                }
+// Implemented by Zoe Xi @zoexi for GSOC 2016
+/* eslint-disable no-unused-vars */
+
+var defaults$4 = defaults({
+  expandFactor: 2,
+  // affects time of computation and cluster granularity to some extent: M * M
+  inflateFactor: 2,
+  // affects cluster granularity (the greater the value, the more clusters): M(i,j) / E(j)
+  multFactor: 1,
+  // optional self loops for each node. Use a neutral value to improve cluster computations.
+  maxIterations: 20,
+  // maximum number of iterations of the MCL algorithm in a single run
+  attributes: [// attributes/features used to group nodes, ie. similarity values between nodes
+  function (edge) {
+    return 1;
+  }]
+});
+/* eslint-enable */
+
+var setOptions = function setOptions(options) {
+  return defaults$4(options);
+};
+/* eslint-enable */
+
+
+var getSimilarity = function getSimilarity(edge, attributes) {
+  var total = 0;
+
+  for (var i = 0; i < attributes.length; i++) {
+    total += attributes[i](edge);
+  }
 
-                /**
-                 * Helper to get the alignment of a tooltip given the size
-                 */
-                function determineAlignment(tooltip, size) {
-                    var model = tooltip._model;
-                    var chart = tooltip._chart;
-                    var chartArea = tooltip._chart.chartArea;
-                    var xAlign = 'center';
-                    var yAlign = 'center';
-
-                    if (model.y < size.height) {
-                        yAlign = 'top';
-                    } else if (model.y > (chart.height - size.height)) {
-                        yAlign = 'bottom';
-                    }
+  return total;
+};
 
-                    var lf, rf; // functions to determine left, right alignment
-                    var olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart
-                    var yf; // function to get the y alignment if the tooltip goes outside of the left or right edges
-                    var midX = (chartArea.left + chartArea.right) / 2;
-                    var midY = (chartArea.top + chartArea.bottom) / 2;
-
-                    if (yAlign === 'center') {
-                        lf = function(x) {
-                            return x <= midX;
-                        };
-                        rf = function(x) {
-                            return x > midX;
-                        };
-                    } else {
-                        lf = function(x) {
-                            return x <= (size.width / 2);
-                        };
-                        rf = function(x) {
-                            return x >= (chart.width - (size.width / 2));
-                        };
-                    }
+var addLoops = function addLoops(M, n, val) {
+  for (var i = 0; i < n; i++) {
+    M[i * n + i] = val;
+  }
+};
 
-                    olf = function(x) {
-                        return x + size.width + model.caretSize + model.caretPadding > chart.width;
-                    };
-                    orf = function(x) {
-                        return x - size.width - model.caretSize - model.caretPadding < 0;
-                    };
-                    yf = function(y) {
-                        return y <= midY ? 'top' : 'bottom';
-                    };
-
-                    if (lf(model.x)) {
-                        xAlign = 'left';
-
-                        // Is tooltip too wide and goes over the right side of the chart.?
-                        if (olf(model.x)) {
-                            xAlign = 'center';
-                            yAlign = yf(model.y);
-                        }
-                    } else if (rf(model.x)) {
-                        xAlign = 'right';
+var normalize = function normalize(M, n) {
+  var sum;
 
-                        // Is tooltip too wide and goes outside left edge of canvas?
-                        if (orf(model.x)) {
-                            xAlign = 'center';
-                            yAlign = yf(model.y);
-                        }
-                    }
+  for (var col = 0; col < n; col++) {
+    sum = 0;
 
-                    var opts = tooltip._options;
-                    return {
-                        xAlign: opts.xAlign ? opts.xAlign : xAlign,
-                        yAlign: opts.yAlign ? opts.yAlign : yAlign
-                    };
-                }
+    for (var row = 0; row < n; row++) {
+      sum += M[row * n + col];
+    }
 
-                /**
-                 * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment
-                 */
-                function getBackgroundPoint(vm, size, alignment, chart) {
-                    // Background Position
-                    var x = vm.x;
-                    var y = vm.y;
-
-                    var caretSize = vm.caretSize;
-                    var caretPadding = vm.caretPadding;
-                    var cornerRadius = vm.cornerRadius;
-                    var xAlign = alignment.xAlign;
-                    var yAlign = alignment.yAlign;
-                    var paddingAndSize = caretSize + caretPadding;
-                    var radiusAndPadding = cornerRadius + caretPadding;
-
-                    if (xAlign === 'right') {
-                        x -= size.width;
-                    } else if (xAlign === 'center') {
-                        x -= (size.width / 2);
-                        if (x + size.width > chart.width) {
-                            x = chart.width - size.width;
-                        }
-                        if (x < 0) {
-                            x = 0;
-                        }
-                    }
+    for (var _row = 0; _row < n; _row++) {
+      M[_row * n + col] = M[_row * n + col] / sum;
+    }
+  }
+}; // TODO: blocked matrix multiplication?
 
-                    if (yAlign === 'top') {
-                        y += paddingAndSize;
-                    } else if (yAlign === 'bottom') {
-                        y -= size.height + paddingAndSize;
-                    } else {
-                        y -= (size.height / 2);
-                    }
 
-                    if (yAlign === 'center') {
-                        if (xAlign === 'left') {
-                            x += paddingAndSize;
-                        } else if (xAlign === 'right') {
-                            x -= paddingAndSize;
-                        }
-                    } else if (xAlign === 'left') {
-                        x -= radiusAndPadding;
-                    } else if (xAlign === 'right') {
-                        x += radiusAndPadding;
-                    }
+var mmult = function mmult(A, B, n) {
+  var C = new Array(n * n);
 
-                    return {
-                        x: x,
-                        y: y
-                    };
-                }
+  for (var i = 0; i < n; i++) {
+    for (var j = 0; j < n; j++) {
+      C[i * n + j] = 0;
+    }
 
-                function getAlignedX(vm, align) {
-                    return align === 'center'
-                        ? vm.x + vm.width / 2
-                        : align === 'right'
-                            ? vm.x + vm.width - vm.xPadding
-                            : vm.x + vm.xPadding;
-                }
+    for (var k = 0; k < n; k++) {
+      for (var _j = 0; _j < n; _j++) {
+        C[i * n + _j] += A[i * n + k] * B[k * n + _j];
+      }
+    }
+  }
 
-                /**
-                 * Helper to build before and after body lines
-                 */
-                function getBeforeAfterBodyLines(callback) {
-                    return pushOrConcat([], splitNewlines(callback));
-                }
+  return C;
+};
 
-                var exports$4 = core_element.extend({
-                    initialize: function() {
-                        this._model = getBaseModel(this._options);
-                        this._lastActive = [];
-                    },
-
-                    // Get the title
-                    // Args are: (tooltipItem, data)
-                    getTitle: function() {
-                        var me = this;
-                        var opts = me._options;
-                        var callbacks = opts.callbacks;
-
-                        var beforeTitle = callbacks.beforeTitle.apply(me, arguments);
-                        var title = callbacks.title.apply(me, arguments);
-                        var afterTitle = callbacks.afterTitle.apply(me, arguments);
-
-                        var lines = [];
-                        lines = pushOrConcat(lines, splitNewlines(beforeTitle));
-                        lines = pushOrConcat(lines, splitNewlines(title));
-                        lines = pushOrConcat(lines, splitNewlines(afterTitle));
-
-                        return lines;
-                    },
-
-                    // Args are: (tooltipItem, data)
-                    getBeforeBody: function() {
-                        return getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));
-                    },
-
-                    // Args are: (tooltipItem, data)
-                    getBody: function(tooltipItems, data) {
-                        var me = this;
-                        var callbacks = me._options.callbacks;
-                        var bodyItems = [];
-
-                        helpers$1.each(tooltipItems, function(tooltipItem) {
-                            var bodyItem = {
-                                before: [],
-                                lines: [],
-                                after: []
-                            };
-                            pushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));
-                            pushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));
-                            pushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));
-
-                            bodyItems.push(bodyItem);
-                        });
+var expand = function expand(M, n, expandFactor
+/** power **/
+) {
+  var _M = M.slice(0);
 
-                        return bodyItems;
-                    },
-
-                    // Args are: (tooltipItem, data)
-                    getAfterBody: function() {
-                        return getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));
-                    },
-
-                    // Get the footer and beforeFooter and afterFooter lines
-                    // Args are: (tooltipItem, data)
-                    getFooter: function() {
-                        var me = this;
-                        var callbacks = me._options.callbacks;
-
-                        var beforeFooter = callbacks.beforeFooter.apply(me, arguments);
-                        var footer = callbacks.footer.apply(me, arguments);
-                        var afterFooter = callbacks.afterFooter.apply(me, arguments);
-
-                        var lines = [];
-                        lines = pushOrConcat(lines, splitNewlines(beforeFooter));
-                        lines = pushOrConcat(lines, splitNewlines(footer));
-                        lines = pushOrConcat(lines, splitNewlines(afterFooter));
-
-                        return lines;
-                    },
-
-                    update: function(changed) {
-                        var me = this;
-                        var opts = me._options;
-
-                        // Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition
-                        // that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time
-                        // which breaks any animations.
-                        var existingModel = me._model;
-                        var model = me._model = getBaseModel(opts);
-                        var active = me._active;
-
-                        var data = me._data;
-
-                        // In the case where active.length === 0 we need to keep these at existing values for good animations
-                        var alignment = {
-                            xAlign: existingModel.xAlign,
-                            yAlign: existingModel.yAlign
-                        };
-                        var backgroundPoint = {
-                            x: existingModel.x,
-                            y: existingModel.y
-                        };
-                        var tooltipSize = {
-                            width: existingModel.width,
-                            height: existingModel.height
-                        };
-                        var tooltipPosition = {
-                            x: existingModel.caretX,
-                            y: existingModel.caretY
-                        };
-
-                        var i, len;
-
-                        if (active.length) {
-                            model.opacity = 1;
-
-                            var labelColors = [];
-                            var labelTextColors = [];
-                            tooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);
-
-                            var tooltipItems = [];
-                            for (i = 0, len = active.length; i < len; ++i) {
-                                tooltipItems.push(createTooltipItem(active[i]));
-                            }
+  for (var p = 1; p < expandFactor; p++) {
+    M = mmult(M, _M, n);
+  }
 
-                            // If the user provided a filter function, use it to modify the tooltip items
-                            if (opts.filter) {
-                                tooltipItems = tooltipItems.filter(function(a) {
-                                    return opts.filter(a, data);
-                                });
-                            }
+  return M;
+};
 
-                            // If the user provided a sorting function, use it to modify the tooltip items
-                            if (opts.itemSort) {
-                                tooltipItems = tooltipItems.sort(function(a, b) {
-                                    return opts.itemSort(a, b, data);
-                                });
-                            }
+var inflate = function inflate(M, n, inflateFactor
+/** r **/
+) {
+  var _M = new Array(n * n); // M(i,j) ^ inflatePower
 
-                            // Determine colors for boxes
-                            helpers$1.each(tooltipItems, function(tooltipItem) {
-                                labelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));
-                                labelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));
-                            });
-
-
-                            // Build the Text Lines
-                            model.title = me.getTitle(tooltipItems, data);
-                            model.beforeBody = me.getBeforeBody(tooltipItems, data);
-                            model.body = me.getBody(tooltipItems, data);
-                            model.afterBody = me.getAfterBody(tooltipItems, data);
-                            model.footer = me.getFooter(tooltipItems, data);
-
-                            // Initial positioning and colors
-                            model.x = tooltipPosition.x;
-                            model.y = tooltipPosition.y;
-                            model.caretPadding = opts.caretPadding;
-                            model.labelColors = labelColors;
-                            model.labelTextColors = labelTextColors;
-
-                            // data points
-                            model.dataPoints = tooltipItems;
-
-                            // We need to determine alignment of the tooltip
-                            tooltipSize = getTooltipSize(this, model);
-                            alignment = determineAlignment(this, tooltipSize);
-                            // Final Size and Position
-                            backgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);
-                        } else {
-                            model.opacity = 0;
-                        }
 
-                        model.xAlign = alignment.xAlign;
-                        model.yAlign = alignment.yAlign;
-                        model.x = backgroundPoint.x;
-                        model.y = backgroundPoint.y;
-                        model.width = tooltipSize.width;
-                        model.height = tooltipSize.height;
+  for (var i = 0; i < n * n; i++) {
+    _M[i] = Math.pow(M[i], inflateFactor);
+  }
 
-                        // Point where the caret on the tooltip points to
-                        model.caretX = tooltipPosition.x;
-                        model.caretY = tooltipPosition.y;
+  normalize(_M, n);
+  return _M;
+};
 
-                        me._model = model;
+var hasConverged = function hasConverged(M, _M, n2, roundFactor) {
+  // Check that both matrices have the same elements (i,j)
+  for (var i = 0; i < n2; i++) {
+    var v1 = Math.round(M[i] * Math.pow(10, roundFactor)) / Math.pow(10, roundFactor); // truncate to 'roundFactor' decimal places
 
-                        if (changed && opts.custom) {
-                            opts.custom.call(me, model);
-                        }
+    var v2 = Math.round(_M[i] * Math.pow(10, roundFactor)) / Math.pow(10, roundFactor);
 
-                        return me;
-                    },
-
-                    drawCaret: function(tooltipPoint, size) {
-                        var ctx = this._chart.ctx;
-                        var vm = this._view;
-                        var caretPosition = this.getCaretPosition(tooltipPoint, size, vm);
-
-                        ctx.lineTo(caretPosition.x1, caretPosition.y1);
-                        ctx.lineTo(caretPosition.x2, caretPosition.y2);
-                        ctx.lineTo(caretPosition.x3, caretPosition.y3);
-                    },
-                    getCaretPosition: function(tooltipPoint, size, vm) {
-                        var x1, x2, x3, y1, y2, y3;
-                        var caretSize = vm.caretSize;
-                        var cornerRadius = vm.cornerRadius;
-                        var xAlign = vm.xAlign;
-                        var yAlign = vm.yAlign;
-                        var ptX = tooltipPoint.x;
-                        var ptY = tooltipPoint.y;
-                        var width = size.width;
-                        var height = size.height;
-
-                        if (yAlign === 'center') {
-                            y2 = ptY + (height / 2);
-
-                            if (xAlign === 'left') {
-                                x1 = ptX;
-                                x2 = x1 - caretSize;
-                                x3 = x1;
-
-                                y1 = y2 + caretSize;
-                                y3 = y2 - caretSize;
-                            } else {
-                                x1 = ptX + width;
-                                x2 = x1 + caretSize;
-                                x3 = x1;
-
-                                y1 = y2 - caretSize;
-                                y3 = y2 + caretSize;
-                            }
-                        } else {
-                            if (xAlign === 'left') {
-                                x2 = ptX + cornerRadius + (caretSize);
-                                x1 = x2 - caretSize;
-                                x3 = x2 + caretSize;
-                            } else if (xAlign === 'right') {
-                                x2 = ptX + width - cornerRadius - caretSize;
-                                x1 = x2 - caretSize;
-                                x3 = x2 + caretSize;
-                            } else {
-                                x2 = vm.caretX;
-                                x1 = x2 - caretSize;
-                                x3 = x2 + caretSize;
-                            }
-                            if (yAlign === 'top') {
-                                y1 = ptY;
-                                y2 = y1 - caretSize;
-                                y3 = y1;
-                            } else {
-                                y1 = ptY + height;
-                                y2 = y1 + caretSize;
-                                y3 = y1;
-                                // invert drawing order
-                                var tmp = x3;
-                                x3 = x1;
-                                x1 = tmp;
-                            }
-                        }
-                        return {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};
-                    },
+    if (v1 !== v2) {
+      return false;
+    }
+  }
 
-                    drawTitle: function(pt, vm, ctx) {
-                        var title = vm.title;
-                        var length = title.length;
-                        var titleFontSize, titleSpacing, i;
+  return true;
+};
 
-                        if (length) {
-                            var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
+var assign = function assign(M, n, nodes, cy) {
+  var clusters = [];
 
-                            pt.x = getAlignedX(vm, vm._titleAlign);
+  for (var i = 0; i < n; i++) {
+    var cluster = [];
 
-                            ctx.textAlign = rtlHelper.textAlign(vm._titleAlign);
-                            ctx.textBaseline = 'middle';
+    for (var j = 0; j < n; j++) {
+      // Row-wise attractors and elements that they attract belong in same cluster
+      if (Math.round(M[i * n + j] * 1000) / 1000 > 0) {
+        cluster.push(nodes[j]);
+      }
+    }
 
-                            titleFontSize = vm.titleFontSize;
-                            titleSpacing = vm.titleSpacing;
+    if (cluster.length !== 0) {
+      clusters.push(cy.collection(cluster));
+    }
+  }
 
-                            ctx.fillStyle = vm.titleFontColor;
-                            ctx.font = helpers$1.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);
+  return clusters;
+};
 
-                            for (i = 0; i < length; ++i) {
-                                ctx.fillText(title[i], rtlHelper.x(pt.x), pt.y + titleFontSize / 2);
-                                pt.y += titleFontSize + titleSpacing; // Line Height and spacing
+var isDuplicate = function isDuplicate(c1, c2) {
+  for (var i = 0; i < c1.length; i++) {
+    if (!c2[i] || c1[i].id() !== c2[i].id()) {
+      return false;
+    }
+  }
 
-                                if (i + 1 === length) {
-                                    pt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing
-                                }
-                            }
-                        }
-                    },
-
-                    drawBody: function(pt, vm, ctx) {
-                        var bodyFontSize = vm.bodyFontSize;
-                        var bodySpacing = vm.bodySpacing;
-                        var bodyAlign = vm._bodyAlign;
-                        var body = vm.body;
-                        var drawColorBoxes = vm.displayColors;
-                        var xLinePadding = 0;
-                        var colorX = drawColorBoxes ? getAlignedX(vm, 'left') : 0;
-
-                        var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
-
-                        var fillLineOfText = function(line) {
-                            ctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyFontSize / 2);
-                            pt.y += bodyFontSize + bodySpacing;
-                        };
-
-                        var bodyItem, textColor, labelColors, lines, i, j, ilen, jlen;
-                        var bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);
-
-                        ctx.textAlign = bodyAlign;
-                        ctx.textBaseline = 'middle';
-                        ctx.font = helpers$1.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);
-
-                        pt.x = getAlignedX(vm, bodyAlignForCalculation);
-
-                        // Before body lines
-                        ctx.fillStyle = vm.bodyFontColor;
-                        helpers$1.each(vm.beforeBody, fillLineOfText);
-
-                        xLinePadding = drawColorBoxes && bodyAlignForCalculation !== 'right'
-                            ? bodyAlign === 'center' ? (bodyFontSize / 2 + 1) : (bodyFontSize + 2)
-                            : 0;
-
-                        // Draw body lines now
-                        for (i = 0, ilen = body.length; i < ilen; ++i) {
-                            bodyItem = body[i];
-                            textColor = vm.labelTextColors[i];
-                            labelColors = vm.labelColors[i];
-
-                            ctx.fillStyle = textColor;
-                            helpers$1.each(bodyItem.before, fillLineOfText);
-
-                            lines = bodyItem.lines;
-                            for (j = 0, jlen = lines.length; j < jlen; ++j) {
-                                // Draw Legend-like boxes if needed
-                                if (drawColorBoxes) {
-                                    var rtlColorX = rtlHelper.x(colorX);
-
-                                    // Fill a white rect so that colours merge nicely if the opacity is < 1
-                                    ctx.fillStyle = vm.legendColorBackground;
-                                    ctx.fillRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);
-
-                                    // Border
-                                    ctx.lineWidth = 1;
-                                    ctx.strokeStyle = labelColors.borderColor;
-                                    ctx.strokeRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);
-
-                                    // Inner square
-                                    ctx.fillStyle = labelColors.backgroundColor;
-                                    ctx.fillRect(rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX, 1), bodyFontSize - 2), pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);
-                                    ctx.fillStyle = textColor;
-                                }
-
-                                fillLineOfText(lines[j]);
-                            }
+  return true;
+};
 
-                            helpers$1.each(bodyItem.after, fillLineOfText);
-                        }
+var removeDuplicates = function removeDuplicates(clusters) {
+  for (var i = 0; i < clusters.length; i++) {
+    for (var j = 0; j < clusters.length; j++) {
+      if (i != j && isDuplicate(clusters[i], clusters[j])) {
+        clusters.splice(j, 1);
+      }
+    }
+  }
 
-                        // Reset back to 0 for after body
-                        xLinePadding = 0;
+  return clusters;
+};
 
-                        // After body lines
-                        helpers$1.each(vm.afterBody, fillLineOfText);
-                        pt.y -= bodySpacing; // Remove last body spacing
-                    },
+var markovClustering = function markovClustering(options) {
+  var nodes = this.nodes();
+  var edges = this.edges();
+  var cy = this.cy(); // Set parameters of algorithm:
 
-                    drawFooter: function(pt, vm, ctx) {
-                        var footer = vm.footer;
-                        var length = footer.length;
-                        var footerFontSize, i;
+  var opts = setOptions(options); // Map each node to its position in node array
 
-                        if (length) {
-                            var rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);
+  var id2position = {};
 
-                            pt.x = getAlignedX(vm, vm._footerAlign);
-                            pt.y += vm.footerMarginTop;
+  for (var i = 0; i < nodes.length; i++) {
+    id2position[nodes[i].id()] = i;
+  } // Generate stochastic matrix M from input graph G (should be symmetric/undirected)
 
-                            ctx.textAlign = rtlHelper.textAlign(vm._footerAlign);
-                            ctx.textBaseline = 'middle';
 
-                            footerFontSize = vm.footerFontSize;
+  var n = nodes.length,
+      n2 = n * n;
 
-                            ctx.fillStyle = vm.footerFontColor;
-                            ctx.font = helpers$1.fontString(footerFontSize, vm._footerFontStyle, vm._footerFontFamily);
+  var M = new Array(n2),
+      _M;
 
-                            for (i = 0; i < length; ++i) {
-                                ctx.fillText(footer[i], rtlHelper.x(pt.x), pt.y + footerFontSize / 2);
-                                pt.y += footerFontSize + vm.footerSpacing;
-                            }
-                        }
-                    },
-
-                    drawBackground: function(pt, vm, ctx, tooltipSize) {
-                        ctx.fillStyle = vm.backgroundColor;
-                        ctx.strokeStyle = vm.borderColor;
-                        ctx.lineWidth = vm.borderWidth;
-                        var xAlign = vm.xAlign;
-                        var yAlign = vm.yAlign;
-                        var x = pt.x;
-                        var y = pt.y;
-                        var width = tooltipSize.width;
-                        var height = tooltipSize.height;
-                        var radius = vm.cornerRadius;
-
-                        ctx.beginPath();
-                        ctx.moveTo(x + radius, y);
-                        if (yAlign === 'top') {
-                            this.drawCaret(pt, tooltipSize);
-                        }
-                        ctx.lineTo(x + width - radius, y);
-                        ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
-                        if (yAlign === 'center' && xAlign === 'right') {
-                            this.drawCaret(pt, tooltipSize);
-                        }
-                        ctx.lineTo(x + width, y + height - radius);
-                        ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
-                        if (yAlign === 'bottom') {
-                            this.drawCaret(pt, tooltipSize);
-                        }
-                        ctx.lineTo(x + radius, y + height);
-                        ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
-                        if (yAlign === 'center' && xAlign === 'left') {
-                            this.drawCaret(pt, tooltipSize);
-                        }
-                        ctx.lineTo(x, y + radius);
-                        ctx.quadraticCurveTo(x, y, x + radius, y);
-                        ctx.closePath();
+  for (var _i = 0; _i < n2; _i++) {
+    M[_i] = 0;
+  }
 
-                        ctx.fill();
+  for (var e = 0; e < edges.length; e++) {
+    var edge = edges[e];
+    var _i2 = id2position[edge.source().id()];
+    var j = id2position[edge.target().id()];
+    var sim = getSimilarity(edge, opts.attributes);
+    M[_i2 * n + j] += sim; // G should be symmetric and undirected
 
-                        if (vm.borderWidth > 0) {
-                            ctx.stroke();
-                        }
-                    },
+    M[j * n + _i2] += sim;
+  } // Begin Markov cluster algorithm
+  // Step 1: Add self loops to each node, ie. add multFactor to matrix diagonal
 
-                    draw: function() {
-                        var ctx = this._chart.ctx;
-                        var vm = this._view;
 
-                        if (vm.opacity === 0) {
-                            return;
-                        }
+  addLoops(M, n, opts.multFactor); // Step 2: M = normalize( M );
 
-                        var tooltipSize = {
-                            width: vm.width,
-                            height: vm.height
-                        };
-                        var pt = {
-                            x: vm.x,
-                            y: vm.y
-                        };
+  normalize(M, n);
+  var isStillMoving = true;
+  var iterations = 0;
 
-                        // IE11/Edge does not like very small opacities, so snap to 0
-                        var opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;
+  while (isStillMoving && iterations < opts.maxIterations) {
+    isStillMoving = false; // Step 3:
 
-                        // Truthy/falsey value for empty tooltip
-                        var hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;
+    _M = expand(M, n, opts.expandFactor); // Step 4:
 
-                        if (this._options.enabled && hasTooltipContent) {
-                            ctx.save();
-                            ctx.globalAlpha = opacity;
+    M = inflate(_M, n, opts.inflateFactor); // Step 5: check to see if ~steady state has been reached
 
-                            // Draw Background
-                            this.drawBackground(pt, vm, ctx, tooltipSize);
+    if (!hasConverged(M, _M, n2, 4)) {
+      isStillMoving = true;
+    }
 
-                            // Draw Title, Body, and Footer
-                            pt.y += vm.yPadding;
+    iterations++;
+  } // Build clusters from matrix
 
-                            helpers$1.rtl.overrideTextDirection(ctx, vm.textDirection);
 
-                            // Titles
-                            this.drawTitle(pt, vm, ctx);
+  var clusters = assign(M, n, nodes, cy); // Remove duplicate clusters due to symmetry of graph and M matrix
 
-                            // Body
-                            this.drawBody(pt, vm, ctx);
+  clusters = removeDuplicates(clusters);
+  return clusters;
+};
 
-                            // Footer
-                            this.drawFooter(pt, vm, ctx);
+var markovClustering$1 = {
+  markovClustering: markovClustering,
+  mcl: markovClustering
+};
 
-                            helpers$1.rtl.restoreTextDirection(ctx, vm.textDirection);
+// Common distance metrics for clustering algorithms
 
-                            ctx.restore();
-                        }
-                    },
-
-                    /**
-                     * Handle an event
-                     * @private
-                     * @param {IEvent} event - The event to handle
-                     * @returns {boolean} true if the tooltip changed
-                     */
-                    handleEvent: function(e) {
-                        var me = this;
-                        var options = me._options;
-                        var changed = false;
-
-                        me._lastActive = me._lastActive || [];
-
-                        // Find Active Elements for tooltips
-                        if (e.type === 'mouseout') {
-                            me._active = [];
-                        } else {
-                            me._active = me._chart.getElementsAtEventForMode(e, options.mode, options);
-                            if (options.reverse) {
-                                me._active.reverse();
-                            }
-                        }
+var identity = function identity(x) {
+  return x;
+};
 
-                        // Remember Last Actives
-                        changed = !helpers$1.arrayEquals(me._active, me._lastActive);
+var absDiff = function absDiff(p, q) {
+  return Math.abs(q - p);
+};
 
-                        // Only handle target event on tooltip change
-                        if (changed) {
-                            me._lastActive = me._active;
+var addAbsDiff = function addAbsDiff(total, p, q) {
+  return total + absDiff(p, q);
+};
 
-                            if (options.enabled || options.custom) {
-                                me._eventPosition = {
-                                    x: e.x,
-                                    y: e.y
-                                };
+var addSquaredDiff = function addSquaredDiff(total, p, q) {
+  return total + Math.pow(q - p, 2);
+};
 
-                                me.update(true);
-                                me.pivot();
-                            }
-                        }
+var sqrt = function sqrt(x) {
+  return Math.sqrt(x);
+};
 
-                        return changed;
-                    }
-                });
+var maxAbsDiff = function maxAbsDiff(currentMax, p, q) {
+  return Math.max(currentMax, absDiff(p, q));
+};
 
-                /**
-                 * @namespace Chart.Tooltip.positioners
-                 */
-                var positioners_1 = positioners;
-
-                var core_tooltip = exports$4;
-                core_tooltip.positioners = positioners_1;
-
-                var valueOrDefault$9 = helpers$1.valueOrDefault;
-
-                core_defaults._set('global', {
-                    elements: {},
-                    events: [
-                        'mousemove',
-                        'mouseout',
-                        'click',
-                        'touchstart',
-                        'touchmove'
-                    ],
-                    hover: {
-                        onHover: null,
-                        mode: 'nearest',
-                        intersect: true,
-                        animationDuration: 400
-                    },
-                    onClick: null,
-                    maintainAspectRatio: true,
-                    responsive: true,
-                    responsiveAnimationDuration: 0
-                });
+var getDistance = function getDistance(length, getP, getQ, init, visit) {
+  var post = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : identity;
+  var ret = init;
+  var p, q;
 
-                /**
-                 * Recursively merge the given config objects representing the `scales` option
-                 * by incorporating scale defaults in `xAxes` and `yAxes` array items, then
-                 * returns a deep copy of the result, thus doesn't alter inputs.
-                 */
-                function mergeScaleConfig(/* config objects ... */) {
-                    return helpers$1.merge({}, [].slice.call(arguments), {
-                        merger: function(key, target, source, options) {
-                            if (key === 'xAxes' || key === 'yAxes') {
-                                var slen = source[key].length;
-                                var i, type, scale;
-
-                                if (!target[key]) {
-                                    target[key] = [];
-                                }
-
-                                for (i = 0; i < slen; ++i) {
-                                    scale = source[key][i];
-                                    type = valueOrDefault$9(scale.type, key === 'xAxes' ? 'category' : 'linear');
-
-                                    if (i >= target[key].length) {
-                                        target[key].push({});
-                                    }
-
-                                    if (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {
-                                        // new/untyped scale or type changed: let's apply the new defaults
-                                        // then merge source scale to correctly overwrite the defaults.
-                                        helpers$1.merge(target[key][i], [core_scaleService.getScaleDefaults(type), scale]);
-                                    } else {
-                                        // scales type are the same
-                                        helpers$1.merge(target[key][i], scale);
-                                    }
-                                }
-                            } else {
-                                helpers$1._merger(key, target, source, options);
-                            }
-                        }
-                    });
-                }
+  for (var dim = 0; dim < length; dim++) {
+    p = getP(dim);
+    q = getQ(dim);
+    ret = visit(ret, p, q);
+  }
 
-                /**
-                 * Recursively merge the given config objects as the root options by handling
-                 * default scale options for the `scales` and `scale` properties, then returns
-                 * a deep copy of the result, thus doesn't alter inputs.
-                 */
-                function mergeConfig(/* config objects ... */) {
-                    return helpers$1.merge({}, [].slice.call(arguments), {
-                        merger: function(key, target, source, options) {
-                            var tval = target[key] || {};
-                            var sval = source[key];
-
-                            if (key === 'scales') {
-                                // scale config merging is complex. Add our own function here for that
-                                target[key] = mergeScaleConfig(tval, sval);
-                            } else if (key === 'scale') {
-                                // used in polar area & radar charts since there is only one scale
-                                target[key] = helpers$1.merge(tval, [core_scaleService.getScaleDefaults(sval.type), sval]);
-                            } else {
-                                helpers$1._merger(key, target, source, options);
-                            }
-                        }
-                    });
-                }
+  return post(ret);
+};
 
-                function initConfig(config) {
-                    config = config || {};
+var distances = {
+  euclidean: function euclidean(length, getP, getQ) {
+    if (length >= 2) {
+      return getDistance(length, getP, getQ, 0, addSquaredDiff, sqrt);
+    } else {
+      // for single attr case, more efficient to avoid sqrt
+      return getDistance(length, getP, getQ, 0, addAbsDiff);
+    }
+  },
+  squaredEuclidean: function squaredEuclidean(length, getP, getQ) {
+    return getDistance(length, getP, getQ, 0, addSquaredDiff);
+  },
+  manhattan: function manhattan(length, getP, getQ) {
+    return getDistance(length, getP, getQ, 0, addAbsDiff);
+  },
+  max: function max(length, getP, getQ) {
+    return getDistance(length, getP, getQ, -Infinity, maxAbsDiff);
+  }
+}; // in case the user accidentally doesn't use camel case
 
-                    // Do NOT use mergeConfig for the data object because this method merges arrays
-                    // and so would change references to labels and datasets, preventing data updates.
-                    var data = config.data = config.data || {};
-                    data.datasets = data.datasets || [];
-                    data.labels = data.labels || [];
+distances['squared-euclidean'] = distances['squaredEuclidean'];
+distances['squaredeuclidean'] = distances['squaredEuclidean'];
+function clusteringDistance (method, length, getP, getQ, nodeP, nodeQ) {
+  var impl;
 
-                    config.options = mergeConfig(
-                        core_defaults.global,
-                        core_defaults[config.type],
-                        config.options || {});
+  if (fn(method)) {
+    impl = method;
+  } else {
+    impl = distances[method] || distances.euclidean;
+  }
 
-                    return config;
-                }
+  if (length === 0 && fn(method)) {
+    return impl(nodeP, nodeQ);
+  } else {
+    return impl(length, getP, getQ, nodeP, nodeQ);
+  }
+}
+
+var defaults$5 = defaults({
+  k: 2,
+  m: 2,
+  sensitivityThreshold: 0.0001,
+  distance: 'euclidean',
+  maxIterations: 10,
+  attributes: [],
+  testMode: false,
+  testCentroids: null
+});
+
+var setOptions$1 = function setOptions(options) {
+  return defaults$5(options);
+};
+/* eslint-enable */
+
+
+var getDist = function getDist(type, node, centroid, attributes, mode) {
+  var noNodeP = mode !== 'kMedoids';
+  var getP = noNodeP ? function (i) {
+    return centroid[i];
+  } : function (i) {
+    return attributes[i](centroid);
+  };
+
+  var getQ = function getQ(i) {
+    return attributes[i](node);
+  };
+
+  var nodeP = centroid;
+  var nodeQ = node;
+  return clusteringDistance(type, attributes.length, getP, getQ, nodeP, nodeQ);
+};
+
+var randomCentroids = function randomCentroids(nodes, k, attributes) {
+  var ndim = attributes.length;
+  var min = new Array(ndim);
+  var max = new Array(ndim);
+  var centroids = new Array(k);
+  var centroid = null; // Find min, max values for each attribute dimension
+
+  for (var i = 0; i < ndim; i++) {
+    min[i] = nodes.min(attributes[i]).value;
+    max[i] = nodes.max(attributes[i]).value;
+  } // Build k centroids, each represented as an n-dim feature vector
+
+
+  for (var c = 0; c < k; c++) {
+    centroid = [];
+
+    for (var _i = 0; _i < ndim; _i++) {
+      centroid[_i] = Math.random() * (max[_i] - min[_i]) + min[_i]; // random initial value
+    }
 
-                function updateConfig(chart) {
-                    var newOptions = chart.options;
+    centroids[c] = centroid;
+  }
 
-                    helpers$1.each(chart.scales, function(scale) {
-                        core_layouts.removeBox(chart, scale);
-                    });
+  return centroids;
+};
 
-                    newOptions = mergeConfig(
-                        core_defaults.global,
-                        core_defaults[chart.config.type],
-                        newOptions);
+var classify = function classify(node, centroids, distance, attributes, type) {
+  var min = Infinity;
+  var index = 0;
 
-                    chart.options = chart.config.options = newOptions;
-                    chart.ensureScalesHaveIDs();
-                    chart.buildOrUpdateScales();
+  for (var i = 0; i < centroids.length; i++) {
+    var dist = getDist(distance, node, centroids[i], attributes, type);
 
-                    // Tooltip
-                    chart.tooltip._options = newOptions.tooltips;
-                    chart.tooltip.initialize();
-                }
+    if (dist < min) {
+      min = dist;
+      index = i;
+    }
+  }
 
-                function nextAvailableScaleId(axesOpts, prefix, index) {
-                    var id;
-                    var hasId = function(obj) {
-                        return obj.id === id;
-                    };
+  return index;
+};
 
-                    do {
-                        id = prefix + index++;
-                    } while (helpers$1.findIndex(axesOpts, hasId) >= 0);
+var buildCluster = function buildCluster(centroid, nodes, assignment) {
+  var cluster = [];
+  var node = null;
 
-                    return id;
-                }
+  for (var n = 0; n < nodes.length; n++) {
+    node = nodes[n];
 
-                function positionIsHorizontal(position) {
-                    return position === 'top' || position === 'bottom';
-                }
+    if (assignment[node.id()] === centroid) {
+      //console.log("Node " + node.id() + " is associated with medoid #: " + m);
+      cluster.push(node);
+    }
+  }
 
-                function compare2Level(l1, l2) {
-                    return function(a, b) {
-                        return a[l1] === b[l1]
-                            ? a[l2] - b[l2]
-                            : a[l1] - b[l1];
-                    };
-                }
+  return cluster;
+};
 
-                var Chart = function(item, config) {
-                    this.construct(item, config);
-                    return this;
-                };
+var haveValuesConverged = function haveValuesConverged(v1, v2, sensitivityThreshold) {
+  return Math.abs(v2 - v1) <= sensitivityThreshold;
+};
 
-                helpers$1.extend(Chart.prototype, /** @lends Chart */ {
-                    /**
-                     * @private
-                     */
-                    construct: function(item, config) {
-                        var me = this;
-
-                        config = initConfig(config);
-
-                        var context = platform.acquireContext(item, config);
-                        var canvas = context && context.canvas;
-                        var height = canvas && canvas.height;
-                        var width = canvas && canvas.width;
-
-                        me.id = helpers$1.uid();
-                        me.ctx = context;
-                        me.canvas = canvas;
-                        me.config = config;
-                        me.width = width;
-                        me.height = height;
-                        me.aspectRatio = height ? width / height : null;
-                        me.options = config.options;
-                        me._bufferedRender = false;
-                        me._layers = [];
-
-                        /**
-                         * Provided for backward compatibility, Chart and Chart.Controller have been merged,
-                         * the "instance" still need to be defined since it might be called from plugins.
-                         * @prop Chart#chart
-                         * @deprecated since version 2.6.0
-                         * @todo remove at version 3
-                         * @private
-                         */
-                        me.chart = me;
-                        me.controller = me; // chart.chart.controller #inception
-
-                        // Add the chart instance to the global namespace
-                        Chart.instances[me.id] = me;
-
-                        // Define alias to the config data: `chart.data === chart.config.data`
-                        Object.defineProperty(me, 'data', {
-                            get: function() {
-                                return me.config.data;
-                            },
-                            set: function(value) {
-                                me.config.data = value;
-                            }
-                        });
+var haveMatricesConverged = function haveMatricesConverged(v1, v2, sensitivityThreshold) {
+  for (var i = 0; i < v1.length; i++) {
+    for (var j = 0; j < v1[i].length; j++) {
+      var diff = Math.abs(v1[i][j] - v2[i][j]);
 
-                        if (!context || !canvas) {
-                            // The given item is not a compatible context2d element, let's return before finalizing
-                            // the chart initialization but after setting basic chart / controller properties that
-                            // can help to figure out that the chart is not valid (e.g chart.canvas !== null);
-                            // https://github.com/chartjs/Chart.js/issues/2807
-                            console.error("Failed to create chart: can't acquire context from the given item");
-                            return;
-                        }
+      if (diff > sensitivityThreshold) {
+        return false;
+      }
+    }
+  }
 
-                        me.initialize();
-                        me.update();
-                    },
+  return true;
+};
 
-                    /**
-                     * @private
-                     */
-                    initialize: function() {
-                        var me = this;
+var seenBefore = function seenBefore(node, medoids, n) {
+  for (var i = 0; i < n; i++) {
+    if (node === medoids[i]) return true;
+  }
 
-                        // Before init plugin notification
-                        core_plugins.notify(me, 'beforeInit');
+  return false;
+};
 
-                        helpers$1.retinaScale(me, me.options.devicePixelRatio);
+var randomMedoids = function randomMedoids(nodes, k) {
+  var medoids = new Array(k); // For small data sets, the probability of medoid conflict is greater,
+  // so we need to check to see if we've already seen or chose this node before.
 
-                        me.bindEvents();
+  if (nodes.length < 50) {
+    // Randomly select k medoids from the n nodes
+    for (var i = 0; i < k; i++) {
+      var node = nodes[Math.floor(Math.random() * nodes.length)]; // If we've already chosen this node to be a medoid, don't choose it again (for small data sets).
+      // Instead choose a different random node.
 
-                        if (me.options.responsive) {
-                            // Initial resize before chart draws (must be silent to preserve initial animations).
-                            me.resize(true);
-                        }
+      while (seenBefore(node, medoids, i)) {
+        node = nodes[Math.floor(Math.random() * nodes.length)];
+      }
 
-                        me.initToolTip();
+      medoids[i] = node;
+    }
+  } else {
+    // Relatively large data set, so pretty safe to not check and just select random nodes
+    for (var _i2 = 0; _i2 < k; _i2++) {
+      medoids[_i2] = nodes[Math.floor(Math.random() * nodes.length)];
+    }
+  }
 
-                        // After init plugin notification
-                        core_plugins.notify(me, 'afterInit');
+  return medoids;
+};
 
-                        return me;
-                    },
+var findCost = function findCost(potentialNewMedoid, cluster, attributes) {
+  var cost = 0;
 
-                    clear: function() {
-                        helpers$1.canvas.clear(this);
-                        return this;
-                    },
+  for (var n = 0; n < cluster.length; n++) {
+    cost += getDist('manhattan', cluster[n], potentialNewMedoid, attributes, 'kMedoids');
+  }
 
-                    stop: function() {
-                        // Stops any current animation loop occurring
-                        core_animations.cancelAnimation(this);
-                        return this;
-                    },
+  return cost;
+};
 
-                    resize: function(silent) {
-                        var me = this;
-                        var options = me.options;
-                        var canvas = me.canvas;
-                        var aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;
+var kMeans = function kMeans(options) {
+  var cy = this.cy();
+  var nodes = this.nodes();
+  var node = null; // Set parameters of algorithm: # of clusters, distance metric, etc.
 
-                        // the canvas render width and height will be casted to integers so make sure that
-                        // the canvas display style uses the same integer values to avoid blurring effect.
+  var opts = setOptions$1(options); // Begin k-means algorithm
 
-                        // Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed
-                        var newWidth = Math.max(0, Math.floor(helpers$1.getMaximumWidth(canvas)));
-                        var newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers$1.getMaximumHeight(canvas)));
+  var clusters = new Array(opts.k);
+  var assignment = {};
+  var centroids; // Step 1: Initialize centroid positions
 
-                        if (me.width === newWidth && me.height === newHeight) {
-                            return;
-                        }
+  if (opts.testMode) {
+    if (typeof opts.testCentroids === 'number') {
+      centroids = randomCentroids(nodes, opts.k, opts.attributes);
+    } else if (_typeof(opts.testCentroids) === 'object') {
+      centroids = opts.testCentroids;
+    } else {
+      centroids = randomCentroids(nodes, opts.k, opts.attributes);
+    }
+  } else {
+    centroids = randomCentroids(nodes, opts.k, opts.attributes);
+  }
 
-                        canvas.width = me.width = newWidth;
-                        canvas.height = me.height = newHeight;
-                        canvas.style.width = newWidth + 'px';
-                        canvas.style.height = newHeight + 'px';
+  var isStillMoving = true;
+  var iterations = 0;
 
-                        helpers$1.retinaScale(me, options.devicePixelRatio);
+  while (isStillMoving && iterations < opts.maxIterations) {
+    // Step 2: Assign nodes to the nearest centroid
+    for (var n = 0; n < nodes.length; n++) {
+      node = nodes[n]; // Determine which cluster this node belongs to: node id => cluster #
 
-                        if (!silent) {
-                            // Notify any plugins about the resize
-                            var newSize = {width: newWidth, height: newHeight};
-                            core_plugins.notify(me, 'resize', [newSize]);
+      assignment[node.id()] = classify(node, centroids, opts.distance, opts.attributes, 'kMeans');
+    } // Step 3: For each of the k clusters, update its centroid
 
-                            // Notify of resize
-                            if (options.onResize) {
-                                options.onResize(me, newSize);
-                            }
 
-                            me.stop();
-                            me.update({
-                                duration: options.responsiveAnimationDuration
-                            });
-                        }
-                    },
+    isStillMoving = false;
 
-                    ensureScalesHaveIDs: function() {
-                        var options = this.options;
-                        var scalesOptions = options.scales || {};
-                        var scaleOptions = options.scale;
+    for (var c = 0; c < opts.k; c++) {
+      // Get all nodes that belong to this cluster
+      var cluster = buildCluster(c, nodes, assignment);
 
-                        helpers$1.each(scalesOptions.xAxes, function(xAxisOptions, index) {
-                            if (!xAxisOptions.id) {
-                                xAxisOptions.id = nextAvailableScaleId(scalesOptions.xAxes, 'x-axis-', index);
-                            }
-                        });
+      if (cluster.length === 0) {
+        // If cluster is empty, break out early & move to next cluster
+        continue;
+      } // Update centroids by calculating avg of all nodes within the cluster.
 
-                        helpers$1.each(scalesOptions.yAxes, function(yAxisOptions, index) {
-                            if (!yAxisOptions.id) {
-                                yAxisOptions.id = nextAvailableScaleId(scalesOptions.yAxes, 'y-axis-', index);
-                            }
-                        });
 
-                        if (scaleOptions) {
-                            scaleOptions.id = scaleOptions.id || 'scale';
-                        }
-                    },
-
-                    /**
-                     * Builds a map of scale ID to scale object for future lookup.
-                     */
-                    buildOrUpdateScales: function() {
-                        var me = this;
-                        var options = me.options;
-                        var scales = me.scales || {};
-                        var items = [];
-                        var updated = Object.keys(scales).reduce(function(obj, id) {
-                            obj[id] = false;
-                            return obj;
-                        }, {});
-
-                        if (options.scales) {
-                            items = items.concat(
-                                (options.scales.xAxes || []).map(function(xAxisOptions) {
-                                    return {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};
-                                }),
-                                (options.scales.yAxes || []).map(function(yAxisOptions) {
-                                    return {options: yAxisOptions, dtype: 'linear', dposition: 'left'};
-                                })
-                            );
-                        }
+      var ndim = opts.attributes.length;
+      var centroid = centroids[c]; // [ dim_1, dim_2, dim_3, ... , dim_n ]
 
-                        if (options.scale) {
-                            items.push({
-                                options: options.scale,
-                                dtype: 'radialLinear',
-                                isDefault: true,
-                                dposition: 'chartArea'
-                            });
-                        }
+      var newCentroid = new Array(ndim);
+      var sum = new Array(ndim);
 
-                        helpers$1.each(items, function(item) {
-                            var scaleOptions = item.options;
-                            var id = scaleOptions.id;
-                            var scaleType = valueOrDefault$9(scaleOptions.type, item.dtype);
+      for (var d = 0; d < ndim; d++) {
+        sum[d] = 0.0;
 
-                            if (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {
-                                scaleOptions.position = item.dposition;
-                            }
+        for (var i = 0; i < cluster.length; i++) {
+          node = cluster[i];
+          sum[d] += opts.attributes[d](node);
+        }
 
-                            updated[id] = true;
-                            var scale = null;
-                            if (id in scales && scales[id].type === scaleType) {
-                                scale = scales[id];
-                                scale.options = scaleOptions;
-                                scale.ctx = me.ctx;
-                                scale.chart = me;
-                            } else {
-                                var scaleClass = core_scaleService.getScaleConstructor(scaleType);
-                                if (!scaleClass) {
-                                    return;
-                                }
-                                scale = new scaleClass({
-                                    id: id,
-                                    type: scaleType,
-                                    options: scaleOptions,
-                                    ctx: me.ctx,
-                                    chart: me
-                                });
-                                scales[scale.id] = scale;
-                            }
+        newCentroid[d] = sum[d] / cluster.length; // Check to see if algorithm has converged, i.e. when centroids no longer change
 
-                            scale.mergeTicksOptions();
+        if (!haveValuesConverged(newCentroid[d], centroid[d], opts.sensitivityThreshold)) {
+          isStillMoving = true;
+        }
+      }
 
-                            // TODO(SB): I think we should be able to remove this custom case (options.scale)
-                            // and consider it as a regular scale part of the "scales"" map only! This would
-                            // make the logic easier and remove some useless? custom code.
-                            if (item.isDefault) {
-                                me.scale = scale;
-                            }
-                        });
-                        // clear up discarded scales
-                        helpers$1.each(updated, function(hasUpdated, id) {
-                            if (!hasUpdated) {
-                                delete scales[id];
-                            }
-                        });
+      centroids[c] = newCentroid;
+      clusters[c] = cy.collection(cluster);
+    }
 
-                        me.scales = scales;
+    iterations++;
+  }
 
-                        core_scaleService.addScalesToLayout(this);
-                    },
+  return clusters;
+};
+
+var kMedoids = function kMedoids(options) {
+  var cy = this.cy();
+  var nodes = this.nodes();
+  var node = null;
+  var opts = setOptions$1(options); // Begin k-medoids algorithm
+
+  var clusters = new Array(opts.k);
+  var medoids;
+  var assignment = {};
+  var curCost;
+  var minCosts = new Array(opts.k); // minimum cost configuration for each cluster
+  // Step 1: Initialize k medoids
+
+  if (opts.testMode) {
+    if (typeof opts.testCentroids === 'number') ; else if (_typeof(opts.testCentroids) === 'object') {
+      medoids = opts.testCentroids;
+    } else {
+      medoids = randomMedoids(nodes, opts.k);
+    }
+  } else {
+    medoids = randomMedoids(nodes, opts.k);
+  }
 
-                    buildOrUpdateControllers: function() {
-                        var me = this;
-                        var newControllers = [];
-                        var datasets = me.data.datasets;
-                        var i, ilen;
+  var isStillMoving = true;
+  var iterations = 0;
 
-                        for (i = 0, ilen = datasets.length; i < ilen; i++) {
-                            var dataset = datasets[i];
-                            var meta = me.getDatasetMeta(i);
-                            var type = dataset.type || me.config.type;
+  while (isStillMoving && iterations < opts.maxIterations) {
+    // Step 2: Assign nodes to the nearest medoid
+    for (var n = 0; n < nodes.length; n++) {
+      node = nodes[n]; // Determine which cluster this node belongs to: node id => cluster #
 
-                            if (meta.type && meta.type !== type) {
-                                me.destroyDatasetMeta(i);
-                                meta = me.getDatasetMeta(i);
-                            }
-                            meta.type = type;
-                            meta.order = dataset.order || 0;
-                            meta.index = i;
-
-                            if (meta.controller) {
-                                meta.controller.updateIndex(i);
-                                meta.controller.linkScales();
-                            } else {
-                                var ControllerClass = controllers[meta.type];
-                                if (ControllerClass === undefined) {
-                                    throw new Error('"' + meta.type + '" is not a chart type.');
-                                }
-
-                                meta.controller = new ControllerClass(me, i);
-                                newControllers.push(meta.controller);
-                            }
-                        }
+      assignment[node.id()] = classify(node, medoids, opts.distance, opts.attributes, 'kMedoids');
+    }
 
-                        return newControllers;
-                    },
-
-                    /**
-                     * Reset the elements of all datasets
-                     * @private
-                     */
-                    resetElements: function() {
-                        var me = this;
-                        helpers$1.each(me.data.datasets, function(dataset, datasetIndex) {
-                            me.getDatasetMeta(datasetIndex).controller.reset();
-                        }, me);
-                    },
-
-                    /**
-                     * Resets the chart back to it's state before the initial animation
-                     */
-                    reset: function() {
-                        this.resetElements();
-                        this.tooltip.initialize();
-                    },
-
-                    update: function(config) {
-                        var me = this;
-                        var i, ilen;
-
-                        if (!config || typeof config !== 'object') {
-                            // backwards compatibility
-                            config = {
-                                duration: config,
-                                lazy: arguments[1]
-                            };
-                        }
+    isStillMoving = false; // Step 3: For each medoid m, and for each node assciated with mediod m,
+    // select the node with the lowest configuration cost as new medoid.
 
-                        updateConfig(me);
+    for (var m = 0; m < medoids.length; m++) {
+      // Get all nodes that belong to this medoid
+      var cluster = buildCluster(m, nodes, assignment);
 
-                        // plugins options references might have change, let's invalidate the cache
-                        // https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167
-                        core_plugins._invalidate(me);
+      if (cluster.length === 0) {
+        // If cluster is empty, break out early & move to next cluster
+        continue;
+      }
 
-                        if (core_plugins.notify(me, 'beforeUpdate') === false) {
-                            return;
-                        }
+      minCosts[m] = findCost(medoids[m], cluster, opts.attributes); // original cost
+      // Select different medoid if its configuration has the lowest cost
 
-                        // In case the entire data object changed
-                        me.tooltip._data = me.data;
+      for (var _n = 0; _n < cluster.length; _n++) {
+        curCost = findCost(cluster[_n], cluster, opts.attributes);
 
-                        // Make sure dataset controllers are updated and new controllers are reset
-                        var newControllers = me.buildOrUpdateControllers();
+        if (curCost < minCosts[m]) {
+          minCosts[m] = curCost;
+          medoids[m] = cluster[_n];
+          isStillMoving = true;
+        }
+      }
 
-                        // Make sure all dataset controllers have correct meta data counts
-                        for (i = 0, ilen = me.data.datasets.length; i < ilen; i++) {
-                            me.getDatasetMeta(i).controller.buildOrUpdateElements();
-                        }
+      clusters[m] = cy.collection(cluster);
+    }
 
-                        me.updateLayout();
+    iterations++;
+  }
 
-                        // Can only reset the new controllers after the scales have been updated
-                        if (me.options.animation && me.options.animation.duration) {
-                            helpers$1.each(newControllers, function(controller) {
-                                controller.reset();
-                            });
-                        }
+  return clusters;
+};
 
-                        me.updateDatasets();
+var updateCentroids = function updateCentroids(centroids, nodes, U, weight, opts) {
+  var numerator, denominator;
 
-                        // Need to reset tooltip in case it is displayed with elements that are removed
-                        // after update.
-                        me.tooltip.initialize();
+  for (var n = 0; n < nodes.length; n++) {
+    for (var c = 0; c < centroids.length; c++) {
+      weight[n][c] = Math.pow(U[n][c], opts.m);
+    }
+  }
 
-                        // Last active contains items that were previously in the tooltip.
-                        // When we reset the tooltip, we need to clear it
-                        me.lastActive = [];
+  for (var _c = 0; _c < centroids.length; _c++) {
+    for (var dim = 0; dim < opts.attributes.length; dim++) {
+      numerator = 0;
+      denominator = 0;
 
-                        // Do this before render so that any plugins that need final scale updates can use it
-                        core_plugins.notify(me, 'afterUpdate');
+      for (var _n2 = 0; _n2 < nodes.length; _n2++) {
+        numerator += weight[_n2][_c] * opts.attributes[dim](nodes[_n2]);
+        denominator += weight[_n2][_c];
+      }
 
-                        me._layers.sort(compare2Level('z', '_idx'));
+      centroids[_c][dim] = numerator / denominator;
+    }
+  }
+};
 
-                        if (me._bufferedRender) {
-                            me._bufferedRequest = {
-                                duration: config.duration,
-                                easing: config.easing,
-                                lazy: config.lazy
-                            };
-                        } else {
-                            me.render(config);
-                        }
-                    },
-
-                    /**
-                     * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`
-                     * hook, in which case, plugins will not be called on `afterLayout`.
-                     * @private
-                     */
-                    updateLayout: function() {
-                        var me = this;
-
-                        if (core_plugins.notify(me, 'beforeLayout') === false) {
-                            return;
-                        }
+var updateMembership = function updateMembership(U, _U, centroids, nodes, opts) {
+  // Save previous step
+  for (var i = 0; i < U.length; i++) {
+    _U[i] = U[i].slice();
+  }
 
-                        core_layouts.update(this, this.width, this.height);
+  var sum, numerator, denominator;
+  var pow = 2 / (opts.m - 1);
 
-                        me._layers = [];
-                        helpers$1.each(me.boxes, function(box) {
-                            // _configure is called twice, once in core.scale.update and once here.
-                            // Here the boxes are fully updated and at their final positions.
-                            if (box._configure) {
-                                box._configure();
-                            }
-                            me._layers.push.apply(me._layers, box._layers());
-                        }, me);
+  for (var c = 0; c < centroids.length; c++) {
+    for (var n = 0; n < nodes.length; n++) {
+      sum = 0;
 
-                        me._layers.forEach(function(item, index) {
-                            item._idx = index;
-                        });
+      for (var k = 0; k < centroids.length; k++) {
+        // against all other centroids
+        numerator = getDist(opts.distance, nodes[n], centroids[c], opts.attributes, 'cmeans');
+        denominator = getDist(opts.distance, nodes[n], centroids[k], opts.attributes, 'cmeans');
+        sum += Math.pow(numerator / denominator, pow);
+      }
 
-                        /**
-                         * Provided for backward compatibility, use `afterLayout` instead.
-                         * @method IPlugin#afterScaleUpdate
-                         * @deprecated since version 2.5.0
-                         * @todo remove at version 3
-                         * @private
-                         */
-                        core_plugins.notify(me, 'afterScaleUpdate');
-                        core_plugins.notify(me, 'afterLayout');
-                    },
-
-                    /**
-                     * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`
-                     * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.
-                     * @private
-                     */
-                    updateDatasets: function() {
-                        var me = this;
-
-                        if (core_plugins.notify(me, 'beforeDatasetsUpdate') === false) {
-                            return;
-                        }
+      U[n][c] = 1 / sum;
+    }
+  }
+};
 
-                        for (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {
-                            me.updateDataset(i);
-                        }
+var assign$1 = function assign(nodes, U, opts, cy) {
+  var clusters = new Array(opts.k);
 
-                        core_plugins.notify(me, 'afterDatasetsUpdate');
-                    },
-
-                    /**
-                     * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`
-                     * hook, in which case, plugins will not be called on `afterDatasetUpdate`.
-                     * @private
-                     */
-                    updateDataset: function(index) {
-                        var me = this;
-                        var meta = me.getDatasetMeta(index);
-                        var args = {
-                            meta: meta,
-                            index: index
-                        };
-
-                        if (core_plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {
-                            return;
-                        }
+  for (var c = 0; c < clusters.length; c++) {
+    clusters[c] = [];
+  }
 
-                        meta.controller._update();
+  var max;
+  var index;
 
-                        core_plugins.notify(me, 'afterDatasetUpdate', [args]);
-                    },
+  for (var n = 0; n < U.length; n++) {
+    // for each node (U is N x C matrix)
+    max = -Infinity;
+    index = -1; // Determine which cluster the node is most likely to belong in
 
-                    render: function(config) {
-                        var me = this;
+    for (var _c2 = 0; _c2 < U[0].length; _c2++) {
+      if (U[n][_c2] > max) {
+        max = U[n][_c2];
+        index = _c2;
+      }
+    }
 
-                        if (!config || typeof config !== 'object') {
-                            // backwards compatibility
-                            config = {
-                                duration: config,
-                                lazy: arguments[1]
-                            };
-                        }
+    clusters[index].push(nodes[n]);
+  } // Turn every array into a collection of nodes
 
-                        var animationOptions = me.options.animation;
-                        var duration = valueOrDefault$9(config.duration, animationOptions && animationOptions.duration);
-                        var lazy = config.lazy;
 
-                        if (core_plugins.notify(me, 'beforeRender') === false) {
-                            return;
-                        }
+  for (var _c3 = 0; _c3 < clusters.length; _c3++) {
+    clusters[_c3] = cy.collection(clusters[_c3]);
+  }
 
-                        var onComplete = function(animation) {
-                            core_plugins.notify(me, 'afterRender');
-                            helpers$1.callback(animationOptions && animationOptions.onComplete, [animation], me);
-                        };
+  return clusters;
+};
 
-                        if (animationOptions && duration) {
-                            var animation = new core_animation({
-                                numSteps: duration / 16.66, // 60 fps
-                                easing: config.easing || animationOptions.easing,
+var fuzzyCMeans = function fuzzyCMeans(options) {
+  var cy = this.cy();
+  var nodes = this.nodes();
+  var opts = setOptions$1(options); // Begin fuzzy c-means algorithm
 
-                                render: function(chart, animationObject) {
-                                    var easingFunction = helpers$1.easing.effects[animationObject.easing];
-                                    var currentStep = animationObject.currentStep;
-                                    var stepDecimal = currentStep / animationObject.numSteps;
+  var clusters;
+  var centroids;
+  var U;
 
-                                    chart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);
-                                },
+  var _U;
 
-                                onAnimationProgress: animationOptions.onProgress,
-                                onAnimationComplete: onComplete
-                            });
+  var weight; // Step 1: Initialize letiables.
 
-                            core_animations.addAnimation(me, animation, duration, lazy);
-                        } else {
-                            me.draw();
+  _U = new Array(nodes.length);
 
-                            // See https://github.com/chartjs/Chart.js/issues/3781
-                            onComplete(new core_animation({numSteps: 0, chart: me}));
-                        }
+  for (var i = 0; i < nodes.length; i++) {
+    // N x C matrix
+    _U[i] = new Array(opts.k);
+  }
 
-                        return me;
-                    },
+  U = new Array(nodes.length);
 
-                    draw: function(easingValue) {
-                        var me = this;
-                        var i, layers;
+  for (var _i3 = 0; _i3 < nodes.length; _i3++) {
+    // N x C matrix
+    U[_i3] = new Array(opts.k);
+  }
 
-                        me.clear();
+  for (var _i4 = 0; _i4 < nodes.length; _i4++) {
+    var total = 0;
 
-                        if (helpers$1.isNullOrUndef(easingValue)) {
-                            easingValue = 1;
-                        }
+    for (var j = 0; j < opts.k; j++) {
+      U[_i4][j] = Math.random();
+      total += U[_i4][j];
+    }
 
-                        me.transition(easingValue);
+    for (var _j = 0; _j < opts.k; _j++) {
+      U[_i4][_j] = U[_i4][_j] / total;
+    }
+  }
 
-                        if (me.width <= 0 || me.height <= 0) {
-                            return;
-                        }
+  centroids = new Array(opts.k);
 
-                        if (core_plugins.notify(me, 'beforeDraw', [easingValue]) === false) {
-                            return;
-                        }
+  for (var _i5 = 0; _i5 < opts.k; _i5++) {
+    centroids[_i5] = new Array(opts.attributes.length);
+  }
 
-                        // Because of plugin hooks (before/afterDatasetsDraw), datasets can't
-                        // currently be part of layers. Instead, we draw
-                        // layers <= 0 before(default, backward compat), and the rest after
-                        layers = me._layers;
-                        for (i = 0; i < layers.length && layers[i].z <= 0; ++i) {
-                            layers[i].draw(me.chartArea);
-                        }
+  weight = new Array(nodes.length);
 
-                        me.drawDatasets(easingValue);
+  for (var _i6 = 0; _i6 < nodes.length; _i6++) {
+    // N x C matrix
+    weight[_i6] = new Array(opts.k);
+  } // end init FCM
 
-                        // Rest of layers
-                        for (; i < layers.length; ++i) {
-                            layers[i].draw(me.chartArea);
-                        }
 
-                        me._drawTooltip(easingValue);
+  var isStillMoving = true;
+  var iterations = 0;
 
-                        core_plugins.notify(me, 'afterDraw', [easingValue]);
-                    },
+  while (isStillMoving && iterations < opts.maxIterations) {
+    isStillMoving = false; // Step 2: Calculate the centroids for each step.
 
-                    /**
-                     * @private
-                     */
-                    transition: function(easingValue) {
-                        var me = this;
+    updateCentroids(centroids, nodes, U, weight, opts); // Step 3: Update the partition matrix U.
 
-                        for (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {
-                            if (me.isDatasetVisible(i)) {
-                                me.getDatasetMeta(i).controller.transition(easingValue);
-                            }
-                        }
+    updateMembership(U, _U, centroids, nodes, opts); // Step 4: Check for convergence.
 
-                        me.tooltip.transition(easingValue);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getSortedDatasetMetas: function(filterVisible) {
-                        var me = this;
-                        var datasets = me.data.datasets || [];
-                        var result = [];
-                        var i, ilen;
-
-                        for (i = 0, ilen = datasets.length; i < ilen; ++i) {
-                            if (!filterVisible || me.isDatasetVisible(i)) {
-                                result.push(me.getDatasetMeta(i));
-                            }
-                        }
+    if (!haveMatricesConverged(U, _U, opts.sensitivityThreshold)) {
+      isStillMoving = true;
+    }
 
-                        result.sort(compare2Level('order', 'index'));
-
-                        return result;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getSortedVisibleDatasetMetas: function() {
-                        return this._getSortedDatasetMetas(true);
-                    },
-
-                    /**
-                     * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`
-                     * hook, in which case, plugins will not be called on `afterDatasetsDraw`.
-                     * @private
-                     */
-                    drawDatasets: function(easingValue) {
-                        var me = this;
-                        var metasets, i;
-
-                        if (core_plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {
-                            return;
-                        }
+    iterations++;
+  } // Assign nodes to clusters with highest probability.
 
-                        metasets = me._getSortedVisibleDatasetMetas();
-                        for (i = metasets.length - 1; i >= 0; --i) {
-                            me.drawDataset(metasets[i], easingValue);
-                        }
 
-                        core_plugins.notify(me, 'afterDatasetsDraw', [easingValue]);
-                    },
-
-                    /**
-                     * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`
-                     * hook, in which case, plugins will not be called on `afterDatasetDraw`.
-                     * @private
-                     */
-                    drawDataset: function(meta, easingValue) {
-                        var me = this;
-                        var args = {
-                            meta: meta,
-                            index: meta.index,
-                            easingValue: easingValue
-                        };
-
-                        if (core_plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {
-                            return;
-                        }
+  clusters = assign$1(nodes, U, opts, cy);
+  return {
+    clusters: clusters,
+    degreeOfMembership: U
+  };
+};
 
-                        meta.controller.draw(easingValue);
-
-                        core_plugins.notify(me, 'afterDatasetDraw', [args]);
-                    },
-
-                    /**
-                     * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`
-                     * hook, in which case, plugins will not be called on `afterTooltipDraw`.
-                     * @private
-                     */
-                    _drawTooltip: function(easingValue) {
-                        var me = this;
-                        var tooltip = me.tooltip;
-                        var args = {
-                            tooltip: tooltip,
-                            easingValue: easingValue
-                        };
-
-                        if (core_plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {
-                            return;
-                        }
+var kClustering = {
+  kMeans: kMeans,
+  kMedoids: kMedoids,
+  fuzzyCMeans: fuzzyCMeans,
+  fcm: fuzzyCMeans
+};
 
-                        tooltip.draw();
+// Implemented by Zoe Xi @zoexi for GSOC 2016
+var defaults$6 = defaults({
+  distance: 'euclidean',
+  // distance metric to compare nodes
+  linkage: 'min',
+  // linkage criterion : how to determine the distance between clusters of nodes
+  mode: 'threshold',
+  // mode:'threshold' => clusters must be threshold distance apart
+  threshold: Infinity,
+  // the distance threshold
+  // mode:'dendrogram' => the nodes are organised as leaves in a tree (siblings are close), merging makes clusters
+  addDendrogram: false,
+  // whether to add the dendrogram to the graph for viz
+  dendrogramDepth: 0,
+  // depth at which dendrogram branches are merged into the returned clusters
+  attributes: [] // array of attr functions
+
+});
+var linkageAliases = {
+  'single': 'min',
+  'complete': 'max'
+};
+
+var setOptions$2 = function setOptions(options) {
+  var opts = defaults$6(options);
+  var preferredAlias = linkageAliases[opts.linkage];
+
+  if (preferredAlias != null) {
+    opts.linkage = preferredAlias;
+  }
 
-                        core_plugins.notify(me, 'afterTooltipDraw', [args]);
-                    },
+  return opts;
+};
+
+var mergeClosest = function mergeClosest(clusters, index, dists, mins, opts) {
+  // Find two closest clusters from cached mins
+  var minKey = 0;
+  var min = Infinity;
+  var dist;
+  var attrs = opts.attributes;
+
+  var getDist = function getDist(n1, n2) {
+    return clusteringDistance(opts.distance, attrs.length, function (i) {
+      return attrs[i](n1);
+    }, function (i) {
+      return attrs[i](n2);
+    }, n1, n2);
+  };
+
+  for (var i = 0; i < clusters.length; i++) {
+    var key = clusters[i].key;
+    var _dist = dists[key][mins[key]];
+
+    if (_dist < min) {
+      minKey = key;
+      min = _dist;
+    }
+  }
 
-                    /**
-                     * Get the single element that was clicked on
-                     * @return An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw
-                     */
-                    getElementAtEvent: function(e) {
-                        return core_interaction.modes.single(this, e);
-                    },
+  if (opts.mode === 'threshold' && min >= opts.threshold || opts.mode === 'dendrogram' && clusters.length === 1) {
+    return false;
+  }
 
-                    getElementsAtEvent: function(e) {
-                        return core_interaction.modes.label(this, e, {intersect: true});
-                    },
+  var c1 = index[minKey];
+  var c2 = index[mins[minKey]];
+  var merged; // Merge two closest clusters
+
+  if (opts.mode === 'dendrogram') {
+    merged = {
+      left: c1,
+      right: c2,
+      key: c1.key
+    };
+  } else {
+    merged = {
+      value: c1.value.concat(c2.value),
+      key: c1.key
+    };
+  }
 
-                    getElementsAtXAxis: function(e) {
-                        return core_interaction.modes['x-axis'](this, e, {intersect: true});
-                    },
+  clusters[c1.index] = merged;
+  clusters.splice(c2.index, 1);
+  index[c1.key] = merged; // Update distances with new merged cluster
+
+  for (var _i = 0; _i < clusters.length; _i++) {
+    var cur = clusters[_i];
+
+    if (c1.key === cur.key) {
+      dist = Infinity;
+    } else if (opts.linkage === 'min') {
+      dist = dists[c1.key][cur.key];
+
+      if (dists[c1.key][cur.key] > dists[c2.key][cur.key]) {
+        dist = dists[c2.key][cur.key];
+      }
+    } else if (opts.linkage === 'max') {
+      dist = dists[c1.key][cur.key];
+
+      if (dists[c1.key][cur.key] < dists[c2.key][cur.key]) {
+        dist = dists[c2.key][cur.key];
+      }
+    } else if (opts.linkage === 'mean') {
+      dist = (dists[c1.key][cur.key] * c1.size + dists[c2.key][cur.key] * c2.size) / (c1.size + c2.size);
+    } else {
+      if (opts.mode === 'dendrogram') dist = getDist(cur.value, c1.value);else dist = getDist(cur.value[0], c1.value[0]);
+    }
 
-                    getElementsAtEventForMode: function(e, mode, options) {
-                        var method = core_interaction.modes[mode];
-                        if (typeof method === 'function') {
-                            return method(this, e, options);
-                        }
+    dists[c1.key][cur.key] = dists[cur.key][c1.key] = dist; // distance matrix is symmetric
+  } // Update cached mins
 
-                        return [];
-                    },
 
-                    getDatasetAtEvent: function(e) {
-                        return core_interaction.modes.dataset(this, e, {intersect: true});
-                    },
+  for (var _i2 = 0; _i2 < clusters.length; _i2++) {
+    var key1 = clusters[_i2].key;
 
-                    getDatasetMeta: function(datasetIndex) {
-                        var me = this;
-                        var dataset = me.data.datasets[datasetIndex];
-                        if (!dataset._meta) {
-                            dataset._meta = {};
-                        }
+    if (mins[key1] === c1.key || mins[key1] === c2.key) {
+      var _min = key1;
 
-                        var meta = dataset._meta[me.id];
-                        if (!meta) {
-                            meta = dataset._meta[me.id] = {
-                                type: null,
-                                data: [],
-                                dataset: null,
-                                controller: null,
-                                hidden: null,			// See isDatasetVisible() comment
-                                xAxisID: null,
-                                yAxisID: null,
-                                order: dataset.order || 0,
-                                index: datasetIndex
-                            };
-                        }
+      for (var j = 0; j < clusters.length; j++) {
+        var key2 = clusters[j].key;
 
-                        return meta;
-                    },
+        if (dists[key1][key2] < dists[key1][_min]) {
+          _min = key2;
+        }
+      }
 
-                    getVisibleDatasetCount: function() {
-                        var count = 0;
-                        for (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {
-                            if (this.isDatasetVisible(i)) {
-                                count++;
-                            }
-                        }
-                        return count;
-                    },
-
-                    isDatasetVisible: function(datasetIndex) {
-                        var meta = this.getDatasetMeta(datasetIndex);
-
-                        // meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,
-                        // the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.
-                        return typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;
-                    },
-
-                    generateLegend: function() {
-                        return this.options.legendCallback(this);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    destroyDatasetMeta: function(datasetIndex) {
-                        var id = this.id;
-                        var dataset = this.data.datasets[datasetIndex];
-                        var meta = dataset._meta && dataset._meta[id];
-
-                        if (meta) {
-                            meta.controller.destroy();
-                            delete dataset._meta[id];
-                        }
-                    },
+      mins[key1] = _min;
+    }
 
-                    destroy: function() {
-                        var me = this;
-                        var canvas = me.canvas;
-                        var i, ilen;
+    clusters[_i2].index = _i2;
+  } // Clean up meta data used for clustering
 
-                        me.stop();
 
-                        // dataset controllers need to cleanup associated data
-                        for (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {
-                            me.destroyDatasetMeta(i);
-                        }
+  c1.key = c2.key = c1.index = c2.index = null;
+  return true;
+};
 
-                        if (canvas) {
-                            me.unbindEvents();
-                            helpers$1.canvas.clear(me);
-                            platform.releaseContext(me.ctx);
-                            me.canvas = null;
-                            me.ctx = null;
-                        }
+var getAllChildren = function getAllChildren(root, arr, cy) {
+  if (!root) return;
 
-                        core_plugins.notify(me, 'destroy');
-
-                        delete Chart.instances[me.id];
-                    },
-
-                    toBase64Image: function() {
-                        return this.canvas.toDataURL.apply(this.canvas, arguments);
-                    },
-
-                    initToolTip: function() {
-                        var me = this;
-                        me.tooltip = new core_tooltip({
-                            _chart: me,
-                            _chartInstance: me, // deprecated, backward compatibility
-                            _data: me.data,
-                            _options: me.options.tooltips
-                        }, me);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    bindEvents: function() {
-                        var me = this;
-                        var listeners = me._listeners = {};
-                        var listener = function() {
-                            me.eventHandler.apply(me, arguments);
-                        };
-
-                        helpers$1.each(me.options.events, function(type) {
-                            platform.addEventListener(me, type, listener);
-                            listeners[type] = listener;
-                        });
+  if (root.value) {
+    arr.push(root.value);
+  } else {
+    if (root.left) getAllChildren(root.left, arr);
+    if (root.right) getAllChildren(root.right, arr);
+  }
+};
+
+var buildDendrogram = function buildDendrogram(root, cy) {
+  if (!root) return '';
+
+  if (root.left && root.right) {
+    var leftStr = buildDendrogram(root.left, cy);
+    var rightStr = buildDendrogram(root.right, cy);
+    var node = cy.add({
+      group: 'nodes',
+      data: {
+        id: leftStr + ',' + rightStr
+      }
+    });
+    cy.add({
+      group: 'edges',
+      data: {
+        source: leftStr,
+        target: node.id()
+      }
+    });
+    cy.add({
+      group: 'edges',
+      data: {
+        source: rightStr,
+        target: node.id()
+      }
+    });
+    return node.id();
+  } else if (root.value) {
+    return root.value.id();
+  }
+};
+
+var buildClustersFromTree = function buildClustersFromTree(root, k, cy) {
+  if (!root) return [];
+  var left = [],
+      right = [],
+      leaves = [];
+
+  if (k === 0) {
+    // don't cut tree, simply return all nodes as 1 single cluster
+    if (root.left) getAllChildren(root.left, left);
+    if (root.right) getAllChildren(root.right, right);
+    leaves = left.concat(right);
+    return [cy.collection(leaves)];
+  } else if (k === 1) {
+    // cut at root
+    if (root.value) {
+      // leaf node
+      return [cy.collection(root.value)];
+    } else {
+      if (root.left) getAllChildren(root.left, left);
+      if (root.right) getAllChildren(root.right, right);
+      return [cy.collection(left), cy.collection(right)];
+    }
+  } else {
+    if (root.value) {
+      return [cy.collection(root.value)];
+    } else {
+      if (root.left) left = buildClustersFromTree(root.left, k - 1, cy);
+      if (root.right) right = buildClustersFromTree(root.right, k - 1, cy);
+      return left.concat(right);
+    }
+  }
+};
+/* eslint-enable */
 
-                        // Elements used to detect size change should not be injected for non responsive charts.
-                        // See https://github.com/chartjs/Chart.js/issues/2210
-                        if (me.options.responsive) {
-                            listener = function() {
-                                me.resize();
-                            };
 
-                            platform.addEventListener(me, 'resize', listener);
-                            listeners.resize = listener;
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    unbindEvents: function() {
-                        var me = this;
-                        var listeners = me._listeners;
-                        if (!listeners) {
-                            return;
-                        }
+var hierarchicalClustering = function hierarchicalClustering(options) {
+  var cy = this.cy();
+  var nodes = this.nodes(); // Set parameters of algorithm: linkage type, distance metric, etc.
 
-                        delete me._listeners;
-                        helpers$1.each(listeners, function(listener, type) {
-                            platform.removeEventListener(me, type, listener);
-                        });
-                    },
+  var opts = setOptions$2(options);
+  var attrs = opts.attributes;
 
-                    updateHoverStyle: function(elements, mode, enabled) {
-                        var prefix = enabled ? 'set' : 'remove';
-                        var element, i, ilen;
+  var getDist = function getDist(n1, n2) {
+    return clusteringDistance(opts.distance, attrs.length, function (i) {
+      return attrs[i](n1);
+    }, function (i) {
+      return attrs[i](n2);
+    }, n1, n2);
+  }; // Begin hierarchical algorithm
 
-                        for (i = 0, ilen = elements.length; i < ilen; ++i) {
-                            element = elements[i];
-                            if (element) {
-                                this.getDatasetMeta(element._datasetIndex).controller[prefix + 'HoverStyle'](element);
-                            }
-                        }
 
-                        if (mode === 'dataset') {
-                            this.getDatasetMeta(elements[0]._datasetIndex).controller['_' + prefix + 'DatasetHoverStyle']();
-                        }
-                    },
+  var clusters = [];
+  var dists = []; // distances between each pair of clusters
 
-                    /**
-                     * @private
-                     */
-                    eventHandler: function(e) {
-                        var me = this;
-                        var tooltip = me.tooltip;
+  var mins = []; // closest cluster for each cluster
 
-                        if (core_plugins.notify(me, 'beforeEvent', [e]) === false) {
-                            return;
-                        }
+  var index = []; // hash of all clusters by key
+  // In agglomerative (bottom-up) clustering, each node starts as its own cluster
 
-                        // Buffer any update calls so that renders do not occur
-                        me._bufferedRender = true;
-                        me._bufferedRequest = null;
-
-                        var changed = me.handleEvent(e);
-                        // for smooth tooltip animations issue #4989
-                        // the tooltip should be the source of change
-                        // Animation check workaround:
-                        // tooltip._start will be null when tooltip isn't animating
-                        if (tooltip) {
-                            changed = tooltip._start
-                                ? tooltip.handleEvent(e)
-                                : changed | tooltip.handleEvent(e);
-                        }
+  for (var n = 0; n < nodes.length; n++) {
+    var cluster = {
+      value: opts.mode === 'dendrogram' ? nodes[n] : [nodes[n]],
+      key: n,
+      index: n
+    };
+    clusters[n] = cluster;
+    index[n] = cluster;
+    dists[n] = [];
+    mins[n] = 0;
+  } // Calculate the distance between each pair of clusters
 
-                        core_plugins.notify(me, 'afterEvent', [e]);
-
-                        var bufferedRequest = me._bufferedRequest;
-                        if (bufferedRequest) {
-                            // If we have an update that was triggered, we need to do a normal render
-                            me.render(bufferedRequest);
-                        } else if (changed && !me.animating) {
-                            // If entering, leaving, or changing elements, animate the change via pivot
-                            me.stop();
-
-                            // We only need to render at this point. Updating will cause scales to be
-                            // recomputed generating flicker & using more memory than necessary.
-                            me.render({
-                                duration: me.options.hover.animationDuration,
-                                lazy: true
-                            });
-                        }
 
-                        me._bufferedRender = false;
-                        me._bufferedRequest = null;
-
-                        return me;
-                    },
-
-                    /**
-                     * Handle an event
-                     * @private
-                     * @param {IEvent} event the event to handle
-                     * @return {boolean} true if the chart needs to re-render
-                     */
-                    handleEvent: function(e) {
-                        var me = this;
-                        var options = me.options || {};
-                        var hoverOptions = options.hover;
-                        var changed = false;
-
-                        me.lastActive = me.lastActive || [];
-
-                        // Find Active Elements for hover and tooltips
-                        if (e.type === 'mouseout') {
-                            me.active = [];
-                        } else {
-                            me.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);
-                        }
+  for (var i = 0; i < clusters.length; i++) {
+    for (var j = 0; j <= i; j++) {
+      var dist = void 0;
 
-                        // Invoke onHover hook
-                        // Need to call with native event here to not break backwards compatibility
-                        helpers$1.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);
+      if (opts.mode === 'dendrogram') {
+        // modes store cluster values differently
+        dist = i === j ? Infinity : getDist(clusters[i].value, clusters[j].value);
+      } else {
+        dist = i === j ? Infinity : getDist(clusters[i].value[0], clusters[j].value[0]);
+      }
 
-                        if (e.type === 'mouseup' || e.type === 'click') {
-                            if (options.onClick) {
-                                // Use e.native here for backwards compatibility
-                                options.onClick.call(me, e.native, me.active);
-                            }
-                        }
+      dists[i][j] = dist;
+      dists[j][i] = dist;
 
-                        // Remove styling for last active (even if it may still be active)
-                        if (me.lastActive.length) {
-                            me.updateHoverStyle(me.lastActive, hoverOptions.mode, false);
-                        }
+      if (dist < dists[i][mins[i]]) {
+        mins[i] = j; // Cache mins: closest cluster to cluster i is cluster j
+      }
+    }
+  } // Find the closest pair of clusters and merge them into a single cluster.
+  // Update distances between new cluster and each of the old clusters, and loop until threshold reached.
 
-                        // Built in hover styling
-                        if (me.active.length && hoverOptions.mode) {
-                            me.updateHoverStyle(me.active, hoverOptions.mode, true);
-                        }
 
-                        changed = !helpers$1.arrayEquals(me.active, me.lastActive);
+  var merged = mergeClosest(clusters, index, dists, mins, opts);
 
-                        // Remember Last Actives
-                        me.lastActive = me.active;
+  while (merged) {
+    merged = mergeClosest(clusters, index, dists, mins, opts);
+  }
 
-                        return changed;
-                    }
-                });
+  var retClusters; // Dendrogram mode builds the hierarchy and adds intermediary nodes + edges
+  // in addition to returning the clusters.
+
+  if (opts.mode === 'dendrogram') {
+    retClusters = buildClustersFromTree(clusters[0], opts.dendrogramDepth, cy);
+    if (opts.addDendrogram) buildDendrogram(clusters[0], cy);
+  } else {
+    // Regular mode simply returns the clusters
+    retClusters = new Array(clusters.length);
+    clusters.forEach(function (cluster, i) {
+      // Clean up meta data used for clustering
+      cluster.key = cluster.index = null;
+      retClusters[i] = cy.collection(cluster.value);
+    });
+  }
 
-                /**
-                 * NOTE(SB) We actually don't use this container anymore but we need to keep it
-                 * for backward compatibility. Though, it can still be useful for plugins that
-                 * would need to work on multiple charts?!
-                 */
-                Chart.instances = {};
+  return retClusters;
+};
 
-                var core_controller = Chart;
+var hierarchicalClustering$1 = {
+  hierarchicalClustering: hierarchicalClustering,
+  hca: hierarchicalClustering
+};
 
-// DEPRECATIONS
+// Implemented by Zoe Xi @zoexi for GSOC 2016
+var defaults$7 = defaults({
+  distance: 'euclidean',
+  // distance metric to compare attributes between two nodes
+  preference: 'median',
+  // suitability of a data point to serve as an exemplar
+  damping: 0.8,
+  // damping factor between [0.5, 1)
+  maxIterations: 1000,
+  // max number of iterations to run
+  minIterations: 100,
+  // min number of iterations to run in order for clustering to stop
+  attributes: [// functions to quantify the similarity between any two points
+    // e.g. node => node.data('weight')
+  ]
+});
+
+var setOptions$3 = function setOptions(options) {
+  var dmp = options.damping;
+  var pref = options.preference;
+
+  if (!(0.5 <= dmp && dmp < 1)) {
+    error("Damping must range on [0.5, 1).  Got: ".concat(dmp));
+  }
 
-                /**
-                 * Provided for backward compatibility, use Chart instead.
-                 * @class Chart.Controller
-                 * @deprecated since version 2.6
-                 * @todo remove at version 3
-                 * @private
-                 */
-                Chart.Controller = Chart;
-
-                /**
-                 * Provided for backward compatibility, not available anymore.
-                 * @namespace Chart
-                 * @deprecated since version 2.8
-                 * @todo remove at version 3
-                 * @private
-                 */
-                Chart.types = {};
-
-                /**
-                 * Provided for backward compatibility, not available anymore.
-                 * @namespace Chart.helpers.configMerge
-                 * @deprecated since version 2.8.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers$1.configMerge = mergeConfig;
-
-                /**
-                 * Provided for backward compatibility, not available anymore.
-                 * @namespace Chart.helpers.scaleMerge
-                 * @deprecated since version 2.8.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                helpers$1.scaleMerge = mergeScaleConfig;
-
-                var core_helpers = function() {
-
-                    // -- Basic js utility methods
-
-                    helpers$1.where = function(collection, filterCallback) {
-                        if (helpers$1.isArray(collection) && Array.prototype.filter) {
-                            return collection.filter(filterCallback);
-                        }
-                        var filtered = [];
+  var validPrefs = ['median', 'mean', 'min', 'max'];
 
-                        helpers$1.each(collection, function(item) {
-                            if (filterCallback(item)) {
-                                filtered.push(item);
-                            }
-                        });
+  if (!(validPrefs.some(function (v) {
+    return v === pref;
+  }) || number(pref))) {
+    error("Preference must be one of [".concat(validPrefs.map(function (p) {
+      return "'".concat(p, "'");
+    }).join(', '), "] or a number.  Got: ").concat(pref));
+  }
 
-                        return filtered;
-                    };
-                    helpers$1.findIndex = Array.prototype.findIndex ?
-                        function(array, callback, scope) {
-                            return array.findIndex(callback, scope);
-                        } :
-                        function(array, callback, scope) {
-                            scope = scope === undefined ? array : scope;
-                            for (var i = 0, ilen = array.length; i < ilen; ++i) {
-                                if (callback.call(scope, array[i], i, array)) {
-                                    return i;
-                                }
-                            }
-                            return -1;
-                        };
-                    helpers$1.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {
-                        // Default to start of the array
-                        if (helpers$1.isNullOrUndef(startIndex)) {
-                            startIndex = -1;
-                        }
-                        for (var i = startIndex + 1; i < arrayToSearch.length; i++) {
-                            var currentItem = arrayToSearch[i];
-                            if (filterCallback(currentItem)) {
-                                return currentItem;
-                            }
-                        }
-                    };
-                    helpers$1.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {
-                        // Default to end of the array
-                        if (helpers$1.isNullOrUndef(startIndex)) {
-                            startIndex = arrayToSearch.length;
-                        }
-                        for (var i = startIndex - 1; i >= 0; i--) {
-                            var currentItem = arrayToSearch[i];
-                            if (filterCallback(currentItem)) {
-                                return currentItem;
-                            }
-                        }
-                    };
-
-                    // -- Math methods
-                    helpers$1.isNumber = function(n) {
-                        return !isNaN(parseFloat(n)) && isFinite(n);
-                    };
-                    helpers$1.almostEquals = function(x, y, epsilon) {
-                        return Math.abs(x - y) < epsilon;
-                    };
-                    helpers$1.almostWhole = function(x, epsilon) {
-                        var rounded = Math.round(x);
-                        return ((rounded - epsilon) <= x) && ((rounded + epsilon) >= x);
-                    };
-                    helpers$1.max = function(array) {
-                        return array.reduce(function(max, value) {
-                            if (!isNaN(value)) {
-                                return Math.max(max, value);
-                            }
-                            return max;
-                        }, Number.NEGATIVE_INFINITY);
-                    };
-                    helpers$1.min = function(array) {
-                        return array.reduce(function(min, value) {
-                            if (!isNaN(value)) {
-                                return Math.min(min, value);
-                            }
-                            return min;
-                        }, Number.POSITIVE_INFINITY);
-                    };
-                    helpers$1.sign = Math.sign ?
-                        function(x) {
-                            return Math.sign(x);
-                        } :
-                        function(x) {
-                            x = +x; // convert to a number
-                            if (x === 0 || isNaN(x)) {
-                                return x;
-                            }
-                            return x > 0 ? 1 : -1;
-                        };
-                    helpers$1.toRadians = function(degrees) {
-                        return degrees * (Math.PI / 180);
-                    };
-                    helpers$1.toDegrees = function(radians) {
-                        return radians * (180 / Math.PI);
-                    };
-
-                    /**
-                     * Returns the number of decimal places
-                     * i.e. the number of digits after the decimal point, of the value of this Number.
-                     * @param {number} x - A number.
-                     * @returns {number} The number of decimal places.
-                     * @private
-                     */
-                    helpers$1._decimalPlaces = function(x) {
-                        if (!helpers$1.isFinite(x)) {
-                            return;
-                        }
-                        var e = 1;
-                        var p = 0;
-                        while (Math.round(x * e) / e !== x) {
-                            e *= 10;
-                            p++;
-                        }
-                        return p;
-                    };
+  return defaults$7(options);
+};
+/* eslint-enable */
+
+
+var getSimilarity$1 = function getSimilarity(type, n1, n2, attributes) {
+  var attr = function attr(n, i) {
+    return attributes[i](n);
+  }; // nb negative because similarity should have an inverse relationship to distance
+
+
+  return -clusteringDistance(type, attributes.length, function (i) {
+    return attr(n1, i);
+  }, function (i) {
+    return attr(n2, i);
+  }, n1, n2);
+};
+
+var getPreference = function getPreference(S, preference) {
+  // larger preference = greater # of clusters
+  var p = null;
+
+  if (preference === 'median') {
+    p = median(S);
+  } else if (preference === 'mean') {
+    p = mean(S);
+  } else if (preference === 'min') {
+    p = min(S);
+  } else if (preference === 'max') {
+    p = max(S);
+  } else {
+    // Custom preference number, as set by user
+    p = preference;
+  }
 
-                    // Gets the angle from vertical upright to the point about a centre.
-                    helpers$1.getAngleFromPoint = function(centrePoint, anglePoint) {
-                        var distanceFromXCenter = anglePoint.x - centrePoint.x;
-                        var distanceFromYCenter = anglePoint.y - centrePoint.y;
-                        var radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);
+  return p;
+};
 
-                        var angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);
+var findExemplars = function findExemplars(n, R, A) {
+  var indices = [];
 
-                        if (angle < (-0.5 * Math.PI)) {
-                            angle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]
-                        }
+  for (var i = 0; i < n; i++) {
+    if (R[i * n + i] + A[i * n + i] > 0) {
+      indices.push(i);
+    }
+  }
 
-                        return {
-                            angle: angle,
-                            distance: radialDistanceFromCenter
-                        };
-                    };
-                    helpers$1.distanceBetweenPoints = function(pt1, pt2) {
-                        return Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));
-                    };
-
-                    /**
-                     * Provided for backward compatibility, not available anymore
-                     * @function Chart.helpers.aliasPixel
-                     * @deprecated since version 2.8.0
-                     * @todo remove at version 3
-                     */
-                    helpers$1.aliasPixel = function(pixelWidth) {
-                        return (pixelWidth % 2 === 0) ? 0 : 0.5;
-                    };
-
-                    /**
-                     * Returns the aligned pixel value to avoid anti-aliasing blur
-                     * @param {Chart} chart - The chart instance.
-                     * @param {number} pixel - A pixel value.
-                     * @param {number} width - The width of the element.
-                     * @returns {number} The aligned pixel value.
-                     * @private
-                     */
-                    helpers$1._alignPixel = function(chart, pixel, width) {
-                        var devicePixelRatio = chart.currentDevicePixelRatio;
-                        var halfWidth = width / 2;
-                        return Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;
-                    };
-
-                    helpers$1.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {
-                        // Props to Rob Spencer at scaled innovation for his post on splining between points
-                        // http://scaledinnovation.com/analytics/splines/aboutSplines.html
-
-                        // This function must also respect "skipped" points
-
-                        var previous = firstPoint.skip ? middlePoint : firstPoint;
-                        var current = middlePoint;
-                        var next = afterPoint.skip ? middlePoint : afterPoint;
-
-                        var d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));
-                        var d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));
-
-                        var s01 = d01 / (d01 + d12);
-                        var s12 = d12 / (d01 + d12);
-
-                        // If all points are the same, s01 & s02 will be inf
-                        s01 = isNaN(s01) ? 0 : s01;
-                        s12 = isNaN(s12) ? 0 : s12;
-
-                        var fa = t * s01; // scaling factor for triangle Ta
-                        var fb = t * s12;
-
-                        return {
-                            previous: {
-                                x: current.x - fa * (next.x - previous.x),
-                                y: current.y - fa * (next.y - previous.y)
-                            },
-                            next: {
-                                x: current.x + fb * (next.x - previous.x),
-                                y: current.y + fb * (next.y - previous.y)
-                            }
-                        };
-                    };
-                    helpers$1.EPSILON = Number.EPSILON || 1e-14;
-                    helpers$1.splineCurveMonotone = function(points) {
-                        // This function calculates Bézier control points in a similar way than |splineCurve|,
-                        // but preserves monotonicity of the provided data and ensures no local extremums are added
-                        // between the dataset discrete points due to the interpolation.
-                        // See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation
-
-                        var pointsWithTangents = (points || []).map(function(point) {
-                            return {
-                                model: point._model,
-                                deltaK: 0,
-                                mK: 0
-                            };
-                        });
+  return indices;
+};
 
-                        // Calculate slopes (deltaK) and initialize tangents (mK)
-                        var pointsLen = pointsWithTangents.length;
-                        var i, pointBefore, pointCurrent, pointAfter;
-                        for (i = 0; i < pointsLen; ++i) {
-                            pointCurrent = pointsWithTangents[i];
-                            if (pointCurrent.model.skip) {
-                                continue;
-                            }
+var assignClusters = function assignClusters(n, S, exemplars) {
+  var clusters = [];
 
-                            pointBefore = i > 0 ? pointsWithTangents[i - 1] : null;
-                            pointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;
-                            if (pointAfter && !pointAfter.model.skip) {
-                                var slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);
+  for (var i = 0; i < n; i++) {
+    var index = -1;
+    var max = -Infinity;
 
-                                // In the case of two points that appear at the same x pixel, slopeDeltaX is 0
-                                pointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;
-                            }
+    for (var ei = 0; ei < exemplars.length; ei++) {
+      var e = exemplars[ei];
 
-                            if (!pointBefore || pointBefore.model.skip) {
-                                pointCurrent.mK = pointCurrent.deltaK;
-                            } else if (!pointAfter || pointAfter.model.skip) {
-                                pointCurrent.mK = pointBefore.deltaK;
-                            } else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {
-                                pointCurrent.mK = 0;
-                            } else {
-                                pointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;
-                            }
-                        }
+      if (S[i * n + e] > max) {
+        index = e;
+        max = S[i * n + e];
+      }
+    }
 
-                        // Adjust tangents to ensure monotonic properties
-                        var alphaK, betaK, tauK, squaredMagnitude;
-                        for (i = 0; i < pointsLen - 1; ++i) {
-                            pointCurrent = pointsWithTangents[i];
-                            pointAfter = pointsWithTangents[i + 1];
-                            if (pointCurrent.model.skip || pointAfter.model.skip) {
-                                continue;
-                            }
+    if (index > 0) {
+      clusters.push(index);
+    }
+  }
 
-                            if (helpers$1.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {
-                                pointCurrent.mK = pointAfter.mK = 0;
-                                continue;
-                            }
+  for (var _ei = 0; _ei < exemplars.length; _ei++) {
+    clusters[exemplars[_ei]] = exemplars[_ei];
+  }
 
-                            alphaK = pointCurrent.mK / pointCurrent.deltaK;
-                            betaK = pointAfter.mK / pointCurrent.deltaK;
-                            squaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);
-                            if (squaredMagnitude <= 9) {
-                                continue;
-                            }
+  return clusters;
+};
 
-                            tauK = 3 / Math.sqrt(squaredMagnitude);
-                            pointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;
-                            pointAfter.mK = betaK * tauK * pointCurrent.deltaK;
-                        }
+var assign$2 = function assign(n, S, exemplars) {
+  var clusters = assignClusters(n, S, exemplars);
 
-                        // Compute control points
-                        var deltaX;
-                        for (i = 0; i < pointsLen; ++i) {
-                            pointCurrent = pointsWithTangents[i];
-                            if (pointCurrent.model.skip) {
-                                continue;
-                            }
+  for (var ei = 0; ei < exemplars.length; ei++) {
+    var ii = [];
 
-                            pointBefore = i > 0 ? pointsWithTangents[i - 1] : null;
-                            pointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;
-                            if (pointBefore && !pointBefore.model.skip) {
-                                deltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;
-                                pointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;
-                                pointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;
-                            }
-                            if (pointAfter && !pointAfter.model.skip) {
-                                deltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;
-                                pointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;
-                                pointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;
-                            }
-                        }
-                    };
-                    helpers$1.nextItem = function(collection, index, loop) {
-                        if (loop) {
-                            return index >= collection.length - 1 ? collection[0] : collection[index + 1];
-                        }
-                        return index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];
-                    };
-                    helpers$1.previousItem = function(collection, index, loop) {
-                        if (loop) {
-                            return index <= 0 ? collection[collection.length - 1] : collection[index - 1];
-                        }
-                        return index <= 0 ? collection[0] : collection[index - 1];
-                    };
-                    // Implementation of the nice number algorithm used in determining where axis labels will go
-                    helpers$1.niceNum = function(range, round) {
-                        var exponent = Math.floor(helpers$1.log10(range));
-                        var fraction = range / Math.pow(10, exponent);
-                        var niceFraction;
-
-                        if (round) {
-                            if (fraction < 1.5) {
-                                niceFraction = 1;
-                            } else if (fraction < 3) {
-                                niceFraction = 2;
-                            } else if (fraction < 7) {
-                                niceFraction = 5;
-                            } else {
-                                niceFraction = 10;
-                            }
-                        } else if (fraction <= 1.0) {
-                            niceFraction = 1;
-                        } else if (fraction <= 2) {
-                            niceFraction = 2;
-                        } else if (fraction <= 5) {
-                            niceFraction = 5;
-                        } else {
-                            niceFraction = 10;
-                        }
+    for (var c = 0; c < clusters.length; c++) {
+      if (clusters[c] === exemplars[ei]) {
+        ii.push(c);
+      }
+    }
 
-                        return niceFraction * Math.pow(10, exponent);
-                    };
-                    // Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
-                    helpers$1.requestAnimFrame = (function() {
-                        if (typeof window === 'undefined') {
-                            return function(callback) {
-                                callback();
-                            };
-                        }
-                        return window.requestAnimationFrame ||
-                            window.webkitRequestAnimationFrame ||
-                            window.mozRequestAnimationFrame ||
-                            window.oRequestAnimationFrame ||
-                            window.msRequestAnimationFrame ||
-                            function(callback) {
-                                return window.setTimeout(callback, 1000 / 60);
-                            };
-                    }());
-                    // -- DOM methods
-                    helpers$1.getRelativePosition = function(evt, chart) {
-                        var mouseX, mouseY;
-                        var e = evt.originalEvent || evt;
-                        var canvas = evt.target || evt.srcElement;
-                        var boundingRect = canvas.getBoundingClientRect();
-
-                        var touches = e.touches;
-                        if (touches && touches.length > 0) {
-                            mouseX = touches[0].clientX;
-                            mouseY = touches[0].clientY;
-
-                        } else {
-                            mouseX = e.clientX;
-                            mouseY = e.clientY;
-                        }
+    var maxI = -1;
+    var maxSum = -Infinity;
 
-                        // Scale mouse coordinates into canvas coordinates
-                        // by following the pattern laid out by 'jerryj' in the comments of
-                        // https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
-                        var paddingLeft = parseFloat(helpers$1.getStyle(canvas, 'padding-left'));
-                        var paddingTop = parseFloat(helpers$1.getStyle(canvas, 'padding-top'));
-                        var paddingRight = parseFloat(helpers$1.getStyle(canvas, 'padding-right'));
-                        var paddingBottom = parseFloat(helpers$1.getStyle(canvas, 'padding-bottom'));
-                        var width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;
-                        var height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;
-
-                        // We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However
-                        // the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here
-                        mouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);
-                        mouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);
-
-                        return {
-                            x: mouseX,
-                            y: mouseY
-                        };
-
-                    };
-
-                    // Private helper function to convert max-width/max-height values that may be percentages into a number
-                    function parseMaxStyle(styleValue, node, parentProperty) {
-                        var valueInPixels;
-                        if (typeof styleValue === 'string') {
-                            valueInPixels = parseInt(styleValue, 10);
-
-                            if (styleValue.indexOf('%') !== -1) {
-                                // percentage * size in dimension
-                                valueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];
-                            }
-                        } else {
-                            valueInPixels = styleValue;
-                        }
+    for (var i = 0; i < ii.length; i++) {
+      var sum = 0;
 
-                        return valueInPixels;
-                    }
+      for (var j = 0; j < ii.length; j++) {
+        sum += S[ii[j] * n + ii[i]];
+      }
 
-                    /**
-                     * Returns if the given value contains an effective constraint.
-                     * @private
-                     */
-                    function isConstrainedValue(value) {
-                        return value !== undefined && value !== null && value !== 'none';
-                    }
+      if (sum > maxSum) {
+        maxI = i;
+        maxSum = sum;
+      }
+    }
 
-                    /**
-                     * Returns the max width or height of the given DOM node in a cross-browser compatible fashion
-                     * @param {HTMLElement} domNode - the node to check the constraint on
-                     * @param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')
-                     * @param {string} percentageProperty - property of parent to use when calculating width as a percentage
-                     * @see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}
-                     */
-                    function getConstraintDimension(domNode, maxStyle, percentageProperty) {
-                        var view = document.defaultView;
-                        var parentNode = helpers$1._getParentNode(domNode);
-                        var constrainedNode = view.getComputedStyle(domNode)[maxStyle];
-                        var constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];
-                        var hasCNode = isConstrainedValue(constrainedNode);
-                        var hasCContainer = isConstrainedValue(constrainedContainer);
-                        var infinity = Number.POSITIVE_INFINITY;
-
-                        if (hasCNode || hasCContainer) {
-                            return Math.min(
-                                hasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,
-                                hasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);
-                        }
+    exemplars[ei] = ii[maxI];
+  }
 
-                        return 'none';
-                    }
-                    // returns Number or undefined if no constraint
-                    helpers$1.getConstraintWidth = function(domNode) {
-                        return getConstraintDimension(domNode, 'max-width', 'clientWidth');
-                    };
-                    // returns Number or undefined if no constraint
-                    helpers$1.getConstraintHeight = function(domNode) {
-                        return getConstraintDimension(domNode, 'max-height', 'clientHeight');
-                    };
-                    /**
-                     * @private
-                     */
-                    helpers$1._calculatePadding = function(container, padding, parentDimension) {
-                        padding = helpers$1.getStyle(container, padding);
-
-                        return padding.indexOf('%') > -1 ? parentDimension * parseInt(padding, 10) / 100 : parseInt(padding, 10);
-                    };
-                    /**
-                     * @private
-                     */
-                    helpers$1._getParentNode = function(domNode) {
-                        var parent = domNode.parentNode;
-                        if (parent && parent.toString() === '[object ShadowRoot]') {
-                            parent = parent.host;
-                        }
-                        return parent;
-                    };
-                    helpers$1.getMaximumWidth = function(domNode) {
-                        var container = helpers$1._getParentNode(domNode);
-                        if (!container) {
-                            return domNode.clientWidth;
-                        }
+  clusters = assignClusters(n, S, exemplars);
+  return clusters;
+};
 
-                        var clientWidth = container.clientWidth;
-                        var paddingLeft = helpers$1._calculatePadding(container, 'padding-left', clientWidth);
-                        var paddingRight = helpers$1._calculatePadding(container, 'padding-right', clientWidth);
-
-                        var w = clientWidth - paddingLeft - paddingRight;
-                        var cw = helpers$1.getConstraintWidth(domNode);
-                        return isNaN(cw) ? w : Math.min(w, cw);
-                    };
-                    helpers$1.getMaximumHeight = function(domNode) {
-                        var container = helpers$1._getParentNode(domNode);
-                        if (!container) {
-                            return domNode.clientHeight;
-                        }
+var affinityPropagation = function affinityPropagation(options) {
+  var cy = this.cy();
+  var nodes = this.nodes();
+  var opts = setOptions$3(options); // Map each node to its position in node array
 
-                        var clientHeight = container.clientHeight;
-                        var paddingTop = helpers$1._calculatePadding(container, 'padding-top', clientHeight);
-                        var paddingBottom = helpers$1._calculatePadding(container, 'padding-bottom', clientHeight);
-
-                        var h = clientHeight - paddingTop - paddingBottom;
-                        var ch = helpers$1.getConstraintHeight(domNode);
-                        return isNaN(ch) ? h : Math.min(h, ch);
-                    };
-                    helpers$1.getStyle = function(el, property) {
-                        return el.currentStyle ?
-                            el.currentStyle[property] :
-                            document.defaultView.getComputedStyle(el, null).getPropertyValue(property);
-                    };
-                    helpers$1.retinaScale = function(chart, forceRatio) {
-                        var pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;
-                        if (pixelRatio === 1) {
-                            return;
-                        }
+  var id2position = {};
 
-                        var canvas = chart.canvas;
-                        var height = chart.height;
-                        var width = chart.width;
+  for (var i = 0; i < nodes.length; i++) {
+    id2position[nodes[i].id()] = i;
+  } // Begin affinity propagation algorithm
 
-                        canvas.height = height * pixelRatio;
-                        canvas.width = width * pixelRatio;
-                        chart.ctx.scale(pixelRatio, pixelRatio);
 
-                        // If no style has been set on the canvas, the render size is used as display size,
-                        // making the chart visually bigger, so let's enforce it to the "correct" values.
-                        // See https://github.com/chartjs/Chart.js/issues/3575
-                        if (!canvas.style.height && !canvas.style.width) {
-                            canvas.style.height = height + 'px';
-                            canvas.style.width = width + 'px';
-                        }
-                    };
-                    // -- Canvas methods
-                    helpers$1.fontString = function(pixelSize, fontStyle, fontFamily) {
-                        return fontStyle + ' ' + pixelSize + 'px ' + fontFamily;
-                    };
-                    helpers$1.longestText = function(ctx, font, arrayOfThings, cache) {
-                        cache = cache || {};
-                        var data = cache.data = cache.data || {};
-                        var gc = cache.garbageCollect = cache.garbageCollect || [];
-
-                        if (cache.font !== font) {
-                            data = cache.data = {};
-                            gc = cache.garbageCollect = [];
-                            cache.font = font;
-                        }
+  var n; // number of data points
 
-                        ctx.font = font;
-                        var longest = 0;
-                        var ilen = arrayOfThings.length;
-                        var i, j, jlen, thing, nestedThing;
-                        for (i = 0; i < ilen; i++) {
-                            thing = arrayOfThings[i];
-
-                            // Undefined strings and arrays should not be measured
-                            if (thing !== undefined && thing !== null && helpers$1.isArray(thing) !== true) {
-                                longest = helpers$1.measureText(ctx, data, gc, longest, thing);
-                            } else if (helpers$1.isArray(thing)) {
-                                // if it is an array lets measure each element
-                                // to do maybe simplify this function a bit so we can do this more recursively?
-                                for (j = 0, jlen = thing.length; j < jlen; j++) {
-                                    nestedThing = thing[j];
-                                    // Undefined strings and arrays should not be measured
-                                    if (nestedThing !== undefined && nestedThing !== null && !helpers$1.isArray(nestedThing)) {
-                                        longest = helpers$1.measureText(ctx, data, gc, longest, nestedThing);
-                                    }
-                                }
-                            }
-                        }
+  var n2; // size of matrices
 
-                        var gcLen = gc.length / 2;
-                        if (gcLen > arrayOfThings.length) {
-                            for (i = 0; i < gcLen; i++) {
-                                delete data[gc[i]];
-                            }
-                            gc.splice(0, gcLen);
-                        }
-                        return longest;
-                    };
-                    helpers$1.measureText = function(ctx, data, gc, longest, string) {
-                        var textWidth = data[string];
-                        if (!textWidth) {
-                            textWidth = data[string] = ctx.measureText(string).width;
-                            gc.push(string);
-                        }
-                        if (textWidth > longest) {
-                            longest = textWidth;
-                        }
-                        return longest;
-                    };
-
-                    /**
-                     * @deprecated
-                     */
-                    helpers$1.numberOfLabelLines = function(arrayOfThings) {
-                        var numberOfLines = 1;
-                        helpers$1.each(arrayOfThings, function(thing) {
-                            if (helpers$1.isArray(thing)) {
-                                if (thing.length > numberOfLines) {
-                                    numberOfLines = thing.length;
-                                }
-                            }
-                        });
-                        return numberOfLines;
-                    };
-
-                    helpers$1.color = !chartjsColor ?
-                        function(value) {
-                            console.error('Color.js not found!');
-                            return value;
-                        } :
-                        function(value) {
-                            /* global CanvasGradient */
-                            if (value instanceof CanvasGradient) {
-                                value = core_defaults.global.defaultColor;
-                            }
+  var S; // similarity matrix (1D array)
 
-                            return chartjsColor(value);
-                        };
+  var p; // preference/suitability of a data point to serve as an exemplar
 
-                    helpers$1.getHoverColor = function(colorValue) {
-                        /* global CanvasPattern */
-                        return (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?
-                            colorValue :
-                            helpers$1.color(colorValue).saturate(0.5).darken(0.1).rgbString();
-                    };
-                };
+  var R; // responsibility matrix (1D array)
 
-                function abstract() {
-                    throw new Error(
-                        'This method is not implemented: either no adapter can ' +
-                        'be found or an incomplete integration was provided.'
-                    );
-                }
+  var A; // availability matrix (1D array)
 
-                /**
-                 * Date adapter (current used by the time scale)
-                 * @namespace Chart._adapters._date
-                 * @memberof Chart._adapters
-                 * @private
-                 */
-
-                /**
-                 * Currently supported unit string values.
-                 * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')}
-                 * @memberof Chart._adapters._date
-                 * @name Unit
-                 */
-
-                /**
-                 * @class
-                 */
-                function DateAdapter(options) {
-                    this.options = options || {};
-                }
+  n = nodes.length;
+  n2 = n * n; // Initialize and build S similarity matrix
 
-                helpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ {
-                    /**
-                     * Returns a map of time formats for the supported formatting units defined
-                     * in Unit as well as 'datetime' representing a detailed date/time string.
-                     * @returns {{string: string}}
-                     */
-                    formats: abstract,
-
-                    /**
-                     * Parses the given `value` and return the associated timestamp.
-                     * @param {any} value - the value to parse (usually comes from the data)
-                     * @param {string} [format] - the expected data format
-                     * @returns {(number|null)}
-                     * @function
-                     */
-                    parse: abstract,
-
-                    /**
-                     * Returns the formatted date in the specified `format` for a given `timestamp`.
-                     * @param {number} timestamp - the timestamp to format
-                     * @param {string} format - the date/time token
-                     * @return {string}
-                     * @function
-                     */
-                    format: abstract,
-
-                    /**
-                     * Adds the specified `amount` of `unit` to the given `timestamp`.
-                     * @param {number} timestamp - the input timestamp
-                     * @param {number} amount - the amount to add
-                     * @param {Unit} unit - the unit as string
-                     * @return {number}
-                     * @function
-                     */
-                    add: abstract,
-
-                    /**
-                     * Returns the number of `unit` between the given timestamps.
-                     * @param {number} max - the input timestamp (reference)
-                     * @param {number} min - the timestamp to substract
-                     * @param {Unit} unit - the unit as string
-                     * @return {number}
-                     * @function
-                     */
-                    diff: abstract,
-
-                    /**
-                     * Returns start of `unit` for the given `timestamp`.
-                     * @param {number} timestamp - the input timestamp
-                     * @param {Unit} unit - the unit as string
-                     * @param {number} [weekday] - the ISO day of the week with 1 being Monday
-                     * and 7 being Sunday (only needed if param *unit* is `isoWeek`).
-                     * @function
-                     */
-                    startOf: abstract,
-
-                    /**
-                     * Returns end of `unit` for the given `timestamp`.
-                     * @param {number} timestamp - the input timestamp
-                     * @param {Unit} unit - the unit as string
-                     * @function
-                     */
-                    endOf: abstract,
-
-                    // DEPRECATIONS
-
-                    /**
-                     * Provided for backward compatibility for scale.getValueForPixel(),
-                     * this method should be overridden only by the moment adapter.
-                     * @deprecated since version 2.8.0
-                     * @todo remove at version 3
-                     * @private
-                     */
-                    _create: function(value) {
-                        return value;
-                    }
-                });
+  S = new Array(n2);
 
-                DateAdapter.override = function(members) {
-                    helpers$1.extend(DateAdapter.prototype, members);
-                };
+  for (var _i = 0; _i < n2; _i++) {
+    S[_i] = -Infinity; // for cases where two data points shouldn't be linked together
+  }
 
-                var _date = DateAdapter;
+  for (var _i2 = 0; _i2 < n; _i2++) {
+    for (var j = 0; j < n; j++) {
+      if (_i2 !== j) {
+        S[_i2 * n + j] = getSimilarity$1(opts.distance, nodes[_i2], nodes[j], opts.attributes);
+      }
+    }
+  } // Place preferences on the diagonal of S
 
-                var core_adapters = {
-                    _date: _date
-                };
 
-                /**
-                 * Namespace to hold static tick generation functions
-                 * @namespace Chart.Ticks
-                 */
-                var core_ticks = {
-                    /**
-                     * Namespace to hold formatters for different types of ticks
-                     * @namespace Chart.Ticks.formatters
-                     */
-                    formatters: {
-                        /**
-                         * Formatter for value labels
-                         * @method Chart.Ticks.formatters.values
-                         * @param value the value to display
-                         * @return {string|string[]} the label to display
-                         */
-                        values: function(value) {
-                            return helpers$1.isArray(value) ? value : '' + value;
-                        },
-
-                        /**
-                         * Formatter for linear numeric ticks
-                         * @method Chart.Ticks.formatters.linear
-                         * @param tickValue {number} the value to be formatted
-                         * @param index {number} the position of the tickValue parameter in the ticks array
-                         * @param ticks {number[]} the list of ticks being converted
-                         * @return {string} string representation of the tickValue parameter
-                         */
-                        linear: function(tickValue, index, ticks) {
-                            // If we have lots of ticks, don't use the ones
-                            var delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];
-
-                            // If we have a number like 2.5 as the delta, figure out how many decimal places we need
-                            if (Math.abs(delta) > 1) {
-                                if (tickValue !== Math.floor(tickValue)) {
-                                    // not an integer
-                                    delta = tickValue - Math.floor(tickValue);
-                                }
-                            }
+  p = getPreference(S, opts.preference);
 
-                            var logDelta = helpers$1.log10(Math.abs(delta));
-                            var tickString = '';
-
-                            if (tickValue !== 0) {
-                                var maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));
-                                if (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation
-                                    var logTick = helpers$1.log10(Math.abs(tickValue));
-                                    var numExponential = Math.floor(logTick) - Math.floor(logDelta);
-                                    numExponential = Math.max(Math.min(numExponential, 20), 0);
-                                    tickString = tickValue.toExponential(numExponential);
-                                } else {
-                                    var numDecimal = -1 * Math.floor(logDelta);
-                                    numDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places
-                                    tickString = tickValue.toFixed(numDecimal);
-                                }
-                            } else {
-                                tickString = '0'; // never show decimal places for 0
-                            }
+  for (var _i3 = 0; _i3 < n; _i3++) {
+    S[_i3 * n + _i3] = p;
+  } // Initialize R responsibility matrix
 
-                            return tickString;
-                        },
 
-                        logarithmic: function(tickValue, index, ticks) {
-                            var remain = tickValue / (Math.pow(10, Math.floor(helpers$1.log10(tickValue))));
+  R = new Array(n2);
 
-                            if (tickValue === 0) {
-                                return '0';
-                            } else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {
-                                return tickValue.toExponential();
-                            }
-                            return '';
-                        }
-                    }
-                };
+  for (var _i4 = 0; _i4 < n2; _i4++) {
+    R[_i4] = 0.0;
+  } // Initialize A availability matrix
 
-                var isArray = helpers$1.isArray;
-                var isNullOrUndef = helpers$1.isNullOrUndef;
-                var valueOrDefault$a = helpers$1.valueOrDefault;
-                var valueAtIndexOrDefault = helpers$1.valueAtIndexOrDefault;
-
-                core_defaults._set('scale', {
-                    display: true,
-                    position: 'left',
-                    offset: false,
-
-                    // grid line settings
-                    gridLines: {
-                        display: true,
-                        color: 'rgba(0,0,0,0.1)',
-                        lineWidth: 1,
-                        drawBorder: true,
-                        drawOnChartArea: true,
-                        drawTicks: true,
-                        tickMarkLength: 10,
-                        zeroLineWidth: 1,
-                        zeroLineColor: 'rgba(0,0,0,0.25)',
-                        zeroLineBorderDash: [],
-                        zeroLineBorderDashOffset: 0.0,
-                        offsetGridLines: false,
-                        borderDash: [],
-                        borderDashOffset: 0.0
-                    },
-
-                    // scale label
-                    scaleLabel: {
-                        // display property
-                        display: false,
-
-                        // actual label
-                        labelString: '',
-
-                        // top/bottom padding
-                        padding: {
-                            top: 4,
-                            bottom: 4
-                        }
-                    },
-
-                    // label settings
-                    ticks: {
-                        beginAtZero: false,
-                        minRotation: 0,
-                        maxRotation: 50,
-                        mirror: false,
-                        padding: 0,
-                        reverse: false,
-                        display: true,
-                        autoSkip: true,
-                        autoSkipPadding: 0,
-                        labelOffset: 0,
-                        // We pass through arrays to be rendered as multiline labels, we convert Others to strings here.
-                        callback: core_ticks.formatters.values,
-                        minor: {},
-                        major: {}
-                    }
-                });
 
-                /** Returns a new array containing numItems from arr */
-                function sample(arr, numItems) {
-                    var result = [];
-                    var increment = arr.length / numItems;
-                    var i = 0;
-                    var len = arr.length;
+  A = new Array(n2);
 
-                    for (; i < len; i += increment) {
-                        result.push(arr[Math.floor(i)]);
-                    }
-                    return result;
-                }
+  for (var _i5 = 0; _i5 < n2; _i5++) {
+    A[_i5] = 0.0;
+  }
 
-                function getPixelForGridLine(scale, index, offsetGridLines) {
-                    var length = scale.getTicks().length;
-                    var validIndex = Math.min(index, length - 1);
-                    var lineValue = scale.getPixelForTick(validIndex);
-                    var start = scale._startPixel;
-                    var end = scale._endPixel;
-                    var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.
-                    var offset;
-
-                    if (offsetGridLines) {
-                        if (length === 1) {
-                            offset = Math.max(lineValue - start, end - lineValue);
-                        } else if (index === 0) {
-                            offset = (scale.getPixelForTick(1) - lineValue) / 2;
-                        } else {
-                            offset = (lineValue - scale.getPixelForTick(validIndex - 1)) / 2;
-                        }
-                        lineValue += validIndex < index ? offset : -offset;
+  var old = new Array(n);
+  var Rp = new Array(n);
+  var se = new Array(n);
 
-                        // Return undefined if the pixel is out of the range
-                        if (lineValue < start - epsilon || lineValue > end + epsilon) {
-                            return;
-                        }
-                    }
-                    return lineValue;
-                }
+  for (var _i6 = 0; _i6 < n; _i6++) {
+    old[_i6] = 0.0;
+    Rp[_i6] = 0.0;
+    se[_i6] = 0;
+  }
 
-                function garbageCollect(caches, length) {
-                    helpers$1.each(caches, function(cache) {
-                        var gc = cache.gc;
-                        var gcLen = gc.length / 2;
-                        var i;
-                        if (gcLen > length) {
-                            for (i = 0; i < gcLen; ++i) {
-                                delete cache.data[gc[i]];
-                            }
-                            gc.splice(0, gcLen);
-                        }
-                    });
-                }
+  var e = new Array(n * opts.minIterations);
 
-                /**
-                 * Returns {width, height, offset} objects for the first, last, widest, highest tick
-                 * labels where offset indicates the anchor point offset from the top in pixels.
-                 */
-                function computeLabelSizes(ctx, tickFonts, ticks, caches) {
-                    var length = ticks.length;
-                    var widths = [];
-                    var heights = [];
-                    var offsets = [];
-                    var i, j, jlen, label, tickFont, fontString, cache, lineHeight, width, height, nestedLabel, widest, highest;
-
-                    for (i = 0; i < length; ++i) {
-                        label = ticks[i].label;
-                        tickFont = ticks[i].major ? tickFonts.major : tickFonts.minor;
-                        ctx.font = fontString = tickFont.string;
-                        cache = caches[fontString] = caches[fontString] || {data: {}, gc: []};
-                        lineHeight = tickFont.lineHeight;
-                        width = height = 0;
-                        // Undefined labels and arrays should not be measured
-                        if (!isNullOrUndef(label) && !isArray(label)) {
-                            width = helpers$1.measureText(ctx, cache.data, cache.gc, width, label);
-                            height = lineHeight;
-                        } else if (isArray(label)) {
-                            // if it is an array let's measure each element
-                            for (j = 0, jlen = label.length; j < jlen; ++j) {
-                                nestedLabel = label[j];
-                                // Undefined labels and arrays should not be measured
-                                if (!isNullOrUndef(nestedLabel) && !isArray(nestedLabel)) {
-                                    width = helpers$1.measureText(ctx, cache.data, cache.gc, width, nestedLabel);
-                                    height += lineHeight;
-                                }
-                            }
-                        }
-                        widths.push(width);
-                        heights.push(height);
-                        offsets.push(lineHeight / 2);
-                    }
-                    garbageCollect(caches, length);
+  for (var _i7 = 0; _i7 < e.length; _i7++) {
+    e[_i7] = 0;
+  }
 
-                    widest = widths.indexOf(Math.max.apply(null, widths));
-                    highest = heights.indexOf(Math.max.apply(null, heights));
+  var iter;
+
+  for (iter = 0; iter < opts.maxIterations; iter++) {
+    // main algorithmic loop
+    // Update R responsibility matrix
+    for (var _i8 = 0; _i8 < n; _i8++) {
+      var max = -Infinity,
+          max2 = -Infinity,
+          maxI = -1,
+          AS = 0.0;
+
+      for (var _j = 0; _j < n; _j++) {
+        old[_j] = R[_i8 * n + _j];
+        AS = A[_i8 * n + _j] + S[_i8 * n + _j];
+
+        if (AS >= max) {
+          max2 = max;
+          max = AS;
+          maxI = _j;
+        } else if (AS > max2) {
+          max2 = AS;
+        }
+      }
 
-                    function valueAt(idx) {
-                        return {
-                            width: widths[idx] || 0,
-                            height: heights[idx] || 0,
-                            offset: offsets[idx] || 0
-                        };
-                    }
+      for (var _j2 = 0; _j2 < n; _j2++) {
+        R[_i8 * n + _j2] = (1 - opts.damping) * (S[_i8 * n + _j2] - max) + opts.damping * old[_j2];
+      }
 
-                    return {
-                        first: valueAt(0),
-                        last: valueAt(length - 1),
-                        widest: valueAt(widest),
-                        highest: valueAt(highest)
-                    };
-                }
+      R[_i8 * n + maxI] = (1 - opts.damping) * (S[_i8 * n + maxI] - max2) + opts.damping * old[maxI];
+    } // Update A availability matrix
 
-                function getTickMarkLength(options) {
-                    return options.drawTicks ? options.tickMarkLength : 0;
-                }
 
-                function getScaleLabelHeight(options) {
-                    var font, padding;
+    for (var _i9 = 0; _i9 < n; _i9++) {
+      var sum = 0;
 
-                    if (!options.display) {
-                        return 0;
-                    }
+      for (var _j3 = 0; _j3 < n; _j3++) {
+        old[_j3] = A[_j3 * n + _i9];
+        Rp[_j3] = Math.max(0, R[_j3 * n + _i9]);
+        sum += Rp[_j3];
+      }
 
-                    font = helpers$1.options._parseFont(options);
-                    padding = helpers$1.options.toPadding(options.padding);
+      sum -= Rp[_i9];
+      Rp[_i9] = R[_i9 * n + _i9];
+      sum += Rp[_i9];
 
-                    return font.lineHeight + padding.height;
-                }
+      for (var _j4 = 0; _j4 < n; _j4++) {
+        A[_j4 * n + _i9] = (1 - opts.damping) * Math.min(0, sum - Rp[_j4]) + opts.damping * old[_j4];
+      }
 
-                function parseFontOptions(options, nestedOpts) {
-                    return helpers$1.extend(helpers$1.options._parseFont({
-                        fontFamily: valueOrDefault$a(nestedOpts.fontFamily, options.fontFamily),
-                        fontSize: valueOrDefault$a(nestedOpts.fontSize, options.fontSize),
-                        fontStyle: valueOrDefault$a(nestedOpts.fontStyle, options.fontStyle),
-                        lineHeight: valueOrDefault$a(nestedOpts.lineHeight, options.lineHeight)
-                    }), {
-                        color: helpers$1.options.resolve([nestedOpts.fontColor, options.fontColor, core_defaults.global.defaultFontColor])
-                    });
-                }
+      A[_i9 * n + _i9] = (1 - opts.damping) * (sum - Rp[_i9]) + opts.damping * old[_i9];
+    } // Check for convergence
 
-                function parseTickFontOptions(options) {
-                    var minor = parseFontOptions(options, options.minor);
-                    var major = options.major.enabled ? parseFontOptions(options, options.major) : minor;
 
-                    return {minor: minor, major: major};
-                }
+    var K = 0;
 
-                function nonSkipped(ticksToFilter) {
-                    var filtered = [];
-                    var item, index, len;
-                    for (index = 0, len = ticksToFilter.length; index < len; ++index) {
-                        item = ticksToFilter[index];
-                        if (typeof item._index !== 'undefined') {
-                            filtered.push(item);
-                        }
-                    }
-                    return filtered;
-                }
+    for (var _i10 = 0; _i10 < n; _i10++) {
+      var E = A[_i10 * n + _i10] + R[_i10 * n + _i10] > 0 ? 1 : 0;
+      e[iter % opts.minIterations * n + _i10] = E;
+      K += E;
+    }
 
-                function getEvenSpacing(arr) {
-                    var len = arr.length;
-                    var i, diff;
+    if (K > 0 && (iter >= opts.minIterations - 1 || iter == opts.maxIterations - 1)) {
+      var _sum = 0;
 
-                    if (len < 2) {
-                        return false;
-                    }
+      for (var _i11 = 0; _i11 < n; _i11++) {
+        se[_i11] = 0;
 
-                    for (diff = arr[0], i = 1; i < len; ++i) {
-                        if (arr[i] - arr[i - 1] !== diff) {
-                            return false;
-                        }
-                    }
-                    return diff;
-                }
+        for (var _j5 = 0; _j5 < opts.minIterations; _j5++) {
+          se[_i11] += e[_j5 * n + _i11];
+        }
 
-                function calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {
-                    var evenMajorSpacing = getEvenSpacing(majorIndices);
-                    var spacing = (ticks.length - 1) / ticksLimit;
-                    var factors, factor, i, ilen;
+        if (se[_i11] === 0 || se[_i11] === opts.minIterations) {
+          _sum++;
+        }
+      }
 
-                    // If the major ticks are evenly spaced apart, place the minor ticks
-                    // so that they divide the major ticks into even chunks
-                    if (!evenMajorSpacing) {
-                        return Math.max(spacing, 1);
-                    }
+      if (_sum === n) {
+        // then we have convergence
+        break;
+      }
+    }
+  } // Identify exemplars (cluster centers)
 
-                    factors = helpers$1.math._factorize(evenMajorSpacing);
-                    for (i = 0, ilen = factors.length - 1; i < ilen; i++) {
-                        factor = factors[i];
-                        if (factor > spacing) {
-                            return factor;
-                        }
-                    }
-                    return Math.max(spacing, 1);
-                }
 
-                function getMajorIndices(ticks) {
-                    var result = [];
-                    var i, ilen;
-                    for (i = 0, ilen = ticks.length; i < ilen; i++) {
-                        if (ticks[i].major) {
-                            result.push(i);
-                        }
-                    }
-                    return result;
-                }
+  var exemplarsIndices = findExemplars(n, R, A); // Assign nodes to clusters
 
-                function skipMajors(ticks, majorIndices, spacing) {
-                    var count = 0;
-                    var next = majorIndices[0];
-                    var i, tick;
-
-                    spacing = Math.ceil(spacing);
-                    for (i = 0; i < ticks.length; i++) {
-                        tick = ticks[i];
-                        if (i === next) {
-                            tick._index = i;
-                            count++;
-                            next = majorIndices[count * spacing];
-                        } else {
-                            delete tick.label;
-                        }
-                    }
-                }
+  var clusterIndices = assign$2(n, S, exemplarsIndices);
+  var clusters = {};
 
-                function skip(ticks, spacing, majorStart, majorEnd) {
-                    var start = valueOrDefault$a(majorStart, 0);
-                    var end = Math.min(valueOrDefault$a(majorEnd, ticks.length), ticks.length);
-                    var count = 0;
-                    var length, i, tick, next;
+  for (var c = 0; c < exemplarsIndices.length; c++) {
+    clusters[exemplarsIndices[c]] = [];
+  }
 
-                    spacing = Math.ceil(spacing);
-                    if (majorEnd) {
-                        length = majorEnd - majorStart;
-                        spacing = length / Math.floor(length / spacing);
-                    }
+  for (var _i12 = 0; _i12 < nodes.length; _i12++) {
+    var pos = id2position[nodes[_i12].id()];
 
-                    next = start;
+    var clusterIndex = clusterIndices[pos];
 
-                    while (next < 0) {
-                        count++;
-                        next = Math.round(start + count * spacing);
-                    }
+    if (clusterIndex != null) {
+      // the node may have not been assigned a cluster if no valid attributes were specified
+      clusters[clusterIndex].push(nodes[_i12]);
+    }
+  }
 
-                    for (i = Math.max(start, 0); i < end; i++) {
-                        tick = ticks[i];
-                        if (i === next) {
-                            tick._index = i;
-                            count++;
-                            next = Math.round(start + count * spacing);
-                        } else {
-                            delete tick.label;
-                        }
-                    }
-                }
+  var retClusters = new Array(exemplarsIndices.length);
 
-                var Scale = core_element.extend({
-
-                    zeroLineIndex: 0,
-
-                    /**
-                     * Get the padding needed for the scale
-                     * @method getPadding
-                     * @private
-                     * @returns {Padding} the necessary padding
-                     */
-                    getPadding: function() {
-                        var me = this;
-                        return {
-                            left: me.paddingLeft || 0,
-                            top: me.paddingTop || 0,
-                            right: me.paddingRight || 0,
-                            bottom: me.paddingBottom || 0
-                        };
-                    },
-
-                    /**
-                     * Returns the scale tick objects ({label, major})
-                     * @since 2.7
-                     */
-                    getTicks: function() {
-                        return this._ticks;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getLabels: function() {
-                        var data = this.chart.data;
-                        return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
-                    },
-
-                    // These methods are ordered by lifecyle. Utilities then follow.
-                    // Any function defined here is inherited by all scale types.
-                    // Any function can be extended by the scale type
-
-                    /**
-                     * Provided for backward compatibility, not available anymore
-                     * @function Chart.Scale.mergeTicksOptions
-                     * @deprecated since version 2.8.0
-                     * @todo remove at version 3
-                     */
-                    mergeTicksOptions: function() {
-                        // noop
-                    },
-
-                    beforeUpdate: function() {
-                        helpers$1.callback(this.options.beforeUpdate, [this]);
-                    },
-
-                    /**
-                     * @param {number} maxWidth - the max width in pixels
-                     * @param {number} maxHeight - the max height in pixels
-                     * @param {object} margins - the space between the edge of the other scales and edge of the chart
-                     *   This space comes from two sources:
-                     *     - padding - space that's required to show the labels at the edges of the scale
-                     *     - thickness of scales or legends in another orientation
-                     */
-                    update: function(maxWidth, maxHeight, margins) {
-                        var me = this;
-                        var tickOpts = me.options.ticks;
-                        var sampleSize = tickOpts.sampleSize;
-                        var i, ilen, labels, ticks, samplingEnabled;
-
-                        // Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
-                        me.beforeUpdate();
-
-                        // Absorb the master measurements
-                        me.maxWidth = maxWidth;
-                        me.maxHeight = maxHeight;
-                        me.margins = helpers$1.extend({
-                            left: 0,
-                            right: 0,
-                            top: 0,
-                            bottom: 0
-                        }, margins);
-
-                        me._ticks = null;
-                        me.ticks = null;
-                        me._labelSizes = null;
-                        me._maxLabelLines = 0;
-                        me.longestLabelWidth = 0;
-                        me.longestTextCache = me.longestTextCache || {};
-                        me._gridLineItems = null;
-                        me._labelItems = null;
-
-                        // Dimensions
-                        me.beforeSetDimensions();
-                        me.setDimensions();
-                        me.afterSetDimensions();
-
-                        // Data min/max
-                        me.beforeDataLimits();
-                        me.determineDataLimits();
-                        me.afterDataLimits();
-
-                        // Ticks - `this.ticks` is now DEPRECATED!
-                        // Internal ticks are now stored as objects in the PRIVATE `this._ticks` member
-                        // and must not be accessed directly from outside this class. `this.ticks` being
-                        // around for long time and not marked as private, we can't change its structure
-                        // without unexpected breaking changes. If you need to access the scale ticks,
-                        // use scale.getTicks() instead.
-
-                        me.beforeBuildTicks();
-
-                        // New implementations should return an array of objects but for BACKWARD COMPAT,
-                        // we still support no return (`this.ticks` internally set by calling this method).
-                        ticks = me.buildTicks() || [];
-
-                        // Allow modification of ticks in callback.
-                        ticks = me.afterBuildTicks(ticks) || ticks;
-
-                        // Ensure ticks contains ticks in new tick format
-                        if ((!ticks || !ticks.length) && me.ticks) {
-                            ticks = [];
-                            for (i = 0, ilen = me.ticks.length; i < ilen; ++i) {
-                                ticks.push({
-                                    value: me.ticks[i],
-                                    major: false
-                                });
-                            }
-                        }
+  for (var _c = 0; _c < exemplarsIndices.length; _c++) {
+    retClusters[_c] = cy.collection(clusters[exemplarsIndices[_c]]);
+  }
 
-                        me._ticks = ticks;
+  return retClusters;
+};
+
+var affinityPropagation$1 = {
+  affinityPropagation: affinityPropagation,
+  ap: affinityPropagation
+};
+
+var hierholzerDefaults = defaults({
+  root: undefined,
+  directed: false
+});
+var elesfn$b = {
+  hierholzer: function hierholzer(options) {
+    if (!plainObject(options)) {
+      var args = arguments;
+      options = {
+        root: args[0],
+        directed: args[1]
+      };
+    }
 
-                        // Compute tick rotation and fit using a sampled subset of labels
-                        // We generally don't need to compute the size of every single label for determining scale size
-                        samplingEnabled = sampleSize < ticks.length;
-                        labels = me._convertTicksToLabels(samplingEnabled ? sample(ticks, sampleSize) : ticks);
+    var _hierholzerDefaults = hierholzerDefaults(options),
+        root = _hierholzerDefaults.root,
+        directed = _hierholzerDefaults.directed;
+
+    var eles = this;
+    var dflag = false;
+    var oddIn;
+    var oddOut;
+    var startVertex;
+    if (root) startVertex = string(root) ? this.filter(root)[0].id() : root[0].id();
+    var nodes = {};
+    var edges = {};
+
+    if (directed) {
+      eles.forEach(function (ele) {
+        var id = ele.id();
+
+        if (ele.isNode()) {
+          var ind = ele.indegree(true);
+          var outd = ele.outdegree(true);
+          var d1 = ind - outd;
+          var d2 = outd - ind;
+
+          if (d1 == 1) {
+            if (oddIn) dflag = true;else oddIn = id;
+          } else if (d2 == 1) {
+            if (oddOut) dflag = true;else oddOut = id;
+          } else if (d2 > 1 || d1 > 1) {
+            dflag = true;
+          }
+
+          nodes[id] = [];
+          ele.outgoers().forEach(function (e) {
+            if (e.isEdge()) nodes[id].push(e.id());
+          });
+        } else {
+          edges[id] = [undefined, ele.target().id()];
+        }
+      });
+    } else {
+      eles.forEach(function (ele) {
+        var id = ele.id();
+
+        if (ele.isNode()) {
+          var d = ele.degree(true);
+
+          if (d % 2) {
+            if (!oddIn) oddIn = id;else if (!oddOut) oddOut = id;else dflag = true;
+          }
+
+          nodes[id] = [];
+          ele.connectedEdges().forEach(function (e) {
+            return nodes[id].push(e.id());
+          });
+        } else {
+          edges[id] = [ele.source().id(), ele.target().id()];
+        }
+      });
+    }
 
-                        // _configure is called twice, once here, once from core.controller.updateLayout.
-                        // Here we haven't been positioned yet, but dimensions are correct.
-                        // Variables set in _configure are needed for calculateTickRotation, and
-                        // it's ok that coordinates are not correct there, only dimensions matter.
-                        me._configure();
+    var result = {
+      found: false,
+      trail: undefined
+    };
+    if (dflag) return result;else if (oddOut && oddIn) {
+      if (directed) {
+        if (startVertex && oddOut != startVertex) {
+          return result;
+        }
 
-                        // Tick Rotation
-                        me.beforeCalculateTickRotation();
-                        me.calculateTickRotation();
-                        me.afterCalculateTickRotation();
+        startVertex = oddOut;
+      } else {
+        if (startVertex && oddOut != startVertex && oddIn != startVertex) {
+          return result;
+        } else if (!startVertex) {
+          startVertex = oddOut;
+        }
+      }
+    } else {
+      if (!startVertex) startVertex = eles[0].id();
+    }
 
-                        me.beforeFit();
-                        me.fit();
-                        me.afterFit();
+    var walk = function walk(v) {
+      var currentNode = v;
+      var subtour = [v];
+      var adj, adjTail, adjHead;
+
+      while (nodes[currentNode].length) {
+        adj = nodes[currentNode].shift();
+        adjTail = edges[adj][0];
+        adjHead = edges[adj][1];
+
+        if (currentNode != adjHead) {
+          nodes[adjHead] = nodes[adjHead].filter(function (e) {
+            return e != adj;
+          });
+          currentNode = adjHead;
+        } else if (!directed && currentNode != adjTail) {
+          nodes[adjTail] = nodes[adjTail].filter(function (e) {
+            return e != adj;
+          });
+          currentNode = adjTail;
+        }
 
-                        // Auto-skip
-                        me._ticksToDraw = tickOpts.display && (tickOpts.autoSkip || tickOpts.source === 'auto') ? me._autoSkip(ticks) : ticks;
+        subtour.unshift(adj);
+        subtour.unshift(currentNode);
+      }
 
-                        if (samplingEnabled) {
-                            // Generate labels using all non-skipped ticks
-                            labels = me._convertTicksToLabels(me._ticksToDraw);
-                        }
+      return subtour;
+    };
 
-                        me.ticks = labels;   // BACKWARD COMPATIBILITY
-
-                        // IMPORTANT: after this point, we consider that `this.ticks` will NEVER change!
-
-                        me.afterUpdate();
-
-                        // TODO(v3): remove minSize as a public property and return value from all layout boxes. It is unused
-                        // make maxWidth and maxHeight private
-                        return me.minSize;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _configure: function() {
-                        var me = this;
-                        var reversePixels = me.options.ticks.reverse;
-                        var startPixel, endPixel;
-
-                        if (me.isHorizontal()) {
-                            startPixel = me.left;
-                            endPixel = me.right;
-                        } else {
-                            startPixel = me.top;
-                            endPixel = me.bottom;
-                            // by default vertical scales are from bottom to top, so pixels are reversed
-                            reversePixels = !reversePixels;
-                        }
-                        me._startPixel = startPixel;
-                        me._endPixel = endPixel;
-                        me._reversePixels = reversePixels;
-                        me._length = endPixel - startPixel;
-                    },
-
-                    afterUpdate: function() {
-                        helpers$1.callback(this.options.afterUpdate, [this]);
-                    },
-
-                    //
-
-                    beforeSetDimensions: function() {
-                        helpers$1.callback(this.options.beforeSetDimensions, [this]);
-                    },
-                    setDimensions: function() {
-                        var me = this;
-                        // Set the unconstrained dimension before label rotation
-                        if (me.isHorizontal()) {
-                            // Reset position before calculating rotation
-                            me.width = me.maxWidth;
-                            me.left = 0;
-                            me.right = me.width;
-                        } else {
-                            me.height = me.maxHeight;
-
-                            // Reset position before calculating rotation
-                            me.top = 0;
-                            me.bottom = me.height;
-                        }
+    var trail = [];
+    var subtour = [];
+    subtour = walk(startVertex);
 
-                        // Reset padding
-                        me.paddingLeft = 0;
-                        me.paddingTop = 0;
-                        me.paddingRight = 0;
-                        me.paddingBottom = 0;
-                    },
-                    afterSetDimensions: function() {
-                        helpers$1.callback(this.options.afterSetDimensions, [this]);
-                    },
-
-                    // Data limits
-                    beforeDataLimits: function() {
-                        helpers$1.callback(this.options.beforeDataLimits, [this]);
-                    },
-                    determineDataLimits: helpers$1.noop,
-                    afterDataLimits: function() {
-                        helpers$1.callback(this.options.afterDataLimits, [this]);
-                    },
-
-                    //
-                    beforeBuildTicks: function() {
-                        helpers$1.callback(this.options.beforeBuildTicks, [this]);
-                    },
-                    buildTicks: helpers$1.noop,
-                    afterBuildTicks: function(ticks) {
-                        var me = this;
-                        // ticks is empty for old axis implementations here
-                        if (isArray(ticks) && ticks.length) {
-                            return helpers$1.callback(me.options.afterBuildTicks, [me, ticks]);
-                        }
-                        // Support old implementations (that modified `this.ticks` directly in buildTicks)
-                        me.ticks = helpers$1.callback(me.options.afterBuildTicks, [me, me.ticks]) || me.ticks;
-                        return ticks;
-                    },
-
-                    beforeTickToLabelConversion: function() {
-                        helpers$1.callback(this.options.beforeTickToLabelConversion, [this]);
-                    },
-                    convertTicksToLabels: function() {
-                        var me = this;
-                        // Convert ticks to strings
-                        var tickOpts = me.options.ticks;
-                        me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);
-                    },
-                    afterTickToLabelConversion: function() {
-                        helpers$1.callback(this.options.afterTickToLabelConversion, [this]);
-                    },
-
-                    //
-
-                    beforeCalculateTickRotation: function() {
-                        helpers$1.callback(this.options.beforeCalculateTickRotation, [this]);
-                    },
-                    calculateTickRotation: function() {
-                        var me = this;
-                        var options = me.options;
-                        var tickOpts = options.ticks;
-                        var numTicks = me.getTicks().length;
-                        var minRotation = tickOpts.minRotation || 0;
-                        var maxRotation = tickOpts.maxRotation;
-                        var labelRotation = minRotation;
-                        var labelSizes, maxLabelWidth, maxLabelHeight, maxWidth, tickWidth, maxHeight, maxLabelDiagonal;
-
-                        if (!me._isVisible() || !tickOpts.display || minRotation >= maxRotation || numTicks <= 1 || !me.isHorizontal()) {
-                            me.labelRotation = minRotation;
-                            return;
-                        }
+    while (subtour.length != 1) {
+      if (nodes[subtour[0]].length == 0) {
+        trail.unshift(eles.getElementById(subtour.shift()));
+        trail.unshift(eles.getElementById(subtour.shift()));
+      } else {
+        subtour = walk(subtour.shift()).concat(subtour);
+      }
+    }
 
-                        labelSizes = me._getLabelSizes();
-                        maxLabelWidth = labelSizes.widest.width;
-                        maxLabelHeight = labelSizes.highest.height - labelSizes.highest.offset;
-
-                        // Estimate the width of each grid based on the canvas width, the maximum
-                        // label width and the number of tick intervals
-                        maxWidth = Math.min(me.maxWidth, me.chart.width - maxLabelWidth);
-                        tickWidth = options.offset ? me.maxWidth / numTicks : maxWidth / (numTicks - 1);
-
-                        // Allow 3 pixels x2 padding either side for label readability
-                        if (maxLabelWidth + 6 > tickWidth) {
-                            tickWidth = maxWidth / (numTicks - (options.offset ? 0.5 : 1));
-                            maxHeight = me.maxHeight - getTickMarkLength(options.gridLines)
-                                - tickOpts.padding - getScaleLabelHeight(options.scaleLabel);
-                            maxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);
-                            labelRotation = helpers$1.toDegrees(Math.min(
-                                Math.asin(Math.min((labelSizes.highest.height + 6) / tickWidth, 1)),
-                                Math.asin(Math.min(maxHeight / maxLabelDiagonal, 1)) - Math.asin(maxLabelHeight / maxLabelDiagonal)
-                            ));
-                            labelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));
-                        }
+    trail.unshift(eles.getElementById(subtour.shift())); // final node
 
-                        me.labelRotation = labelRotation;
-                    },
-                    afterCalculateTickRotation: function() {
-                        helpers$1.callback(this.options.afterCalculateTickRotation, [this]);
-                    },
-
-                    //
-
-                    beforeFit: function() {
-                        helpers$1.callback(this.options.beforeFit, [this]);
-                    },
-                    fit: function() {
-                        var me = this;
-                        // Reset
-                        var minSize = me.minSize = {
-                            width: 0,
-                            height: 0
-                        };
-
-                        var chart = me.chart;
-                        var opts = me.options;
-                        var tickOpts = opts.ticks;
-                        var scaleLabelOpts = opts.scaleLabel;
-                        var gridLineOpts = opts.gridLines;
-                        var display = me._isVisible();
-                        var isBottom = opts.position === 'bottom';
-                        var isHorizontal = me.isHorizontal();
-
-                        // Width
-                        if (isHorizontal) {
-                            minSize.width = me.maxWidth;
-                        } else if (display) {
-                            minSize.width = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);
-                        }
+    for (var d in nodes) {
+      if (nodes[d].length) {
+        return result;
+      }
+    }
 
-                        // height
-                        if (!isHorizontal) {
-                            minSize.height = me.maxHeight; // fill all the height
-                        } else if (display) {
-                            minSize.height = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);
-                        }
+    result.found = true;
+    result.trail = this.spawn(trail, true);
+    return result;
+  }
+};
+
+var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
+  var eles = this;
+  var nodes = {};
+  var id = 0;
+  var edgeCount = 0;
+  var components = [];
+  var stack = [];
+  var visitedEdges = {};
+
+  var buildComponent = function buildComponent(x, y) {
+    var i = stack.length - 1;
+    var cutset = [];
+    var component = eles.spawn();
+
+    while (stack[i].x != x || stack[i].y != y) {
+      cutset.push(stack.pop().edge);
+      i--;
+    }
 
-                        // Don't bother fitting the ticks if we are not showing the labels
-                        if (tickOpts.display && display) {
-                            var tickFonts = parseTickFontOptions(tickOpts);
-                            var labelSizes = me._getLabelSizes();
-                            var firstLabelSize = labelSizes.first;
-                            var lastLabelSize = labelSizes.last;
-                            var widestLabelSize = labelSizes.widest;
-                            var highestLabelSize = labelSizes.highest;
-                            var lineSpace = tickFonts.minor.lineHeight * 0.4;
-                            var tickPadding = tickOpts.padding;
-
-                            if (isHorizontal) {
-                                // A horizontal axis is more constrained by the height.
-                                var isRotated = me.labelRotation !== 0;
-                                var angleRadians = helpers$1.toRadians(me.labelRotation);
-                                var cosRotation = Math.cos(angleRadians);
-                                var sinRotation = Math.sin(angleRadians);
-
-                                var labelHeight = sinRotation * widestLabelSize.width
-                                    + cosRotation * (highestLabelSize.height - (isRotated ? highestLabelSize.offset : 0))
-                                    + (isRotated ? 0 : lineSpace); // padding
-
-                                minSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);
-
-                                var offsetLeft = me.getPixelForTick(0) - me.left;
-                                var offsetRight = me.right - me.getPixelForTick(me.getTicks().length - 1);
-                                var paddingLeft, paddingRight;
-
-                                // Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned
-                                // which means that the right padding is dominated by the font height
-                                if (isRotated) {
-                                    paddingLeft = isBottom ?
-                                        cosRotation * firstLabelSize.width + sinRotation * firstLabelSize.offset :
-                                        sinRotation * (firstLabelSize.height - firstLabelSize.offset);
-                                    paddingRight = isBottom ?
-                                        sinRotation * (lastLabelSize.height - lastLabelSize.offset) :
-                                        cosRotation * lastLabelSize.width + sinRotation * lastLabelSize.offset;
-                                } else {
-                                    paddingLeft = firstLabelSize.width / 2;
-                                    paddingRight = lastLabelSize.width / 2;
-                                }
-
-                                // Adjust padding taking into account changes in offsets
-                                // and add 3 px to move away from canvas edges
-                                me.paddingLeft = Math.max((paddingLeft - offsetLeft) * me.width / (me.width - offsetLeft), 0) + 3;
-                                me.paddingRight = Math.max((paddingRight - offsetRight) * me.width / (me.width - offsetRight), 0) + 3;
-                            } else {
-                                // A vertical axis is more constrained by the width. Labels are the
-                                // dominant factor here, so get that length first and account for padding
-                                var labelWidth = tickOpts.mirror ? 0 :
-                                    // use lineSpace for consistency with horizontal axis
-                                    // tickPadding is not implemented for horizontal
-                                    widestLabelSize.width + tickPadding + lineSpace;
-
-                                minSize.width = Math.min(me.maxWidth, minSize.width + labelWidth);
-
-                                me.paddingTop = firstLabelSize.height / 2;
-                                me.paddingBottom = lastLabelSize.height / 2;
-                            }
-                        }
+    cutset.push(stack.pop().edge);
+    cutset.forEach(function (edge) {
+      var connectedNodes = edge.connectedNodes().intersection(eles);
+      component.merge(edge);
+      connectedNodes.forEach(function (node) {
+        var nodeId = node.id();
+        var connectedEdges = node.connectedEdges().intersection(eles);
+        component.merge(node);
+
+        if (!nodes[nodeId].cutVertex) {
+          component.merge(connectedEdges);
+        } else {
+          component.merge(connectedEdges.filter(function (edge) {
+            return edge.isLoop();
+          }));
+        }
+      });
+    });
+    components.push(component);
+  };
+
+  var biconnectedSearch = function biconnectedSearch(root, currentNode, parent) {
+    if (root === parent) edgeCount += 1;
+    nodes[currentNode] = {
+      id: id,
+      low: id++,
+      cutVertex: false
+    };
+    var edges = eles.getElementById(currentNode).connectedEdges().intersection(eles);
+
+    if (edges.size() === 0) {
+      components.push(eles.spawn(eles.getElementById(currentNode)));
+    } else {
+      var sourceId, targetId, otherNodeId, edgeId;
+      edges.forEach(function (edge) {
+        sourceId = edge.source().id();
+        targetId = edge.target().id();
+        otherNodeId = sourceId === currentNode ? targetId : sourceId;
+
+        if (otherNodeId !== parent) {
+          edgeId = edge.id();
+
+          if (!visitedEdges[edgeId]) {
+            visitedEdges[edgeId] = true;
+            stack.push({
+              x: currentNode,
+              y: otherNodeId,
+              edge: edge
+            });
+          }
 
-                        me.handleMargins();
+          if (!(otherNodeId in nodes)) {
+            biconnectedSearch(root, otherNodeId, currentNode);
+            nodes[currentNode].low = Math.min(nodes[currentNode].low, nodes[otherNodeId].low);
 
-                        if (isHorizontal) {
-                            me.width = me._length = chart.width - me.margins.left - me.margins.right;
-                            me.height = minSize.height;
-                        } else {
-                            me.width = minSize.width;
-                            me.height = me._length = chart.height - me.margins.top - me.margins.bottom;
-                        }
-                    },
-
-                    /**
-                     * Handle margins and padding interactions
-                     * @private
-                     */
-                    handleMargins: function() {
-                        var me = this;
-                        if (me.margins) {
-                            me.margins.left = Math.max(me.paddingLeft, me.margins.left);
-                            me.margins.top = Math.max(me.paddingTop, me.margins.top);
-                            me.margins.right = Math.max(me.paddingRight, me.margins.right);
-                            me.margins.bottom = Math.max(me.paddingBottom, me.margins.bottom);
-                        }
-                    },
-
-                    afterFit: function() {
-                        helpers$1.callback(this.options.afterFit, [this]);
-                    },
-
-                    // Shared Methods
-                    isHorizontal: function() {
-                        var pos = this.options.position;
-                        return pos === 'top' || pos === 'bottom';
-                    },
-                    isFullWidth: function() {
-                        return this.options.fullWidth;
-                    },
-
-                    // Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not
-                    getRightValue: function(rawValue) {
-                        // Null and undefined values first
-                        if (isNullOrUndef(rawValue)) {
-                            return NaN;
-                        }
-                        // isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values
-                        if ((typeof rawValue === 'number' || rawValue instanceof Number) && !isFinite(rawValue)) {
-                            return NaN;
-                        }
+            if (nodes[currentNode].id <= nodes[otherNodeId].low) {
+              nodes[currentNode].cutVertex = true;
+              buildComponent(currentNode, otherNodeId);
+            }
+          } else {
+            nodes[currentNode].low = Math.min(nodes[currentNode].low, nodes[otherNodeId].id);
+          }
+        }
+      });
+    }
+  };
 
-                        // If it is in fact an object, dive in one more level
-                        if (rawValue) {
-                            if (this.isHorizontal()) {
-                                if (rawValue.x !== undefined) {
-                                    return this.getRightValue(rawValue.x);
-                                }
-                            } else if (rawValue.y !== undefined) {
-                                return this.getRightValue(rawValue.y);
-                            }
-                        }
-
-                        // Value is good, return it
-                        return rawValue;
-                    },
-
-                    _convertTicksToLabels: function(ticks) {
-                        var me = this;
-                        var labels, i, ilen;
-
-                        me.ticks = ticks.map(function(tick) {
-                            return tick.value;
-                        });
-
-                        me.beforeTickToLabelConversion();
-
-                        // New implementations should return the formatted tick labels but for BACKWARD
-                        // COMPAT, we still support no return (`this.ticks` internally changed by calling
-                        // this method and supposed to contain only string values).
-                        labels = me.convertTicksToLabels(ticks) || me.ticks;
-
-                        me.afterTickToLabelConversion();
-
-                        // BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)
-                        for (i = 0, ilen = ticks.length; i < ilen; ++i) {
-                            ticks[i].label = labels[i];
-                        }
-
-                        return labels;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getLabelSizes: function() {
-                        var me = this;
-                        var labelSizes = me._labelSizes;
-
-                        if (!labelSizes) {
-                            me._labelSizes = labelSizes = computeLabelSizes(me.ctx, parseTickFontOptions(me.options.ticks), me.getTicks(), me.longestTextCache);
-                            me.longestLabelWidth = labelSizes.widest.width;
-                        }
-
-                        return labelSizes;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _parseValue: function(value) {
-                        var start, end, min, max;
-
-                        if (isArray(value)) {
-                            start = +this.getRightValue(value[0]);
-                            end = +this.getRightValue(value[1]);
-                            min = Math.min(start, end);
-                            max = Math.max(start, end);
-                        } else {
-                            value = +this.getRightValue(value);
-                            start = undefined;
-                            end = value;
-                            min = value;
-                            max = value;
-                        }
+  eles.forEach(function (ele) {
+    if (ele.isNode()) {
+      var nodeId = ele.id();
 
-                        return {
-                            min: min,
-                            max: max,
-                            start: start,
-                            end: end
-                        };
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getScaleLabel: function(rawValue) {
-                        var v = this._parseValue(rawValue);
-                        if (v.start !== undefined) {
-                            return '[' + v.start + ', ' + v.end + ']';
-                        }
-
-                        return +this.getRightValue(rawValue);
-                    },
-
-                    /**
-                     * Used to get the value to display in the tooltip for the data at the given index
-                     * @param index
-                     * @param datasetIndex
-                     */
-                    getLabelForIndex: helpers$1.noop,
-
-                    /**
-                     * Returns the location of the given data point. Value can either be an index or a numerical value
-                     * The coordinate (0, 0) is at the upper-left corner of the canvas
-                     * @param value
-                     * @param index
-                     * @param datasetIndex
-                     */
-                    getPixelForValue: helpers$1.noop,
-
-                    /**
-                     * Used to get the data value from a given pixel. This is the inverse of getPixelForValue
-                     * The coordinate (0, 0) is at the upper-left corner of the canvas
-                     * @param pixel
-                     */
-                    getValueForPixel: helpers$1.noop,
-
-                    /**
-                     * Returns the location of the tick at the given index
-                     * The coordinate (0, 0) is at the upper-left corner of the canvas
-                     */
-                    getPixelForTick: function(index) {
-                        var me = this;
-                        var offset = me.options.offset;
-                        var numTicks = me._ticks.length;
-                        var tickWidth = 1 / Math.max(numTicks - (offset ? 0 : 1), 1);
-
-                        return index < 0 || index > numTicks - 1
-                            ? null
-                            : me.getPixelForDecimal(index * tickWidth + (offset ? tickWidth / 2 : 0));
-                    },
-
-                    /**
-                     * Utility for getting the pixel location of a percentage of scale
-                     * The coordinate (0, 0) is at the upper-left corner of the canvas
-                     */
-                    getPixelForDecimal: function(decimal) {
-                        var me = this;
-
-                        if (me._reversePixels) {
-                            decimal = 1 - decimal;
-                        }
-
-                        return me._startPixel + decimal * me._length;
-                    },
-
-                    getDecimalForPixel: function(pixel) {
-                        var decimal = (pixel - this._startPixel) / this._length;
-                        return this._reversePixels ? 1 - decimal : decimal;
-                    },
-
-                    /**
-                     * Returns the pixel for the minimum chart value
-                     * The coordinate (0, 0) is at the upper-left corner of the canvas
-                     */
-                    getBasePixel: function() {
-                        return this.getPixelForValue(this.getBaseValue());
-                    },
-
-                    getBaseValue: function() {
-                        var me = this;
-                        var min = me.min;
-                        var max = me.max;
-
-                        return me.beginAtZero ? 0 :
-                            min < 0 && max < 0 ? max :
-                                min > 0 && max > 0 ? min :
-                                    0;
-                    },
-
-                    /**
-                     * Returns a subset of ticks to be plotted to avoid overlapping labels.
-                     * @private
-                     */
-                    _autoSkip: function(ticks) {
-                        var me = this;
-                        var tickOpts = me.options.ticks;
-                        var axisLength = me._length;
-                        var ticksLimit = tickOpts.maxTicksLimit || axisLength / me._tickSize() + 1;
-                        var majorIndices = tickOpts.major.enabled ? getMajorIndices(ticks) : [];
-                        var numMajorIndices = majorIndices.length;
-                        var first = majorIndices[0];
-                        var last = majorIndices[numMajorIndices - 1];
-                        var i, ilen, spacing, avgMajorSpacing;
-
-                        // If there are too many major ticks to display them all
-                        if (numMajorIndices > ticksLimit) {
-                            skipMajors(ticks, majorIndices, numMajorIndices / ticksLimit);
-                            return nonSkipped(ticks);
-                        }
+      if (!(nodeId in nodes)) {
+        edgeCount = 0;
+        biconnectedSearch(nodeId, nodeId);
+        nodes[nodeId].cutVertex = edgeCount > 1;
+      }
+    }
+  });
+  var cutVertices = Object.keys(nodes).filter(function (id) {
+    return nodes[id].cutVertex;
+  }).map(function (id) {
+    return eles.getElementById(id);
+  });
+  return {
+    cut: eles.spawn(cutVertices),
+    components: components
+  };
+};
+
+var hopcroftTarjanBiconnected$1 = {
+  hopcroftTarjanBiconnected: hopcroftTarjanBiconnected,
+  htbc: hopcroftTarjanBiconnected,
+  htb: hopcroftTarjanBiconnected,
+  hopcroftTarjanBiconnectedComponents: hopcroftTarjanBiconnected
+};
+
+var tarjanStronglyConnected = function tarjanStronglyConnected() {
+  var eles = this;
+  var nodes = {};
+  var index = 0;
+  var components = [];
+  var stack = [];
+  var cut = eles.spawn(eles);
+
+  var stronglyConnectedSearch = function stronglyConnectedSearch(sourceNodeId) {
+    stack.push(sourceNodeId);
+    nodes[sourceNodeId] = {
+      index: index,
+      low: index++,
+      explored: false
+    };
+    var connectedEdges = eles.getElementById(sourceNodeId).connectedEdges().intersection(eles);
+    connectedEdges.forEach(function (edge) {
+      var targetNodeId = edge.target().id();
+
+      if (targetNodeId !== sourceNodeId) {
+        if (!(targetNodeId in nodes)) {
+          stronglyConnectedSearch(targetNodeId);
+        }
 
-                        spacing = calculateSpacing(majorIndices, ticks, axisLength, ticksLimit);
+        if (!nodes[targetNodeId].explored) {
+          nodes[sourceNodeId].low = Math.min(nodes[sourceNodeId].low, nodes[targetNodeId].low);
+        }
+      }
+    });
 
-                        if (numMajorIndices > 0) {
-                            for (i = 0, ilen = numMajorIndices - 1; i < ilen; i++) {
-                                skip(ticks, spacing, majorIndices[i], majorIndices[i + 1]);
-                            }
-                            avgMajorSpacing = numMajorIndices > 1 ? (last - first) / (numMajorIndices - 1) : null;
-                            skip(ticks, spacing, helpers$1.isNullOrUndef(avgMajorSpacing) ? 0 : first - avgMajorSpacing, first);
-                            skip(ticks, spacing, last, helpers$1.isNullOrUndef(avgMajorSpacing) ? ticks.length : last + avgMajorSpacing);
-                            return nonSkipped(ticks);
-                        }
-                        skip(ticks, spacing);
-                        return nonSkipped(ticks);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _tickSize: function() {
-                        var me = this;
-                        var optionTicks = me.options.ticks;
-
-                        // Calculate space needed by label in axis direction.
-                        var rot = helpers$1.toRadians(me.labelRotation);
-                        var cos = Math.abs(Math.cos(rot));
-                        var sin = Math.abs(Math.sin(rot));
-
-                        var labelSizes = me._getLabelSizes();
-                        var padding = optionTicks.autoSkipPadding || 0;
-                        var w = labelSizes ? labelSizes.widest.width + padding : 0;
-                        var h = labelSizes ? labelSizes.highest.height + padding : 0;
-
-                        // Calculate space needed for 1 tick in axis direction.
-                        return me.isHorizontal()
-                            ? h * cos > w * sin ? w / cos : h / sin
-                            : h * sin < w * cos ? h / cos : w / sin;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _isVisible: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var display = me.options.display;
-                        var i, ilen, meta;
-
-                        if (display !== 'auto') {
-                            return !!display;
-                        }
+    if (nodes[sourceNodeId].index === nodes[sourceNodeId].low) {
+      var componentNodes = eles.spawn();
 
-                        // When 'auto', the scale is visible if at least one associated dataset is visible.
-                        for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {
-                            if (chart.isDatasetVisible(i)) {
-                                meta = chart.getDatasetMeta(i);
-                                if (meta.xAxisID === me.id || meta.yAxisID === me.id) {
-                                    return true;
-                                }
-                            }
-                        }
+      for (;;) {
+        var nodeId = stack.pop();
+        componentNodes.merge(eles.getElementById(nodeId));
+        nodes[nodeId].low = nodes[sourceNodeId].index;
+        nodes[nodeId].explored = true;
 
-                        return false;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _computeGridLineItems: function(chartArea) {
-                        var me = this;
-                        var chart = me.chart;
-                        var options = me.options;
-                        var gridLines = options.gridLines;
-                        var position = options.position;
-                        var offsetGridLines = gridLines.offsetGridLines;
-                        var isHorizontal = me.isHorizontal();
-                        var ticks = me._ticksToDraw;
-                        var ticksLength = ticks.length + (offsetGridLines ? 1 : 0);
-
-                        var tl = getTickMarkLength(gridLines);
-                        var items = [];
-                        var axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;
-                        var axisHalfWidth = axisWidth / 2;
-                        var alignPixel = helpers$1._alignPixel;
-                        var alignBorderValue = function(pixel) {
-                            return alignPixel(chart, pixel, axisWidth);
-                        };
-                        var borderValue, i, tick, lineValue, alignedLineValue;
-                        var tx1, ty1, tx2, ty2, x1, y1, x2, y2, lineWidth, lineColor, borderDash, borderDashOffset;
-
-                        if (position === 'top') {
-                            borderValue = alignBorderValue(me.bottom);
-                            ty1 = me.bottom - tl;
-                            ty2 = borderValue - axisHalfWidth;
-                            y1 = alignBorderValue(chartArea.top) + axisHalfWidth;
-                            y2 = chartArea.bottom;
-                        } else if (position === 'bottom') {
-                            borderValue = alignBorderValue(me.top);
-                            y1 = chartArea.top;
-                            y2 = alignBorderValue(chartArea.bottom) - axisHalfWidth;
-                            ty1 = borderValue + axisHalfWidth;
-                            ty2 = me.top + tl;
-                        } else if (position === 'left') {
-                            borderValue = alignBorderValue(me.right);
-                            tx1 = me.right - tl;
-                            tx2 = borderValue - axisHalfWidth;
-                            x1 = alignBorderValue(chartArea.left) + axisHalfWidth;
-                            x2 = chartArea.right;
-                        } else {
-                            borderValue = alignBorderValue(me.left);
-                            x1 = chartArea.left;
-                            x2 = alignBorderValue(chartArea.right) - axisHalfWidth;
-                            tx1 = borderValue + axisHalfWidth;
-                            tx2 = me.left + tl;
-                        }
+        if (nodeId === sourceNodeId) {
+          break;
+        }
+      }
 
-                        for (i = 0; i < ticksLength; ++i) {
-                            tick = ticks[i] || {};
+      var componentEdges = componentNodes.edgesWith(componentNodes);
+      var component = componentNodes.merge(componentEdges);
+      components.push(component);
+      cut = cut.difference(component);
+    }
+  };
 
-                            // autoskipper skipped this tick (#4635)
-                            if (isNullOrUndef(tick.label) && i < ticks.length) {
-                                continue;
-                            }
+  eles.forEach(function (ele) {
+    if (ele.isNode()) {
+      var nodeId = ele.id();
 
-                            if (i === me.zeroLineIndex && options.offset === offsetGridLines) {
-                                // Draw the first index specially
-                                lineWidth = gridLines.zeroLineWidth;
-                                lineColor = gridLines.zeroLineColor;
-                                borderDash = gridLines.zeroLineBorderDash || [];
-                                borderDashOffset = gridLines.zeroLineBorderDashOffset || 0.0;
-                            } else {
-                                lineWidth = valueAtIndexOrDefault(gridLines.lineWidth, i, 1);
-                                lineColor = valueAtIndexOrDefault(gridLines.color, i, 'rgba(0,0,0,0.1)');
-                                borderDash = gridLines.borderDash || [];
-                                borderDashOffset = gridLines.borderDashOffset || 0.0;
-                            }
+      if (!(nodeId in nodes)) {
+        stronglyConnectedSearch(nodeId);
+      }
+    }
+  });
+  return {
+    cut: cut,
+    components: components
+  };
+};
+
+var tarjanStronglyConnected$1 = {
+  tarjanStronglyConnected: tarjanStronglyConnected,
+  tsc: tarjanStronglyConnected,
+  tscc: tarjanStronglyConnected,
+  tarjanStronglyConnectedComponents: tarjanStronglyConnected
+};
+
+var elesfn$c = {};
+[elesfn, elesfn$1, elesfn$2, elesfn$3, elesfn$4, elesfn$5, elesfn$6, elesfn$7, elesfn$8, elesfn$9, elesfn$a, markovClustering$1, kClustering, hierarchicalClustering$1, affinityPropagation$1, elesfn$b, hopcroftTarjanBiconnected$1, tarjanStronglyConnected$1].forEach(function (props) {
+  extend(elesfn$c, props);
+});
+
+/*!
+Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
+Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
+Licensed under The MIT License (http://opensource.org/licenses/MIT)
+*/
 
-                            lineValue = getPixelForGridLine(me, tick._index || i, offsetGridLines);
+/*  promise states [Promises/A+ 2.1]  */
+var STATE_PENDING = 0;
+/*  [Promises/A+ 2.1.1]  */
 
-                            // Skip if the pixel is out of the range
-                            if (lineValue === undefined) {
-                                continue;
-                            }
+var STATE_FULFILLED = 1;
+/*  [Promises/A+ 2.1.2]  */
 
-                            alignedLineValue = alignPixel(chart, lineValue, lineWidth);
+var STATE_REJECTED = 2;
+/*  [Promises/A+ 2.1.3]  */
 
-                            if (isHorizontal) {
-                                tx1 = tx2 = x1 = x2 = alignedLineValue;
-                            } else {
-                                ty1 = ty2 = y1 = y2 = alignedLineValue;
-                            }
+/*  promise object constructor  */
 
-                            items.push({
-                                tx1: tx1,
-                                ty1: ty1,
-                                tx2: tx2,
-                                ty2: ty2,
-                                x1: x1,
-                                y1: y1,
-                                x2: x2,
-                                y2: y2,
-                                width: lineWidth,
-                                color: lineColor,
-                                borderDash: borderDash,
-                                borderDashOffset: borderDashOffset,
-                            });
-                        }
+var api = function api(executor) {
+  /*  optionally support non-constructor/plain-function call  */
+  if (!(this instanceof api)) return new api(executor);
+  /*  initialize object  */
 
-                        items.ticksLength = ticksLength;
-                        items.borderValue = borderValue;
-
-                        return items;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _computeLabelItems: function() {
-                        var me = this;
-                        var options = me.options;
-                        var optionTicks = options.ticks;
-                        var position = options.position;
-                        var isMirrored = optionTicks.mirror;
-                        var isHorizontal = me.isHorizontal();
-                        var ticks = me._ticksToDraw;
-                        var fonts = parseTickFontOptions(optionTicks);
-                        var tickPadding = optionTicks.padding;
-                        var tl = getTickMarkLength(options.gridLines);
-                        var rotation = -helpers$1.toRadians(me.labelRotation);
-                        var items = [];
-                        var i, ilen, tick, label, x, y, textAlign, pixel, font, lineHeight, lineCount, textOffset;
-
-                        if (position === 'top') {
-                            y = me.bottom - tl - tickPadding;
-                            textAlign = !rotation ? 'center' : 'left';
-                        } else if (position === 'bottom') {
-                            y = me.top + tl + tickPadding;
-                            textAlign = !rotation ? 'center' : 'right';
-                        } else if (position === 'left') {
-                            x = me.right - (isMirrored ? 0 : tl) - tickPadding;
-                            textAlign = isMirrored ? 'left' : 'right';
-                        } else {
-                            x = me.left + (isMirrored ? 0 : tl) + tickPadding;
-                            textAlign = isMirrored ? 'right' : 'left';
-                        }
+  this.id = 'Thenable/1.0.7';
+  this.state = STATE_PENDING;
+  /*  initial state  */
 
-                        for (i = 0, ilen = ticks.length; i < ilen; ++i) {
-                            tick = ticks[i];
-                            label = tick.label;
+  this.fulfillValue = undefined;
+  /*  initial value  */
 
-                            // autoskipper skipped this tick (#4635)
-                            if (isNullOrUndef(label)) {
-                                continue;
-                            }
+  /*  [Promises/A+ 1.3, 2.1.2.2]  */
 
-                            pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;
-                            font = tick.major ? fonts.major : fonts.minor;
-                            lineHeight = font.lineHeight;
-                            lineCount = isArray(label) ? label.length : 1;
-
-                            if (isHorizontal) {
-                                x = pixel;
-                                textOffset = position === 'top'
-                                    ? ((!rotation ? 0.5 : 1) - lineCount) * lineHeight
-                                    : (!rotation ? 0.5 : 0) * lineHeight;
-                            } else {
-                                y = pixel;
-                                textOffset = (1 - lineCount) * lineHeight / 2;
-                            }
+  this.rejectReason = undefined;
+  /*  initial reason */
 
-                            items.push({
-                                x: x,
-                                y: y,
-                                rotation: rotation,
-                                label: label,
-                                font: font,
-                                textOffset: textOffset,
-                                textAlign: textAlign
-                            });
-                        }
+  /*  [Promises/A+ 1.5, 2.1.3.2]  */
 
-                        return items;
-                    },
+  this.onFulfilled = [];
+  /*  initial handlers  */
 
-                    /**
-                     * @private
-                     */
-                    _drawGrid: function(chartArea) {
-                        var me = this;
-                        var gridLines = me.options.gridLines;
+  this.onRejected = [];
+  /*  initial handlers  */
 
-                        if (!gridLines.display) {
-                            return;
-                        }
+  /*  provide optional information-hiding proxy  */
 
-                        var ctx = me.ctx;
-                        var chart = me.chart;
-                        var alignPixel = helpers$1._alignPixel;
-                        var axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;
-                        var items = me._gridLineItems || (me._gridLineItems = me._computeGridLineItems(chartArea));
-                        var width, color, i, ilen, item;
-
-                        for (i = 0, ilen = items.length; i < ilen; ++i) {
-                            item = items[i];
-                            width = item.width;
-                            color = item.color;
-
-                            if (width && color) {
-                                ctx.save();
-                                ctx.lineWidth = width;
-                                ctx.strokeStyle = color;
-                                if (ctx.setLineDash) {
-                                    ctx.setLineDash(item.borderDash);
-                                    ctx.lineDashOffset = item.borderDashOffset;
-                                }
-
-                                ctx.beginPath();
-
-                                if (gridLines.drawTicks) {
-                                    ctx.moveTo(item.tx1, item.ty1);
-                                    ctx.lineTo(item.tx2, item.ty2);
-                                }
-
-                                if (gridLines.drawOnChartArea) {
-                                    ctx.moveTo(item.x1, item.y1);
-                                    ctx.lineTo(item.x2, item.y2);
-                                }
-
-                                ctx.stroke();
-                                ctx.restore();
-                            }
-                        }
+  this.proxy = {
+    then: this.then.bind(this)
+  };
+  /*  support optional executor function  */
 
-                        if (axisWidth) {
-                            // Draw the line at the edge of the axis
-                            var firstLineWidth = axisWidth;
-                            var lastLineWidth = valueAtIndexOrDefault(gridLines.lineWidth, items.ticksLength - 1, 1);
-                            var borderValue = items.borderValue;
-                            var x1, x2, y1, y2;
-
-                            if (me.isHorizontal()) {
-                                x1 = alignPixel(chart, me.left, firstLineWidth) - firstLineWidth / 2;
-                                x2 = alignPixel(chart, me.right, lastLineWidth) + lastLineWidth / 2;
-                                y1 = y2 = borderValue;
-                            } else {
-                                y1 = alignPixel(chart, me.top, firstLineWidth) - firstLineWidth / 2;
-                                y2 = alignPixel(chart, me.bottom, lastLineWidth) + lastLineWidth / 2;
-                                x1 = x2 = borderValue;
-                            }
+  if (typeof executor === 'function') executor.call(this, this.fulfill.bind(this), this.reject.bind(this));
+};
+/*  promise API methods  */
 
-                            ctx.lineWidth = axisWidth;
-                            ctx.strokeStyle = valueAtIndexOrDefault(gridLines.color, 0);
-                            ctx.beginPath();
-                            ctx.moveTo(x1, y1);
-                            ctx.lineTo(x2, y2);
-                            ctx.stroke();
-                        }
-                    },
 
-                    /**
-                     * @private
-                     */
-                    _drawLabels: function() {
-                        var me = this;
-                        var optionTicks = me.options.ticks;
+api.prototype = {
+  /*  promise resolving methods  */
+  fulfill: function fulfill(value) {
+    return deliver(this, STATE_FULFILLED, 'fulfillValue', value);
+  },
+  reject: function reject(value) {
+    return deliver(this, STATE_REJECTED, 'rejectReason', value);
+  },
 
-                        if (!optionTicks.display) {
-                            return;
-                        }
+  /*  "The then Method" [Promises/A+ 1.1, 1.2, 2.2]  */
+  then: function then(onFulfilled, onRejected) {
+    var curr = this;
+    var next = new api();
+    /*  [Promises/A+ 2.2.7]  */
 
-                        var ctx = me.ctx;
-                        var items = me._labelItems || (me._labelItems = me._computeLabelItems());
-                        var i, j, ilen, jlen, item, tickFont, label, y;
-
-                        for (i = 0, ilen = items.length; i < ilen; ++i) {
-                            item = items[i];
-                            tickFont = item.font;
-
-                            // Make sure we draw text in the correct color and font
-                            ctx.save();
-                            ctx.translate(item.x, item.y);
-                            ctx.rotate(item.rotation);
-                            ctx.font = tickFont.string;
-                            ctx.fillStyle = tickFont.color;
-                            ctx.textBaseline = 'middle';
-                            ctx.textAlign = item.textAlign;
-
-                            label = item.label;
-                            y = item.textOffset;
-                            if (isArray(label)) {
-                                for (j = 0, jlen = label.length; j < jlen; ++j) {
-                                    // We just make sure the multiline element is a string here..
-                                    ctx.fillText('' + label[j], 0, y);
-                                    y += tickFont.lineHeight;
-                                }
-                            } else {
-                                ctx.fillText(label, 0, y);
-                            }
-                            ctx.restore();
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _drawTitle: function() {
-                        var me = this;
-                        var ctx = me.ctx;
-                        var options = me.options;
-                        var scaleLabel = options.scaleLabel;
-
-                        if (!scaleLabel.display) {
-                            return;
-                        }
+    curr.onFulfilled.push(resolver(onFulfilled, next, 'fulfill'));
+    /*  [Promises/A+ 2.2.2/2.2.6]  */
 
-                        var scaleLabelFontColor = valueOrDefault$a(scaleLabel.fontColor, core_defaults.global.defaultFontColor);
-                        var scaleLabelFont = helpers$1.options._parseFont(scaleLabel);
-                        var scaleLabelPadding = helpers$1.options.toPadding(scaleLabel.padding);
-                        var halfLineHeight = scaleLabelFont.lineHeight / 2;
-                        var position = options.position;
-                        var rotation = 0;
-                        var scaleLabelX, scaleLabelY;
-
-                        if (me.isHorizontal()) {
-                            scaleLabelX = me.left + me.width / 2; // midpoint of the width
-                            scaleLabelY = position === 'bottom'
-                                ? me.bottom - halfLineHeight - scaleLabelPadding.bottom
-                                : me.top + halfLineHeight + scaleLabelPadding.top;
-                        } else {
-                            var isLeft = position === 'left';
-                            scaleLabelX = isLeft
-                                ? me.left + halfLineHeight + scaleLabelPadding.top
-                                : me.right - halfLineHeight - scaleLabelPadding.top;
-                            scaleLabelY = me.top + me.height / 2;
-                            rotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;
-                        }
+    curr.onRejected.push(resolver(onRejected, next, 'reject'));
+    /*  [Promises/A+ 2.2.3/2.2.6]  */
 
-                        ctx.save();
-                        ctx.translate(scaleLabelX, scaleLabelY);
-                        ctx.rotate(rotation);
-                        ctx.textAlign = 'center';
-                        ctx.textBaseline = 'middle';
-                        ctx.fillStyle = scaleLabelFontColor; // render in correct colour
-                        ctx.font = scaleLabelFont.string;
-                        ctx.fillText(scaleLabel.labelString, 0, 0);
-                        ctx.restore();
-                    },
-
-                    draw: function(chartArea) {
-                        var me = this;
-
-                        if (!me._isVisible()) {
-                            return;
-                        }
+    execute(curr);
+    return next.proxy;
+    /*  [Promises/A+ 2.2.7, 3.3]  */
+  }
+};
+/*  deliver an action  */
 
-                        me._drawGrid(chartArea);
-                        me._drawTitle();
-                        me._drawLabels();
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _layers: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var tz = opts.ticks && opts.ticks.z || 0;
-                        var gz = opts.gridLines && opts.gridLines.z || 0;
-
-                        if (!me._isVisible() || tz === gz || me.draw !== me._draw) {
-                            // backward compatibility: draw has been overridden by custom scale
-                            return [{
-                                z: tz,
-                                draw: function() {
-                                    me.draw.apply(me, arguments);
-                                }
-                            }];
-                        }
+var deliver = function deliver(curr, state, name, value) {
+  if (curr.state === STATE_PENDING) {
+    curr.state = state;
+    /*  [Promises/A+ 2.1.2.1, 2.1.3.1]  */
 
-                        return [{
-                            z: gz,
-                            draw: function() {
-                                me._drawGrid.apply(me, arguments);
-                                me._drawTitle.apply(me, arguments);
-                            }
-                        }, {
-                            z: tz,
-                            draw: function() {
-                                me._drawLabels.apply(me, arguments);
-                            }
-                        }];
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getMatchingVisibleMetas: function(type) {
-                        var me = this;
-                        var isHorizontal = me.isHorizontal();
-                        return me.chart._getSortedVisibleDatasetMetas()
-                            .filter(function(meta) {
-                                return (!type || meta.type === type)
-                                    && (isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id);
-                            });
-                    }
-                });
+    curr[name] = value;
+    /*  [Promises/A+ 2.1.2.2, 2.1.3.2]  */
 
-                Scale.prototype._draw = Scale.prototype.draw;
+    execute(curr);
+  }
 
-                var core_scale = Scale;
+  return curr;
+};
+/*  execute all handlers  */
 
-                var isNullOrUndef$1 = helpers$1.isNullOrUndef;
 
-                var defaultConfig = {
-                    position: 'bottom'
-                };
+var execute = function execute(curr) {
+  if (curr.state === STATE_FULFILLED) execute_handlers(curr, 'onFulfilled', curr.fulfillValue);else if (curr.state === STATE_REJECTED) execute_handlers(curr, 'onRejected', curr.rejectReason);
+};
+/*  execute particular set of handlers  */
 
-                var scale_category = core_scale.extend({
-                    determineDataLimits: function() {
-                        var me = this;
-                        var labels = me._getLabels();
-                        var ticksOpts = me.options.ticks;
-                        var min = ticksOpts.min;
-                        var max = ticksOpts.max;
-                        var minIndex = 0;
-                        var maxIndex = labels.length - 1;
-                        var findIndex;
-
-                        if (min !== undefined) {
-                            // user specified min value
-                            findIndex = labels.indexOf(min);
-                            if (findIndex >= 0) {
-                                minIndex = findIndex;
-                            }
-                        }
 
-                        if (max !== undefined) {
-                            // user specified max value
-                            findIndex = labels.indexOf(max);
-                            if (findIndex >= 0) {
-                                maxIndex = findIndex;
-                            }
-                        }
+var execute_handlers = function execute_handlers(curr, name, value) {
+  /* global setImmediate: true */
 
-                        me.minIndex = minIndex;
-                        me.maxIndex = maxIndex;
-                        me.min = labels[minIndex];
-                        me.max = labels[maxIndex];
-                    },
+  /* global setTimeout: true */
 
-                    buildTicks: function() {
-                        var me = this;
-                        var labels = me._getLabels();
-                        var minIndex = me.minIndex;
-                        var maxIndex = me.maxIndex;
+  /*  short-circuit processing  */
+  if (curr[name].length === 0) return;
+  /*  iterate over all handlers, exactly once  */
 
-                        // If we are viewing some subset of labels, slice the original array
-                        me.ticks = (minIndex === 0 && maxIndex === labels.length - 1) ? labels : labels.slice(minIndex, maxIndex + 1);
-                    },
+  var handlers = curr[name];
+  curr[name] = [];
+  /*  [Promises/A+ 2.2.2.3, 2.2.3.3]  */
 
-                    getLabelForIndex: function(index, datasetIndex) {
-                        var me = this;
-                        var chart = me.chart;
+  var func = function func() {
+    for (var i = 0; i < handlers.length; i++) {
+      handlers[i](value);
+    }
+    /*  [Promises/A+ 2.2.5]  */
 
-                        if (chart.getDatasetMeta(datasetIndex).controller._getValueScaleId() === me.id) {
-                            return me.getRightValue(chart.data.datasets[datasetIndex].data[index]);
-                        }
+  };
+  /*  execute procedure asynchronously  */
 
-                        return me._getLabels()[index];
-                    },
+  /*  [Promises/A+ 2.2.4, 3.1]  */
 
-                    _configure: function() {
-                        var me = this;
-                        var offset = me.options.offset;
-                        var ticks = me.ticks;
 
-                        core_scale.prototype._configure.call(me);
+  if (typeof setImmediate === 'function') setImmediate(func);else setTimeout(func, 0);
+};
+/*  generate a resolver function  */
 
-                        if (!me.isHorizontal()) {
-                            // For backward compatibility, vertical category scale reverse is inverted.
-                            me._reversePixels = !me._reversePixels;
-                        }
 
-                        if (!ticks) {
-                            return;
-                        }
+var resolver = function resolver(cb, next, method) {
+  return function (value) {
+    if (typeof cb !== 'function')
+      /*  [Promises/A+ 2.2.1, 2.2.7.3, 2.2.7.4]  */
+      next[method].call(next, value);
+      /*  [Promises/A+ 2.2.7.3, 2.2.7.4]  */
+    else {
+        var result;
 
-                        me._startValue = me.minIndex - (offset ? 0.5 : 0);
-                        me._valueRange = Math.max(ticks.length - (offset ? 0 : 1), 1);
-                    },
+        try {
+          result = cb(value);
+        }
+        /*  [Promises/A+ 2.2.2.1, 2.2.3.1, 2.2.5, 3.2]  */
+        catch (e) {
+          next.reject(e);
+          /*  [Promises/A+ 2.2.7.2]  */
 
-                    // Used to get data value locations.  Value can either be an index or a numerical value
-                    getPixelForValue: function(value, index, datasetIndex) {
-                        var me = this;
-                        var valueCategory, labels, idx;
+          return;
+        }
 
-                        if (!isNullOrUndef$1(index) && !isNullOrUndef$1(datasetIndex)) {
-                            value = me.chart.data.datasets[datasetIndex].data[index];
-                        }
+        resolve(next, result);
+        /*  [Promises/A+ 2.2.7.1]  */
+      }
+  };
+};
+/*  "Promise Resolution Procedure"  */
 
-                        // If value is a data object, then index is the index in the data array,
-                        // not the index of the scale. We need to change that.
-                        if (!isNullOrUndef$1(value)) {
-                            valueCategory = me.isHorizontal() ? value.x : value.y;
-                        }
-                        if (valueCategory !== undefined || (value !== undefined && isNaN(index))) {
-                            labels = me._getLabels();
-                            value = helpers$1.valueOrDefault(valueCategory, value);
-                            idx = labels.indexOf(value);
-                            index = idx !== -1 ? idx : index;
-                            if (isNaN(index)) {
-                                index = value;
-                            }
-                        }
-                        return me.getPixelForDecimal((index - me._startValue) / me._valueRange);
-                    },
-
-                    getPixelForTick: function(index) {
-                        var ticks = this.ticks;
-                        return index < 0 || index > ticks.length - 1
-                            ? null
-                            : this.getPixelForValue(ticks[index], index + this.minIndex);
-                    },
-
-                    getValueForPixel: function(pixel) {
-                        var me = this;
-                        var value = Math.round(me._startValue + me.getDecimalForPixel(pixel) * me._valueRange);
-                        return Math.min(Math.max(value, 0), me.ticks.length - 1);
-                    },
-
-                    getBasePixel: function() {
-                        return this.bottom;
-                    }
-                });
+/*  [Promises/A+ 2.3]  */
 
-// INTERNAL: static default options, registered in src/index.js
-                var _defaults = defaultConfig;
-                scale_category._defaults = _defaults;
-
-                var noop = helpers$1.noop;
-                var isNullOrUndef$2 = helpers$1.isNullOrUndef;
-
-                /**
-                 * Generate a set of linear ticks
-                 * @param generationOptions the options used to generate the ticks
-                 * @param dataRange the range of the data
-                 * @returns {number[]} array of tick values
-                 */
-                function generateTicks(generationOptions, dataRange) {
-                    var ticks = [];
-                    // To get a "nice" value for the tick spacing, we will use the appropriately named
-                    // "nice number" algorithm. See https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks
-                    // for details.
-
-                    var MIN_SPACING = 1e-14;
-                    var stepSize = generationOptions.stepSize;
-                    var unit = stepSize || 1;
-                    var maxNumSpaces = generationOptions.maxTicks - 1;
-                    var min = generationOptions.min;
-                    var max = generationOptions.max;
-                    var precision = generationOptions.precision;
-                    var rmin = dataRange.min;
-                    var rmax = dataRange.max;
-                    var spacing = helpers$1.niceNum((rmax - rmin) / maxNumSpaces / unit) * unit;
-                    var factor, niceMin, niceMax, numSpaces;
-
-                    // Beyond MIN_SPACING floating point numbers being to lose precision
-                    // such that we can't do the math necessary to generate ticks
-                    if (spacing < MIN_SPACING && isNullOrUndef$2(min) && isNullOrUndef$2(max)) {
-                        return [rmin, rmax];
-                    }
 
-                    numSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing);
-                    if (numSpaces > maxNumSpaces) {
-                        // If the calculated num of spaces exceeds maxNumSpaces, recalculate it
-                        spacing = helpers$1.niceNum(numSpaces * spacing / maxNumSpaces / unit) * unit;
-                    }
+var resolve = function resolve(promise, x) {
+  /*  sanity check arguments  */
 
-                    if (stepSize || isNullOrUndef$2(precision)) {
-                        // If a precision is not specified, calculate factor based on spacing
-                        factor = Math.pow(10, helpers$1._decimalPlaces(spacing));
-                    } else {
-                        // If the user specified a precision, round to that number of decimal places
-                        factor = Math.pow(10, precision);
-                        spacing = Math.ceil(spacing * factor) / factor;
-                    }
+  /*  [Promises/A+ 2.3.1]  */
+  if (promise === x || promise.proxy === x) {
+    promise.reject(new TypeError('cannot resolve promise with itself'));
+    return;
+  }
+  /*  surgically check for a "then" method
+    (mainly to just call the "getter" of "then" only once)  */
 
-                    niceMin = Math.floor(rmin / spacing) * spacing;
-                    niceMax = Math.ceil(rmax / spacing) * spacing;
 
-                    // If min, max and stepSize is set and they make an evenly spaced scale use it.
-                    if (stepSize) {
-                        // If very close to our whole number, use it.
-                        if (!isNullOrUndef$2(min) && helpers$1.almostWhole(min / spacing, spacing / 1000)) {
-                            niceMin = min;
-                        }
-                        if (!isNullOrUndef$2(max) && helpers$1.almostWhole(max / spacing, spacing / 1000)) {
-                            niceMax = max;
-                        }
-                    }
+  var then;
 
-                    numSpaces = (niceMax - niceMin) / spacing;
-                    // If very close to our rounded value, use it.
-                    if (helpers$1.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {
-                        numSpaces = Math.round(numSpaces);
-                    } else {
-                        numSpaces = Math.ceil(numSpaces);
-                    }
+  if (_typeof(x) === 'object' && x !== null || typeof x === 'function') {
+    try {
+      then = x.then;
+    }
+    /*  [Promises/A+ 2.3.3.1, 3.5]  */
+    catch (e) {
+      promise.reject(e);
+      /*  [Promises/A+ 2.3.3.2]  */
 
-                    niceMin = Math.round(niceMin * factor) / factor;
-                    niceMax = Math.round(niceMax * factor) / factor;
-                    ticks.push(isNullOrUndef$2(min) ? niceMin : min);
-                    for (var j = 1; j < numSpaces; ++j) {
-                        ticks.push(Math.round((niceMin + j * spacing) * factor) / factor);
-                    }
-                    ticks.push(isNullOrUndef$2(max) ? niceMax : max);
+      return;
+    }
+  }
+  /*  handle own Thenables    [Promises/A+ 2.3.2]
+    and similar "thenables" [Promises/A+ 2.3.3]  */
 
-                    return ticks;
-                }
 
-                var scale_linearbase = core_scale.extend({
-                    getRightValue: function(value) {
-                        if (typeof value === 'string') {
-                            return +value;
-                        }
-                        return core_scale.prototype.getRightValue.call(this, value);
-                    },
-
-                    handleTickRangeOptions: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var tickOpts = opts.ticks;
-
-                        // If we are forcing it to begin at 0, but 0 will already be rendered on the chart,
-                        // do nothing since that would make the chart weird. If the user really wants a weird chart
-                        // axis, they can manually override it
-                        if (tickOpts.beginAtZero) {
-                            var minSign = helpers$1.sign(me.min);
-                            var maxSign = helpers$1.sign(me.max);
-
-                            if (minSign < 0 && maxSign < 0) {
-                                // move the top up to 0
-                                me.max = 0;
-                            } else if (minSign > 0 && maxSign > 0) {
-                                // move the bottom down to 0
-                                me.min = 0;
-                            }
-                        }
+  if (typeof then === 'function') {
+    var resolved = false;
 
-                        var setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;
-                        var setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;
+    try {
+      /*  call retrieved "then" method */
 
-                        if (tickOpts.min !== undefined) {
-                            me.min = tickOpts.min;
-                        } else if (tickOpts.suggestedMin !== undefined) {
-                            if (me.min === null) {
-                                me.min = tickOpts.suggestedMin;
-                            } else {
-                                me.min = Math.min(me.min, tickOpts.suggestedMin);
-                            }
-                        }
+      /*  [Promises/A+ 2.3.3.3]  */
+      then.call(x,
+      /*  resolvePromise  */
 
-                        if (tickOpts.max !== undefined) {
-                            me.max = tickOpts.max;
-                        } else if (tickOpts.suggestedMax !== undefined) {
-                            if (me.max === null) {
-                                me.max = tickOpts.suggestedMax;
-                            } else {
-                                me.max = Math.max(me.max, tickOpts.suggestedMax);
-                            }
-                        }
+      /*  [Promises/A+ 2.3.3.3.1]  */
+      function (y) {
+        if (resolved) return;
+        resolved = true;
+        /*  [Promises/A+ 2.3.3.3.3]  */
 
-                        if (setMin !== setMax) {
-                            // We set the min or the max but not both.
-                            // So ensure that our range is good
-                            // Inverted or 0 length range can happen when
-                            // ticks.min is set, and no datasets are visible
-                            if (me.min >= me.max) {
-                                if (setMin) {
-                                    me.max = me.min + 1;
-                                } else {
-                                    me.min = me.max - 1;
-                                }
-                            }
-                        }
+        if (y === x)
+          /*  [Promises/A+ 3.6]  */
+          promise.reject(new TypeError('circular thenable chain'));else resolve(promise, y);
+      },
+      /*  rejectPromise  */
 
-                        if (me.min === me.max) {
-                            me.max++;
+      /*  [Promises/A+ 2.3.3.3.2]  */
+      function (r) {
+        if (resolved) return;
+        resolved = true;
+        /*  [Promises/A+ 2.3.3.3.3]  */
 
-                            if (!tickOpts.beginAtZero) {
-                                me.min--;
-                            }
-                        }
-                    },
-
-                    getTickLimit: function() {
-                        var me = this;
-                        var tickOpts = me.options.ticks;
-                        var stepSize = tickOpts.stepSize;
-                        var maxTicksLimit = tickOpts.maxTicksLimit;
-                        var maxTicks;
-
-                        if (stepSize) {
-                            maxTicks = Math.ceil(me.max / stepSize) - Math.floor(me.min / stepSize) + 1;
-                        } else {
-                            maxTicks = me._computeTickLimit();
-                            maxTicksLimit = maxTicksLimit || 11;
-                        }
+        promise.reject(r);
+      });
+    } catch (e) {
+      if (!resolved)
+        /*  [Promises/A+ 2.3.3.3.3]  */
+        promise.reject(e);
+      /*  [Promises/A+ 2.3.3.3.4]  */
+    }
 
-                        if (maxTicksLimit) {
-                            maxTicks = Math.min(maxTicksLimit, maxTicks);
-                        }
+    return;
+  }
+  /*  handle other values  */
+
+
+  promise.fulfill(x);
+  /*  [Promises/A+ 2.3.4, 2.3.3.4]  */
+}; // so we always have Promise.all()
+
+
+api.all = function (ps) {
+  return new api(function (resolveAll, rejectAll) {
+    var vals = new Array(ps.length);
+    var doneCount = 0;
+
+    var fulfill = function fulfill(i, val) {
+      vals[i] = val;
+      doneCount++;
+
+      if (doneCount === ps.length) {
+        resolveAll(vals);
+      }
+    };
+
+    for (var i = 0; i < ps.length; i++) {
+      (function (i) {
+        var p = ps[i];
+        var isPromise = p != null && p.then != null;
+
+        if (isPromise) {
+          p.then(function (val) {
+            fulfill(i, val);
+          }, function (err) {
+            rejectAll(err);
+          });
+        } else {
+          var val = p;
+          fulfill(i, val);
+        }
+      })(i);
+    }
+  });
+};
+
+api.resolve = function (val) {
+  return new api(function (resolve, reject) {
+    resolve(val);
+  });
+};
+
+api.reject = function (val) {
+  return new api(function (resolve, reject) {
+    reject(val);
+  });
+};
+
+var Promise$1 = typeof Promise !== 'undefined' ? Promise : api; // eslint-disable-line no-undef
+
+var Animation = function Animation(target, opts, opts2) {
+  var isCore = core(target);
+  var isEle = !isCore;
+
+  var _p = this._private = extend({
+    duration: 1000
+  }, opts, opts2);
+
+  _p.target = target;
+  _p.style = _p.style || _p.css;
+  _p.started = false;
+  _p.playing = false;
+  _p.hooked = false;
+  _p.applying = false;
+  _p.progress = 0;
+  _p.completes = [];
+  _p.frames = [];
+
+  if (_p.complete && fn(_p.complete)) {
+    _p.completes.push(_p.complete);
+  }
 
-                        return maxTicks;
-                    },
-
-                    _computeTickLimit: function() {
-                        return Number.POSITIVE_INFINITY;
-                    },
-
-                    handleDirectionalChanges: noop,
-
-                    buildTicks: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var tickOpts = opts.ticks;
-
-                        // Figure out what the max number of ticks we can support it is based on the size of
-                        // the axis area. For now, we say that the minimum tick spacing in pixels must be 40
-                        // We also limit the maximum number of ticks to 11 which gives a nice 10 squares on
-                        // the graph. Make sure we always have at least 2 ticks
-                        var maxTicks = me.getTickLimit();
-                        maxTicks = Math.max(2, maxTicks);
-
-                        var numericGeneratorOptions = {
-                            maxTicks: maxTicks,
-                            min: tickOpts.min,
-                            max: tickOpts.max,
-                            precision: tickOpts.precision,
-                            stepSize: helpers$1.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)
-                        };
-                        var ticks = me.ticks = generateTicks(numericGeneratorOptions, me);
-
-                        me.handleDirectionalChanges();
-
-                        // At this point, we need to update our max and min given the tick values since we have expanded the
-                        // range of the scale
-                        me.max = helpers$1.max(ticks);
-                        me.min = helpers$1.min(ticks);
-
-                        if (tickOpts.reverse) {
-                            ticks.reverse();
-
-                            me.start = me.max;
-                            me.end = me.min;
-                        } else {
-                            me.start = me.min;
-                            me.end = me.max;
-                        }
-                    },
+  if (isEle) {
+    var pos = target.position();
+    _p.startPosition = _p.startPosition || {
+      x: pos.x,
+      y: pos.y
+    };
+    _p.startStyle = _p.startStyle || target.cy().style().getAnimationStartStyle(target, _p.style);
+  }
 
-                    convertTicksToLabels: function() {
-                        var me = this;
-                        me.ticksAsNumbers = me.ticks.slice();
-                        me.zeroLineIndex = me.ticks.indexOf(0);
+  if (isCore) {
+    var pan = target.pan();
+    _p.startPan = {
+      x: pan.x,
+      y: pan.y
+    };
+    _p.startZoom = target.zoom();
+  } // for future timeline/animations impl
+
+
+  this.length = 1;
+  this[0] = this;
+};
+
+var anifn = Animation.prototype;
+extend(anifn, {
+  instanceString: function instanceString() {
+    return 'animation';
+  },
+  hook: function hook() {
+    var _p = this._private;
+
+    if (!_p.hooked) {
+      // add to target's animation queue
+      var q;
+      var tAni = _p.target._private.animation;
+
+      if (_p.queue) {
+        q = tAni.queue;
+      } else {
+        q = tAni.current;
+      }
+
+      q.push(this); // add to the animation loop pool
+
+      if (elementOrCollection(_p.target)) {
+        _p.target.cy().addToAnimationPool(_p.target);
+      }
+
+      _p.hooked = true;
+    }
 
-                        core_scale.prototype.convertTicksToLabels.call(me);
-                    },
+    return this;
+  },
+  play: function play() {
+    var _p = this._private; // autorewind
 
-                    _configure: function() {
-                        var me = this;
-                        var ticks = me.getTicks();
-                        var start = me.min;
-                        var end = me.max;
-                        var offset;
+    if (_p.progress === 1) {
+      _p.progress = 0;
+    }
 
-                        core_scale.prototype._configure.call(me);
+    _p.playing = true;
+    _p.started = false; // needs to be started by animation loop
+
+    _p.stopped = false;
+    this.hook(); // the animation loop will start the animation...
+
+    return this;
+  },
+  playing: function playing() {
+    return this._private.playing;
+  },
+  apply: function apply() {
+    var _p = this._private;
+    _p.applying = true;
+    _p.started = false; // needs to be started by animation loop
+
+    _p.stopped = false;
+    this.hook(); // the animation loop will apply the animation at this progress
+
+    return this;
+  },
+  applying: function applying() {
+    return this._private.applying;
+  },
+  pause: function pause() {
+    var _p = this._private;
+    _p.playing = false;
+    _p.started = false;
+    return this;
+  },
+  stop: function stop() {
+    var _p = this._private;
+    _p.playing = false;
+    _p.started = false;
+    _p.stopped = true; // to be removed from animation queues
+
+    return this;
+  },
+  rewind: function rewind() {
+    return this.progress(0);
+  },
+  fastforward: function fastforward() {
+    return this.progress(1);
+  },
+  time: function time(t) {
+    var _p = this._private;
+
+    if (t === undefined) {
+      return _p.progress * _p.duration;
+    } else {
+      return this.progress(t / _p.duration);
+    }
+  },
+  progress: function progress(p) {
+    var _p = this._private;
+    var wasPlaying = _p.playing;
+
+    if (p === undefined) {
+      return _p.progress;
+    } else {
+      if (wasPlaying) {
+        this.pause();
+      }
+
+      _p.progress = p;
+      _p.started = false;
+
+      if (wasPlaying) {
+        this.play();
+      }
+    }
 
-                        if (me.options.offset && ticks.length) {
-                            offset = (end - start) / Math.max(ticks.length - 1, 1) / 2;
-                            start -= offset;
-                            end += offset;
-                        }
-                        me._startValue = start;
-                        me._endValue = end;
-                        me._valueRange = end - start;
-                    }
-                });
+    return this;
+  },
+  completed: function completed() {
+    return this._private.progress === 1;
+  },
+  reverse: function reverse() {
+    var _p = this._private;
+    var wasPlaying = _p.playing;
+
+    if (wasPlaying) {
+      this.pause();
+    }
 
-                var defaultConfig$1 = {
-                    position: 'left',
-                    ticks: {
-                        callback: core_ticks.formatters.linear
-                    }
-                };
+    _p.progress = 1 - _p.progress;
+    _p.started = false;
 
-                var DEFAULT_MIN = 0;
-                var DEFAULT_MAX = 1;
-
-                function getOrCreateStack(stacks, stacked, meta) {
-                    var key = [
-                        meta.type,
-                        // we have a separate stack for stack=undefined datasets when the opts.stacked is undefined
-                        stacked === undefined && meta.stack === undefined ? meta.index : '',
-                        meta.stack
-                    ].join('.');
-
-                    if (stacks[key] === undefined) {
-                        stacks[key] = {
-                            pos: [],
-                            neg: []
-                        };
-                    }
+    var swap = function swap(a, b) {
+      var _pa = _p[a];
 
-                    return stacks[key];
-                }
+      if (_pa == null) {
+        return;
+      }
 
-                function stackData(scale, stacks, meta, data) {
-                    var opts = scale.options;
-                    var stacked = opts.stacked;
-                    var stack = getOrCreateStack(stacks, stacked, meta);
-                    var pos = stack.pos;
-                    var neg = stack.neg;
-                    var ilen = data.length;
-                    var i, value;
-
-                    for (i = 0; i < ilen; ++i) {
-                        value = scale._parseValue(data[i]);
-                        if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {
-                            continue;
-                        }
+      _p[a] = _p[b];
+      _p[b] = _pa;
+    };
 
-                        pos[i] = pos[i] || 0;
-                        neg[i] = neg[i] || 0;
+    swap('zoom', 'startZoom');
+    swap('pan', 'startPan');
+    swap('position', 'startPosition'); // swap styles
 
-                        if (opts.relativePoints) {
-                            pos[i] = 100;
-                        } else if (value.min < 0 || value.max < 0) {
-                            neg[i] += value.min;
-                        } else {
-                            pos[i] += value.max;
-                        }
-                    }
-                }
+    if (_p.style) {
+      for (var i = 0; i < _p.style.length; i++) {
+        var prop = _p.style[i];
+        var name = prop.name;
+        var startStyleProp = _p.startStyle[name];
+        _p.startStyle[name] = prop;
+        _p.style[i] = startStyleProp;
+      }
+    }
 
-                function updateMinMax(scale, meta, data) {
-                    var ilen = data.length;
-                    var i, value;
+    if (wasPlaying) {
+      this.play();
+    }
 
-                    for (i = 0; i < ilen; ++i) {
-                        value = scale._parseValue(data[i]);
-                        if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {
-                            continue;
-                        }
+    return this;
+  },
+  promise: function promise(type) {
+    var _p = this._private;
+    var arr;
+
+    switch (type) {
+      case 'frame':
+        arr = _p.frames;
+        break;
+
+      default:
+      case 'complete':
+      case 'completed':
+        arr = _p.completes;
+    }
 
-                        scale.min = Math.min(scale.min, value.min);
-                        scale.max = Math.max(scale.max, value.max);
-                    }
-                }
+    return new Promise$1(function (resolve, reject) {
+      arr.push(function () {
+        resolve();
+      });
+    });
+  }
+});
+anifn.complete = anifn.completed;
+anifn.run = anifn.play;
+anifn.running = anifn.playing;
+
+var define = {
+  animated: function animated() {
+    return function animatedImpl() {
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return false;
+      }
+
+      var ele = all[0];
+
+      if (ele) {
+        return ele._private.animation.current.length > 0;
+      }
+    };
+  },
+  // animated
+  clearQueue: function clearQueue() {
+    return function clearQueueImpl() {
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      for (var i = 0; i < all.length; i++) {
+        var ele = all[i];
+        ele._private.animation.queue = [];
+      }
+
+      return this;
+    };
+  },
+  // clearQueue
+  delay: function delay() {
+    return function delayImpl(time, complete) {
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      return this.animate({
+        delay: time,
+        duration: time,
+        complete: complete
+      });
+    };
+  },
+  // delay
+  delayAnimation: function delayAnimation() {
+    return function delayAnimationImpl(time, complete) {
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      return this.animation({
+        delay: time,
+        duration: time,
+        complete: complete
+      });
+    };
+  },
+  // delay
+  animation: function animation() {
+    return function animationImpl(properties, params) {
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var cy = this._private.cy || this;
+      var isCore = !selfIsArrayLike;
+      var isEles = !isCore;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      var style = cy.style();
+      properties = extend({}, properties, params);
+      var propertiesEmpty = Object.keys(properties).length === 0;
+
+      if (propertiesEmpty) {
+        return new Animation(all[0], properties); // nothing to animate
+      }
+
+      if (properties.duration === undefined) {
+        properties.duration = 400;
+      }
+
+      switch (properties.duration) {
+        case 'slow':
+          properties.duration = 600;
+          break;
+
+        case 'fast':
+          properties.duration = 200;
+          break;
+      }
+
+      if (isEles) {
+        properties.style = style.getPropsList(properties.style || properties.css);
+        properties.css = undefined;
+      }
+
+      if (isEles && properties.renderedPosition != null) {
+        var rpos = properties.renderedPosition;
+        var pan = cy.pan();
+        var zoom = cy.zoom();
+        properties.position = renderedToModelPosition(rpos, zoom, pan);
+      } // override pan w/ panBy if set
+
+
+      if (isCore && properties.panBy != null) {
+        var panBy = properties.panBy;
+        var cyPan = cy.pan();
+        properties.pan = {
+          x: cyPan.x + panBy.x,
+          y: cyPan.y + panBy.y
+        };
+      } // override pan w/ center if set
+
+
+      var center = properties.center || properties.centre;
+
+      if (isCore && center != null) {
+        var centerPan = cy.getCenterPan(center.eles, properties.zoom);
+
+        if (centerPan != null) {
+          properties.pan = centerPan;
+        }
+      } // override pan & zoom w/ fit if set
 
-                var scale_linear = scale_linearbase.extend({
-                    determineDataLimits: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var chart = me.chart;
-                        var datasets = chart.data.datasets;
-                        var metasets = me._getMatchingVisibleMetas();
-                        var hasStacks = opts.stacked;
-                        var stacks = {};
-                        var ilen = metasets.length;
-                        var i, meta, data, values;
-
-                        me.min = Number.POSITIVE_INFINITY;
-                        me.max = Number.NEGATIVE_INFINITY;
-
-                        if (hasStacks === undefined) {
-                            for (i = 0; !hasStacks && i < ilen; ++i) {
-                                meta = metasets[i];
-                                hasStacks = meta.stack !== undefined;
-                            }
-                        }
 
-                        for (i = 0; i < ilen; ++i) {
-                            meta = metasets[i];
-                            data = datasets[meta.index].data;
-                            if (hasStacks) {
-                                stackData(me, stacks, meta, data);
-                            } else {
-                                updateMinMax(me, meta, data);
-                            }
-                        }
+      if (isCore && properties.fit != null) {
+        var fit = properties.fit;
+        var fitVp = cy.getFitViewport(fit.eles || fit.boundingBox, fit.padding);
 
-                        helpers$1.each(stacks, function(stackValues) {
-                            values = stackValues.pos.concat(stackValues.neg);
-                            me.min = Math.min(me.min, helpers$1.min(values));
-                            me.max = Math.max(me.max, helpers$1.max(values));
-                        });
+        if (fitVp != null) {
+          properties.pan = fitVp.pan;
+          properties.zoom = fitVp.zoom;
+        }
+      } // override zoom (& potentially pan) w/ zoom obj if set
 
-                        me.min = helpers$1.isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;
-                        me.max = helpers$1.isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;
 
-                        // Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero
-                        me.handleTickRangeOptions();
-                    },
+      if (isCore && plainObject(properties.zoom)) {
+        var vp = cy.getZoomedViewport(properties.zoom);
 
-                    // Returns the maximum number of ticks based on the scale dimension
-                    _computeTickLimit: function() {
-                        var me = this;
-                        var tickFont;
+        if (vp != null) {
+          if (vp.zoomed) {
+            properties.zoom = vp.zoom;
+          }
 
-                        if (me.isHorizontal()) {
-                            return Math.ceil(me.width / 40);
-                        }
-                        tickFont = helpers$1.options._parseFont(me.options.ticks);
-                        return Math.ceil(me.height / tickFont.lineHeight);
-                    },
-
-                    // Called after the ticks are built. We need
-                    handleDirectionalChanges: function() {
-                        if (!this.isHorizontal()) {
-                            // We are in a vertical orientation. The top value is the highest. So reverse the array
-                            this.ticks.reverse();
-                        }
-                    },
-
-                    getLabelForIndex: function(index, datasetIndex) {
-                        return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);
-                    },
-
-                    // Utils
-                    getPixelForValue: function(value) {
-                        var me = this;
-                        return me.getPixelForDecimal((+me.getRightValue(value) - me._startValue) / me._valueRange);
-                    },
-
-                    getValueForPixel: function(pixel) {
-                        return this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;
-                    },
-
-                    getPixelForTick: function(index) {
-                        var ticks = this.ticksAsNumbers;
-                        if (index < 0 || index > ticks.length - 1) {
-                            return null;
-                        }
-                        return this.getPixelForValue(ticks[index]);
-                    }
-                });
+          if (vp.panned) {
+            properties.pan = vp.pan;
+          }
+        } else {
+          properties.zoom = null; // an inavalid zoom (e.g. no delta) gets automatically destroyed
+        }
+      }
+
+      return new Animation(all[0], properties);
+    };
+  },
+  // animate
+  animate: function animate() {
+    return function animateImpl(properties, params) {
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      if (params) {
+        properties = extend({}, properties, params);
+      } // manually hook and run the animation
+
+
+      for (var i = 0; i < all.length; i++) {
+        var ele = all[i];
+        var queue = ele.animated() && (properties.queue === undefined || properties.queue);
+        var ani = ele.animation(properties, queue ? {
+          queue: true
+        } : undefined);
+        ani.play();
+      }
+
+      return this; // chaining
+    };
+  },
+  // animate
+  stop: function stop() {
+    return function stopImpl(clearQueue, jumpToEnd) {
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var cy = this._private.cy || this;
+
+      if (!cy.styleEnabled()) {
+        return this;
+      }
+
+      for (var i = 0; i < all.length; i++) {
+        var ele = all[i];
+        var _p = ele._private;
+        var anis = _p.animation.current;
+
+        for (var j = 0; j < anis.length; j++) {
+          var ani = anis[j];
+          var ani_p = ani._private;
+
+          if (jumpToEnd) {
+            // next iteration of the animation loop, the animation
+            // will go straight to the end and be removed
+            ani_p.duration = 0;
+          }
+        } // clear the queue of future animations
+
+
+        if (clearQueue) {
+          _p.animation.queue = [];
+        }
 
-// INTERNAL: static default options, registered in src/index.js
-                var _defaults$1 = defaultConfig$1;
-                scale_linear._defaults = _defaults$1;
+        if (!jumpToEnd) {
+          _p.animation.current = [];
+        }
+      } // we have to notify (the animation loop doesn't do it for us on `stop`)
+
+
+      cy.notify('draw');
+      return this;
+    };
+  } // stop
+
+}; // define
+
+var define$1 = {
+  // access data field
+  data: function data(params) {
+    var defaults = {
+      field: 'data',
+      bindingEvent: 'data',
+      allowBinding: false,
+      allowSetting: false,
+      allowGetting: false,
+      settingEvent: 'data',
+      settingTriggersEvent: false,
+      triggerFnName: 'trigger',
+      immutableKeys: {},
+      // key => true if immutable
+      updateStyle: false,
+      beforeGet: function beforeGet(self) {},
+      beforeSet: function beforeSet(self, obj) {},
+      onSet: function onSet(self) {},
+      canSet: function canSet(self) {
+        return true;
+      }
+    };
+    params = extend({}, defaults, params);
+    return function dataImpl(name, value) {
+      var p = params;
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+
+      var single = selfIsArrayLike ? self[0] : self; // .data('foo', ...)
+
+      if (string(name)) {
+        // set or get property
+        // .data('foo')
+        if (p.allowGetting && value === undefined) {
+          // get
+          var ret;
+
+          if (single) {
+            p.beforeGet(single);
+            ret = single._private[p.field][name];
+          }
+
+          return ret; // .data('foo', 'bar')
+        } else if (p.allowSetting && value !== undefined) {
+          // set
+          var valid = !p.immutableKeys[name];
+
+          if (valid) {
+            var change = _defineProperty({}, name, value);
+
+            p.beforeSet(self, change);
+
+            for (var i = 0, l = all.length; i < l; i++) {
+              var ele = all[i];
+
+              if (p.canSet(ele)) {
+                ele._private[p.field][name] = value;
+              }
+            } // update mappers if asked
+
+
+            if (p.updateStyle) {
+              self.updateStyle();
+            } // call onSet callback
+
+
+            p.onSet(self);
+
+            if (p.settingTriggersEvent) {
+              self[p.triggerFnName](p.settingEvent);
+            }
+          }
+        } // .data({ 'foo': 'bar' })
 
-                var valueOrDefault$b = helpers$1.valueOrDefault;
-                var log10 = helpers$1.math.log10;
+      } else if (p.allowSetting && plainObject(name)) {
+        // extend
+        var obj = name;
+        var k, v;
+        var keys = Object.keys(obj);
+        p.beforeSet(self, obj);
 
-                /**
-                 * Generate a set of logarithmic ticks
-                 * @param generationOptions the options used to generate the ticks
-                 * @param dataRange the range of the data
-                 * @returns {number[]} array of tick values
-                 */
-                function generateTicks$1(generationOptions, dataRange) {
-                    var ticks = [];
+        for (var _i = 0; _i < keys.length; _i++) {
+          k = keys[_i];
+          v = obj[k];
 
-                    var tickVal = valueOrDefault$b(generationOptions.min, Math.pow(10, Math.floor(log10(dataRange.min))));
+          var _valid = !p.immutableKeys[k];
 
-                    var endExp = Math.floor(log10(dataRange.max));
-                    var endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));
-                    var exp, significand;
+          if (_valid) {
+            for (var j = 0; j < all.length; j++) {
+              var _ele = all[j];
 
-                    if (tickVal === 0) {
-                        exp = Math.floor(log10(dataRange.minNotZero));
-                        significand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));
+              if (p.canSet(_ele)) {
+                _ele._private[p.field][k] = v;
+              }
+            }
+          }
+        } // update mappers if asked
 
-                        ticks.push(tickVal);
-                        tickVal = significand * Math.pow(10, exp);
-                    } else {
-                        exp = Math.floor(log10(tickVal));
-                        significand = Math.floor(tickVal / Math.pow(10, exp));
-                    }
-                    var precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;
 
-                    do {
-                        ticks.push(tickVal);
+        if (p.updateStyle) {
+          self.updateStyle();
+        } // call onSet callback
 
-                        ++significand;
-                        if (significand === 10) {
-                            significand = 1;
-                            ++exp;
-                            precision = exp >= 0 ? 1 : precision;
-                        }
 
-                        tickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;
-                    } while (exp < endExp || (exp === endExp && significand < endSignificand));
+        p.onSet(self);
 
-                    var lastTick = valueOrDefault$b(generationOptions.max, tickVal);
-                    ticks.push(lastTick);
+        if (p.settingTriggersEvent) {
+          self[p.triggerFnName](p.settingEvent);
+        } // .data(function(){ ... })
 
-                    return ticks;
-                }
+      } else if (p.allowBinding && fn(name)) {
+        // bind to event
+        var fn$1 = name;
+        self.on(p.bindingEvent, fn$1); // .data()
+      } else if (p.allowGetting && name === undefined) {
+        // get whole object
+        var _ret;
 
-                var defaultConfig$2 = {
-                    position: 'left',
+        if (single) {
+          p.beforeGet(single);
+          _ret = single._private[p.field];
+        }
 
-                    // label settings
-                    ticks: {
-                        callback: core_ticks.formatters.logarithmic
-                    }
-                };
+        return _ret;
+      }
+
+      return self; // maintain chainability
+    }; // function
+  },
+  // data
+  // remove data field
+  removeData: function removeData(params) {
+    var defaults = {
+      field: 'data',
+      event: 'data',
+      triggerFnName: 'trigger',
+      triggerEvent: false,
+      immutableKeys: {} // key => true if immutable
+
+    };
+    params = extend({}, defaults, params);
+    return function removeDataImpl(names) {
+      var p = params;
+      var self = this;
+      var selfIsArrayLike = self.length !== undefined;
+      var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+      // .removeData('foo bar')
+
+      if (string(names)) {
+        // then get the list of keys, and delete them
+        var keys = names.split(/\s+/);
+        var l = keys.length;
+
+        for (var i = 0; i < l; i++) {
+          // delete each non-empty key
+          var key = keys[i];
+
+          if (emptyString(key)) {
+            continue;
+          }
+
+          var valid = !p.immutableKeys[key]; // not valid if immutable
+
+          if (valid) {
+            for (var i_a = 0, l_a = all.length; i_a < l_a; i_a++) {
+              all[i_a]._private[p.field][key] = undefined;
+            }
+          }
+        }
 
-// TODO(v3): change this to positiveOrDefault
-                function nonNegativeOrDefault(value, defaultValue) {
-                    return helpers$1.isFinite(value) && value >= 0 ? value : defaultValue;
-                }
+        if (p.triggerEvent) {
+          self[p.triggerFnName](p.event);
+        } // .removeData()
 
-                var scale_logarithmic = core_scale.extend({
-                    determineDataLimits: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var chart = me.chart;
-                        var datasets = chart.data.datasets;
-                        var isHorizontal = me.isHorizontal();
-                        function IDMatches(meta) {
-                            return isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;
-                        }
-                        var datasetIndex, meta, value, data, i, ilen;
-
-                        // Calculate Range
-                        me.min = Number.POSITIVE_INFINITY;
-                        me.max = Number.NEGATIVE_INFINITY;
-                        me.minNotZero = Number.POSITIVE_INFINITY;
-
-                        var hasStacks = opts.stacked;
-                        if (hasStacks === undefined) {
-                            for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
-                                meta = chart.getDatasetMeta(datasetIndex);
-                                if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&
-                                    meta.stack !== undefined) {
-                                    hasStacks = true;
-                                    break;
-                                }
-                            }
-                        }
+      } else if (names === undefined) {
+        // then delete all keys
+        for (var _i_a = 0, _l_a = all.length; _i_a < _l_a; _i_a++) {
+          var _privateFields = all[_i_a]._private[p.field];
 
-                        if (opts.stacked || hasStacks) {
-                            var valuesPerStack = {};
-
-                            for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
-                                meta = chart.getDatasetMeta(datasetIndex);
-                                var key = [
-                                    meta.type,
-                                    // we have a separate stack for stack=undefined datasets when the opts.stacked is undefined
-                                    ((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),
-                                    meta.stack
-                                ].join('.');
-
-                                if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {
-                                    if (valuesPerStack[key] === undefined) {
-                                        valuesPerStack[key] = [];
-                                    }
-
-                                    data = datasets[datasetIndex].data;
-                                    for (i = 0, ilen = data.length; i < ilen; i++) {
-                                        var values = valuesPerStack[key];
-                                        value = me._parseValue(data[i]);
-                                        // invalid, hidden and negative values are ignored
-                                        if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {
-                                            continue;
-                                        }
-                                        values[i] = values[i] || 0;
-                                        values[i] += value.max;
-                                    }
-                                }
-                            }
+          var _keys = Object.keys(_privateFields);
 
-                            helpers$1.each(valuesPerStack, function(valuesForType) {
-                                if (valuesForType.length > 0) {
-                                    var minVal = helpers$1.min(valuesForType);
-                                    var maxVal = helpers$1.max(valuesForType);
-                                    me.min = Math.min(me.min, minVal);
-                                    me.max = Math.max(me.max, maxVal);
-                                }
-                            });
-
-                        } else {
-                            for (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {
-                                meta = chart.getDatasetMeta(datasetIndex);
-                                if (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {
-                                    data = datasets[datasetIndex].data;
-                                    for (i = 0, ilen = data.length; i < ilen; i++) {
-                                        value = me._parseValue(data[i]);
-                                        // invalid, hidden and negative values are ignored
-                                        if (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {
-                                            continue;
-                                        }
-
-                                        me.min = Math.min(value.min, me.min);
-                                        me.max = Math.max(value.max, me.max);
-
-                                        if (value.min !== 0) {
-                                            me.minNotZero = Math.min(value.min, me.minNotZero);
-                                        }
-                                    }
-                                }
-                            }
-                        }
+          for (var _i2 = 0; _i2 < _keys.length; _i2++) {
+            var _key = _keys[_i2];
+            var validKeyToDelete = !p.immutableKeys[_key];
 
-                        me.min = helpers$1.isFinite(me.min) ? me.min : null;
-                        me.max = helpers$1.isFinite(me.max) ? me.max : null;
-                        me.minNotZero = helpers$1.isFinite(me.minNotZero) ? me.minNotZero : null;
-
-                        // Common base implementation to handle ticks.min, ticks.max
-                        this.handleTickRangeOptions();
-                    },
-
-                    handleTickRangeOptions: function() {
-                        var me = this;
-                        var tickOpts = me.options.ticks;
-                        var DEFAULT_MIN = 1;
-                        var DEFAULT_MAX = 10;
-
-                        me.min = nonNegativeOrDefault(tickOpts.min, me.min);
-                        me.max = nonNegativeOrDefault(tickOpts.max, me.max);
-
-                        if (me.min === me.max) {
-                            if (me.min !== 0 && me.min !== null) {
-                                me.min = Math.pow(10, Math.floor(log10(me.min)) - 1);
-                                me.max = Math.pow(10, Math.floor(log10(me.max)) + 1);
-                            } else {
-                                me.min = DEFAULT_MIN;
-                                me.max = DEFAULT_MAX;
-                            }
-                        }
-                        if (me.min === null) {
-                            me.min = Math.pow(10, Math.floor(log10(me.max)) - 1);
-                        }
-                        if (me.max === null) {
-                            me.max = me.min !== 0
-                                ? Math.pow(10, Math.floor(log10(me.min)) + 1)
-                                : DEFAULT_MAX;
-                        }
-                        if (me.minNotZero === null) {
-                            if (me.min > 0) {
-                                me.minNotZero = me.min;
-                            } else if (me.max < 1) {
-                                me.minNotZero = Math.pow(10, Math.floor(log10(me.max)));
-                            } else {
-                                me.minNotZero = DEFAULT_MIN;
-                            }
-                        }
-                    },
-
-                    buildTicks: function() {
-                        var me = this;
-                        var tickOpts = me.options.ticks;
-                        var reverse = !me.isHorizontal();
-
-                        var generationOptions = {
-                            min: nonNegativeOrDefault(tickOpts.min),
-                            max: nonNegativeOrDefault(tickOpts.max)
-                        };
-                        var ticks = me.ticks = generateTicks$1(generationOptions, me);
-
-                        // At this point, we need to update our max and min given the tick values since we have expanded the
-                        // range of the scale
-                        me.max = helpers$1.max(ticks);
-                        me.min = helpers$1.min(ticks);
-
-                        if (tickOpts.reverse) {
-                            reverse = !reverse;
-                            me.start = me.max;
-                            me.end = me.min;
-                        } else {
-                            me.start = me.min;
-                            me.end = me.max;
-                        }
-                        if (reverse) {
-                            ticks.reverse();
-                        }
-                    },
+            if (validKeyToDelete) {
+              _privateFields[_key] = undefined;
+            }
+          }
+        }
 
-                    convertTicksToLabels: function() {
-                        this.tickValues = this.ticks.slice();
+        if (p.triggerEvent) {
+          self[p.triggerFnName](p.event);
+        }
+      }
+
+      return self; // maintain chaining
+    }; // function
+  } // removeData
+
+}; // define
+
+var define$2 = {
+  eventAliasesOn: function eventAliasesOn(proto) {
+    var p = proto;
+    p.addListener = p.listen = p.bind = p.on;
+    p.unlisten = p.unbind = p.off = p.removeListener;
+    p.trigger = p.emit; // this is just a wrapper alias of .on()
+
+    p.pon = p.promiseOn = function (events, selector) {
+      var self = this;
+      var args = Array.prototype.slice.call(arguments, 0);
+      return new Promise$1(function (resolve, reject) {
+        var callback = function callback(e) {
+          self.off.apply(self, offArgs);
+          resolve(e);
+        };
+
+        var onArgs = args.concat([callback]);
+        var offArgs = onArgs.concat([]);
+        self.on.apply(self, onArgs);
+      });
+    };
+  }
+}; // define
 
-                        core_scale.prototype.convertTicksToLabels.call(this);
-                    },
+// use this module to cherry pick functions into your prototype
+var define$3 = {};
+[define, define$1, define$2].forEach(function (m) {
+  extend(define$3, m);
+});
+
+var elesfn$d = {
+  animate: define$3.animate(),
+  animation: define$3.animation(),
+  animated: define$3.animated(),
+  clearQueue: define$3.clearQueue(),
+  delay: define$3.delay(),
+  delayAnimation: define$3.delayAnimation(),
+  stop: define$3.stop()
+};
+
+var elesfn$e = {
+  classes: function classes(_classes) {
+    var self = this;
+
+    if (_classes === undefined) {
+      var ret = [];
+
+      self[0]._private.classes.forEach(function (cls) {
+        return ret.push(cls);
+      });
 
-                    // Get the correct tooltip label
-                    getLabelForIndex: function(index, datasetIndex) {
-                        return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);
-                    },
+      return ret;
+    } else if (!array(_classes)) {
+      // extract classes from string
+      _classes = (_classes || '').match(/\S+/g) || [];
+    }
 
-                    getPixelForTick: function(index) {
-                        var ticks = this.tickValues;
-                        if (index < 0 || index > ticks.length - 1) {
-                            return null;
-                        }
-                        return this.getPixelForValue(ticks[index]);
-                    },
-
-                    /**
-                     * Returns the value of the first tick.
-                     * @param {number} value - The minimum not zero value.
-                     * @return {number} The first tick value.
-                     * @private
-                     */
-                    _getFirstTickValue: function(value) {
-                        var exp = Math.floor(log10(value));
-                        var significand = Math.floor(value / Math.pow(10, exp));
-
-                        return significand * Math.pow(10, exp);
-                    },
-
-                    _configure: function() {
-                        var me = this;
-                        var start = me.min;
-                        var offset = 0;
-
-                        core_scale.prototype._configure.call(me);
-
-                        if (start === 0) {
-                            start = me._getFirstTickValue(me.minNotZero);
-                            offset = valueOrDefault$b(me.options.ticks.fontSize, core_defaults.global.defaultFontSize) / me._length;
-                        }
+    var changed = [];
+    var classesSet = new Set$1(_classes); // check and update each ele
 
-                        me._startValue = log10(start);
-                        me._valueOffset = offset;
-                        me._valueRange = (log10(me.max) - log10(start)) / (1 - offset);
-                    },
+    for (var j = 0; j < self.length; j++) {
+      var ele = self[j];
+      var _p = ele._private;
+      var eleClasses = _p.classes;
+      var changedEle = false; // check if ele has all of the passed classes
 
-                    getPixelForValue: function(value) {
-                        var me = this;
-                        var decimal = 0;
+      for (var i = 0; i < _classes.length; i++) {
+        var cls = _classes[i];
+        var eleHasClass = eleClasses.has(cls);
 
-                        value = +me.getRightValue(value);
+        if (!eleHasClass) {
+          changedEle = true;
+          break;
+        }
+      } // check if ele has classes outside of those passed
 
-                        if (value > me.min && value > 0) {
-                            decimal = (log10(value) - me._startValue) / me._valueRange + me._valueOffset;
-                        }
-                        return me.getPixelForDecimal(decimal);
-                    },
-
-                    getValueForPixel: function(pixel) {
-                        var me = this;
-                        var decimal = me.getDecimalForPixel(pixel);
-                        return decimal === 0 && me.min === 0
-                            ? 0
-                            : Math.pow(10, me._startValue + (decimal - me._valueOffset) * me._valueRange);
-                    }
-                });
 
-// INTERNAL: static default options, registered in src/index.js
-                var _defaults$2 = defaultConfig$2;
-                scale_logarithmic._defaults = _defaults$2;
+      if (!changedEle) {
+        changedEle = eleClasses.size !== _classes.length;
+      }
 
-                var valueOrDefault$c = helpers$1.valueOrDefault;
-                var valueAtIndexOrDefault$1 = helpers$1.valueAtIndexOrDefault;
-                var resolve$4 = helpers$1.options.resolve;
+      if (changedEle) {
+        _p.classes = classesSet;
+        changed.push(ele);
+      }
+    } // trigger update style on those eles that had class changes
 
-                var defaultConfig$3 = {
-                    display: true,
 
-                    // Boolean - Whether to animate scaling the chart from the centre
-                    animate: true,
-                    position: 'chartArea',
+    if (changed.length > 0) {
+      this.spawn(changed).updateStyle().emit('class');
+    }
 
-                    angleLines: {
-                        display: true,
-                        color: 'rgba(0,0,0,0.1)',
-                        lineWidth: 1,
-                        borderDash: [],
-                        borderDashOffset: 0.0
-                    },
+    return self;
+  },
+  addClass: function addClass(classes) {
+    return this.toggleClass(classes, true);
+  },
+  hasClass: function hasClass(className) {
+    var ele = this[0];
+    return ele != null && ele._private.classes.has(className);
+  },
+  toggleClass: function toggleClass(classes, toggle) {
+    if (!array(classes)) {
+      // extract classes from string
+      classes = classes.match(/\S+/g) || [];
+    }
 
-                    gridLines: {
-                        circular: false
-                    },
+    var self = this;
+    var toggleUndefd = toggle === undefined;
+    var changed = []; // eles who had classes changed
+
+    for (var i = 0, il = self.length; i < il; i++) {
+      var ele = self[i];
+      var eleClasses = ele._private.classes;
+      var changedEle = false;
+
+      for (var j = 0; j < classes.length; j++) {
+        var cls = classes[j];
+        var hasClass = eleClasses.has(cls);
+        var changedNow = false;
+
+        if (toggle || toggleUndefd && !hasClass) {
+          eleClasses.add(cls);
+          changedNow = true;
+        } else if (!toggle || toggleUndefd && hasClass) {
+          eleClasses["delete"](cls);
+          changedNow = true;
+        }
 
-                    // label settings
-                    ticks: {
-                        // Boolean - Show a backdrop to the scale label
-                        showLabelBackdrop: true,
+        if (!changedEle && changedNow) {
+          changed.push(ele);
+          changedEle = true;
+        }
+      } // for j classes
 
-                        // String - The colour of the label backdrop
-                        backdropColor: 'rgba(255,255,255,0.75)',
+    } // for i eles
+    // trigger update style on those eles that had class changes
 
-                        // Number - The backdrop padding above & below the label in pixels
-                        backdropPaddingY: 2,
 
-                        // Number - The backdrop padding to the side of the label in pixels
-                        backdropPaddingX: 2,
+    if (changed.length > 0) {
+      this.spawn(changed).updateStyle().emit('class');
+    }
 
-                        callback: core_ticks.formatters.linear
-                    },
+    return self;
+  },
+  removeClass: function removeClass(classes) {
+    return this.toggleClass(classes, false);
+  },
+  flashClass: function flashClass(classes, duration) {
+    var self = this;
+
+    if (duration == null) {
+      duration = 250;
+    } else if (duration === 0) {
+      return self; // nothing to do really
+    }
 
-                    pointLabels: {
-                        // Boolean - if true, show point labels
-                        display: true,
+    self.addClass(classes);
+    setTimeout(function () {
+      self.removeClass(classes);
+    }, duration);
+    return self;
+  }
+};
+elesfn$e.className = elesfn$e.classNames = elesfn$e.classes;
 
-                        // Number - Point label font size in pixels
-                        fontSize: 10,
+var tokens = {
+  metaChar: '[\\!\\"\\#\\$\\%\\&\\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]',
+  // chars we need to escape in let names, etc
+  comparatorOp: '=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=',
+  // binary comparison op (used in data selectors)
+  boolOp: '\\?|\\!|\\^',
+  // boolean (unary) operators (used in data selectors)
+  string: '"(?:\\\\"|[^"])*"' + '|' + "'(?:\\\\'|[^'])*'",
+  // string literals (used in data selectors) -- doublequotes | singlequotes
+  number: number$1,
+  // number literal (used in data selectors) --- e.g. 0.1234, 1234, 12e123
+  meta: 'degree|indegree|outdegree',
+  // allowed metadata fields (i.e. allowed functions to use from Collection)
+  separator: '\\s*,\\s*',
+  // queries are separated by commas, e.g. edge[foo = 'bar'], node.someClass
+  descendant: '\\s+',
+  child: '\\s+>\\s+',
+  subject: '\\$',
+  group: 'node|edge|\\*',
+  directedEdge: '\\s+->\\s+',
+  undirectedEdge: '\\s+<->\\s+'
+};
+tokens.variable = '(?:[\\w-]|(?:\\\\' + tokens.metaChar + '))+'; // a variable name
 
-                        // Function - Used to convert point labels
-                        callback: function(label) {
-                            return label;
-                        }
-                    }
-                };
+tokens.value = tokens.string + '|' + tokens.number; // a value literal, either a string or number
 
-                function getTickBackdropHeight(opts) {
-                    var tickOpts = opts.ticks;
+tokens.className = tokens.variable; // a class name (follows variable conventions)
 
-                    if (tickOpts.display && opts.display) {
-                        return valueOrDefault$c(tickOpts.fontSize, core_defaults.global.defaultFontSize) + tickOpts.backdropPaddingY * 2;
-                    }
-                    return 0;
-                }
+tokens.id = tokens.variable; // an element id (follows variable conventions)
 
-                function measureLabelSize(ctx, lineHeight, label) {
-                    if (helpers$1.isArray(label)) {
-                        return {
-                            w: helpers$1.longestText(ctx, ctx.font, label),
-                            h: label.length * lineHeight
-                        };
-                    }
+(function () {
+  var ops, op, i; // add @ variants to comparatorOp
 
-                    return {
-                        w: ctx.measureText(label).width,
-                        h: lineHeight
-                    };
-                }
+  ops = tokens.comparatorOp.split('|');
 
-                function determineLimits(angle, pos, size, min, max) {
-                    if (angle === min || angle === max) {
-                        return {
-                            start: pos - (size / 2),
-                            end: pos + (size / 2)
-                        };
-                    } else if (angle < min || angle > max) {
-                        return {
-                            start: pos - size,
-                            end: pos
-                        };
-                    }
+  for (i = 0; i < ops.length; i++) {
+    op = ops[i];
+    tokens.comparatorOp += '|@' + op;
+  } // add ! variants to comparatorOp
 
-                    return {
-                        start: pos,
-                        end: pos + size
-                    };
-                }
 
-                /**
-                 * Helper function to fit a radial linear scale with point labels
-                 */
-                function fitWithPointLabels(scale) {
-
-                    // Right, this is really confusing and there is a lot of maths going on here
-                    // The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9
-                    //
-                    // Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif
-                    //
-                    // Solution:
-                    //
-                    // We assume the radius of the polygon is half the size of the canvas at first
-                    // at each index we check if the text overlaps.
-                    //
-                    // Where it does, we store that angle and that index.
-                    //
-                    // After finding the largest index and angle we calculate how much we need to remove
-                    // from the shape radius to move the point inwards by that x.
-                    //
-                    // We average the left and right distances to get the maximum shape radius that can fit in the box
-                    // along with labels.
-                    //
-                    // Once we have that, we can find the centre point for the chart, by taking the x text protrusion
-                    // on each side, removing that from the size, halving it and adding the left x protrusion width.
-                    //
-                    // This will mean we have a shape fitted to the canvas, as large as it can be with the labels
-                    // and position it in the most space efficient manner
-                    //
-                    // https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif
-
-                    var plFont = helpers$1.options._parseFont(scale.options.pointLabels);
-
-                    // Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.
-                    // Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points
-                    var furthestLimits = {
-                        l: 0,
-                        r: scale.width,
-                        t: 0,
-                        b: scale.height - scale.paddingTop
-                    };
-                    var furthestAngles = {};
-                    var i, textSize, pointPosition;
-
-                    scale.ctx.font = plFont.string;
-                    scale._pointLabelSizes = [];
-
-                    var valueCount = scale.chart.data.labels.length;
-                    for (i = 0; i < valueCount; i++) {
-                        pointPosition = scale.getPointPosition(i, scale.drawingArea + 5);
-                        textSize = measureLabelSize(scale.ctx, plFont.lineHeight, scale.pointLabels[i]);
-                        scale._pointLabelSizes[i] = textSize;
-
-                        // Add quarter circle to make degree 0 mean top of circle
-                        var angleRadians = scale.getIndexAngle(i);
-                        var angle = helpers$1.toDegrees(angleRadians) % 360;
-                        var hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);
-                        var vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);
-
-                        if (hLimits.start < furthestLimits.l) {
-                            furthestLimits.l = hLimits.start;
-                            furthestAngles.l = angleRadians;
-                        }
+  ops = tokens.comparatorOp.split('|');
 
-                        if (hLimits.end > furthestLimits.r) {
-                            furthestLimits.r = hLimits.end;
-                            furthestAngles.r = angleRadians;
-                        }
+  for (i = 0; i < ops.length; i++) {
+    op = ops[i];
 
-                        if (vLimits.start < furthestLimits.t) {
-                            furthestLimits.t = vLimits.start;
-                            furthestAngles.t = angleRadians;
-                        }
+    if (op.indexOf('!') >= 0) {
+      continue;
+    } // skip ops that explicitly contain !
 
-                        if (vLimits.end > furthestLimits.b) {
-                            furthestLimits.b = vLimits.end;
-                            furthestAngles.b = angleRadians;
-                        }
-                    }
 
-                    scale.setReductions(scale.drawingArea, furthestLimits, furthestAngles);
-                }
+    if (op === '=') {
+      continue;
+    } // skip = b/c != is explicitly defined
 
-                function getTextAlignForAngle(angle) {
-                    if (angle === 0 || angle === 180) {
-                        return 'center';
-                    } else if (angle < 180) {
-                        return 'left';
-                    }
 
-                    return 'right';
-                }
+    tokens.comparatorOp += '|\\!' + op;
+  }
+})();
 
-                function fillText(ctx, text, position, lineHeight) {
-                    var y = position.y + lineHeight / 2;
-                    var i, ilen;
+/**
+ * Make a new query object
+ *
+ * @prop type {Type} The type enum (int) of the query
+ * @prop checks List of checks to make against an ele to test for a match
+ */
+var newQuery = function newQuery() {
+  return {
+    checks: []
+  };
+};
+
+/**
+ * A check type enum-like object.  Uses integer values for fast match() lookup.
+ * The ordering does not matter as long as the ints are unique.
+ */
+var Type = {
+  /** E.g. node */
+  GROUP: 0,
 
-                    if (helpers$1.isArray(text)) {
-                        for (i = 0, ilen = text.length; i < ilen; ++i) {
-                            ctx.fillText(text[i], position.x, y);
-                            y += lineHeight;
-                        }
-                    } else {
-                        ctx.fillText(text, position.x, y);
-                    }
-                }
+  /** A collection of elements */
+  COLLECTION: 1,
 
-                function adjustPointPositionForLabelHeight(angle, textSize, position) {
-                    if (angle === 90 || angle === 270) {
-                        position.y -= (textSize.h / 2);
-                    } else if (angle > 270 || angle < 90) {
-                        position.y -= textSize.h;
-                    }
-                }
+  /** A filter(ele) function */
+  FILTER: 2,
 
-                function drawPointLabels(scale) {
-                    var ctx = scale.ctx;
-                    var opts = scale.options;
-                    var pointLabelOpts = opts.pointLabels;
-                    var tickBackdropHeight = getTickBackdropHeight(opts);
-                    var outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);
-                    var plFont = helpers$1.options._parseFont(pointLabelOpts);
-
-                    ctx.save();
-
-                    ctx.font = plFont.string;
-                    ctx.textBaseline = 'middle';
-
-                    for (var i = scale.chart.data.labels.length - 1; i >= 0; i--) {
-                        // Extra pixels out for some label spacing
-                        var extra = (i === 0 ? tickBackdropHeight / 2 : 0);
-                        var pointLabelPosition = scale.getPointPosition(i, outerDistance + extra + 5);
-
-                        // Keep this in loop since we may support array properties here
-                        var pointLabelFontColor = valueAtIndexOrDefault$1(pointLabelOpts.fontColor, i, core_defaults.global.defaultFontColor);
-                        ctx.fillStyle = pointLabelFontColor;
-
-                        var angleRadians = scale.getIndexAngle(i);
-                        var angle = helpers$1.toDegrees(angleRadians);
-                        ctx.textAlign = getTextAlignForAngle(angle);
-                        adjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);
-                        fillText(ctx, scale.pointLabels[i], pointLabelPosition, plFont.lineHeight);
-                    }
-                    ctx.restore();
-                }
+  /** E.g. [foo > 1] */
+  DATA_COMPARE: 3,
 
-                function drawRadiusLine(scale, gridLineOpts, radius, index) {
-                    var ctx = scale.ctx;
-                    var circular = gridLineOpts.circular;
-                    var valueCount = scale.chart.data.labels.length;
-                    var lineColor = valueAtIndexOrDefault$1(gridLineOpts.color, index - 1);
-                    var lineWidth = valueAtIndexOrDefault$1(gridLineOpts.lineWidth, index - 1);
-                    var pointPosition;
+  /** E.g. [foo] */
+  DATA_EXIST: 4,
 
-                    if ((!circular && !valueCount) || !lineColor || !lineWidth) {
-                        return;
-                    }
+  /** E.g. [?foo] */
+  DATA_BOOL: 5,
 
-                    ctx.save();
-                    ctx.strokeStyle = lineColor;
-                    ctx.lineWidth = lineWidth;
-                    if (ctx.setLineDash) {
-                        ctx.setLineDash(gridLineOpts.borderDash || []);
-                        ctx.lineDashOffset = gridLineOpts.borderDashOffset || 0.0;
-                    }
+  /** E.g. [[degree > 2]] */
+  META_COMPARE: 6,
 
-                    ctx.beginPath();
-                    if (circular) {
-                        // Draw circular arcs between the points
-                        ctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);
-                    } else {
-                        // Draw straight lines connecting each index
-                        pointPosition = scale.getPointPosition(0, radius);
-                        ctx.moveTo(pointPosition.x, pointPosition.y);
+  /** E.g. :selected */
+  STATE: 7,
 
-                        for (var i = 1; i < valueCount; i++) {
-                            pointPosition = scale.getPointPosition(i, radius);
-                            ctx.lineTo(pointPosition.x, pointPosition.y);
-                        }
-                    }
-                    ctx.closePath();
-                    ctx.stroke();
-                    ctx.restore();
-                }
+  /** E.g. #foo */
+  ID: 8,
 
-                function numberOrZero(param) {
-                    return helpers$1.isNumber(param) ? param : 0;
-                }
+  /** E.g. .foo */
+  CLASS: 9,
 
-                var scale_radialLinear = scale_linearbase.extend({
-                    setDimensions: function() {
-                        var me = this;
-
-                        // Set the unconstrained dimension before label rotation
-                        me.width = me.maxWidth;
-                        me.height = me.maxHeight;
-                        me.paddingTop = getTickBackdropHeight(me.options) / 2;
-                        me.xCenter = Math.floor(me.width / 2);
-                        me.yCenter = Math.floor((me.height - me.paddingTop) / 2);
-                        me.drawingArea = Math.min(me.height - me.paddingTop, me.width) / 2;
-                    },
-
-                    determineDataLimits: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var min = Number.POSITIVE_INFINITY;
-                        var max = Number.NEGATIVE_INFINITY;
-
-                        helpers$1.each(chart.data.datasets, function(dataset, datasetIndex) {
-                            if (chart.isDatasetVisible(datasetIndex)) {
-                                var meta = chart.getDatasetMeta(datasetIndex);
-
-                                helpers$1.each(dataset.data, function(rawValue, index) {
-                                    var value = +me.getRightValue(rawValue);
-                                    if (isNaN(value) || meta.data[index].hidden) {
-                                        return;
-                                    }
-
-                                    min = Math.min(value, min);
-                                    max = Math.max(value, max);
-                                });
-                            }
-                        });
+  /** E.g. #foo <-> #bar */
+  UNDIRECTED_EDGE: 10,
 
-                        me.min = (min === Number.POSITIVE_INFINITY ? 0 : min);
-                        me.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);
+  /** E.g. #foo -> #bar */
+  DIRECTED_EDGE: 11,
 
-                        // Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero
-                        me.handleTickRangeOptions();
-                    },
+  /** E.g. $#foo -> #bar */
+  NODE_SOURCE: 12,
 
-                    // Returns the maximum number of ticks based on the scale dimension
-                    _computeTickLimit: function() {
-                        return Math.ceil(this.drawingArea / getTickBackdropHeight(this.options));
-                    },
+  /** E.g. #foo -> $#bar */
+  NODE_TARGET: 13,
 
-                    convertTicksToLabels: function() {
-                        var me = this;
+  /** E.g. $#foo <-> #bar */
+  NODE_NEIGHBOR: 14,
 
-                        scale_linearbase.prototype.convertTicksToLabels.call(me);
+  /** E.g. #foo > #bar */
+  CHILD: 15,
 
-                        // Point labels
-                        me.pointLabels = me.chart.data.labels.map(function() {
-                            var label = helpers$1.callback(me.options.pointLabels.callback, arguments, me);
-                            return label || label === 0 ? label : '';
-                        });
-                    },
+  /** E.g. #foo #bar */
+  DESCENDANT: 16,
 
-                    getLabelForIndex: function(index, datasetIndex) {
-                        return +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);
-                    },
+  /** E.g. $#foo > #bar */
+  PARENT: 17,
 
-                    fit: function() {
-                        var me = this;
-                        var opts = me.options;
+  /** E.g. $#foo #bar */
+  ANCESTOR: 18,
 
-                        if (opts.display && opts.pointLabels.display) {
-                            fitWithPointLabels(me);
-                        } else {
-                            me.setCenterPoint(0, 0, 0, 0);
-                        }
-                    },
-
-                    /**
-                     * Set radius reductions and determine new radius and center point
-                     * @private
-                     */
-                    setReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {
-                        var me = this;
-                        var radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);
-                        var radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);
-                        var radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);
-                        var radiusReductionBottom = -Math.max(furthestLimits.b - (me.height - me.paddingTop), 0) / Math.cos(furthestAngles.b);
-
-                        radiusReductionLeft = numberOrZero(radiusReductionLeft);
-                        radiusReductionRight = numberOrZero(radiusReductionRight);
-                        radiusReductionTop = numberOrZero(radiusReductionTop);
-                        radiusReductionBottom = numberOrZero(radiusReductionBottom);
-
-                        me.drawingArea = Math.min(
-                            Math.floor(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),
-                            Math.floor(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));
-                        me.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);
-                    },
-
-                    setCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {
-                        var me = this;
-                        var maxRight = me.width - rightMovement - me.drawingArea;
-                        var maxLeft = leftMovement + me.drawingArea;
-                        var maxTop = topMovement + me.drawingArea;
-                        var maxBottom = (me.height - me.paddingTop) - bottomMovement - me.drawingArea;
-
-                        me.xCenter = Math.floor(((maxLeft + maxRight) / 2) + me.left);
-                        me.yCenter = Math.floor(((maxTop + maxBottom) / 2) + me.top + me.paddingTop);
-                    },
-
-                    getIndexAngle: function(index) {
-                        var chart = this.chart;
-                        var angleMultiplier = 360 / chart.data.labels.length;
-                        var options = chart.options || {};
-                        var startAngle = options.startAngle || 0;
-
-                        // Start from the top instead of right, so remove a quarter of the circle
-                        var angle = (index * angleMultiplier + startAngle) % 360;
-
-                        return (angle < 0 ? angle + 360 : angle) * Math.PI * 2 / 360;
-                    },
-
-                    getDistanceFromCenterForValue: function(value) {
-                        var me = this;
-
-                        if (helpers$1.isNullOrUndef(value)) {
-                            return NaN;
-                        }
+  /** E.g. #foo > $bar > #baz */
+  COMPOUND_SPLIT: 19,
 
-                        // Take into account half font size + the yPadding of the top value
-                        var scalingFactor = me.drawingArea / (me.max - me.min);
-                        if (me.options.ticks.reverse) {
-                            return (me.max - value) * scalingFactor;
-                        }
-                        return (value - me.min) * scalingFactor;
-                    },
-
-                    getPointPosition: function(index, distanceFromCenter) {
-                        var me = this;
-                        var thisAngle = me.getIndexAngle(index) - (Math.PI / 2);
-                        return {
-                            x: Math.cos(thisAngle) * distanceFromCenter + me.xCenter,
-                            y: Math.sin(thisAngle) * distanceFromCenter + me.yCenter
-                        };
-                    },
-
-                    getPointPositionForValue: function(index, value) {
-                        return this.getPointPosition(index, this.getDistanceFromCenterForValue(value));
-                    },
-
-                    getBasePosition: function(index) {
-                        var me = this;
-                        var min = me.min;
-                        var max = me.max;
-
-                        return me.getPointPositionForValue(index || 0,
-                            me.beginAtZero ? 0 :
-                                min < 0 && max < 0 ? max :
-                                    min > 0 && max > 0 ? min :
-                                        0);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _drawGrid: function() {
-                        var me = this;
-                        var ctx = me.ctx;
-                        var opts = me.options;
-                        var gridLineOpts = opts.gridLines;
-                        var angleLineOpts = opts.angleLines;
-                        var lineWidth = valueOrDefault$c(angleLineOpts.lineWidth, gridLineOpts.lineWidth);
-                        var lineColor = valueOrDefault$c(angleLineOpts.color, gridLineOpts.color);
-                        var i, offset, position;
-
-                        if (opts.pointLabels.display) {
-                            drawPointLabels(me);
-                        }
+  /** Always matches, useful placeholder for subject in `COMPOUND_SPLIT` */
+  TRUE: 20
+};
 
-                        if (gridLineOpts.display) {
-                            helpers$1.each(me.ticks, function(label, index) {
-                                if (index !== 0) {
-                                    offset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);
-                                    drawRadiusLine(me, gridLineOpts, offset, index);
-                                }
-                            });
-                        }
+var stateSelectors = [{
+  selector: ':selected',
+  matches: function matches(ele) {
+    return ele.selected();
+  }
+}, {
+  selector: ':unselected',
+  matches: function matches(ele) {
+    return !ele.selected();
+  }
+}, {
+  selector: ':selectable',
+  matches: function matches(ele) {
+    return ele.selectable();
+  }
+}, {
+  selector: ':unselectable',
+  matches: function matches(ele) {
+    return !ele.selectable();
+  }
+}, {
+  selector: ':locked',
+  matches: function matches(ele) {
+    return ele.locked();
+  }
+}, {
+  selector: ':unlocked',
+  matches: function matches(ele) {
+    return !ele.locked();
+  }
+}, {
+  selector: ':visible',
+  matches: function matches(ele) {
+    return ele.visible();
+  }
+}, {
+  selector: ':hidden',
+  matches: function matches(ele) {
+    return !ele.visible();
+  }
+}, {
+  selector: ':transparent',
+  matches: function matches(ele) {
+    return ele.transparent();
+  }
+}, {
+  selector: ':grabbed',
+  matches: function matches(ele) {
+    return ele.grabbed();
+  }
+}, {
+  selector: ':free',
+  matches: function matches(ele) {
+    return !ele.grabbed();
+  }
+}, {
+  selector: ':removed',
+  matches: function matches(ele) {
+    return ele.removed();
+  }
+}, {
+  selector: ':inside',
+  matches: function matches(ele) {
+    return !ele.removed();
+  }
+}, {
+  selector: ':grabbable',
+  matches: function matches(ele) {
+    return ele.grabbable();
+  }
+}, {
+  selector: ':ungrabbable',
+  matches: function matches(ele) {
+    return !ele.grabbable();
+  }
+}, {
+  selector: ':animated',
+  matches: function matches(ele) {
+    return ele.animated();
+  }
+}, {
+  selector: ':unanimated',
+  matches: function matches(ele) {
+    return !ele.animated();
+  }
+}, {
+  selector: ':parent',
+  matches: function matches(ele) {
+    return ele.isParent();
+  }
+}, {
+  selector: ':childless',
+  matches: function matches(ele) {
+    return ele.isChildless();
+  }
+}, {
+  selector: ':child',
+  matches: function matches(ele) {
+    return ele.isChild();
+  }
+}, {
+  selector: ':orphan',
+  matches: function matches(ele) {
+    return ele.isOrphan();
+  }
+}, {
+  selector: ':nonorphan',
+  matches: function matches(ele) {
+    return ele.isChild();
+  }
+}, {
+  selector: ':compound',
+  matches: function matches(ele) {
+    if (ele.isNode()) {
+      return ele.isParent();
+    } else {
+      return ele.source().isParent() || ele.target().isParent();
+    }
+  }
+}, {
+  selector: ':loop',
+  matches: function matches(ele) {
+    return ele.isLoop();
+  }
+}, {
+  selector: ':simple',
+  matches: function matches(ele) {
+    return ele.isSimple();
+  }
+}, {
+  selector: ':active',
+  matches: function matches(ele) {
+    return ele.active();
+  }
+}, {
+  selector: ':inactive',
+  matches: function matches(ele) {
+    return !ele.active();
+  }
+}, {
+  selector: ':backgrounding',
+  matches: function matches(ele) {
+    return ele.backgrounding();
+  }
+}, {
+  selector: ':nonbackgrounding',
+  matches: function matches(ele) {
+    return !ele.backgrounding();
+  }
+}].sort(function (a, b) {
+  // n.b. selectors that are starting substrings of others must have the longer ones first
+  return descending(a.selector, b.selector);
+});
+
+var lookup = function () {
+  var selToFn = {};
+  var s;
+
+  for (var i = 0; i < stateSelectors.length; i++) {
+    s = stateSelectors[i];
+    selToFn[s.selector] = s.matches;
+  }
 
-                        if (angleLineOpts.display && lineWidth && lineColor) {
-                            ctx.save();
-                            ctx.lineWidth = lineWidth;
-                            ctx.strokeStyle = lineColor;
-                            if (ctx.setLineDash) {
-                                ctx.setLineDash(resolve$4([angleLineOpts.borderDash, gridLineOpts.borderDash, []]));
-                                ctx.lineDashOffset = resolve$4([angleLineOpts.borderDashOffset, gridLineOpts.borderDashOffset, 0.0]);
-                            }
+  return selToFn;
+}();
 
-                            for (i = me.chart.data.labels.length - 1; i >= 0; i--) {
-                                offset = me.getDistanceFromCenterForValue(opts.ticks.reverse ? me.min : me.max);
-                                position = me.getPointPosition(i, offset);
-                                ctx.beginPath();
-                                ctx.moveTo(me.xCenter, me.yCenter);
-                                ctx.lineTo(position.x, position.y);
-                                ctx.stroke();
-                            }
+var stateSelectorMatches = function stateSelectorMatches(sel, ele) {
+  return lookup[sel](ele);
+};
+var stateSelectorRegex = '(' + stateSelectors.map(function (s) {
+  return s.selector;
+}).join('|') + ')';
 
-                            ctx.restore();
-                        }
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _drawLabels: function() {
-                        var me = this;
-                        var ctx = me.ctx;
-                        var opts = me.options;
-                        var tickOpts = opts.ticks;
-
-                        if (!tickOpts.display) {
-                            return;
-                        }
+// so that values get compared properly in Selector.filter()
 
-                        var startAngle = me.getIndexAngle(0);
-                        var tickFont = helpers$1.options._parseFont(tickOpts);
-                        var tickFontColor = valueOrDefault$c(tickOpts.fontColor, core_defaults.global.defaultFontColor);
-                        var offset, width;
-
-                        ctx.save();
-                        ctx.font = tickFont.string;
-                        ctx.translate(me.xCenter, me.yCenter);
-                        ctx.rotate(startAngle);
-                        ctx.textAlign = 'center';
-                        ctx.textBaseline = 'middle';
-
-                        helpers$1.each(me.ticks, function(label, index) {
-                            if (index === 0 && !tickOpts.reverse) {
-                                return;
-                            }
+var cleanMetaChars = function cleanMetaChars(str) {
+  return str.replace(new RegExp('\\\\(' + tokens.metaChar + ')', 'g'), function (match, $1) {
+    return $1;
+  });
+};
 
-                            offset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);
+var replaceLastQuery = function replaceLastQuery(selector, examiningQuery, replacementQuery) {
+  selector[selector.length - 1] = replacementQuery;
+}; // NOTE: add new expression syntax here to have it recognised by the parser;
+// - a query contains all adjacent (i.e. no separator in between) expressions;
+// - the current query is stored in selector[i]
+// - you need to check the query objects in match() for it actually filter properly, but that's pretty straight forward
 
-                            if (tickOpts.showLabelBackdrop) {
-                                width = ctx.measureText(label).width;
-                                ctx.fillStyle = tickOpts.backdropColor;
 
-                                ctx.fillRect(
-                                    -width / 2 - tickOpts.backdropPaddingX,
-                                    -offset - tickFont.size / 2 - tickOpts.backdropPaddingY,
-                                    width + tickOpts.backdropPaddingX * 2,
-                                    tickFont.size + tickOpts.backdropPaddingY * 2
-                                );
-                            }
+var exprs = [{
+  name: 'group',
+  // just used for identifying when debugging
+  query: true,
+  regex: '(' + tokens.group + ')',
+  populate: function populate(selector, query, _ref) {
+    var _ref2 = _slicedToArray(_ref, 1),
+        group = _ref2[0];
 
-                            ctx.fillStyle = tickFontColor;
-                            ctx.fillText(label, 0, -offset);
-                        });
+    query.checks.push({
+      type: Type.GROUP,
+      value: group === '*' ? group : group + 's'
+    });
+  }
+}, {
+  name: 'state',
+  query: true,
+  regex: stateSelectorRegex,
+  populate: function populate(selector, query, _ref3) {
+    var _ref4 = _slicedToArray(_ref3, 1),
+        state = _ref4[0];
+
+    query.checks.push({
+      type: Type.STATE,
+      value: state
+    });
+  }
+}, {
+  name: 'id',
+  query: true,
+  regex: '\\#(' + tokens.id + ')',
+  populate: function populate(selector, query, _ref5) {
+    var _ref6 = _slicedToArray(_ref5, 1),
+        id = _ref6[0];
+
+    query.checks.push({
+      type: Type.ID,
+      value: cleanMetaChars(id)
+    });
+  }
+}, {
+  name: 'className',
+  query: true,
+  regex: '\\.(' + tokens.className + ')',
+  populate: function populate(selector, query, _ref7) {
+    var _ref8 = _slicedToArray(_ref7, 1),
+        className = _ref8[0];
+
+    query.checks.push({
+      type: Type.CLASS,
+      value: cleanMetaChars(className)
+    });
+  }
+}, {
+  name: 'dataExists',
+  query: true,
+  regex: '\\[\\s*(' + tokens.variable + ')\\s*\\]',
+  populate: function populate(selector, query, _ref9) {
+    var _ref10 = _slicedToArray(_ref9, 1),
+        variable = _ref10[0];
+
+    query.checks.push({
+      type: Type.DATA_EXIST,
+      field: cleanMetaChars(variable)
+    });
+  }
+}, {
+  name: 'dataCompare',
+  query: true,
+  regex: '\\[\\s*(' + tokens.variable + ')\\s*(' + tokens.comparatorOp + ')\\s*(' + tokens.value + ')\\s*\\]',
+  populate: function populate(selector, query, _ref11) {
+    var _ref12 = _slicedToArray(_ref11, 3),
+        variable = _ref12[0],
+        comparatorOp = _ref12[1],
+        value = _ref12[2];
+
+    var valueIsString = new RegExp('^' + tokens.string + '$').exec(value) != null;
+
+    if (valueIsString) {
+      value = value.substring(1, value.length - 1);
+    } else {
+      value = parseFloat(value);
+    }
 
-                        ctx.restore();
-                    },
+    query.checks.push({
+      type: Type.DATA_COMPARE,
+      field: cleanMetaChars(variable),
+      operator: comparatorOp,
+      value: value
+    });
+  }
+}, {
+  name: 'dataBool',
+  query: true,
+  regex: '\\[\\s*(' + tokens.boolOp + ')\\s*(' + tokens.variable + ')\\s*\\]',
+  populate: function populate(selector, query, _ref13) {
+    var _ref14 = _slicedToArray(_ref13, 2),
+        boolOp = _ref14[0],
+        variable = _ref14[1];
+
+    query.checks.push({
+      type: Type.DATA_BOOL,
+      field: cleanMetaChars(variable),
+      operator: boolOp
+    });
+  }
+}, {
+  name: 'metaCompare',
+  query: true,
+  regex: '\\[\\[\\s*(' + tokens.meta + ')\\s*(' + tokens.comparatorOp + ')\\s*(' + tokens.number + ')\\s*\\]\\]',
+  populate: function populate(selector, query, _ref15) {
+    var _ref16 = _slicedToArray(_ref15, 3),
+        meta = _ref16[0],
+        comparatorOp = _ref16[1],
+        number = _ref16[2];
+
+    query.checks.push({
+      type: Type.META_COMPARE,
+      field: cleanMetaChars(meta),
+      operator: comparatorOp,
+      value: parseFloat(number)
+    });
+  }
+}, {
+  name: 'nextQuery',
+  separator: true,
+  regex: tokens.separator,
+  populate: function populate(selector, query) {
+    var currentSubject = selector.currentSubject;
+    var edgeCount = selector.edgeCount;
+    var compoundCount = selector.compoundCount;
+    var lastQ = selector[selector.length - 1];
+
+    if (currentSubject != null) {
+      lastQ.subject = currentSubject;
+      selector.currentSubject = null;
+    }
 
-                    /**
-                     * @private
-                     */
-                    _drawTitle: helpers$1.noop
-                });
+    lastQ.edgeCount = edgeCount;
+    lastQ.compoundCount = compoundCount;
+    selector.edgeCount = 0;
+    selector.compoundCount = 0; // go on to next query
 
-// INTERNAL: static default options, registered in src/index.js
-                var _defaults$3 = defaultConfig$3;
-                scale_radialLinear._defaults = _defaults$3;
+    var nextQuery = selector[selector.length++] = newQuery();
+    return nextQuery; // this is the new query to be filled by the following exprs
+  }
+}, {
+  name: 'directedEdge',
+  separator: true,
+  regex: tokens.directedEdge,
+  populate: function populate(selector, query) {
+    if (selector.currentSubject == null) {
+      // undirected edge
+      var edgeQuery = newQuery();
+      var source = query;
+      var target = newQuery();
+      edgeQuery.checks.push({
+        type: Type.DIRECTED_EDGE,
+        source: source,
+        target: target
+      }); // the query in the selector should be the edge rather than the source
+
+      replaceLastQuery(selector, query, edgeQuery);
+      selector.edgeCount++; // we're now populating the target query with expressions that follow
+
+      return target;
+    } else {
+      // source/target
+      var srcTgtQ = newQuery();
+      var _source = query;
+
+      var _target = newQuery();
+
+      srcTgtQ.checks.push({
+        type: Type.NODE_SOURCE,
+        source: _source,
+        target: _target
+      }); // the query in the selector should be the neighbourhood rather than the node
+
+      replaceLastQuery(selector, query, srcTgtQ);
+      selector.edgeCount++;
+      return _target; // now populating the target with the following expressions
+    }
+  }
+}, {
+  name: 'undirectedEdge',
+  separator: true,
+  regex: tokens.undirectedEdge,
+  populate: function populate(selector, query) {
+    if (selector.currentSubject == null) {
+      // undirected edge
+      var edgeQuery = newQuery();
+      var source = query;
+      var target = newQuery();
+      edgeQuery.checks.push({
+        type: Type.UNDIRECTED_EDGE,
+        nodes: [source, target]
+      }); // the query in the selector should be the edge rather than the source
+
+      replaceLastQuery(selector, query, edgeQuery);
+      selector.edgeCount++; // we're now populating the target query with expressions that follow
+
+      return target;
+    } else {
+      // neighbourhood
+      var nhoodQ = newQuery();
+      var node = query;
+      var neighbor = newQuery();
+      nhoodQ.checks.push({
+        type: Type.NODE_NEIGHBOR,
+        node: node,
+        neighbor: neighbor
+      }); // the query in the selector should be the neighbourhood rather than the node
+
+      replaceLastQuery(selector, query, nhoodQ);
+      return neighbor; // now populating the neighbor with following expressions
+    }
+  }
+}, {
+  name: 'child',
+  separator: true,
+  regex: tokens.child,
+  populate: function populate(selector, query) {
+    if (selector.currentSubject == null) {
+      // default: child query
+      var parentChildQuery = newQuery();
+      var child = newQuery();
+      var parent = selector[selector.length - 1];
+      parentChildQuery.checks.push({
+        type: Type.CHILD,
+        parent: parent,
+        child: child
+      }); // the query in the selector should be the '>' itself
+
+      replaceLastQuery(selector, query, parentChildQuery);
+      selector.compoundCount++; // we're now populating the child query with expressions that follow
+
+      return child;
+    } else if (selector.currentSubject === query) {
+      // compound split query
+      var compound = newQuery();
+      var left = selector[selector.length - 1];
+      var right = newQuery();
+      var subject = newQuery();
+
+      var _child = newQuery();
+
+      var _parent = newQuery(); // set up the root compound q
+
+
+      compound.checks.push({
+        type: Type.COMPOUND_SPLIT,
+        left: left,
+        right: right,
+        subject: subject
+      }); // populate the subject and replace the q at the old spot (within left) with TRUE
+
+      subject.checks = query.checks; // take the checks from the left
+
+      query.checks = [{
+        type: Type.TRUE
+      }]; // checks under left refs the subject implicitly
+      // set up the right q
+
+      _parent.checks.push({
+        type: Type.TRUE
+      }); // parent implicitly refs the subject
+
+
+      right.checks.push({
+        type: Type.PARENT,
+        // type is swapped on right side queries
+        parent: _parent,
+        child: _child // empty for now
 
-                var deprecated$1 = helpers$1._deprecated;
-                var resolve$5 = helpers$1.options.resolve;
-                var valueOrDefault$d = helpers$1.valueOrDefault;
+      });
+      replaceLastQuery(selector, left, compound); // update the ref since we moved things around for `query`
 
-// Integer constants are from the ES6 spec.
-                var MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;
-                var MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
-
-                var INTERVALS = {
-                    millisecond: {
-                        common: true,
-                        size: 1,
-                        steps: 1000
-                    },
-                    second: {
-                        common: true,
-                        size: 1000,
-                        steps: 60
-                    },
-                    minute: {
-                        common: true,
-                        size: 60000,
-                        steps: 60
-                    },
-                    hour: {
-                        common: true,
-                        size: 3600000,
-                        steps: 24
-                    },
-                    day: {
-                        common: true,
-                        size: 86400000,
-                        steps: 30
-                    },
-                    week: {
-                        common: false,
-                        size: 604800000,
-                        steps: 4
-                    },
-                    month: {
-                        common: true,
-                        size: 2.628e9,
-                        steps: 12
-                    },
-                    quarter: {
-                        common: false,
-                        size: 7.884e9,
-                        steps: 4
-                    },
-                    year: {
-                        common: true,
-                        size: 3.154e10
-                    }
-                };
+      selector.currentSubject = subject;
+      selector.compoundCount++;
+      return _child; // now populating the right side's child
+    } else {
+      // parent query
+      // info for parent query
+      var _parent2 = newQuery();
 
-                var UNITS = Object.keys(INTERVALS);
+      var _child2 = newQuery();
 
-                function sorter(a, b) {
-                    return a - b;
-                }
+      var pcQChecks = [{
+        type: Type.PARENT,
+        parent: _parent2,
+        child: _child2
+      }]; // the parent-child query takes the place of the query previously being populated
 
-                function arrayUnique(items) {
-                    var hash = {};
-                    var out = [];
-                    var i, ilen, item;
+      _parent2.checks = query.checks; // the previous query contains the checks for the parent
 
-                    for (i = 0, ilen = items.length; i < ilen; ++i) {
-                        item = items[i];
-                        if (!hash[item]) {
-                            hash[item] = true;
-                            out.push(item);
-                        }
-                    }
+      query.checks = pcQChecks; // pc query takes over
 
-                    return out;
-                }
+      selector.compoundCount++;
+      return _child2; // we're now populating the child
+    }
+  }
+}, {
+  name: 'descendant',
+  separator: true,
+  regex: tokens.descendant,
+  populate: function populate(selector, query) {
+    if (selector.currentSubject == null) {
+      // default: descendant query
+      var ancChQuery = newQuery();
+      var descendant = newQuery();
+      var ancestor = selector[selector.length - 1];
+      ancChQuery.checks.push({
+        type: Type.DESCENDANT,
+        ancestor: ancestor,
+        descendant: descendant
+      }); // the query in the selector should be the '>' itself
+
+      replaceLastQuery(selector, query, ancChQuery);
+      selector.compoundCount++; // we're now populating the descendant query with expressions that follow
+
+      return descendant;
+    } else if (selector.currentSubject === query) {
+      // compound split query
+      var compound = newQuery();
+      var left = selector[selector.length - 1];
+      var right = newQuery();
+      var subject = newQuery();
+
+      var _descendant = newQuery();
+
+      var _ancestor = newQuery(); // set up the root compound q
+
+
+      compound.checks.push({
+        type: Type.COMPOUND_SPLIT,
+        left: left,
+        right: right,
+        subject: subject
+      }); // populate the subject and replace the q at the old spot (within left) with TRUE
+
+      subject.checks = query.checks; // take the checks from the left
+
+      query.checks = [{
+        type: Type.TRUE
+      }]; // checks under left refs the subject implicitly
+      // set up the right q
+
+      _ancestor.checks.push({
+        type: Type.TRUE
+      }); // ancestor implicitly refs the subject
+
+
+      right.checks.push({
+        type: Type.ANCESTOR,
+        // type is swapped on right side queries
+        ancestor: _ancestor,
+        descendant: _descendant // empty for now
 
-                function getMin(options) {
-                    return helpers$1.valueOrDefault(options.time.min, options.ticks.min);
-                }
+      });
+      replaceLastQuery(selector, left, compound); // update the ref since we moved things around for `query`
 
-                function getMax(options) {
-                    return helpers$1.valueOrDefault(options.time.max, options.ticks.max);
-                }
+      selector.currentSubject = subject;
+      selector.compoundCount++;
+      return _descendant; // now populating the right side's descendant
+    } else {
+      // ancestor query
+      // info for parent query
+      var _ancestor2 = newQuery();
 
-                /**
-                 * Returns an array of {time, pos} objects used to interpolate a specific `time` or position
-                 * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is
-                 * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other
-                 * extremity (left + width or top + height). Note that it would be more optimized to directly
-                 * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need
-                 * to create the lookup table. The table ALWAYS contains at least two items: min and max.
-                 *
-                 * @param {number[]} timestamps - timestamps sorted from lowest to highest.
-                 * @param {string} distribution - If 'linear', timestamps will be spread linearly along the min
-                 * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.
-                 * If 'series', timestamps will be positioned at the same distance from each other. In this
-                 * case, only timestamps that break the time linearity are registered, meaning that in the
-                 * best case, all timestamps are linear, the table contains only min and max.
-                 */
-                function buildLookupTable(timestamps, min, max, distribution) {
-                    if (distribution === 'linear' || !timestamps.length) {
-                        return [
-                            {time: min, pos: 0},
-                            {time: max, pos: 1}
-                        ];
-                    }
+      var _descendant2 = newQuery();
 
-                    var table = [];
-                    var items = [min];
-                    var i, ilen, prev, curr, next;
+      var adQChecks = [{
+        type: Type.ANCESTOR,
+        ancestor: _ancestor2,
+        descendant: _descendant2
+      }]; // the parent-child query takes the place of the query previously being populated
 
-                    for (i = 0, ilen = timestamps.length; i < ilen; ++i) {
-                        curr = timestamps[i];
-                        if (curr > min && curr < max) {
-                            items.push(curr);
-                        }
-                    }
+      _ancestor2.checks = query.checks; // the previous query contains the checks for the parent
 
-                    items.push(max);
+      query.checks = adQChecks; // pc query takes over
 
-                    for (i = 0, ilen = items.length; i < ilen; ++i) {
-                        next = items[i + 1];
-                        prev = items[i - 1];
-                        curr = items[i];
+      selector.compoundCount++;
+      return _descendant2; // we're now populating the child
+    }
+  }
+}, {
+  name: 'subject',
+  modifier: true,
+  regex: tokens.subject,
+  populate: function populate(selector, query) {
+    if (selector.currentSubject != null && selector.currentSubject !== query) {
+      warn('Redefinition of subject in selector `' + selector.toString() + '`');
+      return false;
+    }
 
-                        // only add points that breaks the scale linearity
-                        if (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {
-                            table.push({time: curr, pos: i / (ilen - 1)});
-                        }
-                    }
+    selector.currentSubject = query;
+    var topQ = selector[selector.length - 1];
+    var topChk = topQ.checks[0];
+    var topType = topChk == null ? null : topChk.type;
 
-                    return table;
-                }
+    if (topType === Type.DIRECTED_EDGE) {
+      // directed edge with subject on the target
+      // change to target node check
+      topChk.type = Type.NODE_TARGET;
+    } else if (topType === Type.UNDIRECTED_EDGE) {
+      // undirected edge with subject on the second node
+      // change to neighbor check
+      topChk.type = Type.NODE_NEIGHBOR;
+      topChk.node = topChk.nodes[1]; // second node is subject
 
-// @see adapted from https://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/
-                function lookup(table, key, value) {
-                    var lo = 0;
-                    var hi = table.length - 1;
-                    var mid, i0, i1;
-
-                    while (lo >= 0 && lo <= hi) {
-                        mid = (lo + hi) >> 1;
-                        i0 = table[mid - 1] || null;
-                        i1 = table[mid];
-
-                        if (!i0) {
-                            // given value is outside table (before first item)
-                            return {lo: null, hi: i1};
-                        } else if (i1[key] < value) {
-                            lo = mid + 1;
-                        } else if (i0[key] > value) {
-                            hi = mid - 1;
-                        } else {
-                            return {lo: i0, hi: i1};
-                        }
-                    }
+      topChk.neighbor = topChk.nodes[0]; // clean up unused fields for new type
 
-                    // given value is outside table (after last item)
-                    return {lo: i1, hi: null};
-                }
+      topChk.nodes = null;
+    }
+  }
+}];
+exprs.forEach(function (e) {
+  return e.regexObj = new RegExp('^' + e.regex);
+});
+
+/**
+ * Of all the expressions, find the first match in the remaining text.
+ * @param {string} remaining The remaining text to parse
+ * @returns The matched expression and the newly remaining text `{ expr, match, name, remaining }`
+ */
 
-                /**
-                 * Linearly interpolates the given source `value` using the table items `skey` values and
-                 * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')
-                 * returns the position for a timestamp equal to 42. If value is out of bounds, values at
-                 * index [0, 1] or [n - 1, n] are used for the interpolation.
-                 */
-                function interpolate$1(table, skey, sval, tkey) {
-                    var range = lookup(table, skey, sval);
+var consumeExpr = function consumeExpr(remaining) {
+  var expr;
+  var match;
+  var name;
+
+  for (var j = 0; j < exprs.length; j++) {
+    var e = exprs[j];
+    var n = e.name;
+    var m = remaining.match(e.regexObj);
+
+    if (m != null) {
+      match = m;
+      expr = e;
+      name = n;
+      var consumed = m[0];
+      remaining = remaining.substring(consumed.length);
+      break; // we've consumed one expr, so we can return now
+    }
+  }
 
-                    // Note: the lookup table ALWAYS contains at least 2 items (min and max)
-                    var prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;
-                    var next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;
+  return {
+    expr: expr,
+    match: match,
+    name: name,
+    remaining: remaining
+  };
+};
+/**
+ * Consume all the leading whitespace
+ * @param {string} remaining The text to consume
+ * @returns The text with the leading whitespace removed
+ */
 
-                    var span = next[skey] - prev[skey];
-                    var ratio = span ? (sval - prev[skey]) / span : 0;
-                    var offset = (next[tkey] - prev[tkey]) * ratio;
 
-                    return prev[tkey] + offset;
-                }
+var consumeWhitespace = function consumeWhitespace(remaining) {
+  var match = remaining.match(/^\s+/);
 
-                function toTimestamp(scale, input) {
-                    var adapter = scale._adapter;
-                    var options = scale.options.time;
-                    var parser = options.parser;
-                    var format = parser || options.format;
-                    var value = input;
+  if (match) {
+    var consumed = match[0];
+    remaining = remaining.substring(consumed.length);
+  }
 
-                    if (typeof parser === 'function') {
-                        value = parser(value);
-                    }
+  return remaining;
+};
+/**
+ * Parse the string and store the parsed representation in the Selector.
+ * @param {string} selector The selector string
+ * @returns `true` if the selector was successfully parsed, `false` otherwise
+ */
 
-                    // Only parse if its not a timestamp already
-                    if (!helpers$1.isFinite(value)) {
-                        value = typeof format === 'string'
-                            ? adapter.parse(value, format)
-                            : adapter.parse(value);
-                    }
 
-                    if (value !== null) {
-                        return +value;
-                    }
+var parse = function parse(selector) {
+  var self = this;
+  var remaining = self.inputText = selector;
+  var currentQuery = self[0] = newQuery();
+  self.length = 1;
+  remaining = consumeWhitespace(remaining); // get rid of leading whitespace
 
-                    // Labels are in an incompatible format and no `parser` has been provided.
-                    // The user might still use the deprecated `format` option for parsing.
-                    if (!parser && typeof format === 'function') {
-                        value = format(input);
+  for (;;) {
+    var exprInfo = consumeExpr(remaining);
 
-                        // `format` could return something else than a timestamp, if so, parse it
-                        if (!helpers$1.isFinite(value)) {
-                            value = adapter.parse(value);
-                        }
-                    }
+    if (exprInfo.expr == null) {
+      warn('The selector `' + selector + '`is invalid');
+      return false;
+    } else {
+      var args = exprInfo.match.slice(1); // let the token populate the selector object in currentQuery
 
-                    return value;
-                }
+      var ret = exprInfo.expr.populate(self, currentQuery, args);
 
-                function parse(scale, input) {
-                    if (helpers$1.isNullOrUndef(input)) {
-                        return null;
-                    }
+      if (ret === false) {
+        return false; // exit if population failed
+      } else if (ret != null) {
+        currentQuery = ret; // change the current query to be filled if the expr specifies
+      }
+    }
 
-                    var options = scale.options.time;
-                    var value = toTimestamp(scale, scale.getRightValue(input));
-                    if (value === null) {
-                        return value;
-                    }
+    remaining = exprInfo.remaining; // we're done when there's nothing left to parse
 
-                    if (options.round) {
-                        value = +scale._adapter.startOf(value, options.round);
-                    }
+    if (remaining.match(/^\s*$/)) {
+      break;
+    }
+  }
 
-                    return value;
-                }
+  var lastQ = self[self.length - 1];
 
-                /**
-                 * Figures out what unit results in an appropriate number of auto-generated ticks
-                 */
-                function determineUnitForAutoTicks(minUnit, min, max, capacity) {
-                    var ilen = UNITS.length;
-                    var i, interval, factor;
+  if (self.currentSubject != null) {
+    lastQ.subject = self.currentSubject;
+  }
 
-                    for (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {
-                        interval = INTERVALS[UNITS[i]];
-                        factor = interval.steps ? interval.steps : MAX_INTEGER;
+  lastQ.edgeCount = self.edgeCount;
+  lastQ.compoundCount = self.compoundCount;
 
-                        if (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {
-                            return UNITS[i];
-                        }
-                    }
+  for (var i = 0; i < self.length; i++) {
+    var q = self[i]; // in future, this could potentially be allowed if there were operator precedence and detection of invalid combinations
 
-                    return UNITS[ilen - 1];
-                }
+    if (q.compoundCount > 0 && q.edgeCount > 0) {
+      warn('The selector `' + selector + '` is invalid because it uses both a compound selector and an edge selector');
+      return false;
+    }
 
-                /**
-                 * Figures out what unit to format a set of ticks with
-                 */
-                function determineUnitForFormatting(scale, numTicks, minUnit, min, max) {
-                    var i, unit;
+    if (q.edgeCount > 1) {
+      warn('The selector `' + selector + '` is invalid because it uses multiple edge selectors');
+      return false;
+    } else if (q.edgeCount === 1) {
+      warn('The selector `' + selector + '` is deprecated.  Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons.  Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.');
+    }
+  }
 
-                    for (i = UNITS.length - 1; i >= UNITS.indexOf(minUnit); i--) {
-                        unit = UNITS[i];
-                        if (INTERVALS[unit].common && scale._adapter.diff(max, min, unit) >= numTicks - 1) {
-                            return unit;
-                        }
-                    }
+  return true; // success
+};
+/**
+ * Get the selector represented as a string.  This value uses default formatting,
+ * so things like spacing may differ from the input text passed to the constructor.
+ * @returns {string} The selector string
+ */
 
-                    return UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];
-                }
 
-                function determineMajorUnit(unit) {
-                    for (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {
-                        if (INTERVALS[UNITS[i]].common) {
-                            return UNITS[i];
-                        }
-                    }
-                }
+var toString = function toString() {
+  if (this.toStringCache != null) {
+    return this.toStringCache;
+  }
 
-                /**
-                 * Generates a maximum of `capacity` timestamps between min and max, rounded to the
-                 * `minor` unit using the given scale time `options`.
-                 * Important: this method can return ticks outside the min and max range, it's the
-                 * responsibility of the calling code to clamp values if needed.
-                 */
-                function generate(scale, min, max, capacity) {
-                    var adapter = scale._adapter;
-                    var options = scale.options;
-                    var timeOpts = options.time;
-                    var minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);
-                    var stepSize = resolve$5([timeOpts.stepSize, timeOpts.unitStepSize, 1]);
-                    var weekday = minor === 'week' ? timeOpts.isoWeekday : false;
-                    var first = min;
-                    var ticks = [];
-                    var time;
-
-                    // For 'week' unit, handle the first day of week option
-                    if (weekday) {
-                        first = +adapter.startOf(first, 'isoWeek', weekday);
-                    }
+  var clean = function clean(obj) {
+    if (obj == null) {
+      return '';
+    } else {
+      return obj;
+    }
+  };
 
-                    // Align first ticks on unit
-                    first = +adapter.startOf(first, weekday ? 'day' : minor);
+  var cleanVal = function cleanVal(val) {
+    if (string(val)) {
+      return '"' + val + '"';
+    } else {
+      return clean(val);
+    }
+  };
 
-                    // Prevent browser from freezing in case user options request millions of milliseconds
-                    if (adapter.diff(max, min, minor) > 100000 * stepSize) {
-                        throw min + ' and ' + max + ' are too far apart with stepSize of ' + stepSize + ' ' + minor;
-                    }
+  var space = function space(val) {
+    return ' ' + val + ' ';
+  };
 
-                    for (time = first; time < max; time = +adapter.add(time, stepSize, minor)) {
-                        ticks.push(time);
-                    }
+  var checkToString = function checkToString(check, subject) {
+    var type = check.type,
+        value = check.value;
 
-                    if (time === max || options.bounds === 'ticks') {
-                        ticks.push(time);
-                    }
+    switch (type) {
+      case Type.GROUP:
+        {
+          var group = clean(value);
+          return group.substring(0, group.length - 1);
+        }
 
-                    return ticks;
-                }
+      case Type.DATA_COMPARE:
+        {
+          var field = check.field,
+              operator = check.operator;
+          return '[' + field + space(clean(operator)) + cleanVal(value) + ']';
+        }
 
-                /**
-                 * Returns the start and end offsets from edges in the form of {start, end}
-                 * where each value is a relative width to the scale and ranges between 0 and 1.
-                 * They add extra margins on the both sides by scaling down the original scale.
-                 * Offsets are added when the `offset` option is true.
-                 */
-                function computeOffsets(table, ticks, min, max, options) {
-                    var start = 0;
-                    var end = 0;
-                    var first, last;
-
-                    if (options.offset && ticks.length) {
-                        first = interpolate$1(table, 'time', ticks[0], 'pos');
-                        if (ticks.length === 1) {
-                            start = 1 - first;
-                        } else {
-                            start = (interpolate$1(table, 'time', ticks[1], 'pos') - first) / 2;
-                        }
-                        last = interpolate$1(table, 'time', ticks[ticks.length - 1], 'pos');
-                        if (ticks.length === 1) {
-                            end = last;
-                        } else {
-                            end = (last - interpolate$1(table, 'time', ticks[ticks.length - 2], 'pos')) / 2;
-                        }
-                    }
+      case Type.DATA_BOOL:
+        {
+          var _operator = check.operator,
+              _field = check.field;
+          return '[' + clean(_operator) + _field + ']';
+        }
 
-                    return {start: start, end: end, factor: 1 / (start + 1 + end)};
-                }
+      case Type.DATA_EXIST:
+        {
+          var _field2 = check.field;
+          return '[' + _field2 + ']';
+        }
 
-                function setMajorTicks(scale, ticks, map, majorUnit) {
-                    var adapter = scale._adapter;
-                    var first = +adapter.startOf(ticks[0].value, majorUnit);
-                    var last = ticks[ticks.length - 1].value;
-                    var major, index;
+      case Type.META_COMPARE:
+        {
+          var _operator2 = check.operator,
+              _field3 = check.field;
+          return '[[' + _field3 + space(clean(_operator2)) + cleanVal(value) + ']]';
+        }
 
-                    for (major = first; major <= last; major = +adapter.add(major, 1, majorUnit)) {
-                        index = map[major];
-                        if (index >= 0) {
-                            ticks[index].major = true;
-                        }
-                    }
-                    return ticks;
-                }
+      case Type.STATE:
+        {
+          return value;
+        }
 
-                function ticksFromTimestamps(scale, values, majorUnit) {
-                    var ticks = [];
-                    var map = {};
-                    var ilen = values.length;
-                    var i, value;
+      case Type.ID:
+        {
+          return '#' + value;
+        }
 
-                    for (i = 0; i < ilen; ++i) {
-                        value = values[i];
-                        map[value] = i;
+      case Type.CLASS:
+        {
+          return '.' + value;
+        }
 
-                        ticks.push({
-                            value: value,
-                            major: false
-                        });
-                    }
+      case Type.PARENT:
+      case Type.CHILD:
+        {
+          return queryToString(check.parent, subject) + space('>') + queryToString(check.child, subject);
+        }
 
-                    // We set the major ticks separately from the above loop because calling startOf for every tick
-                    // is expensive when there is a large number of ticks
-                    return (ilen === 0 || !majorUnit) ? ticks : setMajorTicks(scale, ticks, map, majorUnit);
-                }
+      case Type.ANCESTOR:
+      case Type.DESCENDANT:
+        {
+          return queryToString(check.ancestor, subject) + ' ' + queryToString(check.descendant, subject);
+        }
 
-                var defaultConfig$4 = {
-                    position: 'bottom',
-
-                    /**
-                     * Data distribution along the scale:
-                     * - 'linear': data are spread according to their time (distances can vary),
-                     * - 'series': data are spread at the same distance from each other.
-                     * @see https://github.com/chartjs/Chart.js/pull/4507
-                     * @since 2.7.0
-                     */
-                    distribution: 'linear',
-
-                    /**
-                     * Scale boundary strategy (bypassed by min/max time options)
-                     * - `data`: make sure data are fully visible, ticks outside are removed
-                     * - `ticks`: make sure ticks are fully visible, data outside are truncated
-                     * @see https://github.com/chartjs/Chart.js/pull/4556
-                     * @since 2.7.0
-                     */
-                    bounds: 'data',
-
-                    adapters: {},
-                    time: {
-                        parser: false, // false == a pattern string from https://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment
-                        unit: false, // false == automatic or override with week, month, year, etc.
-                        round: false, // none, or override with week, month, year, etc.
-                        displayFormat: false, // DEPRECATED
-                        isoWeekday: false, // override week start day - see https://momentjs.com/docs/#/get-set/iso-weekday/
-                        minUnit: 'millisecond',
-                        displayFormats: {}
-                    },
-                    ticks: {
-                        autoSkip: false,
-
-                        /**
-                         * Ticks generation input values:
-                         * - 'auto': generates "optimal" ticks based on scale size and time options.
-                         * - 'data': generates ticks from data (including labels from data {t|x|y} objects).
-                         * - 'labels': generates ticks from user given `data.labels` values ONLY.
-                         * @see https://github.com/chartjs/Chart.js/pull/4507
-                         * @since 2.7.0
-                         */
-                        source: 'auto',
-
-                        major: {
-                            enabled: false
-                        }
-                    }
-                };
+      case Type.COMPOUND_SPLIT:
+        {
+          var lhs = queryToString(check.left, subject);
+          var sub = queryToString(check.subject, subject);
+          var rhs = queryToString(check.right, subject);
+          return lhs + (lhs.length > 0 ? ' ' : '') + sub + rhs;
+        }
 
-                var scale_time = core_scale.extend({
-                    initialize: function() {
-                        this.mergeTicksOptions();
-                        core_scale.prototype.initialize.call(this);
-                    },
-
-                    update: function() {
-                        var me = this;
-                        var options = me.options;
-                        var time = options.time || (options.time = {});
-                        var adapter = me._adapter = new core_adapters._date(options.adapters.date);
-
-                        // DEPRECATIONS: output a message only one time per update
-                        deprecated$1('time scale', time.format, 'time.format', 'time.parser');
-                        deprecated$1('time scale', time.min, 'time.min', 'ticks.min');
-                        deprecated$1('time scale', time.max, 'time.max', 'ticks.max');
-
-                        // Backward compatibility: before introducing adapter, `displayFormats` was
-                        // supposed to contain *all* unit/string pairs but this can't be resolved
-                        // when loading the scale (adapters are loaded afterward), so let's populate
-                        // missing formats on update
-                        helpers$1.mergeIf(time.displayFormats, adapter.formats());
-
-                        return core_scale.prototype.update.apply(me, arguments);
-                    },
-
-                    /**
-                     * Allows data to be referenced via 't' attribute
-                     */
-                    getRightValue: function(rawValue) {
-                        if (rawValue && rawValue.t !== undefined) {
-                            rawValue = rawValue.t;
-                        }
-                        return core_scale.prototype.getRightValue.call(this, rawValue);
-                    },
-
-                    determineDataLimits: function() {
-                        var me = this;
-                        var chart = me.chart;
-                        var adapter = me._adapter;
-                        var options = me.options;
-                        var unit = options.time.unit || 'day';
-                        var min = MAX_INTEGER;
-                        var max = MIN_INTEGER;
-                        var timestamps = [];
-                        var datasets = [];
-                        var labels = [];
-                        var i, j, ilen, jlen, data, timestamp, labelsAdded;
-                        var dataLabels = me._getLabels();
-
-                        for (i = 0, ilen = dataLabels.length; i < ilen; ++i) {
-                            labels.push(parse(me, dataLabels[i]));
-                        }
+      case Type.TRUE:
+        {
+          return '';
+        }
+    }
+  };
 
-                        for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
-                            if (chart.isDatasetVisible(i)) {
-                                data = chart.data.datasets[i].data;
-
-                                // Let's consider that all data have the same format.
-                                if (helpers$1.isObject(data[0])) {
-                                    datasets[i] = [];
-
-                                    for (j = 0, jlen = data.length; j < jlen; ++j) {
-                                        timestamp = parse(me, data[j]);
-                                        timestamps.push(timestamp);
-                                        datasets[i][j] = timestamp;
-                                    }
-                                } else {
-                                    datasets[i] = labels.slice(0);
-                                    if (!labelsAdded) {
-                                        timestamps = timestamps.concat(labels);
-                                        labelsAdded = true;
-                                    }
-                                }
-                            } else {
-                                datasets[i] = [];
-                            }
-                        }
+  var queryToString = function queryToString(query, subject) {
+    return query.checks.reduce(function (str, chk, i) {
+      return str + (subject === query && i === 0 ? '$' : '') + checkToString(chk, subject);
+    }, '');
+  };
 
-                        if (labels.length) {
-                            min = Math.min(min, labels[0]);
-                            max = Math.max(max, labels[labels.length - 1]);
-                        }
+  var str = '';
 
-                        if (timestamps.length) {
-                            timestamps = ilen > 1 ? arrayUnique(timestamps).sort(sorter) : timestamps.sort(sorter);
-                            min = Math.min(min, timestamps[0]);
-                            max = Math.max(max, timestamps[timestamps.length - 1]);
-                        }
+  for (var i = 0; i < this.length; i++) {
+    var query = this[i];
+    str += queryToString(query, query.subject);
 
-                        min = parse(me, getMin(options)) || min;
-                        max = parse(me, getMax(options)) || max;
-
-                        // In case there is no valid min/max, set limits based on unit time option
-                        min = min === MAX_INTEGER ? +adapter.startOf(Date.now(), unit) : min;
-                        max = max === MIN_INTEGER ? +adapter.endOf(Date.now(), unit) + 1 : max;
-
-                        // Make sure that max is strictly higher than min (required by the lookup table)
-                        me.min = Math.min(min, max);
-                        me.max = Math.max(min + 1, max);
-
-                        // PRIVATE
-                        me._table = [];
-                        me._timestamps = {
-                            data: timestamps,
-                            datasets: datasets,
-                            labels: labels
-                        };
-                    },
-
-                    buildTicks: function() {
-                        var me = this;
-                        var min = me.min;
-                        var max = me.max;
-                        var options = me.options;
-                        var tickOpts = options.ticks;
-                        var timeOpts = options.time;
-                        var timestamps = me._timestamps;
-                        var ticks = [];
-                        var capacity = me.getLabelCapacity(min);
-                        var source = tickOpts.source;
-                        var distribution = options.distribution;
-                        var i, ilen, timestamp;
-
-                        if (source === 'data' || (source === 'auto' && distribution === 'series')) {
-                            timestamps = timestamps.data;
-                        } else if (source === 'labels') {
-                            timestamps = timestamps.labels;
-                        } else {
-                            timestamps = generate(me, min, max, capacity);
-                        }
+    if (this.length > 1 && i < this.length - 1) {
+      str += ', ';
+    }
+  }
 
-                        if (options.bounds === 'ticks' && timestamps.length) {
-                            min = timestamps[0];
-                            max = timestamps[timestamps.length - 1];
-                        }
+  this.toStringCache = str;
+  return str;
+};
+var parse$1 = {
+  parse: parse,
+  toString: toString
+};
+
+var valCmp = function valCmp(fieldVal, operator, value) {
+  var matches;
+  var isFieldStr = string(fieldVal);
+  var isFieldNum = number(fieldVal);
+  var isValStr = string(value);
+  var fieldStr, valStr;
+  var caseInsensitive = false;
+  var notExpr = false;
+  var isIneqCmp = false;
+
+  if (operator.indexOf('!') >= 0) {
+    operator = operator.replace('!', '');
+    notExpr = true;
+  }
 
-                        // Enforce limits with user min/max options
-                        min = parse(me, getMin(options)) || min;
-                        max = parse(me, getMax(options)) || max;
+  if (operator.indexOf('@') >= 0) {
+    operator = operator.replace('@', '');
+    caseInsensitive = true;
+  }
 
-                        // Remove ticks outside the min/max range
-                        for (i = 0, ilen = timestamps.length; i < ilen; ++i) {
-                            timestamp = timestamps[i];
-                            if (timestamp >= min && timestamp <= max) {
-                                ticks.push(timestamp);
-                            }
-                        }
+  if (isFieldStr || isValStr || caseInsensitive) {
+    fieldStr = !isFieldStr && !isFieldNum ? '' : '' + fieldVal;
+    valStr = '' + value;
+  } // if we're doing a case insensitive comparison, then we're using a STRING comparison
+  // even if we're comparing numbers
 
-                        me.min = min;
-                        me.max = max;
-
-                        // PRIVATE
-                        // determineUnitForFormatting relies on the number of ticks so we don't use it when
-                        // autoSkip is enabled because we don't yet know what the final number of ticks will be
-                        me._unit = timeOpts.unit || (tickOpts.autoSkip
-                            ? determineUnitForAutoTicks(timeOpts.minUnit, me.min, me.max, capacity)
-                            : determineUnitForFormatting(me, ticks.length, timeOpts.minUnit, me.min, me.max));
-                        me._majorUnit = !tickOpts.major.enabled || me._unit === 'year' ? undefined
-                            : determineMajorUnit(me._unit);
-                        me._table = buildLookupTable(me._timestamps.data, min, max, distribution);
-                        me._offsets = computeOffsets(me._table, ticks, min, max, options);
-
-                        if (tickOpts.reverse) {
-                            ticks.reverse();
-                        }
 
-                        return ticksFromTimestamps(me, ticks, me._majorUnit);
-                    },
+  if (caseInsensitive) {
+    fieldVal = fieldStr = fieldStr.toLowerCase();
+    value = valStr = valStr.toLowerCase();
+  }
 
-                    getLabelForIndex: function(index, datasetIndex) {
-                        var me = this;
-                        var adapter = me._adapter;
-                        var data = me.chart.data;
-                        var timeOpts = me.options.time;
-                        var label = data.labels && index < data.labels.length ? data.labels[index] : '';
-                        var value = data.datasets[datasetIndex].data[index];
+  switch (operator) {
+    case '*=':
+      matches = fieldStr.indexOf(valStr) >= 0;
+      break;
 
-                        if (helpers$1.isObject(value)) {
-                            label = me.getRightValue(value);
-                        }
-                        if (timeOpts.tooltipFormat) {
-                            return adapter.format(toTimestamp(me, label), timeOpts.tooltipFormat);
-                        }
-                        if (typeof label === 'string') {
-                            return label;
-                        }
-                        return adapter.format(toTimestamp(me, label), timeOpts.displayFormats.datetime);
-                    },
-
-                    /**
-                     * Function to format an individual tick mark
-                     * @private
-                     */
-                    tickFormatFunction: function(time, index, ticks, format) {
-                        var me = this;
-                        var adapter = me._adapter;
-                        var options = me.options;
-                        var formats = options.time.displayFormats;
-                        var minorFormat = formats[me._unit];
-                        var majorUnit = me._majorUnit;
-                        var majorFormat = formats[majorUnit];
-                        var tick = ticks[index];
-                        var tickOpts = options.ticks;
-                        var major = majorUnit && majorFormat && tick && tick.major;
-                        var label = adapter.format(time, format ? format : major ? majorFormat : minorFormat);
-                        var nestedTickOpts = major ? tickOpts.major : tickOpts.minor;
-                        var formatter = resolve$5([
-                            nestedTickOpts.callback,
-                            nestedTickOpts.userCallback,
-                            tickOpts.callback,
-                            tickOpts.userCallback
-                        ]);
-
-                        return formatter ? formatter(label, index, ticks) : label;
-                    },
-
-                    convertTicksToLabels: function(ticks) {
-                        var labels = [];
-                        var i, ilen;
-
-                        for (i = 0, ilen = ticks.length; i < ilen; ++i) {
-                            labels.push(this.tickFormatFunction(ticks[i].value, i, ticks));
-                        }
+    case '$=':
+      matches = fieldStr.indexOf(valStr, fieldStr.length - valStr.length) >= 0;
+      break;
 
-                        return labels;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    getPixelForOffset: function(time) {
-                        var me = this;
-                        var offsets = me._offsets;
-                        var pos = interpolate$1(me._table, 'time', time, 'pos');
-                        return me.getPixelForDecimal((offsets.start + pos) * offsets.factor);
-                    },
-
-                    getPixelForValue: function(value, index, datasetIndex) {
-                        var me = this;
-                        var time = null;
-
-                        if (index !== undefined && datasetIndex !== undefined) {
-                            time = me._timestamps.datasets[datasetIndex][index];
-                        }
+    case '^=':
+      matches = fieldStr.indexOf(valStr) === 0;
+      break;
 
-                        if (time === null) {
-                            time = parse(me, value);
-                        }
+    case '=':
+      matches = fieldVal === value;
+      break;
 
-                        if (time !== null) {
-                            return me.getPixelForOffset(time);
-                        }
-                    },
-
-                    getPixelForTick: function(index) {
-                        var ticks = this.getTicks();
-                        return index >= 0 && index < ticks.length ?
-                            this.getPixelForOffset(ticks[index].value) :
-                            null;
-                    },
-
-                    getValueForPixel: function(pixel) {
-                        var me = this;
-                        var offsets = me._offsets;
-                        var pos = me.getDecimalForPixel(pixel) / offsets.factor - offsets.end;
-                        var time = interpolate$1(me._table, 'pos', pos, 'time');
-
-                        // DEPRECATION, we should return time directly
-                        return me._adapter._create(time);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getLabelSize: function(label) {
-                        var me = this;
-                        var ticksOpts = me.options.ticks;
-                        var tickLabelWidth = me.ctx.measureText(label).width;
-                        var angle = helpers$1.toRadians(me.isHorizontal() ? ticksOpts.maxRotation : ticksOpts.minRotation);
-                        var cosRotation = Math.cos(angle);
-                        var sinRotation = Math.sin(angle);
-                        var tickFontSize = valueOrDefault$d(ticksOpts.fontSize, core_defaults.global.defaultFontSize);
-
-                        return {
-                            w: (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation),
-                            h: (tickLabelWidth * sinRotation) + (tickFontSize * cosRotation)
-                        };
-                    },
-
-                    /**
-                     * Crude approximation of what the label width might be
-                     * @private
-                     */
-                    getLabelWidth: function(label) {
-                        return this._getLabelSize(label).w;
-                    },
-
-                    /**
-                     * @private
-                     */
-                    getLabelCapacity: function(exampleTime) {
-                        var me = this;
-                        var timeOpts = me.options.time;
-                        var displayFormats = timeOpts.displayFormats;
-
-                        // pick the longest format (milliseconds) for guestimation
-                        var format = displayFormats[timeOpts.unit] || displayFormats.millisecond;
-                        var exampleLabel = me.tickFormatFunction(exampleTime, 0, ticksFromTimestamps(me, [exampleTime], me._majorUnit), format);
-                        var size = me._getLabelSize(exampleLabel);
-                        var capacity = Math.floor(me.isHorizontal() ? me.width / size.w : me.height / size.h);
-
-                        if (me.options.offset) {
-                            capacity--;
-                        }
+    case '>':
+      isIneqCmp = true;
+      matches = fieldVal > value;
+      break;
 
-                        return capacity > 0 ? capacity : 1;
-                    }
-                });
+    case '>=':
+      isIneqCmp = true;
+      matches = fieldVal >= value;
+      break;
 
-// INTERNAL: static default options, registered in src/index.js
-                var _defaults$4 = defaultConfig$4;
-                scale_time._defaults = _defaults$4;
-
-                var scales = {
-                    category: scale_category,
-                    linear: scale_linear,
-                    logarithmic: scale_logarithmic,
-                    radialLinear: scale_radialLinear,
-                    time: scale_time
-                };
+    case '<':
+      isIneqCmp = true;
+      matches = fieldVal < value;
+      break;
 
-                var FORMATS = {
-                    datetime: 'MMM D, YYYY, h:mm:ss a',
-                    millisecond: 'h:mm:ss.SSS a',
-                    second: 'h:mm:ss a',
-                    minute: 'h:mm a',
-                    hour: 'hA',
-                    day: 'MMM D',
-                    week: 'll',
-                    month: 'MMM YYYY',
-                    quarter: '[Q]Q - YYYY',
-                    year: 'YYYY'
-                };
+    case '<=':
+      isIneqCmp = true;
+      matches = fieldVal <= value;
+      break;
 
-                core_adapters._date.override(typeof moment === 'function' ? {
-                    _id: 'moment', // DEBUG ONLY
+    default:
+      matches = false;
+      break;
+  } // apply the not op, but null vals for inequalities should always stay non-matching
 
-                    formats: function() {
-                        return FORMATS;
-                    },
 
-                    parse: function(value, format) {
-                        if (typeof value === 'string' && typeof format === 'string') {
-                            value = moment(value, format);
-                        } else if (!(value instanceof moment)) {
-                            value = moment(value);
-                        }
-                        return value.isValid() ? value.valueOf() : null;
-                    },
+  if (notExpr && (fieldVal != null || !isIneqCmp)) {
+    matches = !matches;
+  }
 
-                    format: function(time, format) {
-                        return moment(time).format(format);
-                    },
+  return matches;
+};
+var boolCmp = function boolCmp(fieldVal, operator) {
+  switch (operator) {
+    case '?':
+      return fieldVal ? true : false;
 
-                    add: function(time, amount, unit) {
-                        return moment(time).add(amount, unit).valueOf();
-                    },
+    case '!':
+      return fieldVal ? false : true;
 
-                    diff: function(max, min, unit) {
-                        return moment(max).diff(moment(min), unit);
-                    },
+    case '^':
+      return fieldVal === undefined;
+  }
+};
+var existCmp = function existCmp(fieldVal) {
+  return fieldVal !== undefined;
+};
+var data = function data(ele, field) {
+  return ele.data(field);
+};
+var meta = function meta(ele, field) {
+  return ele[field]();
+};
+
+/** A lookup of `match(check, ele)` functions by `Type` int */
+
+var match = [];
+/**
+ * Returns whether the query matches for the element
+ * @param query The `{ type, value, ... }` query object
+ * @param ele The element to compare against
+*/
 
-                    startOf: function(time, unit, weekday) {
-                        time = moment(time);
-                        if (unit === 'isoWeek') {
-                            return time.isoWeekday(weekday).valueOf();
-                        }
-                        return time.startOf(unit).valueOf();
-                    },
-
-                    endOf: function(time, unit) {
-                        return moment(time).endOf(unit).valueOf();
-                    },
-
-                    // DEPRECATIONS
-
-                    /**
-                     * Provided for backward compatibility with scale.getValueForPixel().
-                     * @deprecated since version 2.8.0
-                     * @todo remove at version 3
-                     * @private
-                     */
-                    _create: function(time) {
-                        return moment(time);
-                    },
-                } : {});
-
-                core_defaults._set('global', {
-                    plugins: {
-                        filler: {
-                            propagate: true
-                        }
-                    }
-                });
+var matches = function matches(query, ele) {
+  return query.checks.every(function (chk) {
+    return match[chk.type](chk, ele);
+  });
+};
+
+match[Type.GROUP] = function (check, ele) {
+  var group = check.value;
+  return group === '*' || group === ele.group();
+};
+
+match[Type.STATE] = function (check, ele) {
+  var stateSelector = check.value;
+  return stateSelectorMatches(stateSelector, ele);
+};
+
+match[Type.ID] = function (check, ele) {
+  var id = check.value;
+  return ele.id() === id;
+};
+
+match[Type.CLASS] = function (check, ele) {
+  var cls = check.value;
+  return ele.hasClass(cls);
+};
+
+match[Type.META_COMPARE] = function (check, ele) {
+  var field = check.field,
+      operator = check.operator,
+      value = check.value;
+  return valCmp(meta(ele, field), operator, value);
+};
+
+match[Type.DATA_COMPARE] = function (check, ele) {
+  var field = check.field,
+      operator = check.operator,
+      value = check.value;
+  return valCmp(data(ele, field), operator, value);
+};
+
+match[Type.DATA_BOOL] = function (check, ele) {
+  var field = check.field,
+      operator = check.operator;
+  return boolCmp(data(ele, field), operator);
+};
+
+match[Type.DATA_EXIST] = function (check, ele) {
+  var field = check.field,
+      operator = check.operator;
+  return existCmp(data(ele, field));
+};
+
+match[Type.UNDIRECTED_EDGE] = function (check, ele) {
+  var qA = check.nodes[0];
+  var qB = check.nodes[1];
+  var src = ele.source();
+  var tgt = ele.target();
+  return matches(qA, src) && matches(qB, tgt) || matches(qB, src) && matches(qA, tgt);
+};
+
+match[Type.NODE_NEIGHBOR] = function (check, ele) {
+  return matches(check.node, ele) && ele.neighborhood().some(function (n) {
+    return n.isNode() && matches(check.neighbor, n);
+  });
+};
+
+match[Type.DIRECTED_EDGE] = function (check, ele) {
+  return matches(check.source, ele.source()) && matches(check.target, ele.target());
+};
+
+match[Type.NODE_SOURCE] = function (check, ele) {
+  return matches(check.source, ele) && ele.outgoers().some(function (n) {
+    return n.isNode() && matches(check.target, n);
+  });
+};
+
+match[Type.NODE_TARGET] = function (check, ele) {
+  return matches(check.target, ele) && ele.incomers().some(function (n) {
+    return n.isNode() && matches(check.source, n);
+  });
+};
+
+match[Type.CHILD] = function (check, ele) {
+  return matches(check.child, ele) && matches(check.parent, ele.parent());
+};
+
+match[Type.PARENT] = function (check, ele) {
+  return matches(check.parent, ele) && ele.children().some(function (c) {
+    return matches(check.child, c);
+  });
+};
+
+match[Type.DESCENDANT] = function (check, ele) {
+  return matches(check.descendant, ele) && ele.ancestors().some(function (a) {
+    return matches(check.ancestor, a);
+  });
+};
+
+match[Type.ANCESTOR] = function (check, ele) {
+  return matches(check.ancestor, ele) && ele.descendants().some(function (d) {
+    return matches(check.descendant, d);
+  });
+};
+
+match[Type.COMPOUND_SPLIT] = function (check, ele) {
+  return matches(check.subject, ele) && matches(check.left, ele) && matches(check.right, ele);
+};
+
+match[Type.TRUE] = function () {
+  return true;
+};
+
+match[Type.COLLECTION] = function (check, ele) {
+  var collection = check.value;
+  return collection.has(ele);
+};
+
+match[Type.FILTER] = function (check, ele) {
+  var filter = check.value;
+  return filter(ele);
+};
+
+var filter = function filter(collection) {
+  var self = this; // for 1 id #foo queries, just get the element
+
+  if (self.length === 1 && self[0].checks.length === 1 && self[0].checks[0].type === Type.ID) {
+    return collection.getElementById(self[0].checks[0].value).collection();
+  }
 
-                var mappers = {
-                    dataset: function(source) {
-                        var index = source.fill;
-                        var chart = source.chart;
-                        var meta = chart.getDatasetMeta(index);
-                        var visible = meta && chart.isDatasetVisible(index);
-                        var points = (visible && meta.dataset._children) || [];
-                        var length = points.length || 0;
-
-                        return !length ? null : function(point, i) {
-                            return (i < length && points[i]._view) || null;
-                        };
-                    },
-
-                    boundary: function(source) {
-                        var boundary = source.boundary;
-                        var x = boundary ? boundary.x : null;
-                        var y = boundary ? boundary.y : null;
-
-                        if (helpers$1.isArray(boundary)) {
-                            return function(point, i) {
-                                return boundary[i];
-                            };
-                        }
+  var selectorFunction = function selectorFunction(element) {
+    for (var j = 0; j < self.length; j++) {
+      var query = self[j];
 
-                        return function(point) {
-                            return {
-                                x: x === null ? point.x : x,
-                                y: y === null ? point.y : y,
-                            };
-                        };
-                    }
-                };
+      if (matches(query, element)) {
+        return true;
+      }
+    }
 
-// @todo if (fill[0] === '#')
-                function decodeFill(el, index, count) {
-                    var model = el._model || {};
-                    var fill = model.fill;
-                    var target;
+    return false;
+  };
 
-                    if (fill === undefined) {
-                        fill = !!model.backgroundColor;
-                    }
+  if (self.text() == null) {
+    selectorFunction = function selectorFunction() {
+      return true;
+    };
+  }
 
-                    if (fill === false || fill === null) {
-                        return false;
-                    }
+  return collection.filter(selectorFunction);
+}; // filter
+// does selector match a single element?
 
-                    if (fill === true) {
-                        return 'origin';
-                    }
 
-                    target = parseFloat(fill, 10);
-                    if (isFinite(target) && Math.floor(target) === target) {
-                        if (fill[0] === '-' || fill[0] === '+') {
-                            target = index + target;
-                        }
+var matches$1 = function matches$1(ele) {
+  var self = this;
 
-                        if (target === index || target < 0 || target >= count) {
-                            return false;
-                        }
+  for (var j = 0; j < self.length; j++) {
+    var query = self[j];
 
-                        return target;
-                    }
+    if (matches(query, ele)) {
+      return true;
+    }
+  }
 
-                    switch (fill) {
-                        // compatibility
-                        case 'bottom':
-                            return 'start';
-                        case 'top':
-                            return 'end';
-                        case 'zero':
-                            return 'origin';
-                        // supported boundaries
-                        case 'origin':
-                        case 'start':
-                        case 'end':
-                            return fill;
-                        // invalid fill values
-                        default:
-                            return false;
-                    }
-                }
+  return false;
+}; // matches
+
+
+var matching = {
+  matches: matches$1,
+  filter: filter
+};
+
+var Selector = function Selector(selector) {
+  this.inputText = selector;
+  this.currentSubject = null;
+  this.compoundCount = 0;
+  this.edgeCount = 0;
+  this.length = 0;
+
+  if (selector == null || string(selector) && selector.match(/^\s*$/)) ; else if (elementOrCollection(selector)) {
+    this.addQuery({
+      checks: [{
+        type: Type.COLLECTION,
+        value: selector.collection()
+      }]
+    });
+  } else if (fn(selector)) {
+    this.addQuery({
+      checks: [{
+        type: Type.FILTER,
+        value: selector
+      }]
+    });
+  } else if (string(selector)) {
+    if (!this.parse(selector)) {
+      this.invalid = true;
+    }
+  } else {
+    error('A selector must be created from a string; found ');
+  }
+};
+
+var selfn = Selector.prototype;
+[parse$1, matching].forEach(function (p) {
+  return extend(selfn, p);
+});
+
+selfn.text = function () {
+  return this.inputText;
+};
+
+selfn.size = function () {
+  return this.length;
+};
+
+selfn.eq = function (i) {
+  return this[i];
+};
+
+selfn.sameText = function (otherSel) {
+  return !this.invalid && !otherSel.invalid && this.text() === otherSel.text();
+};
+
+selfn.addQuery = function (q) {
+  this[this.length++] = q;
+};
+
+selfn.selector = selfn.toString;
+
+var elesfn$f = {
+  allAre: function allAre(selector) {
+    var selObj = new Selector(selector);
+    return this.every(function (ele) {
+      return selObj.matches(ele);
+    });
+  },
+  is: function is(selector) {
+    var selObj = new Selector(selector);
+    return this.some(function (ele) {
+      return selObj.matches(ele);
+    });
+  },
+  some: function some(fn, thisArg) {
+    for (var i = 0; i < this.length; i++) {
+      var ret = !thisArg ? fn(this[i], i, this) : fn.apply(thisArg, [this[i], i, this]);
+
+      if (ret) {
+        return true;
+      }
+    }
 
-                function computeLinearBoundary(source) {
-                    var model = source.el._model || {};
-                    var scale = source.el._scale || {};
-                    var fill = source.fill;
-                    var target = null;
-                    var horizontal;
+    return false;
+  },
+  every: function every(fn, thisArg) {
+    for (var i = 0; i < this.length; i++) {
+      var ret = !thisArg ? fn(this[i], i, this) : fn.apply(thisArg, [this[i], i, this]);
 
-                    if (isFinite(fill)) {
-                        return null;
-                    }
+      if (!ret) {
+        return false;
+      }
+    }
 
-                    // Backward compatibility: until v3, we still need to support boundary values set on
-                    // the model (scaleTop, scaleBottom and scaleZero) because some external plugins and
-                    // controllers might still use it (e.g. the Smith chart).
-
-                    if (fill === 'start') {
-                        target = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;
-                    } else if (fill === 'end') {
-                        target = model.scaleTop === undefined ? scale.top : model.scaleTop;
-                    } else if (model.scaleZero !== undefined) {
-                        target = model.scaleZero;
-                    } else if (scale.getBasePixel) {
-                        target = scale.getBasePixel();
-                    }
+    return true;
+  },
+  same: function same(collection) {
+    // cheap collection ref check
+    if (this === collection) {
+      return true;
+    }
 
-                    if (target !== undefined && target !== null) {
-                        if (target.x !== undefined && target.y !== undefined) {
-                            return target;
-                        }
+    collection = this.cy().collection(collection);
+    var thisLength = this.length;
+    var collectionLength = collection.length; // cheap length check
 
-                        if (helpers$1.isFinite(target)) {
-                            horizontal = scale.isHorizontal();
-                            return {
-                                x: horizontal ? target : null,
-                                y: horizontal ? null : target
-                            };
-                        }
-                    }
+    if (thisLength !== collectionLength) {
+      return false;
+    } // cheap element ref check
 
-                    return null;
-                }
 
-                function computeCircularBoundary(source) {
-                    var scale = source.el._scale;
-                    var options = scale.options;
-                    var length = scale.chart.data.labels.length;
-                    var fill = source.fill;
-                    var target = [];
-                    var start, end, center, i, point;
+    if (thisLength === 1) {
+      return this[0] === collection[0];
+    }
 
-                    if (!length) {
-                        return null;
-                    }
+    return this.every(function (ele) {
+      return collection.hasElementWithId(ele.id());
+    });
+  },
+  anySame: function anySame(collection) {
+    collection = this.cy().collection(collection);
+    return this.some(function (ele) {
+      return collection.hasElementWithId(ele.id());
+    });
+  },
+  allAreNeighbors: function allAreNeighbors(collection) {
+    collection = this.cy().collection(collection);
+    var nhood = this.neighborhood();
+    return collection.every(function (ele) {
+      return nhood.hasElementWithId(ele.id());
+    });
+  },
+  contains: function contains(collection) {
+    collection = this.cy().collection(collection);
+    var self = this;
+    return collection.every(function (ele) {
+      return self.hasElementWithId(ele.id());
+    });
+  }
+};
+elesfn$f.allAreNeighbours = elesfn$f.allAreNeighbors;
+elesfn$f.has = elesfn$f.contains;
+elesfn$f.equal = elesfn$f.equals = elesfn$f.same;
+
+var cache = function cache(fn, name) {
+  return function traversalCache(arg1, arg2, arg3, arg4) {
+    var selectorOrEles = arg1;
+    var eles = this;
+    var key;
+
+    if (selectorOrEles == null) {
+      key = '';
+    } else if (elementOrCollection(selectorOrEles) && selectorOrEles.length === 1) {
+      key = selectorOrEles.id();
+    }
 
-                    start = options.ticks.reverse ? scale.max : scale.min;
-                    end = options.ticks.reverse ? scale.min : scale.max;
-                    center = scale.getPointPositionForValue(0, start);
-                    for (i = 0; i < length; ++i) {
-                        point = fill === 'start' || fill === 'end'
-                            ? scale.getPointPositionForValue(i, fill === 'start' ? start : end)
-                            : scale.getBasePosition(i);
-                        if (options.gridLines.circular) {
-                            point.cx = center.x;
-                            point.cy = center.y;
-                            point.angle = scale.getIndexAngle(i) - Math.PI / 2;
-                        }
-                        target.push(point);
-                    }
-                    return target;
-                }
+    if (eles.length === 1 && key) {
+      var _p = eles[0]._private;
+      var tch = _p.traversalCache = _p.traversalCache || {};
+      var ch = tch[name] = tch[name] || [];
+      var hash = hashString(key);
+      var cacheHit = ch[hash];
+
+      if (cacheHit) {
+        return cacheHit;
+      } else {
+        return ch[hash] = fn.call(eles, arg1, arg2, arg3, arg4);
+      }
+    } else {
+      return fn.call(eles, arg1, arg2, arg3, arg4);
+    }
+  };
+};
 
-                function computeBoundary(source) {
-                    var scale = source.el._scale || {};
+var elesfn$g = {
+  parent: function parent(selector) {
+    var parents = []; // optimisation for single ele call
 
-                    if (scale.getPointPositionForValue) {
-                        return computeCircularBoundary(source);
-                    }
-                    return computeLinearBoundary(source);
-                }
+    if (this.length === 1) {
+      var parent = this[0]._private.parent;
 
-                function resolveTarget(sources, index, propagate) {
-                    var source = sources[index];
-                    var fill = source.fill;
-                    var visited = [index];
-                    var target;
+      if (parent) {
+        return parent;
+      }
+    }
 
-                    if (!propagate) {
-                        return fill;
-                    }
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      var _parent = ele._private.parent;
 
-                    while (fill !== false && visited.indexOf(fill) === -1) {
-                        if (!isFinite(fill)) {
-                            return fill;
-                        }
+      if (_parent) {
+        parents.push(_parent);
+      }
+    }
 
-                        target = sources[fill];
-                        if (!target) {
-                            return false;
-                        }
+    return this.spawn(parents, true).filter(selector);
+  },
+  parents: function parents(selector) {
+    var parents = [];
+    var eles = this.parent();
 
-                        if (target.visible) {
-                            return fill;
-                        }
+    while (eles.nonempty()) {
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        parents.push(ele);
+      }
 
-                        visited.push(fill);
-                        fill = target.fill;
-                    }
+      eles = eles.parent();
+    }
 
-                    return false;
-                }
+    return this.spawn(parents, true).filter(selector);
+  },
+  commonAncestors: function commonAncestors(selector) {
+    var ancestors;
 
-                function createMapper(source) {
-                    var fill = source.fill;
-                    var type = 'dataset';
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      var parents = ele.parents();
+      ancestors = ancestors || parents;
+      ancestors = ancestors.intersect(parents); // current list must be common with current ele parents set
+    }
 
-                    if (fill === false) {
-                        return null;
-                    }
+    return ancestors.filter(selector);
+  },
+  orphans: function orphans(selector) {
+    return this.stdFilter(function (ele) {
+      return ele.isOrphan();
+    }).filter(selector);
+  },
+  nonorphans: function nonorphans(selector) {
+    return this.stdFilter(function (ele) {
+      return ele.isChild();
+    }).filter(selector);
+  },
+  children: cache(function (selector) {
+    var children = [];
+
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      var eleChildren = ele._private.children;
+
+      for (var j = 0; j < eleChildren.length; j++) {
+        children.push(eleChildren[j]);
+      }
+    }
 
-                    if (!isFinite(fill)) {
-                        type = 'boundary';
-                    }
+    return this.spawn(children, true).filter(selector);
+  }, 'children'),
+  siblings: function siblings(selector) {
+    return this.parent().children().not(this).filter(selector);
+  },
+  isParent: function isParent() {
+    var ele = this[0];
 
-                    return mappers[type](source);
-                }
+    if (ele) {
+      return ele.isNode() && ele._private.children.length !== 0;
+    }
+  },
+  isChildless: function isChildless() {
+    var ele = this[0];
 
-                function isDrawable(point) {
-                    return point && !point.skip;
-                }
+    if (ele) {
+      return ele.isNode() && ele._private.children.length === 0;
+    }
+  },
+  isChild: function isChild() {
+    var ele = this[0];
 
-                function drawArea(ctx, curve0, curve1, len0, len1) {
-                    var i, cx, cy, r;
+    if (ele) {
+      return ele.isNode() && ele._private.parent != null;
+    }
+  },
+  isOrphan: function isOrphan() {
+    var ele = this[0];
 
-                    if (!len0 || !len1) {
-                        return;
-                    }
+    if (ele) {
+      return ele.isNode() && ele._private.parent == null;
+    }
+  },
+  descendants: function descendants(selector) {
+    var elements = [];
 
-                    // building first area curve (normal)
-                    ctx.moveTo(curve0[0].x, curve0[0].y);
-                    for (i = 1; i < len0; ++i) {
-                        helpers$1.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);
-                    }
+    function add(eles) {
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        elements.push(ele);
 
-                    if (curve1[0].angle !== undefined) {
-                        cx = curve1[0].cx;
-                        cy = curve1[0].cy;
-                        r = Math.sqrt(Math.pow(curve1[0].x - cx, 2) + Math.pow(curve1[0].y - cy, 2));
-                        for (i = len1 - 1; i > 0; --i) {
-                            ctx.arc(cx, cy, r, curve1[i].angle, curve1[i - 1].angle, true);
-                        }
-                        return;
-                    }
+        if (ele.children().nonempty()) {
+          add(ele.children());
+        }
+      }
+    }
 
-                    // joining the two area curves
-                    ctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);
+    add(this.children());
+    return this.spawn(elements, true).filter(selector);
+  }
+};
 
-                    // building opposite area curve (reverse)
-                    for (i = len1 - 1; i > 0; --i) {
-                        helpers$1.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);
-                    }
-                }
+function forEachCompound(eles, fn, includeSelf, recursiveStep) {
+  var q = [];
+  var did = new Set$1();
+  var cy = eles.cy();
+  var hasCompounds = cy.hasCompoundNodes();
 
-                function doFill(ctx, points, mapper, view, color, loop) {
-                    var count = points.length;
-                    var span = view.spanGaps;
-                    var curve0 = [];
-                    var curve1 = [];
-                    var len0 = 0;
-                    var len1 = 0;
-                    var i, ilen, index, p0, p1, d0, d1, loopOffset;
-
-                    ctx.beginPath();
-
-                    for (i = 0, ilen = count; i < ilen; ++i) {
-                        index = i % count;
-                        p0 = points[index]._view;
-                        p1 = mapper(p0, index, view);
-                        d0 = isDrawable(p0);
-                        d1 = isDrawable(p1);
-
-                        if (loop && loopOffset === undefined && d0) {
-                            loopOffset = i + 1;
-                            ilen = count + loopOffset;
-                        }
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
 
-                        if (d0 && d1) {
-                            len0 = curve0.push(p0);
-                            len1 = curve1.push(p1);
-                        } else if (len0 && len1) {
-                            if (!span) {
-                                drawArea(ctx, curve0, curve1, len0, len1);
-                                len0 = len1 = 0;
-                                curve0 = [];
-                                curve1 = [];
-                            } else {
-                                if (d0) {
-                                    curve0.push(p0);
-                                }
-                                if (d1) {
-                                    curve1.push(p1);
-                                }
-                            }
-                        }
-                    }
+    if (includeSelf) {
+      q.push(ele);
+    } else if (hasCompounds) {
+      recursiveStep(q, did, ele);
+    }
+  }
 
-                    drawArea(ctx, curve0, curve1, len0, len1);
+  while (q.length > 0) {
+    var _ele = q.shift();
 
-                    ctx.closePath();
-                    ctx.fillStyle = color;
-                    ctx.fill();
-                }
+    fn(_ele);
+    did.add(_ele.id());
 
-                var plugin_filler = {
-                    id: 'filler',
-
-                    afterDatasetsUpdate: function(chart, options) {
-                        var count = (chart.data.datasets || []).length;
-                        var propagate = options.propagate;
-                        var sources = [];
-                        var meta, i, el, source;
-
-                        for (i = 0; i < count; ++i) {
-                            meta = chart.getDatasetMeta(i);
-                            el = meta.dataset;
-                            source = null;
-
-                            if (el && el._model && el instanceof elements.Line) {
-                                source = {
-                                    visible: chart.isDatasetVisible(i),
-                                    fill: decodeFill(el, i, count),
-                                    chart: chart,
-                                    el: el
-                                };
-                            }
+    if (hasCompounds) {
+      recursiveStep(q, did, _ele);
+    }
+  }
 
-                            meta.$filler = source;
-                            sources.push(source);
-                        }
+  return eles;
+}
 
-                        for (i = 0; i < count; ++i) {
-                            source = sources[i];
-                            if (!source) {
-                                continue;
-                            }
+function addChildren(q, did, ele) {
+  if (ele.isParent()) {
+    var children = ele._private.children;
 
-                            source.fill = resolveTarget(sources, i, propagate);
-                            source.boundary = computeBoundary(source);
-                            source.mapper = createMapper(source);
-                        }
-                    },
+    for (var i = 0; i < children.length; i++) {
+      var child = children[i];
 
-                    beforeDatasetsDraw: function(chart) {
-                        var metasets = chart._getSortedVisibleDatasetMetas();
-                        var ctx = chart.ctx;
-                        var meta, i, el, view, points, mapper, color;
+      if (!did.has(child.id())) {
+        q.push(child);
+      }
+    }
+  }
+} // very efficient version of eles.add( eles.descendants() ).forEach()
+// for internal use
 
-                        for (i = metasets.length - 1; i >= 0; --i) {
-                            meta = metasets[i].$filler;
 
-                            if (!meta || !meta.visible) {
-                                continue;
-                            }
+elesfn$g.forEachDown = function (fn) {
+  var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+  return forEachCompound(this, fn, includeSelf, addChildren);
+};
 
-                            el = meta.el;
-                            view = el._view;
-                            points = el._children || [];
-                            mapper = meta.mapper;
-                            color = view.backgroundColor || core_defaults.global.defaultColor;
+function addParent(q, did, ele) {
+  if (ele.isChild()) {
+    var parent = ele._private.parent;
 
-                            if (mapper && color && points.length) {
-                                helpers$1.canvas.clipArea(ctx, chart.chartArea);
-                                doFill(ctx, points, mapper, view, color, el._loop);
-                                helpers$1.canvas.unclipArea(ctx);
-                            }
-                        }
-                    }
-                };
+    if (!did.has(parent.id())) {
+      q.push(parent);
+    }
+  }
+}
+
+elesfn$g.forEachUp = function (fn) {
+  var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+  return forEachCompound(this, fn, includeSelf, addParent);
+};
+
+function addParentAndChildren(q, did, ele) {
+  addParent(q, did, ele);
+  addChildren(q, did, ele);
+}
+
+elesfn$g.forEachUpAndDown = function (fn) {
+  var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+  return forEachCompound(this, fn, includeSelf, addParentAndChildren);
+}; // aliases
+
+
+elesfn$g.ancestors = elesfn$g.parents;
+
+var fn$1, elesfn$h;
+fn$1 = elesfn$h = {
+  data: define$3.data({
+    field: 'data',
+    bindingEvent: 'data',
+    allowBinding: true,
+    allowSetting: true,
+    settingEvent: 'data',
+    settingTriggersEvent: true,
+    triggerFnName: 'trigger',
+    allowGetting: true,
+    immutableKeys: {
+      'id': true,
+      'source': true,
+      'target': true,
+      'parent': true
+    },
+    updateStyle: true
+  }),
+  removeData: define$3.removeData({
+    field: 'data',
+    event: 'data',
+    triggerFnName: 'trigger',
+    triggerEvent: true,
+    immutableKeys: {
+      'id': true,
+      'source': true,
+      'target': true,
+      'parent': true
+    },
+    updateStyle: true
+  }),
+  scratch: define$3.data({
+    field: 'scratch',
+    bindingEvent: 'scratch',
+    allowBinding: true,
+    allowSetting: true,
+    settingEvent: 'scratch',
+    settingTriggersEvent: true,
+    triggerFnName: 'trigger',
+    allowGetting: true,
+    updateStyle: true
+  }),
+  removeScratch: define$3.removeData({
+    field: 'scratch',
+    event: 'scratch',
+    triggerFnName: 'trigger',
+    triggerEvent: true,
+    updateStyle: true
+  }),
+  rscratch: define$3.data({
+    field: 'rscratch',
+    allowBinding: false,
+    allowSetting: true,
+    settingTriggersEvent: false,
+    allowGetting: true
+  }),
+  removeRscratch: define$3.removeData({
+    field: 'rscratch',
+    triggerEvent: false
+  }),
+  id: function id() {
+    var ele = this[0];
+
+    if (ele) {
+      return ele._private.data.id;
+    }
+  }
+}; // aliases
 
-                var getRtlHelper$1 = helpers$1.rtl.getRtlAdapter;
-                var noop$1 = helpers$1.noop;
-                var valueOrDefault$e = helpers$1.valueOrDefault;
-
-                core_defaults._set('global', {
-                    legend: {
-                        display: true,
-                        position: 'top',
-                        align: 'center',
-                        fullWidth: true,
-                        reverse: false,
-                        weight: 1000,
-
-                        // a callback that will handle
-                        onClick: function(e, legendItem) {
-                            var index = legendItem.datasetIndex;
-                            var ci = this.chart;
-                            var meta = ci.getDatasetMeta(index);
-
-                            // See controller.isDatasetVisible comment
-                            meta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;
-
-                            // We hid a dataset ... rerender the chart
-                            ci.update();
-                        },
-
-                        onHover: null,
-                        onLeave: null,
-
-                        labels: {
-                            boxWidth: 40,
-                            padding: 10,
-                            // Generates labels shown in the legend
-                            // Valid properties to return:
-                            // text : text to display
-                            // fillStyle : fill of coloured box
-                            // strokeStyle: stroke of coloured box
-                            // hidden : if this legend item refers to a hidden item
-                            // lineCap : cap style for line
-                            // lineDash
-                            // lineDashOffset :
-                            // lineJoin :
-                            // lineWidth :
-                            generateLabels: function(chart) {
-                                var datasets = chart.data.datasets;
-                                var options = chart.options.legend || {};
-                                var usePointStyle = options.labels && options.labels.usePointStyle;
-
-                                return chart._getSortedDatasetMetas().map(function(meta) {
-                                    var style = meta.controller.getStyle(usePointStyle ? 0 : undefined);
-
-                                    return {
-                                        text: datasets[meta.index].label,
-                                        fillStyle: style.backgroundColor,
-                                        hidden: !chart.isDatasetVisible(meta.index),
-                                        lineCap: style.borderCapStyle,
-                                        lineDash: style.borderDash,
-                                        lineDashOffset: style.borderDashOffset,
-                                        lineJoin: style.borderJoinStyle,
-                                        lineWidth: style.borderWidth,
-                                        strokeStyle: style.borderColor,
-                                        pointStyle: style.pointStyle,
-                                        rotation: style.rotation,
-
-                                        // Below is extra data used for toggling the datasets
-                                        datasetIndex: meta.index
-                                    };
-                                }, this);
-                            }
-                        }
-                    },
+fn$1.attr = fn$1.data;
+fn$1.removeAttr = fn$1.removeData;
+var data$1 = elesfn$h;
 
-                    legendCallback: function(chart) {
-                        var list = document.createElement('ul');
-                        var datasets = chart.data.datasets;
-                        var i, ilen, listItem, listItemSpan;
+var elesfn$i = {};
 
-                        list.setAttribute('class', chart.id + '-legend');
+function defineDegreeFunction(callback) {
+  return function (includeLoops) {
+    var self = this;
 
-                        for (i = 0, ilen = datasets.length; i < ilen; i++) {
-                            listItem = list.appendChild(document.createElement('li'));
-                            listItemSpan = listItem.appendChild(document.createElement('span'));
-                            listItemSpan.style.backgroundColor = datasets[i].backgroundColor;
-                            if (datasets[i].label) {
-                                listItem.appendChild(document.createTextNode(datasets[i].label));
-                            }
-                        }
+    if (includeLoops === undefined) {
+      includeLoops = true;
+    }
 
-                        return list.outerHTML;
-                    }
-                });
+    if (self.length === 0) {
+      return;
+    }
 
-                /**
-                 * Helper function to get the box width based on the usePointStyle option
-                 * @param {object} labelopts - the label options on the legend
-                 * @param {number} fontSize - the label font size
-                 * @return {number} width of the color box area
-                 */
-                function getBoxWidth(labelOpts, fontSize) {
-                    return labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?
-                        fontSize :
-                        labelOpts.boxWidth;
-                }
+    if (self.isNode() && !self.removed()) {
+      var degree = 0;
+      var node = self[0];
+      var connectedEdges = node._private.edges;
 
-                /**
-                 * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!
-                 */
-                var Legend = core_element.extend({
-
-                    initialize: function(config) {
-                        var me = this;
-                        helpers$1.extend(me, config);
-
-                        // Contains hit boxes for each dataset (in dataset order)
-                        me.legendHitBoxes = [];
-
-                        /**
-                         * @private
-                         */
-                        me._hoveredItem = null;
-
-                        // Are we in doughnut mode which has a different data type
-                        me.doughnutMode = false;
-                    },
-
-                    // These methods are ordered by lifecycle. Utilities then follow.
-                    // Any function defined here is inherited by all legend types.
-                    // Any function can be extended by the legend type
-
-                    beforeUpdate: noop$1,
-                    update: function(maxWidth, maxHeight, margins) {
-                        var me = this;
-
-                        // Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
-                        me.beforeUpdate();
-
-                        // Absorb the master measurements
-                        me.maxWidth = maxWidth;
-                        me.maxHeight = maxHeight;
-                        me.margins = margins;
-
-                        // Dimensions
-                        me.beforeSetDimensions();
-                        me.setDimensions();
-                        me.afterSetDimensions();
-                        // Labels
-                        me.beforeBuildLabels();
-                        me.buildLabels();
-                        me.afterBuildLabels();
-
-                        // Fit
-                        me.beforeFit();
-                        me.fit();
-                        me.afterFit();
-                        //
-                        me.afterUpdate();
-
-                        return me.minSize;
-                    },
-                    afterUpdate: noop$1,
-
-                    //
-
-                    beforeSetDimensions: noop$1,
-                    setDimensions: function() {
-                        var me = this;
-                        // Set the unconstrained dimension before label rotation
-                        if (me.isHorizontal()) {
-                            // Reset position before calculating rotation
-                            me.width = me.maxWidth;
-                            me.left = 0;
-                            me.right = me.width;
-                        } else {
-                            me.height = me.maxHeight;
-
-                            // Reset position before calculating rotation
-                            me.top = 0;
-                            me.bottom = me.height;
-                        }
+      for (var i = 0; i < connectedEdges.length; i++) {
+        var edge = connectedEdges[i];
 
-                        // Reset padding
-                        me.paddingLeft = 0;
-                        me.paddingTop = 0;
-                        me.paddingRight = 0;
-                        me.paddingBottom = 0;
-
-                        // Reset minSize
-                        me.minSize = {
-                            width: 0,
-                            height: 0
-                        };
-                    },
-                    afterSetDimensions: noop$1,
-
-                    //
-
-                    beforeBuildLabels: noop$1,
-                    buildLabels: function() {
-                        var me = this;
-                        var labelOpts = me.options.labels || {};
-                        var legendItems = helpers$1.callback(labelOpts.generateLabels, [me.chart], me) || [];
-
-                        if (labelOpts.filter) {
-                            legendItems = legendItems.filter(function(item) {
-                                return labelOpts.filter(item, me.chart.data);
-                            });
-                        }
+        if (!includeLoops && edge.isLoop()) {
+          continue;
+        }
 
-                        if (me.options.reverse) {
-                            legendItems.reverse();
-                        }
+        degree += callback(node, edge);
+      }
 
-                        me.legendItems = legendItems;
-                    },
-                    afterBuildLabels: noop$1,
+      return degree;
+    } else {
+      return;
+    }
+  };
+}
+
+extend(elesfn$i, {
+  degree: defineDegreeFunction(function (node, edge) {
+    if (edge.source().same(edge.target())) {
+      return 2;
+    } else {
+      return 1;
+    }
+  }),
+  indegree: defineDegreeFunction(function (node, edge) {
+    if (edge.target().same(node)) {
+      return 1;
+    } else {
+      return 0;
+    }
+  }),
+  outdegree: defineDegreeFunction(function (node, edge) {
+    if (edge.source().same(node)) {
+      return 1;
+    } else {
+      return 0;
+    }
+  })
+});
 
-                    //
+function defineDegreeBoundsFunction(degreeFn, callback) {
+  return function (includeLoops) {
+    var ret;
+    var nodes = this.nodes();
 
-                    beforeFit: noop$1,
-                    fit: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var labelOpts = opts.labels;
-                        var display = opts.display;
+    for (var i = 0; i < nodes.length; i++) {
+      var ele = nodes[i];
+      var degree = ele[degreeFn](includeLoops);
 
-                        var ctx = me.ctx;
+      if (degree !== undefined && (ret === undefined || callback(degree, ret))) {
+        ret = degree;
+      }
+    }
 
-                        var labelFont = helpers$1.options._parseFont(labelOpts);
-                        var fontSize = labelFont.size;
+    return ret;
+  };
+}
+
+extend(elesfn$i, {
+  minDegree: defineDegreeBoundsFunction('degree', function (degree, min) {
+    return degree < min;
+  }),
+  maxDegree: defineDegreeBoundsFunction('degree', function (degree, max) {
+    return degree > max;
+  }),
+  minIndegree: defineDegreeBoundsFunction('indegree', function (degree, min) {
+    return degree < min;
+  }),
+  maxIndegree: defineDegreeBoundsFunction('indegree', function (degree, max) {
+    return degree > max;
+  }),
+  minOutdegree: defineDegreeBoundsFunction('outdegree', function (degree, min) {
+    return degree < min;
+  }),
+  maxOutdegree: defineDegreeBoundsFunction('outdegree', function (degree, max) {
+    return degree > max;
+  })
+});
+extend(elesfn$i, {
+  totalDegree: function totalDegree(includeLoops) {
+    var total = 0;
+    var nodes = this.nodes();
+
+    for (var i = 0; i < nodes.length; i++) {
+      total += nodes[i].degree(includeLoops);
+    }
 
-                        // Reset hit boxes
-                        var hitboxes = me.legendHitBoxes = [];
+    return total;
+  }
+});
 
-                        var minSize = me.minSize;
-                        var isHorizontal = me.isHorizontal();
+var fn$2, elesfn$j;
 
-                        if (isHorizontal) {
-                            minSize.width = me.maxWidth; // fill all the width
-                            minSize.height = display ? 10 : 0;
-                        } else {
-                            minSize.width = display ? 10 : 0;
-                            minSize.height = me.maxHeight; // fill all the height
-                        }
+var beforePositionSet = function beforePositionSet(eles, newPos, silent) {
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
 
-                        // Increase sizes here
-                        if (!display) {
-                            me.width = minSize.width = me.height = minSize.height = 0;
-                            return;
-                        }
-                        ctx.font = labelFont.string;
-
-                        if (isHorizontal) {
-                            // Labels
-
-                            // Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one
-                            var lineWidths = me.lineWidths = [0];
-                            var totalHeight = 0;
-
-                            ctx.textAlign = 'left';
-                            ctx.textBaseline = 'middle';
-
-                            helpers$1.each(me.legendItems, function(legendItem, i) {
-                                var boxWidth = getBoxWidth(labelOpts, fontSize);
-                                var width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;
-
-                                if (i === 0 || lineWidths[lineWidths.length - 1] + width + 2 * labelOpts.padding > minSize.width) {
-                                    totalHeight += fontSize + labelOpts.padding;
-                                    lineWidths[lineWidths.length - (i > 0 ? 0 : 1)] = 0;
-                                }
-
-                                // Store the hitbox width and height here. Final position will be updated in `draw`
-                                hitboxes[i] = {
-                                    left: 0,
-                                    top: 0,
-                                    width: width,
-                                    height: fontSize
-                                };
-
-                                lineWidths[lineWidths.length - 1] += width + labelOpts.padding;
-                            });
-
-                            minSize.height += totalHeight;
-
-                        } else {
-                            var vPadding = labelOpts.padding;
-                            var columnWidths = me.columnWidths = [];
-                            var columnHeights = me.columnHeights = [];
-                            var totalWidth = labelOpts.padding;
-                            var currentColWidth = 0;
-                            var currentColHeight = 0;
-
-                            helpers$1.each(me.legendItems, function(legendItem, i) {
-                                var boxWidth = getBoxWidth(labelOpts, fontSize);
-                                var itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;
-
-                                // If too tall, go to new column
-                                if (i > 0 && currentColHeight + fontSize + 2 * vPadding > minSize.height) {
-                                    totalWidth += currentColWidth + labelOpts.padding;
-                                    columnWidths.push(currentColWidth); // previous column width
-                                    columnHeights.push(currentColHeight);
-                                    currentColWidth = 0;
-                                    currentColHeight = 0;
-                                }
-
-                                // Get max width
-                                currentColWidth = Math.max(currentColWidth, itemWidth);
-                                currentColHeight += fontSize + vPadding;
-
-                                // Store the hitbox width and height here. Final position will be updated in `draw`
-                                hitboxes[i] = {
-                                    left: 0,
-                                    top: 0,
-                                    width: itemWidth,
-                                    height: fontSize
-                                };
-                            });
-
-                            totalWidth += currentColWidth;
-                            columnWidths.push(currentColWidth);
-                            columnHeights.push(currentColHeight);
-                            minSize.width += totalWidth;
-                        }
+    if (!ele.locked()) {
+      var oldPos = ele._private.position;
+      var delta = {
+        x: newPos.x != null ? newPos.x - oldPos.x : 0,
+        y: newPos.y != null ? newPos.y - oldPos.y : 0
+      };
 
-                        me.width = minSize.width;
-                        me.height = minSize.height;
-                    },
-                    afterFit: noop$1,
-
-                    // Shared Methods
-                    isHorizontal: function() {
-                        return this.options.position === 'top' || this.options.position === 'bottom';
-                    },
-
-                    // Actually draw the legend on the canvas
-                    draw: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var labelOpts = opts.labels;
-                        var globalDefaults = core_defaults.global;
-                        var defaultColor = globalDefaults.defaultColor;
-                        var lineDefault = globalDefaults.elements.line;
-                        var legendHeight = me.height;
-                        var columnHeights = me.columnHeights;
-                        var legendWidth = me.width;
-                        var lineWidths = me.lineWidths;
-
-                        if (!opts.display) {
-                            return;
-                        }
+      if (ele.isParent() && !(delta.x === 0 && delta.y === 0)) {
+        ele.children().shift(delta, silent);
+      }
 
-                        var rtlHelper = getRtlHelper$1(opts.rtl, me.left, me.minSize.width);
-                        var ctx = me.ctx;
-                        var fontColor = valueOrDefault$e(labelOpts.fontColor, globalDefaults.defaultFontColor);
-                        var labelFont = helpers$1.options._parseFont(labelOpts);
-                        var fontSize = labelFont.size;
-                        var cursor;
-
-                        // Canvas setup
-                        ctx.textAlign = rtlHelper.textAlign('left');
-                        ctx.textBaseline = 'middle';
-                        ctx.lineWidth = 0.5;
-                        ctx.strokeStyle = fontColor; // for strikethrough effect
-                        ctx.fillStyle = fontColor; // render in correct colour
-                        ctx.font = labelFont.string;
-
-                        var boxWidth = getBoxWidth(labelOpts, fontSize);
-                        var hitboxes = me.legendHitBoxes;
-
-                        // current position
-                        var drawLegendBox = function(x, y, legendItem) {
-                            if (isNaN(boxWidth) || boxWidth <= 0) {
-                                return;
-                            }
+      ele.shiftCachedBoundingBox(delta);
+    }
+  }
+};
+
+var positionDef = {
+  field: 'position',
+  bindingEvent: 'position',
+  allowBinding: true,
+  allowSetting: true,
+  settingEvent: 'position',
+  settingTriggersEvent: true,
+  triggerFnName: 'emitAndNotify',
+  allowGetting: true,
+  validKeys: ['x', 'y'],
+  beforeGet: function beforeGet(ele) {
+    ele.updateCompoundBounds();
+  },
+  beforeSet: function beforeSet(eles, newPos) {
+    beforePositionSet(eles, newPos, false);
+  },
+  onSet: function onSet(eles) {
+    eles.dirtyCompoundBoundsCache();
+  },
+  canSet: function canSet(ele) {
+    return !ele.locked();
+  }
+};
+fn$2 = elesfn$j = {
+  position: define$3.data(positionDef),
+  // position but no notification to renderer
+  silentPosition: define$3.data(extend({}, positionDef, {
+    allowBinding: false,
+    allowSetting: true,
+    settingTriggersEvent: false,
+    allowGetting: false,
+    beforeSet: function beforeSet(eles, newPos) {
+      beforePositionSet(eles, newPos, true);
+    }
+  })),
+  positions: function positions(pos, silent) {
+    if (plainObject(pos)) {
+      if (silent) {
+        this.silentPosition(pos);
+      } else {
+        this.position(pos);
+      }
+    } else if (fn(pos)) {
+      var _fn = pos;
+      var cy = this.cy();
+      cy.startBatch();
+
+      for (var i = 0; i < this.length; i++) {
+        var ele = this[i];
+
+        var _pos = void 0;
+
+        if (_pos = _fn(ele, i)) {
+          if (silent) {
+            ele.silentPosition(_pos);
+          } else {
+            ele.position(_pos);
+          }
+        }
+      }
 
-                            // Set the ctx for the box
-                            ctx.save();
+      cy.endBatch();
+    }
 
-                            var lineWidth = valueOrDefault$e(legendItem.lineWidth, lineDefault.borderWidth);
-                            ctx.fillStyle = valueOrDefault$e(legendItem.fillStyle, defaultColor);
-                            ctx.lineCap = valueOrDefault$e(legendItem.lineCap, lineDefault.borderCapStyle);
-                            ctx.lineDashOffset = valueOrDefault$e(legendItem.lineDashOffset, lineDefault.borderDashOffset);
-                            ctx.lineJoin = valueOrDefault$e(legendItem.lineJoin, lineDefault.borderJoinStyle);
-                            ctx.lineWidth = lineWidth;
-                            ctx.strokeStyle = valueOrDefault$e(legendItem.strokeStyle, defaultColor);
+    return this; // chaining
+  },
+  silentPositions: function silentPositions(pos) {
+    return this.positions(pos, true);
+  },
+  shift: function shift(dim, val, silent) {
+    var delta;
+
+    if (plainObject(dim)) {
+      delta = {
+        x: number(dim.x) ? dim.x : 0,
+        y: number(dim.y) ? dim.y : 0
+      };
+      silent = val;
+    } else if (string(dim) && number(val)) {
+      delta = {
+        x: 0,
+        y: 0
+      };
+      delta[dim] = val;
+    }
 
-                            if (ctx.setLineDash) {
-                                // IE 9 and 10 do not support line dash
-                                ctx.setLineDash(valueOrDefault$e(legendItem.lineDash, lineDefault.borderDash));
-                            }
+    if (delta != null) {
+      var cy = this.cy();
+      cy.startBatch();
+
+      for (var i = 0; i < this.length; i++) {
+        var ele = this[i];
+        var pos = ele.position();
+        var newPos = {
+          x: pos.x + delta.x,
+          y: pos.y + delta.y
+        };
+
+        if (silent) {
+          ele.silentPosition(newPos);
+        } else {
+          ele.position(newPos);
+        }
+      }
 
-                            if (labelOpts && labelOpts.usePointStyle) {
-                                // Recalculate x and y for drawPoint() because its expecting
-                                // x and y to be center of figure (instead of top left)
-                                var radius = boxWidth * Math.SQRT2 / 2;
-                                var centerX = rtlHelper.xPlus(x, boxWidth / 2);
-                                var centerY = y + fontSize / 2;
-
-                                // Draw pointStyle as legend symbol
-                                helpers$1.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY, legendItem.rotation);
-                            } else {
-                                // Draw box as legend symbol
-                                ctx.fillRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);
-                                if (lineWidth !== 0) {
-                                    ctx.strokeRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);
-                                }
-                            }
+      cy.endBatch();
+    }
 
-                            ctx.restore();
-                        };
+    return this;
+  },
+  silentShift: function silentShift(dim, val) {
+    if (plainObject(dim)) {
+      this.shift(dim, true);
+    } else if (string(dim) && number(val)) {
+      this.shift(dim, val, true);
+    }
 
-                        var fillText = function(x, y, legendItem, textWidth) {
-                            var halfFontSize = fontSize / 2;
-                            var xLeft = rtlHelper.xPlus(x, boxWidth + halfFontSize);
-                            var yMiddle = y + halfFontSize;
+    return this;
+  },
+  // get/set the rendered (i.e. on screen) positon of the element
+  renderedPosition: function renderedPosition(dim, val) {
+    var ele = this[0];
+    var cy = this.cy();
+    var zoom = cy.zoom();
+    var pan = cy.pan();
+    var rpos = plainObject(dim) ? dim : undefined;
+    var setting = rpos !== undefined || val !== undefined && string(dim);
+
+    if (ele && ele.isNode()) {
+      // must have an element and must be a node to return position
+      if (setting) {
+        for (var i = 0; i < this.length; i++) {
+          var _ele = this[i];
+
+          if (val !== undefined) {
+            // set one dimension
+            _ele.position(dim, (val - pan[dim]) / zoom);
+          } else if (rpos !== undefined) {
+            // set whole position
+            _ele.position(renderedToModelPosition(rpos, zoom, pan));
+          }
+        }
+      } else {
+        // getting
+        var pos = ele.position();
+        rpos = modelToRenderedPosition(pos, zoom, pan);
+
+        if (dim === undefined) {
+          // then return the whole rendered position
+          return rpos;
+        } else {
+          // then return the specified dimension
+          return rpos[dim];
+        }
+      }
+    } else if (!setting) {
+      return undefined; // for empty collection case
+    }
 
-                            ctx.fillText(legendItem.text, xLeft, yMiddle);
+    return this; // chaining
+  },
+  // get/set the position relative to the parent
+  relativePosition: function relativePosition(dim, val) {
+    var ele = this[0];
+    var cy = this.cy();
+    var ppos = plainObject(dim) ? dim : undefined;
+    var setting = ppos !== undefined || val !== undefined && string(dim);
+    var hasCompoundNodes = cy.hasCompoundNodes();
+
+    if (ele && ele.isNode()) {
+      // must have an element and must be a node to return position
+      if (setting) {
+        for (var i = 0; i < this.length; i++) {
+          var _ele2 = this[i];
+          var parent = hasCompoundNodes ? _ele2.parent() : null;
+          var hasParent = parent && parent.length > 0;
+          var relativeToParent = hasParent;
+
+          if (hasParent) {
+            parent = parent[0];
+          }
+
+          var origin = relativeToParent ? parent.position() : {
+            x: 0,
+            y: 0
+          };
+
+          if (val !== undefined) {
+            // set one dimension
+            _ele2.position(dim, val + origin[dim]);
+          } else if (ppos !== undefined) {
+            // set whole position
+            _ele2.position({
+              x: ppos.x + origin.x,
+              y: ppos.y + origin.y
+            });
+          }
+        }
+      } else {
+        // getting
+        var pos = ele.position();
 
-                            if (legendItem.hidden) {
-                                // Strikethrough the text if hidden
-                                ctx.beginPath();
-                                ctx.lineWidth = 2;
-                                ctx.moveTo(xLeft, yMiddle);
-                                ctx.lineTo(rtlHelper.xPlus(xLeft, textWidth), yMiddle);
-                                ctx.stroke();
-                            }
-                        };
-
-                        var alignmentOffset = function(dimension, blockSize) {
-                            switch (opts.align) {
-                                case 'start':
-                                    return labelOpts.padding;
-                                case 'end':
-                                    return dimension - blockSize;
-                                default: // center
-                                    return (dimension - blockSize + labelOpts.padding) / 2;
-                            }
-                        };
-
-                        // Horizontal
-                        var isHorizontal = me.isHorizontal();
-                        if (isHorizontal) {
-                            cursor = {
-                                x: me.left + alignmentOffset(legendWidth, lineWidths[0]),
-                                y: me.top + labelOpts.padding,
-                                line: 0
-                            };
-                        } else {
-                            cursor = {
-                                x: me.left + labelOpts.padding,
-                                y: me.top + alignmentOffset(legendHeight, columnHeights[0]),
-                                line: 0
-                            };
-                        }
+        var _parent = hasCompoundNodes ? ele.parent() : null;
 
-                        helpers$1.rtl.overrideTextDirection(me.ctx, opts.textDirection);
-
-                        var itemHeight = fontSize + labelOpts.padding;
-                        helpers$1.each(me.legendItems, function(legendItem, i) {
-                            var textWidth = ctx.measureText(legendItem.text).width;
-                            var width = boxWidth + (fontSize / 2) + textWidth;
-                            var x = cursor.x;
-                            var y = cursor.y;
-
-                            rtlHelper.setWidth(me.minSize.width);
-
-                            // Use (me.left + me.minSize.width) and (me.top + me.minSize.height)
-                            // instead of me.right and me.bottom because me.width and me.height
-                            // may have been changed since me.minSize was calculated
-                            if (isHorizontal) {
-                                if (i > 0 && x + width + labelOpts.padding > me.left + me.minSize.width) {
-                                    y = cursor.y += itemHeight;
-                                    cursor.line++;
-                                    x = cursor.x = me.left + alignmentOffset(legendWidth, lineWidths[cursor.line]);
-                                }
-                            } else if (i > 0 && y + itemHeight > me.top + me.minSize.height) {
-                                x = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;
-                                cursor.line++;
-                                y = cursor.y = me.top + alignmentOffset(legendHeight, columnHeights[cursor.line]);
-                            }
+        var _hasParent = _parent && _parent.length > 0;
 
-                            var realX = rtlHelper.x(x);
+        var _relativeToParent = _hasParent;
 
-                            drawLegendBox(realX, y, legendItem);
+        if (_hasParent) {
+          _parent = _parent[0];
+        }
 
-                            hitboxes[i].left = rtlHelper.leftForLtr(realX, hitboxes[i].width);
-                            hitboxes[i].top = y;
+        var _origin = _relativeToParent ? _parent.position() : {
+          x: 0,
+          y: 0
+        };
+
+        ppos = {
+          x: pos.x - _origin.x,
+          y: pos.y - _origin.y
+        };
+
+        if (dim === undefined) {
+          // then return the whole rendered position
+          return ppos;
+        } else {
+          // then return the specified dimension
+          return ppos[dim];
+        }
+      }
+    } else if (!setting) {
+      return undefined; // for empty collection case
+    }
 
-                            // Fill the actual label
-                            fillText(realX, y, legendItem, textWidth);
+    return this; // chaining
+  }
+}; // aliases
+
+fn$2.modelPosition = fn$2.point = fn$2.position;
+fn$2.modelPositions = fn$2.points = fn$2.positions;
+fn$2.renderedPoint = fn$2.renderedPosition;
+fn$2.relativePoint = fn$2.relativePosition;
+var position = elesfn$j;
+
+var fn$3, elesfn$k;
+fn$3 = elesfn$k = {};
+
+elesfn$k.renderedBoundingBox = function (options) {
+  var bb = this.boundingBox(options);
+  var cy = this.cy();
+  var zoom = cy.zoom();
+  var pan = cy.pan();
+  var x1 = bb.x1 * zoom + pan.x;
+  var x2 = bb.x2 * zoom + pan.x;
+  var y1 = bb.y1 * zoom + pan.y;
+  var y2 = bb.y2 * zoom + pan.y;
+  return {
+    x1: x1,
+    x2: x2,
+    y1: y1,
+    y2: y2,
+    w: x2 - x1,
+    h: y2 - y1
+  };
+};
+
+elesfn$k.dirtyCompoundBoundsCache = function () {
+  var cy = this.cy();
+
+  if (!cy.styleEnabled() || !cy.hasCompoundNodes()) {
+    return this;
+  }
 
-                            if (isHorizontal) {
-                                cursor.x += width + labelOpts.padding;
-                            } else {
-                                cursor.y += itemHeight;
-                            }
-                        });
+  this.forEachUp(function (ele) {
+    if (ele.isParent()) {
+      var _p = ele._private;
+      _p.compoundBoundsClean = false;
+      _p.bbCache = null;
+      ele.emitAndNotify('bounds');
+    }
+  });
+  return this;
+};
 
-                        helpers$1.rtl.restoreTextDirection(me.ctx, opts.textDirection);
-                    },
-
-                    /**
-                     * @private
-                     */
-                    _getLegendItemAt: function(x, y) {
-                        var me = this;
-                        var i, hitBox, lh;
-
-                        if (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {
-                            // See if we are touching one of the dataset boxes
-                            lh = me.legendHitBoxes;
-                            for (i = 0; i < lh.length; ++i) {
-                                hitBox = lh[i];
-
-                                if (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {
-                                    // Touching an element
-                                    return me.legendItems[i];
-                                }
-                            }
-                        }
+elesfn$k.updateCompoundBounds = function () {
+  var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
+  var cy = this.cy(); // not possible to do on non-compound graphs or with the style disabled
 
-                        return null;
-                    },
-
-                    /**
-                     * Handle an event
-                     * @private
-                     * @param {IEvent} event - The event to handle
-                     */
-                    handleEvent: function(e) {
-                        var me = this;
-                        var opts = me.options;
-                        var type = e.type === 'mouseup' ? 'click' : e.type;
-                        var hoveredItem;
-
-                        if (type === 'mousemove') {
-                            if (!opts.onHover && !opts.onLeave) {
-                                return;
-                            }
-                        } else if (type === 'click') {
-                            if (!opts.onClick) {
-                                return;
-                            }
-                        } else {
-                            return;
-                        }
+  if (!cy.styleEnabled() || !cy.hasCompoundNodes()) {
+    return this;
+  } // save cycles when batching -- but bounds will be stale (or not exist yet)
 
-                        // Chart event already has relative position in it
-                        hoveredItem = me._getLegendItemAt(e.x, e.y);
 
-                        if (type === 'click') {
-                            if (hoveredItem && opts.onClick) {
-                                // use e.native for backwards compatibility
-                                opts.onClick.call(me, e.native, hoveredItem);
-                            }
-                        } else {
-                            if (opts.onLeave && hoveredItem !== me._hoveredItem) {
-                                if (me._hoveredItem) {
-                                    opts.onLeave.call(me, e.native, me._hoveredItem);
-                                }
-                                me._hoveredItem = hoveredItem;
-                            }
+  if (!force && cy.batching()) {
+    return this;
+  }
 
-                            if (opts.onHover && hoveredItem) {
-                                // use e.native for backwards compatibility
-                                opts.onHover.call(me, e.native, hoveredItem);
-                            }
-                        }
-                    }
-                });
+  function update(parent) {
+    if (!parent.isParent()) {
+      return;
+    }
 
-                function createNewLegendAndAttach(chart, legendOpts) {
-                    var legend = new Legend({
-                        ctx: chart.ctx,
-                        options: legendOpts,
-                        chart: chart
-                    });
+    var _p = parent._private;
+    var children = parent.children();
+    var includeLabels = parent.pstyle('compound-sizing-wrt-labels').value === 'include';
+    var min = {
+      width: {
+        val: parent.pstyle('min-width').pfValue,
+        left: parent.pstyle('min-width-bias-left'),
+        right: parent.pstyle('min-width-bias-right')
+      },
+      height: {
+        val: parent.pstyle('min-height').pfValue,
+        top: parent.pstyle('min-height-bias-top'),
+        bottom: parent.pstyle('min-height-bias-bottom')
+      }
+    };
+    var bb = children.boundingBox({
+      includeLabels: includeLabels,
+      includeOverlays: false,
+      // updating the compound bounds happens outside of the regular
+      // cache cycle (i.e. before fired events)
+      useCache: false
+    });
+    var pos = _p.position; // if children take up zero area then keep position and fall back on stylesheet w/h
+
+    if (bb.w === 0 || bb.h === 0) {
+      bb = {
+        w: parent.pstyle('width').pfValue,
+        h: parent.pstyle('height').pfValue
+      };
+      bb.x1 = pos.x - bb.w / 2;
+      bb.x2 = pos.x + bb.w / 2;
+      bb.y1 = pos.y - bb.h / 2;
+      bb.y2 = pos.y + bb.h / 2;
+    }
 
-                    core_layouts.configure(chart, legend, legendOpts);
-                    core_layouts.addBox(chart, legend);
-                    chart.legend = legend;
-                }
+    function computeBiasValues(propDiff, propBias, propBiasComplement) {
+      var biasDiff = 0;
+      var biasComplementDiff = 0;
+      var biasTotal = propBias + propBiasComplement;
 
-                var plugin_legend = {
-                    id: 'legend',
+      if (propDiff > 0 && biasTotal > 0) {
+        biasDiff = propBias / biasTotal * propDiff;
+        biasComplementDiff = propBiasComplement / biasTotal * propDiff;
+      }
 
-                    /**
-                     * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making
-                     * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of
-                     * the plugin, which one will be re-exposed in the chart.js file.
-                     * https://github.com/chartjs/Chart.js/pull/2640
-                     * @private
-                     */
-                    _element: Legend,
+      return {
+        biasDiff: biasDiff,
+        biasComplementDiff: biasComplementDiff
+      };
+    }
 
-                    beforeInit: function(chart) {
-                        var legendOpts = chart.options.legend;
+    function computePaddingValues(width, height, paddingObject, relativeTo) {
+      // Assuming percentage is number from 0 to 1
+      if (paddingObject.units === '%') {
+        switch (relativeTo) {
+          case 'width':
+            return width > 0 ? paddingObject.pfValue * width : 0;
 
-                        if (legendOpts) {
-                            createNewLegendAndAttach(chart, legendOpts);
-                        }
-                    },
+          case 'height':
+            return height > 0 ? paddingObject.pfValue * height : 0;
 
-                    beforeUpdate: function(chart) {
-                        var legendOpts = chart.options.legend;
-                        var legend = chart.legend;
+          case 'average':
+            return width > 0 && height > 0 ? paddingObject.pfValue * (width + height) / 2 : 0;
 
-                        if (legendOpts) {
-                            helpers$1.mergeIf(legendOpts, core_defaults.global.legend);
+          case 'min':
+            return width > 0 && height > 0 ? width > height ? paddingObject.pfValue * height : paddingObject.pfValue * width : 0;
 
-                            if (legend) {
-                                core_layouts.configure(chart, legend, legendOpts);
-                                legend.options = legendOpts;
-                            } else {
-                                createNewLegendAndAttach(chart, legendOpts);
-                            }
-                        } else if (legend) {
-                            core_layouts.removeBox(chart, legend);
-                            delete chart.legend;
-                        }
-                    },
+          case 'max':
+            return width > 0 && height > 0 ? width > height ? paddingObject.pfValue * width : paddingObject.pfValue * height : 0;
 
-                    afterEvent: function(chart, e) {
-                        var legend = chart.legend;
-                        if (legend) {
-                            legend.handleEvent(e);
-                        }
-                    }
-                };
+          default:
+            return 0;
+        }
+      } else if (paddingObject.units === 'px') {
+        return paddingObject.pfValue;
+      } else {
+        return 0;
+      }
+    }
 
-                var noop$2 = helpers$1.noop;
-
-                core_defaults._set('global', {
-                    title: {
-                        display: false,
-                        fontStyle: 'bold',
-                        fullWidth: true,
-                        padding: 10,
-                        position: 'top',
-                        text: '',
-                        weight: 2000         // by default greater than legend (1000) to be above
-                    }
-                });
+    var leftVal = min.width.left.value;
 
-                /**
-                 * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!
-                 */
-                var Title = core_element.extend({
-                    initialize: function(config) {
-                        var me = this;
-                        helpers$1.extend(me, config);
-
-                        // Contains hit boxes for each dataset (in dataset order)
-                        me.legendHitBoxes = [];
-                    },
-
-                    // These methods are ordered by lifecycle. Utilities then follow.
-
-                    beforeUpdate: noop$2,
-                    update: function(maxWidth, maxHeight, margins) {
-                        var me = this;
-
-                        // Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
-                        me.beforeUpdate();
-
-                        // Absorb the master measurements
-                        me.maxWidth = maxWidth;
-                        me.maxHeight = maxHeight;
-                        me.margins = margins;
-
-                        // Dimensions
-                        me.beforeSetDimensions();
-                        me.setDimensions();
-                        me.afterSetDimensions();
-                        // Labels
-                        me.beforeBuildLabels();
-                        me.buildLabels();
-                        me.afterBuildLabels();
-
-                        // Fit
-                        me.beforeFit();
-                        me.fit();
-                        me.afterFit();
-                        //
-                        me.afterUpdate();
-
-                        return me.minSize;
-
-                    },
-                    afterUpdate: noop$2,
-
-                    //
-
-                    beforeSetDimensions: noop$2,
-                    setDimensions: function() {
-                        var me = this;
-                        // Set the unconstrained dimension before label rotation
-                        if (me.isHorizontal()) {
-                            // Reset position before calculating rotation
-                            me.width = me.maxWidth;
-                            me.left = 0;
-                            me.right = me.width;
-                        } else {
-                            me.height = me.maxHeight;
-
-                            // Reset position before calculating rotation
-                            me.top = 0;
-                            me.bottom = me.height;
-                        }
+    if (min.width.left.units === 'px' && min.width.val > 0) {
+      leftVal = leftVal * 100 / min.width.val;
+    }
 
-                        // Reset padding
-                        me.paddingLeft = 0;
-                        me.paddingTop = 0;
-                        me.paddingRight = 0;
-                        me.paddingBottom = 0;
-
-                        // Reset minSize
-                        me.minSize = {
-                            width: 0,
-                            height: 0
-                        };
-                    },
-                    afterSetDimensions: noop$2,
-
-                    //
-
-                    beforeBuildLabels: noop$2,
-                    buildLabels: noop$2,
-                    afterBuildLabels: noop$2,
-
-                    //
-
-                    beforeFit: noop$2,
-                    fit: function() {
-                        var me = this;
-                        var opts = me.options;
-                        var minSize = me.minSize = {};
-                        var isHorizontal = me.isHorizontal();
-                        var lineCount, textSize;
-
-                        if (!opts.display) {
-                            me.width = minSize.width = me.height = minSize.height = 0;
-                            return;
-                        }
+    var rightVal = min.width.right.value;
 
-                        lineCount = helpers$1.isArray(opts.text) ? opts.text.length : 1;
-                        textSize = lineCount * helpers$1.options._parseFont(opts).lineHeight + opts.padding * 2;
+    if (min.width.right.units === 'px' && min.width.val > 0) {
+      rightVal = rightVal * 100 / min.width.val;
+    }
 
-                        me.width = minSize.width = isHorizontal ? me.maxWidth : textSize;
-                        me.height = minSize.height = isHorizontal ? textSize : me.maxHeight;
-                    },
-                    afterFit: noop$2,
+    var topVal = min.height.top.value;
 
-                    // Shared Methods
-                    isHorizontal: function() {
-                        var pos = this.options.position;
-                        return pos === 'top' || pos === 'bottom';
-                    },
+    if (min.height.top.units === 'px' && min.height.val > 0) {
+      topVal = topVal * 100 / min.height.val;
+    }
 
-                    // Actually draw the title block on the canvas
-                    draw: function() {
-                        var me = this;
-                        var ctx = me.ctx;
-                        var opts = me.options;
+    var bottomVal = min.height.bottom.value;
 
-                        if (!opts.display) {
-                            return;
-                        }
+    if (min.height.bottom.units === 'px' && min.height.val > 0) {
+      bottomVal = bottomVal * 100 / min.height.val;
+    }
 
-                        var fontOpts = helpers$1.options._parseFont(opts);
-                        var lineHeight = fontOpts.lineHeight;
-                        var offset = lineHeight / 2 + opts.padding;
-                        var rotation = 0;
-                        var top = me.top;
-                        var left = me.left;
-                        var bottom = me.bottom;
-                        var right = me.right;
-                        var maxWidth, titleX, titleY;
-
-                        ctx.fillStyle = helpers$1.valueOrDefault(opts.fontColor, core_defaults.global.defaultFontColor); // render in correct colour
-                        ctx.font = fontOpts.string;
-
-                        // Horizontal
-                        if (me.isHorizontal()) {
-                            titleX = left + ((right - left) / 2); // midpoint of the width
-                            titleY = top + offset;
-                            maxWidth = right - left;
-                        } else {
-                            titleX = opts.position === 'left' ? left + offset : right - offset;
-                            titleY = top + ((bottom - top) / 2);
-                            maxWidth = bottom - top;
-                            rotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);
-                        }
+    var widthBiasDiffs = computeBiasValues(min.width.val - bb.w, leftVal, rightVal);
+    var diffLeft = widthBiasDiffs.biasDiff;
+    var diffRight = widthBiasDiffs.biasComplementDiff;
+    var heightBiasDiffs = computeBiasValues(min.height.val - bb.h, topVal, bottomVal);
+    var diffTop = heightBiasDiffs.biasDiff;
+    var diffBottom = heightBiasDiffs.biasComplementDiff;
+    _p.autoPadding = computePaddingValues(bb.w, bb.h, parent.pstyle('padding'), parent.pstyle('padding-relative-to').value);
+    _p.autoWidth = Math.max(bb.w, min.width.val);
+    pos.x = (-diffLeft + bb.x1 + bb.x2 + diffRight) / 2;
+    _p.autoHeight = Math.max(bb.h, min.height.val);
+    pos.y = (-diffTop + bb.y1 + bb.y2 + diffBottom) / 2;
+  }
 
-                        ctx.save();
-                        ctx.translate(titleX, titleY);
-                        ctx.rotate(rotation);
-                        ctx.textAlign = 'center';
-                        ctx.textBaseline = 'middle';
-
-                        var text = opts.text;
-                        if (helpers$1.isArray(text)) {
-                            var y = 0;
-                            for (var i = 0; i < text.length; ++i) {
-                                ctx.fillText(text[i], 0, y, maxWidth);
-                                y += lineHeight;
-                            }
-                        } else {
-                            ctx.fillText(text, 0, 0, maxWidth);
-                        }
+  for (var i = 0; i < this.length; i++) {
+    var ele = this[i];
+    var _p = ele._private;
 
-                        ctx.restore();
-                    }
-                });
+    if (!_p.compoundBoundsClean) {
+      update(ele);
 
-                function createNewTitleBlockAndAttach(chart, titleOpts) {
-                    var title = new Title({
-                        ctx: chart.ctx,
-                        options: titleOpts,
-                        chart: chart
-                    });
+      if (!cy.batching()) {
+        _p.compoundBoundsClean = true;
+      }
+    }
+  }
 
-                    core_layouts.configure(chart, title, titleOpts);
-                    core_layouts.addBox(chart, title);
-                    chart.titleBlock = title;
-                }
+  return this;
+};
 
-                var plugin_title = {
-                    id: 'title',
+var noninf = function noninf(x) {
+  if (x === Infinity || x === -Infinity) {
+    return 0;
+  }
 
-                    /**
-                     * Backward compatibility: since 2.1.5, the title is registered as a plugin, making
-                     * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of
-                     * the plugin, which one will be re-exposed in the chart.js file.
-                     * https://github.com/chartjs/Chart.js/pull/2640
-                     * @private
-                     */
-                    _element: Title,
+  return x;
+};
 
-                    beforeInit: function(chart) {
-                        var titleOpts = chart.options.title;
+var updateBounds = function updateBounds(b, x1, y1, x2, y2) {
+  // don't update with zero area boxes
+  if (x2 - x1 === 0 || y2 - y1 === 0) {
+    return;
+  } // don't update with null dim
 
-                        if (titleOpts) {
-                            createNewTitleBlockAndAttach(chart, titleOpts);
-                        }
-                    },
 
-                    beforeUpdate: function(chart) {
-                        var titleOpts = chart.options.title;
-                        var titleBlock = chart.titleBlock;
+  if (x1 == null || y1 == null || x2 == null || y2 == null) {
+    return;
+  }
 
-                        if (titleOpts) {
-                            helpers$1.mergeIf(titleOpts, core_defaults.global.title);
+  b.x1 = x1 < b.x1 ? x1 : b.x1;
+  b.x2 = x2 > b.x2 ? x2 : b.x2;
+  b.y1 = y1 < b.y1 ? y1 : b.y1;
+  b.y2 = y2 > b.y2 ? y2 : b.y2;
+  b.w = b.x2 - b.x1;
+  b.h = b.y2 - b.y1;
+};
+
+var updateBoundsFromBox = function updateBoundsFromBox(b, b2) {
+  if (b2 == null) {
+    return b;
+  }
 
-                            if (titleBlock) {
-                                core_layouts.configure(chart, titleBlock, titleOpts);
-                                titleBlock.options = titleOpts;
-                            } else {
-                                createNewTitleBlockAndAttach(chart, titleOpts);
-                            }
-                        } else if (titleBlock) {
-                            core_layouts.removeBox(chart, titleBlock);
-                            delete chart.titleBlock;
-                        }
-                    }
-                };
+  return updateBounds(b, b2.x1, b2.y1, b2.x2, b2.y2);
+};
 
-                var plugins = {};
-                var filler = plugin_filler;
-                var legend = plugin_legend;
-                var title = plugin_title;
-                plugins.filler = filler;
-                plugins.legend = legend;
-                plugins.title = title;
+var prefixedProperty = function prefixedProperty(obj, field, prefix) {
+  return getPrefixedProperty(obj, field, prefix);
+};
 
-                /**
-                 * @namespace Chart
-                 */
+var updateBoundsFromArrow = function updateBoundsFromArrow(bounds, ele, prefix) {
+  if (ele.cy().headless()) {
+    return;
+  }
 
+  var _p = ele._private;
+  var rstyle = _p.rstyle;
+  var halfArW = rstyle.arrowWidth / 2;
+  var arrowType = ele.pstyle(prefix + '-arrow-shape').value;
+  var x;
+  var y;
+
+  if (arrowType !== 'none') {
+    if (prefix === 'source') {
+      x = rstyle.srcX;
+      y = rstyle.srcY;
+    } else if (prefix === 'target') {
+      x = rstyle.tgtX;
+      y = rstyle.tgtY;
+    } else {
+      x = rstyle.midX;
+      y = rstyle.midY;
+    } // always store the individual arrow bounds
+
+
+    var bbs = _p.arrowBounds = _p.arrowBounds || {};
+    var bb = bbs[prefix] = bbs[prefix] || {};
+    bb.x1 = x - halfArW;
+    bb.y1 = y - halfArW;
+    bb.x2 = x + halfArW;
+    bb.y2 = y + halfArW;
+    bb.w = bb.x2 - bb.x1;
+    bb.h = bb.y2 - bb.y1;
+    expandBoundingBox(bb, 1);
+    updateBounds(bounds, bb.x1, bb.y1, bb.x2, bb.y2);
+  }
+};
 
-                core_controller.helpers = helpers$1;
+var updateBoundsFromLabel = function updateBoundsFromLabel(bounds, ele, prefix) {
+  if (ele.cy().headless()) {
+    return;
+  }
 
-// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!
-                core_helpers();
-
-                core_controller._adapters = core_adapters;
-                core_controller.Animation = core_animation;
-                core_controller.animationService = core_animations;
-                core_controller.controllers = controllers;
-                core_controller.DatasetController = core_datasetController;
-                core_controller.defaults = core_defaults;
-                core_controller.Element = core_element;
-                core_controller.elements = elements;
-                core_controller.Interaction = core_interaction;
-                core_controller.layouts = core_layouts;
-                core_controller.platform = platform;
-                core_controller.plugins = core_plugins;
-                core_controller.Scale = core_scale;
-                core_controller.scaleService = core_scaleService;
-                core_controller.Ticks = core_ticks;
-                core_controller.Tooltip = core_tooltip;
+  var prefixDash;
 
-// Register built-in scales
+  if (prefix) {
+    prefixDash = prefix + '-';
+  } else {
+    prefixDash = '';
+  }
 
-                core_controller.helpers.each(scales, function(scale, type) {
-                    core_controller.scaleService.registerScaleType(type, scale, scale._defaults);
-                });
+  var _p = ele._private;
+  var rstyle = _p.rstyle;
+  var label = ele.pstyle(prefixDash + 'label').strValue;
+
+  if (label) {
+    var halign = ele.pstyle('text-halign');
+    var valign = ele.pstyle('text-valign');
+    var labelWidth = prefixedProperty(rstyle, 'labelWidth', prefix);
+    var labelHeight = prefixedProperty(rstyle, 'labelHeight', prefix);
+    var labelX = prefixedProperty(rstyle, 'labelX', prefix);
+    var labelY = prefixedProperty(rstyle, 'labelY', prefix);
+    var marginX = ele.pstyle(prefixDash + 'text-margin-x').pfValue;
+    var marginY = ele.pstyle(prefixDash + 'text-margin-y').pfValue;
+    var isEdge = ele.isEdge();
+    var rotation = ele.pstyle(prefixDash + 'text-rotation');
+    var outlineWidth = ele.pstyle('text-outline-width').pfValue;
+    var borderWidth = ele.pstyle('text-border-width').pfValue;
+    var halfBorderWidth = borderWidth / 2;
+    var padding = ele.pstyle('text-background-padding').pfValue;
+    var marginOfError = 2; // expand to work around browser dimension inaccuracies
+
+    var lh = labelHeight;
+    var lw = labelWidth;
+    var lw_2 = lw / 2;
+    var lh_2 = lh / 2;
+    var lx1, lx2, ly1, ly2;
+
+    if (isEdge) {
+      lx1 = labelX - lw_2;
+      lx2 = labelX + lw_2;
+      ly1 = labelY - lh_2;
+      ly2 = labelY + lh_2;
+    } else {
+      switch (halign.value) {
+        case 'left':
+          lx1 = labelX - lw;
+          lx2 = labelX;
+          break;
+
+        case 'center':
+          lx1 = labelX - lw_2;
+          lx2 = labelX + lw_2;
+          break;
+
+        case 'right':
+          lx1 = labelX;
+          lx2 = labelX + lw;
+          break;
+      }
+
+      switch (valign.value) {
+        case 'top':
+          ly1 = labelY - lh;
+          ly2 = labelY;
+          break;
+
+        case 'center':
+          ly1 = labelY - lh_2;
+          ly2 = labelY + lh_2;
+          break;
+
+        case 'bottom':
+          ly1 = labelY;
+          ly2 = labelY + lh;
+          break;
+      }
+    } // shift by margin and expand by outline and border
+
+
+    lx1 += marginX - Math.max(outlineWidth, halfBorderWidth) - padding - marginOfError;
+    lx2 += marginX + Math.max(outlineWidth, halfBorderWidth) + padding + marginOfError;
+    ly1 += marginY - Math.max(outlineWidth, halfBorderWidth) - padding - marginOfError;
+    ly2 += marginY + Math.max(outlineWidth, halfBorderWidth) + padding + marginOfError; // always store the unrotated label bounds separately
+
+    var bbPrefix = prefix || 'main';
+    var bbs = _p.labelBounds;
+    var bb = bbs[bbPrefix] = bbs[bbPrefix] || {};
+    bb.x1 = lx1;
+    bb.y1 = ly1;
+    bb.x2 = lx2;
+    bb.y2 = ly2;
+    bb.w = lx2 - lx1;
+    bb.h = ly2 - ly1;
+    var isAutorotate = isEdge && rotation.strValue === 'autorotate';
+    var isPfValue = rotation.pfValue != null && rotation.pfValue !== 0;
+
+    if (isAutorotate || isPfValue) {
+      var theta = isAutorotate ? prefixedProperty(_p.rstyle, 'labelAngle', prefix) : rotation.pfValue;
+      var cos = Math.cos(theta);
+      var sin = Math.sin(theta); // rotation point (default value for center-center)
+
+      var xo = (lx1 + lx2) / 2;
+      var yo = (ly1 + ly2) / 2;
+
+      if (!isEdge) {
+        switch (halign.value) {
+          case 'left':
+            xo = lx2;
+            break;
+
+          case 'right':
+            xo = lx1;
+            break;
+        }
 
-// Load to register built-in adapters (as side effects)
+        switch (valign.value) {
+          case 'top':
+            yo = ly2;
+            break;
 
+          case 'bottom':
+            yo = ly1;
+            break;
+        }
+      }
+
+      var rotate = function rotate(x, y) {
+        x = x - xo;
+        y = y - yo;
+        return {
+          x: x * cos - y * sin + xo,
+          y: x * sin + y * cos + yo
+        };
+      };
+
+      var px1y1 = rotate(lx1, ly1);
+      var px1y2 = rotate(lx1, ly2);
+      var px2y1 = rotate(lx2, ly1);
+      var px2y2 = rotate(lx2, ly2);
+      lx1 = Math.min(px1y1.x, px1y2.x, px2y1.x, px2y2.x);
+      lx2 = Math.max(px1y1.x, px1y2.x, px2y1.x, px2y2.x);
+      ly1 = Math.min(px1y1.y, px1y2.y, px2y1.y, px2y2.y);
+      ly2 = Math.max(px1y1.y, px1y2.y, px2y1.y, px2y2.y);
+    }
 
-// Loading built-in plugins
+    var bbPrefixRot = bbPrefix + 'Rot';
+    var bbRot = bbs[bbPrefixRot] = bbs[bbPrefixRot] || {};
+    bbRot.x1 = lx1;
+    bbRot.y1 = ly1;
+    bbRot.x2 = lx2;
+    bbRot.y2 = ly2;
+    bbRot.w = lx2 - lx1;
+    bbRot.h = ly2 - ly1;
+    updateBounds(bounds, lx1, ly1, lx2, ly2);
+    updateBounds(_p.labelBounds.all, lx1, ly1, lx2, ly2);
+  }
 
-                for (var k in plugins) {
-                    if (plugins.hasOwnProperty(k)) {
-                        core_controller.plugins.register(plugins[k]);
-                    }
-                }
+  return bounds;
+}; // get the bounding box of the elements (in raw model position)
 
-                core_controller.platform.initialize();
 
-                var src = core_controller;
-                if (typeof window !== 'undefined') {
-                    window.Chart = core_controller;
-                }
+var boundingBoxImpl = function boundingBoxImpl(ele, options) {
+  var cy = ele._private.cy;
+  var styleEnabled = cy.styleEnabled();
+  var headless = cy.headless();
+  var bounds = makeBoundingBox();
+  var _p = ele._private;
+  var isNode = ele.isNode();
+  var isEdge = ele.isEdge();
+  var ex1, ex2, ey1, ey2; // extrema of body / lines
 
-// DEPRECATIONS
+  var x, y; // node pos
 
-                /**
-                 * Provided for backward compatibility, not available anymore
-                 * @namespace Chart.Chart
-                 * @deprecated since version 2.8.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.Chart = core_controller;
-
-                /**
-                 * Provided for backward compatibility, not available anymore
-                 * @namespace Chart.Legend
-                 * @deprecated since version 2.1.5
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.Legend = plugins.legend._element;
-
-                /**
-                 * Provided for backward compatibility, not available anymore
-                 * @namespace Chart.Title
-                 * @deprecated since version 2.1.5
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.Title = plugins.title._element;
-
-                /**
-                 * Provided for backward compatibility, use Chart.plugins instead
-                 * @namespace Chart.pluginService
-                 * @deprecated since version 2.1.5
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.pluginService = core_controller.plugins;
-
-                /**
-                 * Provided for backward compatibility, inheriting from Chart.PlugingBase has no
-                 * effect, instead simply create/register plugins via plain JavaScript objects.
-                 * @interface Chart.PluginBase
-                 * @deprecated since version 2.5.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.PluginBase = core_controller.Element.extend({});
-
-                /**
-                 * Provided for backward compatibility, use Chart.helpers.canvas instead.
-                 * @namespace Chart.canvasHelpers
-                 * @deprecated since version 2.6.0
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.canvasHelpers = core_controller.helpers.canvas;
-
-                /**
-                 * Provided for backward compatibility, use Chart.layouts instead.
-                 * @namespace Chart.layoutService
-                 * @deprecated since version 2.7.3
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.layoutService = core_controller.layouts;
-
-                /**
-                 * Provided for backward compatibility, not available anymore.
-                 * @namespace Chart.LinearScaleBase
-                 * @deprecated since version 2.8
-                 * @todo remove at version 3
-                 * @private
-                 */
-                core_controller.LinearScaleBase = scale_linearbase;
-
-                /**
-                 * Provided for backward compatibility, instead we should create a new Chart
-                 * by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).
-                 * @deprecated since version 2.8.0
-                 * @todo remove at version 3
-                 */
-                core_controller.helpers.each(
-                    [
-                        'Bar',
-                        'Bubble',
-                        'Doughnut',
-                        'Line',
-                        'PolarArea',
-                        'Radar',
-                        'Scatter'
-                    ],
-                    function(klass) {
-                        core_controller[klass] = function(ctx, cfg) {
-                            return new core_controller(ctx, core_controller.helpers.merge(cfg || {}, {
-                                type: klass.charAt(0).toLowerCase() + klass.slice(1)
-                            }));
-                        };
-                    }
-                );
+  var rstyle = _p.rstyle;
+  var manualExpansion = isNode && styleEnabled ? ele.pstyle('bounds-expansion').pfValue : [0]; // must use `display` prop only, as reading `compound.width()` causes recursion
+  // (other factors like width values will be considered later in this function anyway)
 
-                return src;
+  var isDisplayed = function isDisplayed(ele) {
+    return ele.pstyle('display').value !== 'none';
+  };
 
-            })));
+  var displayed = !styleEnabled || isDisplayed(ele) // must take into account connected nodes b/c of implicit edge hiding on display:none node
+  && (!isEdge || isDisplayed(ele.source()) && isDisplayed(ele.target()));
 
+  if (displayed) {
+    // displayed suffices, since we will find zero area eles anyway
+    var overlayOpacity = 0;
+    var overlayPadding = 0;
 
-            /***/ }),
+    if (styleEnabled && options.includeOverlays) {
+      overlayOpacity = ele.pstyle('overlay-opacity').value;
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/annotation.js":
-        /*!******************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/annotation.js ***!
-  \******************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+      if (overlayOpacity !== 0) {
+        overlayPadding = ele.pstyle('overlay-padding').value;
+      }
+    }
 
-            module.exports = function(Chart) {
-                var chartHelpers = Chart.helpers;
+    var w = 0;
+    var wHalf = 0;
 
-                var helpers = __webpack_require__(/*! ./helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
-                var events = __webpack_require__(/*! ./events.js */ "./node_modules/chartjs-plugin-annotation/src/events.js")(Chart);
+    if (styleEnabled) {
+      w = ele.pstyle('width').pfValue;
+      wHalf = w / 2;
+    }
 
-                var annotationTypes = Chart.Annotation.types;
+    if (isNode && options.includeNodes) {
+      var pos = ele.position();
+      x = pos.x;
+      y = pos.y;
+
+      var _w = ele.outerWidth();
+
+      var halfW = _w / 2;
+      var h = ele.outerHeight();
+      var halfH = h / 2; // handle node dimensions
+      /////////////////////////
+
+      ex1 = x - halfW;
+      ex2 = x + halfW;
+      ey1 = y - halfH;
+      ey2 = y + halfH;
+      updateBounds(bounds, ex1, ey1, ex2, ey2);
+    } else if (isEdge && options.includeEdges) {
+      if (styleEnabled && !headless) {
+        var curveStyle = ele.pstyle('curve-style').strValue; // handle edge dimensions (rough box estimate)
+        //////////////////////////////////////////////
+
+        ex1 = Math.min(rstyle.srcX, rstyle.midX, rstyle.tgtX);
+        ex2 = Math.max(rstyle.srcX, rstyle.midX, rstyle.tgtX);
+        ey1 = Math.min(rstyle.srcY, rstyle.midY, rstyle.tgtY);
+        ey2 = Math.max(rstyle.srcY, rstyle.midY, rstyle.tgtY); // take into account edge width
+
+        ex1 -= wHalf;
+        ex2 += wHalf;
+        ey1 -= wHalf;
+        ey2 += wHalf;
+        updateBounds(bounds, ex1, ey1, ex2, ey2); // precise edges
+        ////////////////
+
+        if (curveStyle === 'haystack') {
+          var hpts = rstyle.haystackPts;
+
+          if (hpts && hpts.length === 2) {
+            ex1 = hpts[0].x;
+            ey1 = hpts[0].y;
+            ex2 = hpts[1].x;
+            ey2 = hpts[1].y;
+
+            if (ex1 > ex2) {
+              var temp = ex1;
+              ex1 = ex2;
+              ex2 = temp;
+            }
 
-                function setAfterDataLimitsHook(axisOptions) {
-                    helpers.decorate(axisOptions, 'afterDataLimits', function(previous, scale) {
-                        if (previous) previous(scale);
-                        helpers.adjustScaleRange(scale);
-                    });
-                }
+            if (ey1 > ey2) {
+              var _temp = ey1;
+              ey1 = ey2;
+              ey2 = _temp;
+            }
 
-                function draw(drawTime) {
-                    return function(chartInstance, easingDecimal) {
-                        var defaultDrawTime = chartInstance.annotation.options.drawTime;
-
-                        helpers.elements(chartInstance)
-                            .filter(function(element) {
-                                return drawTime === (element.options.drawTime || defaultDrawTime);
-                            })
-                            .forEach(function(element) {
-                                element.transition(easingDecimal).draw();
-                            });
-                    };
-                }
+            updateBounds(bounds, ex1 - wHalf, ey1 - wHalf, ex2 + wHalf, ey2 + wHalf);
+          }
+        } else if (curveStyle === 'bezier' || curveStyle === 'unbundled-bezier' || curveStyle === 'segments' || curveStyle === 'taxi') {
+          var pts;
+
+          switch (curveStyle) {
+            case 'bezier':
+            case 'unbundled-bezier':
+              pts = rstyle.bezierPts;
+              break;
+
+            case 'segments':
+            case 'taxi':
+              pts = rstyle.linePts;
+              break;
+          }
+
+          if (pts != null) {
+            for (var j = 0; j < pts.length; j++) {
+              var pt = pts[j];
+              ex1 = pt.x - wHalf;
+              ex2 = pt.x + wHalf;
+              ey1 = pt.y - wHalf;
+              ey2 = pt.y + wHalf;
+              updateBounds(bounds, ex1, ey1, ex2, ey2);
+            }
+          }
+        } // bezier-like or segment-like edge
+
+      } else {
+        // headless or style disabled
+        // fallback on source and target positions
+        //////////////////////////////////////////
+        var n1 = ele.source();
+        var n1pos = n1.position();
+        var n2 = ele.target();
+        var n2pos = n2.position();
+        ex1 = n1pos.x;
+        ex2 = n2pos.x;
+        ey1 = n1pos.y;
+        ey2 = n2pos.y;
+
+        if (ex1 > ex2) {
+          var _temp2 = ex1;
+          ex1 = ex2;
+          ex2 = _temp2;
+        }
 
-                return {
-                    beforeInit: function(chartInstance) {
-                        var chartOptions = chartInstance.options;
-
-                        // Initialize chart instance plugin namespace
-                        var ns = chartInstance.annotation = {
-                            elements: {},
-                            options: helpers.initConfig(chartOptions.annotation || {}),
-                            onDestroy: [],
-                            firstRun: true,
-                            supported: false
-                        };
-
-                        // Add the annotation scale adjuster to each scale's afterDataLimits hook
-                        chartInstance.ensureScalesHaveIDs();
-                        if (chartOptions.scales) {
-                            ns.supported = true;
-                            chartHelpers.each(chartOptions.scales.xAxes, setAfterDataLimitsHook);
-                            chartHelpers.each(chartOptions.scales.yAxes, setAfterDataLimitsHook);
-                        }
-                    },
-                    beforeUpdate: function(chartInstance) {
-                        var ns = chartInstance.annotation;
+        if (ey1 > ey2) {
+          var _temp3 = ey1;
+          ey1 = ey2;
+          ey2 = _temp3;
+        } // take into account edge width
+
+
+        ex1 -= wHalf;
+        ex2 += wHalf;
+        ey1 -= wHalf;
+        ey2 += wHalf;
+        updateBounds(bounds, ex1, ey1, ex2, ey2);
+      } // headless or style disabled
+
+    } // edges
+    // handle edge arrow size
+    /////////////////////////
+
+
+    if (styleEnabled && options.includeEdges && isEdge) {
+      updateBoundsFromArrow(bounds, ele, 'mid-source');
+      updateBoundsFromArrow(bounds, ele, 'mid-target');
+      updateBoundsFromArrow(bounds, ele, 'source');
+      updateBoundsFromArrow(bounds, ele, 'target');
+    } // ghost
+    ////////
+
+
+    if (styleEnabled) {
+      var ghost = ele.pstyle('ghost').value === 'yes';
+
+      if (ghost) {
+        var gx = ele.pstyle('ghost-offset-x').pfValue;
+        var gy = ele.pstyle('ghost-offset-y').pfValue;
+        updateBounds(bounds, bounds.x1 + gx, bounds.y1 + gy, bounds.x2 + gx, bounds.y2 + gy);
+      }
+    } // always store the body bounds separately from the labels
+
+
+    var bbBody = _p.bodyBounds = _p.bodyBounds || {};
+    assignBoundingBox(bbBody, bounds);
+    expandBoundingBoxSides(bbBody, manualExpansion);
+    expandBoundingBox(bbBody, 1); // expand to work around browser dimension inaccuracies
+    // overlay
+    //////////
+
+    if (styleEnabled) {
+      ex1 = bounds.x1;
+      ex2 = bounds.x2;
+      ey1 = bounds.y1;
+      ey2 = bounds.y2;
+      updateBounds(bounds, ex1 - overlayPadding, ey1 - overlayPadding, ex2 + overlayPadding, ey2 + overlayPadding);
+    } // always store the body bounds separately from the labels
+
+
+    var bbOverlay = _p.overlayBounds = _p.overlayBounds || {};
+    assignBoundingBox(bbOverlay, bounds);
+    expandBoundingBoxSides(bbOverlay, manualExpansion);
+    expandBoundingBox(bbOverlay, 1); // expand to work around browser dimension inaccuracies
+    // handle label dimensions
+    //////////////////////////
+
+    var bbLabels = _p.labelBounds = _p.labelBounds || {};
+
+    if (bbLabels.all != null) {
+      clearBoundingBox(bbLabels.all);
+    } else {
+      bbLabels.all = makeBoundingBox();
+    }
 
-                        if (!ns.supported) {
-                            return;
-                        }
+    if (styleEnabled && options.includeLabels) {
+      if (options.includeMainLabels) {
+        updateBoundsFromLabel(bounds, ele, null);
+      }
 
-                        if (!ns.firstRun) {
-                            ns.options = helpers.initConfig(chartInstance.options.annotation || {});
-                        } else {
-                            ns.firstRun = false;
-                        }
+      if (isEdge) {
+        if (options.includeSourceLabels) {
+          updateBoundsFromLabel(bounds, ele, 'source');
+        }
 
-                        var elementIds = [];
-
-                        // Add new elements, or update existing ones
-                        ns.options.annotations.forEach(function(annotation) {
-                            var id = annotation.id || helpers.objectId();
-
-                            // No element with that ID exists, and it's a valid annotation type
-                            if (!ns.elements[id] && annotationTypes[annotation.type]) {
-                                var cls = annotationTypes[annotation.type];
-                                var element = new cls({
-                                    id: id,
-                                    options: annotation,
-                                    chartInstance: chartInstance,
-                                });
-                                element.initialize();
-                                ns.elements[id] = element;
-                                annotation.id = id;
-                                elementIds.push(id);
-                            } else if (ns.elements[id]) {
-                                // Nothing to do for update, since the element config references
-                                // the same object that exists in the chart annotation config
-                                elementIds.push(id);
-                            }
-                        });
+        if (options.includeTargetLabels) {
+          updateBoundsFromLabel(bounds, ele, 'target');
+        }
+      }
+    } // style enabled for labels
 
-                        // Delete removed elements
-                        Object.keys(ns.elements).forEach(function(id) {
-                            if (elementIds.indexOf(id) === -1) {
-                                ns.elements[id].destroy();
-                                delete ns.elements[id];
-                            }
-                        });
-                    },
-                    afterScaleUpdate: function(chartInstance) {
-                        helpers.elements(chartInstance).forEach(function(element) {
-                            element.configure();
-                        });
-                    },
-                    beforeDatasetsDraw: draw('beforeDatasetsDraw'),
-                    afterDatasetsDraw: draw('afterDatasetsDraw'),
-                    afterDraw: draw('afterDraw'),
-                    afterInit: function(chartInstance) {
-                        // Detect and intercept events that happen on an annotation element
-                        var watchFor = chartInstance.annotation.options.events;
-                        if (chartHelpers.isArray(watchFor) && watchFor.length > 0) {
-                            var canvas = chartInstance.chart.canvas;
-                            var eventHandler = events.dispatcher.bind(chartInstance);
-                            events.collapseHoverEvents(watchFor).forEach(function(eventName) {
-                                chartHelpers.addEvent(canvas, eventName, eventHandler);
-                                chartInstance.annotation.onDestroy.push(function() {
-                                    chartHelpers.removeEvent(canvas, eventName, eventHandler);
-                                });
-                            });
-                        }
-                    },
-                    destroy: function(chartInstance) {
-                        var deregisterers = chartInstance.annotation.onDestroy;
-                        while (deregisterers.length > 0) {
-                            deregisterers.pop()();
-                        }
-                    }
-                };
-            };
+  } // if displayed
 
 
-            /***/ }),
+  bounds.x1 = noninf(bounds.x1);
+  bounds.y1 = noninf(bounds.y1);
+  bounds.x2 = noninf(bounds.x2);
+  bounds.y2 = noninf(bounds.y2);
+  bounds.w = noninf(bounds.x2 - bounds.x1);
+  bounds.h = noninf(bounds.y2 - bounds.y1);
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/element.js":
-        /*!***************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/element.js ***!
-  \***************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            module.exports = function(Chart) {
-                var chartHelpers = Chart.helpers;
-
-                var AnnotationElement = Chart.Element.extend({
-                    initialize: function() {
-                        this.hidden = false;
-                        this.hovering = false;
-                        this._model = chartHelpers.clone(this._model) || {};
-                        this.setDataLimits();
-                    },
-                    destroy: function() {},
-                    setDataLimits: function() {},
-                    configure: function() {},
-                    inRange: function() {},
-                    getCenterPoint: function() {},
-                    getWidth: function() {},
-                    getHeight: function() {},
-                    getArea: function() {},
-                    draw: function() {}
-                });
+  if (bounds.w > 0 && bounds.h > 0 && displayed) {
+    expandBoundingBoxSides(bounds, manualExpansion); // expand bounds by 1 because antialiasing can increase the visual/effective size by 1 on all sides
 
-                return AnnotationElement;
-            };
+    expandBoundingBox(bounds, 1);
+  }
 
+  return bounds;
+};
+
+var getKey = function getKey(opts) {
+  var i = 0;
+
+  var tf = function tf(val) {
+    return (val ? 1 : 0) << i++;
+  };
+
+  var key = 0;
+  key += tf(opts.incudeNodes);
+  key += tf(opts.includeEdges);
+  key += tf(opts.includeLabels);
+  key += tf(opts.includeMainLabels);
+  key += tf(opts.includeSourceLabels);
+  key += tf(opts.includeTargetLabels);
+  key += tf(opts.includeOverlays);
+  return key;
+};
+
+var getBoundingBoxPosKey = function getBoundingBoxPosKey(ele) {
+  if (ele.isEdge()) {
+    var p1 = ele.source().position();
+    var p2 = ele.target().position();
+
+    var r = function r(x) {
+      return Math.round(x);
+    };
+
+    return hashIntsArray([r(p1.x), r(p1.y), r(p2.x), r(p2.y)]);
+  } else {
+    return 0;
+  }
+};
+
+var cachedBoundingBoxImpl = function cachedBoundingBoxImpl(ele, opts) {
+  var _p = ele._private;
+  var bb;
+  var isEdge = ele.isEdge();
+  var key = opts == null ? defBbOptsKey : getKey(opts);
+  var usingDefOpts = key === defBbOptsKey;
+  var currPosKey = getBoundingBoxPosKey(ele);
+  var isPosKeySame = _p.bbCachePosKey === currPosKey;
+  var useCache = opts.useCache && isPosKeySame;
+
+  var isDirty = function isDirty(ele) {
+    return ele._private.bbCache == null || ele._private.styleDirty;
+  };
+
+  var needRecalc = !useCache || isDirty(ele) || isEdge && isDirty(ele.source()) || isDirty(ele.target());
+
+  if (needRecalc) {
+    if (!isPosKeySame) {
+      ele.recalculateRenderedStyle(useCache);
+    }
 
-            /***/ }),
+    bb = boundingBoxImpl(ele, defBbOpts);
+    _p.bbCache = bb;
+    _p.bbCacheShift.x = _p.bbCacheShift.y = 0;
+    _p.bbCachePosKey = currPosKey;
+  } else {
+    bb = _p.bbCache;
+  }
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/events.js":
-        /*!**************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/events.js ***!
-  \**************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            module.exports = function(Chart) {
-                var chartHelpers = Chart.helpers;
-                var helpers = __webpack_require__(/*! ./helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
-
-                function collapseHoverEvents(events) {
-                    var hover = false;
-                    var filteredEvents = events.filter(function(eventName) {
-                        switch (eventName) {
-                            case 'mouseenter':
-                            case 'mouseover':
-                            case 'mouseout':
-                            case 'mouseleave':
-                                hover = true;
-                                return false;
-
-                            default:
-                                return true;
-                        }
-                    });
-                    if (hover && filteredEvents.indexOf('mousemove') === -1) {
-                        filteredEvents.push('mousemove');
-                    }
-                    return filteredEvents;
-                }
+  if (!needRecalc && (_p.bbCacheShift.x !== 0 || _p.bbCacheShift.y !== 0)) {
+    var shift = assignShiftToBoundingBox;
+    var delta = _p.bbCacheShift;
+
+    var safeShift = function safeShift(bb, delta) {
+      if (bb != null) {
+        shift(bb, delta);
+      }
+    };
+
+    shift(bb, delta);
+    var bodyBounds = _p.bodyBounds,
+        overlayBounds = _p.overlayBounds,
+        labelBounds = _p.labelBounds,
+        arrowBounds = _p.arrowBounds;
+    safeShift(bodyBounds, delta);
+    safeShift(overlayBounds, delta);
+
+    if (arrowBounds != null) {
+      safeShift(arrowBounds.source, delta);
+      safeShift(arrowBounds.target, delta);
+      safeShift(arrowBounds['mid-source'], delta);
+      safeShift(arrowBounds['mid-target'], delta);
+    }
 
-                function dispatcher(e) {
-                    var ns = this.annotation;
-                    var elements = helpers.elements(this);
-                    var position = chartHelpers.getRelativePosition(e, this.chart);
-                    var element = helpers.getNearestItems(elements, position);
-                    var events = collapseHoverEvents(ns.options.events);
-                    var dblClickSpeed = ns.options.dblClickSpeed;
-                    var eventHandlers = [];
-                    var eventHandlerName = helpers.getEventHandlerName(e.type);
-                    var options = (element || {}).options;
-
-                    // Detect hover events
-                    if (e.type === 'mousemove') {
-                        if (element && !element.hovering) {
-                            // hover started
-                            ['mouseenter', 'mouseover'].forEach(function(eventName) {
-                                var eventHandlerName = helpers.getEventHandlerName(eventName);
-                                var hoverEvent = helpers.createMouseEvent(eventName, e); // recreate the event to match the handler
-                                element.hovering = true;
-                                if (typeof options[eventHandlerName] === 'function') {
-                                    eventHandlers.push([ options[eventHandlerName], hoverEvent, element ]);
-                                }
-                            });
-                        } else if (!element) {
-                            // hover ended
-                            elements.forEach(function(element) {
-                                if (element.hovering) {
-                                    element.hovering = false;
-                                    var options = element.options;
-                                    ['mouseout', 'mouseleave'].forEach(function(eventName) {
-                                        var eventHandlerName = helpers.getEventHandlerName(eventName);
-                                        var hoverEvent = helpers.createMouseEvent(eventName, e); // recreate the event to match the handler
-                                        if (typeof options[eventHandlerName] === 'function') {
-                                            eventHandlers.push([ options[eventHandlerName], hoverEvent, element ]);
-                                        }
-                                    });
-                                }
-                            });
-                        }
-                    }
+    if (labelBounds != null) {
+      safeShift(labelBounds.main, delta);
+      safeShift(labelBounds.all, delta);
+      safeShift(labelBounds.source, delta);
+      safeShift(labelBounds.target, delta);
+    }
+  } // always reset the shift, because we either applied the shift or cleared it by doing a fresh recalc
 
-                    // Suppress duplicate click events during a double click
-                    // 1. click -> 2. click -> 3. dblclick
-                    //
-                    // 1: wait dblClickSpeed ms, then fire click
-                    // 2: cancel (1) if it is waiting then wait dblClickSpeed ms then fire click, else fire click immediately
-                    // 3: cancel (1) or (2) if waiting, then fire dblclick
-                    if (element && events.indexOf('dblclick') > -1 && typeof options.onDblclick === 'function') {
-                        if (e.type === 'click' && typeof options.onClick === 'function') {
-                            clearTimeout(element.clickTimeout);
-                            element.clickTimeout = setTimeout(function() {
-                                delete element.clickTimeout;
-                                options.onClick.call(element, e);
-                            }, dblClickSpeed);
-                            e.stopImmediatePropagation();
-                            e.preventDefault();
-                            return;
-                        } else if (e.type === 'dblclick' && element.clickTimeout) {
-                            clearTimeout(element.clickTimeout);
-                            delete element.clickTimeout;
-                        }
-                    }
 
-                    // Dispatch the event to the usual handler, but only if we haven't substituted it
-                    if (element && typeof options[eventHandlerName] === 'function' && eventHandlers.length === 0) {
-                        eventHandlers.push([ options[eventHandlerName], e, element ]);
-                    }
+  _p.bbCacheShift.x = _p.bbCacheShift.y = 0; // not using def opts => need to build up bb from combination of sub bbs
 
-                    if (eventHandlers.length > 0) {
-                        e.stopImmediatePropagation();
-                        e.preventDefault();
-                        eventHandlers.forEach(function(eventHandler) {
-                            // [handler, event, element]
-                            eventHandler[0].call(eventHandler[2], eventHandler[1]);
-                        });
-                    }
-                }
+  if (!usingDefOpts) {
+    var isNode = ele.isNode();
+    bb = makeBoundingBox();
 
-                return {
-                    dispatcher: dispatcher,
-                    collapseHoverEvents: collapseHoverEvents
-                };
-            };
+    if (opts.includeNodes && isNode || opts.includeEdges && !isNode) {
+      if (opts.includeOverlays) {
+        updateBoundsFromBox(bb, _p.overlayBounds);
+      } else {
+        updateBoundsFromBox(bb, _p.bodyBounds);
+      }
+    }
 
+    if (opts.includeLabels) {
+      if (opts.includeMainLabels && (!isEdge || opts.includeSourceLabels && opts.includeTargetLabels)) {
+        updateBoundsFromBox(bb, _p.labelBounds.all);
+      } else {
+        if (opts.includeMainLabels) {
+          updateBoundsFromBox(bb, _p.labelBounds.mainRot);
+        }
 
-            /***/ }),
+        if (opts.includeSourceLabels) {
+          updateBoundsFromBox(bb, _p.labelBounds.sourceRot);
+        }
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/helpers.js":
-        /*!***************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/helpers.js ***!
-  \***************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+        if (opts.includeTargetLabels) {
+          updateBoundsFromBox(bb, _p.labelBounds.targetRot);
+        }
+      }
+    }
 
-            function noop() {}
+    bb.w = bb.x2 - bb.x1;
+    bb.h = bb.y2 - bb.y1;
+  }
 
-            function elements(chartInstance) {
-                // Turn the elements object into an array of elements
-                var elements = chartInstance.annotation.elements;
-                return Object.keys(elements).map(function(id) {
-                    return elements[id];
-                });
-            }
+  return bb;
+};
+
+var defBbOpts = {
+  includeNodes: true,
+  includeEdges: true,
+  includeLabels: true,
+  includeMainLabels: true,
+  includeSourceLabels: true,
+  includeTargetLabels: true,
+  includeOverlays: true,
+  useCache: true
+};
+var defBbOptsKey = getKey(defBbOpts);
+var filledBbOpts = defaults(defBbOpts);
+
+elesfn$k.boundingBox = function (options) {
+  var bounds; // the main usecase is ele.boundingBox() for a single element with no/def options
+  // specified s.t. the cache is used, so check for this case to make it faster by
+  // avoiding the overhead of the rest of the function
+
+  if (this.length === 1 && this[0]._private.bbCache != null && !this[0]._private.styleDirty && (options === undefined || options.useCache === undefined || options.useCache === true)) {
+    if (options === undefined) {
+      options = defBbOpts;
+    } else {
+      options = filledBbOpts(options);
+    }
 
-            function objectId() {
-                return Math.random().toString(36).substr(2, 6);
-            }
+    bounds = cachedBoundingBoxImpl(this[0], options);
+  } else {
+    bounds = makeBoundingBox();
+    options = options || defBbOpts;
+    var opts = filledBbOpts(options);
+    var eles = this;
+    var cy = eles.cy();
+    var styleEnabled = cy.styleEnabled();
+
+    if (styleEnabled) {
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        var _p = ele._private;
+        var currPosKey = getBoundingBoxPosKey(ele);
+        var isPosKeySame = _p.bbCachePosKey === currPosKey;
+        var useCache = opts.useCache && isPosKeySame && !_p.styleDirty;
+        ele.recalculateRenderedStyle(useCache);
+      }
+    }
 
-            function isValid(rawValue) {
-                if (rawValue === null || typeof rawValue === 'undefined') {
-                    return false;
-                } else if (typeof rawValue === 'number') {
-                    return isFinite(rawValue);
-                } else {
-                    return !!rawValue;
-                }
-            }
+    this.updateCompoundBounds();
 
-            function decorate(obj, prop, func) {
-                var prefix = '$';
-                if (!obj[prefix + prop]) {
-                    if (obj[prop]) {
-                        obj[prefix + prop] = obj[prop].bind(obj);
-                        obj[prop] = function() {
-                            var args = [ obj[prefix + prop] ].concat(Array.prototype.slice.call(arguments));
-                            return func.apply(obj, args);
-                        };
-                    } else {
-                        obj[prop] = function() {
-                            var args = [ undefined ].concat(Array.prototype.slice.call(arguments));
-                            return func.apply(obj, args);
-                        };
-                    }
-                }
-            }
+    for (var _i = 0; _i < eles.length; _i++) {
+      var _ele = eles[_i];
+      updateBoundsFromBox(bounds, cachedBoundingBoxImpl(_ele, opts));
+    }
+  }
 
-            function callEach(fns, method) {
-                fns.forEach(function(fn) {
-                    (method ? fn[method] : fn)();
-                });
-            }
+  bounds.x1 = noninf(bounds.x1);
+  bounds.y1 = noninf(bounds.y1);
+  bounds.x2 = noninf(bounds.x2);
+  bounds.y2 = noninf(bounds.y2);
+  bounds.w = noninf(bounds.x2 - bounds.x1);
+  bounds.h = noninf(bounds.y2 - bounds.y1);
+  return bounds;
+};
+
+elesfn$k.dirtyBoundingBoxCache = function () {
+  for (var i = 0; i < this.length; i++) {
+    var _p = this[i]._private;
+    _p.bbCache = null;
+    _p.bbCacheShift.x = _p.bbCacheShift.y = 0;
+    _p.bbCachePosKey = null;
+    _p.bodyBounds = null;
+    _p.overlayBounds = null;
+    _p.labelBounds.all = null;
+    _p.labelBounds.source = null;
+    _p.labelBounds.target = null;
+    _p.labelBounds.main = null;
+    _p.labelBounds.sourceRot = null;
+    _p.labelBounds.targetRot = null;
+    _p.labelBounds.mainRot = null;
+    _p.arrowBounds.source = null;
+    _p.arrowBounds.target = null;
+    _p.arrowBounds['mid-source'] = null;
+    _p.arrowBounds['mid-target'] = null;
+  }
 
-            function getEventHandlerName(eventName) {
-                return 'on' + eventName[0].toUpperCase() + eventName.substring(1);
-            }
+  this.emitAndNotify('bounds');
+  return this;
+};
 
-            function createMouseEvent(type, previousEvent) {
-                try {
-                    return new MouseEvent(type, previousEvent);
-                } catch (exception) {
-                    try {
-                        var m = document.createEvent('MouseEvent');
-                        m.initMouseEvent(
-                            type,
-                            previousEvent.canBubble,
-                            previousEvent.cancelable,
-                            previousEvent.view,
-                            previousEvent.detail,
-                            previousEvent.screenX,
-                            previousEvent.screenY,
-                            previousEvent.clientX,
-                            previousEvent.clientY,
-                            previousEvent.ctrlKey,
-                            previousEvent.altKey,
-                            previousEvent.shiftKey,
-                            previousEvent.metaKey,
-                            previousEvent.button,
-                            previousEvent.relatedTarget
-                        );
-                        return m;
-                    } catch (exception2) {
-                        var e = document.createEvent('Event');
-                        e.initEvent(
-                            type,
-                            previousEvent.canBubble,
-                            previousEvent.cancelable
-                        );
-                        return e;
-                    }
-                }
-            }
+elesfn$k.shiftCachedBoundingBox = function (delta) {
+  for (var i = 0; i < this.length; i++) {
+    var ele = this[i];
+    var _p = ele._private;
+    var bb = _p.bbCache;
 
-            module.exports = function(Chart) {
-                var chartHelpers = Chart.helpers;
+    if (bb != null) {
+      _p.bbCacheShift.x += delta.x;
+      _p.bbCacheShift.y += delta.y;
+    }
+  }
 
-                function initConfig(config) {
-                    config = chartHelpers.configMerge(Chart.Annotation.defaults, config);
-                    if (chartHelpers.isArray(config.annotations)) {
-                        config.annotations.forEach(function(annotation) {
-                            annotation.label = chartHelpers.configMerge(Chart.Annotation.labelDefaults, annotation.label);
-                        });
-                    }
-                    return config;
-                }
+  this.emitAndNotify('bounds');
+  return this;
+}; // private helper to get bounding box for custom node positions
+// - good for perf in certain cases but currently requires dirtying the rendered style
+// - would be better to not modify the nodes but the nodes are read directly everywhere in the renderer...
+// - try to use for only things like discrete layouts where the node position would change anyway
 
-                function getScaleLimits(scaleId, annotations, scaleMin, scaleMax) {
-                    var ranges = annotations.filter(function(annotation) {
-                        return !!annotation._model.ranges[scaleId];
-                    }).map(function(annotation) {
-                        return annotation._model.ranges[scaleId];
-                    });
-
-                    var min = ranges.map(function(range) {
-                        return Number(range.min);
-                    }).reduce(function(a, b) {
-                        return isFinite(b) && !isNaN(b) && b < a ? b : a;
-                    }, scaleMin);
-
-                    var max = ranges.map(function(range) {
-                        return Number(range.max);
-                    }).reduce(function(a, b) {
-                        return isFinite(b) && !isNaN(b) && b > a ? b : a;
-                    }, scaleMax);
-
-                    return {
-                        min: min,
-                        max: max
-                    };
-                }
 
-                function adjustScaleRange(scale) {
-                    // Adjust the scale range to include annotation values
-                    var range = getScaleLimits(scale.id, elements(scale.chart), scale.min, scale.max);
-                    if (typeof scale.options.ticks.min === 'undefined' && typeof scale.options.ticks.suggestedMin === 'undefined') {
-                        scale.min = range.min;
-                    }
-                    if (typeof scale.options.ticks.max === 'undefined' && typeof scale.options.ticks.suggestedMax === 'undefined') {
-                        scale.max = range.max;
-                    }
-                    if (scale.handleTickRangeOptions) {
-                        scale.handleTickRangeOptions();
-                    }
-                }
+elesfn$k.boundingBoxAt = function (fn) {
+  var nodes = this.nodes();
+  var cy = this.cy();
+  var hasCompoundNodes = cy.hasCompoundNodes();
 
-                function getNearestItems(annotations, position) {
-                    var minDistance = Number.POSITIVE_INFINITY;
-
-                    return annotations
-                        .filter(function(element) {
-                            return element.inRange(position.x, position.y);
-                        })
-                        .reduce(function(nearestItems, element) {
-                            var center = element.getCenterPoint();
-                            var distance = chartHelpers.distanceBetweenPoints(position, center);
-
-                            if (distance < minDistance) {
-                                nearestItems = [element];
-                                minDistance = distance;
-                            } else if (distance === minDistance) {
-                                // Can have multiple items at the same distance in which case we sort by size
-                                nearestItems.push(element);
-                            }
+  if (hasCompoundNodes) {
+    nodes = nodes.filter(function (node) {
+      return !node.isParent();
+    });
+  }
 
-                            return nearestItems;
-                        }, [])
-                        .sort(function(a, b) {
-                            // If there are multiple elements equally close,
-                            // sort them by size, then by index
-                            var sizeA = a.getArea(), sizeB = b.getArea();
-                            return (sizeA > sizeB || sizeA < sizeB) ? sizeA - sizeB : a._index - b._index;
-                        })
-                        .slice(0, 1)[0]; // return only the top item
-                }
+  if (plainObject(fn)) {
+    var obj = fn;
 
-                return {
-                    initConfig: initConfig,
-                    elements: elements,
-                    callEach: callEach,
-                    noop: noop,
-                    objectId: objectId,
-                    isValid: isValid,
-                    decorate: decorate,
-                    adjustScaleRange: adjustScaleRange,
-                    getNearestItems: getNearestItems,
-                    getEventHandlerName: getEventHandlerName,
-                    createMouseEvent: createMouseEvent
-                };
-            };
+    fn = function fn() {
+      return obj;
+    };
+  }
 
+  var storeOldPos = function storeOldPos(node, i) {
+    return node._private.bbAtOldPos = fn(node, i);
+  };
 
+  var getOldPos = function getOldPos(node) {
+    return node._private.bbAtOldPos;
+  };
 
-            /***/ }),
+  cy.startBatch();
+  nodes.forEach(storeOldPos).silentPositions(fn);
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/index.js":
-        /*!*************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/index.js ***!
-  \*************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+  if (hasCompoundNodes) {
+    this.updateCompoundBounds(true); // force update b/c we're inside a batch cycle
+  }
 
-// Get the chart variable
-            var Chart = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
-            Chart = typeof(Chart) === 'function' ? Chart : window.Chart;
+  var bb = copyBoundingBox(this.boundingBox({
+    useCache: false
+  }));
+  nodes.silentPositions(getOldPos);
+  cy.endBatch();
+  return bb;
+};
+
+fn$3.boundingbox = fn$3.bb = fn$3.boundingBox;
+fn$3.renderedBoundingbox = fn$3.renderedBoundingBox;
+var bounds = elesfn$k;
+
+var fn$4, elesfn$l;
+fn$4 = elesfn$l = {};
+
+var defineDimFns = function defineDimFns(opts) {
+  opts.uppercaseName = capitalize(opts.name);
+  opts.autoName = 'auto' + opts.uppercaseName;
+  opts.labelName = 'label' + opts.uppercaseName;
+  opts.outerName = 'outer' + opts.uppercaseName;
+  opts.uppercaseOuterName = capitalize(opts.outerName);
+
+  fn$4[opts.name] = function dimImpl() {
+    var ele = this[0];
+    var _p = ele._private;
+    var cy = _p.cy;
+    var styleEnabled = cy._private.styleEnabled;
+
+    if (ele) {
+      if (styleEnabled) {
+        if (ele.isParent()) {
+          ele.updateCompoundBounds();
+          return _p[opts.autoName] || 0;
+        }
 
-// Configure plugin namespace
-            Chart.Annotation = Chart.Annotation || {};
+        var d = ele.pstyle(opts.name);
 
-            Chart.Annotation.drawTimeOptions = {
-                afterDraw: 'afterDraw',
-                afterDatasetsDraw: 'afterDatasetsDraw',
-                beforeDatasetsDraw: 'beforeDatasetsDraw'
-            };
+        switch (d.strValue) {
+          case 'label':
+            ele.recalculateRenderedStyle();
+            return _p.rstyle[opts.labelName] || 0;
 
-            Chart.Annotation.defaults = {
-                drawTime: 'afterDatasetsDraw',
-                dblClickSpeed: 350, // ms
-                events: [],
-                annotations: []
-            };
+          default:
+            return d.pfValue;
+        }
+      } else {
+        return 1;
+      }
+    }
+  };
+
+  fn$4['outer' + opts.uppercaseName] = function outerDimImpl() {
+    var ele = this[0];
+    var _p = ele._private;
+    var cy = _p.cy;
+    var styleEnabled = cy._private.styleEnabled;
+
+    if (ele) {
+      if (styleEnabled) {
+        var dim = ele[opts.name]();
+        var border = ele.pstyle('border-width').pfValue; // n.b. 1/2 each side
+
+        var padding = 2 * ele.padding();
+        return dim + border + padding;
+      } else {
+        return 1;
+      }
+    }
+  };
 
-            Chart.Annotation.labelDefaults = {
-                backgroundColor: 'rgba(0,0,0,0.8)',
-                fontFamily: Chart.defaults.global.defaultFontFamily,
-                fontSize: Chart.defaults.global.defaultFontSize,
-                fontStyle: 'bold',
-                fontColor: '#fff',
-                xPadding: 6,
-                yPadding: 6,
-                cornerRadius: 6,
-                position: 'center',
-                xAdjust: 0,
-                yAdjust: 0,
-                enabled: false,
-                content: null
-            };
+  fn$4['rendered' + opts.uppercaseName] = function renderedDimImpl() {
+    var ele = this[0];
 
-            Chart.Annotation.Element = __webpack_require__(/*! ./element.js */ "./node_modules/chartjs-plugin-annotation/src/element.js")(Chart);
+    if (ele) {
+      var d = ele[opts.name]();
+      return d * this.cy().zoom();
+    }
+  };
 
-            Chart.Annotation.types = {
-                line: __webpack_require__(/*! ./types/line.js */ "./node_modules/chartjs-plugin-annotation/src/types/line.js")(Chart),
-                box: __webpack_require__(/*! ./types/box.js */ "./node_modules/chartjs-plugin-annotation/src/types/box.js")(Chart)
-            };
+  fn$4['rendered' + opts.uppercaseOuterName] = function renderedOuterDimImpl() {
+    var ele = this[0];
 
-            var annotationPlugin = __webpack_require__(/*! ./annotation.js */ "./node_modules/chartjs-plugin-annotation/src/annotation.js")(Chart);
+    if (ele) {
+      var od = ele[opts.outerName]();
+      return od * this.cy().zoom();
+    }
+  };
+};
+
+defineDimFns({
+  name: 'width'
+});
+defineDimFns({
+  name: 'height'
+});
+
+elesfn$l.padding = function () {
+  var ele = this[0];
+  var _p = ele._private;
+
+  if (ele.isParent()) {
+    ele.updateCompoundBounds();
+
+    if (_p.autoPadding !== undefined) {
+      return _p.autoPadding;
+    } else {
+      return ele.pstyle('padding').pfValue;
+    }
+  } else {
+    return ele.pstyle('padding').pfValue;
+  }
+};
 
-            module.exports = annotationPlugin;
-            Chart.pluginService.register(annotationPlugin);
+elesfn$l.paddedHeight = function () {
+  var ele = this[0];
+  return ele.height() + 2 * ele.padding();
+};
 
+elesfn$l.paddedWidth = function () {
+  var ele = this[0];
+  return ele.width() + 2 * ele.padding();
+};
 
-            /***/ }),
+var widthHeight = elesfn$l;
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/types/box.js":
-        /*!*****************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/types/box.js ***!
-  \*****************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+var ifEdge = function ifEdge(ele, getValue) {
+  if (ele.isEdge()) {
+    return getValue(ele);
+  }
+};
 
-// Box Annotation implementation
-            module.exports = function(Chart) {
-                var helpers = __webpack_require__(/*! ../helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
+var ifEdgeRenderedPosition = function ifEdgeRenderedPosition(ele, getPoint) {
+  if (ele.isEdge()) {
+    var cy = ele.cy();
+    return modelToRenderedPosition(getPoint(ele), cy.zoom(), cy.pan());
+  }
+};
+
+var ifEdgeRenderedPositions = function ifEdgeRenderedPositions(ele, getPoints) {
+  if (ele.isEdge()) {
+    var cy = ele.cy();
+    var pan = cy.pan();
+    var zoom = cy.zoom();
+    return getPoints(ele).map(function (p) {
+      return modelToRenderedPosition(p, zoom, pan);
+    });
+  }
+};
+
+var controlPoints = function controlPoints(ele) {
+  return ele.renderer().getControlPoints(ele);
+};
+
+var segmentPoints = function segmentPoints(ele) {
+  return ele.renderer().getSegmentPoints(ele);
+};
+
+var sourceEndpoint = function sourceEndpoint(ele) {
+  return ele.renderer().getSourceEndpoint(ele);
+};
+
+var targetEndpoint = function targetEndpoint(ele) {
+  return ele.renderer().getTargetEndpoint(ele);
+};
+
+var midpoint = function midpoint(ele) {
+  return ele.renderer().getEdgeMidpoint(ele);
+};
+
+var pts = {
+  controlPoints: {
+    get: controlPoints,
+    mult: true
+  },
+  segmentPoints: {
+    get: segmentPoints,
+    mult: true
+  },
+  sourceEndpoint: {
+    get: sourceEndpoint
+  },
+  targetEndpoint: {
+    get: targetEndpoint
+  },
+  midpoint: {
+    get: midpoint
+  }
+};
+
+var renderedName = function renderedName(name) {
+  return 'rendered' + name[0].toUpperCase() + name.substr(1);
+};
+
+var edgePoints = Object.keys(pts).reduce(function (obj, name) {
+  var spec = pts[name];
+  var rName = renderedName(name);
+
+  obj[name] = function () {
+    return ifEdge(this, spec.get);
+  };
+
+  if (spec.mult) {
+    obj[rName] = function () {
+      return ifEdgeRenderedPositions(this, spec.get);
+    };
+  } else {
+    obj[rName] = function () {
+      return ifEdgeRenderedPosition(this, spec.get);
+    };
+  }
 
-                var BoxAnnotation = Chart.Annotation.Element.extend({
-                    setDataLimits: function() {
-                        var model = this._model;
-                        var options = this.options;
-                        var chartInstance = this.chartInstance;
+  return obj;
+}, {});
 
-                        var xScale = chartInstance.scales[options.xScaleID];
-                        var yScale = chartInstance.scales[options.yScaleID];
-                        var chartArea = chartInstance.chartArea;
+var dimensions = extend({}, position, bounds, widthHeight, edgePoints);
 
-                        // Set the data range for this annotation
-                        model.ranges = {};
+/*!
+Event object based on jQuery events, MIT license
 
-                        if (!chartArea) {
-                            return;
-                        }
+https://jquery.org/license/
+https://tldrlegal.com/license/mit-license
+https://github.com/jquery/jquery/blob/master/src/event.js
+*/
+var Event = function Event(src, props) {
+  this.recycle(src, props);
+};
+
+function returnFalse() {
+  return false;
+}
+
+function returnTrue() {
+  return true;
+} // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+
+
+Event.prototype = {
+  instanceString: function instanceString() {
+    return 'event';
+  },
+  recycle: function recycle(src, props) {
+    this.isImmediatePropagationStopped = this.isPropagationStopped = this.isDefaultPrevented = returnFalse;
+
+    if (src != null && src.preventDefault) {
+      // Browser Event object
+      this.type = src.type; // Events bubbling up the document may have been marked as prevented
+      // by a handler lower down the tree; reflect the correct value.
+
+      this.isDefaultPrevented = src.defaultPrevented ? returnTrue : returnFalse;
+    } else if (src != null && src.type) {
+      // Plain object containing all event details
+      props = src;
+    } else {
+      // Event string
+      this.type = src;
+    } // Put explicitly provided properties onto the event object
+
+
+    if (props != null) {
+      // more efficient to manually copy fields we use
+      this.originalEvent = props.originalEvent;
+      this.type = props.type != null ? props.type : this.type;
+      this.cy = props.cy;
+      this.target = props.target;
+      this.position = props.position;
+      this.renderedPosition = props.renderedPosition;
+      this.namespace = props.namespace;
+      this.layout = props.layout;
+    }
 
-                        var min = 0;
-                        var max = 0;
+    if (this.cy != null && this.position != null && this.renderedPosition == null) {
+      // create a rendered position based on the passed position
+      var pos = this.position;
+      var zoom = this.cy.zoom();
+      var pan = this.cy.pan();
+      this.renderedPosition = {
+        x: pos.x * zoom + pan.x,
+        y: pos.y * zoom + pan.y
+      };
+    } // Create a timestamp if incoming event doesn't have one
 
-                        if (xScale) {
-                            min = helpers.isValid(options.xMin) ? options.xMin : xScale.getPixelForValue(chartArea.left);
-                            max = helpers.isValid(options.xMax) ? options.xMax : xScale.getPixelForValue(chartArea.right);
 
-                            model.ranges[options.xScaleID] = {
-                                min: Math.min(min, max),
-                                max: Math.max(min, max)
-                            };
-                        }
+    this.timeStamp = src && src.timeStamp || Date.now();
+  },
+  preventDefault: function preventDefault() {
+    this.isDefaultPrevented = returnTrue;
+    var e = this.originalEvent;
 
-                        if (yScale) {
-                            min = helpers.isValid(options.yMin) ? options.yMin : yScale.getPixelForValue(chartArea.bottom);
-                            max = helpers.isValid(options.yMax) ? options.yMax : yScale.getPixelForValue(chartArea.top);
+    if (!e) {
+      return;
+    } // if preventDefault exists run it on the original event
 
-                            model.ranges[options.yScaleID] = {
-                                min: Math.min(min, max),
-                                max: Math.max(min, max)
-                            };
-                        }
-                    },
-                    configure: function() {
-                        var model = this._model;
-                        var options = this.options;
-                        var chartInstance = this.chartInstance;
-
-                        var xScale = chartInstance.scales[options.xScaleID];
-                        var yScale = chartInstance.scales[options.yScaleID];
-                        var chartArea = chartInstance.chartArea;
-
-                        // clip annotations to the chart area
-                        model.clip = {
-                            x1: chartArea.left,
-                            x2: chartArea.right,
-                            y1: chartArea.top,
-                            y2: chartArea.bottom
-                        };
-
-                        var left = chartArea.left,
-                            top = chartArea.top,
-                            right = chartArea.right,
-                            bottom = chartArea.bottom;
-
-                        var min, max;
-
-                        if (xScale) {
-                            min = helpers.isValid(options.xMin) ? xScale.getPixelForValue(options.xMin) : chartArea.left;
-                            max = helpers.isValid(options.xMax) ? xScale.getPixelForValue(options.xMax) : chartArea.right;
-                            left = Math.min(min, max);
-                            right = Math.max(min, max);
-                        }
 
-                        if (yScale) {
-                            min = helpers.isValid(options.yMin) ? yScale.getPixelForValue(options.yMin) : chartArea.bottom;
-                            max = helpers.isValid(options.yMax) ? yScale.getPixelForValue(options.yMax) : chartArea.top;
-                            top = Math.min(min, max);
-                            bottom = Math.max(min, max);
-                        }
+    if (e.preventDefault) {
+      e.preventDefault();
+    }
+  },
+  stopPropagation: function stopPropagation() {
+    this.isPropagationStopped = returnTrue;
+    var e = this.originalEvent;
 
-                        // Ensure model has rect coordinates
-                        model.left = left;
-                        model.top = top;
-                        model.right = right;
-                        model.bottom = bottom;
-
-                        // Stylistic options
-                        model.borderColor = options.borderColor;
-                        model.borderWidth = options.borderWidth;
-                        model.backgroundColor = options.backgroundColor;
-                    },
-                    inRange: function(mouseX, mouseY) {
-                        var model = this._model;
-                        return model &&
-                            mouseX >= model.left &&
-                            mouseX <= model.right &&
-                            mouseY >= model.top &&
-                            mouseY <= model.bottom;
-                    },
-                    getCenterPoint: function() {
-                        var model = this._model;
-                        return {
-                            x: (model.right + model.left) / 2,
-                            y: (model.bottom + model.top) / 2
-                        };
-                    },
-                    getWidth: function() {
-                        var model = this._model;
-                        return Math.abs(model.right - model.left);
-                    },
-                    getHeight: function() {
-                        var model = this._model;
-                        return Math.abs(model.bottom - model.top);
-                    },
-                    getArea: function() {
-                        return this.getWidth() * this.getHeight();
-                    },
-                    draw: function() {
-                        var view = this._view;
-                        var ctx = this.chartInstance.chart.ctx;
-
-                        ctx.save();
-
-                        // Canvas setup
-                        ctx.beginPath();
-                        ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
-                        ctx.clip();
-
-                        ctx.lineWidth = view.borderWidth;
-                        ctx.strokeStyle = view.borderColor;
-                        ctx.fillStyle = view.backgroundColor;
-
-                        // Draw
-                        var width = view.right - view.left,
-                            height = view.bottom - view.top;
-                        ctx.fillRect(view.left, view.top, width, height);
-                        ctx.strokeRect(view.left, view.top, width, height);
-
-                        ctx.restore();
-                    }
-                });
+    if (!e) {
+      return;
+    } // if stopPropagation exists run it on the original event
 
-                return BoxAnnotation;
-            };
 
+    if (e.stopPropagation) {
+      e.stopPropagation();
+    }
+  },
+  stopImmediatePropagation: function stopImmediatePropagation() {
+    this.isImmediatePropagationStopped = returnTrue;
+    this.stopPropagation();
+  },
+  isDefaultPrevented: returnFalse,
+  isPropagationStopped: returnFalse,
+  isImmediatePropagationStopped: returnFalse
+};
+
+var eventRegex = /^([^.]+)(\.(?:[^.]+))?$/; // regex for matching event strings (e.g. "click.namespace")
+
+var universalNamespace = '.*'; // matches as if no namespace specified and prevents users from unbinding accidentally
+
+var defaults$8 = {
+  qualifierCompare: function qualifierCompare(q1, q2) {
+    return q1 === q2;
+  },
+  eventMatches: function eventMatches()
+  /*context, listener, eventObj*/
+  {
+    return true;
+  },
+  addEventFields: function addEventFields()
+  /*context, evt*/
+  {},
+  callbackContext: function callbackContext(context
+  /*, listener, eventObj*/
+  ) {
+    return context;
+  },
+  beforeEmit: function beforeEmit()
+  /* context, listener, eventObj */
+  {},
+  afterEmit: function afterEmit()
+  /* context, listener, eventObj */
+  {},
+  bubble: function bubble()
+  /*context*/
+  {
+    return false;
+  },
+  parent: function parent()
+  /*context*/
+  {
+    return null;
+  },
+  context: null
+};
+var defaultsKeys = Object.keys(defaults$8);
+var emptyOpts = {};
+
+function Emitter() {
+  var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyOpts;
+  var context = arguments.length > 1 ? arguments[1] : undefined;
+
+  // micro-optimisation vs Object.assign() -- reduces Element instantiation time
+  for (var i = 0; i < defaultsKeys.length; i++) {
+    var key = defaultsKeys[i];
+    this[key] = opts[key] || defaults$8[key];
+  }
 
-            /***/ }),
+  this.context = context || this.context;
+  this.listeners = [];
+  this.emitting = 0;
+}
 
-        /***/ "./node_modules/chartjs-plugin-annotation/src/types/line.js":
-        /*!******************************************************************!*\
-  !*** ./node_modules/chartjs-plugin-annotation/src/types/line.js ***!
-  \******************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+var p = Emitter.prototype;
 
-// Line Annotation implementation
-            module.exports = function(Chart) {
-                var chartHelpers = Chart.helpers;
-                var helpers = __webpack_require__(/*! ../helpers.js */ "./node_modules/chartjs-plugin-annotation/src/helpers.js")(Chart);
-
-                var horizontalKeyword = 'horizontal';
-                var verticalKeyword = 'vertical';
-
-                var LineAnnotation = Chart.Annotation.Element.extend({
-                    setDataLimits: function() {
-                        var model = this._model;
-                        var options = this.options;
-
-                        // Set the data range for this annotation
-                        model.ranges = {};
-                        model.ranges[options.scaleID] = {
-                            min: options.value,
-                            max: options.endValue || options.value
-                        };
-                    },
-                    configure: function() {
-                        var model = this._model;
-                        var options = this.options;
-                        var chartInstance = this.chartInstance;
-                        var ctx = chartInstance.chart.ctx;
-
-                        var scale = chartInstance.scales[options.scaleID];
-                        var pixel, endPixel;
-                        if (scale) {
-                            pixel = helpers.isValid(options.value) ? scale.getPixelForValue(options.value) : NaN;
-                            endPixel = helpers.isValid(options.endValue) ? scale.getPixelForValue(options.endValue) : pixel;
-                        }
+var forEachEvent = function forEachEvent(self, handler, events, qualifier, callback, conf, confOverrides) {
+  if (fn(qualifier)) {
+    callback = qualifier;
+    qualifier = null;
+  }
 
-                        if (isNaN(pixel)) {
-                            return;
-                        }
+  if (confOverrides) {
+    if (conf == null) {
+      conf = confOverrides;
+    } else {
+      conf = extend({}, conf, confOverrides);
+    }
+  }
 
-                        var chartArea = chartInstance.chartArea;
-
-                        // clip annotations to the chart area
-                        model.clip = {
-                            x1: chartArea.left,
-                            x2: chartArea.right,
-                            y1: chartArea.top,
-                            y2: chartArea.bottom
-                        };
-
-                        if (this.options.mode == horizontalKeyword) {
-                            model.x1 = chartArea.left;
-                            model.x2 = chartArea.right;
-                            model.y1 = pixel;
-                            model.y2 = endPixel;
-                        } else {
-                            model.y1 = chartArea.top;
-                            model.y2 = chartArea.bottom;
-                            model.x1 = pixel;
-                            model.x2 = endPixel;
-                        }
+  var eventList = array(events) ? events : events.split(/\s+/);
 
-                        model.line = new LineFunction(model);
-                        model.mode = options.mode;
-
-                        // Figure out the label:
-                        model.labelBackgroundColor = options.label.backgroundColor;
-                        model.labelFontFamily = options.label.fontFamily;
-                        model.labelFontSize = options.label.fontSize;
-                        model.labelFontStyle = options.label.fontStyle;
-                        model.labelFontColor = options.label.fontColor;
-                        model.labelXPadding = options.label.xPadding;
-                        model.labelYPadding = options.label.yPadding;
-                        model.labelCornerRadius = options.label.cornerRadius;
-                        model.labelPosition = options.label.position;
-                        model.labelXAdjust = options.label.xAdjust;
-                        model.labelYAdjust = options.label.yAdjust;
-                        model.labelEnabled = options.label.enabled;
-                        model.labelContent = options.label.content;
-
-                        ctx.font = chartHelpers.fontString(model.labelFontSize, model.labelFontStyle, model.labelFontFamily);
-                        var textWidth = ctx.measureText(model.labelContent).width;
-                        var textHeight = ctx.measureText('M').width;
-                        var labelPosition = calculateLabelPosition(model, textWidth, textHeight, model.labelXPadding, model.labelYPadding);
-                        model.labelX = labelPosition.x - model.labelXPadding;
-                        model.labelY = labelPosition.y - model.labelYPadding;
-                        model.labelWidth = textWidth + (2 * model.labelXPadding);
-                        model.labelHeight = textHeight + (2 * model.labelYPadding);
-
-                        model.borderColor = options.borderColor;
-                        model.borderWidth = options.borderWidth;
-                        model.borderDash = options.borderDash || [];
-                        model.borderDashOffset = options.borderDashOffset || 0;
-                    },
-                    inRange: function(mouseX, mouseY) {
-                        var model = this._model;
+  for (var i = 0; i < eventList.length; i++) {
+    var evt = eventList[i];
 
-                        return (
-                            // On the line
-                            model.line &&
-                            model.line.intersects(mouseX, mouseY, this.getHeight())
-                        ) || (
-                            // On the label
-                            model.labelEnabled &&
-                            model.labelContent &&
-                            mouseX >= model.labelX &&
-                            mouseX <= model.labelX + model.labelWidth &&
-                            mouseY >= model.labelY &&
-                            mouseY <= model.labelY + model.labelHeight
-                        );
-                    },
-                    getCenterPoint: function() {
-                        return {
-                            x: (this._model.x2 + this._model.x1) / 2,
-                            y: (this._model.y2 + this._model.y1) / 2
-                        };
-                    },
-                    getWidth: function() {
-                        return Math.abs(this._model.right - this._model.left);
-                    },
-                    getHeight: function() {
-                        return this._model.borderWidth || 1;
-                    },
-                    getArea: function() {
-                        return Math.sqrt(Math.pow(this.getWidth(), 2) + Math.pow(this.getHeight(), 2));
-                    },
-                    draw: function() {
-                        var view = this._view;
-                        var ctx = this.chartInstance.chart.ctx;
-
-                        if (!view.clip) {
-                            return;
-                        }
+    if (emptyString(evt)) {
+      continue;
+    }
 
-                        ctx.save();
+    var match = evt.match(eventRegex); // type[.namespace]
 
-                        // Canvas setup
-                        ctx.beginPath();
-                        ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
-                        ctx.clip();
+    if (match) {
+      var type = match[1];
+      var namespace = match[2] ? match[2] : null;
+      var ret = handler(self, evt, type, namespace, qualifier, callback, conf);
 
-                        ctx.lineWidth = view.borderWidth;
-                        ctx.strokeStyle = view.borderColor;
+      if (ret === false) {
+        break;
+      } // allow exiting early
 
-                        if (ctx.setLineDash) {
-                            ctx.setLineDash(view.borderDash);
-                        }
-                        ctx.lineDashOffset = view.borderDashOffset;
-
-                        // Draw
-                        ctx.beginPath();
-                        ctx.moveTo(view.x1, view.y1);
-                        ctx.lineTo(view.x2, view.y2);
-                        ctx.stroke();
-
-                        if (view.labelEnabled && view.labelContent) {
-                            ctx.beginPath();
-                            ctx.rect(view.clip.x1, view.clip.y1, view.clip.x2 - view.clip.x1, view.clip.y2 - view.clip.y1);
-                            ctx.clip();
-
-                            ctx.fillStyle = view.labelBackgroundColor;
-                            // Draw the tooltip
-                            chartHelpers.drawRoundedRectangle(
-                                ctx,
-                                view.labelX, // x
-                                view.labelY, // y
-                                view.labelWidth, // width
-                                view.labelHeight, // height
-                                view.labelCornerRadius // radius
-                            );
-                            ctx.fill();
-
-                            // Draw the text
-                            ctx.font = chartHelpers.fontString(
-                                view.labelFontSize,
-                                view.labelFontStyle,
-                                view.labelFontFamily
-                            );
-                            ctx.fillStyle = view.labelFontColor;
-                            ctx.textAlign = 'center';
-                            ctx.textBaseline = 'middle';
-                            ctx.fillText(
-                                view.labelContent,
-                                view.labelX + (view.labelWidth / 2),
-                                view.labelY + (view.labelHeight / 2)
-                            );
-                        }
+    }
+  }
+};
+
+var makeEventObj = function makeEventObj(self, obj) {
+  self.addEventFields(self.context, obj);
+  return new Event(obj.type, obj);
+};
+
+var forEachEventObj = function forEachEventObj(self, handler, events) {
+  if (event(events)) {
+    handler(self, events);
+    return;
+  } else if (plainObject(events)) {
+    handler(self, makeEventObj(self, events));
+    return;
+  }
 
-                        ctx.restore();
-                    }
-                });
+  var eventList = array(events) ? events : events.split(/\s+/);
 
-                function LineFunction(view) {
-                    // Describe the line in slope-intercept form (y = mx + b).
-                    // Note that the axes are rotated 90° CCW, which causes the
-                    // x- and y-axes to be swapped.
-                    var m = (view.x2 - view.x1) / (view.y2 - view.y1);
-                    var b = view.x1 || 0;
-
-                    this.m = m;
-                    this.b = b;
-
-                    this.getX = function(y) {
-                        // Coordinates are relative to the origin of the canvas
-                        return m * (y - view.y1) + b;
-                    };
-
-                    this.getY = function(x) {
-                        return ((x - b) / m) + view.y1;
-                    };
-
-                    this.intersects = function(x, y, epsilon) {
-                        epsilon = epsilon || 0.001;
-                        var dy = this.getY(x),
-                            dx = this.getX(y);
-                        return (
-                            (!isFinite(dy) || Math.abs(y - dy) < epsilon) &&
-                            (!isFinite(dx) || Math.abs(x - dx) < epsilon)
-                        );
-                    };
-                }
+  for (var i = 0; i < eventList.length; i++) {
+    var evt = eventList[i];
 
-                function calculateLabelPosition(view, width, height, padWidth, padHeight) {
-                    var line = view.line;
-                    var ret = {}, xa = 0, ya = 0;
-
-                    switch (true) {
-                        // top align
-                        case view.mode == verticalKeyword && view.labelPosition == "top":
-                            ya = padHeight + view.labelYAdjust;
-                            xa = (width / 2) + view.labelXAdjust;
-                            ret.y = view.y1 + ya;
-                            ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
-                            break;
-
-                        // bottom align
-                        case view.mode == verticalKeyword && view.labelPosition == "bottom":
-                            ya = height + padHeight + view.labelYAdjust;
-                            xa = (width / 2) + view.labelXAdjust;
-                            ret.y = view.y2 - ya;
-                            ret.x = (isFinite(line.m) ? line.getX(ret.y) : view.x1) - xa;
-                            break;
-
-                        // left align
-                        case view.mode == horizontalKeyword && view.labelPosition == "left":
-                            xa = padWidth + view.labelXAdjust;
-                            ya = -(height / 2) + view.labelYAdjust;
-                            ret.x = view.x1 + xa;
-                            ret.y = line.getY(ret.x) + ya;
-                            break;
-
-                        // right align
-                        case view.mode == horizontalKeyword && view.labelPosition == "right":
-                            xa = width + padWidth + view.labelXAdjust;
-                            ya = -(height / 2) + view.labelYAdjust;
-                            ret.x = view.x2 - xa;
-                            ret.y = line.getY(ret.x) + ya;
-                            break;
-
-                        // center align
-                        default:
-                            ret.x = ((view.x1 + view.x2 - width) / 2) + view.labelXAdjust;
-                            ret.y = ((view.y1 + view.y2 - height) / 2) + view.labelYAdjust;
-                    }
+    if (emptyString(evt)) {
+      continue;
+    }
 
-                    return ret;
-                }
+    var match = evt.match(eventRegex); // type[.namespace]
 
-                return LineAnnotation;
-            };
+    if (match) {
+      var type = match[1];
+      var namespace = match[2] ? match[2] : null;
+      var eventObj = makeEventObj(self, {
+        type: type,
+        namespace: namespace,
+        target: self.context
+      });
+      handler(self, eventObj);
+    }
+  }
+};
+
+p.on = p.addListener = function (events, qualifier, callback, conf, confOverrides) {
+  forEachEvent(this, function (self, event, type, namespace, qualifier, callback, conf) {
+    if (fn(callback)) {
+      self.listeners.push({
+        event: event,
+        // full event string
+        callback: callback,
+        // callback to run
+        type: type,
+        // the event type (e.g. 'click')
+        namespace: namespace,
+        // the event namespace (e.g. ".foo")
+        qualifier: qualifier,
+        // a restriction on whether to match this emitter
+        conf: conf // additional configuration
 
+      });
+    }
+  }, events, qualifier, callback, conf, confOverrides);
+  return this;
+};
 
-            /***/ }),
+p.one = function (events, qualifier, callback, conf) {
+  return this.on(events, qualifier, callback, conf, {
+    one: true
+  });
+};
 
-        /***/ "./node_modules/cytoscape-dagre/cytoscape-dagre.js":
-        /*!*********************************************************!*\
-  !*** ./node_modules/cytoscape-dagre/cytoscape-dagre.js ***!
-  \*********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+p.removeListener = p.off = function (events, qualifier, callback, conf) {
+  var _this = this;
 
-            !function(e,n){ true?module.exports=n(__webpack_require__(/*! dagre */ "./node_modules/dagre/index.js")):undefined}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){var r=t(1),o=function(e){e&&e("layout","dagre",r)};"undefined"!=typeof cytoscape&&o(cytoscape),e.exports=o},function(e,n,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(2),i=t(3),a=t(4);function u(e){this.options=i({},o,e)}u.prototype.run=function(){var e=this.options,n=e.cy,t=e.eles,o=function(e,n){return"function"==typeof n?n.apply(e,[e]):n},i=e.boundingBox||{x1:0,y1:0,w:n.width(),h:n.height()};void 0===i.x2&&(i.x2=i.x1+i.w),void 0===i.w&&(i.w=i.x2-i.x1),void 0===i.y2&&(i.y2=i.y1+i.h),void 0===i.h&&(i.h=i.y2-i.y1);var u=new a.graphlib.Graph({multigraph:!0,compound:!0}),c={},f=function(e,n){null!=n&&(c[e]=n)};f("nodesep",e.nodeSep),f("edgesep",e.edgeSep),f("ranksep",e.rankSep),f("rankdir",e.rankDir),f("ranker",e.ranker),u.setGraph(c),u.setDefaultEdgeLabel((function(){return{}})),u.setDefaultNodeLabel((function(){return{}}));for(var d=t.nodes(),s=0;s<d.length;s++){var y=d[s],p=y.layoutDimensions(e);u.setNode(y.id(),{width:p.w,height:p.h,name:y.id()})}for(var l=0;l<d.length;l++){var g=d[l];g.isChild()&&u.setParent(g.id(),g.parent().id())}for(var h=t.edges().stdFilter((function(e){return!e.source().isParent()&&!e.target().isParent()})),x=0;x<h.length;x++){var b=h[x];u.setEdge(b.source().id(),b.target().id(),{minlen:o(b,e.minLen),weight:o(b,e.edgeWeight),name:b.id()},b.id())}a.layout(u);for(var v,m=u.nodes(),w=0;w<m.length;w++){var S=m[w],j=u.node(S);n.getElementById(S).scratch().dagre=j}e.boundingBox?(v={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0},d.forEach((function(e){var n=e.scratch().dagre;v.x1=Math.min(v.x1,n.x),v.x2=Math.max(v.x2,n.x),v.y1=Math.min(v.y1,n.y),v.y2=Math.max(v.y2,n.y)})),v.w=v.x2-v.x1,v.h=v.y2-v.y1):v=i;return d.layoutPositions(this,e,(function(n){var t=(n="object"===r(n)?n:this).scratch().dagre;return function(n){if(e.boundingBox){var t=0===v.w?0:(n.x-v.x1)/v.w,r=0===v.h?0:(n.y-v.y1)/v.h;return{x:i.x1+t*i.w,y:i.y1+r*i.h}}return n}({x:t.x,y:t.y})})),this},e.exports=u},function(e,n){var t={nodeSep:void 0,edgeSep:void 0,rankSep:void 0,rankDir:void 0,ranker:void 0,minLen:function(e){return 1},edgeWeight:function(e){return 1},fit:!0,padding:30,spacingFactor:void 0,nodeDimensionsIncludeLabels:!1,animate:!1,animateFilter:function(e,n){return!0},animationDuration:500,animationEasing:void 0,boundingBox:void 0,transform:function(e,n){return n},ready:function(){},stop:function(){}};e.exports=t},function(e,n){e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return t.forEach((function(n){Object.keys(n).forEach((function(t){return e[t]=n[t]}))})),e}},function(n,t){n.exports=e}])}));
+  if (this.emitting !== 0) {
+    this.listeners = copyArray(this.listeners);
+  }
 
-            /***/ }),
+  var listeners = this.listeners;
+
+  var _loop = function _loop(i) {
+    var listener = listeners[i];
+    forEachEvent(_this, function (self, event, type, namespace, qualifier, callback
+    /*, conf*/
+    ) {
+      if ((listener.type === type || events === '*') && (!namespace && listener.namespace !== '.*' || listener.namespace === namespace) && (!qualifier || self.qualifierCompare(listener.qualifier, qualifier)) && (!callback || listener.callback === callback)) {
+        listeners.splice(i, 1);
+        return false;
+      }
+    }, events, qualifier, callback, conf);
+  };
+
+  for (var i = listeners.length - 1; i >= 0; i--) {
+    _loop(i);
+  }
 
-        /***/ "./node_modules/cytoscape/dist/cytoscape.cjs.js":
-        /*!******************************************************!*\
-  !*** ./node_modules/cytoscape/dist/cytoscape.cjs.js ***!
-  \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-            /* WEBPACK VAR INJECTION */(function(setImmediate) {/**
-             * Copyright (c) 2016-2020, The Cytoscape Consortium.
-             *
-             * Permission is hereby granted, free of charge, to any person obtaining a copy of
-             * this software and associated documentation files (the “Software”), to deal in
-             * the Software without restriction, including without limitation the rights to
-             * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-             * of the Software, and to permit persons to whom the Software is furnished to do
-             * so, subject to the following conditions:
-             *
-             * The above copyright notice and this permission notice shall be included in all
-             * copies or substantial portions of the Software.
-             *
-             * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-             * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-             * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-             * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-             * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-             * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-             * SOFTWARE.
-             */
-
-
-
-            function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-                var util = _interopDefault(__webpack_require__(/*! lodash.debounce */ "./node_modules/lodash.debounce/index.js"));
-                var Heap = _interopDefault(__webpack_require__(/*! heap */ "./node_modules/heap/index.js"));
-
-                function _typeof(obj) {
-                    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
-                        _typeof = function (obj) {
-                            return typeof obj;
-                        };
-                    } else {
-                        _typeof = function (obj) {
-                            return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
-                        };
-                    }
+  return this;
+};
 
-                    return _typeof(obj);
-                }
+p.removeAllListeners = function () {
+  return this.removeListener('*');
+};
 
-                function _classCallCheck(instance, Constructor) {
-                    if (!(instance instanceof Constructor)) {
-                        throw new TypeError("Cannot call a class as a function");
-                    }
-                }
+p.emit = p.trigger = function (events, extraParams, manualCallback) {
+  var listeners = this.listeners;
+  var numListenersBeforeEmit = listeners.length;
+  this.emitting++;
 
-                function _defineProperties(target, props) {
-                    for (var i = 0; i < props.length; i++) {
-                        var descriptor = props[i];
-                        descriptor.enumerable = descriptor.enumerable || false;
-                        descriptor.configurable = true;
-                        if ("value" in descriptor) descriptor.writable = true;
-                        Object.defineProperty(target, descriptor.key, descriptor);
-                    }
-                }
+  if (!array(extraParams)) {
+    extraParams = [extraParams];
+  }
 
-                function _createClass(Constructor, protoProps, staticProps) {
-                    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
-                    if (staticProps) _defineProperties(Constructor, staticProps);
-                    return Constructor;
-                }
+  forEachEventObj(this, function (self, eventObj) {
+    if (manualCallback != null) {
+      listeners = [{
+        event: eventObj.event,
+        type: eventObj.type,
+        namespace: eventObj.namespace,
+        callback: manualCallback
+      }];
+      numListenersBeforeEmit = listeners.length;
+    }
 
-                function _defineProperty(obj, key, value) {
-                    if (key in obj) {
-                        Object.defineProperty(obj, key, {
-                            value: value,
-                            enumerable: true,
-                            configurable: true,
-                            writable: true
-                        });
-                    } else {
-                        obj[key] = value;
-                    }
+    var _loop2 = function _loop2(i) {
+      var listener = listeners[i];
 
-                    return obj;
-                }
+      if (listener.type === eventObj.type && (!listener.namespace || listener.namespace === eventObj.namespace || listener.namespace === universalNamespace) && self.eventMatches(self.context, listener, eventObj)) {
+        var args = [eventObj];
 
-                function _slicedToArray(arr, i) {
-                    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
-                }
+        if (extraParams != null) {
+          push(args, extraParams);
+        }
 
-                function _arrayWithHoles(arr) {
-                    if (Array.isArray(arr)) return arr;
-                }
+        self.beforeEmit(self.context, listener, eventObj);
 
-                function _iterableToArrayLimit(arr, i) {
-                    var _arr = [];
-                    var _n = true;
-                    var _d = false;
-                    var _e = undefined;
+        if (listener.conf && listener.conf.one) {
+          self.listeners = self.listeners.filter(function (l) {
+            return l !== listener;
+          });
+        }
 
-                    try {
-                        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
-                            _arr.push(_s.value);
+        var context = self.callbackContext(self.context, listener, eventObj);
+        var ret = listener.callback.apply(context, args);
+        self.afterEmit(self.context, listener, eventObj);
 
-                            if (i && _arr.length === i) break;
-                        }
-                    } catch (err) {
-                        _d = true;
-                        _e = err;
-                    } finally {
-                        try {
-                            if (!_n && _i["return"] != null) _i["return"]();
-                        } finally {
-                            if (_d) throw _e;
-                        }
-                    }
+        if (ret === false) {
+          eventObj.stopPropagation();
+          eventObj.preventDefault();
+        }
+      } // if listener matches
 
-                    return _arr;
-                }
+    };
 
-                function _nonIterableRest() {
-                    throw new TypeError("Invalid attempt to destructure non-iterable instance");
-                }
+    for (var i = 0; i < numListenersBeforeEmit; i++) {
+      _loop2(i);
+    } // for listener
 
-                var window$1 = typeof window === 'undefined' ? null : window; // eslint-disable-line no-undef
 
-                var navigator = window$1 ? window$1.navigator : null;
-                var document$1 = window$1 ? window$1.document : null;
+    if (self.bubble(self.context) && !eventObj.isPropagationStopped()) {
+      self.parent(self.context).emit(eventObj, extraParams);
+    }
+  }, events);
+  this.emitting--;
+  return this;
+};
+
+var emitterOptions = {
+  qualifierCompare: function qualifierCompare(selector1, selector2) {
+    if (selector1 == null || selector2 == null) {
+      return selector1 == null && selector2 == null;
+    } else {
+      return selector1.sameText(selector2);
+    }
+  },
+  eventMatches: function eventMatches(ele, listener, eventObj) {
+    var selector = listener.qualifier;
 
-                var typeofstr = _typeof('');
+    if (selector != null) {
+      return ele !== eventObj.target && element(eventObj.target) && selector.matches(eventObj.target);
+    }
 
-                var typeofobj = _typeof({});
+    return true;
+  },
+  addEventFields: function addEventFields(ele, evt) {
+    evt.cy = ele.cy();
+    evt.target = ele;
+  },
+  callbackContext: function callbackContext(ele, listener, eventObj) {
+    return listener.qualifier != null ? eventObj.target : ele;
+  },
+  beforeEmit: function beforeEmit(context, listener
+  /*, eventObj*/
+  ) {
+    if (listener.conf && listener.conf.once) {
+      listener.conf.onceCollection.removeListener(listener.event, listener.qualifier, listener.callback);
+    }
+  },
+  bubble: function bubble() {
+    return true;
+  },
+  parent: function parent(ele) {
+    return ele.isChild() ? ele.parent() : ele.cy();
+  }
+};
 
-                var typeoffn = _typeof(function () {});
+var argSelector = function argSelector(arg) {
+  if (string(arg)) {
+    return new Selector(arg);
+  } else {
+    return arg;
+  }
+};
 
-                var typeofhtmlele = typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement);
+var elesfn$m = {
+  createEmitter: function createEmitter() {
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      var _p = ele._private;
 
-                var instanceStr = function instanceStr(obj) {
-                    return obj && obj.instanceString && fn(obj.instanceString) ? obj.instanceString() : null;
-                };
+      if (!_p.emitter) {
+        _p.emitter = new Emitter(emitterOptions, ele);
+      }
+    }
 
-                var string = function string(obj) {
-                    return obj != null && _typeof(obj) == typeofstr;
-                };
-                var fn = function fn(obj) {
-                    return obj != null && _typeof(obj) === typeoffn;
-                };
-                var array = function array(obj) {
-                    return !elementOrCollection(obj) && (Array.isArray ? Array.isArray(obj) : obj != null && obj instanceof Array);
-                };
-                var plainObject = function plainObject(obj) {
-                    return obj != null && _typeof(obj) === typeofobj && !array(obj) && obj.constructor === Object;
-                };
-                var object = function object(obj) {
-                    return obj != null && _typeof(obj) === typeofobj;
-                };
-                var number = function number(obj) {
-                    return obj != null && _typeof(obj) === _typeof(1) && !isNaN(obj);
-                };
-                var integer = function integer(obj) {
-                    return number(obj) && Math.floor(obj) === obj;
-                };
-                var htmlElement = function htmlElement(obj) {
-                    if ('undefined' === typeofhtmlele) {
-                        return undefined;
-                    } else {
-                        return null != obj && obj instanceof HTMLElement;
-                    }
-                };
-                var elementOrCollection = function elementOrCollection(obj) {
-                    return element(obj) || collection(obj);
-                };
-                var element = function element(obj) {
-                    return instanceStr(obj) === 'collection' && obj._private.single;
-                };
-                var collection = function collection(obj) {
-                    return instanceStr(obj) === 'collection' && !obj._private.single;
-                };
-                var core = function core(obj) {
-                    return instanceStr(obj) === 'core';
-                };
-                var stylesheet = function stylesheet(obj) {
-                    return instanceStr(obj) === 'stylesheet';
-                };
-                var event = function event(obj) {
-                    return instanceStr(obj) === 'event';
-                };
-                var emptyString = function emptyString(obj) {
-                    if (obj === undefined || obj === null) {
-                        // null is empty
-                        return true;
-                    } else if (obj === '' || obj.match(/^\s+$/)) {
-                        return true; // empty string is empty
-                    }
+    return this;
+  },
+  emitter: function emitter() {
+    return this._private.emitter;
+  },
+  on: function on(events, selector, callback) {
+    var argSel = argSelector(selector);
+
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().on(events, argSel, callback);
+    }
 
-                    return false; // otherwise, we don't know what we've got
-                };
-                var domElement = function domElement(obj) {
-                    if (typeof HTMLElement === 'undefined') {
-                        return false; // we're not in a browser so it doesn't matter
-                    } else {
-                        return obj instanceof HTMLElement;
-                    }
-                };
-                var boundingBox = function boundingBox(obj) {
-                    return plainObject(obj) && number(obj.x1) && number(obj.x2) && number(obj.y1) && number(obj.y2);
-                };
-                var promise = function promise(obj) {
-                    return object(obj) && fn(obj.then);
-                };
-                var ms = function ms() {
-                    return navigator && navigator.userAgent.match(/msie|trident|edge/i);
-                }; // probably a better way to detect this...
-
-                var memoize = function memoize(fn, keyFn) {
-                    if (!keyFn) {
-                        keyFn = function keyFn() {
-                            if (arguments.length === 1) {
-                                return arguments[0];
-                            } else if (arguments.length === 0) {
-                                return 'undefined';
-                            }
+    return this;
+  },
+  removeListener: function removeListener(events, selector, callback) {
+    var argSel = argSelector(selector);
 
-                            var args = [];
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().removeListener(events, argSel, callback);
+    }
 
-                            for (var i = 0; i < arguments.length; i++) {
-                                args.push(arguments[i]);
-                            }
+    return this;
+  },
+  removeAllListeners: function removeAllListeners() {
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().removeAllListeners();
+    }
 
-                            return args.join('$');
-                        };
-                    }
+    return this;
+  },
+  one: function one(events, selector, callback) {
+    var argSel = argSelector(selector);
 
-                    var memoizedFn = function memoizedFn() {
-                        var self = this;
-                        var args = arguments;
-                        var ret;
-                        var k = keyFn.apply(self, args);
-                        var cache = memoizedFn.cache;
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().one(events, argSel, callback);
+    }
 
-                        if (!(ret = cache[k])) {
-                            ret = cache[k] = fn.apply(self, args);
-                        }
+    return this;
+  },
+  once: function once(events, selector, callback) {
+    var argSel = argSelector(selector);
 
-                        return ret;
-                    };
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().on(events, argSel, callback, {
+        once: true,
+        onceCollection: this
+      });
+    }
+  },
+  emit: function emit(events, extraParams) {
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      ele.emitter().emit(events, extraParams);
+    }
 
-                    memoizedFn.cache = {};
-                    return memoizedFn;
-                };
+    return this;
+  },
+  emitAndNotify: function emitAndNotify(event, extraParams) {
+    // for internal use only
+    if (this.length === 0) {
+      return;
+    } // empty collections don't need to notify anything
+    // notify renderer
 
-                var camel2dash = memoize(function (str) {
-                    return str.replace(/([A-Z])/g, function (v) {
-                        return '-' + v.toLowerCase();
-                    });
-                });
-                var dash2camel = memoize(function (str) {
-                    return str.replace(/(-\w)/g, function (v) {
-                        return v[1].toUpperCase();
-                    });
-                });
-                var prependCamel = memoize(function (prefix, str) {
-                    return prefix + str[0].toUpperCase() + str.substring(1);
-                }, function (prefix, str) {
-                    return prefix + '$' + str;
-                });
-                var capitalize = function capitalize(str) {
-                    if (emptyString(str)) {
-                        return str;
-                    }
 
-                    return str.charAt(0).toUpperCase() + str.substring(1);
-                };
+    this.cy().notify(event, this);
+    this.emit(event, extraParams);
+    return this;
+  }
+};
+define$3.eventAliasesOn(elesfn$m);
+
+var elesfn$n = {
+  nodes: function nodes(selector) {
+    return this.filter(function (ele) {
+      return ele.isNode();
+    }).filter(selector);
+  },
+  edges: function edges(selector) {
+    return this.filter(function (ele) {
+      return ele.isEdge();
+    }).filter(selector);
+  },
+  // internal helper to get nodes and edges as separate collections with single iteration over elements
+  byGroup: function byGroup() {
+    var nodes = this.spawn();
+    var edges = this.spawn();
+
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+
+      if (ele.isNode()) {
+        nodes.push(ele);
+      } else {
+        edges.push(ele);
+      }
+    }
 
-                var number$1 = '(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))';
-                var rgba = 'rgb[a]?\\((' + number$1 + '[%]?)\\s*,\\s*(' + number$1 + '[%]?)\\s*,\\s*(' + number$1 + '[%]?)(?:\\s*,\\s*(' + number$1 + '))?\\)';
-                var rgbaNoBackRefs = 'rgb[a]?\\((?:' + number$1 + '[%]?)\\s*,\\s*(?:' + number$1 + '[%]?)\\s*,\\s*(?:' + number$1 + '[%]?)(?:\\s*,\\s*(?:' + number$1 + '))?\\)';
-                var hsla = 'hsl[a]?\\((' + number$1 + ')\\s*,\\s*(' + number$1 + '[%])\\s*,\\s*(' + number$1 + '[%])(?:\\s*,\\s*(' + number$1 + '))?\\)';
-                var hslaNoBackRefs = 'hsl[a]?\\((?:' + number$1 + ')\\s*,\\s*(?:' + number$1 + '[%])\\s*,\\s*(?:' + number$1 + '[%])(?:\\s*,\\s*(?:' + number$1 + '))?\\)';
-                var hex3 = '\\#[0-9a-fA-F]{3}';
-                var hex6 = '\\#[0-9a-fA-F]{6}';
-
-                var ascending = function ascending(a, b) {
-                    if (a < b) {
-                        return -1;
-                    } else if (a > b) {
-                        return 1;
-                    } else {
-                        return 0;
-                    }
-                };
-                var descending = function descending(a, b) {
-                    return -1 * ascending(a, b);
-                };
+    return {
+      nodes: nodes,
+      edges: edges
+    };
+  },
+  filter: function filter(_filter, thisArg) {
+    if (_filter === undefined) {
+      // check this first b/c it's the most common/performant case
+      return this;
+    } else if (string(_filter) || elementOrCollection(_filter)) {
+      return new Selector(_filter).filter(this);
+    } else if (fn(_filter)) {
+      var filterEles = this.spawn();
+      var eles = this;
+
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        var include = thisArg ? _filter.apply(thisArg, [ele, i, eles]) : _filter(ele, i, eles);
+
+        if (include) {
+          filterEles.push(ele);
+        }
+      }
 
-                var extend = Object.assign != null ? Object.assign.bind(Object) : function (tgt) {
-                    var args = arguments;
+      return filterEles;
+    }
 
-                    for (var i = 1; i < args.length; i++) {
-                        var obj = args[i];
+    return this.spawn(); // if not handled by above, give 'em an empty collection
+  },
+  not: function not(toRemove) {
+    if (!toRemove) {
+      return this;
+    } else {
+      if (string(toRemove)) {
+        toRemove = this.filter(toRemove);
+      }
 
-                        if (obj == null) {
-                            continue;
-                        }
+      var elements = this.spawn();
 
-                        var keys = Object.keys(obj);
+      for (var i = 0; i < this.length; i++) {
+        var element = this[i];
+        var remove = toRemove.has(element);
 
-                        for (var j = 0; j < keys.length; j++) {
-                            var k = keys[j];
-                            tgt[k] = obj[k];
-                        }
-                    }
+        if (!remove) {
+          elements.push(element);
+        }
+      }
 
-                    return tgt;
-                };
+      return elements;
+    }
+  },
+  absoluteComplement: function absoluteComplement() {
+    var cy = this.cy();
+    return cy.mutableElements().not(this);
+  },
+  intersect: function intersect(other) {
+    // if a selector is specified, then filter by it instead
+    if (string(other)) {
+      var selector = other;
+      return this.filter(selector);
+    }
 
-                var hex2tuple = function hex2tuple(hex) {
-                    if (!(hex.length === 4 || hex.length === 7) || hex[0] !== '#') {
-                        return;
-                    }
+    var elements = this.spawn();
+    var col1 = this;
+    var col2 = other;
+    var col1Smaller = this.length < other.length;
+    var colS = col1Smaller ? col1 : col2;
+    var colL = col1Smaller ? col2 : col1;
 
-                    var shortHex = hex.length === 4;
-                    var r, g, b;
-                    var base = 16;
+    for (var i = 0; i < colS.length; i++) {
+      var ele = colS[i];
 
-                    if (shortHex) {
-                        r = parseInt(hex[1] + hex[1], base);
-                        g = parseInt(hex[2] + hex[2], base);
-                        b = parseInt(hex[3] + hex[3], base);
-                    } else {
-                        r = parseInt(hex[1] + hex[2], base);
-                        g = parseInt(hex[3] + hex[4], base);
-                        b = parseInt(hex[5] + hex[6], base);
-                    }
+      if (colL.has(ele)) {
+        elements.push(ele);
+      }
+    }
 
-                    return [r, g, b];
-                }; // get [r, g, b, a] from hsl(0, 0, 0) or hsla(0, 0, 0, 0)
+    return elements;
+  },
+  xor: function xor(other) {
+    var cy = this._private.cy;
 
-                var hsl2tuple = function hsl2tuple(hsl) {
-                    var ret;
-                    var h, s, l, a, r, g, b;
+    if (string(other)) {
+      other = cy.$(other);
+    }
 
-                    function hue2rgb(p, q, t) {
-                        if (t < 0) t += 1;
-                        if (t > 1) t -= 1;
-                        if (t < 1 / 6) return p + (q - p) * 6 * t;
-                        if (t < 1 / 2) return q;
-                        if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
-                        return p;
-                    }
+    var elements = this.spawn();
+    var col1 = this;
+    var col2 = other;
 
-                    var m = new RegExp('^' + hsla + '$').exec(hsl);
+    var add = function add(col, other) {
+      for (var i = 0; i < col.length; i++) {
+        var ele = col[i];
+        var id = ele._private.data.id;
+        var inOther = other.hasElementWithId(id);
 
-                    if (m) {
-                        // get hue
-                        h = parseInt(m[1]);
+        if (!inOther) {
+          elements.push(ele);
+        }
+      }
+    };
+
+    add(col1, col2);
+    add(col2, col1);
+    return elements;
+  },
+  diff: function diff(other) {
+    var cy = this._private.cy;
+
+    if (string(other)) {
+      other = cy.$(other);
+    }
 
-                        if (h < 0) {
-                            h = (360 - -1 * h % 360) % 360;
-                        } else if (h > 360) {
-                            h = h % 360;
-                        }
+    var left = this.spawn();
+    var right = this.spawn();
+    var both = this.spawn();
+    var col1 = this;
+    var col2 = other;
+
+    var add = function add(col, other, retEles) {
+      for (var i = 0; i < col.length; i++) {
+        var ele = col[i];
+        var id = ele._private.data.id;
+        var inOther = other.hasElementWithId(id);
+
+        if (inOther) {
+          both.merge(ele);
+        } else {
+          retEles.push(ele);
+        }
+      }
+    };
+
+    add(col1, col2, left);
+    add(col2, col1, right);
+    return {
+      left: left,
+      right: right,
+      both: both
+    };
+  },
+  add: function add(toAdd) {
+    var cy = this._private.cy;
+
+    if (!toAdd) {
+      return this;
+    }
 
-                        h /= 360; // normalise on [0, 1]
+    if (string(toAdd)) {
+      var selector = toAdd;
+      toAdd = cy.mutableElements().filter(selector);
+    }
 
-                        s = parseFloat(m[2]);
+    var elements = this.spawnSelf();
 
-                        if (s < 0 || s > 100) {
-                            return;
-                        } // saturation is [0, 100]
+    for (var i = 0; i < toAdd.length; i++) {
+      var ele = toAdd[i];
+      var add = !this.has(ele);
 
+      if (add) {
+        elements.push(ele);
+      }
+    }
 
-                        s = s / 100; // normalise on [0, 1]
+    return elements;
+  },
+  // in place merge on calling collection
+  merge: function merge(toAdd) {
+    var _p = this._private;
+    var cy = _p.cy;
 
-                        l = parseFloat(m[3]);
+    if (!toAdd) {
+      return this;
+    }
 
-                        if (l < 0 || l > 100) {
-                            return;
-                        } // lightness is [0, 100]
+    if (toAdd && string(toAdd)) {
+      var selector = toAdd;
+      toAdd = cy.mutableElements().filter(selector);
+    }
 
+    var map = _p.map;
+
+    for (var i = 0; i < toAdd.length; i++) {
+      var toAddEle = toAdd[i];
+      var id = toAddEle._private.data.id;
+      var add = !map.has(id);
+
+      if (add) {
+        var index = this.length++;
+        this[index] = toAddEle;
+        map.set(id, {
+          ele: toAddEle,
+          index: index
+        });
+      }
+    }
 
-                        l = l / 100; // normalise on [0, 1]
+    return this; // chaining
+  },
+  unmergeAt: function unmergeAt(i) {
+    var ele = this[i];
+    var id = ele.id();
+    var _p = this._private;
+    var map = _p.map; // remove ele
+
+    this[i] = undefined;
+    map["delete"](id);
+    var unmergedLastEle = i === this.length - 1; // replace empty spot with last ele in collection
+
+    if (this.length > 1 && !unmergedLastEle) {
+      var lastEleI = this.length - 1;
+      var lastEle = this[lastEleI];
+      var lastEleId = lastEle._private.data.id;
+      this[lastEleI] = undefined;
+      this[i] = lastEle;
+      map.set(lastEleId, {
+        ele: lastEle,
+        index: i
+      });
+    } // the collection is now 1 ele smaller
+
+
+    this.length--;
+    return this;
+  },
+  // remove single ele in place in calling collection
+  unmergeOne: function unmergeOne(ele) {
+    ele = ele[0];
+    var _p = this._private;
+    var id = ele._private.data.id;
+    var map = _p.map;
+    var entry = map.get(id);
+
+    if (!entry) {
+      return this; // no need to remove
+    }
 
-                        a = m[4];
+    var i = entry.index;
+    this.unmergeAt(i);
+    return this;
+  },
+  // remove eles in place on calling collection
+  unmerge: function unmerge(toRemove) {
+    var cy = this._private.cy;
 
-                        if (a !== undefined) {
-                            a = parseFloat(a);
+    if (!toRemove) {
+      return this;
+    }
 
-                            if (a < 0 || a > 1) {
-                                return;
-                            } // alpha is [0, 1]
+    if (toRemove && string(toRemove)) {
+      var selector = toRemove;
+      toRemove = cy.mutableElements().filter(selector);
+    }
 
-                        } // now, convert to rgb
-                        // code from http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
+    for (var i = 0; i < toRemove.length; i++) {
+      this.unmergeOne(toRemove[i]);
+    }
 
+    return this; // chaining
+  },
+  unmergeBy: function unmergeBy(toRmFn) {
+    for (var i = this.length - 1; i >= 0; i--) {
+      var ele = this[i];
 
-                        if (s === 0) {
-                            r = g = b = Math.round(l * 255); // achromatic
-                        } else {
-                            var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
-                            var p = 2 * l - q;
-                            r = Math.round(255 * hue2rgb(p, q, h + 1 / 3));
-                            g = Math.round(255 * hue2rgb(p, q, h));
-                            b = Math.round(255 * hue2rgb(p, q, h - 1 / 3));
-                        }
+      if (toRmFn(ele)) {
+        this.unmergeAt(i);
+      }
+    }
 
-                        ret = [r, g, b, a];
-                    }
+    return this;
+  },
+  map: function map(mapFn, thisArg) {
+    var arr = [];
+    var eles = this;
 
-                    return ret;
-                }; // get [r, g, b, a] from rgb(0, 0, 0) or rgba(0, 0, 0, 0)
+    for (var i = 0; i < eles.length; i++) {
+      var ele = eles[i];
+      var ret = thisArg ? mapFn.apply(thisArg, [ele, i, eles]) : mapFn(ele, i, eles);
+      arr.push(ret);
+    }
 
-                var rgb2tuple = function rgb2tuple(rgb) {
-                    var ret;
-                    var m = new RegExp('^' + rgba + '$').exec(rgb);
+    return arr;
+  },
+  reduce: function reduce(fn, initialValue) {
+    var val = initialValue;
+    var eles = this;
 
-                    if (m) {
-                        ret = [];
-                        var isPct = [];
+    for (var i = 0; i < eles.length; i++) {
+      val = fn(val, eles[i], i, eles);
+    }
 
-                        for (var i = 1; i <= 3; i++) {
-                            var channel = m[i];
+    return val;
+  },
+  max: function max(valFn, thisArg) {
+    var max = -Infinity;
+    var maxEle;
+    var eles = this;
+
+    for (var i = 0; i < eles.length; i++) {
+      var ele = eles[i];
+      var val = thisArg ? valFn.apply(thisArg, [ele, i, eles]) : valFn(ele, i, eles);
+
+      if (val > max) {
+        max = val;
+        maxEle = ele;
+      }
+    }
 
-                            if (channel[channel.length - 1] === '%') {
-                                isPct[i] = true;
-                            }
+    return {
+      value: max,
+      ele: maxEle
+    };
+  },
+  min: function min(valFn, thisArg) {
+    var min = Infinity;
+    var minEle;
+    var eles = this;
+
+    for (var i = 0; i < eles.length; i++) {
+      var ele = eles[i];
+      var val = thisArg ? valFn.apply(thisArg, [ele, i, eles]) : valFn(ele, i, eles);
+
+      if (val < min) {
+        min = val;
+        minEle = ele;
+      }
+    }
 
-                            channel = parseFloat(channel);
+    return {
+      value: min,
+      ele: minEle
+    };
+  }
+}; // aliases
+
+var fn$5 = elesfn$n;
+fn$5['u'] = fn$5['|'] = fn$5['+'] = fn$5.union = fn$5.or = fn$5.add;
+fn$5['\\'] = fn$5['!'] = fn$5['-'] = fn$5.difference = fn$5.relativeComplement = fn$5.subtract = fn$5.not;
+fn$5['n'] = fn$5['&'] = fn$5['.'] = fn$5.and = fn$5.intersection = fn$5.intersect;
+fn$5['^'] = fn$5['(+)'] = fn$5['(-)'] = fn$5.symmetricDifference = fn$5.symdiff = fn$5.xor;
+fn$5.fnFilter = fn$5.filterFn = fn$5.stdFilter = fn$5.filter;
+fn$5.complement = fn$5.abscomp = fn$5.absoluteComplement;
+
+var elesfn$o = {
+  isNode: function isNode() {
+    return this.group() === 'nodes';
+  },
+  isEdge: function isEdge() {
+    return this.group() === 'edges';
+  },
+  isLoop: function isLoop() {
+    return this.isEdge() && this.source()[0] === this.target()[0];
+  },
+  isSimple: function isSimple() {
+    return this.isEdge() && this.source()[0] !== this.target()[0];
+  },
+  group: function group() {
+    var ele = this[0];
+
+    if (ele) {
+      return ele._private.group;
+    }
+  }
+};
 
-                            if (isPct[i]) {
-                                channel = channel / 100 * 255; // normalise to [0, 255]
-                            }
+/**
+ *  Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges),
+ *  and z-index (low to high).  These styles affect how this applies:
+ *
+ *  z-compound-depth: May be `bottom | orphan | auto | top`.  The first drawn is `bottom`, then `orphan` which is the
+ *      same depth as the root of the compound graph, followed by the default value `auto` which draws in order from
+ *      root to leaves of the compound graph.  The last drawn is `top`.
+ *  z-index-compare: May be `auto | manual`.  The default value is `auto` which always draws edges under nodes.
+ *      `manual` ignores this convention and draws based on the `z-index` value setting.
+ *  z-index: An integer value that affects the relative draw order of elements.  In general, an element with a higher
+ *      `z-index` will be drawn on top of an element with a lower `z-index`.
+ */
 
-                            if (channel < 0 || channel > 255) {
-                                return;
-                            } // invalid channel value
+var zIndexSort = function zIndexSort(a, b) {
+  var cy = a.cy();
+  var hasCompoundNodes = cy.hasCompoundNodes();
 
+  function getDepth(ele) {
+    var style = ele.pstyle('z-compound-depth');
 
-                            ret.push(Math.floor(channel));
-                        }
+    if (style.value === 'auto') {
+      return hasCompoundNodes ? ele.zDepth() : 0;
+    } else if (style.value === 'bottom') {
+      return -1;
+    } else if (style.value === 'top') {
+      return MAX_INT;
+    } // 'orphan'
 
-                        var atLeastOneIsPct = isPct[1] || isPct[2] || isPct[3];
-                        var allArePct = isPct[1] && isPct[2] && isPct[3];
 
-                        if (atLeastOneIsPct && !allArePct) {
-                            return;
-                        } // must all be percent values if one is
+    return 0;
+  }
 
+  var depthDiff = getDepth(a) - getDepth(b);
 
-                        var alpha = m[4];
+  if (depthDiff !== 0) {
+    return depthDiff;
+  }
 
-                        if (alpha !== undefined) {
-                            alpha = parseFloat(alpha);
+  function getEleDepth(ele) {
+    var style = ele.pstyle('z-index-compare');
 
-                            if (alpha < 0 || alpha > 1) {
-                                return;
-                            } // invalid alpha value
+    if (style.value === 'auto') {
+      return ele.isNode() ? 1 : 0;
+    } // 'manual'
 
 
-                            ret.push(alpha);
-                        }
-                    }
+    return 0;
+  }
 
-                    return ret;
-                };
-                var colorname2tuple = function colorname2tuple(color) {
-                    return colors[color.toLowerCase()];
-                };
-                var color2tuple = function color2tuple(color) {
-                    return (array(color) ? color : null) || colorname2tuple(color) || hex2tuple(color) || rgb2tuple(color) || hsl2tuple(color);
-                };
-                var colors = {
-                    // special colour names
-                    transparent: [0, 0, 0, 0],
-                    // NB alpha === 0
-                    // regular colours
-                    aliceblue: [240, 248, 255],
-                    antiquewhite: [250, 235, 215],
-                    aqua: [0, 255, 255],
-                    aquamarine: [127, 255, 212],
-                    azure: [240, 255, 255],
-                    beige: [245, 245, 220],
-                    bisque: [255, 228, 196],
-                    black: [0, 0, 0],
-                    blanchedalmond: [255, 235, 205],
-                    blue: [0, 0, 255],
-                    blueviolet: [138, 43, 226],
-                    brown: [165, 42, 42],
-                    burlywood: [222, 184, 135],
-                    cadetblue: [95, 158, 160],
-                    chartreuse: [127, 255, 0],
-                    chocolate: [210, 105, 30],
-                    coral: [255, 127, 80],
-                    cornflowerblue: [100, 149, 237],
-                    cornsilk: [255, 248, 220],
-                    crimson: [220, 20, 60],
-                    cyan: [0, 255, 255],
-                    darkblue: [0, 0, 139],
-                    darkcyan: [0, 139, 139],
-                    darkgoldenrod: [184, 134, 11],
-                    darkgray: [169, 169, 169],
-                    darkgreen: [0, 100, 0],
-                    darkgrey: [169, 169, 169],
-                    darkkhaki: [189, 183, 107],
-                    darkmagenta: [139, 0, 139],
-                    darkolivegreen: [85, 107, 47],
-                    darkorange: [255, 140, 0],
-                    darkorchid: [153, 50, 204],
-                    darkred: [139, 0, 0],
-                    darksalmon: [233, 150, 122],
-                    darkseagreen: [143, 188, 143],
-                    darkslateblue: [72, 61, 139],
-                    darkslategray: [47, 79, 79],
-                    darkslategrey: [47, 79, 79],
-                    darkturquoise: [0, 206, 209],
-                    darkviolet: [148, 0, 211],
-                    deeppink: [255, 20, 147],
-                    deepskyblue: [0, 191, 255],
-                    dimgray: [105, 105, 105],
-                    dimgrey: [105, 105, 105],
-                    dodgerblue: [30, 144, 255],
-                    firebrick: [178, 34, 34],
-                    floralwhite: [255, 250, 240],
-                    forestgreen: [34, 139, 34],
-                    fuchsia: [255, 0, 255],
-                    gainsboro: [220, 220, 220],
-                    ghostwhite: [248, 248, 255],
-                    gold: [255, 215, 0],
-                    goldenrod: [218, 165, 32],
-                    gray: [128, 128, 128],
-                    grey: [128, 128, 128],
-                    green: [0, 128, 0],
-                    greenyellow: [173, 255, 47],
-                    honeydew: [240, 255, 240],
-                    hotpink: [255, 105, 180],
-                    indianred: [205, 92, 92],
-                    indigo: [75, 0, 130],
-                    ivory: [255, 255, 240],
-                    khaki: [240, 230, 140],
-                    lavender: [230, 230, 250],
-                    lavenderblush: [255, 240, 245],
-                    lawngreen: [124, 252, 0],
-                    lemonchiffon: [255, 250, 205],
-                    lightblue: [173, 216, 230],
-                    lightcoral: [240, 128, 128],
-                    lightcyan: [224, 255, 255],
-                    lightgoldenrodyellow: [250, 250, 210],
-                    lightgray: [211, 211, 211],
-                    lightgreen: [144, 238, 144],
-                    lightgrey: [211, 211, 211],
-                    lightpink: [255, 182, 193],
-                    lightsalmon: [255, 160, 122],
-                    lightseagreen: [32, 178, 170],
-                    lightskyblue: [135, 206, 250],
-                    lightslategray: [119, 136, 153],
-                    lightslategrey: [119, 136, 153],
-                    lightsteelblue: [176, 196, 222],
-                    lightyellow: [255, 255, 224],
-                    lime: [0, 255, 0],
-                    limegreen: [50, 205, 50],
-                    linen: [250, 240, 230],
-                    magenta: [255, 0, 255],
-                    maroon: [128, 0, 0],
-                    mediumaquamarine: [102, 205, 170],
-                    mediumblue: [0, 0, 205],
-                    mediumorchid: [186, 85, 211],
-                    mediumpurple: [147, 112, 219],
-                    mediumseagreen: [60, 179, 113],
-                    mediumslateblue: [123, 104, 238],
-                    mediumspringgreen: [0, 250, 154],
-                    mediumturquoise: [72, 209, 204],
-                    mediumvioletred: [199, 21, 133],
-                    midnightblue: [25, 25, 112],
-                    mintcream: [245, 255, 250],
-                    mistyrose: [255, 228, 225],
-                    moccasin: [255, 228, 181],
-                    navajowhite: [255, 222, 173],
-                    navy: [0, 0, 128],
-                    oldlace: [253, 245, 230],
-                    olive: [128, 128, 0],
-                    olivedrab: [107, 142, 35],
-                    orange: [255, 165, 0],
-                    orangered: [255, 69, 0],
-                    orchid: [218, 112, 214],
-                    palegoldenrod: [238, 232, 170],
-                    palegreen: [152, 251, 152],
-                    paleturquoise: [175, 238, 238],
-                    palevioletred: [219, 112, 147],
-                    papayawhip: [255, 239, 213],
-                    peachpuff: [255, 218, 185],
-                    peru: [205, 133, 63],
-                    pink: [255, 192, 203],
-                    plum: [221, 160, 221],
-                    powderblue: [176, 224, 230],
-                    purple: [128, 0, 128],
-                    red: [255, 0, 0],
-                    rosybrown: [188, 143, 143],
-                    royalblue: [65, 105, 225],
-                    saddlebrown: [139, 69, 19],
-                    salmon: [250, 128, 114],
-                    sandybrown: [244, 164, 96],
-                    seagreen: [46, 139, 87],
-                    seashell: [255, 245, 238],
-                    sienna: [160, 82, 45],
-                    silver: [192, 192, 192],
-                    skyblue: [135, 206, 235],
-                    slateblue: [106, 90, 205],
-                    slategray: [112, 128, 144],
-                    slategrey: [112, 128, 144],
-                    snow: [255, 250, 250],
-                    springgreen: [0, 255, 127],
-                    steelblue: [70, 130, 180],
-                    tan: [210, 180, 140],
-                    teal: [0, 128, 128],
-                    thistle: [216, 191, 216],
-                    tomato: [255, 99, 71],
-                    turquoise: [64, 224, 208],
-                    violet: [238, 130, 238],
-                    wheat: [245, 222, 179],
-                    white: [255, 255, 255],
-                    whitesmoke: [245, 245, 245],
-                    yellow: [255, 255, 0],
-                    yellowgreen: [154, 205, 50]
-                };
+  var eleDiff = getEleDepth(a) - getEleDepth(b);
 
-                var setMap = function setMap(options) {
-                    var obj = options.map;
-                    var keys = options.keys;
-                    var l = keys.length;
+  if (eleDiff !== 0) {
+    return eleDiff;
+  }
 
-                    for (var i = 0; i < l; i++) {
-                        var key = keys[i];
+  var zDiff = a.pstyle('z-index').value - b.pstyle('z-index').value;
 
-                        if (plainObject(key)) {
-                            throw Error('Tried to set map with object key');
-                        }
+  if (zDiff !== 0) {
+    return zDiff;
+  } // compare indices in the core (order added to graph w/ last on top)
 
-                        if (i < keys.length - 1) {
-                            // extend the map if necessary
-                            if (obj[key] == null) {
-                                obj[key] = {};
-                            }
 
-                            obj = obj[key];
-                        } else {
-                            // set the value
-                            obj[key] = options.value;
-                        }
-                    }
-                }; // gets the value in a map even if it's not built in places
+  return a.poolIndex() - b.poolIndex();
+};
 
-                var getMap = function getMap(options) {
-                    var obj = options.map;
-                    var keys = options.keys;
-                    var l = keys.length;
+var elesfn$p = {
+  forEach: function forEach(fn$1, thisArg) {
+    if (fn(fn$1)) {
+      var N = this.length;
 
-                    for (var i = 0; i < l; i++) {
-                        var key = keys[i];
+      for (var i = 0; i < N; i++) {
+        var ele = this[i];
+        var ret = thisArg ? fn$1.apply(thisArg, [ele, i, this]) : fn$1(ele, i, this);
 
-                        if (plainObject(key)) {
-                            throw Error('Tried to get map with object key');
-                        }
+        if (ret === false) {
+          break;
+        } // exit each early on return false
 
-                        obj = obj[key];
+      }
+    }
 
-                        if (obj == null) {
-                            return obj;
-                        }
-                    }
+    return this;
+  },
+  toArray: function toArray() {
+    var array = [];
 
-                    return obj;
-                }; // deletes the entry in the map
+    for (var i = 0; i < this.length; i++) {
+      array.push(this[i]);
+    }
 
-                var performance = window$1 ? window$1.performance : null;
-                var pnow = performance && performance.now ? function () {
-                    return performance.now();
-                } : function () {
-                    return Date.now();
-                };
+    return array;
+  },
+  slice: function slice(start, end) {
+    var array = [];
+    var thisSize = this.length;
 
-                var raf = function () {
-                    if (window$1) {
-                        if (window$1.requestAnimationFrame) {
-                            return function (fn) {
-                                window$1.requestAnimationFrame(fn);
-                            };
-                        } else if (window$1.mozRequestAnimationFrame) {
-                            return function (fn) {
-                                window$1.mozRequestAnimationFrame(fn);
-                            };
-                        } else if (window$1.webkitRequestAnimationFrame) {
-                            return function (fn) {
-                                window$1.webkitRequestAnimationFrame(fn);
-                            };
-                        } else if (window$1.msRequestAnimationFrame) {
-                            return function (fn) {
-                                window$1.msRequestAnimationFrame(fn);
-                            };
-                        }
-                    }
+    if (end == null) {
+      end = thisSize;
+    }
 
-                    return function (fn) {
-                        if (fn) {
-                            setTimeout(function () {
-                                fn(pnow());
-                            }, 1000 / 60);
-                        }
-                    };
-                }();
+    if (start == null) {
+      start = 0;
+    }
 
-                var requestAnimationFrame = function requestAnimationFrame(fn) {
-                    return raf(fn);
-                };
-                var performanceNow = pnow;
+    if (start < 0) {
+      start = thisSize + start;
+    }
 
-                var DEFAULT_HASH_SEED = 9261;
-                var K = 65599; // 37 also works pretty well
+    if (end < 0) {
+      end = thisSize + end;
+    }
 
-                var DEFAULT_HASH_SEED_ALT = 5381;
-                var hashIterableInts = function hashIterableInts(iterator) {
-                    var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED;
-                    // sdbm/string-hash
-                    var hash = seed;
-                    var entry;
+    for (var i = start; i >= 0 && i < end && i < thisSize; i++) {
+      array.push(this[i]);
+    }
 
-                    for (;;) {
-                        entry = iterator.next();
+    return this.spawn(array);
+  },
+  size: function size() {
+    return this.length;
+  },
+  eq: function eq(i) {
+    return this[i] || this.spawn();
+  },
+  first: function first() {
+    return this[0] || this.spawn();
+  },
+  last: function last() {
+    return this[this.length - 1] || this.spawn();
+  },
+  empty: function empty() {
+    return this.length === 0;
+  },
+  nonempty: function nonempty() {
+    return !this.empty();
+  },
+  sort: function sort(sortFn) {
+    if (!fn(sortFn)) {
+      return this;
+    }
 
-                        if (entry.done) {
-                            break;
-                        }
+    var sorted = this.toArray().sort(sortFn);
+    return this.spawn(sorted);
+  },
+  sortByZIndex: function sortByZIndex() {
+    return this.sort(zIndexSort);
+  },
+  zDepth: function zDepth() {
+    var ele = this[0];
+
+    if (!ele) {
+      return undefined;
+    } // let cy = ele.cy();
+
+
+    var _p = ele._private;
+    var group = _p.group;
+
+    if (group === 'nodes') {
+      var depth = _p.data.parent ? ele.parents().size() : 0;
+
+      if (!ele.isParent()) {
+        return MAX_INT - 1; // childless nodes always on top
+      }
+
+      return depth;
+    } else {
+      var src = _p.source;
+      var tgt = _p.target;
+      var srcDepth = src.zDepth();
+      var tgtDepth = tgt.zDepth();
+      return Math.max(srcDepth, tgtDepth, 0); // depth of deepest parent
+    }
+  }
+};
+elesfn$p.each = elesfn$p.forEach;
+
+var defineSymbolIterator = function defineSymbolIterator() {
+  var typeofUndef =  "undefined" ;
+  var isIteratorSupported = (typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) != typeofUndef && _typeof(Symbol.iterator) != typeofUndef; // eslint-disable-line no-undef
+
+  if (isIteratorSupported) {
+    elesfn$p[Symbol.iterator] = function () {
+      var _this = this;
+
+      // eslint-disable-line no-undef
+      var entry = {
+        value: undefined,
+        done: false
+      };
+      var i = 0;
+      var length = this.length;
+      return _defineProperty({
+        next: function next() {
+          if (i < length) {
+            entry.value = _this[i++];
+          } else {
+            entry.value = undefined;
+            entry.done = true;
+          }
+
+          return entry;
+        }
+      }, Symbol.iterator, function () {
+        // eslint-disable-line no-undef
+        return this;
+      });
+    };
+  }
+};
+
+defineSymbolIterator();
+
+var getLayoutDimensionOptions = defaults({
+  nodeDimensionsIncludeLabels: false
+});
+var elesfn$q = {
+  // Calculates and returns node dimensions { x, y } based on options given
+  layoutDimensions: function layoutDimensions(options) {
+    options = getLayoutDimensionOptions(options);
+    var dims;
+
+    if (!this.takesUpSpace()) {
+      dims = {
+        w: 0,
+        h: 0
+      };
+    } else if (options.nodeDimensionsIncludeLabels) {
+      var bbDim = this.boundingBox();
+      dims = {
+        w: bbDim.w,
+        h: bbDim.h
+      };
+    } else {
+      dims = {
+        w: this.outerWidth(),
+        h: this.outerHeight()
+      };
+    } // sanitise the dimensions for external layouts (avoid division by zero)
+
+
+    if (dims.w === 0 || dims.h === 0) {
+      dims.w = dims.h = 1;
+    }
 
-                        hash = hash * K + entry.value | 0;
-                    }
+    return dims;
+  },
+  // using standard layout options, apply position function (w/ or w/o animation)
+  layoutPositions: function layoutPositions(layout, options, fn) {
+    var nodes = this.nodes();
+    var cy = this.cy();
+    var layoutEles = options.eles; // nodes & edges
+
+    var getMemoizeKey = function getMemoizeKey(node) {
+      return node.id();
+    };
+
+    var fnMem = memoize(fn, getMemoizeKey); // memoized version of position function
+
+    layout.emit({
+      type: 'layoutstart',
+      layout: layout
+    });
+    layout.animations = [];
+
+    var calculateSpacing = function calculateSpacing(spacing, nodesBb, pos) {
+      var center = {
+        x: nodesBb.x1 + nodesBb.w / 2,
+        y: nodesBb.y1 + nodesBb.h / 2
+      };
+      var spacingVector = {
+        // scale from center of bounding box (not necessarily 0,0)
+        x: (pos.x - center.x) * spacing,
+        y: (pos.y - center.y) * spacing
+      };
+      return {
+        x: center.x + spacingVector.x,
+        y: center.y + spacingVector.y
+      };
+    };
+
+    var useSpacingFactor = options.spacingFactor && options.spacingFactor !== 1;
+
+    var spacingBb = function spacingBb() {
+      if (!useSpacingFactor) {
+        return null;
+      }
+
+      var bb = makeBoundingBox();
+
+      for (var i = 0; i < nodes.length; i++) {
+        var node = nodes[i];
+        var pos = fnMem(node, i);
+        expandBoundingBoxByPoint(bb, pos.x, pos.y);
+      }
+
+      return bb;
+    };
+
+    var bb = spacingBb();
+    var getFinalPos = memoize(function (node, i) {
+      var newPos = fnMem(node, i);
+
+      if (useSpacingFactor) {
+        var spacing = Math.abs(options.spacingFactor);
+        newPos = calculateSpacing(spacing, bb, newPos);
+      }
+
+      if (options.transform != null) {
+        newPos = options.transform(node, newPos);
+      }
+
+      return newPos;
+    }, getMemoizeKey);
+
+    if (options.animate) {
+      for (var i = 0; i < nodes.length; i++) {
+        var node = nodes[i];
+        var newPos = getFinalPos(node, i);
+        var animateNode = options.animateFilter == null || options.animateFilter(node, i);
+
+        if (animateNode) {
+          var ani = node.animation({
+            position: newPos,
+            duration: options.animationDuration,
+            easing: options.animationEasing
+          });
+          layout.animations.push(ani);
+        } else {
+          node.position(newPos);
+        }
+      }
+
+      if (options.fit) {
+        var fitAni = cy.animation({
+          fit: {
+            boundingBox: layoutEles.boundingBoxAt(getFinalPos),
+            padding: options.padding
+          },
+          duration: options.animationDuration,
+          easing: options.animationEasing
+        });
+        layout.animations.push(fitAni);
+      } else if (options.zoom !== undefined && options.pan !== undefined) {
+        var zoomPanAni = cy.animation({
+          zoom: options.zoom,
+          pan: options.pan,
+          duration: options.animationDuration,
+          easing: options.animationEasing
+        });
+        layout.animations.push(zoomPanAni);
+      }
+
+      layout.animations.forEach(function (ani) {
+        return ani.play();
+      });
+      layout.one('layoutready', options.ready);
+      layout.emit({
+        type: 'layoutready',
+        layout: layout
+      });
+      Promise$1.all(layout.animations.map(function (ani) {
+        return ani.promise();
+      })).then(function () {
+        layout.one('layoutstop', options.stop);
+        layout.emit({
+          type: 'layoutstop',
+          layout: layout
+        });
+      });
+    } else {
+      nodes.positions(getFinalPos);
 
-                    return hash;
-                };
-                var hashInt = function hashInt(num) {
-                    var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED;
-                    // sdbm/string-hash
-                    return seed * K + num | 0;
-                };
-                var hashIntAlt = function hashIntAlt(num) {
-                    var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_HASH_SEED_ALT;
-                    // djb2/string-hash
-                    return (seed << 5) + seed + num | 0;
-                };
-                var combineHashes = function combineHashes(hash1, hash2) {
-                    return hash1 * 0x200000 + hash2;
-                };
-                var combineHashesArray = function combineHashesArray(hashes) {
-                    return hashes[0] * 0x200000 + hashes[1];
-                };
-                var hashArrays = function hashArrays(hashes1, hashes2) {
-                    return [hashInt(hashes1[0], hashes2[0]), hashIntAlt(hashes1[1], hashes2[1])];
-                };
-                var hashIntsArray = function hashIntsArray(ints, seed) {
-                    var entry = {
-                        value: 0,
-                        done: false
-                    };
-                    var i = 0;
-                    var length = ints.length;
-                    var iterator = {
-                        next: function next() {
-                            if (i < length) {
-                                entry.value = ints[i++];
-                            } else {
-                                entry.done = true;
-                            }
+      if (options.fit) {
+        cy.fit(options.eles, options.padding);
+      }
 
-                            return entry;
-                        }
-                    };
-                    return hashIterableInts(iterator, seed);
-                };
-                var hashString = function hashString(str, seed) {
-                    var entry = {
-                        value: 0,
-                        done: false
-                    };
-                    var i = 0;
-                    var length = str.length;
-                    var iterator = {
-                        next: function next() {
-                            if (i < length) {
-                                entry.value = str.charCodeAt(i++);
-                            } else {
-                                entry.done = true;
-                            }
+      if (options.zoom != null) {
+        cy.zoom(options.zoom);
+      }
 
-                            return entry;
-                        }
-                    };
-                    return hashIterableInts(iterator, seed);
-                };
-                var hashStrings = function hashStrings() {
-                    return hashStringsArray(arguments);
-                };
-                var hashStringsArray = function hashStringsArray(strs) {
-                    var hash;
+      if (options.pan) {
+        cy.pan(options.pan);
+      }
 
-                    for (var i = 0; i < strs.length; i++) {
-                        var str = strs[i];
+      layout.one('layoutready', options.ready);
+      layout.emit({
+        type: 'layoutready',
+        layout: layout
+      });
+      layout.one('layoutstop', options.stop);
+      layout.emit({
+        type: 'layoutstop',
+        layout: layout
+      });
+    }
 
-                        if (i === 0) {
-                            hash = hashString(str);
-                        } else {
-                            hash = hashString(str, hash);
-                        }
-                    }
+    return this; // chaining
+  },
+  layout: function layout(options) {
+    var cy = this.cy();
+    return cy.makeLayout(extend({}, options, {
+      eles: this
+    }));
+  }
+}; // aliases:
 
-                    return hash;
-                };
+elesfn$q.createLayout = elesfn$q.makeLayout = elesfn$q.layout;
 
-                /*global console */
-                var warningsEnabled = true;
-                var warnSupported = console.warn != null; // eslint-disable-line no-console
+function styleCache(key, fn, ele) {
+  var _p = ele._private;
+  var cache = _p.styleCache = _p.styleCache || [];
+  var val;
 
-                var traceSupported = console.trace != null; // eslint-disable-line no-console
+  if ((val = cache[key]) != null) {
+    return val;
+  } else {
+    val = cache[key] = fn(ele);
+    return val;
+  }
+}
 
-                var MAX_INT = Number.MAX_SAFE_INTEGER || 9007199254740991;
-                var trueify = function trueify() {
-                    return true;
-                };
-                var falsify = function falsify() {
-                    return false;
-                };
-                var zeroify = function zeroify() {
-                    return 0;
-                };
-                var noop = function noop() {};
-                var error = function error(msg) {
-                    throw new Error(msg);
-                };
-                var warnings = function warnings(enabled) {
-                    if (enabled !== undefined) {
-                        warningsEnabled = !!enabled;
-                    } else {
-                        return warningsEnabled;
-                    }
-                };
-                var warn = function warn(msg) {
-                    /* eslint-disable no-console */
-                    if (!warnings()) {
-                        return;
-                    }
+function cacheStyleFunction(key, fn) {
+  key = hashString(key);
+  return function cachedStyleFunction(ele) {
+    return styleCache(key, fn, ele);
+  };
+}
 
-                    if (warnSupported) {
-                        console.warn(msg);
-                    } else {
-                        console.log(msg);
+function cachePrototypeStyleFunction(key, fn) {
+  key = hashString(key);
 
-                        if (traceSupported) {
-                            console.trace();
-                        }
-                    }
-                };
-                /* eslint-enable */
+  var selfFn = function selfFn(ele) {
+    return fn.call(ele);
+  };
 
-                var clone = function clone(obj) {
-                    return extend({}, obj);
-                }; // gets a shallow copy of the argument
+  return function cachedPrototypeStyleFunction() {
+    var ele = this[0];
 
-                var copy = function copy(obj) {
-                    if (obj == null) {
-                        return obj;
-                    }
+    if (ele) {
+      return styleCache(key, selfFn, ele);
+    }
+  };
+}
 
-                    if (array(obj)) {
-                        return obj.slice();
-                    } else if (plainObject(obj)) {
-                        return clone(obj);
-                    } else {
-                        return obj;
-                    }
-                };
-                var copyArray = function copyArray(arr) {
-                    return arr.slice();
-                };
-                var uuid = function uuid(a, b
-                                         /* placeholders */
-                ) {
-                    for ( // loop :)
-                        b = a = ''; // b - result , a - numeric letiable
-                        a++ < 36; //
-                        b += a * 51 & 52 // if "a" is not 9 or 14 or 19 or 24
-                            ? //  return a random number or 4
-                            (a ^ 15 // if "a" is not 15
-                                    ? // genetate a random number from 0 to 15
-                                    8 ^ Math.random() * (a ^ 20 ? 16 : 4) // unless "a" is 20, in which case a random number from 8 to 11
-                                    : 4 //  otherwise 4
-                            ).toString(16) : '-' //  in other cases (if "a" is 9,14,19,24) insert "-"
-                    ) {
-                    }
+var elesfn$r = {
+  recalculateRenderedStyle: function recalculateRenderedStyle(useCache) {
+    var cy = this.cy();
+    var renderer = cy.renderer();
+    var styleEnabled = cy.styleEnabled();
 
-                    return b;
-                };
-                var _staticEmptyObject = {};
-                var staticEmptyObject = function staticEmptyObject() {
-                    return _staticEmptyObject;
-                };
-                var defaults = function defaults(_defaults) {
-                    var keys = Object.keys(_defaults);
-                    return function (opts) {
-                        var filledOpts = {};
-
-                        for (var i = 0; i < keys.length; i++) {
-                            var key = keys[i];
-                            var optVal = opts == null ? undefined : opts[key];
-                            filledOpts[key] = optVal === undefined ? _defaults[key] : optVal;
-                        }
+    if (renderer && styleEnabled) {
+      renderer.recalculateRenderedStyle(this, useCache);
+    }
 
-                        return filledOpts;
-                    };
-                };
-                var removeFromArray = function removeFromArray(arr, ele, manyCopies) {
-                    for (var i = arr.length; i >= 0; i--) {
-                        if (arr[i] === ele) {
-                            arr.splice(i, 1);
+    return this;
+  },
+  dirtyStyleCache: function dirtyStyleCache() {
+    var cy = this.cy();
+
+    var dirty = function dirty(ele) {
+      return ele._private.styleCache = null;
+    };
+
+    if (cy.hasCompoundNodes()) {
+      var eles;
+      eles = this.spawnSelf().merge(this.descendants()).merge(this.parents());
+      eles.merge(eles.connectedEdges());
+      eles.forEach(dirty);
+    } else {
+      this.forEach(function (ele) {
+        dirty(ele);
+        ele.connectedEdges().forEach(dirty);
+      });
+    }
 
-                            if (!manyCopies) {
-                                break;
-                            }
-                        }
-                    }
-                };
-                var clearArray = function clearArray(arr) {
-                    arr.splice(0, arr.length);
-                };
-                var push = function push(arr, otherArr) {
-                    for (var i = 0; i < otherArr.length; i++) {
-                        var el = otherArr[i];
-                        arr.push(el);
-                    }
-                };
-                var getPrefixedProperty = function getPrefixedProperty(obj, propName, prefix) {
-                    if (prefix) {
-                        propName = prependCamel(prefix, propName); // e.g. (labelWidth, source) => sourceLabelWidth
-                    }
+    return this;
+  },
+  // fully updates (recalculates) the style for the elements
+  updateStyle: function updateStyle(notifyRenderer) {
+    var cy = this._private.cy;
 
-                    return obj[propName];
-                };
-                var setPrefixedProperty = function setPrefixedProperty(obj, propName, prefix, value) {
-                    if (prefix) {
-                        propName = prependCamel(prefix, propName); // e.g. (labelWidth, source) => sourceLabelWidth
-                    }
+    if (!cy.styleEnabled()) {
+      return this;
+    }
 
-                    obj[propName] = value;
-                };
+    if (cy.batching()) {
+      var bEles = cy._private.batchStyleEles;
+      bEles.merge(this);
+      return this; // chaining and exit early when batching
+    }
 
-                /* global Map */
-                var ObjectMap =
-                    /*#__PURE__*/
-                    function () {
-                        function ObjectMap() {
-                            _classCallCheck(this, ObjectMap);
+    var hasCompounds = cy.hasCompoundNodes();
+    var updatedEles = this;
+    notifyRenderer = notifyRenderer || notifyRenderer === undefined ? true : false;
 
-                            this._obj = {};
-                        }
+    if (hasCompounds) {
+      // then add everything up and down for compound selector checks
+      updatedEles = this.spawnSelf().merge(this.descendants()).merge(this.parents());
+    } // let changedEles = style.apply( updatedEles );
 
-                        _createClass(ObjectMap, [{
-                            key: "set",
-                            value: function set(key, val) {
-                                this._obj[key] = val;
-                                return this;
-                            }
-                        }, {
-                            key: "delete",
-                            value: function _delete(key) {
-                                this._obj[key] = undefined;
-                                return this;
-                            }
-                        }, {
-                            key: "clear",
-                            value: function clear() {
-                                this._obj = {};
-                            }
-                        }, {
-                            key: "has",
-                            value: function has(key) {
-                                return this._obj[key] !== undefined;
-                            }
-                        }, {
-                            key: "get",
-                            value: function get(key) {
-                                return this._obj[key];
-                            }
-                        }]);
 
-                        return ObjectMap;
-                    }();
+    var changedEles = updatedEles;
 
-                var Map$1 = typeof Map !== 'undefined' ? Map : ObjectMap;
+    if (notifyRenderer) {
+      changedEles.emitAndNotify('style'); // let renderer know we changed style
+    } else {
+      changedEles.emit('style'); // just fire the event
+    }
 
-                /* global Set */
-                var undef =  "undefined" ;
+    updatedEles.forEach(function (ele) {
+      return ele._private.styleDirty = true;
+    });
+    return this; // chaining
+  },
+  // get the internal parsed style object for the specified property
+  parsedStyle: function parsedStyle(property) {
+    var includeNonDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+    var ele = this[0];
+    var cy = ele.cy();
+
+    if (!cy.styleEnabled()) {
+      return;
+    }
 
-                var ObjectSet =
-                    /*#__PURE__*/
-                    function () {
-                        function ObjectSet(arrayOrObjectSet) {
-                            _classCallCheck(this, ObjectSet);
+    if (ele) {
+      if (ele._private.styleDirty) {
+        // n.b. this flag should be set before apply() to avoid potential infinite recursion
+        ele._private.styleDirty = false;
+        cy.style().apply(ele);
+        ele.emitAndNotify('style');
+      }
+
+      var overriddenStyle = ele._private.style[property];
+
+      if (overriddenStyle != null) {
+        return overriddenStyle;
+      } else if (includeNonDefault) {
+        return cy.style().getDefaultProperty(property);
+      } else {
+        return null;
+      }
+    }
+  },
+  numericStyle: function numericStyle(property) {
+    var ele = this[0];
 
-                            this._obj = Object.create(null);
-                            this.size = 0;
+    if (!ele.cy().styleEnabled()) {
+      return;
+    }
 
-                            if (arrayOrObjectSet != null) {
-                                var arr;
+    if (ele) {
+      var pstyle = ele.pstyle(property);
+      return pstyle.pfValue !== undefined ? pstyle.pfValue : pstyle.value;
+    }
+  },
+  numericStyleUnits: function numericStyleUnits(property) {
+    var ele = this[0];
 
-                                if (arrayOrObjectSet.instanceString != null && arrayOrObjectSet.instanceString() === this.instanceString()) {
-                                    arr = arrayOrObjectSet.toArray();
-                                } else {
-                                    arr = arrayOrObjectSet;
-                                }
+    if (!ele.cy().styleEnabled()) {
+      return;
+    }
 
-                                for (var i = 0; i < arr.length; i++) {
-                                    this.add(arr[i]);
-                                }
-                            }
-                        }
+    if (ele) {
+      return ele.pstyle(property).units;
+    }
+  },
+  // get the specified css property as a rendered value (i.e. on-screen value)
+  // or get the whole rendered style if no property specified (NB doesn't allow setting)
+  renderedStyle: function renderedStyle(property) {
+    var cy = this.cy();
+
+    if (!cy.styleEnabled()) {
+      return this;
+    }
 
-                        _createClass(ObjectSet, [{
-                            key: "instanceString",
-                            value: function instanceString() {
-                                return 'set';
-                            }
-                        }, {
-                            key: "add",
-                            value: function add(val) {
-                                var o = this._obj;
-
-                                if (o[val] !== 1) {
-                                    o[val] = 1;
-                                    this.size++;
-                                }
-                            }
-                        }, {
-                            key: "delete",
-                            value: function _delete(val) {
-                                var o = this._obj;
-
-                                if (o[val] === 1) {
-                                    o[val] = 0;
-                                    this.size--;
-                                }
-                            }
-                        }, {
-                            key: "clear",
-                            value: function clear() {
-                                this._obj = Object.create(null);
-                            }
-                        }, {
-                            key: "has",
-                            value: function has(val) {
-                                return this._obj[val] === 1;
-                            }
-                        }, {
-                            key: "toArray",
-                            value: function toArray() {
-                                var _this = this;
-
-                                return Object.keys(this._obj).filter(function (key) {
-                                    return _this.has(key);
-                                });
-                            }
-                        }, {
-                            key: "forEach",
-                            value: function forEach(callback, thisArg) {
-                                return this.toArray().forEach(callback, thisArg);
-                            }
-                        }]);
+    var ele = this[0];
 
-                        return ObjectSet;
-                    }();
+    if (ele) {
+      return cy.style().getRenderedStyle(ele, property);
+    }
+  },
+  // read the calculated css style of the element or override the style (via a bypass)
+  style: function style(name, value) {
+    var cy = this.cy();
 
-                var Set$1 = (typeof Set === "undefined" ? "undefined" : _typeof(Set)) !== undef ? Set : ObjectSet;
+    if (!cy.styleEnabled()) {
+      return this;
+    }
 
-                var Element = function Element(cy, params) {
-                    var restore = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
+    var updateTransitions = false;
+    var style = cy.style();
+
+    if (plainObject(name)) {
+      // then extend the bypass
+      var props = name;
+      style.applyBypass(this, props, updateTransitions);
+      this.emitAndNotify('style'); // let the renderer know we've updated style
+    } else if (string(name)) {
+      if (value === undefined) {
+        // then get the property from the style
+        var ele = this[0];
+
+        if (ele) {
+          return style.getStylePropertyValue(ele, name);
+        } else {
+          // empty collection => can't get any value
+          return;
+        }
+      } else {
+        // then set the bypass with the property value
+        style.applyBypass(this, name, value, updateTransitions);
+        this.emitAndNotify('style'); // let the renderer know we've updated style
+      }
+    } else if (name === undefined) {
+      var _ele = this[0];
+
+      if (_ele) {
+        return style.getRawStyle(_ele);
+      } else {
+        // empty collection => can't get any value
+        return;
+      }
+    }
 
-                    if (cy === undefined || params === undefined || !core(cy)) {
-                        error('An element must have a core reference and parameters set');
-                        return;
-                    }
+    return this; // chaining
+  },
+  removeStyle: function removeStyle(names) {
+    var cy = this.cy();
 
-                    var group = params.group; // try to automatically infer the group if unspecified
+    if (!cy.styleEnabled()) {
+      return this;
+    }
 
-                    if (group == null) {
-                        if (params.data && params.data.source != null && params.data.target != null) {
-                            group = 'edges';
-                        } else {
-                            group = 'nodes';
-                        }
-                    } // validate group
-
-
-                    if (group !== 'nodes' && group !== 'edges') {
-                        error('An element must be of type `nodes` or `edges`; you specified `' + group + '`');
-                        return;
-                    } // make the element array-like, just like a collection
-
-
-                    this.length = 1;
-                    this[0] = this; // NOTE: when something is added here, add also to ele.json()
-
-                    var _p = this._private = {
-                        cy: cy,
-                        single: true,
-                        // indicates this is an element
-                        data: params.data || {},
-                        // data object
-                        position: params.position || {
-                            x: 0,
-                            y: 0
-                        },
-                        // (x, y) position pair
-                        autoWidth: undefined,
-                        // width and height of nodes calculated by the renderer when set to special 'auto' value
-                        autoHeight: undefined,
-                        autoPadding: undefined,
-                        compoundBoundsClean: false,
-                        // whether the compound dimensions need to be recalculated the next time dimensions are read
-                        listeners: [],
-                        // array of bound listeners
-                        group: group,
-                        // string; 'nodes' or 'edges'
-                        style: {},
-                        // properties as set by the style
-                        rstyle: {},
-                        // properties for style sent from the renderer to the core
-                        styleCxts: [],
-                        // applied style contexts from the styler
-                        styleKeys: {},
-                        // per-group keys of style property values
-                        removed: true,
-                        // whether it's inside the vis; true if removed (set true here since we call restore)
-                        selected: params.selected ? true : false,
-                        // whether it's selected
-                        selectable: params.selectable === undefined ? true : params.selectable ? true : false,
-                        // whether it's selectable
-                        locked: params.locked ? true : false,
-                        // whether the element is locked (cannot be moved)
-                        grabbed: false,
-                        // whether the element is grabbed by the mouse; renderer sets this privately
-                        grabbable: params.grabbable === undefined ? true : params.grabbable ? true : false,
-                        // whether the element can be grabbed
-                        pannable: params.pannable === undefined ? group === 'edges' ? true : false : params.pannable ? true : false,
-                        // whether the element has passthrough panning enabled
-                        active: false,
-                        // whether the element is active from user interaction
-                        classes: new Set$1(),
-                        // map ( className => true )
-                        animation: {
-                            // object for currently-running animations
-                            current: [],
-                            queue: []
-                        },
-                        rscratch: {},
-                        // object in which the renderer can store information
-                        scratch: params.scratch || {},
-                        // scratch objects
-                        edges: [],
-                        // array of connected edges
-                        children: [],
-                        // array of children
-                        parent: null,
-                        // parent ref
-                        traversalCache: {},
-                        // cache of output of traversal functions
-                        backgrounding: false,
-                        // whether background images are loading
-                        bbCache: null,
-                        // cache of the current bounding box
-                        bbCacheShift: {
-                            x: 0,
-                            y: 0
-                        },
-                        // shift applied to cached bb to be applied on next get
-                        bodyBounds: null,
-                        // bounds cache of element body, w/o overlay
-                        overlayBounds: null,
-                        // bounds cache of element body, including overlay
-                        labelBounds: {
-                            // bounds cache of labels
-                            all: null,
-                            source: null,
-                            target: null,
-                            main: null
-                        },
-                        arrowBounds: {
-                            // bounds cache of edge arrows
-                            source: null,
-                            target: null,
-                            'mid-source': null,
-                            'mid-target': null
-                        }
-                    };
+    var updateTransitions = false;
+    var style = cy.style();
+    var eles = this;
+
+    if (names === undefined) {
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        style.removeAllBypasses(ele, updateTransitions);
+      }
+    } else {
+      names = names.split(/\s+/);
+
+      for (var _i = 0; _i < eles.length; _i++) {
+        var _ele2 = eles[_i];
+        style.removeBypasses(_ele2, names, updateTransitions);
+      }
+    }
 
-                    if (_p.position.x == null) {
-                        _p.position.x = 0;
-                    }
+    this.emitAndNotify('style'); // let the renderer know we've updated style
+
+    return this; // chaining
+  },
+  show: function show() {
+    this.css('display', 'element');
+    return this; // chaining
+  },
+  hide: function hide() {
+    this.css('display', 'none');
+    return this; // chaining
+  },
+  effectiveOpacity: function effectiveOpacity() {
+    var cy = this.cy();
+
+    if (!cy.styleEnabled()) {
+      return 1;
+    }
 
-                    if (_p.position.y == null) {
-                        _p.position.y = 0;
-                    } // renderedPosition overrides if specified
+    var hasCompoundNodes = cy.hasCompoundNodes();
+    var ele = this[0];
 
+    if (ele) {
+      var _p = ele._private;
+      var parentOpacity = ele.pstyle('opacity').value;
 
-                    if (params.renderedPosition) {
-                        var rpos = params.renderedPosition;
-                        var pan = cy.pan();
-                        var zoom = cy.zoom();
-                        _p.position = {
-                            x: (rpos.x - pan.x) / zoom,
-                            y: (rpos.y - pan.y) / zoom
-                        };
-                    }
+      if (!hasCompoundNodes) {
+        return parentOpacity;
+      }
 
-                    var classes = [];
+      var parents = !_p.data.parent ? null : ele.parents();
 
-                    if (array(params.classes)) {
-                        classes = params.classes;
-                    } else if (string(params.classes)) {
-                        classes = params.classes.split(/\s+/);
-                    }
+      if (parents) {
+        for (var i = 0; i < parents.length; i++) {
+          var parent = parents[i];
+          var opacity = parent.pstyle('opacity').value;
+          parentOpacity = opacity * parentOpacity;
+        }
+      }
 
-                    for (var i = 0, l = classes.length; i < l; i++) {
-                        var cls = classes[i];
+      return parentOpacity;
+    }
+  },
+  transparent: function transparent() {
+    var cy = this.cy();
 
-                        if (!cls || cls === '') {
-                            continue;
-                        }
+    if (!cy.styleEnabled()) {
+      return false;
+    }
 
-                        _p.classes.add(cls);
-                    }
+    var ele = this[0];
+    var hasCompoundNodes = ele.cy().hasCompoundNodes();
 
-                    this.createEmitter();
-                    var bypass = params.style || params.css;
+    if (ele) {
+      if (!hasCompoundNodes) {
+        return ele.pstyle('opacity').value === 0;
+      } else {
+        return ele.effectiveOpacity() === 0;
+      }
+    }
+  },
+  backgrounding: function backgrounding() {
+    var cy = this.cy();
 
-                    if (bypass) {
-                        warn('Setting a `style` bypass at element creation is deprecated');
-                        this.style(bypass);
-                    }
+    if (!cy.styleEnabled()) {
+      return false;
+    }
 
-                    if (restore === undefined || restore) {
-                        this.restore();
-                    }
-                };
+    var ele = this[0];
+    return ele._private.backgrounding ? true : false;
+  }
+};
 
-                var defineSearch = function defineSearch(params) {
-                    params = {
-                        bfs: params.bfs || !params.dfs,
-                        dfs: params.dfs || !params.bfs
-                    }; // from pseudocode on wikipedia
+function checkCompound(ele, parentOk) {
+  var _p = ele._private;
+  var parents = _p.data.parent ? ele.parents() : null;
 
-                    return function searchFn(roots, fn$1, directed) {
-                        var options;
+  if (parents) {
+    for (var i = 0; i < parents.length; i++) {
+      var parent = parents[i];
 
-                        if (plainObject(roots) && !elementOrCollection(roots)) {
-                            options = roots;
-                            roots = options.roots || options.root;
-                            fn$1 = options.visit;
-                            directed = options.directed;
-                        }
+      if (!parentOk(parent)) {
+        return false;
+      }
+    }
+  }
 
-                        directed = arguments.length === 2 && !fn(fn$1) ? fn$1 : directed;
-                        fn$1 = fn(fn$1) ? fn$1 : function () {};
-                        var cy = this._private.cy;
-                        var v = roots = string(roots) ? this.filter(roots) : roots;
-                        var Q = [];
-                        var connectedNodes = [];
-                        var connectedBy = {};
-                        var id2depth = {};
-                        var V = {};
-                        var j = 0;
-                        var found;
+  return true;
+}
 
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges; // enqueue v
+function defineDerivedStateFunction(specs) {
+  var ok = specs.ok;
+  var edgeOkViaNode = specs.edgeOkViaNode || specs.ok;
+  var parentOk = specs.parentOk || specs.ok;
+  return function () {
+    var cy = this.cy();
 
+    if (!cy.styleEnabled()) {
+      return true;
+    }
 
-                        for (var i = 0; i < v.length; i++) {
-                            var vi = v[i];
-                            var viId = vi.id();
+    var ele = this[0];
+    var hasCompoundNodes = cy.hasCompoundNodes();
 
-                            if (vi.isNode()) {
-                                Q.unshift(vi);
+    if (ele) {
+      var _p = ele._private;
 
-                                if (params.bfs) {
-                                    V[viId] = true;
-                                    connectedNodes.push(vi);
-                                }
+      if (!ok(ele)) {
+        return false;
+      }
 
-                                id2depth[viId] = 0;
-                            }
-                        }
+      if (ele.isNode()) {
+        return !hasCompoundNodes || checkCompound(ele, parentOk);
+      } else {
+        var src = _p.source;
+        var tgt = _p.target;
+        return edgeOkViaNode(src) && (!hasCompoundNodes || checkCompound(src, edgeOkViaNode)) && (src === tgt || edgeOkViaNode(tgt) && (!hasCompoundNodes || checkCompound(tgt, edgeOkViaNode)));
+      }
+    }
+  };
+}
+
+var eleTakesUpSpace = cacheStyleFunction('eleTakesUpSpace', function (ele) {
+  return ele.pstyle('display').value === 'element' && ele.width() !== 0 && (ele.isNode() ? ele.height() !== 0 : true);
+});
+elesfn$r.takesUpSpace = cachePrototypeStyleFunction('takesUpSpace', defineDerivedStateFunction({
+  ok: eleTakesUpSpace
+}));
+var eleInteractive = cacheStyleFunction('eleInteractive', function (ele) {
+  return ele.pstyle('events').value === 'yes' && ele.pstyle('visibility').value === 'visible' && eleTakesUpSpace(ele);
+});
+var parentInteractive = cacheStyleFunction('parentInteractive', function (parent) {
+  return parent.pstyle('visibility').value === 'visible' && eleTakesUpSpace(parent);
+});
+elesfn$r.interactive = cachePrototypeStyleFunction('interactive', defineDerivedStateFunction({
+  ok: eleInteractive,
+  parentOk: parentInteractive,
+  edgeOkViaNode: eleTakesUpSpace
+}));
+
+elesfn$r.noninteractive = function () {
+  var ele = this[0];
+
+  if (ele) {
+    return !ele.interactive();
+  }
+};
+
+var eleVisible = cacheStyleFunction('eleVisible', function (ele) {
+  return ele.pstyle('visibility').value === 'visible' && ele.pstyle('opacity').pfValue !== 0 && eleTakesUpSpace(ele);
+});
+var edgeVisibleViaNode = eleTakesUpSpace;
+elesfn$r.visible = cachePrototypeStyleFunction('visible', defineDerivedStateFunction({
+  ok: eleVisible,
+  edgeOkViaNode: edgeVisibleViaNode
+}));
+
+elesfn$r.hidden = function () {
+  var ele = this[0];
+
+  if (ele) {
+    return !ele.visible();
+  }
+};
 
-                        var _loop2 = function _loop2() {
-                            var v = params.bfs ? Q.shift() : Q.pop();
-                            var vId = v.id();
+elesfn$r.isBundledBezier = cachePrototypeStyleFunction('isBundledBezier', function () {
+  if (!this.cy().styleEnabled()) {
+    return false;
+  }
 
-                            if (params.dfs) {
-                                if (V[vId]) {
-                                    return "continue";
-                                }
+  return !this.removed() && this.pstyle('curve-style').value === 'bezier' && this.takesUpSpace();
+});
+elesfn$r.bypass = elesfn$r.css = elesfn$r.style;
+elesfn$r.renderedCss = elesfn$r.renderedStyle;
+elesfn$r.removeBypass = elesfn$r.removeCss = elesfn$r.removeStyle;
+elesfn$r.pstyle = elesfn$r.parsedStyle;
+
+var elesfn$s = {};
+
+function defineSwitchFunction(params) {
+  return function () {
+    var args = arguments;
+    var changedEles = []; // e.g. cy.nodes().select( data, handler )
+
+    if (args.length === 2) {
+      var data = args[0];
+      var handler = args[1];
+      this.on(params.event, data, handler);
+    } // e.g. cy.nodes().select( handler )
+    else if (args.length === 1 && fn(args[0])) {
+        var _handler = args[0];
+        this.on(params.event, _handler);
+      } // e.g. cy.nodes().select()
+      // e.g. (private) cy.nodes().select(['tapselect'])
+      else if (args.length === 0 || args.length === 1 && array(args[0])) {
+          var addlEvents = args.length === 1 ? args[0] : null;
+
+          for (var i = 0; i < this.length; i++) {
+            var ele = this[i];
+            var able = !params.ableField || ele._private[params.ableField];
+            var changed = ele._private[params.field] != params.value;
+
+            if (params.overrideAble) {
+              var overrideAble = params.overrideAble(ele);
+
+              if (overrideAble !== undefined) {
+                able = overrideAble;
+
+                if (!overrideAble) {
+                  return this;
+                } // to save cycles assume not able for all on override
+
+              }
+            }
 
-                                V[vId] = true;
-                                connectedNodes.push(v);
-                            }
+            if (able) {
+              ele._private[params.field] = params.value;
 
-                            var depth = id2depth[vId];
-                            var prevEdge = connectedBy[vId];
-                            var src = prevEdge != null ? prevEdge.source() : null;
-                            var tgt = prevEdge != null ? prevEdge.target() : null;
-                            var prevNode = prevEdge == null ? undefined : v.same(src) ? tgt[0] : src[0];
-                            var ret = void 0;
-                            ret = fn$1(v, prevEdge, prevNode, j++, depth);
-
-                            if (ret === true) {
-                                found = v;
-                                return "break";
-                            }
+              if (changed) {
+                changedEles.push(ele);
+              }
+            }
+          }
 
-                            if (ret === false) {
-                                return "break";
-                            }
+          var changedColl = this.spawn(changedEles);
+          changedColl.updateStyle(); // change of state => possible change of style
 
-                            var vwEdges = v.connectedEdges().filter(function (e) {
-                                return (!directed || e.source().same(v)) && edges.has(e);
-                            });
-
-                            for (var _i2 = 0; _i2 < vwEdges.length; _i2++) {
-                                var e = vwEdges[_i2];
-                                var w = e.connectedNodes().filter(function (n) {
-                                    return !n.same(v) && nodes.has(n);
-                                });
-                                var wId = w.id();
-
-                                if (w.length !== 0 && !V[wId]) {
-                                    w = w[0];
-                                    Q.push(w);
-
-                                    if (params.bfs) {
-                                        V[wId] = true;
-                                        connectedNodes.push(w);
-                                    }
-
-                                    connectedBy[wId] = e;
-                                    id2depth[wId] = id2depth[vId] + 1;
-                                }
-                            }
-                        };
+          changedColl.emit(params.event);
 
-                        _loop: while (Q.length !== 0) {
-                            var _ret = _loop2();
+          if (addlEvents) {
+            changedColl.emit(addlEvents);
+          }
+        }
 
-                            switch (_ret) {
-                                case "continue":
-                                    continue;
+    return this;
+  };
+}
 
-                                case "break":
-                                    break _loop;
-                            }
-                        }
+function defineSwitchSet(params) {
+  elesfn$s[params.field] = function () {
+    var ele = this[0];
 
-                        var connectedEles = cy.collection();
+    if (ele) {
+      if (params.overrideField) {
+        var val = params.overrideField(ele);
 
-                        for (var _i = 0; _i < connectedNodes.length; _i++) {
-                            var node = connectedNodes[_i];
-                            var edge = connectedBy[node.id()];
+        if (val !== undefined) {
+          return val;
+        }
+      }
 
-                            if (edge != null) {
-                                connectedEles.push(edge);
-                            }
+      return ele._private[params.field];
+    }
+  };
+
+  elesfn$s[params.on] = defineSwitchFunction({
+    event: params.on,
+    field: params.field,
+    ableField: params.ableField,
+    overrideAble: params.overrideAble,
+    value: true
+  });
+  elesfn$s[params.off] = defineSwitchFunction({
+    event: params.off,
+    field: params.field,
+    ableField: params.ableField,
+    overrideAble: params.overrideAble,
+    value: false
+  });
+}
+
+defineSwitchSet({
+  field: 'locked',
+  overrideField: function overrideField(ele) {
+    return ele.cy().autolock() ? true : undefined;
+  },
+  on: 'lock',
+  off: 'unlock'
+});
+defineSwitchSet({
+  field: 'grabbable',
+  overrideField: function overrideField(ele) {
+    return ele.cy().autoungrabify() || ele.pannable() ? false : undefined;
+  },
+  on: 'grabify',
+  off: 'ungrabify'
+});
+defineSwitchSet({
+  field: 'selected',
+  ableField: 'selectable',
+  overrideAble: function overrideAble(ele) {
+    return ele.cy().autounselectify() ? false : undefined;
+  },
+  on: 'select',
+  off: 'unselect'
+});
+defineSwitchSet({
+  field: 'selectable',
+  overrideField: function overrideField(ele) {
+    return ele.cy().autounselectify() ? false : undefined;
+  },
+  on: 'selectify',
+  off: 'unselectify'
+});
+elesfn$s.deselect = elesfn$s.unselect;
+
+elesfn$s.grabbed = function () {
+  var ele = this[0];
+
+  if (ele) {
+    return ele._private.grabbed;
+  }
+};
+
+defineSwitchSet({
+  field: 'active',
+  on: 'activate',
+  off: 'unactivate'
+});
+defineSwitchSet({
+  field: 'pannable',
+  on: 'panify',
+  off: 'unpanify'
+});
+
+elesfn$s.inactive = function () {
+  var ele = this[0];
+
+  if (ele) {
+    return !ele._private.active;
+  }
+};
 
-                            connectedEles.push(node);
-                        }
+var elesfn$t = {}; // DAG functions
+////////////////
 
-                        return {
-                            path: cy.collection(connectedEles),
-                            found: cy.collection(found)
-                        };
-                    };
-                }; // search, spanning trees, etc
-
-
-                var elesfn = {
-                    breadthFirstSearch: defineSearch({
-                        bfs: true
-                    }),
-                    depthFirstSearch: defineSearch({
-                        dfs: true
-                    })
-                }; // nice, short mathemathical alias
-
-                elesfn.bfs = elesfn.breadthFirstSearch;
-                elesfn.dfs = elesfn.depthFirstSearch;
-
-                var dijkstraDefaults = defaults({
-                    root: null,
-                    weight: function weight(edge) {
-                        return 1;
-                    },
-                    directed: false
-                });
-                var elesfn$1 = {
-                    dijkstra: function dijkstra(options) {
-                        if (!plainObject(options)) {
-                            var args = arguments;
-                            options = {
-                                root: args[0],
-                                weight: args[1],
-                                directed: args[2]
-                            };
-                        }
+var defineDagExtremity = function defineDagExtremity(params) {
+  return function dagExtremityImpl(selector) {
+    var eles = this;
+    var ret = [];
 
-                        var _dijkstraDefaults = dijkstraDefaults(options),
-                            root = _dijkstraDefaults.root,
-                            weight = _dijkstraDefaults.weight,
-                            directed = _dijkstraDefaults.directed;
+    for (var i = 0; i < eles.length; i++) {
+      var ele = eles[i];
 
-                        var eles = this;
-                        var weightFn = weight;
-                        var source = string(root) ? this.filter(root)[0] : root[0];
-                        var dist = {};
-                        var prev = {};
-                        var knownDist = {};
+      if (!ele.isNode()) {
+        continue;
+      }
 
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges;
+      var disqualified = false;
+      var edges = ele.connectedEdges();
 
-                        edges.unmergeBy(function (ele) {
-                            return ele.isLoop();
-                        });
+      for (var j = 0; j < edges.length; j++) {
+        var edge = edges[j];
+        var src = edge.source();
+        var tgt = edge.target();
 
-                        var getDist = function getDist(node) {
-                            return dist[node.id()];
-                        };
+        if (params.noIncomingEdges && tgt === ele && src !== ele || params.noOutgoingEdges && src === ele && tgt !== ele) {
+          disqualified = true;
+          break;
+        }
+      }
 
-                        var setDist = function setDist(node, d) {
-                            dist[node.id()] = d;
-                            Q.updateItem(node);
-                        };
+      if (!disqualified) {
+        ret.push(ele);
+      }
+    }
 
-                        var Q = new Heap(function (a, b) {
-                            return getDist(a) - getDist(b);
-                        });
+    return this.spawn(ret, true).filter(selector);
+  };
+};
 
-                        for (var i = 0; i < nodes.length; i++) {
-                            var node = nodes[i];
-                            dist[node.id()] = node.same(source) ? 0 : Infinity;
-                            Q.push(node);
-                        }
+var defineDagOneHop = function defineDagOneHop(params) {
+  return function (selector) {
+    var eles = this;
+    var oEles = [];
 
-                        var distBetween = function distBetween(u, v) {
-                            var uvs = (directed ? u.edgesTo(v) : u.edgesWith(v)).intersect(edges);
-                            var smallestDistance = Infinity;
-                            var smallestEdge;
+    for (var i = 0; i < eles.length; i++) {
+      var ele = eles[i];
 
-                            for (var _i = 0; _i < uvs.length; _i++) {
-                                var edge = uvs[_i];
+      if (!ele.isNode()) {
+        continue;
+      }
 
-                                var _weight = weightFn(edge);
+      var edges = ele.connectedEdges();
 
-                                if (_weight < smallestDistance || !smallestEdge) {
-                                    smallestDistance = _weight;
-                                    smallestEdge = edge;
-                                }
-                            }
+      for (var j = 0; j < edges.length; j++) {
+        var edge = edges[j];
+        var src = edge.source();
+        var tgt = edge.target();
 
-                            return {
-                                edge: smallestEdge,
-                                dist: smallestDistance
-                            };
-                        };
+        if (params.outgoing && src === ele) {
+          oEles.push(edge);
+          oEles.push(tgt);
+        } else if (params.incoming && tgt === ele) {
+          oEles.push(edge);
+          oEles.push(src);
+        }
+      }
+    }
 
-                        while (Q.size() > 0) {
-                            var u = Q.pop();
-                            var smalletsDist = getDist(u);
-                            var uid = u.id();
-                            knownDist[uid] = smalletsDist;
+    return this.spawn(oEles, true).filter(selector);
+  };
+};
 
-                            if (smalletsDist === Infinity) {
-                                continue;
-                            }
+var defineDagAllHops = function defineDagAllHops(params) {
+  return function (selector) {
+    var eles = this;
+    var sEles = [];
+    var sElesIds = {};
 
-                            var neighbors = u.neighborhood().intersect(nodes);
-
-                            for (var _i2 = 0; _i2 < neighbors.length; _i2++) {
-                                var v = neighbors[_i2];
-                                var vid = v.id();
-                                var vDist = distBetween(u, v);
-                                var alt = smalletsDist + vDist.dist;
-
-                                if (alt < getDist(v)) {
-                                    setDist(v, alt);
-                                    prev[vid] = {
-                                        node: u,
-                                        edge: vDist.edge
-                                    };
-                                }
-                            } // for
-
-                        } // while
-
-
-                        return {
-                            distanceTo: function distanceTo(node) {
-                                var target = string(node) ? nodes.filter(node)[0] : node[0];
-                                return knownDist[target.id()];
-                            },
-                            pathTo: function pathTo(node) {
-                                var target = string(node) ? nodes.filter(node)[0] : node[0];
-                                var S = [];
-                                var u = target;
-                                var uid = u.id();
-
-                                if (target.length > 0) {
-                                    S.unshift(target);
-
-                                    while (prev[uid]) {
-                                        var p = prev[uid];
-                                        S.unshift(p.edge);
-                                        S.unshift(p.node);
-                                        u = p.node;
-                                        uid = u.id();
-                                    }
-                                }
-
-                                return eles.spawn(S);
-                            }
-                        };
-                    }
-                };
+    for (;;) {
+      var next = params.outgoing ? eles.outgoers() : eles.incomers();
 
-                var elesfn$2 = {
-                    // kruskal's algorithm (finds min spanning tree, assuming undirected graph)
-                    // implemented from pseudocode from wikipedia
-                    kruskal: function kruskal(weightFn) {
-                        weightFn = weightFn || function (edge) {
-                            return 1;
-                        };
-
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges;
-
-                        var numNodes = nodes.length;
-                        var forest = new Array(numNodes);
-                        var A = nodes; // assumes byGroup() creates new collections that can be safely mutated
-
-                        var findSetIndex = function findSetIndex(ele) {
-                            for (var i = 0; i < forest.length; i++) {
-                                var eles = forest[i];
-
-                                if (eles.has(ele)) {
-                                    return i;
-                                }
-                            }
-                        }; // start with one forest per node
+      if (next.length === 0) {
+        break;
+      } // done if none left
 
 
-                        for (var i = 0; i < numNodes; i++) {
-                            forest[i] = this.spawn(nodes[i]);
-                        }
+      var newNext = false;
 
-                        var S = edges.sort(function (a, b) {
-                            return weightFn(a) - weightFn(b);
-                        });
+      for (var i = 0; i < next.length; i++) {
+        var n = next[i];
+        var nid = n.id();
 
-                        for (var _i = 0; _i < S.length; _i++) {
-                            var edge = S[_i];
-                            var u = edge.source()[0];
-                            var v = edge.target()[0];
-                            var setUIndex = findSetIndex(u);
-                            var setVIndex = findSetIndex(v);
-                            var setU = forest[setUIndex];
-                            var setV = forest[setVIndex];
+        if (!sElesIds[nid]) {
+          sElesIds[nid] = true;
+          sEles.push(n);
+          newNext = true;
+        }
+      }
 
-                            if (setUIndex !== setVIndex) {
-                                A.merge(edge); // combine forests for u and v
+      if (!newNext) {
+        break;
+      } // done if touched all outgoers already
 
-                                setU.merge(setV);
-                                forest.splice(setVIndex, 1);
-                            }
-                        }
 
-                        return A;
-                    }
-                };
+      eles = next;
+    }
 
-                var aStarDefaults = defaults({
-                    root: null,
-                    goal: null,
-                    weight: function weight(edge) {
-                        return 1;
-                    },
-                    heuristic: function heuristic(edge) {
-                        return 0;
-                    },
-                    directed: false
-                });
-                var elesfn$3 = {
-                    // Implemented from pseudocode from wikipedia
-                    aStar: function aStar(options) {
-                        var cy = this.cy();
-
-                        var _aStarDefaults = aStarDefaults(options),
-                            root = _aStarDefaults.root,
-                            goal = _aStarDefaults.goal,
-                            heuristic = _aStarDefaults.heuristic,
-                            directed = _aStarDefaults.directed,
-                            weight = _aStarDefaults.weight;
-
-                        root = cy.collection(root)[0];
-                        goal = cy.collection(goal)[0];
-                        var sid = root.id();
-                        var tid = goal.id();
-                        var gScore = {};
-                        var fScore = {};
-                        var closedSetIds = {};
-                        var openSet = new Heap(function (a, b) {
-                            return fScore[a.id()] - fScore[b.id()];
-                        });
-                        var openSetIds = new Set$1();
-                        var cameFrom = {};
-                        var cameFromEdge = {};
+    return this.spawn(sEles, true).filter(selector);
+  };
+};
 
-                        var addToOpenSet = function addToOpenSet(ele, id) {
-                            openSet.push(ele);
-                            openSetIds.add(id);
-                        };
+elesfn$t.clearTraversalCache = function () {
+  for (var i = 0; i < this.length; i++) {
+    this[i]._private.traversalCache = null;
+  }
+};
+
+extend(elesfn$t, {
+  // get the root nodes in the DAG
+  roots: defineDagExtremity({
+    noIncomingEdges: true
+  }),
+  // get the leaf nodes in the DAG
+  leaves: defineDagExtremity({
+    noOutgoingEdges: true
+  }),
+  // normally called children in graph theory
+  // these nodes =edges=> outgoing nodes
+  outgoers: cache(defineDagOneHop({
+    outgoing: true
+  }), 'outgoers'),
+  // aka DAG descendants
+  successors: defineDagAllHops({
+    outgoing: true
+  }),
+  // normally called parents in graph theory
+  // these nodes <=edges= incoming nodes
+  incomers: cache(defineDagOneHop({
+    incoming: true
+  }), 'incomers'),
+  // aka DAG ancestors
+  predecessors: defineDagAllHops({
+    incoming: true
+  })
+}); // Neighbourhood functions
+//////////////////////////
 
-                        var cMin, cMinId;
+extend(elesfn$t, {
+  neighborhood: cache(function (selector) {
+    var elements = [];
+    var nodes = this.nodes();
 
-                        var popFromOpenSet = function popFromOpenSet() {
-                            cMin = openSet.pop();
-                            cMinId = cMin.id();
-                            openSetIds["delete"](cMinId);
-                        };
+    for (var i = 0; i < nodes.length; i++) {
+      // for all nodes
+      var node = nodes[i];
+      var connectedEdges = node.connectedEdges(); // for each connected edge, add the edge and the other node
 
-                        var isInOpenSet = function isInOpenSet(id) {
-                            return openSetIds.has(id);
-                        };
+      for (var j = 0; j < connectedEdges.length; j++) {
+        var edge = connectedEdges[j];
+        var src = edge.source();
+        var tgt = edge.target();
+        var otherNode = node === src ? tgt : src; // need check in case of loop
 
-                        addToOpenSet(root, sid);
-                        gScore[sid] = 0;
-                        fScore[sid] = heuristic(root); // Counter
+        if (otherNode.length > 0) {
+          elements.push(otherNode[0]); // add node 1 hop away
+        } // add connected edge
 
-                        var steps = 0; // Main loop
 
-                        while (openSet.size() > 0) {
-                            popFromOpenSet();
-                            steps++; // If we've found our goal, then we are done
+        elements.push(edge[0]);
+      }
+    }
 
-                            if (cMinId === tid) {
-                                var path = [];
-                                var pathNode = goal;
-                                var pathNodeId = tid;
-                                var pathEdge = cameFromEdge[pathNodeId];
+    return this.spawn(elements, true).filter(selector);
+  }, 'neighborhood'),
+  closedNeighborhood: function closedNeighborhood(selector) {
+    return this.neighborhood().add(this).filter(selector);
+  },
+  openNeighborhood: function openNeighborhood(selector) {
+    return this.neighborhood(selector);
+  }
+}); // aliases
 
-                                for (;;) {
-                                    path.unshift(pathNode);
+elesfn$t.neighbourhood = elesfn$t.neighborhood;
+elesfn$t.closedNeighbourhood = elesfn$t.closedNeighborhood;
+elesfn$t.openNeighbourhood = elesfn$t.openNeighborhood; // Edge functions
+/////////////////
 
-                                    if (pathEdge != null) {
-                                        path.unshift(pathEdge);
-                                    }
+extend(elesfn$t, {
+  source: cache(function sourceImpl(selector) {
+    var ele = this[0];
+    var src;
 
-                                    pathNode = cameFrom[pathNodeId];
+    if (ele) {
+      src = ele._private.source || ele.cy().collection();
+    }
 
-                                    if (pathNode == null) {
-                                        break;
-                                    }
+    return src && selector ? src.filter(selector) : src;
+  }, 'source'),
+  target: cache(function targetImpl(selector) {
+    var ele = this[0];
+    var tgt;
 
-                                    pathNodeId = pathNode.id();
-                                    pathEdge = cameFromEdge[pathNodeId];
-                                }
+    if (ele) {
+      tgt = ele._private.target || ele.cy().collection();
+    }
 
-                                return {
-                                    found: true,
-                                    distance: gScore[cMinId],
-                                    path: this.spawn(path),
-                                    steps: steps
-                                };
-                            } // Add cMin to processed nodes
+    return tgt && selector ? tgt.filter(selector) : tgt;
+  }, 'target'),
+  sources: defineSourceFunction({
+    attr: 'source'
+  }),
+  targets: defineSourceFunction({
+    attr: 'target'
+  })
+});
+
+function defineSourceFunction(params) {
+  return function sourceImpl(selector) {
+    var sources = [];
+
+    for (var i = 0; i < this.length; i++) {
+      var ele = this[i];
+      var src = ele._private[params.attr];
+
+      if (src) {
+        sources.push(src);
+      }
+    }
 
+    return this.spawn(sources, true).filter(selector);
+  };
+}
+
+extend(elesfn$t, {
+  edgesWith: cache(defineEdgesWithFunction(), 'edgesWith'),
+  edgesTo: cache(defineEdgesWithFunction({
+    thisIsSrc: true
+  }), 'edgesTo')
+});
+
+function defineEdgesWithFunction(params) {
+  return function edgesWithImpl(otherNodes) {
+    var elements = [];
+    var cy = this._private.cy;
+    var p = params || {}; // get elements if a selector is specified
+
+    if (string(otherNodes)) {
+      otherNodes = cy.$(otherNodes);
+    }
 
-                            closedSetIds[cMinId] = true; // Update scores for neighbors of cMin
-                            // Take into account if graph is directed or not
+    for (var h = 0; h < otherNodes.length; h++) {
+      var edges = otherNodes[h]._private.edges;
 
-                            var vwEdges = cMin._private.edges;
+      for (var i = 0; i < edges.length; i++) {
+        var edge = edges[i];
+        var edgeData = edge._private.data;
+        var thisToOther = this.hasElementWithId(edgeData.source) && otherNodes.hasElementWithId(edgeData.target);
+        var otherToThis = otherNodes.hasElementWithId(edgeData.source) && this.hasElementWithId(edgeData.target);
+        var edgeConnectsThisAndOther = thisToOther || otherToThis;
 
-                            for (var i = 0; i < vwEdges.length; i++) {
-                                var e = vwEdges[i]; // edge must be in set of calling eles
+        if (!edgeConnectsThisAndOther) {
+          continue;
+        }
 
-                                if (!this.hasElementWithId(e.id())) {
-                                    continue;
-                                } // cMin must be the source of edge if directed
+        if (p.thisIsSrc || p.thisIsTgt) {
+          if (p.thisIsSrc && !thisToOther) {
+            continue;
+          }
 
+          if (p.thisIsTgt && !otherToThis) {
+            continue;
+          }
+        }
 
-                                if (directed && e.data('source') !== cMinId) {
-                                    continue;
-                                }
+        elements.push(edge);
+      }
+    }
 
-                                var wSrc = e.source();
-                                var wTgt = e.target();
-                                var w = wSrc.id() !== cMinId ? wSrc : wTgt;
-                                var wid = w.id(); // node must be in set of calling eles
+    return this.spawn(elements, true);
+  };
+}
 
-                                if (!this.hasElementWithId(wid)) {
-                                    continue;
-                                } // if node is in closedSet, ignore it
+extend(elesfn$t, {
+  connectedEdges: cache(function (selector) {
+    var retEles = [];
+    var eles = this;
 
+    for (var i = 0; i < eles.length; i++) {
+      var node = eles[i];
 
-                                if (closedSetIds[wid]) {
-                                    continue;
-                                } // New tentative score for node w
+      if (!node.isNode()) {
+        continue;
+      }
 
+      var edges = node._private.edges;
 
-                                var tempScore = gScore[cMinId] + weight(e); // Update gScore for node w if:
-                                //   w not present in openSet
-                                // OR
-                                //   tentative gScore is less than previous value
-                                // w not in openSet
+      for (var j = 0; j < edges.length; j++) {
+        var edge = edges[j];
+        retEles.push(edge);
+      }
+    }
 
-                                if (!isInOpenSet(wid)) {
-                                    gScore[wid] = tempScore;
-                                    fScore[wid] = tempScore + heuristic(w);
-                                    addToOpenSet(w, wid);
-                                    cameFrom[wid] = cMin;
-                                    cameFromEdge[wid] = e;
-                                    continue;
-                                } // w already in openSet, but with greater gScore
+    return this.spawn(retEles, true).filter(selector);
+  }, 'connectedEdges'),
+  connectedNodes: cache(function (selector) {
+    var retEles = [];
+    var eles = this;
 
+    for (var i = 0; i < eles.length; i++) {
+      var edge = eles[i];
 
-                                if (tempScore < gScore[wid]) {
-                                    gScore[wid] = tempScore;
-                                    fScore[wid] = tempScore + heuristic(w);
-                                    cameFrom[wid] = cMin;
-                                }
-                            } // End of neighbors update
+      if (!edge.isEdge()) {
+        continue;
+      }
 
-                        } // End of main loop
-                        // If we've reached here, then we've not reached our goal
+      retEles.push(edge.source()[0]);
+      retEles.push(edge.target()[0]);
+    }
 
+    return this.spawn(retEles, true).filter(selector);
+  }, 'connectedNodes'),
+  parallelEdges: cache(defineParallelEdgesFunction(), 'parallelEdges'),
+  codirectedEdges: cache(defineParallelEdgesFunction({
+    codirected: true
+  }), 'codirectedEdges')
+});
+
+function defineParallelEdgesFunction(params) {
+  var defaults = {
+    codirected: false
+  };
+  params = extend({}, defaults, params);
+  return function parallelEdgesImpl(selector) {
+    // micro-optimised for renderer
+    var elements = [];
+    var edges = this.edges();
+    var p = params; // look at all the edges in the collection
+
+    for (var i = 0; i < edges.length; i++) {
+      var edge1 = edges[i];
+      var edge1_p = edge1._private;
+      var src1 = edge1_p.source;
+      var srcid1 = src1._private.data.id;
+      var tgtid1 = edge1_p.data.target;
+      var srcEdges1 = src1._private.edges; // look at edges connected to the src node of this edge
+
+      for (var j = 0; j < srcEdges1.length; j++) {
+        var edge2 = srcEdges1[j];
+        var edge2data = edge2._private.data;
+        var tgtid2 = edge2data.target;
+        var srcid2 = edge2data.source;
+        var codirected = tgtid2 === tgtid1 && srcid2 === srcid1;
+        var oppdirected = srcid1 === tgtid2 && tgtid1 === srcid2;
+
+        if (p.codirected && codirected || !p.codirected && (codirected || oppdirected)) {
+          elements.push(edge2);
+        }
+      }
+    }
 
-                        return {
-                            found: false,
-                            distance: undefined,
-                            path: undefined,
-                            steps: steps
-                        };
-                    }
-                }; // elesfn
+    return this.spawn(elements, true).filter(selector);
+  };
+} // Misc functions
+/////////////////
 
-                var floydWarshallDefaults = defaults({
-                    weight: function weight(edge) {
-                        return 1;
-                    },
-                    directed: false
-                });
-                var elesfn$4 = {
-                    // Implemented from pseudocode from wikipedia
-                    floydWarshall: function floydWarshall(options) {
-                        var cy = this.cy();
 
-                        var _floydWarshallDefault = floydWarshallDefaults(options),
-                            weight = _floydWarshallDefault.weight,
-                            directed = _floydWarshallDefault.directed;
+extend(elesfn$t, {
+  components: function components(root) {
+    var self = this;
+    var cy = self.cy();
+    var visited = cy.collection();
+    var unvisited = root == null ? self.nodes() : root.nodes();
+    var components = [];
 
-                        var weightFn = weight;
+    if (root != null && unvisited.empty()) {
+      // root may contain only edges
+      unvisited = root.sources(); // doesn't matter which node to use (undirected), so just use the source sides
+    }
 
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges;
+    var visitInComponent = function visitInComponent(node, component) {
+      visited.merge(node);
+      unvisited.unmerge(node);
+      component.merge(node);
+    };
 
-                        var N = nodes.length;
-                        var Nsq = N * N;
+    if (unvisited.empty()) {
+      return self.spawn();
+    }
 
-                        var indexOf = function indexOf(node) {
-                            return nodes.indexOf(node);
-                        };
+    var _loop = function _loop() {
+      // each iteration yields a component
+      var cmpt = cy.collection();
+      components.push(cmpt);
+      var root = unvisited[0];
+      visitInComponent(root, cmpt);
+      self.bfs({
+        directed: false,
+        roots: root,
+        visit: function visit(v) {
+          return visitInComponent(v, cmpt);
+        }
+      });
+      cmpt.forEach(function (node) {
+        node.connectedEdges().forEach(function (e) {
+          // connectedEdges() usually cached
+          if (self.has(e) && cmpt.has(e.source()) && cmpt.has(e.target())) {
+            // has() is cheap
+            cmpt.merge(e); // forEach() only considers nodes -- sets N at call time
+          }
+        });
+      });
+    };
 
-                        var atIndex = function atIndex(i) {
-                            return nodes[i];
-                        }; // Initialize distance matrix
+    do {
+      _loop();
+    } while (unvisited.length > 0);
 
+    return components;
+  },
+  component: function component() {
+    var ele = this[0];
+    return ele.cy().mutableElements().components(ele)[0];
+  }
+});
+elesfn$t.componentsOf = elesfn$t.components;
 
-                        var dist = new Array(Nsq);
+var Collection = function Collection(cy, elements) {
+  var unique = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
-                        for (var n = 0; n < Nsq; n++) {
-                            var j = n % N;
-                            var i = (n - j) / N;
+  if (cy === undefined) {
+    error('A collection must have a reference to the core');
+    return;
+  }
 
-                            if (i === j) {
-                                dist[n] = 0;
-                            } else {
-                                dist[n] = Infinity;
-                            }
-                        } // Initialize matrix used for path reconstruction
-                        // Initialize distance matrix
+  var map = new Map$1();
+  var createdElements = false;
 
+  if (!elements) {
+    elements = [];
+  } else if (elements.length > 0 && plainObject(elements[0]) && !element(elements[0])) {
+    createdElements = true; // make elements from json and restore all at once later
 
-                        var next = new Array(Nsq);
-                        var edgeNext = new Array(Nsq); // Process edges
+    var eles = [];
+    var elesIds = new Set$1();
 
-                        for (var _i = 0; _i < edges.length; _i++) {
-                            var edge = edges[_i];
-                            var src = edge.source()[0];
-                            var tgt = edge.target()[0];
+    for (var i = 0, l = elements.length; i < l; i++) {
+      var json = elements[i];
 
-                            if (src === tgt) {
-                                continue;
-                            } // exclude loops
+      if (json.data == null) {
+        json.data = {};
+      }
 
+      var _data = json.data; // make sure newly created elements have valid ids
 
-                            var s = indexOf(src);
-                            var t = indexOf(tgt);
-                            var st = s * N + t; // source to target index
+      if (_data.id == null) {
+        _data.id = uuid();
+      } else if (cy.hasElementWithId(_data.id) || elesIds.has(_data.id)) {
+        continue; // can't create element if prior id already exists
+      }
 
-                            var _weight = weightFn(edge); // Check if already process another edge between same 2 nodes
+      var ele = new Element(cy, json, false);
+      eles.push(ele);
+      elesIds.add(_data.id);
+    }
 
+    elements = eles;
+  }
 
-                            if (dist[st] > _weight) {
-                                dist[st] = _weight;
-                                next[st] = t;
-                                edgeNext[st] = edge;
-                            } // If undirected graph, process 'reversed' edge
+  this.length = 0;
 
+  for (var _i = 0, _l = elements.length; _i < _l; _i++) {
+    var element$1 = elements[_i][0]; // [0] in case elements is an array of collections, rather than array of elements
 
-                            if (!directed) {
-                                var ts = t * N + s; // target to source index
+    if (element$1 == null) {
+      continue;
+    }
 
-                                if (!directed && dist[ts] > _weight) {
-                                    dist[ts] = _weight;
-                                    next[ts] = s;
-                                    edgeNext[ts] = edge;
-                                }
-                            }
-                        } // Main loop
+    var id = element$1._private.data.id;
 
+    if (!unique || !map.has(id)) {
+      if (unique) {
+        map.set(id, {
+          index: this.length,
+          ele: element$1
+        });
+      }
 
-                        for (var k = 0; k < N; k++) {
-                            for (var _i2 = 0; _i2 < N; _i2++) {
-                                var ik = _i2 * N + k;
+      this[this.length] = element$1;
+      this.length++;
+    }
+  }
 
-                                for (var _j = 0; _j < N; _j++) {
-                                    var ij = _i2 * N + _j;
-                                    var kj = k * N + _j;
+  this._private = {
+    eles: this,
+    cy: cy,
+
+    get map() {
+      if (this.lazyMap == null) {
+        this.rebuildMap();
+      }
+
+      return this.lazyMap;
+    },
+
+    set map(m) {
+      this.lazyMap = m;
+    },
+
+    rebuildMap: function rebuildMap() {
+      var m = this.lazyMap = new Map$1();
+      var eles = this.eles;
+
+      for (var _i2 = 0; _i2 < eles.length; _i2++) {
+        var _ele = eles[_i2];
+        m.set(_ele.id(), {
+          index: _i2,
+          ele: _ele
+        });
+      }
+    }
+  };
 
-                                    if (dist[ik] + dist[kj] < dist[ij]) {
-                                        dist[ij] = dist[ik] + dist[kj];
-                                        next[ij] = next[ik];
-                                    }
-                                }
-                            }
-                        }
+  if (unique) {
+    this._private.map = map;
+  } // restore the elements if we created them from json
 
-                        var getArgEle = function getArgEle(ele) {
-                            return (string(ele) ? cy.filter(ele) : ele)[0];
-                        };
-
-                        var indexOfArgEle = function indexOfArgEle(ele) {
-                            return indexOf(getArgEle(ele));
-                        };
-
-                        var res = {
-                            distance: function distance(from, to) {
-                                var i = indexOfArgEle(from);
-                                var j = indexOfArgEle(to);
-                                return dist[i * N + j];
-                            },
-                            path: function path(from, to) {
-                                var i = indexOfArgEle(from);
-                                var j = indexOfArgEle(to);
-                                var fromNode = atIndex(i);
-
-                                if (i === j) {
-                                    return fromNode.collection();
-                                }
-
-                                if (next[i * N + j] == null) {
-                                    return cy.collection();
-                                }
-
-                                var path = cy.collection();
-                                var prev = i;
-                                var edge;
-                                path.merge(fromNode);
-
-                                while (i !== j) {
-                                    prev = i;
-                                    i = next[i * N + j];
-                                    edge = edgeNext[prev * N + i];
-                                    path.merge(edge);
-                                    path.merge(atIndex(i));
-                                }
-
-                                return path;
-                            }
-                        };
-                        return res;
-                    } // floydWarshall
-
-                }; // elesfn
-
-                var bellmanFordDefaults = defaults({
-                    weight: function weight(edge) {
-                        return 1;
-                    },
-                    directed: false,
-                    root: null
-                });
-                var elesfn$5 = {
-                    // Implemented from pseudocode from wikipedia
-                    bellmanFord: function bellmanFord(options) {
-                        var _this = this;
-
-                        var _bellmanFordDefaults = bellmanFordDefaults(options),
-                            weight = _bellmanFordDefaults.weight,
-                            directed = _bellmanFordDefaults.directed,
-                            root = _bellmanFordDefaults.root;
-
-                        var weightFn = weight;
-                        var eles = this;
-                        var cy = this.cy();
-
-                        var _this$byGroup = this.byGroup(),
-                            edges = _this$byGroup.edges,
-                            nodes = _this$byGroup.nodes;
-
-                        var numNodes = nodes.length;
-                        var infoMap = new Map$1();
-                        var hasNegativeWeightCycle = false;
-                        var negativeWeightCycles = [];
-                        root = cy.collection(root)[0]; // in case selector passed
-
-                        edges.unmergeBy(function (edge) {
-                            return edge.isLoop();
-                        });
-                        var numEdges = edges.length;
 
-                        var getInfo = function getInfo(node) {
-                            var obj = infoMap.get(node.id());
+  if (createdElements) {
+    this.restore();
+  }
+}; // Functions
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// keep the prototypes in sync (an element has the same functions as a collection)
+// and use elefn and elesfn as shorthands to the prototypes
 
-                            if (!obj) {
-                                obj = {};
-                                infoMap.set(node.id(), obj);
-                            }
 
-                            return obj;
-                        };
+var elesfn$u = Element.prototype = Collection.prototype = Object.create(Array.prototype);
 
-                        var getNodeFromTo = function getNodeFromTo(to) {
-                            return (string(to) ? cy.$(to) : to)[0];
-                        };
+elesfn$u.instanceString = function () {
+  return 'collection';
+};
 
-                        var distanceTo = function distanceTo(to) {
-                            return getInfo(getNodeFromTo(to)).dist;
-                        };
+elesfn$u.spawn = function (eles, unique) {
+  return new Collection(this.cy(), eles, unique);
+};
 
-                        var pathTo = function pathTo(to) {
-                            var thisStart = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : root;
-                            var end = getNodeFromTo(to);
-                            var path = [];
-                            var node = end;
+elesfn$u.spawnSelf = function () {
+  return this.spawn(this);
+};
 
-                            for (;;) {
-                                if (node == null) {
-                                    return _this.spawn();
-                                }
+elesfn$u.cy = function () {
+  return this._private.cy;
+};
 
-                                var _getInfo = getInfo(node),
-                                    edge = _getInfo.edge,
-                                    pred = _getInfo.pred;
+elesfn$u.renderer = function () {
+  return this._private.cy.renderer();
+};
 
-                                path.unshift(node[0]);
+elesfn$u.element = function () {
+  return this[0];
+};
 
-                                if (node.same(thisStart) && path.length > 0) {
-                                    break;
-                                }
+elesfn$u.collection = function () {
+  if (collection(this)) {
+    return this;
+  } else {
+    // an element
+    return new Collection(this._private.cy, [this]);
+  }
+};
 
-                                if (edge != null) {
-                                    path.unshift(edge);
-                                }
+elesfn$u.unique = function () {
+  return new Collection(this._private.cy, this, true);
+};
 
-                                node = pred;
-                            }
+elesfn$u.hasElementWithId = function (id) {
+  id = '' + id; // id must be string
 
-                            return eles.spawn(path);
-                        }; // Initializations { dist, pred, edge }
+  return this._private.map.has(id);
+};
 
+elesfn$u.getElementById = function (id) {
+  id = '' + id; // id must be string
 
-                        for (var i = 0; i < numNodes; i++) {
-                            var node = nodes[i];
-                            var info = getInfo(node);
+  var cy = this._private.cy;
 
-                            if (node.same(root)) {
-                                info.dist = 0;
-                            } else {
-                                info.dist = Infinity;
-                            }
+  var entry = this._private.map.get(id);
 
-                            info.pred = null;
-                            info.edge = null;
-                        } // Edges relaxation
+  return entry ? entry.ele : new Collection(cy); // get ele or empty collection
+};
 
+elesfn$u.$id = elesfn$u.getElementById;
 
-                        var replacedEdge = false;
+elesfn$u.poolIndex = function () {
+  var cy = this._private.cy;
+  var eles = cy._private.elements;
+  var id = this[0]._private.data.id;
+  return eles._private.map.get(id).index;
+};
 
-                        var checkForEdgeReplacement = function checkForEdgeReplacement(node1, node2, edge, info1, info2, weight) {
-                            var dist = info1.dist + weight;
+elesfn$u.indexOf = function (ele) {
+  var id = ele[0]._private.data.id;
+  return this._private.map.get(id).index;
+};
 
-                            if (dist < info2.dist && !edge.same(info1.edge)) {
-                                info2.dist = dist;
-                                info2.pred = node1;
-                                info2.edge = edge;
-                                replacedEdge = true;
-                            }
-                        };
+elesfn$u.indexOfId = function (id) {
+  id = '' + id; // id must be string
 
-                        for (var _i = 1; _i < numNodes; _i++) {
-                            replacedEdge = false;
+  return this._private.map.get(id).index;
+};
 
-                            for (var e = 0; e < numEdges; e++) {
-                                var edge = edges[e];
-                                var src = edge.source();
-                                var tgt = edge.target();
+elesfn$u.json = function (obj) {
+  var ele = this.element();
+  var cy = this.cy();
 
-                                var _weight = weightFn(edge);
+  if (ele == null && obj) {
+    return this;
+  } // can't set to no eles
 
-                                var srcInfo = getInfo(src);
-                                var tgtInfo = getInfo(tgt);
-                                checkForEdgeReplacement(src, tgt, edge, srcInfo, tgtInfo, _weight); // If undirected graph, we need to take into account the 'reverse' edge
 
-                                if (!directed) {
-                                    checkForEdgeReplacement(tgt, src, edge, tgtInfo, srcInfo, _weight);
-                                }
-                            }
+  if (ele == null) {
+    return undefined;
+  } // can't get from no eles
 
-                            if (!replacedEdge) {
-                                break;
-                            }
-                        }
 
-                        if (replacedEdge) {
-                            // Check for negative weight cycles
-                            for (var _e = 0; _e < numEdges; _e++) {
-                                var _edge = edges[_e];
+  var p = ele._private;
 
-                                var _src = _edge.source();
+  if (plainObject(obj)) {
+    // set
+    cy.startBatch();
 
-                                var _tgt = _edge.target();
+    if (obj.data) {
+      ele.data(obj.data);
+      var _data2 = p.data;
 
-                                var _weight2 = weightFn(_edge);
+      if (ele.isEdge()) {
+        // source and target are immutable via data()
+        var move = false;
+        var spec = {};
+        var src = obj.data.source;
+        var tgt = obj.data.target;
 
-                                var srcDist = getInfo(_src).dist;
-                                var tgtDist = getInfo(_tgt).dist;
+        if (src != null && src != _data2.source) {
+          spec.source = '' + src; // id must be string
 
-                                if (srcDist + _weight2 < tgtDist || !directed && tgtDist + _weight2 < srcDist) {
-                                    warn('Graph contains a negative weight cycle for Bellman-Ford');
-                                    hasNegativeWeightCycle = true;
-                                    break;
-                                }
-                            }
-                        }
+          move = true;
+        }
 
-                        return {
-                            distanceTo: distanceTo,
-                            pathTo: pathTo,
-                            hasNegativeWeightCycle: hasNegativeWeightCycle,
-                            negativeWeightCycles: negativeWeightCycles
-                        };
-                    } // bellmanFord
+        if (tgt != null && tgt != _data2.target) {
+          spec.target = '' + tgt; // id must be string
 
-                }; // elesfn
+          move = true;
+        }
 
-                var sqrt2 = Math.sqrt(2); // Function which colapses 2 (meta) nodes into one
-// Updates the remaining edge lists
-// Receives as a paramater the edge which causes the collapse
+        if (move) {
+          ele = ele.move(spec);
+        }
+      } else {
+        // parent is immutable via data()
+        var newParentValSpecd = 'parent' in obj.data;
+        var parent = obj.data.parent;
+
+        if (newParentValSpecd && (parent != null || _data2.parent != null) && parent != _data2.parent) {
+          if (parent === undefined) {
+            // can't set undefined imperatively, so use null
+            parent = null;
+          }
+
+          if (parent != null) {
+            parent = '' + parent; // id must be string
+          }
+
+          ele = ele.move({
+            parent: parent
+          });
+        }
+      }
+    }
 
-                var collapse = function collapse(edgeIndex, nodeMap, remainingEdges) {
-                    if (remainingEdges.length === 0) {
-                        error("Karger-Stein must be run on a connected (sub)graph");
-                    }
+    if (obj.position) {
+      ele.position(obj.position);
+    } // ignore group -- immutable
 
-                    var edgeInfo = remainingEdges[edgeIndex];
-                    var sourceIn = edgeInfo[1];
-                    var targetIn = edgeInfo[2];
-                    var partition1 = nodeMap[sourceIn];
-                    var partition2 = nodeMap[targetIn];
-                    var newEdges = remainingEdges; // re-use array
-                    // Delete all edges between partition1 and partition2
-
-                    for (var i = newEdges.length - 1; i >= 0; i--) {
-                        var edge = newEdges[i];
-                        var src = edge[1];
-                        var tgt = edge[2];
-
-                        if (nodeMap[src] === partition1 && nodeMap[tgt] === partition2 || nodeMap[src] === partition2 && nodeMap[tgt] === partition1) {
-                            newEdges.splice(i, 1);
-                        }
-                    } // All edges pointing to partition2 should now point to partition1
 
+    var checkSwitch = function checkSwitch(k, trueFnName, falseFnName) {
+      var obj_k = obj[k];
 
-                    for (var _i = 0; _i < newEdges.length; _i++) {
-                        var _edge = newEdges[_i];
+      if (obj_k != null && obj_k !== p[k]) {
+        if (obj_k) {
+          ele[trueFnName]();
+        } else {
+          ele[falseFnName]();
+        }
+      }
+    };
+
+    checkSwitch('removed', 'remove', 'restore');
+    checkSwitch('selected', 'select', 'unselect');
+    checkSwitch('selectable', 'selectify', 'unselectify');
+    checkSwitch('locked', 'lock', 'unlock');
+    checkSwitch('grabbable', 'grabify', 'ungrabify');
+    checkSwitch('pannable', 'panify', 'unpanify');
+
+    if (obj.classes != null) {
+      ele.classes(obj.classes);
+    }
 
-                        if (_edge[1] === partition2) {
-                            // Check source
-                            newEdges[_i] = _edge.slice(); // copy
+    cy.endBatch();
+    return this;
+  } else if (obj === undefined) {
+    // get
+    var json = {
+      data: copy(p.data),
+      position: copy(p.position),
+      group: p.group,
+      removed: p.removed,
+      selected: p.selected,
+      selectable: p.selectable,
+      locked: p.locked,
+      grabbable: p.grabbable,
+      pannable: p.pannable,
+      classes: null
+    };
+    json.classes = '';
+    var i = 0;
+    p.classes.forEach(function (cls) {
+      return json.classes += i++ === 0 ? cls : ' ' + cls;
+    });
+    return json;
+  }
+};
 
-                            newEdges[_i][1] = partition1;
-                        } else if (_edge[2] === partition2) {
-                            // Check target
-                            newEdges[_i] = _edge.slice(); // copy
+elesfn$u.jsons = function () {
+  var jsons = [];
 
-                            newEdges[_i][2] = partition1;
-                        }
-                    } // Move all nodes from partition2 to partition1
+  for (var i = 0; i < this.length; i++) {
+    var ele = this[i];
+    var json = ele.json();
+    jsons.push(json);
+  }
 
+  return jsons;
+};
 
-                    for (var _i2 = 0; _i2 < nodeMap.length; _i2++) {
-                        if (nodeMap[_i2] === partition2) {
-                            nodeMap[_i2] = partition1;
-                        }
-                    }
+elesfn$u.clone = function () {
+  var cy = this.cy();
+  var elesArr = [];
 
-                    return newEdges;
-                }; // Contracts a graph until we reach a certain number of meta nodes
+  for (var i = 0; i < this.length; i++) {
+    var ele = this[i];
+    var json = ele.json();
+    var clone = new Element(cy, json, false); // NB no restore
 
+    elesArr.push(clone);
+  }
 
-                var contractUntil = function contractUntil(metaNodeMap, remainingEdges, size, sizeLimit) {
-                    while (size > sizeLimit) {
-                        // Choose an edge randomly
-                        var edgeIndex = Math.floor(Math.random() * remainingEdges.length); // Collapse graph based on edge
+  return new Collection(cy, elesArr);
+};
 
-                        remainingEdges = collapse(edgeIndex, metaNodeMap, remainingEdges);
-                        size--;
-                    }
+elesfn$u.copy = elesfn$u.clone;
 
-                    return remainingEdges;
-                };
+elesfn$u.restore = function () {
+  var notifyRenderer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
+  var addToPool = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+  var self = this;
+  var cy = self.cy();
+  var cy_p = cy._private; // create arrays of nodes and edges, since we need to
+  // restore the nodes first
 
-                var elesfn$6 = {
-                    // Computes the minimum cut of an undirected graph
-                    // Returns the correct answer with high probability
-                    kargerStein: function kargerStein() {
-                        var _this = this;
+  var nodes = [];
+  var edges = [];
+  var elements;
 
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges;
+  for (var _i3 = 0, l = self.length; _i3 < l; _i3++) {
+    var ele = self[_i3];
 
-                        edges.unmergeBy(function (edge) {
-                            return edge.isLoop();
-                        });
-                        var numNodes = nodes.length;
-                        var numEdges = edges.length;
-                        var numIter = Math.ceil(Math.pow(Math.log(numNodes) / Math.LN2, 2));
-                        var stopSize = Math.floor(numNodes / sqrt2);
+    if (addToPool && !ele.removed()) {
+      // don't need to handle this ele
+      continue;
+    } // keep nodes first in the array and edges after
 
-                        if (numNodes < 2) {
-                            error('At least 2 nodes are required for Karger-Stein algorithm');
-                            return undefined;
-                        } // Now store edge destination as indexes
-                        // Format for each edge (edge index, source node index, target node index)
 
+    if (ele.isNode()) {
+      // put to front of array if node
+      nodes.push(ele);
+    } else {
+      // put to end of array if edge
+      edges.push(ele);
+    }
+  }
 
-                        var edgeIndexes = [];
+  elements = nodes.concat(edges);
+  var i;
 
-                        for (var i = 0; i < numEdges; i++) {
-                            var e = edges[i];
-                            edgeIndexes.push([i, nodes.indexOf(e.source()), nodes.indexOf(e.target())]);
-                        } // We will store the best cut found here
+  var removeFromElements = function removeFromElements() {
+    elements.splice(i, 1);
+    i--;
+  }; // now, restore each element
 
 
-                        var minCutSize = Infinity;
-                        var minCutEdgeIndexes = [];
-                        var minCutNodeMap = new Array(numNodes); // Initial meta node partition
+  for (i = 0; i < elements.length; i++) {
+    var _ele2 = elements[i];
+    var _private = _ele2._private;
+    var _data3 = _private.data; // the traversal cache should start fresh when ele is added
 
-                        var metaNodeMap = new Array(numNodes);
-                        var metaNodeMap2 = new Array(numNodes);
+    _ele2.clearTraversalCache(); // set id and validate
 
-                        var copyNodesMap = function copyNodesMap(from, to) {
-                            for (var _i3 = 0; _i3 < numNodes; _i3++) {
-                                to[_i3] = from[_i3];
-                            }
-                        }; // Main loop
 
+    if (!addToPool && !_private.removed) ; else if (_data3.id === undefined) {
+      _data3.id = uuid();
+    } else if (number(_data3.id)) {
+      _data3.id = '' + _data3.id; // now it's a string
+    } else if (emptyString(_data3.id) || !string(_data3.id)) {
+      error('Can not create element with invalid string ID `' + _data3.id + '`'); // can't create element if it has empty string as id or non-string id
 
-                        for (var iter = 0; iter <= numIter; iter++) {
-                            // Reset meta node partition
-                            for (var _i4 = 0; _i4 < numNodes; _i4++) {
-                                metaNodeMap[_i4] = _i4;
-                            } // Contract until stop point (stopSize nodes)
+      removeFromElements();
+      continue;
+    } else if (cy.hasElementWithId(_data3.id)) {
+      error('Can not create second element with ID `' + _data3.id + '`'); // can't create element if one already has that id
 
+      removeFromElements();
+      continue;
+    }
 
-                            var edgesState = contractUntil(metaNodeMap, edgeIndexes.slice(), numNodes, stopSize);
-                            var edgesState2 = edgesState.slice(); // copy
-                            // Create a copy of the colapsed nodes state
+    var id = _data3.id; // id is finalised, now let's keep a ref
 
-                            copyNodesMap(metaNodeMap, metaNodeMap2); // Run 2 iterations starting in the stop state
+    if (_ele2.isNode()) {
+      // extra checks for nodes
+      var pos = _private.position; // make sure the nodes have a defined position
 
-                            var res1 = contractUntil(metaNodeMap, edgesState, stopSize, 2);
-                            var res2 = contractUntil(metaNodeMap2, edgesState2, stopSize, 2); // Is any of the 2 results the best cut so far?
+      if (pos.x == null) {
+        pos.x = 0;
+      }
 
-                            if (res1.length <= res2.length && res1.length < minCutSize) {
-                                minCutSize = res1.length;
-                                minCutEdgeIndexes = res1;
-                                copyNodesMap(metaNodeMap, minCutNodeMap);
-                            } else if (res2.length <= res1.length && res2.length < minCutSize) {
-                                minCutSize = res2.length;
-                                minCutEdgeIndexes = res2;
-                                copyNodesMap(metaNodeMap2, minCutNodeMap);
-                            }
-                        } // end of main loop
-                        // Construct result
+      if (pos.y == null) {
+        pos.y = 0;
+      }
+    }
 
+    if (_ele2.isEdge()) {
+      // extra checks for edges
+      var edge = _ele2;
+      var fields = ['source', 'target'];
+      var fieldsLength = fields.length;
+      var badSourceOrTarget = false;
 
-                        var cut = this.spawn(minCutEdgeIndexes.map(function (e) {
-                            return edges[e[0]];
-                        }));
-                        var partition1 = this.spawn();
-                        var partition2 = this.spawn(); // traverse metaNodeMap for best cut
+      for (var j = 0; j < fieldsLength; j++) {
+        var field = fields[j];
+        var val = _data3[field];
 
-                        var witnessNodePartition = minCutNodeMap[0];
+        if (number(val)) {
+          val = _data3[field] = '' + _data3[field]; // now string
+        }
 
-                        for (var _i5 = 0; _i5 < minCutNodeMap.length; _i5++) {
-                            var partitionId = minCutNodeMap[_i5];
-                            var node = nodes[_i5];
+        if (val == null || val === '') {
+          // can't create if source or target is not defined properly
+          error('Can not create edge `' + id + '` with unspecified ' + field);
+          badSourceOrTarget = true;
+        } else if (!cy.hasElementWithId(val)) {
+          // can't create edge if one of its nodes doesn't exist
+          error('Can not create edge `' + id + '` with nonexistant ' + field + ' `' + val + '`');
+          badSourceOrTarget = true;
+        }
+      }
 
-                            if (partitionId === witnessNodePartition) {
-                                partition1.merge(node);
-                            } else {
-                                partition2.merge(node);
-                            }
-                        } // construct components corresponding to each disjoint subset of nodes
-
-
-                        var constructComponent = function constructComponent(subset) {
-                            var component = _this.spawn();
-
-                            subset.forEach(function (node) {
-                                component.merge(node);
-                                node.connectedEdges().forEach(function (edge) {
-                                    // ensure edge is within calling collection and edge is not in cut
-                                    if (_this.contains(edge) && !cut.contains(edge)) {
-                                        component.merge(edge);
-                                    }
-                                });
-                            });
-                            return component;
-                        };
-
-                        var components = [constructComponent(partition1), constructComponent(partition2)];
-                        var ret = {
-                            cut: cut,
-                            components: components,
-                            // n.b. partitions are included to be compatible with the old api spec
-                            // (could be removed in a future major version)
-                            partition1: partition1,
-                            partition2: partition2
-                        };
-                        return ret;
-                    }
-                }; // elesfn
+      if (badSourceOrTarget) {
+        removeFromElements();
+        continue;
+      } // can't create this
 
-                var copyPosition = function copyPosition(p) {
-                    return {
-                        x: p.x,
-                        y: p.y
-                    };
-                };
-                var modelToRenderedPosition = function modelToRenderedPosition(p, zoom, pan) {
-                    return {
-                        x: p.x * zoom + pan.x,
-                        y: p.y * zoom + pan.y
-                    };
-                };
-                var renderedToModelPosition = function renderedToModelPosition(p, zoom, pan) {
-                    return {
-                        x: (p.x - pan.x) / zoom,
-                        y: (p.y - pan.y) / zoom
-                    };
-                };
-                var array2point = function array2point(arr) {
-                    return {
-                        x: arr[0],
-                        y: arr[1]
-                    };
-                };
-                var min = function min(arr) {
-                    var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-                    var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
-                    var min = Infinity;
 
-                    for (var i = begin; i < end; i++) {
-                        var val = arr[i];
+      var src = cy.getElementById(_data3.source);
+      var tgt = cy.getElementById(_data3.target); // only one edge in node if loop
 
-                        if (isFinite(val)) {
-                            min = Math.min(val, min);
-                        }
-                    }
+      if (src.same(tgt)) {
+        src._private.edges.push(edge);
+      } else {
+        src._private.edges.push(edge);
 
-                    return min;
-                };
-                var max = function max(arr) {
-                    var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-                    var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
-                    var max = -Infinity;
+        tgt._private.edges.push(edge);
+      }
 
-                    for (var i = begin; i < end; i++) {
-                        var val = arr[i];
+      edge._private.source = src;
+      edge._private.target = tgt;
+    } // if is edge
+    // create mock ids / indexes maps for element so it can be used like collections
 
-                        if (isFinite(val)) {
-                            max = Math.max(val, max);
-                        }
-                    }
 
-                    return max;
-                };
-                var mean = function mean(arr) {
-                    var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-                    var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
-                    var total = 0;
-                    var n = 0;
-
-                    for (var i = begin; i < end; i++) {
-                        var val = arr[i];
-
-                        if (isFinite(val)) {
-                            total += val;
-                            n++;
-                        }
-                    }
+    _private.map = new Map$1();
 
-                    return total / n;
-                };
-                var median = function median(arr) {
-                    var begin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-                    var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : arr.length;
-                    var copy = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
-                    var sort = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
-                    var includeHoles = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
-
-                    if (copy) {
-                        arr = arr.slice(begin, end);
-                    } else {
-                        if (end < arr.length) {
-                            arr.splice(end, arr.length - end);
-                        }
+    _private.map.set(id, {
+      ele: _ele2,
+      index: 0
+    });
 
-                        if (begin > 0) {
-                            arr.splice(0, begin);
-                        }
-                    } // all non finite (e.g. Infinity, NaN) elements must be -Infinity so they go to the start
+    _private.removed = false;
 
+    if (addToPool) {
+      cy.addToPool(_ele2);
+    }
+  } // for each element
+  // do compound node sanity checks
 
-                    var off = 0; // offset from non-finite values
 
-                    for (var i = arr.length - 1; i >= 0; i--) {
-                        var v = arr[i];
+  for (var _i4 = 0; _i4 < nodes.length; _i4++) {
+    // each node
+    var node = nodes[_i4];
+    var _data4 = node._private.data;
 
-                        if (includeHoles) {
-                            if (!isFinite(v)) {
-                                arr[i] = -Infinity;
-                                off++;
-                            }
-                        } else {
-                            // just remove it if we don't want to consider holes
-                            arr.splice(i, 1);
-                        }
-                    }
+    if (number(_data4.parent)) {
+      // then automake string
+      _data4.parent = '' + _data4.parent;
+    }
 
-                    if (sort) {
-                        arr.sort(function (a, b) {
-                            return a - b;
-                        }); // requires copy = true if you don't want to change the orig
-                    }
+    var parentId = _data4.parent;
+    var specifiedParent = parentId != null;
 
-                    var len = arr.length;
-                    var mid = Math.floor(len / 2);
+    if (specifiedParent) {
+      var parent = cy.getElementById(parentId);
 
-                    if (len % 2 !== 0) {
-                        return arr[mid + 1 + off];
-                    } else {
-                        return (arr[mid - 1 + off] + arr[mid + off]) / 2;
-                    }
-                };
-                var deg2rad = function deg2rad(deg) {
-                    return Math.PI * deg / 180;
-                };
-                var getAngleFromDisp = function getAngleFromDisp(dispX, dispY) {
-                    return Math.atan2(dispY, dispX) - Math.PI / 2;
-                };
-                var log2 = Math.log2 || function (n) {
-                    return Math.log(n) / Math.log(2);
-                };
-                var signum = function signum(x) {
-                    if (x > 0) {
-                        return 1;
-                    } else if (x < 0) {
-                        return -1;
-                    } else {
-                        return 0;
-                    }
-                };
-                var dist = function dist(p1, p2) {
-                    return Math.sqrt(sqdist(p1, p2));
-                };
-                var sqdist = function sqdist(p1, p2) {
-                    var dx = p2.x - p1.x;
-                    var dy = p2.y - p1.y;
-                    return dx * dx + dy * dy;
-                };
-                var inPlaceSumNormalize = function inPlaceSumNormalize(v) {
-                    var length = v.length; // First, get sum of all elements
+      if (parent.empty()) {
+        // non-existant parent; just remove it
+        _data4.parent = undefined;
+      } else {
+        var selfAsParent = false;
+        var ancestor = parent;
 
-                    var total = 0;
+        while (!ancestor.empty()) {
+          if (node.same(ancestor)) {
+            // mark self as parent and remove from data
+            selfAsParent = true;
+            _data4.parent = undefined; // remove parent reference
+            // exit or we loop forever
 
-                    for (var i = 0; i < length; i++) {
-                        total += v[i];
-                    } // Now, divide each by the sum of all elements
+            break;
+          }
 
+          ancestor = ancestor.parent();
+        }
 
-                    for (var _i = 0; _i < length; _i++) {
-                        v[_i] = v[_i] / total;
-                    }
+        if (!selfAsParent) {
+          // connect with children
+          parent[0]._private.children.push(node);
 
-                    return v;
-                };
+          node._private.parent = parent[0]; // let the core know we have a compound graph
 
-                var qbezierAt = function qbezierAt(p0, p1, p2, t) {
-                    return (1 - t) * (1 - t) * p0 + 2 * (1 - t) * t * p1 + t * t * p2;
-                };
-                var qbezierPtAt = function qbezierPtAt(p0, p1, p2, t) {
-                    return {
-                        x: qbezierAt(p0.x, p1.x, p2.x, t),
-                        y: qbezierAt(p0.y, p1.y, p2.y, t)
-                    };
-                };
-                var lineAt = function lineAt(p0, p1, t, d) {
-                    var vec = {
-                        x: p1.x - p0.x,
-                        y: p1.y - p0.y
-                    };
-                    var vecDist = dist(p0, p1);
-                    var normVec = {
-                        x: vec.x / vecDist,
-                        y: vec.y / vecDist
-                    };
-                    t = t == null ? 0 : t;
-                    d = d != null ? d : t * vecDist;
-                    return {
-                        x: p0.x + normVec.x * d,
-                        y: p0.y + normVec.y * d
-                    };
-                };
-                var bound = function bound(min, val, max) {
-                    return Math.max(min, Math.min(max, val));
-                }; // makes a full bb (x1, y1, x2, y2, w, h) from implicit params
-
-                var makeBoundingBox = function makeBoundingBox(bb) {
-                    if (bb == null) {
-                        return {
-                            x1: Infinity,
-                            y1: Infinity,
-                            x2: -Infinity,
-                            y2: -Infinity,
-                            w: 0,
-                            h: 0
-                        };
-                    } else if (bb.x1 != null && bb.y1 != null) {
-                        if (bb.x2 != null && bb.y2 != null && bb.x2 >= bb.x1 && bb.y2 >= bb.y1) {
-                            return {
-                                x1: bb.x1,
-                                y1: bb.y1,
-                                x2: bb.x2,
-                                y2: bb.y2,
-                                w: bb.x2 - bb.x1,
-                                h: bb.y2 - bb.y1
-                            };
-                        } else if (bb.w != null && bb.h != null && bb.w >= 0 && bb.h >= 0) {
-                            return {
-                                x1: bb.x1,
-                                y1: bb.y1,
-                                x2: bb.x1 + bb.w,
-                                y2: bb.y1 + bb.h,
-                                w: bb.w,
-                                h: bb.h
-                            };
-                        }
-                    }
-                };
-                var copyBoundingBox = function copyBoundingBox(bb) {
-                    return {
-                        x1: bb.x1,
-                        x2: bb.x2,
-                        w: bb.w,
-                        y1: bb.y1,
-                        y2: bb.y2,
-                        h: bb.h
-                    };
-                };
-                var clearBoundingBox = function clearBoundingBox(bb) {
-                    bb.x1 = Infinity;
-                    bb.y1 = Infinity;
-                    bb.x2 = -Infinity;
-                    bb.y2 = -Infinity;
-                    bb.w = 0;
-                    bb.h = 0;
-                };
-                var updateBoundingBox = function updateBoundingBox(bb1, bb2) {
-                    // update bb1 with bb2 bounds
-                    bb1.x1 = Math.min(bb1.x1, bb2.x1);
-                    bb1.x2 = Math.max(bb1.x2, bb2.x2);
-                    bb1.w = bb1.x2 - bb1.x1;
-                    bb1.y1 = Math.min(bb1.y1, bb2.y1);
-                    bb1.y2 = Math.max(bb1.y2, bb2.y2);
-                    bb1.h = bb1.y2 - bb1.y1;
-                };
-                var expandBoundingBoxByPoint = function expandBoundingBoxByPoint(bb, x, y) {
-                    bb.x1 = Math.min(bb.x1, x);
-                    bb.x2 = Math.max(bb.x2, x);
-                    bb.w = bb.x2 - bb.x1;
-                    bb.y1 = Math.min(bb.y1, y);
-                    bb.y2 = Math.max(bb.y2, y);
-                    bb.h = bb.y2 - bb.y1;
-                };
-                var expandBoundingBox = function expandBoundingBox(bb) {
-                    var padding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-                    bb.x1 -= padding;
-                    bb.x2 += padding;
-                    bb.y1 -= padding;
-                    bb.y2 += padding;
-                    bb.w = bb.x2 - bb.x1;
-                    bb.h = bb.y2 - bb.y1;
-                    return bb;
-                };
-                var expandBoundingBoxSides = function expandBoundingBoxSides(bb) {
-                    var padding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0];
-                    var top, right, bottom, left;
-
-                    if (padding.length === 1) {
-                        top = right = bottom = left = padding[0];
-                    } else if (padding.length === 2) {
-                        top = bottom = padding[0];
-                        left = right = padding[1];
-                    } else if (padding.length === 4) {
-                        var _padding = _slicedToArray(padding, 4);
-
-                        top = _padding[0];
-                        right = _padding[1];
-                        bottom = _padding[2];
-                        left = _padding[3];
-                    }
+          cy_p.hasCompoundNodes = true;
+        }
+      } // else
 
-                    bb.x1 -= left;
-                    bb.x2 += right;
-                    bb.y1 -= top;
-                    bb.y2 += bottom;
-                    bb.w = bb.x2 - bb.x1;
-                    bb.h = bb.y2 - bb.y1;
-                    return bb;
-                };
+    } // if specified parent
 
-                var assignBoundingBox = function assignBoundingBox(bb1, bb2) {
-                    bb1.x1 = bb2.x1;
-                    bb1.y1 = bb2.y1;
-                    bb1.x2 = bb2.x2;
-                    bb1.y2 = bb2.y2;
-                    bb1.w = bb1.x2 - bb1.x1;
-                    bb1.h = bb1.y2 - bb1.y1;
-                };
-                var assignShiftToBoundingBox = function assignShiftToBoundingBox(bb, delta) {
-                    bb.x1 += delta.x;
-                    bb.x2 += delta.x;
-                    bb.y1 += delta.y;
-                    bb.y2 += delta.y;
-                };
-                var boundingBoxesIntersect = function boundingBoxesIntersect(bb1, bb2) {
-                    // case: one bb to right of other
-                    if (bb1.x1 > bb2.x2) {
-                        return false;
-                    }
+  } // for each node
 
-                    if (bb2.x1 > bb1.x2) {
-                        return false;
-                    } // case: one bb to left of other
 
+  if (elements.length > 0) {
+    var restored = elements.length === self.length ? self : new Collection(cy, elements);
 
-                    if (bb1.x2 < bb2.x1) {
-                        return false;
-                    }
+    for (var _i5 = 0; _i5 < restored.length; _i5++) {
+      var _ele3 = restored[_i5];
 
-                    if (bb2.x2 < bb1.x1) {
-                        return false;
-                    } // case: one bb above other
+      if (_ele3.isNode()) {
+        continue;
+      } // adding an edge invalidates the traversal caches for the parallel edges
 
 
-                    if (bb1.y2 < bb2.y1) {
-                        return false;
-                    }
+      _ele3.parallelEdges().clearTraversalCache(); // adding an edge invalidates the traversal cache for the connected nodes
 
-                    if (bb2.y2 < bb1.y1) {
-                        return false;
-                    } // case: one bb below other
 
+      _ele3.source().clearTraversalCache();
 
-                    if (bb1.y1 > bb2.y2) {
-                        return false;
-                    }
+      _ele3.target().clearTraversalCache();
+    }
 
-                    if (bb2.y1 > bb1.y2) {
-                        return false;
-                    } // otherwise, must have some overlap
+    var toUpdateStyle;
 
+    if (cy_p.hasCompoundNodes) {
+      toUpdateStyle = cy.collection().merge(restored).merge(restored.connectedNodes()).merge(restored.parent());
+    } else {
+      toUpdateStyle = restored;
+    }
 
-                    return true;
-                };
-                var inBoundingBox = function inBoundingBox(bb, x, y) {
-                    return bb.x1 <= x && x <= bb.x2 && bb.y1 <= y && y <= bb.y2;
-                };
-                var pointInBoundingBox = function pointInBoundingBox(bb, pt) {
-                    return inBoundingBox(bb, pt.x, pt.y);
-                };
-                var boundingBoxInBoundingBox = function boundingBoxInBoundingBox(bb1, bb2) {
-                    return inBoundingBox(bb1, bb2.x1, bb2.y1) && inBoundingBox(bb1, bb2.x2, bb2.y2);
-                };
-                var roundRectangleIntersectLine = function roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding) {
-                    var cornerRadius = getRoundRectangleRadius(width, height);
-                    var halfWidth = width / 2;
-                    var halfHeight = height / 2; // Check intersections with straight line segments
-
-                    var straightLineIntersections; // Top segment, left to right
-
-                    {
-                        var topStartX = nodeX - halfWidth + cornerRadius - padding;
-                        var topStartY = nodeY - halfHeight - padding;
-                        var topEndX = nodeX + halfWidth - cornerRadius + padding;
-                        var topEndY = topStartY;
-                        straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, topStartX, topStartY, topEndX, topEndY, false);
-
-                        if (straightLineIntersections.length > 0) {
-                            return straightLineIntersections;
-                        }
-                    } // Right segment, top to bottom
+    toUpdateStyle.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(notifyRenderer);
 
-                    {
-                        var rightStartX = nodeX + halfWidth + padding;
-                        var rightStartY = nodeY - halfHeight + cornerRadius - padding;
-                        var rightEndX = rightStartX;
-                        var rightEndY = nodeY + halfHeight - cornerRadius + padding;
-                        straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, rightStartX, rightStartY, rightEndX, rightEndY, false);
+    if (notifyRenderer) {
+      restored.emitAndNotify('add');
+    } else if (addToPool) {
+      restored.emit('add');
+    }
+  }
 
-                        if (straightLineIntersections.length > 0) {
-                            return straightLineIntersections;
-                        }
-                    } // Bottom segment, left to right
+  return self; // chainability
+};
 
-                    {
-                        var bottomStartX = nodeX - halfWidth + cornerRadius - padding;
-                        var bottomStartY = nodeY + halfHeight + padding;
-                        var bottomEndX = nodeX + halfWidth - cornerRadius + padding;
-                        var bottomEndY = bottomStartY;
-                        straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, bottomStartX, bottomStartY, bottomEndX, bottomEndY, false);
+elesfn$u.removed = function () {
+  var ele = this[0];
+  return ele && ele._private.removed;
+};
 
-                        if (straightLineIntersections.length > 0) {
-                            return straightLineIntersections;
-                        }
-                    } // Left segment, top to bottom
+elesfn$u.inside = function () {
+  var ele = this[0];
+  return ele && !ele._private.removed;
+};
 
-                    {
-                        var leftStartX = nodeX - halfWidth - padding;
-                        var leftStartY = nodeY - halfHeight + cornerRadius - padding;
-                        var leftEndX = leftStartX;
-                        var leftEndY = nodeY + halfHeight - cornerRadius + padding;
-                        straightLineIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, leftStartX, leftStartY, leftEndX, leftEndY, false);
+elesfn$u.remove = function () {
+  var notifyRenderer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
+  var removeFromPool = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+  var self = this;
+  var elesToRemove = [];
+  var elesToRemoveIds = {};
+  var cy = self._private.cy; // add connected edges
 
-                        if (straightLineIntersections.length > 0) {
-                            return straightLineIntersections;
-                        }
-                    } // Check intersections with arc segments
+  function addConnectedEdges(node) {
+    var edges = node._private.edges;
 
-                    var arcIntersections; // Top Left
+    for (var i = 0; i < edges.length; i++) {
+      add(edges[i]);
+    }
+  } // add descendant nodes
 
-                    {
-                        var topLeftCenterX = nodeX - halfWidth + cornerRadius;
-                        var topLeftCenterY = nodeY - halfHeight + cornerRadius;
-                        arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, topLeftCenterX, topLeftCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
 
-                        if (arcIntersections.length > 0 && arcIntersections[0] <= topLeftCenterX && arcIntersections[1] <= topLeftCenterY) {
-                            return [arcIntersections[0], arcIntersections[1]];
-                        }
-                    } // Top Right
+  function addChildren(node) {
+    var children = node._private.children;
 
-                    {
-                        var topRightCenterX = nodeX + halfWidth - cornerRadius;
-                        var topRightCenterY = nodeY - halfHeight + cornerRadius;
-                        arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, topRightCenterX, topRightCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
+    for (var i = 0; i < children.length; i++) {
+      add(children[i]);
+    }
+  }
 
-                        if (arcIntersections.length > 0 && arcIntersections[0] >= topRightCenterX && arcIntersections[1] <= topRightCenterY) {
-                            return [arcIntersections[0], arcIntersections[1]];
-                        }
-                    } // Bottom Right
+  function add(ele) {
+    var alreadyAdded = elesToRemoveIds[ele.id()];
 
-                    {
-                        var bottomRightCenterX = nodeX + halfWidth - cornerRadius;
-                        var bottomRightCenterY = nodeY + halfHeight - cornerRadius;
-                        arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, bottomRightCenterX, bottomRightCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
+    if (removeFromPool && ele.removed() || alreadyAdded) {
+      return;
+    } else {
+      elesToRemoveIds[ele.id()] = true;
+    }
 
-                        if (arcIntersections.length > 0 && arcIntersections[0] >= bottomRightCenterX && arcIntersections[1] >= bottomRightCenterY) {
-                            return [arcIntersections[0], arcIntersections[1]];
-                        }
-                    } // Bottom Left
+    if (ele.isNode()) {
+      elesToRemove.push(ele); // nodes are removed last
 
-                    {
-                        var bottomLeftCenterX = nodeX - halfWidth + cornerRadius;
-                        var bottomLeftCenterY = nodeY + halfHeight - cornerRadius;
-                        arcIntersections = intersectLineCircle(x, y, nodeX, nodeY, bottomLeftCenterX, bottomLeftCenterY, cornerRadius + padding); // Ensure the intersection is on the desired quarter of the circle
+      addConnectedEdges(ele);
+      addChildren(ele);
+    } else {
+      elesToRemove.unshift(ele); // edges are removed first
+    }
+  } // make the list of elements to remove
+  // (may be removing more than specified due to connected edges etc)
 
-                        if (arcIntersections.length > 0 && arcIntersections[0] <= bottomLeftCenterX && arcIntersections[1] >= bottomLeftCenterY) {
-                            return [arcIntersections[0], arcIntersections[1]];
-                        }
-                    }
-                    return []; // if nothing
-                };
-                var inLineVicinity = function inLineVicinity(x, y, lx1, ly1, lx2, ly2, tolerance) {
-                    var t = tolerance;
-                    var x1 = Math.min(lx1, lx2);
-                    var x2 = Math.max(lx1, lx2);
-                    var y1 = Math.min(ly1, ly2);
-                    var y2 = Math.max(ly1, ly2);
-                    return x1 - t <= x && x <= x2 + t && y1 - t <= y && y <= y2 + t;
-                };
-                var inBezierVicinity = function inBezierVicinity(x, y, x1, y1, x2, y2, x3, y3, tolerance) {
-                    var bb = {
-                        x1: Math.min(x1, x3, x2) - tolerance,
-                        x2: Math.max(x1, x3, x2) + tolerance,
-                        y1: Math.min(y1, y3, y2) - tolerance,
-                        y2: Math.max(y1, y3, y2) + tolerance
-                    }; // if outside the rough bounding box for the bezier, then it can't be a hit
-
-                    if (x < bb.x1 || x > bb.x2 || y < bb.y1 || y > bb.y2) {
-                        // console.log('bezier out of rough bb')
-                        return false;
-                    } else {
-                        // console.log('do more expensive check');
-                        return true;
-                    }
-                };
-                var solveQuadratic = function solveQuadratic(a, b, c, val) {
-                    c -= val;
-                    var r = b * b - 4 * a * c;
 
-                    if (r < 0) {
-                        return [];
-                    }
+  for (var i = 0, l = self.length; i < l; i++) {
+    var ele = self[i];
+    add(ele);
+  }
 
-                    var sqrtR = Math.sqrt(r);
-                    var denom = 2 * a;
-                    var root1 = (-b + sqrtR) / denom;
-                    var root2 = (-b - sqrtR) / denom;
-                    return [root1, root2];
-                };
-                var solveCubic = function solveCubic(a, b, c, d, result) {
-                    // Solves a cubic function, returns root in form [r1, i1, r2, i2, r3, i3], where
-                    // r is the real component, i is the imaginary component
-                    // An implementation of the Cardano method from the year 1545
-                    // http://en.wikipedia.org/wiki/Cubic_function#The_nature_of_the_roots
-                    var epsilon = 0.00001; // avoid division by zero while keeping the overall expression close in value
-
-                    if (a === 0) {
-                        a = epsilon;
-                    }
+  function removeEdgeRef(node, edge) {
+    var connectedEdges = node._private.edges;
+    removeFromArray(connectedEdges, edge); // removing an edges invalidates the traversal cache for its nodes
 
-                    b /= a;
-                    c /= a;
-                    d /= a;
-                    var discriminant, q, r, dum1, s, t, term1, r13;
-                    q = (3.0 * c - b * b) / 9.0;
-                    r = -(27.0 * d) + b * (9.0 * c - 2.0 * (b * b));
-                    r /= 54.0;
-                    discriminant = q * q * q + r * r;
-                    result[1] = 0;
-                    term1 = b / 3.0;
-
-                    if (discriminant > 0) {
-                        s = r + Math.sqrt(discriminant);
-                        s = s < 0 ? -Math.pow(-s, 1.0 / 3.0) : Math.pow(s, 1.0 / 3.0);
-                        t = r - Math.sqrt(discriminant);
-                        t = t < 0 ? -Math.pow(-t, 1.0 / 3.0) : Math.pow(t, 1.0 / 3.0);
-                        result[0] = -term1 + s + t;
-                        term1 += (s + t) / 2.0;
-                        result[4] = result[2] = -term1;
-                        term1 = Math.sqrt(3.0) * (-t + s) / 2;
-                        result[3] = term1;
-                        result[5] = -term1;
-                        return;
-                    }
+    node.clearTraversalCache();
+  }
 
-                    result[5] = result[3] = 0;
+  function removeParallelRef(pllEdge) {
+    // removing an edge invalidates the traversal caches for the parallel edges
+    pllEdge.clearTraversalCache();
+  }
 
-                    if (discriminant === 0) {
-                        r13 = r < 0 ? -Math.pow(-r, 1.0 / 3.0) : Math.pow(r, 1.0 / 3.0);
-                        result[0] = -term1 + 2.0 * r13;
-                        result[4] = result[2] = -(r13 + term1);
-                        return;
-                    }
+  var alteredParents = [];
+  alteredParents.ids = {};
 
-                    q = -q;
-                    dum1 = q * q * q;
-                    dum1 = Math.acos(r / Math.sqrt(dum1));
-                    r13 = 2.0 * Math.sqrt(q);
-                    result[0] = -term1 + r13 * Math.cos(dum1 / 3.0);
-                    result[2] = -term1 + r13 * Math.cos((dum1 + 2.0 * Math.PI) / 3.0);
-                    result[4] = -term1 + r13 * Math.cos((dum1 + 4.0 * Math.PI) / 3.0);
-                    return;
-                };
-                var sqdistToQuadraticBezier = function sqdistToQuadraticBezier(x, y, x1, y1, x2, y2, x3, y3) {
-                    // Find minimum distance by using the minimum of the distance
-                    // function between the given point and the curve
-                    // This gives the coefficients of the resulting cubic equation
-                    // whose roots tell us where a possible minimum is
-                    // (Coefficients are divided by 4)
-                    var a = 1.0 * x1 * x1 - 4 * x1 * x2 + 2 * x1 * x3 + 4 * x2 * x2 - 4 * x2 * x3 + x3 * x3 + y1 * y1 - 4 * y1 * y2 + 2 * y1 * y3 + 4 * y2 * y2 - 4 * y2 * y3 + y3 * y3;
-                    var b = 1.0 * 9 * x1 * x2 - 3 * x1 * x1 - 3 * x1 * x3 - 6 * x2 * x2 + 3 * x2 * x3 + 9 * y1 * y2 - 3 * y1 * y1 - 3 * y1 * y3 - 6 * y2 * y2 + 3 * y2 * y3;
-                    var c = 1.0 * 3 * x1 * x1 - 6 * x1 * x2 + x1 * x3 - x1 * x + 2 * x2 * x2 + 2 * x2 * x - x3 * x + 3 * y1 * y1 - 6 * y1 * y2 + y1 * y3 - y1 * y + 2 * y2 * y2 + 2 * y2 * y - y3 * y;
-                    var d = 1.0 * x1 * x2 - x1 * x1 + x1 * x - x2 * x + y1 * y2 - y1 * y1 + y1 * y - y2 * y; // debug("coefficients: " + a / a + ", " + b / a + ", " + c / a + ", " + d / a);
-
-                    var roots = []; // Use the cubic solving algorithm
-
-                    solveCubic(a, b, c, d, roots);
-                    var zeroThreshold = 0.0000001;
-                    var params = [];
-
-                    for (var index = 0; index < 6; index += 2) {
-                        if (Math.abs(roots[index + 1]) < zeroThreshold && roots[index] >= 0 && roots[index] <= 1.0) {
-                            params.push(roots[index]);
-                        }
-                    }
+  function removeChildRef(parent, ele) {
+    ele = ele[0];
+    parent = parent[0];
+    var children = parent._private.children;
+    var pid = parent.id();
+    removeFromArray(children, ele); // remove parent => child ref
 
-                    params.push(1.0);
-                    params.push(0.0);
-                    var minDistanceSquared = -1;
-                    var curX, curY, distSquared;
+    ele._private.parent = null; // remove child => parent ref
 
-                    for (var i = 0; i < params.length; i++) {
-                        curX = Math.pow(1.0 - params[i], 2.0) * x1 + 2.0 * (1 - params[i]) * params[i] * x2 + params[i] * params[i] * x3;
-                        curY = Math.pow(1 - params[i], 2.0) * y1 + 2 * (1.0 - params[i]) * params[i] * y2 + params[i] * params[i] * y3;
-                        distSquared = Math.pow(curX - x, 2) + Math.pow(curY - y, 2); // debug('distance for param ' + params[i] + ": " + Math.sqrt(distSquared));
+    if (!alteredParents.ids[pid]) {
+      alteredParents.ids[pid] = true;
+      alteredParents.push(parent);
+    }
+  }
 
-                        if (minDistanceSquared >= 0) {
-                            if (distSquared < minDistanceSquared) {
-                                minDistanceSquared = distSquared;
-                            }
-                        } else {
-                            minDistanceSquared = distSquared;
-                        }
-                    }
+  self.dirtyCompoundBoundsCache();
 
-                    return minDistanceSquared;
-                };
-                var sqdistToFiniteLine = function sqdistToFiniteLine(x, y, x1, y1, x2, y2) {
-                    var offset = [x - x1, y - y1];
-                    var line = [x2 - x1, y2 - y1];
-                    var lineSq = line[0] * line[0] + line[1] * line[1];
-                    var hypSq = offset[0] * offset[0] + offset[1] * offset[1];
-                    var dotProduct = offset[0] * line[0] + offset[1] * line[1];
-                    var adjSq = dotProduct * dotProduct / lineSq;
-
-                    if (dotProduct < 0) {
-                        return hypSq;
-                    }
+  if (removeFromPool) {
+    cy.removeFromPool(elesToRemove); // remove from core pool
+  }
 
-                    if (adjSq > lineSq) {
-                        return (x - x2) * (x - x2) + (y - y2) * (y - y2);
-                    }
+  for (var _i6 = 0; _i6 < elesToRemove.length; _i6++) {
+    var _ele4 = elesToRemove[_i6];
 
-                    return hypSq - adjSq;
-                };
-                var pointInsidePolygonPoints = function pointInsidePolygonPoints(x, y, points) {
-                    var x1, y1, x2, y2;
-                    var y3; // Intersect with vertical line through (x, y)
-
-                    var up = 0; // let down = 0;
-
-                    for (var i = 0; i < points.length / 2; i++) {
-                        x1 = points[i * 2];
-                        y1 = points[i * 2 + 1];
-
-                        if (i + 1 < points.length / 2) {
-                            x2 = points[(i + 1) * 2];
-                            y2 = points[(i + 1) * 2 + 1];
-                        } else {
-                            x2 = points[(i + 1 - points.length / 2) * 2];
-                            y2 = points[(i + 1 - points.length / 2) * 2 + 1];
-                        }
+    if (_ele4.isEdge()) {
+      // remove references to this edge in its connected nodes
+      var src = _ele4.source()[0];
 
-                        if (x1 == x && x2 == x) ; else if (x1 >= x && x >= x2 || x1 <= x && x <= x2) {
-                            y3 = (x - x1) / (x2 - x1) * (y2 - y1) + y1;
+      var tgt = _ele4.target()[0];
 
-                            if (y3 > y) {
-                                up++;
-                            } // if( y3 < y ){
-                            // down++;
-                            // }
+      removeEdgeRef(src, _ele4);
+      removeEdgeRef(tgt, _ele4);
 
-                        } else {
-                            continue;
-                        }
-                    }
+      var pllEdges = _ele4.parallelEdges();
 
-                    if (up % 2 === 0) {
-                        return false;
-                    } else {
-                        return true;
-                    }
-                };
-                var pointInsidePolygon = function pointInsidePolygon(x, y, basePoints, centerX, centerY, width, height, direction, padding) {
-                    var transformedPoints = new Array(basePoints.length); // Gives negative angle
+      for (var j = 0; j < pllEdges.length; j++) {
+        var pllEdge = pllEdges[j];
+        removeParallelRef(pllEdge);
 
-                    var angle;
+        if (pllEdge.isBundledBezier()) {
+          pllEdge.dirtyBoundingBoxCache();
+        }
+      }
+    } else {
+      // remove reference to parent
+      var parent = _ele4.parent();
+
+      if (parent.length !== 0) {
+        removeChildRef(parent, _ele4);
+      }
+    }
 
-                    if (direction[0] != null) {
-                        angle = Math.atan(direction[1] / direction[0]);
+    if (removeFromPool) {
+      // mark as removed
+      _ele4._private.removed = true;
+    }
+  } // check to see if we have a compound graph or not
 
-                        if (direction[0] < 0) {
-                            angle = angle + Math.PI / 2;
-                        } else {
-                            angle = -angle - Math.PI / 2;
-                        }
-                    } else {
-                        angle = direction;
-                    }
 
-                    var cos = Math.cos(-angle);
-                    var sin = Math.sin(-angle); //    console.log("base: " + basePoints);
+  var elesStillInside = cy._private.elements;
+  cy._private.hasCompoundNodes = false;
 
-                    for (var i = 0; i < transformedPoints.length / 2; i++) {
-                        transformedPoints[i * 2] = width / 2 * (basePoints[i * 2] * cos - basePoints[i * 2 + 1] * sin);
-                        transformedPoints[i * 2 + 1] = height / 2 * (basePoints[i * 2 + 1] * cos + basePoints[i * 2] * sin);
-                        transformedPoints[i * 2] += centerX;
-                        transformedPoints[i * 2 + 1] += centerY;
-                    }
+  for (var _i7 = 0; _i7 < elesStillInside.length; _i7++) {
+    var _ele5 = elesStillInside[_i7];
 
-                    var points;
+    if (_ele5.isParent()) {
+      cy._private.hasCompoundNodes = true;
+      break;
+    }
+  }
 
-                    if (padding > 0) {
-                        var expandedLineSet = expandPolygon(transformedPoints, -padding);
-                        points = joinLines(expandedLineSet);
-                    } else {
-                        points = transformedPoints;
-                    }
+  var removedElements = new Collection(this.cy(), elesToRemove);
 
-                    return pointInsidePolygonPoints(x, y, points);
-                };
-                var pointInsideRoundPolygon = function pointInsideRoundPolygon(x, y, basePoints, centerX, centerY, width, height) {
-                    var cutPolygonPoints = new Array(basePoints.length);
-                    var halfW = width / 2;
-                    var halfH = height / 2;
-                    var cornerRadius = getRoundPolygonRadius(width, height);
-                    var squaredCornerRadius = cornerRadius * cornerRadius;
-
-                    for (var i = 0; i < basePoints.length / 4; i++) {
-                        var sourceUv = void 0,
-                            destUv = void 0;
-
-                        if (i === 0) {
-                            sourceUv = basePoints.length - 2;
-                        } else {
-                            sourceUv = i * 4 - 2;
-                        }
+  if (removedElements.size() > 0) {
+    // must manually notify since trigger won't do this automatically once removed
+    if (notifyRenderer) {
+      removedElements.emitAndNotify('remove');
+    } else if (removeFromPool) {
+      removedElements.emit('remove');
+    }
+  } // the parents who were modified by the removal need their style updated
 
-                        destUv = i * 4 + 2;
-                        var px = centerX + halfW * basePoints[i * 4];
-                        var py = centerY + halfH * basePoints[i * 4 + 1];
-                        var cosTheta = -basePoints[sourceUv] * basePoints[destUv] - basePoints[sourceUv + 1] * basePoints[destUv + 1];
-                        var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
-                        var cp0x = px - offset * basePoints[sourceUv];
-                        var cp0y = py - offset * basePoints[sourceUv + 1];
-                        var cp1x = px + offset * basePoints[destUv];
-                        var cp1y = py + offset * basePoints[destUv + 1];
-                        cutPolygonPoints[i * 4] = cp0x;
-                        cutPolygonPoints[i * 4 + 1] = cp0y;
-                        cutPolygonPoints[i * 4 + 2] = cp1x;
-                        cutPolygonPoints[i * 4 + 3] = cp1y;
-                        var orthx = basePoints[sourceUv + 1];
-                        var orthy = -basePoints[sourceUv];
-                        var cosAlpha = orthx * basePoints[destUv] + orthy * basePoints[destUv + 1];
-
-                        if (cosAlpha < 0) {
-                            orthx *= -1;
-                            orthy *= -1;
-                        }
 
-                        var cx = cp0x + orthx * cornerRadius;
-                        var cy = cp0y + orthy * cornerRadius;
-                        var squaredDistance = Math.pow(cx - x, 2) + Math.pow(cy - y, 2);
+  for (var _i8 = 0; _i8 < alteredParents.length; _i8++) {
+    var _ele6 = alteredParents[_i8];
 
-                        if (squaredDistance <= squaredCornerRadius) {
-                            return true;
-                        }
-                    }
+    if (!removeFromPool || !_ele6.removed()) {
+      _ele6.updateStyle();
+    }
+  }
 
-                    return pointInsidePolygonPoints(x, y, cutPolygonPoints);
-                };
-                var joinLines = function joinLines(lineSet) {
-                    var vertices = new Array(lineSet.length / 2);
-                    var currentLineStartX, currentLineStartY, currentLineEndX, currentLineEndY;
-                    var nextLineStartX, nextLineStartY, nextLineEndX, nextLineEndY;
-
-                    for (var i = 0; i < lineSet.length / 4; i++) {
-                        currentLineStartX = lineSet[i * 4];
-                        currentLineStartY = lineSet[i * 4 + 1];
-                        currentLineEndX = lineSet[i * 4 + 2];
-                        currentLineEndY = lineSet[i * 4 + 3];
-
-                        if (i < lineSet.length / 4 - 1) {
-                            nextLineStartX = lineSet[(i + 1) * 4];
-                            nextLineStartY = lineSet[(i + 1) * 4 + 1];
-                            nextLineEndX = lineSet[(i + 1) * 4 + 2];
-                            nextLineEndY = lineSet[(i + 1) * 4 + 3];
-                        } else {
-                            nextLineStartX = lineSet[0];
-                            nextLineStartY = lineSet[1];
-                            nextLineEndX = lineSet[2];
-                            nextLineEndY = lineSet[3];
-                        }
+  return removedElements;
+};
 
-                        var intersection = finiteLinesIntersect(currentLineStartX, currentLineStartY, currentLineEndX, currentLineEndY, nextLineStartX, nextLineStartY, nextLineEndX, nextLineEndY, true);
-                        vertices[i * 2] = intersection[0];
-                        vertices[i * 2 + 1] = intersection[1];
-                    }
+elesfn$u.move = function (struct) {
+  var cy = this._private.cy;
+  var eles = this; // just clean up refs, caches, etc. in the same way as when removing and then restoring
+  // (our calls to remove/restore do not remove from the graph or make events)
 
-                    return vertices;
-                };
-                var expandPolygon = function expandPolygon(points, pad) {
-                    var expandedLineSet = new Array(points.length * 2);
-                    var currentPointX, currentPointY, nextPointX, nextPointY;
-
-                    for (var i = 0; i < points.length / 2; i++) {
-                        currentPointX = points[i * 2];
-                        currentPointY = points[i * 2 + 1];
-
-                        if (i < points.length / 2 - 1) {
-                            nextPointX = points[(i + 1) * 2];
-                            nextPointY = points[(i + 1) * 2 + 1];
-                        } else {
-                            nextPointX = points[0];
-                            nextPointY = points[1];
-                        } // Current line: [currentPointX, currentPointY] to [nextPointX, nextPointY]
-                        // Assume CCW polygon winding
-
-
-                        var offsetX = nextPointY - currentPointY;
-                        var offsetY = -(nextPointX - currentPointX); // Normalize
-
-                        var offsetLength = Math.sqrt(offsetX * offsetX + offsetY * offsetY);
-                        var normalizedOffsetX = offsetX / offsetLength;
-                        var normalizedOffsetY = offsetY / offsetLength;
-                        expandedLineSet[i * 4] = currentPointX + normalizedOffsetX * pad;
-                        expandedLineSet[i * 4 + 1] = currentPointY + normalizedOffsetY * pad;
-                        expandedLineSet[i * 4 + 2] = nextPointX + normalizedOffsetX * pad;
-                        expandedLineSet[i * 4 + 3] = nextPointY + normalizedOffsetY * pad;
-                    }
+  var notifyRenderer = false;
+  var modifyPool = false;
 
-                    return expandedLineSet;
-                };
-                var intersectLineEllipse = function intersectLineEllipse(x, y, centerX, centerY, ellipseWradius, ellipseHradius) {
-                    var dispX = centerX - x;
-                    var dispY = centerY - y;
-                    dispX /= ellipseWradius;
-                    dispY /= ellipseHradius;
-                    var len = Math.sqrt(dispX * dispX + dispY * dispY);
-                    var newLength = len - 1;
-
-                    if (newLength < 0) {
-                        return [];
-                    }
+  var toString = function toString(id) {
+    return id == null ? id : '' + id;
+  }; // id must be string
 
-                    var lenProportion = newLength / len;
-                    return [(centerX - x) * lenProportion + x, (centerY - y) * lenProportion + y];
-                };
-                var checkInEllipse = function checkInEllipse(x, y, width, height, centerX, centerY, padding) {
-                    x -= centerX;
-                    y -= centerY;
-                    x /= width / 2 + padding;
-                    y /= height / 2 + padding;
-                    return x * x + y * y <= 1;
-                }; // Returns intersections of increasing distance from line's start point
-
-                var intersectLineCircle = function intersectLineCircle(x1, y1, x2, y2, centerX, centerY, radius) {
-                    // Calculate d, direction vector of line
-                    var d = [x2 - x1, y2 - y1]; // Direction vector of line
-
-                    var f = [x1 - centerX, y1 - centerY];
-                    var a = d[0] * d[0] + d[1] * d[1];
-                    var b = 2 * (f[0] * d[0] + f[1] * d[1]);
-                    var c = f[0] * f[0] + f[1] * f[1] - radius * radius;
-                    var discriminant = b * b - 4 * a * c;
-
-                    if (discriminant < 0) {
-                        return [];
-                    }
 
-                    var t1 = (-b + Math.sqrt(discriminant)) / (2 * a);
-                    var t2 = (-b - Math.sqrt(discriminant)) / (2 * a);
-                    var tMin = Math.min(t1, t2);
-                    var tMax = Math.max(t1, t2);
-                    var inRangeParams = [];
+  if (struct.source !== undefined || struct.target !== undefined) {
+    var srcId = toString(struct.source);
+    var tgtId = toString(struct.target);
+    var srcExists = srcId != null && cy.hasElementWithId(srcId);
+    var tgtExists = tgtId != null && cy.hasElementWithId(tgtId);
 
-                    if (tMin >= 0 && tMin <= 1) {
-                        inRangeParams.push(tMin);
-                    }
+    if (srcExists || tgtExists) {
+      cy.batch(function () {
+        // avoid duplicate style updates
+        eles.remove(notifyRenderer, modifyPool); // clean up refs etc.
 
-                    if (tMax >= 0 && tMax <= 1) {
-                        inRangeParams.push(tMax);
-                    }
+        eles.emitAndNotify('moveout');
 
-                    if (inRangeParams.length === 0) {
-                        return [];
-                    }
+        for (var i = 0; i < eles.length; i++) {
+          var ele = eles[i];
+          var _data5 = ele._private.data;
 
-                    var nearIntersectionX = inRangeParams[0] * d[0] + x1;
-                    var nearIntersectionY = inRangeParams[0] * d[1] + y1;
+          if (ele.isEdge()) {
+            if (srcExists) {
+              _data5.source = srcId;
+            }
 
-                    if (inRangeParams.length > 1) {
-                        if (inRangeParams[0] == inRangeParams[1]) {
-                            return [nearIntersectionX, nearIntersectionY];
-                        } else {
-                            var farIntersectionX = inRangeParams[1] * d[0] + x1;
-                            var farIntersectionY = inRangeParams[1] * d[1] + y1;
-                            return [nearIntersectionX, nearIntersectionY, farIntersectionX, farIntersectionY];
-                        }
-                    } else {
-                        return [nearIntersectionX, nearIntersectionY];
-                    }
-                };
-                var midOfThree = function midOfThree(a, b, c) {
-                    if (b <= a && a <= c || c <= a && a <= b) {
-                        return a;
-                    } else if (a <= b && b <= c || c <= b && b <= a) {
-                        return b;
-                    } else {
-                        return c;
-                    }
-                }; // (x1,y1)=>(x2,y2) intersect with (x3,y3)=>(x4,y4)
-
-                var finiteLinesIntersect = function finiteLinesIntersect(x1, y1, x2, y2, x3, y3, x4, y4, infiniteLines) {
-                    var dx13 = x1 - x3;
-                    var dx21 = x2 - x1;
-                    var dx43 = x4 - x3;
-                    var dy13 = y1 - y3;
-                    var dy21 = y2 - y1;
-                    var dy43 = y4 - y3;
-                    var ua_t = dx43 * dy13 - dy43 * dx13;
-                    var ub_t = dx21 * dy13 - dy21 * dx13;
-                    var u_b = dy43 * dx21 - dx43 * dy21;
-
-                    if (u_b !== 0) {
-                        var ua = ua_t / u_b;
-                        var ub = ub_t / u_b;
-                        var flptThreshold = 0.001;
-
-                        var _min = 0 - flptThreshold;
-
-                        var _max = 1 + flptThreshold;
-
-                        if (_min <= ua && ua <= _max && _min <= ub && ub <= _max) {
-                            return [x1 + ua * dx21, y1 + ua * dy21];
-                        } else {
-                            if (!infiniteLines) {
-                                return [];
-                            } else {
-                                return [x1 + ua * dx21, y1 + ua * dy21];
-                            }
-                        }
-                    } else {
-                        if (ua_t === 0 || ub_t === 0) {
-                            // Parallel, coincident lines. Check if overlap
-                            // Check endpoint of second line
-                            if (midOfThree(x1, x2, x4) === x4) {
-                                return [x4, y4];
-                            } // Check start point of second line
+            if (tgtExists) {
+              _data5.target = tgtId;
+            }
+          }
+        }
 
+        eles.restore(notifyRenderer, modifyPool); // make new refs, style, etc.
+      });
+      eles.emitAndNotify('move');
+    }
+  } else if (struct.parent !== undefined) {
+    // move node to new parent
+    var parentId = toString(struct.parent);
+    var parentExists = parentId === null || cy.hasElementWithId(parentId);
+
+    if (parentExists) {
+      var pidToAssign = parentId === null ? undefined : parentId;
+      cy.batch(function () {
+        // avoid duplicate style updates
+        var updated = eles.remove(notifyRenderer, modifyPool); // clean up refs etc.
+
+        updated.emitAndNotify('moveout');
+
+        for (var i = 0; i < eles.length; i++) {
+          var ele = eles[i];
+          var _data6 = ele._private.data;
+
+          if (ele.isNode()) {
+            _data6.parent = pidToAssign;
+          }
+        }
 
-                            if (midOfThree(x1, x2, x3) === x3) {
-                                return [x3, y3];
-                            } // Endpoint of first line
+        updated.restore(notifyRenderer, modifyPool); // make new refs, style, etc.
+      });
+      eles.emitAndNotify('move');
+    }
+  }
 
+  return this;
+};
 
-                            if (midOfThree(x3, x4, x2) === x2) {
-                                return [x2, y2];
-                            }
+[elesfn$c, elesfn$d, elesfn$e, elesfn$f, elesfn$g, data$1, elesfn$i, dimensions, elesfn$m, elesfn$n, elesfn$o, elesfn$p, elesfn$q, elesfn$r, elesfn$s, elesfn$t].forEach(function (props) {
+  extend(elesfn$u, props);
+});
 
-                            return [];
-                        } else {
-                            // Parallel, non-coincident
-                            return [];
-                        }
-                    }
-                }; // math.polygonIntersectLine( x, y, basePoints, centerX, centerY, width, height, padding )
-// intersect a node polygon (pts transformed)
-//
-// math.polygonIntersectLine( x, y, basePoints, centerX, centerY )
-// intersect the points (no transform)
+var corefn = {
+  add: function add(opts) {
+    var elements;
+    var cy = this; // add the elements
 
-                var polygonIntersectLine = function polygonIntersectLine(x, y, basePoints, centerX, centerY, width, height, padding) {
-                    var intersections = [];
-                    var intersection;
-                    var transformedPoints = new Array(basePoints.length);
-                    var doTransform = true;
+    if (elementOrCollection(opts)) {
+      var eles = opts;
 
-                    if (width == null) {
-                        doTransform = false;
-                    }
+      if (eles._private.cy === cy) {
+        // same instance => just restore
+        elements = eles.restore();
+      } else {
+        // otherwise, copy from json
+        var jsons = [];
 
-                    var points;
+        for (var i = 0; i < eles.length; i++) {
+          var ele = eles[i];
+          jsons.push(ele.json());
+        }
 
-                    if (doTransform) {
-                        for (var i = 0; i < transformedPoints.length / 2; i++) {
-                            transformedPoints[i * 2] = basePoints[i * 2] * width + centerX;
-                            transformedPoints[i * 2 + 1] = basePoints[i * 2 + 1] * height + centerY;
-                        }
+        elements = new Collection(cy, jsons);
+      }
+    } // specify an array of options
+    else if (array(opts)) {
+        var _jsons = opts;
+        elements = new Collection(cy, _jsons);
+      } // specify via opts.nodes and opts.edges
+      else if (plainObject(opts) && (array(opts.nodes) || array(opts.edges))) {
+          var elesByGroup = opts;
+          var _jsons2 = [];
+          var grs = ['nodes', 'edges'];
+
+          for (var _i = 0, il = grs.length; _i < il; _i++) {
+            var group = grs[_i];
+            var elesArray = elesByGroup[group];
+
+            if (array(elesArray)) {
+              for (var j = 0, jl = elesArray.length; j < jl; j++) {
+                var json = extend({
+                  group: group
+                }, elesArray[j]);
+
+                _jsons2.push(json);
+              }
+            }
+          }
+
+          elements = new Collection(cy, _jsons2);
+        } // specify options for one element
+        else {
+            var _json = opts;
+            elements = new Element(cy, _json).collection();
+          }
+
+    return elements;
+  },
+  remove: function remove(collection) {
+    if (elementOrCollection(collection)) ; else if (string(collection)) {
+      var selector = collection;
+      collection = this.$(selector);
+    }
 
-                        if (padding > 0) {
-                            var expandedLineSet = expandPolygon(transformedPoints, -padding);
-                            points = joinLines(expandedLineSet);
-                        } else {
-                            points = transformedPoints;
-                        }
-                    } else {
-                        points = basePoints;
-                    }
+    return collection.remove();
+  }
+};
+
+/* global Float32Array */
+
+/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */
+function generateCubicBezier(mX1, mY1, mX2, mY2) {
+  var NEWTON_ITERATIONS = 4,
+      NEWTON_MIN_SLOPE = 0.001,
+      SUBDIVISION_PRECISION = 0.0000001,
+      SUBDIVISION_MAX_ITERATIONS = 10,
+      kSplineTableSize = 11,
+      kSampleStepSize = 1.0 / (kSplineTableSize - 1.0),
+      float32ArraySupported = typeof Float32Array !== 'undefined';
+  /* Must contain four arguments. */
+
+  if (arguments.length !== 4) {
+    return false;
+  }
+  /* Arguments must be numbers. */
 
-                    var currentX, currentY, nextX, nextY;
 
-                    for (var _i2 = 0; _i2 < points.length / 2; _i2++) {
-                        currentX = points[_i2 * 2];
-                        currentY = points[_i2 * 2 + 1];
+  for (var i = 0; i < 4; ++i) {
+    if (typeof arguments[i] !== "number" || isNaN(arguments[i]) || !isFinite(arguments[i])) {
+      return false;
+    }
+  }
+  /* X values must be in the [0, 1] range. */
 
-                        if (_i2 < points.length / 2 - 1) {
-                            nextX = points[(_i2 + 1) * 2];
-                            nextY = points[(_i2 + 1) * 2 + 1];
-                        } else {
-                            nextX = points[0];
-                            nextY = points[1];
-                        }
 
-                        intersection = finiteLinesIntersect(x, y, centerX, centerY, currentX, currentY, nextX, nextY);
+  mX1 = Math.min(mX1, 1);
+  mX2 = Math.min(mX2, 1);
+  mX1 = Math.max(mX1, 0);
+  mX2 = Math.max(mX2, 0);
+  var mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
 
-                        if (intersection.length !== 0) {
-                            intersections.push(intersection[0], intersection[1]);
-                        }
-                    }
+  function A(aA1, aA2) {
+    return 1.0 - 3.0 * aA2 + 3.0 * aA1;
+  }
 
-                    return intersections;
-                };
-                var roundPolygonIntersectLine = function roundPolygonIntersectLine(x, y, basePoints, centerX, centerY, width, height, padding) {
-                    var intersections = [];
-                    var intersection;
-                    var lines = new Array(basePoints.length);
-                    var halfW = width / 2;
-                    var halfH = height / 2;
-                    var cornerRadius = getRoundPolygonRadius(width, height);
-
-                    for (var i = 0; i < basePoints.length / 4; i++) {
-                        var sourceUv = void 0,
-                            destUv = void 0;
-
-                        if (i === 0) {
-                            sourceUv = basePoints.length - 2;
-                        } else {
-                            sourceUv = i * 4 - 2;
-                        }
+  function B(aA1, aA2) {
+    return 3.0 * aA2 - 6.0 * aA1;
+  }
 
-                        destUv = i * 4 + 2;
-                        var px = centerX + halfW * basePoints[i * 4];
-                        var py = centerY + halfH * basePoints[i * 4 + 1];
-                        var cosTheta = -basePoints[sourceUv] * basePoints[destUv] - basePoints[sourceUv + 1] * basePoints[destUv + 1];
-                        var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
-                        var cp0x = px - offset * basePoints[sourceUv];
-                        var cp0y = py - offset * basePoints[sourceUv + 1];
-                        var cp1x = px + offset * basePoints[destUv];
-                        var cp1y = py + offset * basePoints[destUv + 1];
-
-                        if (i === 0) {
-                            lines[basePoints.length - 2] = cp0x;
-                            lines[basePoints.length - 1] = cp0y;
-                        } else {
-                            lines[i * 4 - 2] = cp0x;
-                            lines[i * 4 - 1] = cp0y;
-                        }
+  function C(aA1) {
+    return 3.0 * aA1;
+  }
 
-                        lines[i * 4] = cp1x;
-                        lines[i * 4 + 1] = cp1y;
-                        var orthx = basePoints[sourceUv + 1];
-                        var orthy = -basePoints[sourceUv];
-                        var cosAlpha = orthx * basePoints[destUv] + orthy * basePoints[destUv + 1];
+  function calcBezier(aT, aA1, aA2) {
+    return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
+  }
 
-                        if (cosAlpha < 0) {
-                            orthx *= -1;
-                            orthy *= -1;
-                        }
+  function getSlope(aT, aA1, aA2) {
+    return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);
+  }
 
-                        var cx = cp0x + orthx * cornerRadius;
-                        var cy = cp0y + orthy * cornerRadius;
-                        intersection = intersectLineCircle(x, y, centerX, centerY, cx, cy, cornerRadius);
+  function newtonRaphsonIterate(aX, aGuessT) {
+    for (var _i = 0; _i < NEWTON_ITERATIONS; ++_i) {
+      var currentSlope = getSlope(aGuessT, mX1, mX2);
 
-                        if (intersection.length !== 0) {
-                            intersections.push(intersection[0], intersection[1]);
-                        }
-                    }
+      if (currentSlope === 0.0) {
+        return aGuessT;
+      }
 
-                    for (var _i3 = 0; _i3 < lines.length / 4; _i3++) {
-                        intersection = finiteLinesIntersect(x, y, centerX, centerY, lines[_i3 * 4], lines[_i3 * 4 + 1], lines[_i3 * 4 + 2], lines[_i3 * 4 + 3], false);
+      var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
+      aGuessT -= currentX / currentSlope;
+    }
 
-                        if (intersection.length !== 0) {
-                            intersections.push(intersection[0], intersection[1]);
-                        }
-                    }
+    return aGuessT;
+  }
 
-                    if (intersections.length > 2) {
-                        var lowestIntersection = [intersections[0], intersections[1]];
-                        var lowestSquaredDistance = Math.pow(lowestIntersection[0] - x, 2) + Math.pow(lowestIntersection[1] - y, 2);
+  function calcSampleValues() {
+    for (var _i2 = 0; _i2 < kSplineTableSize; ++_i2) {
+      mSampleValues[_i2] = calcBezier(_i2 * kSampleStepSize, mX1, mX2);
+    }
+  }
 
-                        for (var _i4 = 1; _i4 < intersections.length / 2; _i4++) {
-                            var squaredDistance = Math.pow(intersections[_i4 * 2] - x, 2) + Math.pow(intersections[_i4 * 2 + 1] - y, 2);
+  function binarySubdivide(aX, aA, aB) {
+    var currentX,
+        currentT,
+        i = 0;
 
-                            if (squaredDistance <= lowestSquaredDistance) {
-                                lowestIntersection[0] = intersections[_i4 * 2];
-                                lowestIntersection[1] = intersections[_i4 * 2 + 1];
-                                lowestSquaredDistance = squaredDistance;
-                            }
-                        }
+    do {
+      currentT = aA + (aB - aA) / 2.0;
+      currentX = calcBezier(currentT, mX1, mX2) - aX;
 
-                        return lowestIntersection;
-                    }
+      if (currentX > 0.0) {
+        aB = currentT;
+      } else {
+        aA = currentT;
+      }
+    } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
 
-                    return intersections;
-                };
-                var shortenIntersection = function shortenIntersection(intersection, offset, amount) {
-                    var disp = [intersection[0] - offset[0], intersection[1] - offset[1]];
-                    var length = Math.sqrt(disp[0] * disp[0] + disp[1] * disp[1]);
-                    var lenRatio = (length - amount) / length;
+    return currentT;
+  }
 
-                    if (lenRatio < 0) {
-                        lenRatio = 0.00001;
-                    }
+  function getTForX(aX) {
+    var intervalStart = 0.0,
+        currentSample = 1,
+        lastSample = kSplineTableSize - 1;
 
-                    return [offset[0] + lenRatio * disp[0], offset[1] + lenRatio * disp[1]];
-                };
-                var generateUnitNgonPointsFitToSquare = function generateUnitNgonPointsFitToSquare(sides, rotationRadians) {
-                    var points = generateUnitNgonPoints(sides, rotationRadians);
-                    points = fitPolygonToSquare(points);
-                    return points;
-                };
-                var fitPolygonToSquare = function fitPolygonToSquare(points) {
-                    var x, y;
-                    var sides = points.length / 2;
-                    var minX = Infinity,
-                        minY = Infinity,
-                        maxX = -Infinity,
-                        maxY = -Infinity;
-
-                    for (var i = 0; i < sides; i++) {
-                        x = points[2 * i];
-                        y = points[2 * i + 1];
-                        minX = Math.min(minX, x);
-                        maxX = Math.max(maxX, x);
-                        minY = Math.min(minY, y);
-                        maxY = Math.max(maxY, y);
-                    } // stretch factors
-
-
-                    var sx = 2 / (maxX - minX);
-                    var sy = 2 / (maxY - minY);
-
-                    for (var _i5 = 0; _i5 < sides; _i5++) {
-                        x = points[2 * _i5] = points[2 * _i5] * sx;
-                        y = points[2 * _i5 + 1] = points[2 * _i5 + 1] * sy;
-                        minX = Math.min(minX, x);
-                        maxX = Math.max(maxX, x);
-                        minY = Math.min(minY, y);
-                        maxY = Math.max(maxY, y);
-                    }
+    for (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {
+      intervalStart += kSampleStepSize;
+    }
 
-                    if (minY < -1) {
-                        for (var _i6 = 0; _i6 < sides; _i6++) {
-                            y = points[2 * _i6 + 1] = points[2 * _i6 + 1] + (-1 - minY);
-                        }
-                    }
+    --currentSample;
+    var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]),
+        guessForT = intervalStart + dist * kSampleStepSize,
+        initialSlope = getSlope(guessForT, mX1, mX2);
+
+    if (initialSlope >= NEWTON_MIN_SLOPE) {
+      return newtonRaphsonIterate(aX, guessForT);
+    } else if (initialSlope === 0.0) {
+      return guessForT;
+    } else {
+      return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
+    }
+  }
 
-                    return points;
-                };
-                var generateUnitNgonPoints = function generateUnitNgonPoints(sides, rotationRadians) {
-                    var increment = 1.0 / sides * 2 * Math.PI;
-                    var startAngle = sides % 2 === 0 ? Math.PI / 2.0 + increment / 2.0 : Math.PI / 2.0;
-                    startAngle += rotationRadians;
-                    var points = new Array(sides * 2);
-                    var currentAngle;
-
-                    for (var i = 0; i < sides; i++) {
-                        currentAngle = i * increment + startAngle;
-                        points[2 * i] = Math.cos(currentAngle); // x
-
-                        points[2 * i + 1] = Math.sin(-currentAngle); // y
-                    }
+  var _precomputed = false;
 
-                    return points;
-                }; // Set the default radius, unless half of width or height is smaller than default
+  function precompute() {
+    _precomputed = true;
 
-                var getRoundRectangleRadius = function getRoundRectangleRadius(width, height) {
-                    return Math.min(width / 4, height / 4, 8);
-                }; // Set the default radius
+    if (mX1 !== mY1 || mX2 !== mY2) {
+      calcSampleValues();
+    }
+  }
 
-                var getRoundPolygonRadius = function getRoundPolygonRadius(width, height) {
-                    return Math.min(width / 10, height / 10, 8);
-                };
-                var getCutRectangleCornerLength = function getCutRectangleCornerLength() {
-                    return 8;
-                };
-                var bezierPtsToQuadCoeff = function bezierPtsToQuadCoeff(p0, p1, p2) {
-                    return [p0 - 2 * p1 + p2, 2 * (p1 - p0), p0];
-                }; // get curve width, height, and control point position offsets as a percentage of node height / width
-
-                var getBarrelCurveConstants = function getBarrelCurveConstants(width, height) {
-                    return {
-                        heightOffset: Math.min(15, 0.05 * height),
-                        widthOffset: Math.min(100, 0.25 * width),
-                        ctrlPtOffsetPct: 0.05
-                    };
-                };
+  var f = function f(aX) {
+    if (!_precomputed) {
+      precompute();
+    }
 
-                var pageRankDefaults = defaults({
-                    dampingFactor: 0.8,
-                    precision: 0.000001,
-                    iterations: 200,
-                    weight: function weight(edge) {
-                        return 1;
-                    }
-                });
-                var elesfn$7 = {
-                    pageRank: function pageRank(options) {
-                        var _pageRankDefaults = pageRankDefaults(options),
-                            dampingFactor = _pageRankDefaults.dampingFactor,
-                            precision = _pageRankDefaults.precision,
-                            iterations = _pageRankDefaults.iterations,
-                            weight = _pageRankDefaults.weight;
-
-                        var cy = this._private.cy;
-
-                        var _this$byGroup = this.byGroup(),
-                            nodes = _this$byGroup.nodes,
-                            edges = _this$byGroup.edges;
-
-                        var numNodes = nodes.length;
-                        var numNodesSqd = numNodes * numNodes;
-                        var numEdges = edges.length; // Construct transposed adjacency matrix
-                        // First lets have a zeroed matrix of the right size
-                        // We'll also keep track of the sum of each column
-
-                        var matrix = new Array(numNodesSqd);
-                        var columnSum = new Array(numNodes);
-                        var additionalProb = (1 - dampingFactor) / numNodes; // Create null matrix
-
-                        for (var i = 0; i < numNodes; i++) {
-                            for (var j = 0; j < numNodes; j++) {
-                                var n = i * numNodes + j;
-                                matrix[n] = 0;
-                            }
+    if (mX1 === mY1 && mX2 === mY2) {
+      return aX;
+    }
 
-                            columnSum[i] = 0;
-                        } // Now, process edges
+    if (aX === 0) {
+      return 0;
+    }
 
+    if (aX === 1) {
+      return 1;
+    }
 
-                        for (var _i = 0; _i < numEdges; _i++) {
-                            var edge = edges[_i];
-                            var srcId = edge.data('source');
-                            var tgtId = edge.data('target'); // Don't include loops in the matrix
+    return calcBezier(getTForX(aX), mY1, mY2);
+  };
 
-                            if (srcId === tgtId) {
-                                continue;
-                            }
+  f.getControlPoints = function () {
+    return [{
+      x: mX1,
+      y: mY1
+    }, {
+      x: mX2,
+      y: mY2
+    }];
+  };
 
-                            var s = nodes.indexOfId(srcId);
-                            var t = nodes.indexOfId(tgtId);
-                            var w = weight(edge);
+  var str = "generateBezier(" + [mX1, mY1, mX2, mY2] + ")";
 
-                            var _n = t * numNodes + s; // Update matrix
+  f.toString = function () {
+    return str;
+  };
 
+  return f;
+}
 
-                            matrix[_n] += w; // Update column sum
+/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */
 
-                            columnSum[s] += w;
-                        } // Add additional probability based on damping factor
-                        // Also, take into account columns that have sum = 0
+/* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass
+   then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */
+var generateSpringRK4 = function () {
+  function springAccelerationForState(state) {
+    return -state.tension * state.x - state.friction * state.v;
+  }
 
+  function springEvaluateStateWithDerivative(initialState, dt, derivative) {
+    var state = {
+      x: initialState.x + derivative.dx * dt,
+      v: initialState.v + derivative.dv * dt,
+      tension: initialState.tension,
+      friction: initialState.friction
+    };
+    return {
+      dx: state.v,
+      dv: springAccelerationForState(state)
+    };
+  }
 
-                        var p = 1.0 / numNodes + additionalProb; // Shorthand
-                        // Traverse matrix, column by column
+  function springIntegrateState(state, dt) {
+    var a = {
+      dx: state.v,
+      dv: springAccelerationForState(state)
+    },
+        b = springEvaluateStateWithDerivative(state, dt * 0.5, a),
+        c = springEvaluateStateWithDerivative(state, dt * 0.5, b),
+        d = springEvaluateStateWithDerivative(state, dt, c),
+        dxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),
+        dvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);
+    state.x = state.x + dxdt * dt;
+    state.v = state.v + dvdt * dt;
+    return state;
+  }
 
-                        for (var _j = 0; _j < numNodes; _j++) {
-                            if (columnSum[_j] === 0) {
-                                // No 'links' out from node jth, assume equal probability for each possible node
-                                for (var _i2 = 0; _i2 < numNodes; _i2++) {
-                                    var _n2 = _i2 * numNodes + _j;
+  return function springRK4Factory(tension, friction, duration) {
+    var initState = {
+      x: -1,
+      v: 0,
+      tension: null,
+      friction: null
+    },
+        path = [0],
+        time_lapsed = 0,
+        tolerance = 1 / 10000,
+        DT = 16 / 1000,
+        have_duration,
+        dt,
+        last_state;
+    tension = parseFloat(tension) || 500;
+    friction = parseFloat(friction) || 20;
+    duration = duration || null;
+    initState.tension = tension;
+    initState.friction = friction;
+    have_duration = duration !== null;
+    /* Calculate the actual time it takes for this animation to complete with the provided conditions. */
+
+    if (have_duration) {
+      /* Run the simulation without a duration. */
+      time_lapsed = springRK4Factory(tension, friction);
+      /* Compute the adjusted time delta. */
+
+      dt = time_lapsed / duration * DT;
+    } else {
+      dt = DT;
+    }
 
-                                    matrix[_n2] = p;
-                                }
-                            } else {
-                                // Node jth has outgoing link, compute normalized probabilities
-                                for (var _i3 = 0; _i3 < numNodes; _i3++) {
-                                    var _n3 = _i3 * numNodes + _j;
+    for (;;) {
+      /* Next/step function .*/
+      last_state = springIntegrateState(last_state || initState, dt);
+      /* Store the position. */
 
-                                    matrix[_n3] = matrix[_n3] / columnSum[_j] + additionalProb;
-                                }
-                            }
-                        } // Compute dominant eigenvector using power method
+      path.push(1 + last_state.x);
+      time_lapsed += 16;
+      /* If the change threshold is reached, break. */
 
+      if (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {
+        break;
+      }
+    }
+    /* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the
+       computed path and returns a snapshot of the position according to a given percentComplete. */
 
-                        var eigenvector = new Array(numNodes);
-                        var temp = new Array(numNodes);
-                        var previous; // Start with a vector of all 1's
-                        // Also, initialize a null vector which will be used as shorthand
 
-                        for (var _i4 = 0; _i4 < numNodes; _i4++) {
-                            eigenvector[_i4] = 1;
-                        }
+    return !have_duration ? time_lapsed : function (percentComplete) {
+      return path[percentComplete * (path.length - 1) | 0];
+    };
+  };
+}();
+
+var cubicBezier = function cubicBezier(t1, p1, t2, p2) {
+  var bezier = generateCubicBezier(t1, p1, t2, p2);
+  return function (start, end, percent) {
+    return start + (end - start) * bezier(percent);
+  };
+};
+
+var easings = {
+  'linear': function linear(start, end, percent) {
+    return start + (end - start) * percent;
+  },
+  // default easings
+  'ease': cubicBezier(0.25, 0.1, 0.25, 1),
+  'ease-in': cubicBezier(0.42, 0, 1, 1),
+  'ease-out': cubicBezier(0, 0, 0.58, 1),
+  'ease-in-out': cubicBezier(0.42, 0, 0.58, 1),
+  // sine
+  'ease-in-sine': cubicBezier(0.47, 0, 0.745, 0.715),
+  'ease-out-sine': cubicBezier(0.39, 0.575, 0.565, 1),
+  'ease-in-out-sine': cubicBezier(0.445, 0.05, 0.55, 0.95),
+  // quad
+  'ease-in-quad': cubicBezier(0.55, 0.085, 0.68, 0.53),
+  'ease-out-quad': cubicBezier(0.25, 0.46, 0.45, 0.94),
+  'ease-in-out-quad': cubicBezier(0.455, 0.03, 0.515, 0.955),
+  // cubic
+  'ease-in-cubic': cubicBezier(0.55, 0.055, 0.675, 0.19),
+  'ease-out-cubic': cubicBezier(0.215, 0.61, 0.355, 1),
+  'ease-in-out-cubic': cubicBezier(0.645, 0.045, 0.355, 1),
+  // quart
+  'ease-in-quart': cubicBezier(0.895, 0.03, 0.685, 0.22),
+  'ease-out-quart': cubicBezier(0.165, 0.84, 0.44, 1),
+  'ease-in-out-quart': cubicBezier(0.77, 0, 0.175, 1),
+  // quint
+  'ease-in-quint': cubicBezier(0.755, 0.05, 0.855, 0.06),
+  'ease-out-quint': cubicBezier(0.23, 1, 0.32, 1),
+  'ease-in-out-quint': cubicBezier(0.86, 0, 0.07, 1),
+  // expo
+  'ease-in-expo': cubicBezier(0.95, 0.05, 0.795, 0.035),
+  'ease-out-expo': cubicBezier(0.19, 1, 0.22, 1),
+  'ease-in-out-expo': cubicBezier(1, 0, 0, 1),
+  // circ
+  'ease-in-circ': cubicBezier(0.6, 0.04, 0.98, 0.335),
+  'ease-out-circ': cubicBezier(0.075, 0.82, 0.165, 1),
+  'ease-in-out-circ': cubicBezier(0.785, 0.135, 0.15, 0.86),
+  // user param easings...
+  'spring': function spring(tension, friction, duration) {
+    if (duration === 0) {
+      // can't get a spring w/ duration 0
+      return easings.linear; // duration 0 => jump to end so impl doesn't matter
+    }
 
-                        for (var iter = 0; iter < iterations; iter++) {
-                            // Temp array with all 0's
-                            for (var _i5 = 0; _i5 < numNodes; _i5++) {
-                                temp[_i5] = 0;
-                            } // Multiply matrix with previous result
+    var spring = generateSpringRK4(tension, friction, duration);
+    return function (start, end, percent) {
+      return start + (end - start) * spring(percent);
+    };
+  },
+  'cubic-bezier': cubicBezier
+};
+
+function getEasedValue(type, start, end, percent, easingFn) {
+  if (percent === 1) {
+    return end;
+  }
 
+  if (start === end) {
+    return end;
+  }
 
-                            for (var _i6 = 0; _i6 < numNodes; _i6++) {
-                                for (var _j2 = 0; _j2 < numNodes; _j2++) {
-                                    var _n4 = _i6 * numNodes + _j2;
+  var val = easingFn(start, end, percent);
 
-                                    temp[_i6] += matrix[_n4] * eigenvector[_j2];
-                                }
-                            }
+  if (type == null) {
+    return val;
+  }
 
-                            inPlaceSumNormalize(temp);
-                            previous = eigenvector;
-                            eigenvector = temp;
-                            temp = previous;
-                            var diff = 0; // Compute difference (squared module) of both vectors
+  if (type.roundValue || type.color) {
+    val = Math.round(val);
+  }
 
-                            for (var _i7 = 0; _i7 < numNodes; _i7++) {
-                                var delta = previous[_i7] - eigenvector[_i7];
-                                diff += delta * delta;
-                            } // If difference is less than the desired threshold, stop iterating
+  if (type.min !== undefined) {
+    val = Math.max(val, type.min);
+  }
 
+  if (type.max !== undefined) {
+    val = Math.min(val, type.max);
+  }
 
-                            if (diff < precision) {
-                                break;
-                            }
-                        } // Construct result
+  return val;
+}
 
+function getValue(prop, spec) {
+  if (prop.pfValue != null || prop.value != null) {
+    if (prop.pfValue != null && (spec == null || spec.type.units !== '%')) {
+      return prop.pfValue;
+    } else {
+      return prop.value;
+    }
+  } else {
+    return prop;
+  }
+}
 
-                        var res = {
-                            rank: function rank(node) {
-                                node = cy.collection(node)[0];
-                                return eigenvector[nodes.indexOf(node)];
-                            }
-                        };
-                        return res;
-                    } // pageRank
-
-                }; // elesfn
-
-                var defaults$1 = defaults({
-                    root: null,
-                    weight: function weight(edge) {
-                        return 1;
-                    },
-                    directed: false,
-                    alpha: 0
-                });
-                var elesfn$8 = {
-                    degreeCentralityNormalized: function degreeCentralityNormalized(options) {
-                        options = defaults$1(options);
-                        var cy = this.cy();
-                        var nodes = this.nodes();
-                        var numNodes = nodes.length;
+function ease(startProp, endProp, percent, easingFn, propSpec) {
+  var type = propSpec != null ? propSpec.type : null;
 
-                        if (!options.directed) {
-                            var degrees = {};
-                            var maxDegree = 0;
+  if (percent < 0) {
+    percent = 0;
+  } else if (percent > 1) {
+    percent = 1;
+  }
 
-                            for (var i = 0; i < numNodes; i++) {
-                                var node = nodes[i]; // add current node to the current options object and call degreeCentrality
+  var start = getValue(startProp, propSpec);
+  var end = getValue(endProp, propSpec);
 
-                                options.root = node;
-                                var currDegree = this.degreeCentrality(options);
+  if (number(start) && number(end)) {
+    return getEasedValue(type, start, end, percent, easingFn);
+  } else if (array(start) && array(end)) {
+    var easedArr = [];
 
-                                if (maxDegree < currDegree.degree) {
-                                    maxDegree = currDegree.degree;
-                                }
+    for (var i = 0; i < end.length; i++) {
+      var si = start[i];
+      var ei = end[i];
 
-                                degrees[node.id()] = currDegree.degree;
-                            }
+      if (si != null && ei != null) {
+        var val = getEasedValue(type, si, ei, percent, easingFn);
+        easedArr.push(val);
+      } else {
+        easedArr.push(ei);
+      }
+    }
 
-                            return {
-                                degree: function degree(node) {
-                                    if (maxDegree === 0) {
-                                        return 0;
-                                    }
+    return easedArr;
+  }
 
-                                    if (string(node)) {
-                                        // from is a selector string
-                                        node = cy.filter(node);
-                                    }
+  return undefined;
+}
+
+function step(self, ani, now, isCore) {
+  var isEles = !isCore;
+  var _p = self._private;
+  var ani_p = ani._private;
+  var pEasing = ani_p.easing;
+  var startTime = ani_p.startTime;
+  var cy = isCore ? self : self.cy();
+  var style = cy.style();
+
+  if (!ani_p.easingImpl) {
+    if (pEasing == null) {
+      // use default
+      ani_p.easingImpl = easings['linear'];
+    } else {
+      // then define w/ name
+      var easingVals;
+
+      if (string(pEasing)) {
+        var easingProp = style.parse('transition-timing-function', pEasing);
+        easingVals = easingProp.value;
+      } else {
+        // then assume preparsed array
+        easingVals = pEasing;
+      }
+
+      var name, args;
+
+      if (string(easingVals)) {
+        name = easingVals;
+        args = [];
+      } else {
+        name = easingVals[1];
+        args = easingVals.slice(2).map(function (n) {
+          return +n;
+        });
+      }
+
+      if (args.length > 0) {
+        // create with args
+        if (name === 'spring') {
+          args.push(ani_p.duration); // need duration to generate spring
+        }
 
-                                    return degrees[node.id()] / maxDegree;
-                                }
-                            };
-                        } else {
-                            var indegrees = {};
-                            var outdegrees = {};
-                            var maxIndegree = 0;
-                            var maxOutdegree = 0;
+        ani_p.easingImpl = easings[name].apply(null, args);
+      } else {
+        // static impl by name
+        ani_p.easingImpl = easings[name];
+      }
+    }
+  }
 
-                            for (var _i = 0; _i < numNodes; _i++) {
-                                var _node = nodes[_i];
+  var easing = ani_p.easingImpl;
+  var percent;
 
-                                var id = _node.id(); // add current node to the current options object and call degreeCentrality
+  if (ani_p.duration === 0) {
+    percent = 1;
+  } else {
+    percent = (now - startTime) / ani_p.duration;
+  }
 
+  if (ani_p.applying) {
+    percent = ani_p.progress;
+  }
 
-                                options.root = _node;
+  if (percent < 0) {
+    percent = 0;
+  } else if (percent > 1) {
+    percent = 1;
+  }
 
-                                var _currDegree = this.degreeCentrality(options);
+  if (ani_p.delay == null) {
+    // then update
+    var startPos = ani_p.startPosition;
+    var endPos = ani_p.position;
 
-                                if (maxIndegree < _currDegree.indegree) maxIndegree = _currDegree.indegree;
-                                if (maxOutdegree < _currDegree.outdegree) maxOutdegree = _currDegree.outdegree;
-                                indegrees[id] = _currDegree.indegree;
-                                outdegrees[id] = _currDegree.outdegree;
-                            }
+    if (endPos && isEles && !self.locked()) {
+      var newPos = {};
 
-                            return {
-                                indegree: function indegree(node) {
-                                    if (maxIndegree == 0) {
-                                        return 0;
-                                    }
-
-                                    if (string(node)) {
-                                        // from is a selector string
-                                        node = cy.filter(node);
-                                    }
-
-                                    return indegrees[node.id()] / maxIndegree;
-                                },
-                                outdegree: function outdegree(node) {
-                                    if (maxOutdegree === 0) {
-                                        return 0;
-                                    }
-
-                                    if (string(node)) {
-                                        // from is a selector string
-                                        node = cy.filter(node);
-                                    }
-
-                                    return outdegrees[node.id()] / maxOutdegree;
-                                }
-                            };
-                        }
-                    },
-                    // degreeCentralityNormalized
-                    // Implemented from the algorithm in Opsahl's paper
-                    // "Node centrality in weighted networks: Generalizing degree and shortest paths"
-                    // check the heading 2 "Degree"
-                    degreeCentrality: function degreeCentrality(options) {
-                        options = defaults$1(options);
-                        var cy = this.cy();
-                        var callingEles = this;
-                        var _options = options,
-                            root = _options.root,
-                            weight = _options.weight,
-                            directed = _options.directed,
-                            alpha = _options.alpha;
-                        root = cy.collection(root)[0];
-
-                        if (!directed) {
-                            var connEdges = root.connectedEdges().intersection(callingEles);
-                            var k = connEdges.length;
-                            var s = 0; // Now, sum edge weights
-
-                            for (var i = 0; i < connEdges.length; i++) {
-                                s += weight(connEdges[i]);
-                            }
+      if (valid(startPos.x, endPos.x)) {
+        newPos.x = ease(startPos.x, endPos.x, percent, easing);
+      }
 
-                            return {
-                                degree: Math.pow(k, 1 - alpha) * Math.pow(s, alpha)
-                            };
-                        } else {
-                            var edges = root.connectedEdges();
-                            var incoming = edges.filter(function (edge) {
-                                return edge.target().same(root) && callingEles.has(edge);
-                            });
-                            var outgoing = edges.filter(function (edge) {
-                                return edge.source().same(root) && callingEles.has(edge);
-                            });
-                            var k_in = incoming.length;
-                            var k_out = outgoing.length;
-                            var s_in = 0;
-                            var s_out = 0; // Now, sum incoming edge weights
-
-                            for (var _i2 = 0; _i2 < incoming.length; _i2++) {
-                                s_in += weight(incoming[_i2]);
-                            } // Now, sum outgoing edge weights
-
-
-                            for (var _i3 = 0; _i3 < outgoing.length; _i3++) {
-                                s_out += weight(outgoing[_i3]);
-                            }
+      if (valid(startPos.y, endPos.y)) {
+        newPos.y = ease(startPos.y, endPos.y, percent, easing);
+      }
 
-                            return {
-                                indegree: Math.pow(k_in, 1 - alpha) * Math.pow(s_in, alpha),
-                                outdegree: Math.pow(k_out, 1 - alpha) * Math.pow(s_out, alpha)
-                            };
-                        }
-                    } // degreeCentrality
+      self.position(newPos);
+    }
 
-                }; // elesfn
-// nice, short mathemathical alias
+    var startPan = ani_p.startPan;
+    var endPan = ani_p.pan;
+    var pan = _p.pan;
+    var animatingPan = endPan != null && isCore;
 
-                elesfn$8.dc = elesfn$8.degreeCentrality;
-                elesfn$8.dcn = elesfn$8.degreeCentralityNormalised = elesfn$8.degreeCentralityNormalized;
+    if (animatingPan) {
+      if (valid(startPan.x, endPan.x)) {
+        pan.x = ease(startPan.x, endPan.x, percent, easing);
+      }
 
-                var defaults$2 = defaults({
-                    harmonic: true,
-                    weight: function weight() {
-                        return 1;
-                    },
-                    directed: false,
-                    root: null
-                });
-                var elesfn$9 = {
-                    closenessCentralityNormalized: function closenessCentralityNormalized(options) {
-                        var _defaults = defaults$2(options),
-                            harmonic = _defaults.harmonic,
-                            weight = _defaults.weight,
-                            directed = _defaults.directed;
-
-                        var cy = this.cy();
-                        var closenesses = {};
-                        var maxCloseness = 0;
-                        var nodes = this.nodes();
-                        var fw = this.floydWarshall({
-                            weight: weight,
-                            directed: directed
-                        }); // Compute closeness for every node and find the maximum closeness
-
-                        for (var i = 0; i < nodes.length; i++) {
-                            var currCloseness = 0;
-                            var node_i = nodes[i];
-
-                            for (var j = 0; j < nodes.length; j++) {
-                                if (i !== j) {
-                                    var d = fw.distance(node_i, nodes[j]);
-
-                                    if (harmonic) {
-                                        currCloseness += 1 / d;
-                                    } else {
-                                        currCloseness += d;
-                                    }
-                                }
-                            }
+      if (valid(startPan.y, endPan.y)) {
+        pan.y = ease(startPan.y, endPan.y, percent, easing);
+      }
 
-                            if (!harmonic) {
-                                currCloseness = 1 / currCloseness;
-                            }
+      self.emit('pan');
+    }
 
-                            if (maxCloseness < currCloseness) {
-                                maxCloseness = currCloseness;
-                            }
+    var startZoom = ani_p.startZoom;
+    var endZoom = ani_p.zoom;
+    var animatingZoom = endZoom != null && isCore;
 
-                            closenesses[node_i.id()] = currCloseness;
-                        }
+    if (animatingZoom) {
+      if (valid(startZoom, endZoom)) {
+        _p.zoom = bound(_p.minZoom, ease(startZoom, endZoom, percent, easing), _p.maxZoom);
+      }
 
-                        return {
-                            closeness: function closeness(node) {
-                                if (maxCloseness == 0) {
-                                    return 0;
-                                }
-
-                                if (string(node)) {
-                                    // from is a selector string
-                                    node = cy.filter(node)[0].id();
-                                } else {
-                                    // from is a node
-                                    node = node.id();
-                                }
-
-                                return closenesses[node] / maxCloseness;
-                            }
-                        };
-                    },
-                    // Implemented from pseudocode from wikipedia
-                    closenessCentrality: function closenessCentrality(options) {
-                        var _defaults2 = defaults$2(options),
-                            root = _defaults2.root,
-                            weight = _defaults2.weight,
-                            directed = _defaults2.directed,
-                            harmonic = _defaults2.harmonic;
-
-                        root = this.filter(root)[0]; // we need distance from this node to every other node
-
-                        var dijkstra = this.dijkstra({
-                            root: root,
-                            weight: weight,
-                            directed: directed
-                        });
-                        var totalDistance = 0;
-                        var nodes = this.nodes();
+      self.emit('zoom');
+    }
 
-                        for (var i = 0; i < nodes.length; i++) {
-                            var n = nodes[i];
+    if (animatingPan || animatingZoom) {
+      self.emit('viewport');
+    }
 
-                            if (!n.same(root)) {
-                                var d = dijkstra.distanceTo(n);
+    var props = ani_p.style;
 
-                                if (harmonic) {
-                                    totalDistance += 1 / d;
-                                } else {
-                                    totalDistance += d;
-                                }
-                            }
-                        }
+    if (props && props.length > 0 && isEles) {
+      for (var i = 0; i < props.length; i++) {
+        var prop = props[i];
+        var _name = prop.name;
+        var end = prop;
+        var start = ani_p.startStyle[_name];
+        var propSpec = style.properties[start.name];
+        var easedVal = ease(start, end, percent, easing, propSpec);
+        style.overrideBypass(self, _name, easedVal);
+      } // for props
 
-                        return harmonic ? totalDistance : 1 / totalDistance;
-                    } // closenessCentrality
 
-                }; // elesfn
-// nice, short mathemathical alias
+      self.emit('style');
+    } // if
 
-                elesfn$9.cc = elesfn$9.closenessCentrality;
-                elesfn$9.ccn = elesfn$9.closenessCentralityNormalised = elesfn$9.closenessCentralityNormalized;
+  }
 
-                var defaults$3 = defaults({
-                    weight: null,
-                    directed: false
-                });
-                var elesfn$a = {
-                    // Implemented from the algorithm in the paper "On Variants of Shortest-Path Betweenness Centrality and their Generic Computation" by Ulrik Brandes
-                    betweennessCentrality: function betweennessCentrality(options) {
-                        var _defaults = defaults$3(options),
-                            directed = _defaults.directed,
-                            weight = _defaults.weight;
-
-                        var weighted = weight != null;
-                        var cy = this.cy(); // starting
-
-                        var V = this.nodes();
-                        var A = {};
-                        var _C = {};
-                        var max = 0;
-                        var C = {
-                            set: function set(key, val) {
-                                _C[key] = val;
-
-                                if (val > max) {
-                                    max = val;
-                                }
-                            },
-                            get: function get(key) {
-                                return _C[key];
-                            }
-                        }; // A contains the neighborhoods of every node
+  ani_p.progress = percent;
+  return percent;
+}
 
-                        for (var i = 0; i < V.length; i++) {
-                            var v = V[i];
-                            var vid = v.id();
+function valid(start, end) {
+  if (start == null || end == null) {
+    return false;
+  }
 
-                            if (directed) {
-                                A[vid] = v.outgoers().nodes(); // get outgoers of every node
-                            } else {
-                                A[vid] = v.openNeighborhood().nodes(); // get neighbors of every node
-                            }
+  if (number(start) && number(end)) {
+    return true;
+  } else if (start && end) {
+    return true;
+  }
 
-                            C.set(vid, 0);
-                        }
+  return false;
+}
 
-                        var _loop = function _loop(s) {
-                            var sid = V[s].id();
-                            var S = []; // stack
+function startAnimation(self, ani, now, isCore) {
+  var ani_p = ani._private;
+  ani_p.started = true;
+  ani_p.startTime = now - ani_p.progress * ani_p.duration;
+}
 
-                            var P = {};
-                            var g = {};
-                            var d = {};
-                            var Q = new Heap(function (a, b) {
-                                return d[a] - d[b];
-                            }); // queue
-                            // init dictionaries
+function stepAll(now, cy) {
+  var eles = cy._private.aniEles;
+  var doneEles = [];
 
-                            for (var _i = 0; _i < V.length; _i++) {
-                                var _vid = V[_i].id();
+  function stepOne(ele, isCore) {
+    var _p = ele._private;
+    var current = _p.animation.current;
+    var queue = _p.animation.queue;
+    var ranAnis = false; // if nothing currently animating, get something from the queue
 
-                                P[_vid] = [];
-                                g[_vid] = 0;
-                                d[_vid] = Infinity;
-                            }
+    if (current.length === 0) {
+      var next = queue.shift();
 
-                            g[sid] = 1; // sigma
+      if (next) {
+        current.push(next);
+      }
+    }
 
-                            d[sid] = 0; // distance to s
+    var callbacks = function callbacks(_callbacks) {
+      for (var j = _callbacks.length - 1; j >= 0; j--) {
+        var cb = _callbacks[j];
+        cb();
+      }
 
-                            Q.push(sid);
+      _callbacks.splice(0, _callbacks.length);
+    }; // step and remove if done
 
-                            while (!Q.empty()) {
-                                var _v = Q.pop();
 
-                                S.push(_v);
+    for (var i = current.length - 1; i >= 0; i--) {
+      var ani = current[i];
+      var ani_p = ani._private;
 
-                                if (weighted) {
-                                    for (var j = 0; j < A[_v].length; j++) {
-                                        var w = A[_v][j];
-                                        var vEle = cy.getElementById(_v);
-                                        var edge = void 0;
+      if (ani_p.stopped) {
+        current.splice(i, 1);
+        ani_p.hooked = false;
+        ani_p.playing = false;
+        ani_p.started = false;
+        callbacks(ani_p.frames);
+        continue;
+      }
 
-                                        if (vEle.edgesTo(w).length > 0) {
-                                            edge = vEle.edgesTo(w)[0];
-                                        } else {
-                                            edge = w.edgesTo(vEle)[0];
-                                        }
+      if (!ani_p.playing && !ani_p.applying) {
+        continue;
+      } // an apply() while playing shouldn't do anything
 
-                                        var edgeWeight = weight(edge);
-                                        w = w.id();
 
-                                        if (d[w] > d[_v] + edgeWeight) {
-                                            d[w] = d[_v] + edgeWeight;
+      if (ani_p.playing && ani_p.applying) {
+        ani_p.applying = false;
+      }
 
-                                            if (Q.nodes.indexOf(w) < 0) {
-                                                //if w is not in Q
-                                                Q.push(w);
-                                            } else {
-                                                // update position if w is in Q
-                                                Q.updateItem(w);
-                                            }
+      if (!ani_p.started) {
+        startAnimation(ele, ani, now);
+      }
 
-                                            g[w] = 0;
-                                            P[w] = [];
-                                        }
+      step(ele, ani, now, isCore);
 
-                                        if (d[w] == d[_v] + edgeWeight) {
-                                            g[w] = g[w] + g[_v];
-                                            P[w].push(_v);
-                                        }
-                                    }
-                                } else {
-                                    for (var _j = 0; _j < A[_v].length; _j++) {
-                                        var _w = A[_v][_j].id();
+      if (ani_p.applying) {
+        ani_p.applying = false;
+      }
 
-                                        if (d[_w] == Infinity) {
-                                            Q.push(_w);
-                                            d[_w] = d[_v] + 1;
-                                        }
+      callbacks(ani_p.frames);
 
-                                        if (d[_w] == d[_v] + 1) {
-                                            g[_w] = g[_w] + g[_v];
+      if (ani_p.step != null) {
+        ani_p.step(now);
+      }
 
-                                            P[_w].push(_v);
-                                        }
-                                    }
-                                }
-                            }
+      if (ani.completed()) {
+        current.splice(i, 1);
+        ani_p.hooked = false;
+        ani_p.playing = false;
+        ani_p.started = false;
+        callbacks(ani_p.completes);
+      }
 
-                            var e = {};
+      ranAnis = true;
+    }
 
-                            for (var _i2 = 0; _i2 < V.length; _i2++) {
-                                e[V[_i2].id()] = 0;
-                            }
+    if (!isCore && current.length === 0 && queue.length === 0) {
+      doneEles.push(ele);
+    }
 
-                            while (S.length > 0) {
-                                var _w2 = S.pop();
+    return ranAnis;
+  } // stepElement
+  // handle all eles
 
-                                for (var _j2 = 0; _j2 < P[_w2].length; _j2++) {
-                                    var _v2 = P[_w2][_j2];
-                                    e[_v2] = e[_v2] + g[_v2] / g[_w2] * (1 + e[_w2]);
-                                }
 
-                                if (_w2 != V[s].id()) {
-                                    C.set(_w2, C.get(_w2) + e[_w2]);
-                                }
-                            }
-                        };
+  var ranEleAni = false;
 
-                        for (var s = 0; s < V.length; s++) {
-                            _loop(s);
-                        }
+  for (var e = 0; e < eles.length; e++) {
+    var ele = eles[e];
+    var handledThisEle = stepOne(ele);
+    ranEleAni = ranEleAni || handledThisEle;
+  } // each element
 
-                        var ret = {
-                            betweenness: function betweenness(node) {
-                                var id = cy.collection(node).id();
-                                return C.get(id);
-                            },
-                            betweennessNormalized: function betweennessNormalized(node) {
-                                if (max == 0) {
-                                    return 0;
-                                }
-
-                                var id = cy.collection(node).id();
-                                return C.get(id) / max;
-                            }
-                        }; // alias
 
-                        ret.betweennessNormalised = ret.betweennessNormalized;
-                        return ret;
-                    } // betweennessCentrality
+  var ranCoreAni = stepOne(cy, true); // notify renderer
 
-                }; // elesfn
-// nice, short mathemathical alias
+  if (ranEleAni || ranCoreAni) {
+    if (eles.length > 0) {
+      cy.notify('draw', eles);
+    } else {
+      cy.notify('draw');
+    }
+  } // remove elements from list of currently animating if its queues are empty
+
+
+  eles.unmerge(doneEles);
+  cy.emit('step');
+} // stepAll
+
+var corefn$1 = {
+  // pull in animation functions
+  animate: define$3.animate(),
+  animation: define$3.animation(),
+  animated: define$3.animated(),
+  clearQueue: define$3.clearQueue(),
+  delay: define$3.delay(),
+  delayAnimation: define$3.delayAnimation(),
+  stop: define$3.stop(),
+  addToAnimationPool: function addToAnimationPool(eles) {
+    var cy = this;
+
+    if (!cy.styleEnabled()) {
+      return;
+    } // save cycles when no style used
+
+
+    cy._private.aniEles.merge(eles);
+  },
+  stopAnimationLoop: function stopAnimationLoop() {
+    this._private.animationsRunning = false;
+  },
+  startAnimationLoop: function startAnimationLoop() {
+    var cy = this;
+    cy._private.animationsRunning = true;
+
+    if (!cy.styleEnabled()) {
+      return;
+    } // save cycles when no style used
+    // NB the animation loop will exec in headless environments if style enabled
+    // and explicit cy.destroy() is necessary to stop the loop
+
+
+    function headlessStep() {
+      if (!cy._private.animationsRunning) {
+        return;
+      }
+
+      requestAnimationFrame(function animationStep(now) {
+        stepAll(now, cy);
+        headlessStep();
+      });
+    }
 
-                elesfn$a.bc = elesfn$a.betweennessCentrality;
+    var renderer = cy.renderer();
 
-// Implemented by Zoe Xi @zoexi for GSOC 2016
-                /* eslint-disable no-unused-vars */
-
-                var defaults$4 = defaults({
-                    expandFactor: 2,
-                    // affects time of computation and cluster granularity to some extent: M * M
-                    inflateFactor: 2,
-                    // affects cluster granularity (the greater the value, the more clusters): M(i,j) / E(j)
-                    multFactor: 1,
-                    // optional self loops for each node. Use a neutral value to improve cluster computations.
-                    maxIterations: 20,
-                    // maximum number of iterations of the MCL algorithm in a single run
-                    attributes: [// attributes/features used to group nodes, ie. similarity values between nodes
-                        function (edge) {
-                            return 1;
-                        }]
-                });
-                /* eslint-enable */
+    if (renderer && renderer.beforeRender) {
+      // let the renderer schedule animations
+      renderer.beforeRender(function rendererAnimationStep(willDraw, now) {
+        stepAll(now, cy);
+      }, renderer.beforeRenderPriorities.animations);
+    } else {
+      // manage the animation loop ourselves
+      headlessStep(); // first call
+    }
+  }
+};
+
+var emitterOptions$1 = {
+  qualifierCompare: function qualifierCompare(selector1, selector2) {
+    if (selector1 == null || selector2 == null) {
+      return selector1 == null && selector2 == null;
+    } else {
+      return selector1.sameText(selector2);
+    }
+  },
+  eventMatches: function eventMatches(cy, listener, eventObj) {
+    var selector = listener.qualifier;
 
-                var setOptions = function setOptions(options) {
-                    return defaults$4(options);
-                };
-                /* eslint-enable */
+    if (selector != null) {
+      return cy !== eventObj.target && element(eventObj.target) && selector.matches(eventObj.target);
+    }
 
+    return true;
+  },
+  addEventFields: function addEventFields(cy, evt) {
+    evt.cy = cy;
+    evt.target = cy;
+  },
+  callbackContext: function callbackContext(cy, listener, eventObj) {
+    return listener.qualifier != null ? eventObj.target : cy;
+  }
+};
 
-                var getSimilarity = function getSimilarity(edge, attributes) {
-                    var total = 0;
+var argSelector$1 = function argSelector(arg) {
+  if (string(arg)) {
+    return new Selector(arg);
+  } else {
+    return arg;
+  }
+};
 
-                    for (var i = 0; i < attributes.length; i++) {
-                        total += attributes[i](edge);
-                    }
+var elesfn$v = {
+  createEmitter: function createEmitter() {
+    var _p = this._private;
 
-                    return total;
-                };
+    if (!_p.emitter) {
+      _p.emitter = new Emitter(emitterOptions$1, this);
+    }
 
-                var addLoops = function addLoops(M, n, val) {
-                    for (var i = 0; i < n; i++) {
-                        M[i * n + i] = val;
-                    }
-                };
+    return this;
+  },
+  emitter: function emitter() {
+    return this._private.emitter;
+  },
+  on: function on(events, selector, callback) {
+    this.emitter().on(events, argSelector$1(selector), callback);
+    return this;
+  },
+  removeListener: function removeListener(events, selector, callback) {
+    this.emitter().removeListener(events, argSelector$1(selector), callback);
+    return this;
+  },
+  removeAllListeners: function removeAllListeners() {
+    this.emitter().removeAllListeners();
+    return this;
+  },
+  one: function one(events, selector, callback) {
+    this.emitter().one(events, argSelector$1(selector), callback);
+    return this;
+  },
+  once: function once(events, selector, callback) {
+    this.emitter().one(events, argSelector$1(selector), callback);
+    return this;
+  },
+  emit: function emit(events, extraParams) {
+    this.emitter().emit(events, extraParams);
+    return this;
+  },
+  emitAndNotify: function emitAndNotify(event, eles) {
+    this.emit(event);
+    this.notify(event, eles);
+    return this;
+  }
+};
+define$3.eventAliasesOn(elesfn$v);
+
+var corefn$2 = {
+  png: function png(options) {
+    var renderer = this._private.renderer;
+    options = options || {};
+    return renderer.png(options);
+  },
+  jpg: function jpg(options) {
+    var renderer = this._private.renderer;
+    options = options || {};
+    options.bg = options.bg || '#fff';
+    return renderer.jpg(options);
+  }
+};
+corefn$2.jpeg = corefn$2.jpg;
 
-                var normalize = function normalize(M, n) {
-                    var sum;
+var corefn$3 = {
+  layout: function layout(options) {
+    var cy = this;
 
-                    for (var col = 0; col < n; col++) {
-                        sum = 0;
+    if (options == null) {
+      error('Layout options must be specified to make a layout');
+      return;
+    }
 
-                        for (var row = 0; row < n; row++) {
-                            sum += M[row * n + col];
-                        }
+    if (options.name == null) {
+      error('A `name` must be specified to make a layout');
+      return;
+    }
 
-                        for (var _row = 0; _row < n; _row++) {
-                            M[_row * n + col] = M[_row * n + col] / sum;
-                        }
-                    }
-                }; // TODO: blocked matrix multiplication?
+    var name = options.name;
+    var Layout = cy.extension('layout', name);
 
+    if (Layout == null) {
+      error('No such layout `' + name + '` found.  Did you forget to import it and `cytoscape.use()` it?');
+      return;
+    }
 
-                var mmult = function mmult(A, B, n) {
-                    var C = new Array(n * n);
+    var eles;
 
-                    for (var i = 0; i < n; i++) {
-                        for (var j = 0; j < n; j++) {
-                            C[i * n + j] = 0;
-                        }
+    if (string(options.eles)) {
+      eles = cy.$(options.eles);
+    } else {
+      eles = options.eles != null ? options.eles : cy.$();
+    }
 
-                        for (var k = 0; k < n; k++) {
-                            for (var _j = 0; _j < n; _j++) {
-                                C[i * n + _j] += A[i * n + k] * B[k * n + _j];
-                            }
-                        }
-                    }
+    var layout = new Layout(extend({}, options, {
+      cy: cy,
+      eles: eles
+    }));
+    return layout;
+  }
+};
+corefn$3.createLayout = corefn$3.makeLayout = corefn$3.layout;
 
-                    return C;
-                };
+var corefn$4 = {
+  notify: function notify(eventName, eventEles) {
+    var _p = this._private;
 
-                var expand = function expand(M, n, expandFactor
-                                             /** power **/
-                ) {
-                    var _M = M.slice(0);
+    if (this.batching()) {
+      _p.batchNotifications = _p.batchNotifications || {};
+      var eles = _p.batchNotifications[eventName] = _p.batchNotifications[eventName] || this.collection();
 
-                    for (var p = 1; p < expandFactor; p++) {
-                        M = mmult(M, _M, n);
-                    }
+      if (eventEles != null) {
+        eles.merge(eventEles);
+      }
 
-                    return M;
-                };
+      return; // notifications are disabled during batching
+    }
 
-                var inflate = function inflate(M, n, inflateFactor
-                                               /** r **/
-                ) {
-                    var _M = new Array(n * n); // M(i,j) ^ inflatePower
+    if (!_p.notificationsEnabled) {
+      return;
+    } // exit on disabled
 
 
-                    for (var i = 0; i < n * n; i++) {
-                        _M[i] = Math.pow(M[i], inflateFactor);
-                    }
+    var renderer = this.renderer(); // exit if destroy() called on core or renderer in between frames #1499 #1528
 
-                    normalize(_M, n);
-                    return _M;
-                };
+    if (this.destroyed() || !renderer) {
+      return;
+    }
 
-                var hasConverged = function hasConverged(M, _M, n2, roundFactor) {
-                    // Check that both matrices have the same elements (i,j)
-                    for (var i = 0; i < n2; i++) {
-                        var v1 = Math.round(M[i] * Math.pow(10, roundFactor)) / Math.pow(10, roundFactor); // truncate to 'roundFactor' decimal places
+    renderer.notify(eventName, eventEles);
+  },
+  notifications: function notifications(bool) {
+    var p = this._private;
 
-                        var v2 = Math.round(_M[i] * Math.pow(10, roundFactor)) / Math.pow(10, roundFactor);
+    if (bool === undefined) {
+      return p.notificationsEnabled;
+    } else {
+      p.notificationsEnabled = bool ? true : false;
+    }
 
-                        if (v1 !== v2) {
-                            return false;
-                        }
-                    }
+    return this;
+  },
+  noNotifications: function noNotifications(callback) {
+    this.notifications(false);
+    callback();
+    this.notifications(true);
+  },
+  batching: function batching() {
+    return this._private.batchCount > 0;
+  },
+  startBatch: function startBatch() {
+    var _p = this._private;
+
+    if (_p.batchCount == null) {
+      _p.batchCount = 0;
+    }
 
-                    return true;
-                };
+    if (_p.batchCount === 0) {
+      _p.batchStyleEles = this.collection();
+      _p.batchNotifications = {};
+    }
 
-                var assign = function assign(M, n, nodes, cy) {
-                    var clusters = [];
+    _p.batchCount++;
+    return this;
+  },
+  endBatch: function endBatch() {
+    var _p = this._private;
 
-                    for (var i = 0; i < n; i++) {
-                        var cluster = [];
+    if (_p.batchCount === 0) {
+      return this;
+    }
 
-                        for (var j = 0; j < n; j++) {
-                            // Row-wise attractors and elements that they attract belong in same cluster
-                            if (Math.round(M[i * n + j] * 1000) / 1000 > 0) {
-                                cluster.push(nodes[j]);
-                            }
-                        }
+    _p.batchCount--;
 
-                        if (cluster.length !== 0) {
-                            clusters.push(cy.collection(cluster));
-                        }
-                    }
+    if (_p.batchCount === 0) {
+      // update style for dirty eles
+      _p.batchStyleEles.updateStyle();
 
-                    return clusters;
-                };
+      var renderer = this.renderer(); // notify the renderer of queued eles and event types
 
-                var isDuplicate = function isDuplicate(c1, c2) {
-                    for (var i = 0; i < c1.length; i++) {
-                        if (!c2[i] || c1[i].id() !== c2[i].id()) {
-                            return false;
-                        }
-                    }
+      Object.keys(_p.batchNotifications).forEach(function (eventName) {
+        var eles = _p.batchNotifications[eventName];
 
-                    return true;
-                };
+        if (eles.empty()) {
+          renderer.notify(eventName);
+        } else {
+          renderer.notify(eventName, eles);
+        }
+      });
+    }
 
-                var removeDuplicates = function removeDuplicates(clusters) {
-                    for (var i = 0; i < clusters.length; i++) {
-                        for (var j = 0; j < clusters.length; j++) {
-                            if (i != j && isDuplicate(clusters[i], clusters[j])) {
-                                clusters.splice(j, 1);
-                            }
-                        }
-                    }
+    return this;
+  },
+  batch: function batch(callback) {
+    this.startBatch();
+    callback();
+    this.endBatch();
+    return this;
+  },
+  // for backwards compatibility
+  batchData: function batchData(map) {
+    var cy = this;
+    return this.batch(function () {
+      var ids = Object.keys(map);
+
+      for (var i = 0; i < ids.length; i++) {
+        var id = ids[i];
+        var data = map[id];
+        var ele = cy.getElementById(id);
+        ele.data(data);
+      }
+    });
+  }
+};
+
+var rendererDefaults = defaults({
+  hideEdgesOnViewport: false,
+  textureOnViewport: false,
+  motionBlur: false,
+  motionBlurOpacity: 0.05,
+  pixelRatio: undefined,
+  desktopTapThreshold: 4,
+  touchTapThreshold: 8,
+  wheelSensitivity: 1,
+  debug: false,
+  showFps: false
+});
+var corefn$5 = {
+  renderTo: function renderTo(context, zoom, pan, pxRatio) {
+    var r = this._private.renderer;
+    r.renderTo(context, zoom, pan, pxRatio);
+    return this;
+  },
+  renderer: function renderer() {
+    return this._private.renderer;
+  },
+  forceRender: function forceRender() {
+    this.notify('draw');
+    return this;
+  },
+  resize: function resize() {
+    this.invalidateSize();
+    this.emitAndNotify('resize');
+    return this;
+  },
+  initRenderer: function initRenderer(options) {
+    var cy = this;
+    var RendererProto = cy.extension('renderer', options.name);
+
+    if (RendererProto == null) {
+      error("Can not initialise: No such renderer `".concat(options.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
+      return;
+    }
 
-                    return clusters;
-                };
+    if (options.wheelSensitivity !== undefined) {
+      warn("You have set a custom wheel sensitivity.  This will make your app zoom unnaturally when using mainstream mice.  You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");
+    }
 
-                var markovClustering = function markovClustering(options) {
-                    var nodes = this.nodes();
-                    var edges = this.edges();
-                    var cy = this.cy(); // Set parameters of algorithm:
+    var rOpts = rendererDefaults(options);
+    rOpts.cy = cy;
+    cy._private.renderer = new RendererProto(rOpts);
+    this.notify('init');
+  },
+  destroyRenderer: function destroyRenderer() {
+    var cy = this;
+    cy.notify('destroy'); // destroy the renderer
 
-                    var opts = setOptions(options); // Map each node to its position in node array
+    var domEle = cy.container();
 
-                    var id2position = {};
+    if (domEle) {
+      domEle._cyreg = null;
 
-                    for (var i = 0; i < nodes.length; i++) {
-                        id2position[nodes[i].id()] = i;
-                    } // Generate stochastic matrix M from input graph G (should be symmetric/undirected)
+      while (domEle.childNodes.length > 0) {
+        domEle.removeChild(domEle.childNodes[0]);
+      }
+    }
 
+    cy._private.renderer = null; // to be extra safe, remove the ref
+
+    cy.mutableElements().forEach(function (ele) {
+      var _p = ele._private;
+      _p.rscratch = {};
+      _p.rstyle = {};
+      _p.animation.current = [];
+      _p.animation.queue = [];
+    });
+  },
+  onRender: function onRender(fn) {
+    return this.on('render', fn);
+  },
+  offRender: function offRender(fn) {
+    return this.off('render', fn);
+  }
+};
+corefn$5.invalidateDimensions = corefn$5.resize;
+
+var corefn$6 = {
+  // get a collection
+  // - empty collection on no args
+  // - collection of elements in the graph on selector arg
+  // - guarantee a returned collection when elements or collection specified
+  collection: function collection(eles, opts) {
+    if (string(eles)) {
+      return this.$(eles);
+    } else if (elementOrCollection(eles)) {
+      return eles.collection();
+    } else if (array(eles)) {
+      return new Collection(this, eles, opts);
+    }
 
-                    var n = nodes.length,
-                        n2 = n * n;
+    return new Collection(this);
+  },
+  nodes: function nodes(selector) {
+    var nodes = this.$(function (ele) {
+      return ele.isNode();
+    });
 
-                    var M = new Array(n2),
-                        _M;
+    if (selector) {
+      return nodes.filter(selector);
+    }
 
-                    for (var _i = 0; _i < n2; _i++) {
-                        M[_i] = 0;
-                    }
+    return nodes;
+  },
+  edges: function edges(selector) {
+    var edges = this.$(function (ele) {
+      return ele.isEdge();
+    });
 
-                    for (var e = 0; e < edges.length; e++) {
-                        var edge = edges[e];
-                        var _i2 = id2position[edge.source().id()];
-                        var j = id2position[edge.target().id()];
-                        var sim = getSimilarity(edge, opts.attributes);
-                        M[_i2 * n + j] += sim; // G should be symmetric and undirected
+    if (selector) {
+      return edges.filter(selector);
+    }
 
-                        M[j * n + _i2] += sim;
-                    } // Begin Markov cluster algorithm
-                    // Step 1: Add self loops to each node, ie. add multFactor to matrix diagonal
+    return edges;
+  },
+  // search the graph like jQuery
+  $: function $(selector) {
+    var eles = this._private.elements;
 
+    if (selector) {
+      return eles.filter(selector);
+    } else {
+      return eles.spawnSelf();
+    }
+  },
+  mutableElements: function mutableElements() {
+    return this._private.elements;
+  }
+}; // aliases
 
-                    addLoops(M, n, opts.multFactor); // Step 2: M = normalize( M );
+corefn$6.elements = corefn$6.filter = corefn$6.$;
 
-                    normalize(M, n);
-                    var isStillMoving = true;
-                    var iterations = 0;
+var styfn = {}; // keys for style blocks, e.g. ttfftt
 
-                    while (isStillMoving && iterations < opts.maxIterations) {
-                        isStillMoving = false; // Step 3:
+var TRUE = 't';
+var FALSE = 'f'; // (potentially expensive calculation)
+// apply the style to the element based on
+// - its bypass
+// - what selectors match it
 
-                        _M = expand(M, n, opts.expandFactor); // Step 4:
+styfn.apply = function (eles) {
+  var self = this;
+  var _p = self._private;
+  var cy = _p.cy;
+  var updatedEles = cy.collection();
 
-                        M = inflate(_M, n, opts.inflateFactor); // Step 5: check to see if ~steady state has been reached
+  for (var ie = 0; ie < eles.length; ie++) {
+    var ele = eles[ie];
+    var cxtMeta = self.getContextMeta(ele);
 
-                        if (!hasConverged(M, _M, n2, 4)) {
-                            isStillMoving = true;
-                        }
+    if (cxtMeta.empty) {
+      continue;
+    }
 
-                        iterations++;
-                    } // Build clusters from matrix
+    var cxtStyle = self.getContextStyle(cxtMeta);
+    var app = self.applyContextStyle(cxtMeta, cxtStyle, ele);
 
+    if (ele._private.appliedInitStyle) {
+      self.updateTransitions(ele, app.diffProps);
+    } else {
+      ele._private.appliedInitStyle = true;
+    }
 
-                    var clusters = assign(M, n, nodes, cy); // Remove duplicate clusters due to symmetry of graph and M matrix
+    var hintsDiff = self.updateStyleHints(ele);
 
-                    clusters = removeDuplicates(clusters);
-                    return clusters;
-                };
+    if (hintsDiff) {
+      updatedEles.push(ele);
+    }
+  } // for elements
 
-                var markovClustering$1 = {
-                    markovClustering: markovClustering,
-                    mcl: markovClustering
-                };
 
-// Common distance metrics for clustering algorithms
+  return updatedEles;
+};
 
-                var identity = function identity(x) {
-                    return x;
-                };
+styfn.getPropertiesDiff = function (oldCxtKey, newCxtKey) {
+  var self = this;
+  var cache = self._private.propDiffs = self._private.propDiffs || {};
+  var dualCxtKey = oldCxtKey + '-' + newCxtKey;
+  var cachedVal = cache[dualCxtKey];
 
-                var absDiff = function absDiff(p, q) {
-                    return Math.abs(q - p);
-                };
+  if (cachedVal) {
+    return cachedVal;
+  }
 
-                var addAbsDiff = function addAbsDiff(total, p, q) {
-                    return total + absDiff(p, q);
-                };
+  var diffProps = [];
+  var addedProp = {};
 
-                var addSquaredDiff = function addSquaredDiff(total, p, q) {
-                    return total + Math.pow(q - p, 2);
-                };
+  for (var i = 0; i < self.length; i++) {
+    var cxt = self[i];
+    var oldHasCxt = oldCxtKey[i] === TRUE;
+    var newHasCxt = newCxtKey[i] === TRUE;
+    var cxtHasDiffed = oldHasCxt !== newHasCxt;
+    var cxtHasMappedProps = cxt.mappedProperties.length > 0;
 
-                var sqrt = function sqrt(x) {
-                    return Math.sqrt(x);
-                };
+    if (cxtHasDiffed || newHasCxt && cxtHasMappedProps) {
+      var props = void 0;
 
-                var maxAbsDiff = function maxAbsDiff(currentMax, p, q) {
-                    return Math.max(currentMax, absDiff(p, q));
-                };
+      if (cxtHasDiffed && cxtHasMappedProps) {
+        props = cxt.properties; // suffices b/c mappedProperties is a subset of properties
+      } else if (cxtHasDiffed) {
+        props = cxt.properties; // need to check them all
+      } else if (cxtHasMappedProps) {
+        props = cxt.mappedProperties; // only need to check mapped
+      }
 
-                var getDistance = function getDistance(length, getP, getQ, init, visit) {
-                    var post = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : identity;
-                    var ret = init;
-                    var p, q;
+      for (var j = 0; j < props.length; j++) {
+        var prop = props[j];
+        var name = prop.name; // if a later context overrides this property, then the fact that this context has switched/diffed doesn't matter
+        // (semi expensive check since it makes this function O(n^2) on context length, but worth it since overall result
+        // is cached)
 
-                    for (var dim = 0; dim < length; dim++) {
-                        p = getP(dim);
-                        q = getQ(dim);
-                        ret = visit(ret, p, q);
-                    }
+        var laterCxtOverrides = false;
 
-                    return post(ret);
-                };
+        for (var k = i + 1; k < self.length; k++) {
+          var laterCxt = self[k];
+          var hasLaterCxt = newCxtKey[k] === TRUE;
 
-                var distances = {
-                    euclidean: function euclidean(length, getP, getQ) {
-                        if (length >= 2) {
-                            return getDistance(length, getP, getQ, 0, addSquaredDiff, sqrt);
-                        } else {
-                            // for single attr case, more efficient to avoid sqrt
-                            return getDistance(length, getP, getQ, 0, addAbsDiff);
-                        }
-                    },
-                    squaredEuclidean: function squaredEuclidean(length, getP, getQ) {
-                        return getDistance(length, getP, getQ, 0, addSquaredDiff);
-                    },
-                    manhattan: function manhattan(length, getP, getQ) {
-                        return getDistance(length, getP, getQ, 0, addAbsDiff);
-                    },
-                    max: function max(length, getP, getQ) {
-                        return getDistance(length, getP, getQ, -Infinity, maxAbsDiff);
-                    }
-                }; // in case the user accidentally doesn't use camel case
+          if (!hasLaterCxt) {
+            continue;
+          } // can't override unless the context is active
 
-                distances['squared-euclidean'] = distances['squaredEuclidean'];
-                distances['squaredeuclidean'] = distances['squaredEuclidean'];
-                function clusteringDistance (method, length, getP, getQ, nodeP, nodeQ) {
-                    var impl;
 
-                    if (fn(method)) {
-                        impl = method;
-                    } else {
-                        impl = distances[method] || distances.euclidean;
-                    }
+          laterCxtOverrides = laterCxt.properties[prop.name] != null;
 
-                    if (length === 0 && fn(method)) {
-                        return impl(nodeP, nodeQ);
-                    } else {
-                        return impl(length, getP, getQ, nodeP, nodeQ);
-                    }
-                }
+          if (laterCxtOverrides) {
+            break;
+          } // exit early as long as one later context overrides
 
-                var defaults$5 = defaults({
-                    k: 2,
-                    m: 2,
-                    sensitivityThreshold: 0.0001,
-                    distance: 'euclidean',
-                    maxIterations: 10,
-                    attributes: [],
-                    testMode: false,
-                    testCentroids: null
-                });
+        }
 
-                var setOptions$1 = function setOptions(options) {
-                    return defaults$5(options);
-                };
-                /* eslint-enable */
+        if (!addedProp[name] && !laterCxtOverrides) {
+          addedProp[name] = true;
+          diffProps.push(name);
+        }
+      } // for props
 
+    } // if
 
-                var getDist = function getDist(type, node, centroid, attributes, mode) {
-                    var noNodeP = mode !== 'kMedoids';
-                    var getP = noNodeP ? function (i) {
-                        return centroid[i];
-                    } : function (i) {
-                        return attributes[i](centroid);
-                    };
+  } // for contexts
 
-                    var getQ = function getQ(i) {
-                        return attributes[i](node);
-                    };
 
-                    var nodeP = centroid;
-                    var nodeQ = node;
-                    return clusteringDistance(type, attributes.length, getP, getQ, nodeP, nodeQ);
-                };
+  cache[dualCxtKey] = diffProps;
+  return diffProps;
+};
 
-                var randomCentroids = function randomCentroids(nodes, k, attributes) {
-                    var ndim = attributes.length;
-                    var min = new Array(ndim);
-                    var max = new Array(ndim);
-                    var centroids = new Array(k);
-                    var centroid = null; // Find min, max values for each attribute dimension
+styfn.getContextMeta = function (ele) {
+  var self = this;
+  var cxtKey = '';
+  var diffProps;
+  var prevKey = ele._private.styleCxtKey || ''; // get the cxt key
 
-                    for (var i = 0; i < ndim; i++) {
-                        min[i] = nodes.min(attributes[i]).value;
-                        max[i] = nodes.max(attributes[i]).value;
-                    } // Build k centroids, each represented as an n-dim feature vector
+  for (var i = 0; i < self.length; i++) {
+    var context = self[i];
+    var contextSelectorMatches = context.selector && context.selector.matches(ele); // NB: context.selector may be null for 'core'
 
+    if (contextSelectorMatches) {
+      cxtKey += TRUE;
+    } else {
+      cxtKey += FALSE;
+    }
+  } // for context
 
-                    for (var c = 0; c < k; c++) {
-                        centroid = [];
 
-                        for (var _i = 0; _i < ndim; _i++) {
-                            centroid[_i] = Math.random() * (max[_i] - min[_i]) + min[_i]; // random initial value
-                        }
+  diffProps = self.getPropertiesDiff(prevKey, cxtKey);
+  ele._private.styleCxtKey = cxtKey;
+  return {
+    key: cxtKey,
+    diffPropNames: diffProps,
+    empty: diffProps.length === 0
+  };
+}; // gets a computed ele style object based on matched contexts
 
-                        centroids[c] = centroid;
-                    }
 
-                    return centroids;
-                };
+styfn.getContextStyle = function (cxtMeta) {
+  var cxtKey = cxtMeta.key;
+  var self = this;
+  var cxtStyles = this._private.contextStyles = this._private.contextStyles || {}; // if already computed style, returned cached copy
 
-                var classify = function classify(node, centroids, distance, attributes, type) {
-                    var min = Infinity;
-                    var index = 0;
+  if (cxtStyles[cxtKey]) {
+    return cxtStyles[cxtKey];
+  }
 
-                    for (var i = 0; i < centroids.length; i++) {
-                        var dist = getDist(distance, node, centroids[i], attributes, type);
+  var style = {
+    _private: {
+      key: cxtKey
+    }
+  };
 
-                        if (dist < min) {
-                            min = dist;
-                            index = i;
-                        }
-                    }
+  for (var i = 0; i < self.length; i++) {
+    var cxt = self[i];
+    var hasCxt = cxtKey[i] === TRUE;
 
-                    return index;
-                };
+    if (!hasCxt) {
+      continue;
+    }
 
-                var buildCluster = function buildCluster(centroid, nodes, assignment) {
-                    var cluster = [];
-                    var node = null;
+    for (var j = 0; j < cxt.properties.length; j++) {
+      var prop = cxt.properties[j];
+      style[prop.name] = prop;
+    }
+  }
 
-                    for (var n = 0; n < nodes.length; n++) {
-                        node = nodes[n];
+  cxtStyles[cxtKey] = style;
+  return style;
+};
+
+styfn.applyContextStyle = function (cxtMeta, cxtStyle, ele) {
+  var self = this;
+  var diffProps = cxtMeta.diffPropNames;
+  var retDiffProps = {};
+  var types = self.types;
+
+  for (var i = 0; i < diffProps.length; i++) {
+    var diffPropName = diffProps[i];
+    var cxtProp = cxtStyle[diffPropName];
+    var eleProp = ele.pstyle(diffPropName);
+
+    if (!cxtProp) {
+      // no context prop means delete
+      if (!eleProp) {
+        continue; // no existing prop means nothing needs to be removed
+        // nb affects initial application on mapped values like control-point-distances
+      } else if (eleProp.bypass) {
+        cxtProp = {
+          name: diffPropName,
+          deleteBypassed: true
+        };
+      } else {
+        cxtProp = {
+          name: diffPropName,
+          "delete": true
+        };
+      }
+    } // save cycles when the context prop doesn't need to be applied
+
+
+    if (eleProp === cxtProp) {
+      continue;
+    } // save cycles when a mapped context prop doesn't need to be applied
+
+
+    if (cxtProp.mapped === types.fn // context prop is function mapper
+    && eleProp != null // some props can be null even by default (e.g. a prop that overrides another one)
+    && eleProp.mapping != null // ele prop is a concrete value from from a mapper
+    && eleProp.mapping.value === cxtProp.value // the current prop on the ele is a flat prop value for the function mapper
+    ) {
+        // NB don't write to cxtProp, as it's shared among eles (stored in stylesheet)
+        var mapping = eleProp.mapping; // can write to mapping, as it's a per-ele copy
+
+        var fnValue = mapping.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss
+
+        if (fnValue === mapping.prevFnValue) {
+          continue;
+        }
+      }
 
-                        if (assignment[node.id()] === centroid) {
-                            //console.log("Node " + node.id() + " is associated with medoid #: " + m);
-                            cluster.push(node);
-                        }
-                    }
+    var retDiffProp = retDiffProps[diffPropName] = {
+      prev: eleProp
+    };
+    self.applyParsedProperty(ele, cxtProp);
+    retDiffProp.next = ele.pstyle(diffPropName);
 
-                    return cluster;
-                };
+    if (retDiffProp.next && retDiffProp.next.bypass) {
+      retDiffProp.next = retDiffProp.next.bypassed;
+    }
+  }
 
-                var haveValuesConverged = function haveValuesConverged(v1, v2, sensitivityThreshold) {
-                    return Math.abs(v2 - v1) <= sensitivityThreshold;
-                };
+  return {
+    diffProps: retDiffProps
+  };
+};
 
-                var haveMatricesConverged = function haveMatricesConverged(v1, v2, sensitivityThreshold) {
-                    for (var i = 0; i < v1.length; i++) {
-                        for (var j = 0; j < v1[i].length; j++) {
-                            var diff = Math.abs(v1[i][j] - v2[i][j]);
+styfn.updateStyleHints = function (ele) {
+  var _p = ele._private;
+  var self = this;
+  var propNames = self.propertyGroupNames;
+  var propGrKeys = self.propertyGroupKeys;
 
-                            if (diff > sensitivityThreshold) {
-                                return false;
-                            }
-                        }
-                    }
+  var propHash = function propHash(ele, propNames, seedKey) {
+    return self.getPropertiesHash(ele, propNames, seedKey);
+  };
 
-                    return true;
-                };
+  var oldStyleKey = _p.styleKey;
 
-                var seenBefore = function seenBefore(node, medoids, n) {
-                    for (var i = 0; i < n; i++) {
-                        if (node === medoids[i]) return true;
-                    }
+  if (ele.removed()) {
+    return false;
+  }
 
-                    return false;
-                };
+  var isNode = _p.group === 'nodes'; // get the style key hashes per prop group
+  // but lazily -- only use non-default prop values to reduce the number of hashes
+  //
 
-                var randomMedoids = function randomMedoids(nodes, k) {
-                    var medoids = new Array(k); // For small data sets, the probability of medoid conflict is greater,
-                    // so we need to check to see if we've already seen or chose this node before.
+  var overriddenStyles = ele._private.style;
+  propNames = Object.keys(overriddenStyles);
 
-                    if (nodes.length < 50) {
-                        // Randomly select k medoids from the n nodes
-                        for (var i = 0; i < k; i++) {
-                            var node = nodes[Math.floor(Math.random() * nodes.length)]; // If we've already chosen this node to be a medoid, don't choose it again (for small data sets).
-                            // Instead choose a different random node.
+  for (var i = 0; i < propGrKeys.length; i++) {
+    var grKey = propGrKeys[i];
+    _p.styleKeys[grKey] = [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT];
+  }
 
-                            while (seenBefore(node, medoids, i)) {
-                                node = nodes[Math.floor(Math.random() * nodes.length)];
-                            }
+  var updateGrKey1 = function updateGrKey1(val, grKey) {
+    return _p.styleKeys[grKey][0] = hashInt(val, _p.styleKeys[grKey][0]);
+  };
 
-                            medoids[i] = node;
-                        }
-                    } else {
-                        // Relatively large data set, so pretty safe to not check and just select random nodes
-                        for (var _i2 = 0; _i2 < k; _i2++) {
-                            medoids[_i2] = nodes[Math.floor(Math.random() * nodes.length)];
-                        }
-                    }
+  var updateGrKey2 = function updateGrKey2(val, grKey) {
+    return _p.styleKeys[grKey][1] = hashIntAlt(val, _p.styleKeys[grKey][1]);
+  };
 
-                    return medoids;
-                };
+  var updateGrKey = function updateGrKey(val, grKey) {
+    updateGrKey1(val, grKey);
+    updateGrKey2(val, grKey);
+  };
 
-                var findCost = function findCost(potentialNewMedoid, cluster, attributes) {
-                    var cost = 0;
+  var updateGrKeyWStr = function updateGrKeyWStr(strVal, grKey) {
+    for (var j = 0; j < strVal.length; j++) {
+      var ch = strVal.charCodeAt(j);
+      updateGrKey1(ch, grKey);
+      updateGrKey2(ch, grKey);
+    }
+  }; // - hashing works on 32 bit ints b/c we use bitwise ops
+  // - small numbers get cut off (e.g. 0.123 is seen as 0 by the hashing function)
+  // - raise up small numbers so more significant digits are seen by hashing
+  // - make small numbers larger than a normal value to avoid collisions
+  // - works in practice and it's relatively cheap
 
-                    for (var n = 0; n < cluster.length; n++) {
-                        cost += getDist('manhattan', cluster[n], potentialNewMedoid, attributes, 'kMedoids');
-                    }
 
-                    return cost;
-                };
+  var N = 2000000000;
 
-                var kMeans = function kMeans(options) {
-                    var cy = this.cy();
-                    var nodes = this.nodes();
-                    var node = null; // Set parameters of algorithm: # of clusters, distance metric, etc.
+  var cleanNum = function cleanNum(val) {
+    return -128 < val && val < 128 && Math.floor(val) !== val ? N - (val * 1024 | 0) : val;
+  };
 
-                    var opts = setOptions$1(options); // Begin k-means algorithm
+  for (var _i = 0; _i < propNames.length; _i++) {
+    var name = propNames[_i];
+    var parsedProp = overriddenStyles[name];
 
-                    var clusters = new Array(opts.k);
-                    var assignment = {};
-                    var centroids; // Step 1: Initialize centroid positions
+    if (parsedProp == null) {
+      continue;
+    }
 
-                    if (opts.testMode) {
-                        if (typeof opts.testCentroids === 'number') {
-                            centroids = randomCentroids(nodes, opts.k, opts.attributes);
-                        } else if (_typeof(opts.testCentroids) === 'object') {
-                            centroids = opts.testCentroids;
-                        } else {
-                            centroids = randomCentroids(nodes, opts.k, opts.attributes);
-                        }
-                    } else {
-                        centroids = randomCentroids(nodes, opts.k, opts.attributes);
-                    }
+    var propInfo = this.properties[name];
+    var type = propInfo.type;
+    var _grKey = propInfo.groupKey;
+    var normalizedNumberVal = void 0;
+
+    if (propInfo.hashOverride != null) {
+      normalizedNumberVal = propInfo.hashOverride(ele, parsedProp);
+    } else if (parsedProp.pfValue != null) {
+      normalizedNumberVal = parsedProp.pfValue;
+    } // might not be a number if it allows enums
+
+
+    var numberVal = propInfo.enums == null ? parsedProp.value : null;
+    var haveNormNum = normalizedNumberVal != null;
+    var haveUnitedNum = numberVal != null;
+    var haveNum = haveNormNum || haveUnitedNum;
+    var units = parsedProp.units; // numbers are cheaper to hash than strings
+    // 1 hash op vs n hash ops (for length n string)
+
+    if (type.number && haveNum && !type.multiple) {
+      var v = haveNormNum ? normalizedNumberVal : numberVal;
+      updateGrKey(cleanNum(v), _grKey);
+
+      if (!haveNormNum && units != null) {
+        updateGrKeyWStr(units, _grKey);
+      }
+    } else {
+      updateGrKeyWStr(parsedProp.strValue, _grKey);
+    }
+  } // overall style key
+  //
 
-                    var isStillMoving = true;
-                    var iterations = 0;
 
-                    while (isStillMoving && iterations < opts.maxIterations) {
-                        // Step 2: Assign nodes to the nearest centroid
-                        for (var n = 0; n < nodes.length; n++) {
-                            node = nodes[n]; // Determine which cluster this node belongs to: node id => cluster #
+  var hash = [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT];
 
-                            assignment[node.id()] = classify(node, centroids, opts.distance, opts.attributes, 'kMeans');
-                        } // Step 3: For each of the k clusters, update its centroid
+  for (var _i2 = 0; _i2 < propGrKeys.length; _i2++) {
+    var _grKey2 = propGrKeys[_i2];
+    var grHash = _p.styleKeys[_grKey2];
+    hash[0] = hashInt(grHash[0], hash[0]);
+    hash[1] = hashIntAlt(grHash[1], hash[1]);
+  }
 
+  _p.styleKey = combineHashes(hash[0], hash[1]); // label dims
+  //
+
+  var sk = _p.styleKeys;
+  _p.labelDimsKey = combineHashesArray(sk.labelDimensions);
+  var labelKeys = propHash(ele, ['label'], sk.labelDimensions);
+  _p.labelKey = combineHashesArray(labelKeys);
+  _p.labelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, labelKeys));
+
+  if (!isNode) {
+    var sourceLabelKeys = propHash(ele, ['source-label'], sk.labelDimensions);
+    _p.sourceLabelKey = combineHashesArray(sourceLabelKeys);
+    _p.sourceLabelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, sourceLabelKeys));
+    var targetLabelKeys = propHash(ele, ['target-label'], sk.labelDimensions);
+    _p.targetLabelKey = combineHashesArray(targetLabelKeys);
+    _p.targetLabelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, targetLabelKeys));
+  } // node
+  //
+
+
+  if (isNode) {
+    var _p$styleKeys = _p.styleKeys,
+        nodeBody = _p$styleKeys.nodeBody,
+        nodeBorder = _p$styleKeys.nodeBorder,
+        backgroundImage = _p$styleKeys.backgroundImage,
+        compound = _p$styleKeys.compound,
+        pie = _p$styleKeys.pie;
+    var nodeKeys = [nodeBody, nodeBorder, backgroundImage, compound, pie].filter(function (k) {
+      return k != null;
+    }).reduce(hashArrays, [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT]);
+    _p.nodeKey = combineHashesArray(nodeKeys);
+    _p.hasPie = pie != null && pie[0] !== DEFAULT_HASH_SEED && pie[1] !== DEFAULT_HASH_SEED_ALT;
+  }
 
-                        isStillMoving = false;
+  return oldStyleKey !== _p.styleKey;
+};
+
+styfn.clearStyleHints = function (ele) {
+  var _p = ele._private;
+  _p.styleCxtKey = '';
+  _p.styleKeys = {};
+  _p.styleKey = null;
+  _p.labelKey = null;
+  _p.labelStyleKey = null;
+  _p.sourceLabelKey = null;
+  _p.sourceLabelStyleKey = null;
+  _p.targetLabelKey = null;
+  _p.targetLabelStyleKey = null;
+  _p.nodeKey = null;
+  _p.hasPie = null;
+}; // apply a property to the style (for internal use)
+// returns whether application was successful
+//
+// now, this function flattens the property, and here's how:
+//
+// for parsedProp:{ bypass: true, deleteBypass: true }
+// no property is generated, instead the bypass property in the
+// element's style is replaced by what's pointed to by the `bypassed`
+// field in the bypass property (i.e. restoring the property the
+// bypass was overriding)
+//
+// for parsedProp:{ mapped: truthy }
+// the generated flattenedProp:{ mapping: prop }
+//
+// for parsedProp:{ bypass: true }
+// the generated flattenedProp:{ bypassed: parsedProp }
 
-                        for (var c = 0; c < opts.k; c++) {
-                            // Get all nodes that belong to this cluster
-                            var cluster = buildCluster(c, nodes, assignment);
 
-                            if (cluster.length === 0) {
-                                // If cluster is empty, break out early & move to next cluster
-                                continue;
-                            } // Update centroids by calculating avg of all nodes within the cluster.
+styfn.applyParsedProperty = function (ele, parsedProp) {
+  var self = this;
+  var prop = parsedProp;
+  var style = ele._private.style;
+  var flatProp;
+  var types = self.types;
+  var type = self.properties[prop.name].type;
+  var propIsBypass = prop.bypass;
+  var origProp = style[prop.name];
+  var origPropIsBypass = origProp && origProp.bypass;
+  var _p = ele._private;
+  var flatPropMapping = 'mapping';
+
+  var getVal = function getVal(p) {
+    if (p == null) {
+      return null;
+    } else if (p.pfValue != null) {
+      return p.pfValue;
+    } else {
+      return p.value;
+    }
+  };
 
+  var checkTriggers = function checkTriggers() {
+    var fromVal = getVal(origProp);
+    var toVal = getVal(prop);
+    self.checkTriggers(ele, prop.name, fromVal, toVal);
+  }; // edge sanity checks to prevent the client from making serious mistakes
 
-                            var ndim = opts.attributes.length;
-                            var centroid = centroids[c]; // [ dim_1, dim_2, dim_3, ... , dim_n ]
 
-                            var newCentroid = new Array(ndim);
-                            var sum = new Array(ndim);
+  if (parsedProp.name === 'curve-style' && ele.isEdge() && ( // loops must be bundled beziers
+  parsedProp.value !== 'bezier' && ele.isLoop() || // edges connected to compound nodes can not be haystacks
+  parsedProp.value === 'haystack' && (ele.source().isParent() || ele.target().isParent()))) {
+    prop = parsedProp = this.parse(parsedProp.name, 'bezier', propIsBypass);
+  }
 
-                            for (var d = 0; d < ndim; d++) {
-                                sum[d] = 0.0;
+  if (prop["delete"]) {
+    // delete the property and use the default value on falsey value
+    style[prop.name] = undefined;
+    checkTriggers();
+    return true;
+  }
 
-                                for (var i = 0; i < cluster.length; i++) {
-                                    node = cluster[i];
-                                    sum[d] += opts.attributes[d](node);
-                                }
+  if (prop.deleteBypassed) {
+    // delete the property that the
+    if (!origProp) {
+      checkTriggers();
+      return true; // can't delete if no prop
+    } else if (origProp.bypass) {
+      // delete bypassed
+      origProp.bypassed = undefined;
+      checkTriggers();
+      return true;
+    } else {
+      return false; // we're unsuccessful deleting the bypassed
+    }
+  } // check if we need to delete the current bypass
+
+
+  if (prop.deleteBypass) {
+    // then this property is just here to indicate we need to delete
+    if (!origProp) {
+      checkTriggers();
+      return true; // property is already not defined
+    } else if (origProp.bypass) {
+      // then replace the bypass property with the original
+      // because the bypassed property was already applied (and therefore parsed), we can just replace it (no reapplying necessary)
+      style[prop.name] = origProp.bypassed;
+      checkTriggers();
+      return true;
+    } else {
+      return false; // we're unsuccessful deleting the bypass
+    }
+  }
 
-                                newCentroid[d] = sum[d] / cluster.length; // Check to see if algorithm has converged, i.e. when centroids no longer change
+  var printMappingErr = function printMappingErr() {
+    warn('Do not assign mappings to elements without corresponding data (i.e. ele `' + ele.id() + '` has no mapping for property `' + prop.name + '` with data field `' + prop.field + '`); try a `[' + prop.field + ']` selector to limit scope to elements with `' + prop.field + '` defined');
+  }; // put the property in the style objects
 
-                                if (!haveValuesConverged(newCentroid[d], centroid[d], opts.sensitivityThreshold)) {
-                                    isStillMoving = true;
-                                }
-                            }
 
-                            centroids[c] = newCentroid;
-                            clusters[c] = cy.collection(cluster);
-                        }
+  switch (prop.mapped) {
+    // flatten the property if mapped
+    case types.mapData:
+      {
+        // flatten the field (e.g. data.foo.bar)
+        var fields = prop.field.split('.');
+        var fieldVal = _p.data;
 
-                        iterations++;
-                    }
+        for (var i = 0; i < fields.length && fieldVal; i++) {
+          var field = fields[i];
+          fieldVal = fieldVal[field];
+        }
 
-                    return clusters;
-                };
+        if (fieldVal == null) {
+          printMappingErr();
+          return false;
+        }
 
-                var kMedoids = function kMedoids(options) {
-                    var cy = this.cy();
-                    var nodes = this.nodes();
-                    var node = null;
-                    var opts = setOptions$1(options); // Begin k-medoids algorithm
-
-                    var clusters = new Array(opts.k);
-                    var medoids;
-                    var assignment = {};
-                    var curCost;
-                    var minCosts = new Array(opts.k); // minimum cost configuration for each cluster
-                    // Step 1: Initialize k medoids
-
-                    if (opts.testMode) {
-                        if (typeof opts.testCentroids === 'number') ; else if (_typeof(opts.testCentroids) === 'object') {
-                            medoids = opts.testCentroids;
-                        } else {
-                            medoids = randomMedoids(nodes, opts.k);
-                        }
-                    } else {
-                        medoids = randomMedoids(nodes, opts.k);
-                    }
+        var percent;
 
-                    var isStillMoving = true;
-                    var iterations = 0;
+        if (!number(fieldVal)) {
+          // then don't apply and fall back on the existing style
+          warn('Do not use continuous mappers without specifying numeric data (i.e. `' + prop.field + ': ' + fieldVal + '` for `' + ele.id() + '` is non-numeric)');
+          return false;
+        } else {
+          var fieldWidth = prop.fieldMax - prop.fieldMin;
 
-                    while (isStillMoving && iterations < opts.maxIterations) {
-                        // Step 2: Assign nodes to the nearest medoid
-                        for (var n = 0; n < nodes.length; n++) {
-                            node = nodes[n]; // Determine which cluster this node belongs to: node id => cluster #
+          if (fieldWidth === 0) {
+            // safety check -- not strictly necessary as no props of zero range should be passed here
+            percent = 0;
+          } else {
+            percent = (fieldVal - prop.fieldMin) / fieldWidth;
+          }
+        } // make sure to bound percent value
 
-                            assignment[node.id()] = classify(node, medoids, opts.distance, opts.attributes, 'kMedoids');
-                        }
 
-                        isStillMoving = false; // Step 3: For each medoid m, and for each node assciated with mediod m,
-                        // select the node with the lowest configuration cost as new medoid.
+        if (percent < 0) {
+          percent = 0;
+        } else if (percent > 1) {
+          percent = 1;
+        }
 
-                        for (var m = 0; m < medoids.length; m++) {
-                            // Get all nodes that belong to this medoid
-                            var cluster = buildCluster(m, nodes, assignment);
+        if (type.color) {
+          var r1 = prop.valueMin[0];
+          var r2 = prop.valueMax[0];
+          var g1 = prop.valueMin[1];
+          var g2 = prop.valueMax[1];
+          var b1 = prop.valueMin[2];
+          var b2 = prop.valueMax[2];
+          var a1 = prop.valueMin[3] == null ? 1 : prop.valueMin[3];
+          var a2 = prop.valueMax[3] == null ? 1 : prop.valueMax[3];
+          var clr = [Math.round(r1 + (r2 - r1) * percent), Math.round(g1 + (g2 - g1) * percent), Math.round(b1 + (b2 - b1) * percent), Math.round(a1 + (a2 - a1) * percent)];
+          flatProp = {
+            // colours are simple, so just create the flat property instead of expensive string parsing
+            bypass: prop.bypass,
+            // we're a bypass if the mapping property is a bypass
+            name: prop.name,
+            value: clr,
+            strValue: 'rgb(' + clr[0] + ', ' + clr[1] + ', ' + clr[2] + ')'
+          };
+        } else if (type.number) {
+          var calcValue = prop.valueMin + (prop.valueMax - prop.valueMin) * percent;
+          flatProp = this.parse(prop.name, calcValue, prop.bypass, flatPropMapping);
+        } else {
+          return false; // can only map to colours and numbers
+        }
 
-                            if (cluster.length === 0) {
-                                // If cluster is empty, break out early & move to next cluster
-                                continue;
-                            }
+        if (!flatProp) {
+          // if we can't flatten the property, then don't apply the property and fall back on the existing style
+          printMappingErr();
+          return false;
+        }
 
-                            minCosts[m] = findCost(medoids[m], cluster, opts.attributes); // original cost
-                            // Select different medoid if its configuration has the lowest cost
+        flatProp.mapping = prop; // keep a reference to the mapping
 
-                            for (var _n = 0; _n < cluster.length; _n++) {
-                                curCost = findCost(cluster[_n], cluster, opts.attributes);
+        prop = flatProp; // the flattened (mapped) property is the one we want
 
-                                if (curCost < minCosts[m]) {
-                                    minCosts[m] = curCost;
-                                    medoids[m] = cluster[_n];
-                                    isStillMoving = true;
-                                }
-                            }
+        break;
+      }
+    // direct mapping
 
-                            clusters[m] = cy.collection(cluster);
-                        }
+    case types.data:
+      {
+        // flatten the field (e.g. data.foo.bar)
+        var _fields = prop.field.split('.');
 
-                        iterations++;
-                    }
+        var _fieldVal = _p.data;
 
-                    return clusters;
-                };
+        for (var _i3 = 0; _i3 < _fields.length && _fieldVal; _i3++) {
+          var _field = _fields[_i3];
+          _fieldVal = _fieldVal[_field];
+        }
 
-                var updateCentroids = function updateCentroids(centroids, nodes, U, weight, opts) {
-                    var numerator, denominator;
+        if (_fieldVal != null) {
+          flatProp = this.parse(prop.name, _fieldVal, prop.bypass, flatPropMapping);
+        }
 
-                    for (var n = 0; n < nodes.length; n++) {
-                        for (var c = 0; c < centroids.length; c++) {
-                            weight[n][c] = Math.pow(U[n][c], opts.m);
-                        }
-                    }
+        if (!flatProp) {
+          // if we can't flatten the property, then don't apply and fall back on the existing style
+          printMappingErr();
+          return false;
+        }
 
-                    for (var _c = 0; _c < centroids.length; _c++) {
-                        for (var dim = 0; dim < opts.attributes.length; dim++) {
-                            numerator = 0;
-                            denominator = 0;
+        flatProp.mapping = prop; // keep a reference to the mapping
 
-                            for (var _n2 = 0; _n2 < nodes.length; _n2++) {
-                                numerator += weight[_n2][_c] * opts.attributes[dim](nodes[_n2]);
-                                denominator += weight[_n2][_c];
-                            }
+        prop = flatProp; // the flattened (mapped) property is the one we want
 
-                            centroids[_c][dim] = numerator / denominator;
-                        }
-                    }
-                };
+        break;
+      }
 
-                var updateMembership = function updateMembership(U, _U, centroids, nodes, opts) {
-                    // Save previous step
-                    for (var i = 0; i < U.length; i++) {
-                        _U[i] = U[i].slice();
-                    }
+    case types.fn:
+      {
+        var fn = prop.value;
+        var fnRetVal = prop.fnValue != null ? prop.fnValue : fn(ele); // check for cached value before calling function
 
-                    var sum, numerator, denominator;
-                    var pow = 2 / (opts.m - 1);
+        prop.prevFnValue = fnRetVal;
 
-                    for (var c = 0; c < centroids.length; c++) {
-                        for (var n = 0; n < nodes.length; n++) {
-                            sum = 0;
+        if (fnRetVal == null) {
+          warn('Custom function mappers may not return null (i.e. `' + prop.name + '` for ele `' + ele.id() + '` is null)');
+          return false;
+        }
 
-                            for (var k = 0; k < centroids.length; k++) {
-                                // against all other centroids
-                                numerator = getDist(opts.distance, nodes[n], centroids[c], opts.attributes, 'cmeans');
-                                denominator = getDist(opts.distance, nodes[n], centroids[k], opts.attributes, 'cmeans');
-                                sum += Math.pow(numerator / denominator, pow);
-                            }
+        flatProp = this.parse(prop.name, fnRetVal, prop.bypass, flatPropMapping);
 
-                            U[n][c] = 1 / sum;
-                        }
-                    }
-                };
+        if (!flatProp) {
+          warn('Custom function mappers may not return invalid values for the property type (i.e. `' + prop.name + '` for ele `' + ele.id() + '` is invalid)');
+          return false;
+        }
 
-                var assign$1 = function assign(nodes, U, opts, cy) {
-                    var clusters = new Array(opts.k);
+        flatProp.mapping = copy(prop); // keep a reference to the mapping
 
-                    for (var c = 0; c < clusters.length; c++) {
-                        clusters[c] = [];
-                    }
+        prop = flatProp; // the flattened (mapped) property is the one we want
 
-                    var max;
-                    var index;
+        break;
+      }
 
-                    for (var n = 0; n < U.length; n++) {
-                        // for each node (U is N x C matrix)
-                        max = -Infinity;
-                        index = -1; // Determine which cluster the node is most likely to belong in
+    case undefined:
+      break;
+    // just set the property
 
-                        for (var _c2 = 0; _c2 < U[0].length; _c2++) {
-                            if (U[n][_c2] > max) {
-                                max = U[n][_c2];
-                                index = _c2;
-                            }
-                        }
+    default:
+      return false;
+    // not a valid mapping
+  } // if the property is a bypass property, then link the resultant property to the original one
 
-                        clusters[index].push(nodes[n]);
-                    } // Turn every array into a collection of nodes
 
+  if (propIsBypass) {
+    if (origPropIsBypass) {
+      // then this bypass overrides the existing one
+      prop.bypassed = origProp.bypassed; // steal bypassed prop from old bypass
+    } else {
+      // then link the orig prop to the new bypass
+      prop.bypassed = origProp;
+    }
 
-                    for (var _c3 = 0; _c3 < clusters.length; _c3++) {
-                        clusters[_c3] = cy.collection(clusters[_c3]);
-                    }
+    style[prop.name] = prop; // and set
+  } else {
+    // prop is not bypass
+    if (origPropIsBypass) {
+      // then keep the orig prop (since it's a bypass) and link to the new prop
+      origProp.bypassed = prop;
+    } else {
+      // then just replace the old prop with the new one
+      style[prop.name] = prop;
+    }
+  }
 
-                    return clusters;
-                };
+  checkTriggers();
+  return true;
+};
+
+styfn.cleanElements = function (eles, keepBypasses) {
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    this.clearStyleHints(ele);
+    ele.dirtyCompoundBoundsCache();
+    ele.dirtyBoundingBoxCache();
+
+    if (!keepBypasses) {
+      ele._private.style = {};
+    } else {
+      var style = ele._private.style;
+      var propNames = Object.keys(style);
+
+      for (var j = 0; j < propNames.length; j++) {
+        var propName = propNames[j];
+        var eleProp = style[propName];
+
+        if (eleProp != null) {
+          if (eleProp.bypass) {
+            eleProp.bypassed = null;
+          } else {
+            style[propName] = null;
+          }
+        }
+      }
+    }
+  }
+}; // updates the visual style for all elements (useful for manual style modification after init)
 
-                var fuzzyCMeans = function fuzzyCMeans(options) {
-                    var cy = this.cy();
-                    var nodes = this.nodes();
-                    var opts = setOptions$1(options); // Begin fuzzy c-means algorithm
 
-                    var clusters;
-                    var centroids;
-                    var U;
+styfn.update = function () {
+  var cy = this._private.cy;
+  var eles = cy.mutableElements();
+  eles.updateStyle();
+}; // diffProps : { name => { prev, next } }
 
-                    var _U;
 
-                    var weight; // Step 1: Initialize letiables.
+styfn.updateTransitions = function (ele, diffProps) {
+  var self = this;
+  var _p = ele._private;
+  var props = ele.pstyle('transition-property').value;
+  var duration = ele.pstyle('transition-duration').pfValue;
+  var delay = ele.pstyle('transition-delay').pfValue;
 
-                    _U = new Array(nodes.length);
+  if (props.length > 0 && duration > 0) {
+    var style = {}; // build up the style to animate towards
 
-                    for (var i = 0; i < nodes.length; i++) {
-                        // N x C matrix
-                        _U[i] = new Array(opts.k);
-                    }
+    var anyPrev = false;
 
-                    U = new Array(nodes.length);
+    for (var i = 0; i < props.length; i++) {
+      var prop = props[i];
+      var styProp = ele.pstyle(prop);
+      var diffProp = diffProps[prop];
 
-                    for (var _i3 = 0; _i3 < nodes.length; _i3++) {
-                        // N x C matrix
-                        U[_i3] = new Array(opts.k);
-                    }
+      if (!diffProp) {
+        continue;
+      }
 
-                    for (var _i4 = 0; _i4 < nodes.length; _i4++) {
-                        var total = 0;
+      var prevProp = diffProp.prev;
+      var fromProp = prevProp;
+      var toProp = diffProp.next != null ? diffProp.next : styProp;
+      var diff = false;
+      var initVal = void 0;
+      var initDt = 0.000001; // delta time % value for initVal (allows animating out of init zero opacity)
 
-                        for (var j = 0; j < opts.k; j++) {
-                            U[_i4][j] = Math.random();
-                            total += U[_i4][j];
-                        }
+      if (!fromProp) {
+        continue;
+      } // consider px values
 
-                        for (var _j = 0; _j < opts.k; _j++) {
-                            U[_i4][_j] = U[_i4][_j] / total;
-                        }
-                    }
 
-                    centroids = new Array(opts.k);
+      if (number(fromProp.pfValue) && number(toProp.pfValue)) {
+        diff = toProp.pfValue - fromProp.pfValue; // nonzero is truthy
 
-                    for (var _i5 = 0; _i5 < opts.k; _i5++) {
-                        centroids[_i5] = new Array(opts.attributes.length);
-                    }
+        initVal = fromProp.pfValue + initDt * diff; // consider numerical values
+      } else if (number(fromProp.value) && number(toProp.value)) {
+        diff = toProp.value - fromProp.value; // nonzero is truthy
 
-                    weight = new Array(nodes.length);
+        initVal = fromProp.value + initDt * diff; // consider colour values
+      } else if (array(fromProp.value) && array(toProp.value)) {
+        diff = fromProp.value[0] !== toProp.value[0] || fromProp.value[1] !== toProp.value[1] || fromProp.value[2] !== toProp.value[2];
+        initVal = fromProp.strValue;
+      } // the previous value is good for an animation only if it's different
 
-                    for (var _i6 = 0; _i6 < nodes.length; _i6++) {
-                        // N x C matrix
-                        weight[_i6] = new Array(opts.k);
-                    } // end init FCM
 
+      if (diff) {
+        style[prop] = toProp.strValue; // to val
 
-                    var isStillMoving = true;
-                    var iterations = 0;
+        this.applyBypass(ele, prop, initVal); // from val
 
-                    while (isStillMoving && iterations < opts.maxIterations) {
-                        isStillMoving = false; // Step 2: Calculate the centroids for each step.
+        anyPrev = true;
+      }
+    } // end if props allow ani
+    // can't transition if there's nothing previous to transition from
 
-                        updateCentroids(centroids, nodes, U, weight, opts); // Step 3: Update the partition matrix U.
 
-                        updateMembership(U, _U, centroids, nodes, opts); // Step 4: Check for convergence.
+    if (!anyPrev) {
+      return;
+    }
 
-                        if (!haveMatricesConverged(U, _U, opts.sensitivityThreshold)) {
-                            isStillMoving = true;
-                        }
+    _p.transitioning = true;
+    new Promise$1(function (resolve) {
+      if (delay > 0) {
+        ele.delayAnimation(delay).play().promise().then(resolve);
+      } else {
+        resolve();
+      }
+    }).then(function () {
+      return ele.animation({
+        style: style,
+        duration: duration,
+        easing: ele.pstyle('transition-timing-function').value,
+        queue: false
+      }).play().promise();
+    }).then(function () {
+      // if( !isBypass ){
+      self.removeBypasses(ele, props);
+      ele.emitAndNotify('style'); // }
+
+      _p.transitioning = false;
+    });
+  } else if (_p.transitioning) {
+    this.removeBypasses(ele, props);
+    ele.emitAndNotify('style');
+    _p.transitioning = false;
+  }
+};
 
-                        iterations++;
-                    } // Assign nodes to clusters with highest probability.
+styfn.checkTrigger = function (ele, name, fromValue, toValue, getTrigger, onTrigger) {
+  var prop = this.properties[name];
+  var triggerCheck = getTrigger(prop);
 
+  if (triggerCheck != null && triggerCheck(fromValue, toValue)) {
+    onTrigger(prop);
+  }
+};
+
+styfn.checkZOrderTrigger = function (ele, name, fromValue, toValue) {
+  var _this = this;
+
+  this.checkTrigger(ele, name, fromValue, toValue, function (prop) {
+    return prop.triggersZOrder;
+  }, function () {
+    _this._private.cy.notify('zorder', ele);
+  });
+};
+
+styfn.checkBoundsTrigger = function (ele, name, fromValue, toValue) {
+  this.checkTrigger(ele, name, fromValue, toValue, function (prop) {
+    return prop.triggersBounds;
+  }, function (prop) {
+    ele.dirtyCompoundBoundsCache();
+    ele.dirtyBoundingBoxCache(); // if the prop change makes the bb of pll bezier edges invalid,
+    // then dirty the pll edge bb cache as well
+
+    if ( // only for beziers -- so performance of other edges isn't affected
+    name === 'curve-style' && (fromValue === 'bezier' || toValue === 'bezier') && prop.triggersBoundsOfParallelBeziers) {
+      ele.parallelEdges().forEach(function (pllEdge) {
+        if (pllEdge.isBundledBezier()) {
+          pllEdge.dirtyBoundingBoxCache();
+        }
+      });
+    }
+  });
+};
 
-                    clusters = assign$1(nodes, U, opts, cy);
-                    return {
-                        clusters: clusters,
-                        degreeOfMembership: U
-                    };
-                };
+styfn.checkTriggers = function (ele, name, fromValue, toValue) {
+  ele.dirtyStyleCache();
+  this.checkZOrderTrigger(ele, name, fromValue, toValue);
+  this.checkBoundsTrigger(ele, name, fromValue, toValue);
+};
 
-                var kClustering = {
-                    kMeans: kMeans,
-                    kMedoids: kMedoids,
-                    fuzzyCMeans: fuzzyCMeans,
-                    fcm: fuzzyCMeans
-                };
+var styfn$1 = {}; // bypasses are applied to an existing style on an element, and just tacked on temporarily
+// returns true iff application was successful for at least 1 specified property
 
-// Implemented by Zoe Xi @zoexi for GSOC 2016
-                var defaults$6 = defaults({
-                    distance: 'euclidean',
-                    // distance metric to compare nodes
-                    linkage: 'min',
-                    // linkage criterion : how to determine the distance between clusters of nodes
-                    mode: 'threshold',
-                    // mode:'threshold' => clusters must be threshold distance apart
-                    threshold: Infinity,
-                    // the distance threshold
-                    // mode:'dendrogram' => the nodes are organised as leaves in a tree (siblings are close), merging makes clusters
-                    addDendrogram: false,
-                    // whether to add the dendrogram to the graph for viz
-                    dendrogramDepth: 0,
-                    // depth at which dendrogram branches are merged into the returned clusters
-                    attributes: [] // array of attr functions
+styfn$1.applyBypass = function (eles, name, value, updateTransitions) {
+  var self = this;
+  var props = [];
+  var isBypass = true; // put all the properties (can specify one or many) in an array after parsing them
+
+  if (name === '*' || name === '**') {
+    // apply to all property names
+    if (value !== undefined) {
+      for (var i = 0; i < self.properties.length; i++) {
+        var prop = self.properties[i];
+        var _name = prop.name;
+        var parsedProp = this.parse(_name, value, true);
+
+        if (parsedProp) {
+          props.push(parsedProp);
+        }
+      }
+    }
+  } else if (string(name)) {
+    // then parse the single property
+    var _parsedProp = this.parse(name, value, true);
 
-                });
-                var linkageAliases = {
-                    'single': 'min',
-                    'complete': 'max'
-                };
+    if (_parsedProp) {
+      props.push(_parsedProp);
+    }
+  } else if (plainObject(name)) {
+    // then parse each property
+    var specifiedProps = name;
+    updateTransitions = value;
+    var names = Object.keys(specifiedProps);
+
+    for (var _i = 0; _i < names.length; _i++) {
+      var _name2 = names[_i];
+      var _value = specifiedProps[_name2];
+
+      if (_value === undefined) {
+        // try camel case name too
+        _value = specifiedProps[dash2camel(_name2)];
+      }
+
+      if (_value !== undefined) {
+        var _parsedProp2 = this.parse(_name2, _value, true);
+
+        if (_parsedProp2) {
+          props.push(_parsedProp2);
+        }
+      }
+    }
+  } else {
+    // can't do anything without well defined properties
+    return false;
+  } // we've failed if there are no valid properties
 
-                var setOptions$2 = function setOptions(options) {
-                    var opts = defaults$6(options);
-                    var preferredAlias = linkageAliases[opts.linkage];
 
-                    if (preferredAlias != null) {
-                        opts.linkage = preferredAlias;
-                    }
+  if (props.length === 0) {
+    return false;
+  } // now, apply the bypass properties on the elements
 
-                    return opts;
-                };
 
-                var mergeClosest = function mergeClosest(clusters, index, dists, mins, opts) {
-                    // Find two closest clusters from cached mins
-                    var minKey = 0;
-                    var min = Infinity;
-                    var dist;
-                    var attrs = opts.attributes;
-
-                    var getDist = function getDist(n1, n2) {
-                        return clusteringDistance(opts.distance, attrs.length, function (i) {
-                            return attrs[i](n1);
-                        }, function (i) {
-                            return attrs[i](n2);
-                        }, n1, n2);
-                    };
-
-                    for (var i = 0; i < clusters.length; i++) {
-                        var key = clusters[i].key;
-                        var _dist = dists[key][mins[key]];
-
-                        if (_dist < min) {
-                            minKey = key;
-                            min = _dist;
-                        }
-                    }
+  var ret = false; // return true if at least one succesful bypass applied
 
-                    if (opts.mode === 'threshold' && min >= opts.threshold || opts.mode === 'dendrogram' && clusters.length === 1) {
-                        return false;
-                    }
+  for (var _i2 = 0; _i2 < eles.length; _i2++) {
+    // for each ele
+    var ele = eles[_i2];
+    var diffProps = {};
+    var diffProp = void 0;
 
-                    var c1 = index[minKey];
-                    var c2 = index[mins[minKey]];
-                    var merged; // Merge two closest clusters
+    for (var j = 0; j < props.length; j++) {
+      // for each prop
+      var _prop = props[j];
 
-                    if (opts.mode === 'dendrogram') {
-                        merged = {
-                            left: c1,
-                            right: c2,
-                            key: c1.key
-                        };
-                    } else {
-                        merged = {
-                            value: c1.value.concat(c2.value),
-                            key: c1.key
-                        };
-                    }
+      if (updateTransitions) {
+        var prevProp = ele.pstyle(_prop.name);
+        diffProp = diffProps[_prop.name] = {
+          prev: prevProp
+        };
+      }
 
-                    clusters[c1.index] = merged;
-                    clusters.splice(c2.index, 1);
-                    index[c1.key] = merged; // Update distances with new merged cluster
+      ret = this.applyParsedProperty(ele, copy(_prop)) || ret;
 
-                    for (var _i = 0; _i < clusters.length; _i++) {
-                        var cur = clusters[_i];
+      if (updateTransitions) {
+        diffProp.next = ele.pstyle(_prop.name);
+      }
+    } // for props
 
-                        if (c1.key === cur.key) {
-                            dist = Infinity;
-                        } else if (opts.linkage === 'min') {
-                            dist = dists[c1.key][cur.key];
 
-                            if (dists[c1.key][cur.key] > dists[c2.key][cur.key]) {
-                                dist = dists[c2.key][cur.key];
-                            }
-                        } else if (opts.linkage === 'max') {
-                            dist = dists[c1.key][cur.key];
+    if (ret) {
+      this.updateStyleHints(ele);
+    }
 
-                            if (dists[c1.key][cur.key] < dists[c2.key][cur.key]) {
-                                dist = dists[c2.key][cur.key];
-                            }
-                        } else if (opts.linkage === 'mean') {
-                            dist = (dists[c1.key][cur.key] * c1.size + dists[c2.key][cur.key] * c2.size) / (c1.size + c2.size);
-                        } else {
-                            if (opts.mode === 'dendrogram') dist = getDist(cur.value, c1.value);else dist = getDist(cur.value[0], c1.value[0]);
-                        }
+    if (updateTransitions) {
+      this.updateTransitions(ele, diffProps, isBypass);
+    }
+  } // for eles
 
-                        dists[c1.key][cur.key] = dists[cur.key][c1.key] = dist; // distance matrix is symmetric
-                    } // Update cached mins
 
+  return ret;
+}; // only useful in specific cases like animation
 
-                    for (var _i2 = 0; _i2 < clusters.length; _i2++) {
-                        var key1 = clusters[_i2].key;
 
-                        if (mins[key1] === c1.key || mins[key1] === c2.key) {
-                            var _min = key1;
+styfn$1.overrideBypass = function (eles, name, value) {
+  name = camel2dash(name);
 
-                            for (var j = 0; j < clusters.length; j++) {
-                                var key2 = clusters[j].key;
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    var prop = ele._private.style[name];
+    var type = this.properties[name].type;
+    var isColor = type.color;
+    var isMulti = type.mutiple;
+    var oldValue = !prop ? null : prop.pfValue != null ? prop.pfValue : prop.value;
 
-                                if (dists[key1][key2] < dists[key1][_min]) {
-                                    _min = key2;
-                                }
-                            }
+    if (!prop || !prop.bypass) {
+      // need a bypass if one doesn't exist
+      this.applyBypass(ele, name, value);
+    } else {
+      prop.value = value;
 
-                            mins[key1] = _min;
-                        }
+      if (prop.pfValue != null) {
+        prop.pfValue = value;
+      }
 
-                        clusters[_i2].index = _i2;
-                    } // Clean up meta data used for clustering
+      if (isColor) {
+        prop.strValue = 'rgb(' + value.join(',') + ')';
+      } else if (isMulti) {
+        prop.strValue = value.join(' ');
+      } else {
+        prop.strValue = '' + value;
+      }
 
+      this.updateStyleHints(ele);
+    }
 
-                    c1.key = c2.key = c1.index = c2.index = null;
-                    return true;
-                };
+    this.checkTriggers(ele, name, oldValue, value);
+  }
+};
 
-                var getAllChildren = function getAllChildren(root, arr, cy) {
-                    if (!root) return;
+styfn$1.removeAllBypasses = function (eles, updateTransitions) {
+  return this.removeBypasses(eles, this.propertyNames, updateTransitions);
+};
 
-                    if (root.value) {
-                        arr.push(root.value);
-                    } else {
-                        if (root.left) getAllChildren(root.left, arr);
-                        if (root.right) getAllChildren(root.right, arr);
-                    }
-                };
+styfn$1.removeBypasses = function (eles, props, updateTransitions) {
+  var isBypass = true;
 
-                var buildDendrogram = function buildDendrogram(root, cy) {
-                    if (!root) return '';
+  for (var j = 0; j < eles.length; j++) {
+    var ele = eles[j];
+    var diffProps = {};
 
-                    if (root.left && root.right) {
-                        var leftStr = buildDendrogram(root.left, cy);
-                        var rightStr = buildDendrogram(root.right, cy);
-                        var node = cy.add({
-                            group: 'nodes',
-                            data: {
-                                id: leftStr + ',' + rightStr
-                            }
-                        });
-                        cy.add({
-                            group: 'edges',
-                            data: {
-                                source: leftStr,
-                                target: node.id()
-                            }
-                        });
-                        cy.add({
-                            group: 'edges',
-                            data: {
-                                source: rightStr,
-                                target: node.id()
-                            }
-                        });
-                        return node.id();
-                    } else if (root.value) {
-                        return root.value.id();
-                    }
-                };
+    for (var i = 0; i < props.length; i++) {
+      var name = props[i];
+      var prop = this.properties[name];
+      var prevProp = ele.pstyle(prop.name);
 
-                var buildClustersFromTree = function buildClustersFromTree(root, k, cy) {
-                    if (!root) return [];
-                    var left = [],
-                        right = [],
-                        leaves = [];
-
-                    if (k === 0) {
-                        // don't cut tree, simply return all nodes as 1 single cluster
-                        if (root.left) getAllChildren(root.left, left);
-                        if (root.right) getAllChildren(root.right, right);
-                        leaves = left.concat(right);
-                        return [cy.collection(leaves)];
-                    } else if (k === 1) {
-                        // cut at root
-                        if (root.value) {
-                            // leaf node
-                            return [cy.collection(root.value)];
-                        } else {
-                            if (root.left) getAllChildren(root.left, left);
-                            if (root.right) getAllChildren(root.right, right);
-                            return [cy.collection(left), cy.collection(right)];
-                        }
-                    } else {
-                        if (root.value) {
-                            return [cy.collection(root.value)];
-                        } else {
-                            if (root.left) left = buildClustersFromTree(root.left, k - 1, cy);
-                            if (root.right) right = buildClustersFromTree(root.right, k - 1, cy);
-                            return left.concat(right);
-                        }
-                    }
-                };
-                /* eslint-enable */
+      if (!prevProp || !prevProp.bypass) {
+        // if a bypass doesn't exist for the prop, nothing needs to be removed
+        continue;
+      }
 
+      var value = ''; // empty => remove bypass
 
-                var hierarchicalClustering = function hierarchicalClustering(options) {
-                    var cy = this.cy();
-                    var nodes = this.nodes(); // Set parameters of algorithm: linkage type, distance metric, etc.
+      var parsedProp = this.parse(name, value, true);
+      var diffProp = diffProps[prop.name] = {
+        prev: prevProp
+      };
+      this.applyParsedProperty(ele, parsedProp);
+      diffProp.next = ele.pstyle(prop.name);
+    } // for props
 
-                    var opts = setOptions$2(options);
-                    var attrs = opts.attributes;
 
-                    var getDist = function getDist(n1, n2) {
-                        return clusteringDistance(opts.distance, attrs.length, function (i) {
-                            return attrs[i](n1);
-                        }, function (i) {
-                            return attrs[i](n2);
-                        }, n1, n2);
-                    }; // Begin hierarchical algorithm
+    this.updateStyleHints(ele);
 
+    if (updateTransitions) {
+      this.updateTransitions(ele, diffProps, isBypass);
+    }
+  } // for eles
 
-                    var clusters = [];
-                    var dists = []; // distances between each pair of clusters
+};
 
-                    var mins = []; // closest cluster for each cluster
+var styfn$2 = {}; // gets what an em size corresponds to in pixels relative to a dom element
 
-                    var index = []; // hash of all clusters by key
-                    // In agglomerative (bottom-up) clustering, each node starts as its own cluster
+styfn$2.getEmSizeInPixels = function () {
+  var px = this.containerCss('font-size');
 
-                    for (var n = 0; n < nodes.length; n++) {
-                        var cluster = {
-                            value: opts.mode === 'dendrogram' ? nodes[n] : [nodes[n]],
-                            key: n,
-                            index: n
-                        };
-                        clusters[n] = cluster;
-                        index[n] = cluster;
-                        dists[n] = [];
-                        mins[n] = 0;
-                    } // Calculate the distance between each pair of clusters
+  if (px != null) {
+    return parseFloat(px);
+  } else {
+    return 1; // for headless
+  }
+}; // gets css property from the core container
 
 
-                    for (var i = 0; i < clusters.length; i++) {
-                        for (var j = 0; j <= i; j++) {
-                            var dist = void 0;
+styfn$2.containerCss = function (propName) {
+  var cy = this._private.cy;
+  var domElement = cy.container();
 
-                            if (opts.mode === 'dendrogram') {
-                                // modes store cluster values differently
-                                dist = i === j ? Infinity : getDist(clusters[i].value, clusters[j].value);
-                            } else {
-                                dist = i === j ? Infinity : getDist(clusters[i].value[0], clusters[j].value[0]);
-                            }
+  if (window$1 && domElement && window$1.getComputedStyle) {
+    return window$1.getComputedStyle(domElement).getPropertyValue(propName);
+  }
+};
 
-                            dists[i][j] = dist;
-                            dists[j][i] = dist;
+var styfn$3 = {}; // gets the rendered style for an element
 
-                            if (dist < dists[i][mins[i]]) {
-                                mins[i] = j; // Cache mins: closest cluster to cluster i is cluster j
-                            }
-                        }
-                    } // Find the closest pair of clusters and merge them into a single cluster.
-                    // Update distances between new cluster and each of the old clusters, and loop until threshold reached.
+styfn$3.getRenderedStyle = function (ele, prop) {
+  if (prop) {
+    return this.getStylePropertyValue(ele, prop, true);
+  } else {
+    return this.getRawStyle(ele, true);
+  }
+}; // gets the raw style for an element
 
 
-                    var merged = mergeClosest(clusters, index, dists, mins, opts);
+styfn$3.getRawStyle = function (ele, isRenderedVal) {
+  var self = this;
+  ele = ele[0]; // insure it's an element
 
-                    while (merged) {
-                        merged = mergeClosest(clusters, index, dists, mins, opts);
-                    }
+  if (ele) {
+    var rstyle = {};
 
-                    var retClusters; // Dendrogram mode builds the hierarchy and adds intermediary nodes + edges
-                    // in addition to returning the clusters.
+    for (var i = 0; i < self.properties.length; i++) {
+      var prop = self.properties[i];
+      var val = self.getStylePropertyValue(ele, prop.name, isRenderedVal);
 
-                    if (opts.mode === 'dendrogram') {
-                        retClusters = buildClustersFromTree(clusters[0], opts.dendrogramDepth, cy);
-                        if (opts.addDendrogram) buildDendrogram(clusters[0], cy);
-                    } else {
-                        // Regular mode simply returns the clusters
-                        retClusters = new Array(clusters.length);
-                        clusters.forEach(function (cluster, i) {
-                            // Clean up meta data used for clustering
-                            cluster.key = cluster.index = null;
-                            retClusters[i] = cy.collection(cluster.value);
-                        });
-                    }
+      if (val != null) {
+        rstyle[prop.name] = val;
+        rstyle[dash2camel(prop.name)] = val;
+      }
+    }
 
-                    return retClusters;
-                };
+    return rstyle;
+  }
+};
 
-                var hierarchicalClustering$1 = {
-                    hierarchicalClustering: hierarchicalClustering,
-                    hca: hierarchicalClustering
-                };
+styfn$3.getIndexedStyle = function (ele, property, subproperty, index) {
+  var pstyle = ele.pstyle(property)[subproperty][index];
+  return pstyle != null ? pstyle : ele.cy().style().getDefaultProperty(property)[subproperty][0];
+};
 
-// Implemented by Zoe Xi @zoexi for GSOC 2016
-                var defaults$7 = defaults({
-                    distance: 'euclidean',
-                    // distance metric to compare attributes between two nodes
-                    preference: 'median',
-                    // suitability of a data point to serve as an exemplar
-                    damping: 0.8,
-                    // damping factor between [0.5, 1)
-                    maxIterations: 1000,
-                    // max number of iterations to run
-                    minIterations: 100,
-                    // min number of iterations to run in order for clustering to stop
-                    attributes: [// functions to quantify the similarity between any two points
-                        // e.g. node => node.data('weight')
-                    ]
-                });
+styfn$3.getStylePropertyValue = function (ele, propName, isRenderedVal) {
+  var self = this;
+  ele = ele[0]; // insure it's an element
 
-                var setOptions$3 = function setOptions(options) {
-                    var dmp = options.damping;
-                    var pref = options.preference;
+  if (ele) {
+    var prop = self.properties[propName];
 
-                    if (!(0.5 <= dmp && dmp < 1)) {
-                        error("Damping must range on [0.5, 1).  Got: ".concat(dmp));
-                    }
+    if (prop.alias) {
+      prop = prop.pointsTo;
+    }
 
-                    var validPrefs = ['median', 'mean', 'min', 'max'];
+    var type = prop.type;
+    var styleProp = ele.pstyle(prop.name);
+
+    if (styleProp) {
+      var value = styleProp.value,
+          units = styleProp.units,
+          strValue = styleProp.strValue;
+
+      if (isRenderedVal && type.number && value != null && number(value)) {
+        var zoom = ele.cy().zoom();
+
+        var getRenderedValue = function getRenderedValue(val) {
+          return val * zoom;
+        };
+
+        var getValueStringWithUnits = function getValueStringWithUnits(val, units) {
+          return getRenderedValue(val) + units;
+        };
+
+        var isArrayValue = array(value);
+        var haveUnits = isArrayValue ? units.every(function (u) {
+          return u != null;
+        }) : units != null;
+
+        if (haveUnits) {
+          if (isArrayValue) {
+            return value.map(function (v, i) {
+              return getValueStringWithUnits(v, units[i]);
+            }).join(' ');
+          } else {
+            return getValueStringWithUnits(value, units);
+          }
+        } else {
+          if (isArrayValue) {
+            return value.map(function (v) {
+              return string(v) ? v : '' + getRenderedValue(v);
+            }).join(' ');
+          } else {
+            return '' + getRenderedValue(value);
+          }
+        }
+      } else if (strValue != null) {
+        return strValue;
+      }
+    }
 
-                    if (!(validPrefs.some(function (v) {
-                        return v === pref;
-                    }) || number(pref))) {
-                        error("Preference must be one of [".concat(validPrefs.map(function (p) {
-                            return "'".concat(p, "'");
-                        }).join(', '), "] or a number.  Got: ").concat(pref));
-                    }
+    return null;
+  }
+};
+
+styfn$3.getAnimationStartStyle = function (ele, aniProps) {
+  var rstyle = {};
+
+  for (var i = 0; i < aniProps.length; i++) {
+    var aniProp = aniProps[i];
+    var name = aniProp.name;
+    var styleProp = ele.pstyle(name);
+
+    if (styleProp !== undefined) {
+      // then make a prop of it
+      if (plainObject(styleProp)) {
+        styleProp = this.parse(name, styleProp.strValue);
+      } else {
+        styleProp = this.parse(name, styleProp);
+      }
+    }
 
-                    return defaults$7(options);
-                };
-                /* eslint-enable */
+    if (styleProp) {
+      rstyle[name] = styleProp;
+    }
+  }
 
+  return rstyle;
+};
 
-                var getSimilarity$1 = function getSimilarity(type, n1, n2, attributes) {
-                    var attr = function attr(n, i) {
-                        return attributes[i](n);
-                    }; // nb negative because similarity should have an inverse relationship to distance
+styfn$3.getPropsList = function (propsObj) {
+  var self = this;
+  var rstyle = [];
+  var style = propsObj;
+  var props = self.properties;
 
+  if (style) {
+    var names = Object.keys(style);
 
-                    return -clusteringDistance(type, attributes.length, function (i) {
-                        return attr(n1, i);
-                    }, function (i) {
-                        return attr(n2, i);
-                    }, n1, n2);
-                };
+    for (var i = 0; i < names.length; i++) {
+      var name = names[i];
+      var val = style[name];
+      var prop = props[name] || props[camel2dash(name)];
+      var styleProp = this.parse(prop.name, val);
 
-                var getPreference = function getPreference(S, preference) {
-                    // larger preference = greater # of clusters
-                    var p = null;
-
-                    if (preference === 'median') {
-                        p = median(S);
-                    } else if (preference === 'mean') {
-                        p = mean(S);
-                    } else if (preference === 'min') {
-                        p = min(S);
-                    } else if (preference === 'max') {
-                        p = max(S);
-                    } else {
-                        // Custom preference number, as set by user
-                        p = preference;
-                    }
+      if (styleProp) {
+        rstyle.push(styleProp);
+      }
+    }
+  }
 
-                    return p;
-                };
+  return rstyle;
+};
+
+styfn$3.getNonDefaultPropertiesHash = function (ele, propNames, seed) {
+  var hash = seed.slice();
+  var name, val, strVal, chVal;
+  var i, j;
+
+  for (i = 0; i < propNames.length; i++) {
+    name = propNames[i];
+    val = ele.pstyle(name, false);
+
+    if (val == null) {
+      continue;
+    } else if (val.pfValue != null) {
+      hash[0] = hashInt(chVal, hash[0]);
+      hash[1] = hashIntAlt(chVal, hash[1]);
+    } else {
+      strVal = val.strValue;
+
+      for (j = 0; j < strVal.length; j++) {
+        chVal = strVal.charCodeAt(j);
+        hash[0] = hashInt(chVal, hash[0]);
+        hash[1] = hashIntAlt(chVal, hash[1]);
+      }
+    }
+  }
 
-                var findExemplars = function findExemplars(n, R, A) {
-                    var indices = [];
+  return hash;
+};
 
-                    for (var i = 0; i < n; i++) {
-                        if (R[i * n + i] + A[i * n + i] > 0) {
-                            indices.push(i);
-                        }
-                    }
+styfn$3.getPropertiesHash = styfn$3.getNonDefaultPropertiesHash;
 
-                    return indices;
-                };
+var styfn$4 = {};
 
-                var assignClusters = function assignClusters(n, S, exemplars) {
-                    var clusters = [];
+styfn$4.appendFromJson = function (json) {
+  var style = this;
 
-                    for (var i = 0; i < n; i++) {
-                        var index = -1;
-                        var max = -Infinity;
+  for (var i = 0; i < json.length; i++) {
+    var context = json[i];
+    var selector = context.selector;
+    var props = context.style || context.css;
+    var names = Object.keys(props);
+    style.selector(selector); // apply selector
 
-                        for (var ei = 0; ei < exemplars.length; ei++) {
-                            var e = exemplars[ei];
+    for (var j = 0; j < names.length; j++) {
+      var name = names[j];
+      var value = props[name];
+      style.css(name, value); // apply property
+    }
+  }
 
-                            if (S[i * n + e] > max) {
-                                index = e;
-                                max = S[i * n + e];
-                            }
-                        }
+  return style;
+}; // accessible cy.style() function
 
-                        if (index > 0) {
-                            clusters.push(index);
-                        }
-                    }
 
-                    for (var _ei = 0; _ei < exemplars.length; _ei++) {
-                        clusters[exemplars[_ei]] = exemplars[_ei];
-                    }
+styfn$4.fromJson = function (json) {
+  var style = this;
+  style.resetToDefault();
+  style.appendFromJson(json);
+  return style;
+}; // get json from cy.style() api
 
-                    return clusters;
-                };
 
-                var assign$2 = function assign(n, S, exemplars) {
-                    var clusters = assignClusters(n, S, exemplars);
+styfn$4.json = function () {
+  var json = [];
 
-                    for (var ei = 0; ei < exemplars.length; ei++) {
-                        var ii = [];
+  for (var i = this.defaultLength; i < this.length; i++) {
+    var cxt = this[i];
+    var selector = cxt.selector;
+    var props = cxt.properties;
+    var css = {};
 
-                        for (var c = 0; c < clusters.length; c++) {
-                            if (clusters[c] === exemplars[ei]) {
-                                ii.push(c);
-                            }
-                        }
+    for (var j = 0; j < props.length; j++) {
+      var prop = props[j];
+      css[prop.name] = prop.strValue;
+    }
 
-                        var maxI = -1;
-                        var maxSum = -Infinity;
+    json.push({
+      selector: !selector ? 'core' : selector.toString(),
+      style: css
+    });
+  }
 
-                        for (var i = 0; i < ii.length; i++) {
-                            var sum = 0;
+  return json;
+};
 
-                            for (var j = 0; j < ii.length; j++) {
-                                sum += S[ii[j] * n + ii[i]];
-                            }
+var styfn$5 = {};
 
-                            if (sum > maxSum) {
-                                maxI = i;
-                                maxSum = sum;
-                            }
-                        }
+styfn$5.appendFromString = function (string) {
+  var self = this;
+  var style = this;
+  var remaining = '' + string;
+  var selAndBlockStr;
+  var blockRem;
+  var propAndValStr; // remove comments from the style string
 
-                        exemplars[ei] = ii[maxI];
-                    }
+  remaining = remaining.replace(/[/][*](\s|.)+?[*][/]/g, '');
 
-                    clusters = assignClusters(n, S, exemplars);
-                    return clusters;
-                };
+  function removeSelAndBlockFromRemaining() {
+    // remove the parsed selector and block from the remaining text to parse
+    if (remaining.length > selAndBlockStr.length) {
+      remaining = remaining.substr(selAndBlockStr.length);
+    } else {
+      remaining = '';
+    }
+  }
 
-                var affinityPropagation = function affinityPropagation(options) {
-                    var cy = this.cy();
-                    var nodes = this.nodes();
-                    var opts = setOptions$3(options); // Map each node to its position in node array
+  function removePropAndValFromRem() {
+    // remove the parsed property and value from the remaining block text to parse
+    if (blockRem.length > propAndValStr.length) {
+      blockRem = blockRem.substr(propAndValStr.length);
+    } else {
+      blockRem = '';
+    }
+  }
 
-                    var id2position = {};
+  for (;;) {
+    var nothingLeftToParse = remaining.match(/^\s*$/);
 
-                    for (var i = 0; i < nodes.length; i++) {
-                        id2position[nodes[i].id()] = i;
-                    } // Begin affinity propagation algorithm
+    if (nothingLeftToParse) {
+      break;
+    }
 
+    var selAndBlock = remaining.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);
 
-                    var n; // number of data points
+    if (!selAndBlock) {
+      warn('Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: ' + remaining);
+      break;
+    }
 
-                    var n2; // size of matrices
+    selAndBlockStr = selAndBlock[0]; // parse the selector
 
-                    var S; // similarity matrix (1D array)
+    var selectorStr = selAndBlock[1];
 
-                    var p; // preference/suitability of a data point to serve as an exemplar
+    if (selectorStr !== 'core') {
+      var selector = new Selector(selectorStr);
 
-                    var R; // responsibility matrix (1D array)
+      if (selector.invalid) {
+        warn('Skipping parsing of block: Invalid selector found in string stylesheet: ' + selectorStr); // skip this selector and block
 
-                    var A; // availability matrix (1D array)
+        removeSelAndBlockFromRemaining();
+        continue;
+      }
+    } // parse the block of properties and values
 
-                    n = nodes.length;
-                    n2 = n * n; // Initialize and build S similarity matrix
 
-                    S = new Array(n2);
+    var blockStr = selAndBlock[2];
+    var invalidBlock = false;
+    blockRem = blockStr;
+    var props = [];
 
-                    for (var _i = 0; _i < n2; _i++) {
-                        S[_i] = -Infinity; // for cases where two data points shouldn't be linked together
-                    }
+    for (;;) {
+      var _nothingLeftToParse = blockRem.match(/^\s*$/);
 
-                    for (var _i2 = 0; _i2 < n; _i2++) {
-                        for (var j = 0; j < n; j++) {
-                            if (_i2 !== j) {
-                                S[_i2 * n + j] = getSimilarity$1(opts.distance, nodes[_i2], nodes[j], opts.attributes);
-                            }
-                        }
-                    } // Place preferences on the diagonal of S
+      if (_nothingLeftToParse) {
+        break;
+      }
 
+      var propAndVal = blockRem.match(/^\s*(.+?)\s*:\s*(.+?)\s*;/);
 
-                    p = getPreference(S, opts.preference);
+      if (!propAndVal) {
+        warn('Skipping parsing of block: Invalid formatting of style property and value definitions found in:' + blockStr);
+        invalidBlock = true;
+        break;
+      }
 
-                    for (var _i3 = 0; _i3 < n; _i3++) {
-                        S[_i3 * n + _i3] = p;
-                    } // Initialize R responsibility matrix
+      propAndValStr = propAndVal[0];
+      var propStr = propAndVal[1];
+      var valStr = propAndVal[2];
+      var prop = self.properties[propStr];
 
+      if (!prop) {
+        warn('Skipping property: Invalid property name in: ' + propAndValStr); // skip this property in the block
 
-                    R = new Array(n2);
+        removePropAndValFromRem();
+        continue;
+      }
 
-                    for (var _i4 = 0; _i4 < n2; _i4++) {
-                        R[_i4] = 0.0;
-                    } // Initialize A availability matrix
+      var parsedProp = style.parse(propStr, valStr);
 
+      if (!parsedProp) {
+        warn('Skipping property: Invalid property definition in: ' + propAndValStr); // skip this property in the block
 
-                    A = new Array(n2);
+        removePropAndValFromRem();
+        continue;
+      }
 
-                    for (var _i5 = 0; _i5 < n2; _i5++) {
-                        A[_i5] = 0.0;
-                    }
+      props.push({
+        name: propStr,
+        val: valStr
+      });
+      removePropAndValFromRem();
+    }
 
-                    var old = new Array(n);
-                    var Rp = new Array(n);
-                    var se = new Array(n);
+    if (invalidBlock) {
+      removeSelAndBlockFromRemaining();
+      break;
+    } // put the parsed block in the style
 
-                    for (var _i6 = 0; _i6 < n; _i6++) {
-                        old[_i6] = 0.0;
-                        Rp[_i6] = 0.0;
-                        se[_i6] = 0;
-                    }
 
-                    var e = new Array(n * opts.minIterations);
+    style.selector(selectorStr);
 
-                    for (var _i7 = 0; _i7 < e.length; _i7++) {
-                        e[_i7] = 0;
-                    }
+    for (var i = 0; i < props.length; i++) {
+      var _prop = props[i];
+      style.css(_prop.name, _prop.val);
+    }
 
-                    var iter;
-
-                    for (iter = 0; iter < opts.maxIterations; iter++) {
-                        // main algorithmic loop
-                        // Update R responsibility matrix
-                        for (var _i8 = 0; _i8 < n; _i8++) {
-                            var max = -Infinity,
-                                max2 = -Infinity,
-                                maxI = -1,
-                                AS = 0.0;
-
-                            for (var _j = 0; _j < n; _j++) {
-                                old[_j] = R[_i8 * n + _j];
-                                AS = A[_i8 * n + _j] + S[_i8 * n + _j];
-
-                                if (AS >= max) {
-                                    max2 = max;
-                                    max = AS;
-                                    maxI = _j;
-                                } else if (AS > max2) {
-                                    max2 = AS;
-                                }
-                            }
+    removeSelAndBlockFromRemaining();
+  }
 
-                            for (var _j2 = 0; _j2 < n; _j2++) {
-                                R[_i8 * n + _j2] = (1 - opts.damping) * (S[_i8 * n + _j2] - max) + opts.damping * old[_j2];
-                            }
+  return style;
+};
+
+styfn$5.fromString = function (string) {
+  var style = this;
+  style.resetToDefault();
+  style.appendFromString(string);
+  return style;
+};
+
+var styfn$6 = {};
+
+(function () {
+  var number = number$1;
+  var rgba = rgbaNoBackRefs;
+  var hsla = hslaNoBackRefs;
+  var hex3$1 = hex3;
+  var hex6$1 = hex6;
+
+  var data = function data(prefix) {
+    return '^' + prefix + '\\s*\\(\\s*([\\w\\.]+)\\s*\\)$';
+  };
+
+  var mapData = function mapData(prefix) {
+    var mapArg = number + '|\\w+|' + rgba + '|' + hsla + '|' + hex3$1 + '|' + hex6$1;
+    return '^' + prefix + '\\s*\\(([\\w\\.]+)\\s*\\,\\s*(' + number + ')\\s*\\,\\s*(' + number + ')\\s*,\\s*(' + mapArg + ')\\s*\\,\\s*(' + mapArg + ')\\)$';
+  };
+
+  var urlRegexes = ['^url\\s*\\(\\s*[\'"]?(.+?)[\'"]?\\s*\\)$', '^(none)$', '^(.+)$']; // each visual style property has a type and needs to be validated according to it
+
+  styfn$6.types = {
+    time: {
+      number: true,
+      min: 0,
+      units: 's|ms',
+      implicitUnits: 'ms'
+    },
+    percent: {
+      number: true,
+      min: 0,
+      max: 100,
+      units: '%',
+      implicitUnits: '%'
+    },
+    percentages: {
+      number: true,
+      min: 0,
+      max: 100,
+      units: '%',
+      implicitUnits: '%',
+      multiple: true
+    },
+    zeroOneNumber: {
+      number: true,
+      min: 0,
+      max: 1,
+      unitless: true
+    },
+    zeroOneNumbers: {
+      number: true,
+      min: 0,
+      max: 1,
+      unitless: true,
+      multiple: true
+    },
+    nOneOneNumber: {
+      number: true,
+      min: -1,
+      max: 1,
+      unitless: true
+    },
+    nonNegativeInt: {
+      number: true,
+      min: 0,
+      integer: true,
+      unitless: true
+    },
+    position: {
+      enums: ['parent', 'origin']
+    },
+    nodeSize: {
+      number: true,
+      min: 0,
+      enums: ['label']
+    },
+    number: {
+      number: true,
+      unitless: true
+    },
+    numbers: {
+      number: true,
+      unitless: true,
+      multiple: true
+    },
+    positiveNumber: {
+      number: true,
+      unitless: true,
+      min: 0,
+      strictMin: true
+    },
+    size: {
+      number: true,
+      min: 0
+    },
+    bidirectionalSize: {
+      number: true
+    },
+    // allows negative
+    bidirectionalSizeMaybePercent: {
+      number: true,
+      allowPercent: true
+    },
+    // allows negative
+    bidirectionalSizes: {
+      number: true,
+      multiple: true
+    },
+    // allows negative
+    sizeMaybePercent: {
+      number: true,
+      min: 0,
+      allowPercent: true
+    },
+    axisDirection: {
+      enums: ['horizontal', 'leftward', 'rightward', 'vertical', 'upward', 'downward', 'auto']
+    },
+    paddingRelativeTo: {
+      enums: ['width', 'height', 'average', 'min', 'max']
+    },
+    bgWH: {
+      number: true,
+      min: 0,
+      allowPercent: true,
+      enums: ['auto'],
+      multiple: true
+    },
+    bgPos: {
+      number: true,
+      allowPercent: true,
+      multiple: true
+    },
+    bgRelativeTo: {
+      enums: ['inner', 'include-padding'],
+      multiple: true
+    },
+    bgRepeat: {
+      enums: ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'],
+      multiple: true
+    },
+    bgFit: {
+      enums: ['none', 'contain', 'cover'],
+      multiple: true
+    },
+    bgCrossOrigin: {
+      enums: ['anonymous', 'use-credentials'],
+      multiple: true
+    },
+    bgClip: {
+      enums: ['none', 'node'],
+      multiple: true
+    },
+    color: {
+      color: true
+    },
+    colors: {
+      color: true,
+      multiple: true
+    },
+    fill: {
+      enums: ['solid', 'linear-gradient', 'radial-gradient']
+    },
+    bool: {
+      enums: ['yes', 'no']
+    },
+    lineStyle: {
+      enums: ['solid', 'dotted', 'dashed']
+    },
+    lineCap: {
+      enums: ['butt', 'round', 'square']
+    },
+    borderStyle: {
+      enums: ['solid', 'dotted', 'dashed', 'double']
+    },
+    curveStyle: {
+      enums: ['bezier', 'unbundled-bezier', 'haystack', 'segments', 'straight', 'taxi']
+    },
+    fontFamily: {
+      regex: '^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'
+    },
+    fontStyle: {
+      enums: ['italic', 'normal', 'oblique']
+    },
+    fontWeight: {
+      enums: ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '800', '900', 100, 200, 300, 400, 500, 600, 700, 800, 900]
+    },
+    textDecoration: {
+      enums: ['none', 'underline', 'overline', 'line-through']
+    },
+    textTransform: {
+      enums: ['none', 'uppercase', 'lowercase']
+    },
+    textWrap: {
+      enums: ['none', 'wrap', 'ellipsis']
+    },
+    textOverflowWrap: {
+      enums: ['whitespace', 'anywhere']
+    },
+    textBackgroundShape: {
+      enums: ['rectangle', 'roundrectangle', 'round-rectangle']
+    },
+    nodeShape: {
+      enums: ['rectangle', 'roundrectangle', 'round-rectangle', 'cutrectangle', 'cut-rectangle', 'bottomroundrectangle', 'bottom-round-rectangle', 'barrel', 'ellipse', 'triangle', 'round-triangle', 'square', 'pentagon', 'round-pentagon', 'hexagon', 'round-hexagon', 'concavehexagon', 'concave-hexagon', 'heptagon', 'round-heptagon', 'octagon', 'round-octagon', 'tag', 'round-tag', 'star', 'diamond', 'round-diamond', 'vee', 'rhomboid', 'polygon']
+    },
+    compoundIncludeLabels: {
+      enums: ['include', 'exclude']
+    },
+    arrowShape: {
+      enums: ['tee', 'triangle', 'triangle-tee', 'circle-triangle', 'triangle-cross', 'triangle-backcurve', 'vee', 'square', 'circle', 'diamond', 'chevron', 'none']
+    },
+    arrowFill: {
+      enums: ['filled', 'hollow']
+    },
+    display: {
+      enums: ['element', 'none']
+    },
+    visibility: {
+      enums: ['hidden', 'visible']
+    },
+    zCompoundDepth: {
+      enums: ['bottom', 'orphan', 'auto', 'top']
+    },
+    zIndexCompare: {
+      enums: ['auto', 'manual']
+    },
+    valign: {
+      enums: ['top', 'center', 'bottom']
+    },
+    halign: {
+      enums: ['left', 'center', 'right']
+    },
+    justification: {
+      enums: ['left', 'center', 'right', 'auto']
+    },
+    text: {
+      string: true
+    },
+    data: {
+      mapping: true,
+      regex: data('data')
+    },
+    layoutData: {
+      mapping: true,
+      regex: data('layoutData')
+    },
+    scratch: {
+      mapping: true,
+      regex: data('scratch')
+    },
+    mapData: {
+      mapping: true,
+      regex: mapData('mapData')
+    },
+    mapLayoutData: {
+      mapping: true,
+      regex: mapData('mapLayoutData')
+    },
+    mapScratch: {
+      mapping: true,
+      regex: mapData('mapScratch')
+    },
+    fn: {
+      mapping: true,
+      fn: true
+    },
+    url: {
+      regexes: urlRegexes,
+      singleRegexMatchValue: true
+    },
+    urls: {
+      regexes: urlRegexes,
+      singleRegexMatchValue: true,
+      multiple: true
+    },
+    propList: {
+      propList: true
+    },
+    angle: {
+      number: true,
+      units: 'deg|rad',
+      implicitUnits: 'rad'
+    },
+    textRotation: {
+      number: true,
+      units: 'deg|rad',
+      implicitUnits: 'rad',
+      enums: ['none', 'autorotate']
+    },
+    polygonPointList: {
+      number: true,
+      multiple: true,
+      evenMultiple: true,
+      min: -1,
+      max: 1,
+      unitless: true
+    },
+    edgeDistances: {
+      enums: ['intersection', 'node-position']
+    },
+    edgeEndpoint: {
+      number: true,
+      multiple: true,
+      units: '%|px|em|deg|rad',
+      implicitUnits: 'px',
+      enums: ['inside-to-node', 'outside-to-node', 'outside-to-node-or-label', 'outside-to-line', 'outside-to-line-or-label'],
+      singleEnum: true,
+      validate: function validate(valArr, unitsArr) {
+        switch (valArr.length) {
+          case 2:
+            // can be % or px only
+            return unitsArr[0] !== 'deg' && unitsArr[0] !== 'rad' && unitsArr[1] !== 'deg' && unitsArr[1] !== 'rad';
+
+          case 1:
+            // can be enum, deg, or rad only
+            return string(valArr[0]) || unitsArr[0] === 'deg' || unitsArr[0] === 'rad';
+
+          default:
+            return false;
+        }
+      }
+    },
+    easing: {
+      regexes: ['^(spring)\\s*\\(\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*\\)$', '^(cubic-bezier)\\s*\\(\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*\\)$'],
+      enums: ['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'ease-in-sine', 'ease-out-sine', 'ease-in-out-sine', 'ease-in-quad', 'ease-out-quad', 'ease-in-out-quad', 'ease-in-cubic', 'ease-out-cubic', 'ease-in-out-cubic', 'ease-in-quart', 'ease-out-quart', 'ease-in-out-quart', 'ease-in-quint', 'ease-out-quint', 'ease-in-out-quint', 'ease-in-expo', 'ease-out-expo', 'ease-in-out-expo', 'ease-in-circ', 'ease-out-circ', 'ease-in-out-circ']
+    },
+    gradientDirection: {
+      enums: ['to-bottom', 'to-top', 'to-left', 'to-right', 'to-bottom-right', 'to-bottom-left', 'to-top-right', 'to-top-left', 'to-right-bottom', 'to-left-bottom', 'to-right-top', 'to-left-top']
+    },
+    boundsExpansion: {
+      number: true,
+      multiple: true,
+      min: 0,
+      validate: function validate(valArr) {
+        var length = valArr.length;
+        return length === 1 || length === 2 || length === 4;
+      }
+    }
+  };
+  var diff = {
+    zeroNonZero: function zeroNonZero(val1, val2) {
+      if ((val1 == null || val2 == null) && val1 !== val2) {
+        return true; // null cases could represent any value
+      }
+
+      if (val1 == 0 && val2 != 0) {
+        return true;
+      } else if (val1 != 0 && val2 == 0) {
+        return true;
+      } else {
+        return false;
+      }
+    },
+    any: function any(val1, val2) {
+      return val1 != val2;
+    },
+    emptyNonEmpty: function emptyNonEmpty(str1, str2) {
+      var empty1 = emptyString(str1);
+      var empty2 = emptyString(str2);
+      return empty1 && !empty2 || !empty1 && empty2;
+    }
+  }; // define visual style properties
+  //
+  // - n.b. adding a new group of props may require updates to updateStyleHints()
+  // - adding new props to an existing group gets handled automatically
+
+  var t = styfn$6.types;
+  var mainLabel = [{
+    name: 'label',
+    type: t.text,
+    triggersBounds: diff.any,
+    triggersZOrder: diff.emptyNonEmpty
+  }, {
+    name: 'text-rotation',
+    type: t.textRotation,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-margin-x',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-margin-y',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }];
+  var sourceLabel = [{
+    name: 'source-label',
+    type: t.text,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-text-rotation',
+    type: t.textRotation,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-text-margin-x',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-text-margin-y',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-text-offset',
+    type: t.size,
+    triggersBounds: diff.any
+  }];
+  var targetLabel = [{
+    name: 'target-label',
+    type: t.text,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-text-rotation',
+    type: t.textRotation,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-text-margin-x',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-text-margin-y',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-text-offset',
+    type: t.size,
+    triggersBounds: diff.any
+  }];
+  var labelDimensions = [{
+    name: 'font-family',
+    type: t.fontFamily,
+    triggersBounds: diff.any
+  }, {
+    name: 'font-style',
+    type: t.fontStyle,
+    triggersBounds: diff.any
+  }, {
+    name: 'font-weight',
+    type: t.fontWeight,
+    triggersBounds: diff.any
+  }, {
+    name: 'font-size',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-transform',
+    type: t.textTransform,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-wrap',
+    type: t.textWrap,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-overflow-wrap',
+    type: t.textOverflowWrap,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-max-width',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-outline-width',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'line-height',
+    type: t.positiveNumber,
+    triggersBounds: diff.any
+  }];
+  var commonLabel = [{
+    name: 'text-valign',
+    type: t.valign,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-halign',
+    type: t.halign,
+    triggersBounds: diff.any
+  }, {
+    name: 'color',
+    type: t.color
+  }, {
+    name: 'text-outline-color',
+    type: t.color
+  }, {
+    name: 'text-outline-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'text-background-color',
+    type: t.color
+  }, {
+    name: 'text-background-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'text-background-padding',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-border-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'text-border-color',
+    type: t.color
+  }, {
+    name: 'text-border-width',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-border-style',
+    type: t.borderStyle,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-background-shape',
+    type: t.textBackgroundShape,
+    triggersBounds: diff.any
+  }, {
+    name: 'text-justification',
+    type: t.justification
+  }];
+  var behavior = [{
+    name: 'events',
+    type: t.bool
+  }, {
+    name: 'text-events',
+    type: t.bool
+  }];
+  var visibility = [{
+    name: 'display',
+    type: t.display,
+    triggersZOrder: diff.any,
+    triggersBounds: diff.any,
+    triggersBoundsOfParallelBeziers: true
+  }, {
+    name: 'visibility',
+    type: t.visibility,
+    triggersZOrder: diff.any
+  }, {
+    name: 'opacity',
+    type: t.zeroOneNumber,
+    triggersZOrder: diff.zeroNonZero
+  }, {
+    name: 'text-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'min-zoomed-font-size',
+    type: t.size
+  }, {
+    name: 'z-compound-depth',
+    type: t.zCompoundDepth,
+    triggersZOrder: diff.any
+  }, {
+    name: 'z-index-compare',
+    type: t.zIndexCompare,
+    triggersZOrder: diff.any
+  }, {
+    name: 'z-index',
+    type: t.nonNegativeInt,
+    triggersZOrder: diff.any
+  }];
+  var overlay = [{
+    name: 'overlay-padding',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'overlay-color',
+    type: t.color
+  }, {
+    name: 'overlay-opacity',
+    type: t.zeroOneNumber,
+    triggersBounds: diff.zeroNonZero
+  }];
+  var transition = [{
+    name: 'transition-property',
+    type: t.propList
+  }, {
+    name: 'transition-duration',
+    type: t.time
+  }, {
+    name: 'transition-delay',
+    type: t.time
+  }, {
+    name: 'transition-timing-function',
+    type: t.easing
+  }];
+
+  var nodeSizeHashOverride = function nodeSizeHashOverride(ele, parsedProp) {
+    if (parsedProp.value === 'label') {
+      return -ele.poolIndex(); // no hash key hits is using label size (hitrate for perf probably low anyway)
+    } else {
+      return parsedProp.pfValue;
+    }
+  };
+
+  var nodeBody = [{
+    name: 'height',
+    type: t.nodeSize,
+    triggersBounds: diff.any,
+    hashOverride: nodeSizeHashOverride
+  }, {
+    name: 'width',
+    type: t.nodeSize,
+    triggersBounds: diff.any,
+    hashOverride: nodeSizeHashOverride
+  }, {
+    name: 'shape',
+    type: t.nodeShape,
+    triggersBounds: diff.any
+  }, {
+    name: 'shape-polygon-points',
+    type: t.polygonPointList,
+    triggersBounds: diff.any
+  }, {
+    name: 'background-color',
+    type: t.color
+  }, {
+    name: 'background-fill',
+    type: t.fill
+  }, {
+    name: 'background-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'background-blacken',
+    type: t.nOneOneNumber
+  }, {
+    name: 'background-gradient-stop-colors',
+    type: t.colors
+  }, {
+    name: 'background-gradient-stop-positions',
+    type: t.percentages
+  }, {
+    name: 'background-gradient-direction',
+    type: t.gradientDirection
+  }, {
+    name: 'padding',
+    type: t.sizeMaybePercent,
+    triggersBounds: diff.any
+  }, {
+    name: 'padding-relative-to',
+    type: t.paddingRelativeTo,
+    triggersBounds: diff.any
+  }, {
+    name: 'bounds-expansion',
+    type: t.boundsExpansion,
+    triggersBounds: diff.any
+  }];
+  var nodeBorder = [{
+    name: 'border-color',
+    type: t.color
+  }, {
+    name: 'border-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'border-width',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'border-style',
+    type: t.borderStyle
+  }];
+  var backgroundImage = [{
+    name: 'background-image',
+    type: t.urls
+  }, {
+    name: 'background-image-crossorigin',
+    type: t.bgCrossOrigin
+  }, {
+    name: 'background-image-opacity',
+    type: t.zeroOneNumbers
+  }, {
+    name: 'background-position-x',
+    type: t.bgPos
+  }, {
+    name: 'background-position-y',
+    type: t.bgPos
+  }, {
+    name: 'background-width-relative-to',
+    type: t.bgRelativeTo
+  }, {
+    name: 'background-height-relative-to',
+    type: t.bgRelativeTo
+  }, {
+    name: 'background-repeat',
+    type: t.bgRepeat
+  }, {
+    name: 'background-fit',
+    type: t.bgFit
+  }, {
+    name: 'background-clip',
+    type: t.bgClip
+  }, {
+    name: 'background-width',
+    type: t.bgWH
+  }, {
+    name: 'background-height',
+    type: t.bgWH
+  }, {
+    name: 'background-offset-x',
+    type: t.bgPos
+  }, {
+    name: 'background-offset-y',
+    type: t.bgPos
+  }];
+  var compound = [{
+    name: 'position',
+    type: t.position,
+    triggersBounds: diff.any
+  }, {
+    name: 'compound-sizing-wrt-labels',
+    type: t.compoundIncludeLabels,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-width',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-width-bias-left',
+    type: t.sizeMaybePercent,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-width-bias-right',
+    type: t.sizeMaybePercent,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-height',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-height-bias-top',
+    type: t.sizeMaybePercent,
+    triggersBounds: diff.any
+  }, {
+    name: 'min-height-bias-bottom',
+    type: t.sizeMaybePercent,
+    triggersBounds: diff.any
+  }];
+  var edgeLine = [{
+    name: 'line-style',
+    type: t.lineStyle
+  }, {
+    name: 'line-color',
+    type: t.color
+  }, {
+    name: 'line-fill',
+    type: t.fill
+  }, {
+    name: 'line-cap',
+    type: t.lineCap
+  }, {
+    name: 'line-dash-pattern',
+    type: t.numbers
+  }, {
+    name: 'line-dash-offset',
+    type: t.number
+  }, {
+    name: 'line-gradient-stop-colors',
+    type: t.colors
+  }, {
+    name: 'line-gradient-stop-positions',
+    type: t.percentages
+  }, {
+    name: 'curve-style',
+    type: t.curveStyle,
+    triggersBounds: diff.any,
+    triggersBoundsOfParallelBeziers: true
+  }, {
+    name: 'haystack-radius',
+    type: t.zeroOneNumber,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-endpoint',
+    type: t.edgeEndpoint,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-endpoint',
+    type: t.edgeEndpoint,
+    triggersBounds: diff.any
+  }, {
+    name: 'control-point-step-size',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'control-point-distances',
+    type: t.bidirectionalSizes,
+    triggersBounds: diff.any
+  }, {
+    name: 'control-point-weights',
+    type: t.numbers,
+    triggersBounds: diff.any
+  }, {
+    name: 'segment-distances',
+    type: t.bidirectionalSizes,
+    triggersBounds: diff.any
+  }, {
+    name: 'segment-weights',
+    type: t.numbers,
+    triggersBounds: diff.any
+  }, {
+    name: 'taxi-turn',
+    type: t.bidirectionalSizeMaybePercent,
+    triggersBounds: diff.any
+  }, {
+    name: 'taxi-turn-min-distance',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'taxi-direction',
+    type: t.axisDirection,
+    triggersBounds: diff.any
+  }, {
+    name: 'edge-distances',
+    type: t.edgeDistances,
+    triggersBounds: diff.any
+  }, {
+    name: 'arrow-scale',
+    type: t.positiveNumber,
+    triggersBounds: diff.any
+  }, {
+    name: 'loop-direction',
+    type: t.angle,
+    triggersBounds: diff.any
+  }, {
+    name: 'loop-sweep',
+    type: t.angle,
+    triggersBounds: diff.any
+  }, {
+    name: 'source-distance-from-node',
+    type: t.size,
+    triggersBounds: diff.any
+  }, {
+    name: 'target-distance-from-node',
+    type: t.size,
+    triggersBounds: diff.any
+  }];
+  var ghost = [{
+    name: 'ghost',
+    type: t.bool,
+    triggersBounds: diff.any
+  }, {
+    name: 'ghost-offset-x',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'ghost-offset-y',
+    type: t.bidirectionalSize,
+    triggersBounds: diff.any
+  }, {
+    name: 'ghost-opacity',
+    type: t.zeroOneNumber
+  }];
+  var core = [{
+    name: 'selection-box-color',
+    type: t.color
+  }, {
+    name: 'selection-box-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'selection-box-border-color',
+    type: t.color
+  }, {
+    name: 'selection-box-border-width',
+    type: t.size
+  }, {
+    name: 'active-bg-color',
+    type: t.color
+  }, {
+    name: 'active-bg-opacity',
+    type: t.zeroOneNumber
+  }, {
+    name: 'active-bg-size',
+    type: t.size
+  }, {
+    name: 'outside-texture-bg-color',
+    type: t.color
+  }, {
+    name: 'outside-texture-bg-opacity',
+    type: t.zeroOneNumber
+  }]; // pie backgrounds for nodes
+
+  var pie = [];
+  styfn$6.pieBackgroundN = 16; // because the pie properties are numbered, give access to a constant N (for renderer use)
+
+  pie.push({
+    name: 'pie-size',
+    type: t.sizeMaybePercent
+  });
+
+  for (var i = 1; i <= styfn$6.pieBackgroundN; i++) {
+    pie.push({
+      name: 'pie-' + i + '-background-color',
+      type: t.color
+    });
+    pie.push({
+      name: 'pie-' + i + '-background-size',
+      type: t.percent
+    });
+    pie.push({
+      name: 'pie-' + i + '-background-opacity',
+      type: t.zeroOneNumber
+    });
+  } // edge arrows
+
+
+  var edgeArrow = [];
+  var arrowPrefixes = styfn$6.arrowPrefixes = ['source', 'mid-source', 'target', 'mid-target'];
+  [{
+    name: 'arrow-shape',
+    type: t.arrowShape,
+    triggersBounds: diff.any
+  }, {
+    name: 'arrow-color',
+    type: t.color
+  }, {
+    name: 'arrow-fill',
+    type: t.arrowFill
+  }].forEach(function (prop) {
+    arrowPrefixes.forEach(function (prefix) {
+      var name = prefix + '-' + prop.name;
+      var type = prop.type,
+          triggersBounds = prop.triggersBounds;
+      edgeArrow.push({
+        name: name,
+        type: type,
+        triggersBounds: triggersBounds
+      });
+    });
+  }, {});
+  var props = styfn$6.properties = [].concat(behavior, transition, visibility, overlay, ghost, commonLabel, labelDimensions, mainLabel, sourceLabel, targetLabel, nodeBody, nodeBorder, backgroundImage, pie, compound, edgeLine, edgeArrow, core);
+  var propGroups = styfn$6.propertyGroups = {
+    // common to all eles
+    behavior: behavior,
+    transition: transition,
+    visibility: visibility,
+    overlay: overlay,
+    ghost: ghost,
+    // labels
+    commonLabel: commonLabel,
+    labelDimensions: labelDimensions,
+    mainLabel: mainLabel,
+    sourceLabel: sourceLabel,
+    targetLabel: targetLabel,
+    // node props
+    nodeBody: nodeBody,
+    nodeBorder: nodeBorder,
+    backgroundImage: backgroundImage,
+    pie: pie,
+    compound: compound,
+    // edge props
+    edgeLine: edgeLine,
+    edgeArrow: edgeArrow,
+    core: core
+  };
+  var propGroupNames = styfn$6.propertyGroupNames = {};
+  var propGroupKeys = styfn$6.propertyGroupKeys = Object.keys(propGroups);
+  propGroupKeys.forEach(function (key) {
+    propGroupNames[key] = propGroups[key].map(function (prop) {
+      return prop.name;
+    });
+    propGroups[key].forEach(function (prop) {
+      return prop.groupKey = key;
+    });
+  }); // define aliases
+
+  var aliases = styfn$6.aliases = [{
+    name: 'content',
+    pointsTo: 'label'
+  }, {
+    name: 'control-point-distance',
+    pointsTo: 'control-point-distances'
+  }, {
+    name: 'control-point-weight',
+    pointsTo: 'control-point-weights'
+  }, {
+    name: 'edge-text-rotation',
+    pointsTo: 'text-rotation'
+  }, {
+    name: 'padding-left',
+    pointsTo: 'padding'
+  }, {
+    name: 'padding-right',
+    pointsTo: 'padding'
+  }, {
+    name: 'padding-top',
+    pointsTo: 'padding'
+  }, {
+    name: 'padding-bottom',
+    pointsTo: 'padding'
+  }]; // list of property names
+
+  styfn$6.propertyNames = props.map(function (p) {
+    return p.name;
+  }); // allow access of properties by name ( e.g. style.properties.height )
+
+  for (var _i = 0; _i < props.length; _i++) {
+    var prop = props[_i];
+    props[prop.name] = prop; // allow lookup by name
+  } // map aliases
+
+
+  for (var _i2 = 0; _i2 < aliases.length; _i2++) {
+    var alias = aliases[_i2];
+    var pointsToProp = props[alias.pointsTo];
+    var aliasProp = {
+      name: alias.name,
+      alias: true,
+      pointsTo: pointsToProp
+    }; // add alias prop for parsing
+
+    props.push(aliasProp);
+    props[alias.name] = aliasProp; // allow lookup by name
+  }
+})();
 
-                            R[_i8 * n + maxI] = (1 - opts.damping) * (S[_i8 * n + maxI] - max2) + opts.damping * old[maxI];
-                        } // Update A availability matrix
+styfn$6.getDefaultProperty = function (name) {
+  return this.getDefaultProperties()[name];
+};
 
+styfn$6.getDefaultProperties = function () {
+  var _p = this._private;
 
-                        for (var _i9 = 0; _i9 < n; _i9++) {
-                            var sum = 0;
+  if (_p.defaultProperties != null) {
+    return _p.defaultProperties;
+  }
 
-                            for (var _j3 = 0; _j3 < n; _j3++) {
-                                old[_j3] = A[_j3 * n + _i9];
-                                Rp[_j3] = Math.max(0, R[_j3 * n + _i9]);
-                                sum += Rp[_j3];
-                            }
+  var rawProps = extend({
+    // core props
+    'selection-box-color': '#ddd',
+    'selection-box-opacity': 0.65,
+    'selection-box-border-color': '#aaa',
+    'selection-box-border-width': 1,
+    'active-bg-color': 'black',
+    'active-bg-opacity': 0.15,
+    'active-bg-size': 30,
+    'outside-texture-bg-color': '#000',
+    'outside-texture-bg-opacity': 0.125,
+    // common node/edge props
+    'events': 'yes',
+    'text-events': 'no',
+    'text-valign': 'top',
+    'text-halign': 'center',
+    'text-justification': 'auto',
+    'line-height': 1,
+    'color': '#000',
+    'text-outline-color': '#000',
+    'text-outline-width': 0,
+    'text-outline-opacity': 1,
+    'text-opacity': 1,
+    'text-decoration': 'none',
+    'text-transform': 'none',
+    'text-wrap': 'none',
+    'text-overflow-wrap': 'whitespace',
+    'text-max-width': 9999,
+    'text-background-color': '#000',
+    'text-background-opacity': 0,
+    'text-background-shape': 'rectangle',
+    'text-background-padding': 0,
+    'text-border-opacity': 0,
+    'text-border-width': 0,
+    'text-border-style': 'solid',
+    'text-border-color': '#000',
+    'font-family': 'Helvetica Neue, Helvetica, sans-serif',
+    'font-style': 'normal',
+    'font-weight': 'normal',
+    'font-size': 16,
+    'min-zoomed-font-size': 0,
+    'text-rotation': 'none',
+    'source-text-rotation': 'none',
+    'target-text-rotation': 'none',
+    'visibility': 'visible',
+    'display': 'element',
+    'opacity': 1,
+    'z-compound-depth': 'auto',
+    'z-index-compare': 'auto',
+    'z-index': 0,
+    'label': '',
+    'text-margin-x': 0,
+    'text-margin-y': 0,
+    'source-label': '',
+    'source-text-offset': 0,
+    'source-text-margin-x': 0,
+    'source-text-margin-y': 0,
+    'target-label': '',
+    'target-text-offset': 0,
+    'target-text-margin-x': 0,
+    'target-text-margin-y': 0,
+    'overlay-opacity': 0,
+    'overlay-color': '#000',
+    'overlay-padding': 10,
+    'transition-property': 'none',
+    'transition-duration': 0,
+    'transition-delay': 0,
+    'transition-timing-function': 'linear',
+    // node props
+    'background-blacken': 0,
+    'background-color': '#999',
+    'background-fill': 'solid',
+    'background-opacity': 1,
+    'background-image': 'none',
+    'background-image-crossorigin': 'anonymous',
+    'background-image-opacity': 1,
+    'background-position-x': '50%',
+    'background-position-y': '50%',
+    'background-offset-x': 0,
+    'background-offset-y': 0,
+    'background-width-relative-to': 'include-padding',
+    'background-height-relative-to': 'include-padding',
+    'background-repeat': 'no-repeat',
+    'background-fit': 'none',
+    'background-clip': 'node',
+    'background-width': 'auto',
+    'background-height': 'auto',
+    'border-color': '#000',
+    'border-opacity': 1,
+    'border-width': 0,
+    'border-style': 'solid',
+    'height': 30,
+    'width': 30,
+    'shape': 'ellipse',
+    'shape-polygon-points': '-1, -1,   1, -1,   1, 1,   -1, 1',
+    'bounds-expansion': 0,
+    // node gradient
+    'background-gradient-direction': 'to-bottom',
+    'background-gradient-stop-colors': '#999',
+    'background-gradient-stop-positions': '0%',
+    // ghost props
+    'ghost': 'no',
+    'ghost-offset-y': 0,
+    'ghost-offset-x': 0,
+    'ghost-opacity': 0,
+    // compound props
+    'padding': 0,
+    'padding-relative-to': 'width',
+    'position': 'origin',
+    'compound-sizing-wrt-labels': 'include',
+    'min-width': 0,
+    'min-width-bias-left': 0,
+    'min-width-bias-right': 0,
+    'min-height': 0,
+    'min-height-bias-top': 0,
+    'min-height-bias-bottom': 0
+  }, {
+    // node pie bg
+    'pie-size': '100%'
+  }, [{
+    name: 'pie-{{i}}-background-color',
+    value: 'black'
+  }, {
+    name: 'pie-{{i}}-background-size',
+    value: '0%'
+  }, {
+    name: 'pie-{{i}}-background-opacity',
+    value: 1
+  }].reduce(function (css, prop) {
+    for (var i = 1; i <= styfn$6.pieBackgroundN; i++) {
+      var name = prop.name.replace('{{i}}', i);
+      var val = prop.value;
+      css[name] = val;
+    }
 
-                            sum -= Rp[_i9];
-                            Rp[_i9] = R[_i9 * n + _i9];
-                            sum += Rp[_i9];
+    return css;
+  }, {}), {
+    // edge props
+    'line-style': 'solid',
+    'line-color': '#999',
+    'line-fill': 'solid',
+    'line-cap': 'butt',
+    'line-gradient-stop-colors': '#999',
+    'line-gradient-stop-positions': '0%',
+    'control-point-step-size': 40,
+    'control-point-weights': 0.5,
+    'segment-weights': 0.5,
+    'segment-distances': 20,
+    'taxi-turn': '50%',
+    'taxi-turn-min-distance': 10,
+    'taxi-direction': 'auto',
+    'edge-distances': 'intersection',
+    'curve-style': 'haystack',
+    'haystack-radius': 0,
+    'arrow-scale': 1,
+    'loop-direction': '-45deg',
+    'loop-sweep': '-90deg',
+    'source-distance-from-node': 0,
+    'target-distance-from-node': 0,
+    'source-endpoint': 'outside-to-node',
+    'target-endpoint': 'outside-to-node',
+    'line-dash-pattern': [6, 3],
+    'line-dash-offset': 0
+  }, [{
+    name: 'arrow-shape',
+    value: 'none'
+  }, {
+    name: 'arrow-color',
+    value: '#999'
+  }, {
+    name: 'arrow-fill',
+    value: 'filled'
+  }].reduce(function (css, prop) {
+    styfn$6.arrowPrefixes.forEach(function (prefix) {
+      var name = prefix + '-' + prop.name;
+      var val = prop.value;
+      css[name] = val;
+    });
+    return css;
+  }, {}));
+  var parsedProps = {};
+
+  for (var i = 0; i < this.properties.length; i++) {
+    var prop = this.properties[i];
+
+    if (prop.pointsTo) {
+      continue;
+    }
 
-                            for (var _j4 = 0; _j4 < n; _j4++) {
-                                A[_j4 * n + _i9] = (1 - opts.damping) * Math.min(0, sum - Rp[_j4]) + opts.damping * old[_j4];
-                            }
+    var name = prop.name;
+    var val = rawProps[name];
+    var parsedProp = this.parse(name, val);
+    parsedProps[name] = parsedProp;
+  }
 
-                            A[_i9 * n + _i9] = (1 - opts.damping) * (sum - Rp[_i9]) + opts.damping * old[_i9];
-                        } // Check for convergence
+  _p.defaultProperties = parsedProps;
+  return _p.defaultProperties;
+};
+
+styfn$6.addDefaultStylesheet = function () {
+  this.selector(':parent').css({
+    'shape': 'rectangle',
+    'padding': 10,
+    'background-color': '#eee',
+    'border-color': '#ccc',
+    'border-width': 1
+  }).selector('edge').css({
+    'width': 3
+  }).selector(':loop').css({
+    'curve-style': 'bezier'
+  }).selector('edge:compound').css({
+    'curve-style': 'bezier',
+    'source-endpoint': 'outside-to-line',
+    'target-endpoint': 'outside-to-line'
+  }).selector(':selected').css({
+    'background-color': '#0169D9',
+    'line-color': '#0169D9',
+    'source-arrow-color': '#0169D9',
+    'target-arrow-color': '#0169D9',
+    'mid-source-arrow-color': '#0169D9',
+    'mid-target-arrow-color': '#0169D9'
+  }).selector(':parent:selected').css({
+    'background-color': '#CCE1F9',
+    'border-color': '#aec8e5'
+  }).selector(':active').css({
+    'overlay-color': 'black',
+    'overlay-padding': 10,
+    'overlay-opacity': 0.25
+  });
+  this.defaultLength = this.length;
+};
+
+var styfn$7 = {}; // a caching layer for property parsing
+
+styfn$7.parse = function (name, value, propIsBypass, propIsFlat) {
+  var self = this; // function values can't be cached in all cases, and there isn't much benefit of caching them anyway
+
+  if (fn(value)) {
+    return self.parseImplWarn(name, value, propIsBypass, propIsFlat);
+  }
 
+  var flatKey = propIsFlat === 'mapping' || propIsFlat === true || propIsFlat === false || propIsFlat == null ? 'dontcare' : propIsFlat;
+  var bypassKey = propIsBypass ? 't' : 'f';
+  var valueKey = '' + value;
+  var argHash = hashStrings(name, valueKey, bypassKey, flatKey);
+  var propCache = self.propCache = self.propCache || [];
+  var ret;
 
-                        var K = 0;
+  if (!(ret = propCache[argHash])) {
+    ret = propCache[argHash] = self.parseImplWarn(name, value, propIsBypass, propIsFlat);
+  } // - bypasses can't be shared b/c the value can be changed by animations or otherwise overridden
+  // - mappings can't be shared b/c mappings are per-element
 
-                        for (var _i10 = 0; _i10 < n; _i10++) {
-                            var E = A[_i10 * n + _i10] + R[_i10 * n + _i10] > 0 ? 1 : 0;
-                            e[iter % opts.minIterations * n + _i10] = E;
-                            K += E;
-                        }
 
-                        if (K > 0 && (iter >= opts.minIterations - 1 || iter == opts.maxIterations - 1)) {
-                            var _sum = 0;
+  if (propIsBypass || propIsFlat === 'mapping') {
+    // need a copy since props are mutated later in their lifecycles
+    ret = copy(ret);
 
-                            for (var _i11 = 0; _i11 < n; _i11++) {
-                                se[_i11] = 0;
+    if (ret) {
+      ret.value = copy(ret.value); // because it could be an array, e.g. colour
+    }
+  }
 
-                                for (var _j5 = 0; _j5 < opts.minIterations; _j5++) {
-                                    se[_i11] += e[_j5 * n + _i11];
-                                }
+  return ret;
+};
 
-                                if (se[_i11] === 0 || se[_i11] === opts.minIterations) {
-                                    _sum++;
-                                }
-                            }
+styfn$7.parseImplWarn = function (name, value, propIsBypass, propIsFlat) {
+  var prop = this.parseImpl(name, value, propIsBypass, propIsFlat);
 
-                            if (_sum === n) {
-                                // then we have convergence
-                                break;
-                            }
-                        }
-                    } // Identify exemplars (cluster centers)
+  if (!prop && value != null) {
+    warn("The style property `".concat(name, ": ").concat(value, "` is invalid"));
+  }
 
+  if (prop && (prop.name === 'width' || prop.name === 'height') && value === 'label') {
+    warn('The style value of `label` is deprecated for `' + prop.name + '`');
+  }
 
-                    var exemplarsIndices = findExemplars(n, R, A); // Assign nodes to clusters
+  return prop;
+}; // parse a property; return null on invalid; return parsed property otherwise
+// fields :
+// - name : the name of the property
+// - value : the parsed, native-typed value of the property
+// - strValue : a string value that represents the property value in valid css
+// - bypass : true iff the property is a bypass property
 
-                    var clusterIndices = assign$2(n, S, exemplarsIndices);
-                    var clusters = {};
 
-                    for (var c = 0; c < exemplarsIndices.length; c++) {
-                        clusters[exemplarsIndices[c]] = [];
-                    }
+styfn$7.parseImpl = function (name, value, propIsBypass, propIsFlat) {
+  var self = this;
+  name = camel2dash(name); // make sure the property name is in dash form (e.g. 'property-name' not 'propertyName')
 
-                    for (var _i12 = 0; _i12 < nodes.length; _i12++) {
-                        var pos = id2position[nodes[_i12].id()];
+  var property = self.properties[name];
+  var passedValue = value;
+  var types = self.types;
 
-                        var clusterIndex = clusterIndices[pos];
+  if (!property) {
+    return null;
+  } // return null on property of unknown name
 
-                        if (clusterIndex != null) {
-                            // the node may have not been assigned a cluster if no valid attributes were specified
-                            clusters[clusterIndex].push(nodes[_i12]);
-                        }
-                    }
 
-                    var retClusters = new Array(exemplarsIndices.length);
+  if (value === undefined) {
+    return null;
+  } // can't assign undefined
+  // the property may be an alias
 
-                    for (var _c = 0; _c < exemplarsIndices.length; _c++) {
-                        retClusters[_c] = cy.collection(clusters[exemplarsIndices[_c]]);
-                    }
 
-                    return retClusters;
-                };
+  if (property.alias) {
+    property = property.pointsTo;
+    name = property.name;
+  }
 
-                var affinityPropagation$1 = {
-                    affinityPropagation: affinityPropagation,
-                    ap: affinityPropagation
-                };
+  var valueIsString = string(value);
 
-                var hierholzerDefaults = defaults({
-                    root: undefined,
-                    directed: false
-                });
-                var elesfn$b = {
-                    hierholzer: function hierholzer(options) {
-                        if (!plainObject(options)) {
-                            var args = arguments;
-                            options = {
-                                root: args[0],
-                                directed: args[1]
-                            };
-                        }
+  if (valueIsString) {
+    // trim the value to make parsing easier
+    value = value.trim();
+  }
 
-                        var _hierholzerDefaults = hierholzerDefaults(options),
-                            root = _hierholzerDefaults.root,
-                            directed = _hierholzerDefaults.directed;
-
-                        var eles = this;
-                        var dflag = false;
-                        var oddIn;
-                        var oddOut;
-                        var startVertex;
-                        if (root) startVertex = string(root) ? this.filter(root)[0].id() : root[0].id();
-                        var nodes = {};
-                        var edges = {};
-
-                        if (directed) {
-                            eles.forEach(function (ele) {
-                                var id = ele.id();
-
-                                if (ele.isNode()) {
-                                    var ind = ele.indegree(true);
-                                    var outd = ele.outdegree(true);
-                                    var d1 = ind - outd;
-                                    var d2 = outd - ind;
-
-                                    if (d1 == 1) {
-                                        if (oddIn) dflag = true;else oddIn = id;
-                                    } else if (d2 == 1) {
-                                        if (oddOut) dflag = true;else oddOut = id;
-                                    } else if (d2 > 1 || d1 > 1) {
-                                        dflag = true;
-                                    }
-
-                                    nodes[id] = [];
-                                    ele.outgoers().forEach(function (e) {
-                                        if (e.isEdge()) nodes[id].push(e.id());
-                                    });
-                                } else {
-                                    edges[id] = [undefined, ele.target().id()];
-                                }
-                            });
-                        } else {
-                            eles.forEach(function (ele) {
-                                var id = ele.id();
-
-                                if (ele.isNode()) {
-                                    var d = ele.degree(true);
-
-                                    if (d % 2) {
-                                        if (!oddIn) oddIn = id;else if (!oddOut) oddOut = id;else dflag = true;
-                                    }
-
-                                    nodes[id] = [];
-                                    ele.connectedEdges().forEach(function (e) {
-                                        return nodes[id].push(e.id());
-                                    });
-                                } else {
-                                    edges[id] = [ele.source().id(), ele.target().id()];
-                                }
-                            });
-                        }
+  var type = property.type;
 
-                        var result = {
-                            found: false,
-                            trail: undefined
-                        };
-                        if (dflag) return result;else if (oddOut && oddIn) {
-                            if (directed) {
-                                if (startVertex && oddOut != startVertex) {
-                                    return result;
-                                }
-
-                                startVertex = oddOut;
-                            } else {
-                                if (startVertex && oddOut != startVertex && oddIn != startVertex) {
-                                    return result;
-                                } else if (!startVertex) {
-                                    startVertex = oddOut;
-                                }
-                            }
-                        } else {
-                            if (!startVertex) startVertex = eles[0].id();
-                        }
+  if (!type) {
+    return null;
+  } // no type, no luck
+  // check if bypass is null or empty string (i.e. indication to delete bypass property)
 
-                        var walk = function walk(v) {
-                            var currentNode = v;
-                            var subtour = [v];
-                            var adj, adjTail, adjHead;
-
-                            while (nodes[currentNode].length) {
-                                adj = nodes[currentNode].shift();
-                                adjTail = edges[adj][0];
-                                adjHead = edges[adj][1];
-
-                                if (currentNode != adjHead) {
-                                    nodes[adjHead] = nodes[adjHead].filter(function (e) {
-                                        return e != adj;
-                                    });
-                                    currentNode = adjHead;
-                                } else if (!directed && currentNode != adjTail) {
-                                    nodes[adjTail] = nodes[adjTail].filter(function (e) {
-                                        return e != adj;
-                                    });
-                                    currentNode = adjTail;
-                                }
-
-                                subtour.unshift(adj);
-                                subtour.unshift(currentNode);
-                            }
 
-                            return subtour;
-                        };
+  if (propIsBypass && (value === '' || value === null)) {
+    return {
+      name: name,
+      value: value,
+      bypass: true,
+      deleteBypass: true
+    };
+  } // check if value is a function used as a mapper
 
-                        var trail = [];
-                        var subtour = [];
-                        subtour = walk(startVertex);
 
-                        while (subtour.length != 1) {
-                            if (nodes[subtour[0]].length == 0) {
-                                trail.unshift(eles.getElementById(subtour.shift()));
-                                trail.unshift(eles.getElementById(subtour.shift()));
-                            } else {
-                                subtour = walk(subtour.shift()).concat(subtour);
-                            }
-                        }
+  if (fn(value)) {
+    return {
+      name: name,
+      value: value,
+      strValue: 'fn',
+      mapped: types.fn,
+      bypass: propIsBypass
+    };
+  } // check if value is mapped
 
-                        trail.unshift(eles.getElementById(subtour.shift())); // final node
 
-                        for (var d in nodes) {
-                            if (nodes[d].length) {
-                                return result;
-                            }
-                        }
+  var data, mapData;
 
-                        result.found = true;
-                        result.trail = this.spawn(trail, true);
-                        return result;
-                    }
-                };
+  if (!valueIsString || propIsFlat || value.length < 7 || value[1] !== 'a') ; else if (value.length >= 7 && value[0] === 'd' && (data = new RegExp(types.data.regex).exec(value))) {
+    if (propIsBypass) {
+      return false;
+    } // mappers not allowed in bypass
 
-                var hopcroftTarjanBiconnected = function hopcroftTarjanBiconnected() {
-                    var eles = this;
-                    var nodes = {};
-                    var id = 0;
-                    var edgeCount = 0;
-                    var components = [];
-                    var stack = [];
-                    var visitedEdges = {};
-
-                    var buildComponent = function buildComponent(x, y) {
-                        var i = stack.length - 1;
-                        var cutset = [];
-                        var component = eles.spawn();
-
-                        while (stack[i].x != x || stack[i].y != y) {
-                            cutset.push(stack.pop().edge);
-                            i--;
-                        }
 
-                        cutset.push(stack.pop().edge);
-                        cutset.forEach(function (edge) {
-                            var connectedNodes = edge.connectedNodes().intersection(eles);
-                            component.merge(edge);
-                            connectedNodes.forEach(function (node) {
-                                var nodeId = node.id();
-                                var connectedEdges = node.connectedEdges().intersection(eles);
-                                component.merge(node);
-
-                                if (!nodes[nodeId].cutVertex) {
-                                    component.merge(connectedEdges);
-                                } else {
-                                    component.merge(connectedEdges.filter(function (edge) {
-                                        return edge.isLoop();
-                                    }));
-                                }
-                            });
-                        });
-                        components.push(component);
-                    };
-
-                    var biconnectedSearch = function biconnectedSearch(root, currentNode, parent) {
-                        if (root === parent) edgeCount += 1;
-                        nodes[currentNode] = {
-                            id: id,
-                            low: id++,
-                            cutVertex: false
-                        };
-                        var edges = eles.getElementById(currentNode).connectedEdges().intersection(eles);
-
-                        if (edges.size() === 0) {
-                            components.push(eles.spawn(eles.getElementById(currentNode)));
-                        } else {
-                            var sourceId, targetId, otherNodeId, edgeId;
-                            edges.forEach(function (edge) {
-                                sourceId = edge.source().id();
-                                targetId = edge.target().id();
-                                otherNodeId = sourceId === currentNode ? targetId : sourceId;
-
-                                if (otherNodeId !== parent) {
-                                    edgeId = edge.id();
-
-                                    if (!visitedEdges[edgeId]) {
-                                        visitedEdges[edgeId] = true;
-                                        stack.push({
-                                            x: currentNode,
-                                            y: otherNodeId,
-                                            edge: edge
-                                        });
-                                    }
-
-                                    if (!(otherNodeId in nodes)) {
-                                        biconnectedSearch(root, otherNodeId, currentNode);
-                                        nodes[currentNode].low = Math.min(nodes[currentNode].low, nodes[otherNodeId].low);
-
-                                        if (nodes[currentNode].id <= nodes[otherNodeId].low) {
-                                            nodes[currentNode].cutVertex = true;
-                                            buildComponent(currentNode, otherNodeId);
-                                        }
-                                    } else {
-                                        nodes[currentNode].low = Math.min(nodes[currentNode].low, nodes[otherNodeId].id);
-                                    }
-                                }
-                            });
-                        }
-                    };
+    var mapped = types.data;
+    return {
+      name: name,
+      value: data,
+      strValue: '' + value,
+      mapped: mapped,
+      field: data[1],
+      bypass: propIsBypass
+    };
+  } else if (value.length >= 10 && value[0] === 'm' && (mapData = new RegExp(types.mapData.regex).exec(value))) {
+    if (propIsBypass) {
+      return false;
+    } // mappers not allowed in bypass
 
-                    eles.forEach(function (ele) {
-                        if (ele.isNode()) {
-                            var nodeId = ele.id();
 
-                            if (!(nodeId in nodes)) {
-                                edgeCount = 0;
-                                biconnectedSearch(nodeId, nodeId);
-                                nodes[nodeId].cutVertex = edgeCount > 1;
-                            }
-                        }
-                    });
-                    var cutVertices = Object.keys(nodes).filter(function (id) {
-                        return nodes[id].cutVertex;
-                    }).map(function (id) {
-                        return eles.getElementById(id);
-                    });
-                    return {
-                        cut: eles.spawn(cutVertices),
-                        components: components
-                    };
-                };
+    if (type.multiple) {
+      return false;
+    } // impossible to map to num
 
-                var hopcroftTarjanBiconnected$1 = {
-                    hopcroftTarjanBiconnected: hopcroftTarjanBiconnected,
-                    htbc: hopcroftTarjanBiconnected,
-                    htb: hopcroftTarjanBiconnected,
-                    hopcroftTarjanBiconnectedComponents: hopcroftTarjanBiconnected
-                };
 
-                var tarjanStronglyConnected = function tarjanStronglyConnected() {
-                    var eles = this;
-                    var nodes = {};
-                    var index = 0;
-                    var components = [];
-                    var stack = [];
-                    var cut = eles.spawn(eles);
-
-                    var stronglyConnectedSearch = function stronglyConnectedSearch(sourceNodeId) {
-                        stack.push(sourceNodeId);
-                        nodes[sourceNodeId] = {
-                            index: index,
-                            low: index++,
-                            explored: false
-                        };
-                        var connectedEdges = eles.getElementById(sourceNodeId).connectedEdges().intersection(eles);
-                        connectedEdges.forEach(function (edge) {
-                            var targetNodeId = edge.target().id();
-
-                            if (targetNodeId !== sourceNodeId) {
-                                if (!(targetNodeId in nodes)) {
-                                    stronglyConnectedSearch(targetNodeId);
-                                }
-
-                                if (!nodes[targetNodeId].explored) {
-                                    nodes[sourceNodeId].low = Math.min(nodes[sourceNodeId].low, nodes[targetNodeId].low);
-                                }
-                            }
-                        });
+    var _mapped = types.mapData; // we can map only if the type is a colour or a number
 
-                        if (nodes[sourceNodeId].index === nodes[sourceNodeId].low) {
-                            var componentNodes = eles.spawn();
+    if (!(type.color || type.number)) {
+      return false;
+    }
 
-                            for (;;) {
-                                var nodeId = stack.pop();
-                                componentNodes.merge(eles.getElementById(nodeId));
-                                nodes[nodeId].low = nodes[sourceNodeId].index;
-                                nodes[nodeId].explored = true;
+    var valueMin = this.parse(name, mapData[4]); // parse to validate
 
-                                if (nodeId === sourceNodeId) {
-                                    break;
-                                }
-                            }
+    if (!valueMin || valueMin.mapped) {
+      return false;
+    } // can't be invalid or mapped
 
-                            var componentEdges = componentNodes.edgesWith(componentNodes);
-                            var component = componentNodes.merge(componentEdges);
-                            components.push(component);
-                            cut = cut.difference(component);
-                        }
-                    };
 
-                    eles.forEach(function (ele) {
-                        if (ele.isNode()) {
-                            var nodeId = ele.id();
+    var valueMax = this.parse(name, mapData[5]); // parse to validate
 
-                            if (!(nodeId in nodes)) {
-                                stronglyConnectedSearch(nodeId);
-                            }
-                        }
-                    });
-                    return {
-                        cut: cut,
-                        components: components
-                    };
-                };
+    if (!valueMax || valueMax.mapped) {
+      return false;
+    } // can't be invalid or mapped
+    // check if valueMin and valueMax are the same
 
-                var tarjanStronglyConnected$1 = {
-                    tarjanStronglyConnected: tarjanStronglyConnected,
-                    tsc: tarjanStronglyConnected,
-                    tscc: tarjanStronglyConnected,
-                    tarjanStronglyConnectedComponents: tarjanStronglyConnected
-                };
 
-                var elesfn$c = {};
-                [elesfn, elesfn$1, elesfn$2, elesfn$3, elesfn$4, elesfn$5, elesfn$6, elesfn$7, elesfn$8, elesfn$9, elesfn$a, markovClustering$1, kClustering, hierarchicalClustering$1, affinityPropagation$1, elesfn$b, hopcroftTarjanBiconnected$1, tarjanStronglyConnected$1].forEach(function (props) {
-                    extend(elesfn$c, props);
-                });
+    if (valueMin.pfValue === valueMax.pfValue || valueMin.strValue === valueMax.strValue) {
+      warn('`' + name + ': ' + value + '` is not a valid mapper because the output range is zero; converting to `' + name + ': ' + valueMin.strValue + '`');
+      return this.parse(name, valueMin.strValue); // can't make much of a mapper without a range
+    } else if (type.color) {
+      var c1 = valueMin.value;
+      var c2 = valueMax.value;
+      var same = c1[0] === c2[0] // red
+      && c1[1] === c2[1] // green
+      && c1[2] === c2[2] // blue
+      && ( // optional alpha
+      c1[3] === c2[3] // same alpha outright
+      || (c1[3] == null || c1[3] === 1) && ( // full opacity for colour 1?
+      c2[3] == null || c2[3] === 1) // full opacity for colour 2?
+      );
 
-                /*!
-Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
-Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
-Licensed under The MIT License (http://opensource.org/licenses/MIT)
-*/
+      if (same) {
+        return false;
+      } // can't make a mapper without a range
 
-                /*  promise states [Promises/A+ 2.1]  */
-                var STATE_PENDING = 0;
-                /*  [Promises/A+ 2.1.1]  */
+    }
 
-                var STATE_FULFILLED = 1;
-                /*  [Promises/A+ 2.1.2]  */
+    return {
+      name: name,
+      value: mapData,
+      strValue: '' + value,
+      mapped: _mapped,
+      field: mapData[1],
+      fieldMin: parseFloat(mapData[2]),
+      // min & max are numeric
+      fieldMax: parseFloat(mapData[3]),
+      valueMin: valueMin.value,
+      valueMax: valueMax.value,
+      bypass: propIsBypass
+    };
+  }
 
-                var STATE_REJECTED = 2;
-                /*  [Promises/A+ 2.1.3]  */
+  if (type.multiple && propIsFlat !== 'multiple') {
+    var vals;
 
-                /*  promise object constructor  */
+    if (valueIsString) {
+      vals = value.split(/\s+/);
+    } else if (array(value)) {
+      vals = value;
+    } else {
+      vals = [value];
+    }
 
-                var api = function api(executor) {
-                    /*  optionally support non-constructor/plain-function call  */
-                    if (!(this instanceof api)) return new api(executor);
-                    /*  initialize object  */
+    if (type.evenMultiple && vals.length % 2 !== 0) {
+      return null;
+    }
 
-                    this.id = 'Thenable/1.0.7';
-                    this.state = STATE_PENDING;
-                    /*  initial state  */
+    var valArr = [];
+    var unitsArr = [];
+    var pfValArr = [];
+    var strVal = '';
+    var hasEnum = false;
+
+    for (var i = 0; i < vals.length; i++) {
+      var p = self.parse(name, vals[i], propIsBypass, 'multiple');
+      hasEnum = hasEnum || string(p.value);
+      valArr.push(p.value);
+      pfValArr.push(p.pfValue != null ? p.pfValue : p.value);
+      unitsArr.push(p.units);
+      strVal += (i > 0 ? ' ' : '') + p.strValue;
+    }
 
-                    this.fulfillValue = undefined;
-                    /*  initial value  */
+    if (type.validate && !type.validate(valArr, unitsArr)) {
+      return null;
+    }
 
-                    /*  [Promises/A+ 1.3, 2.1.2.2]  */
+    if (type.singleEnum && hasEnum) {
+      if (valArr.length === 1 && string(valArr[0])) {
+        return {
+          name: name,
+          value: valArr[0],
+          strValue: valArr[0],
+          bypass: propIsBypass
+        };
+      } else {
+        return null;
+      }
+    }
 
-                    this.rejectReason = undefined;
-                    /*  initial reason */
+    return {
+      name: name,
+      value: valArr,
+      pfValue: pfValArr,
+      strValue: strVal,
+      bypass: propIsBypass,
+      units: unitsArr
+    };
+  } // several types also allow enums
+
+
+  var checkEnums = function checkEnums() {
+    for (var _i = 0; _i < type.enums.length; _i++) {
+      var en = type.enums[_i];
+
+      if (en === value) {
+        return {
+          name: name,
+          value: value,
+          strValue: '' + value,
+          bypass: propIsBypass
+        };
+      }
+    }
 
-                    /*  [Promises/A+ 1.5, 2.1.3.2]  */
+    return null;
+  }; // check the type and return the appropriate object
 
-                    this.onFulfilled = [];
-                    /*  initial handlers  */
 
-                    this.onRejected = [];
-                    /*  initial handlers  */
+  if (type.number) {
+    var units;
+    var implicitUnits = 'px'; // not set => px
 
-                    /*  provide optional information-hiding proxy  */
+    if (type.units) {
+      // use specified units if set
+      units = type.units;
+    }
 
-                    this.proxy = {
-                        then: this.then.bind(this)
-                    };
-                    /*  support optional executor function  */
+    if (type.implicitUnits) {
+      implicitUnits = type.implicitUnits;
+    }
 
-                    if (typeof executor === 'function') executor.call(this, this.fulfill.bind(this), this.reject.bind(this));
-                };
-                /*  promise API methods  */
+    if (!type.unitless) {
+      if (valueIsString) {
+        var unitsRegex = 'px|em' + (type.allowPercent ? '|\\%' : '');
 
+        if (units) {
+          unitsRegex = units;
+        } // only allow explicit units if so set
 
-                api.prototype = {
-                    /*  promise resolving methods  */
-                    fulfill: function fulfill(value) {
-                        return deliver(this, STATE_FULFILLED, 'fulfillValue', value);
-                    },
-                    reject: function reject(value) {
-                        return deliver(this, STATE_REJECTED, 'rejectReason', value);
-                    },
 
-                    /*  "The then Method" [Promises/A+ 1.1, 1.2, 2.2]  */
-                    then: function then(onFulfilled, onRejected) {
-                        var curr = this;
-                        var next = new api();
-                        /*  [Promises/A+ 2.2.7]  */
+        var match = value.match('^(' + number$1 + ')(' + unitsRegex + ')?' + '$');
 
-                        curr.onFulfilled.push(resolver(onFulfilled, next, 'fulfill'));
-                        /*  [Promises/A+ 2.2.2/2.2.6]  */
+        if (match) {
+          value = match[1];
+          units = match[2] || implicitUnits;
+        }
+      } else if (!units || type.implicitUnits) {
+        units = implicitUnits; // implicitly px if unspecified
+      }
+    }
 
-                        curr.onRejected.push(resolver(onRejected, next, 'reject'));
-                        /*  [Promises/A+ 2.2.3/2.2.6]  */
+    value = parseFloat(value); // if not a number and enums not allowed, then the value is invalid
 
-                        execute(curr);
-                        return next.proxy;
-                        /*  [Promises/A+ 2.2.7, 3.3]  */
-                    }
-                };
-                /*  deliver an action  */
+    if (isNaN(value) && type.enums === undefined) {
+      return null;
+    } // check if this number type also accepts special keywords in place of numbers
+    // (i.e. `left`, `auto`, etc)
 
-                var deliver = function deliver(curr, state, name, value) {
-                    if (curr.state === STATE_PENDING) {
-                        curr.state = state;
-                        /*  [Promises/A+ 2.1.2.1, 2.1.3.1]  */
 
-                        curr[name] = value;
-                        /*  [Promises/A+ 2.1.2.2, 2.1.3.2]  */
+    if (isNaN(value) && type.enums !== undefined) {
+      value = passedValue;
+      return checkEnums();
+    } // check if value must be an integer
 
-                        execute(curr);
-                    }
 
-                    return curr;
-                };
-                /*  execute all handlers  */
+    if (type.integer && !integer(value)) {
+      return null;
+    } // check value is within range
 
 
-                var execute = function execute(curr) {
-                    if (curr.state === STATE_FULFILLED) execute_handlers(curr, 'onFulfilled', curr.fulfillValue);else if (curr.state === STATE_REJECTED) execute_handlers(curr, 'onRejected', curr.rejectReason);
-                };
-                /*  execute particular set of handlers  */
+    if (type.min !== undefined && (value < type.min || type.strictMin && value === type.min) || type.max !== undefined && (value > type.max || type.strictMax && value === type.max)) {
+      return null;
+    }
 
+    var ret = {
+      name: name,
+      value: value,
+      strValue: '' + value + (units ? units : ''),
+      units: units,
+      bypass: propIsBypass
+    }; // normalise value in pixels
 
-                var execute_handlers = function execute_handlers(curr, name, value) {
-                    /* global setImmediate: true */
+    if (type.unitless || units !== 'px' && units !== 'em') {
+      ret.pfValue = value;
+    } else {
+      ret.pfValue = units === 'px' || !units ? value : this.getEmSizeInPixels() * value;
+    } // normalise value in ms
 
-                    /* global setTimeout: true */
 
-                    /*  short-circuit processing  */
-                    if (curr[name].length === 0) return;
-                    /*  iterate over all handlers, exactly once  */
+    if (units === 'ms' || units === 's') {
+      ret.pfValue = units === 'ms' ? value : 1000 * value;
+    } // normalise value in rad
 
-                    var handlers = curr[name];
-                    curr[name] = [];
-                    /*  [Promises/A+ 2.2.2.3, 2.2.3.3]  */
 
-                    var func = function func() {
-                        for (var i = 0; i < handlers.length; i++) {
-                            handlers[i](value);
-                        }
-                        /*  [Promises/A+ 2.2.5]  */
+    if (units === 'deg' || units === 'rad') {
+      ret.pfValue = units === 'rad' ? value : deg2rad(value);
+    } // normalize value in %
 
-                    };
-                    /*  execute procedure asynchronously  */
 
-                    /*  [Promises/A+ 2.2.4, 3.1]  */
+    if (units === '%') {
+      ret.pfValue = value / 100;
+    }
 
+    return ret;
+  } else if (type.propList) {
+    var props = [];
+    var propsStr = '' + value;
 
-                    if (typeof setImmediate === 'function') setImmediate(func);else setTimeout(func, 0);
-                };
-                /*  generate a resolver function  */
+    if (propsStr === 'none') ; else {
+      // go over each prop
+      var propsSplit = propsStr.split(/\s*,\s*|\s+/);
 
+      for (var _i2 = 0; _i2 < propsSplit.length; _i2++) {
+        var propName = propsSplit[_i2].trim();
 
-                var resolver = function resolver(cb, next, method) {
-                    return function (value) {
-                        if (typeof cb !== 'function')
-                            /*  [Promises/A+ 2.2.1, 2.2.7.3, 2.2.7.4]  */
-                            next[method].call(next, value);
-                        /*  [Promises/A+ 2.2.7.3, 2.2.7.4]  */
-                        else {
-                            var result;
+        if (self.properties[propName]) {
+          props.push(propName);
+        } else {
+          warn('`' + propName + '` is not a valid property name');
+        }
+      }
 
-                            try {
-                                result = cb(value);
-                            }
-                                /*  [Promises/A+ 2.2.2.1, 2.2.3.1, 2.2.5, 3.2]  */
-                            catch (e) {
-                                next.reject(e);
-                                /*  [Promises/A+ 2.2.7.2]  */
+      if (props.length === 0) {
+        return null;
+      }
+    }
 
-                                return;
-                            }
+    return {
+      name: name,
+      value: props,
+      strValue: props.length === 0 ? 'none' : props.join(' '),
+      bypass: propIsBypass
+    };
+  } else if (type.color) {
+    var tuple = color2tuple(value);
+
+    if (!tuple) {
+      return null;
+    }
 
-                            resolve(next, result);
-                            /*  [Promises/A+ 2.2.7.1]  */
-                        }
-                    };
-                };
-                /*  "Promise Resolution Procedure"  */
+    return {
+      name: name,
+      value: tuple,
+      pfValue: tuple,
+      strValue: 'rgb(' + tuple[0] + ',' + tuple[1] + ',' + tuple[2] + ')',
+      // n.b. no spaces b/c of multiple support
+      bypass: propIsBypass
+    };
+  } else if (type.regex || type.regexes) {
+    // first check enums
+    if (type.enums) {
+      var enumProp = checkEnums();
+
+      if (enumProp) {
+        return enumProp;
+      }
+    }
 
-                /*  [Promises/A+ 2.3]  */
+    var regexes = type.regexes ? type.regexes : [type.regex];
 
+    for (var _i3 = 0; _i3 < regexes.length; _i3++) {
+      var regex = new RegExp(regexes[_i3]); // make a regex from the type string
 
-                var resolve = function resolve(promise, x) {
-                    /*  sanity check arguments  */
+      var m = regex.exec(value);
 
-                    /*  [Promises/A+ 2.3.1]  */
-                    if (promise === x || promise.proxy === x) {
-                        promise.reject(new TypeError('cannot resolve promise with itself'));
-                        return;
-                    }
-                    /*  surgically check for a "then" method
-    (mainly to just call the "getter" of "then" only once)  */
+      if (m) {
+        // regex matches
+        return {
+          name: name,
+          value: type.singleRegexMatchValue ? m[1] : m,
+          strValue: '' + value,
+          bypass: propIsBypass
+        };
+      }
+    }
 
+    return null; // didn't match any
+  } else if (type.string) {
+    // just return
+    return {
+      name: name,
+      value: '' + value,
+      strValue: '' + value,
+      bypass: propIsBypass
+    };
+  } else if (type.enums) {
+    // check enums last because it's a combo type in others
+    return checkEnums();
+  } else {
+    return null; // not a type we can handle
+  }
+};
 
-                    var then;
+var Style = function Style(cy) {
+  if (!(this instanceof Style)) {
+    return new Style(cy);
+  }
 
-                    if (_typeof(x) === 'object' && x !== null || typeof x === 'function') {
-                        try {
-                            then = x.then;
-                        }
-                            /*  [Promises/A+ 2.3.3.1, 3.5]  */
-                        catch (e) {
-                            promise.reject(e);
-                            /*  [Promises/A+ 2.3.3.2]  */
+  if (!core(cy)) {
+    error('A style must have a core reference');
+    return;
+  }
 
-                            return;
-                        }
-                    }
-                    /*  handle own Thenables    [Promises/A+ 2.3.2]
-    and similar "thenables" [Promises/A+ 2.3.3]  */
+  this._private = {
+    cy: cy,
+    coreStyle: {}
+  };
+  this.length = 0;
+  this.resetToDefault();
+};
 
+var styfn$8 = Style.prototype;
 
-                    if (typeof then === 'function') {
-                        var resolved = false;
-
-                        try {
-                            /*  call retrieved "then" method */
-
-                            /*  [Promises/A+ 2.3.3.3]  */
-                            then.call(x,
-                                /*  resolvePromise  */
-
-                                /*  [Promises/A+ 2.3.3.3.1]  */
-                                function (y) {
-                                    if (resolved) return;
-                                    resolved = true;
-                                    /*  [Promises/A+ 2.3.3.3.3]  */
-
-                                    if (y === x)
-                                        /*  [Promises/A+ 3.6]  */
-                                        promise.reject(new TypeError('circular thenable chain'));else resolve(promise, y);
-                                },
-                                /*  rejectPromise  */
-
-                                /*  [Promises/A+ 2.3.3.3.2]  */
-                                function (r) {
-                                    if (resolved) return;
-                                    resolved = true;
-                                    /*  [Promises/A+ 2.3.3.3.3]  */
-
-                                    promise.reject(r);
-                                });
-                        } catch (e) {
-                            if (!resolved)
-                                /*  [Promises/A+ 2.3.3.3.3]  */
-                                promise.reject(e);
-                            /*  [Promises/A+ 2.3.3.3.4]  */
-                        }
+styfn$8.instanceString = function () {
+  return 'style';
+}; // remove all contexts
 
-                        return;
-                    }
-                    /*  handle other values  */
 
+styfn$8.clear = function () {
+  var _p = this._private;
+  var cy = _p.cy;
+  var eles = cy.elements();
 
-                    promise.fulfill(x);
-                    /*  [Promises/A+ 2.3.4, 2.3.3.4]  */
-                }; // so we always have Promise.all()
+  for (var i = 0; i < this.length; i++) {
+    this[i] = undefined;
+  }
 
+  this.length = 0;
+  _p.contextStyles = {};
+  _p.propDiffs = {};
+  this.cleanElements(eles, true);
+  eles.forEach(function (ele) {
+    var ele_p = ele[0]._private;
+    ele_p.styleDirty = true;
+    ele_p.appliedInitStyle = false;
+  });
+  return this; // chaining
+};
+
+styfn$8.resetToDefault = function () {
+  this.clear();
+  this.addDefaultStylesheet();
+  return this;
+}; // builds a style object for the 'core' selector
+
+
+styfn$8.core = function (propName) {
+  return this._private.coreStyle[propName] || this.getDefaultProperty(propName);
+}; // create a new context from the specified selector string and switch to that context
+
+
+styfn$8.selector = function (selectorStr) {
+  // 'core' is a special case and does not need a selector
+  var selector = selectorStr === 'core' ? null : new Selector(selectorStr);
+  var i = this.length++; // new context means new index
+
+  this[i] = {
+    selector: selector,
+    properties: [],
+    mappedProperties: [],
+    index: i
+  };
+  return this; // chaining
+}; // add one or many css rules to the current context
+
+
+styfn$8.css = function () {
+  var self = this;
+  var args = arguments;
+
+  if (args.length === 1) {
+    var map = args[0];
+
+    for (var i = 0; i < self.properties.length; i++) {
+      var prop = self.properties[i];
+      var mapVal = map[prop.name];
+
+      if (mapVal === undefined) {
+        mapVal = map[dash2camel(prop.name)];
+      }
+
+      if (mapVal !== undefined) {
+        this.cssRule(prop.name, mapVal);
+      }
+    }
+  } else if (args.length === 2) {
+    this.cssRule(args[0], args[1]);
+  } // do nothing if args are invalid
 
-                api.all = function (ps) {
-                    return new api(function (resolveAll, rejectAll) {
-                        var vals = new Array(ps.length);
-                        var doneCount = 0;
 
-                        var fulfill = function fulfill(i, val) {
-                            vals[i] = val;
-                            doneCount++;
+  return this; // chaining
+};
 
-                            if (doneCount === ps.length) {
-                                resolveAll(vals);
-                            }
-                        };
-
-                        for (var i = 0; i < ps.length; i++) {
-                            (function (i) {
-                                var p = ps[i];
-                                var isPromise = p != null && p.then != null;
-
-                                if (isPromise) {
-                                    p.then(function (val) {
-                                        fulfill(i, val);
-                                    }, function (err) {
-                                        rejectAll(err);
-                                    });
-                                } else {
-                                    var val = p;
-                                    fulfill(i, val);
-                                }
-                            })(i);
-                        }
-                    });
-                };
+styfn$8.style = styfn$8.css; // add a single css rule to the current context
 
-                api.resolve = function (val) {
-                    return new api(function (resolve, reject) {
-                        resolve(val);
-                    });
-                };
+styfn$8.cssRule = function (name, value) {
+  // name-value pair
+  var property = this.parse(name, value); // add property to current context if valid
 
-                api.reject = function (val) {
-                    return new api(function (resolve, reject) {
-                        reject(val);
-                    });
-                };
+  if (property) {
+    var i = this.length - 1;
+    this[i].properties.push(property);
+    this[i].properties[property.name] = property; // allow access by name as well
 
-                var Promise$1 = typeof Promise !== 'undefined' ? Promise : api; // eslint-disable-line no-undef
+    if (property.name.match(/pie-(\d+)-background-size/) && property.value) {
+      this._private.hasPie = true;
+    }
 
-                var Animation = function Animation(target, opts, opts2) {
-                    var isCore = core(target);
-                    var isEle = !isCore;
+    if (property.mapped) {
+      this[i].mappedProperties.push(property);
+    } // add to core style if necessary
 
-                    var _p = this._private = extend({
-                        duration: 1000
-                    }, opts, opts2);
 
-                    _p.target = target;
-                    _p.style = _p.style || _p.css;
-                    _p.started = false;
-                    _p.playing = false;
-                    _p.hooked = false;
-                    _p.applying = false;
-                    _p.progress = 0;
-                    _p.completes = [];
-                    _p.frames = [];
+    var currentSelectorIsCore = !this[i].selector;
 
-                    if (_p.complete && fn(_p.complete)) {
-                        _p.completes.push(_p.complete);
-                    }
+    if (currentSelectorIsCore) {
+      this._private.coreStyle[property.name] = property;
+    }
+  }
 
-                    if (isEle) {
-                        var pos = target.position();
-                        _p.startPosition = _p.startPosition || {
-                            x: pos.x,
-                            y: pos.y
-                        };
-                        _p.startStyle = _p.startStyle || target.cy().style().getAnimationStartStyle(target, _p.style);
-                    }
+  return this; // chaining
+};
+
+styfn$8.append = function (style) {
+  if (stylesheet(style)) {
+    style.appendToStyle(this);
+  } else if (array(style)) {
+    this.appendFromJson(style);
+  } else if (string(style)) {
+    this.appendFromString(style);
+  } // you probably wouldn't want to append a Style, since you'd duplicate the default parts
+
+
+  return this;
+}; // static function
+
+
+Style.fromJson = function (cy, json) {
+  var style = new Style(cy);
+  style.fromJson(json);
+  return style;
+};
+
+Style.fromString = function (cy, string) {
+  return new Style(cy).fromString(string);
+};
+
+[styfn, styfn$1, styfn$2, styfn$3, styfn$4, styfn$5, styfn$6, styfn$7].forEach(function (props) {
+  extend(styfn$8, props);
+});
+Style.types = styfn$8.types;
+Style.properties = styfn$8.properties;
+Style.propertyGroups = styfn$8.propertyGroups;
+Style.propertyGroupNames = styfn$8.propertyGroupNames;
+Style.propertyGroupKeys = styfn$8.propertyGroupKeys;
+
+var corefn$7 = {
+  style: function style(newStyle) {
+    if (newStyle) {
+      var s = this.setStyle(newStyle);
+      s.update();
+    }
 
-                    if (isCore) {
-                        var pan = target.pan();
-                        _p.startPan = {
-                            x: pan.x,
-                            y: pan.y
-                        };
-                        _p.startZoom = target.zoom();
-                    } // for future timeline/animations impl
+    return this._private.style;
+  },
+  setStyle: function setStyle(style) {
+    var _p = this._private;
+
+    if (stylesheet(style)) {
+      _p.style = style.generateStyle(this);
+    } else if (array(style)) {
+      _p.style = Style.fromJson(this, style);
+    } else if (string(style)) {
+      _p.style = Style.fromString(this, style);
+    } else {
+      _p.style = Style(this);
+    }
 
+    return _p.style;
+  }
+};
+
+var defaultSelectionType = 'single';
+var corefn$8 = {
+  autolock: function autolock(bool) {
+    if (bool !== undefined) {
+      this._private.autolock = bool ? true : false;
+    } else {
+      return this._private.autolock;
+    }
 
-                    this.length = 1;
-                    this[0] = this;
-                };
+    return this; // chaining
+  },
+  autoungrabify: function autoungrabify(bool) {
+    if (bool !== undefined) {
+      this._private.autoungrabify = bool ? true : false;
+    } else {
+      return this._private.autoungrabify;
+    }
 
-                var anifn = Animation.prototype;
-                extend(anifn, {
-                    instanceString: function instanceString() {
-                        return 'animation';
-                    },
-                    hook: function hook() {
-                        var _p = this._private;
-
-                        if (!_p.hooked) {
-                            // add to target's animation queue
-                            var q;
-                            var tAni = _p.target._private.animation;
-
-                            if (_p.queue) {
-                                q = tAni.queue;
-                            } else {
-                                q = tAni.current;
-                            }
+    return this; // chaining
+  },
+  autounselectify: function autounselectify(bool) {
+    if (bool !== undefined) {
+      this._private.autounselectify = bool ? true : false;
+    } else {
+      return this._private.autounselectify;
+    }
 
-                            q.push(this); // add to the animation loop pool
+    return this; // chaining
+  },
+  selectionType: function selectionType(selType) {
+    var _p = this._private;
 
-                            if (elementOrCollection(_p.target)) {
-                                _p.target.cy().addToAnimationPool(_p.target);
-                            }
+    if (_p.selectionType == null) {
+      _p.selectionType = defaultSelectionType;
+    }
 
-                            _p.hooked = true;
-                        }
+    if (selType !== undefined) {
+      if (selType === 'additive' || selType === 'single') {
+        _p.selectionType = selType;
+      }
+    } else {
+      return _p.selectionType;
+    }
 
-                        return this;
-                    },
-                    play: function play() {
-                        var _p = this._private; // autorewind
+    return this;
+  },
+  panningEnabled: function panningEnabled(bool) {
+    if (bool !== undefined) {
+      this._private.panningEnabled = bool ? true : false;
+    } else {
+      return this._private.panningEnabled;
+    }
 
-                        if (_p.progress === 1) {
-                            _p.progress = 0;
-                        }
+    return this; // chaining
+  },
+  userPanningEnabled: function userPanningEnabled(bool) {
+    if (bool !== undefined) {
+      this._private.userPanningEnabled = bool ? true : false;
+    } else {
+      return this._private.userPanningEnabled;
+    }
 
-                        _p.playing = true;
-                        _p.started = false; // needs to be started by animation loop
-
-                        _p.stopped = false;
-                        this.hook(); // the animation loop will start the animation...
-
-                        return this;
-                    },
-                    playing: function playing() {
-                        return this._private.playing;
-                    },
-                    apply: function apply() {
-                        var _p = this._private;
-                        _p.applying = true;
-                        _p.started = false; // needs to be started by animation loop
-
-                        _p.stopped = false;
-                        this.hook(); // the animation loop will apply the animation at this progress
-
-                        return this;
-                    },
-                    applying: function applying() {
-                        return this._private.applying;
-                    },
-                    pause: function pause() {
-                        var _p = this._private;
-                        _p.playing = false;
-                        _p.started = false;
-                        return this;
-                    },
-                    stop: function stop() {
-                        var _p = this._private;
-                        _p.playing = false;
-                        _p.started = false;
-                        _p.stopped = true; // to be removed from animation queues
-
-                        return this;
-                    },
-                    rewind: function rewind() {
-                        return this.progress(0);
-                    },
-                    fastforward: function fastforward() {
-                        return this.progress(1);
-                    },
-                    time: function time(t) {
-                        var _p = this._private;
-
-                        if (t === undefined) {
-                            return _p.progress * _p.duration;
-                        } else {
-                            return this.progress(t / _p.duration);
-                        }
-                    },
-                    progress: function progress(p) {
-                        var _p = this._private;
-                        var wasPlaying = _p.playing;
-
-                        if (p === undefined) {
-                            return _p.progress;
-                        } else {
-                            if (wasPlaying) {
-                                this.pause();
-                            }
+    return this; // chaining
+  },
+  zoomingEnabled: function zoomingEnabled(bool) {
+    if (bool !== undefined) {
+      this._private.zoomingEnabled = bool ? true : false;
+    } else {
+      return this._private.zoomingEnabled;
+    }
 
-                            _p.progress = p;
-                            _p.started = false;
+    return this; // chaining
+  },
+  userZoomingEnabled: function userZoomingEnabled(bool) {
+    if (bool !== undefined) {
+      this._private.userZoomingEnabled = bool ? true : false;
+    } else {
+      return this._private.userZoomingEnabled;
+    }
 
-                            if (wasPlaying) {
-                                this.play();
-                            }
-                        }
+    return this; // chaining
+  },
+  boxSelectionEnabled: function boxSelectionEnabled(bool) {
+    if (bool !== undefined) {
+      this._private.boxSelectionEnabled = bool ? true : false;
+    } else {
+      return this._private.boxSelectionEnabled;
+    }
 
-                        return this;
-                    },
-                    completed: function completed() {
-                        return this._private.progress === 1;
-                    },
-                    reverse: function reverse() {
-                        var _p = this._private;
-                        var wasPlaying = _p.playing;
-
-                        if (wasPlaying) {
-                            this.pause();
-                        }
+    return this; // chaining
+  },
+  pan: function pan() {
+    var args = arguments;
+    var pan = this._private.pan;
+    var dim, val, dims, x, y;
+
+    switch (args.length) {
+      case 0:
+        // .pan()
+        return pan;
+
+      case 1:
+        if (string(args[0])) {
+          // .pan('x')
+          dim = args[0];
+          return pan[dim];
+        } else if (plainObject(args[0])) {
+          // .pan({ x: 0, y: 100 })
+          if (!this._private.panningEnabled) {
+            return this;
+          }
+
+          dims = args[0];
+          x = dims.x;
+          y = dims.y;
+
+          if (number(x)) {
+            pan.x = x;
+          }
+
+          if (number(y)) {
+            pan.y = y;
+          }
+
+          this.emit('pan viewport');
+        }
 
-                        _p.progress = 1 - _p.progress;
-                        _p.started = false;
+        break;
 
-                        var swap = function swap(a, b) {
-                            var _pa = _p[a];
+      case 2:
+        // .pan('x', 100)
+        if (!this._private.panningEnabled) {
+          return this;
+        }
 
-                            if (_pa == null) {
-                                return;
-                            }
+        dim = args[0];
+        val = args[1];
 
-                            _p[a] = _p[b];
-                            _p[b] = _pa;
-                        };
-
-                        swap('zoom', 'startZoom');
-                        swap('pan', 'startPan');
-                        swap('position', 'startPosition'); // swap styles
-
-                        if (_p.style) {
-                            for (var i = 0; i < _p.style.length; i++) {
-                                var prop = _p.style[i];
-                                var name = prop.name;
-                                var startStyleProp = _p.startStyle[name];
-                                _p.startStyle[name] = prop;
-                                _p.style[i] = startStyleProp;
-                            }
-                        }
+        if ((dim === 'x' || dim === 'y') && number(val)) {
+          pan[dim] = val;
+        }
 
-                        if (wasPlaying) {
-                            this.play();
-                        }
+        this.emit('pan viewport');
+        break;
+      // invalid
+    }
 
-                        return this;
-                    },
-                    promise: function promise(type) {
-                        var _p = this._private;
-                        var arr;
-
-                        switch (type) {
-                            case 'frame':
-                                arr = _p.frames;
-                                break;
-
-                            default:
-                            case 'complete':
-                            case 'completed':
-                                arr = _p.completes;
-                        }
+    this.notify('viewport');
+    return this; // chaining
+  },
+  panBy: function panBy(arg0, arg1) {
+    var args = arguments;
+    var pan = this._private.pan;
+    var dim, val, dims, x, y;
 
-                        return new Promise$1(function (resolve, reject) {
-                            arr.push(function () {
-                                resolve();
-                            });
-                        });
-                    }
-                });
-                anifn.complete = anifn.completed;
-                anifn.run = anifn.play;
-                anifn.running = anifn.playing;
+    if (!this._private.panningEnabled) {
+      return this;
+    }
 
-                var define = {
-                    animated: function animated() {
-                        return function animatedImpl() {
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+    switch (args.length) {
+      case 1:
+        if (plainObject(arg0)) {
+          // .panBy({ x: 0, y: 100 })
+          dims = args[0];
+          x = dims.x;
+          y = dims.y;
 
-                            var cy = this._private.cy || this;
+          if (number(x)) {
+            pan.x += x;
+          }
 
-                            if (!cy.styleEnabled()) {
-                                return false;
-                            }
+          if (number(y)) {
+            pan.y += y;
+          }
 
-                            var ele = all[0];
+          this.emit('pan viewport');
+        }
 
-                            if (ele) {
-                                return ele._private.animation.current.length > 0;
-                            }
-                        };
-                    },
-                    // animated
-                    clearQueue: function clearQueue() {
-                        return function clearQueueImpl() {
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
-
-                            var cy = this._private.cy || this;
-
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+        break;
 
-                            for (var i = 0; i < all.length; i++) {
-                                var ele = all[i];
-                                ele._private.animation.queue = [];
-                            }
+      case 2:
+        // .panBy('x', 100)
+        dim = arg0;
+        val = arg1;
 
-                            return this;
-                        };
-                    },
-                    // clearQueue
-                    delay: function delay() {
-                        return function delayImpl(time, complete) {
-                            var cy = this._private.cy || this;
+        if ((dim === 'x' || dim === 'y') && number(val)) {
+          pan[dim] += val;
+        }
 
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+        this.emit('pan viewport');
+        break;
+      // invalid
+    }
 
-                            return this.animate({
-                                delay: time,
-                                duration: time,
-                                complete: complete
-                            });
-                        };
-                    },
-                    // delay
-                    delayAnimation: function delayAnimation() {
-                        return function delayAnimationImpl(time, complete) {
-                            var cy = this._private.cy || this;
-
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+    this.notify('viewport');
+    return this; // chaining
+  },
+  fit: function fit(elements, padding) {
+    var viewportState = this.getFitViewport(elements, padding);
+
+    if (viewportState) {
+      var _p = this._private;
+      _p.zoom = viewportState.zoom;
+      _p.pan = viewportState.pan;
+      this.emit('pan zoom viewport');
+      this.notify('viewport');
+    }
 
-                            return this.animation({
-                                delay: time,
-                                duration: time,
-                                complete: complete
-                            });
-                        };
-                    },
-                    // delay
-                    animation: function animation() {
-                        return function animationImpl(properties, params) {
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
-
-                            var cy = this._private.cy || this;
-                            var isCore = !selfIsArrayLike;
-                            var isEles = !isCore;
-
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+    return this; // chaining
+  },
+  getFitViewport: function getFitViewport(elements, padding) {
+    if (number(elements) && padding === undefined) {
+      // elements is optional
+      padding = elements;
+      elements = undefined;
+    }
 
-                            var style = cy.style();
-                            properties = extend({}, properties, params);
-                            var propertiesEmpty = Object.keys(properties).length === 0;
+    if (!this._private.panningEnabled || !this._private.zoomingEnabled) {
+      return;
+    }
 
-                            if (propertiesEmpty) {
-                                return new Animation(all[0], properties); // nothing to animate
-                            }
+    var bb;
+
+    if (string(elements)) {
+      var sel = elements;
+      elements = this.$(sel);
+    } else if (boundingBox(elements)) {
+      // assume bb
+      var bbe = elements;
+      bb = {
+        x1: bbe.x1,
+        y1: bbe.y1,
+        x2: bbe.x2,
+        y2: bbe.y2
+      };
+      bb.w = bb.x2 - bb.x1;
+      bb.h = bb.y2 - bb.y1;
+    } else if (!elementOrCollection(elements)) {
+      elements = this.mutableElements();
+    }
 
-                            if (properties.duration === undefined) {
-                                properties.duration = 400;
-                            }
+    if (elementOrCollection(elements) && elements.empty()) {
+      return;
+    } // can't fit to nothing
+
+
+    bb = bb || elements.boundingBox();
+    var w = this.width();
+    var h = this.height();
+    var zoom;
+    padding = number(padding) ? padding : 0;
+
+    if (!isNaN(w) && !isNaN(h) && w > 0 && h > 0 && !isNaN(bb.w) && !isNaN(bb.h) && bb.w > 0 && bb.h > 0) {
+      zoom = Math.min((w - 2 * padding) / bb.w, (h - 2 * padding) / bb.h); // crop zoom
+
+      zoom = zoom > this._private.maxZoom ? this._private.maxZoom : zoom;
+      zoom = zoom < this._private.minZoom ? this._private.minZoom : zoom;
+      var pan = {
+        // now pan to middle
+        x: (w - zoom * (bb.x1 + bb.x2)) / 2,
+        y: (h - zoom * (bb.y1 + bb.y2)) / 2
+      };
+      return {
+        zoom: zoom,
+        pan: pan
+      };
+    }
 
-                            switch (properties.duration) {
-                                case 'slow':
-                                    properties.duration = 600;
-                                    break;
+    return;
+  },
+  zoomRange: function zoomRange(min, max) {
+    var _p = this._private;
 
-                                case 'fast':
-                                    properties.duration = 200;
-                                    break;
-                            }
+    if (max == null) {
+      var opts = min;
+      min = opts.min;
+      max = opts.max;
+    }
 
-                            if (isEles) {
-                                properties.style = style.getPropsList(properties.style || properties.css);
-                                properties.css = undefined;
-                            }
+    if (number(min) && number(max) && min <= max) {
+      _p.minZoom = min;
+      _p.maxZoom = max;
+    } else if (number(min) && max === undefined && min <= _p.maxZoom) {
+      _p.minZoom = min;
+    } else if (number(max) && min === undefined && max >= _p.minZoom) {
+      _p.maxZoom = max;
+    }
 
-                            if (isEles && properties.renderedPosition != null) {
-                                var rpos = properties.renderedPosition;
-                                var pan = cy.pan();
-                                var zoom = cy.zoom();
-                                properties.position = renderedToModelPosition(rpos, zoom, pan);
-                            } // override pan w/ panBy if set
+    return this;
+  },
+  minZoom: function minZoom(zoom) {
+    if (zoom === undefined) {
+      return this._private.minZoom;
+    } else {
+      return this.zoomRange({
+        min: zoom
+      });
+    }
+  },
+  maxZoom: function maxZoom(zoom) {
+    if (zoom === undefined) {
+      return this._private.maxZoom;
+    } else {
+      return this.zoomRange({
+        max: zoom
+      });
+    }
+  },
+  getZoomedViewport: function getZoomedViewport(params) {
+    var _p = this._private;
+    var currentPan = _p.pan;
+    var currentZoom = _p.zoom;
+    var pos; // in rendered px
+
+    var zoom;
+    var bail = false;
+
+    if (!_p.zoomingEnabled) {
+      // zooming disabled
+      bail = true;
+    }
 
+    if (number(params)) {
+      // then set the zoom
+      zoom = params;
+    } else if (plainObject(params)) {
+      // then zoom about a point
+      zoom = params.level;
 
-                            if (isCore && properties.panBy != null) {
-                                var panBy = properties.panBy;
-                                var cyPan = cy.pan();
-                                properties.pan = {
-                                    x: cyPan.x + panBy.x,
-                                    y: cyPan.y + panBy.y
-                                };
-                            } // override pan w/ center if set
+      if (params.position != null) {
+        pos = modelToRenderedPosition(params.position, currentZoom, currentPan);
+      } else if (params.renderedPosition != null) {
+        pos = params.renderedPosition;
+      }
 
+      if (pos != null && !_p.panningEnabled) {
+        // panning disabled
+        bail = true;
+      }
+    } // crop zoom
 
-                            var center = properties.center || properties.centre;
 
-                            if (isCore && center != null) {
-                                var centerPan = cy.getCenterPan(center.eles, properties.zoom);
+    zoom = zoom > _p.maxZoom ? _p.maxZoom : zoom;
+    zoom = zoom < _p.minZoom ? _p.minZoom : zoom; // can't zoom with invalid params
 
-                                if (centerPan != null) {
-                                    properties.pan = centerPan;
-                                }
-                            } // override pan & zoom w/ fit if set
+    if (bail || !number(zoom) || zoom === currentZoom || pos != null && (!number(pos.x) || !number(pos.y))) {
+      return null;
+    }
 
+    if (pos != null) {
+      // set zoom about position
+      var pan1 = currentPan;
+      var zoom1 = currentZoom;
+      var zoom2 = zoom;
+      var pan2 = {
+        x: -zoom2 / zoom1 * (pos.x - pan1.x) + pos.x,
+        y: -zoom2 / zoom1 * (pos.y - pan1.y) + pos.y
+      };
+      return {
+        zoomed: true,
+        panned: true,
+        zoom: zoom2,
+        pan: pan2
+      };
+    } else {
+      // just set the zoom
+      return {
+        zoomed: true,
+        panned: false,
+        zoom: zoom,
+        pan: currentPan
+      };
+    }
+  },
+  zoom: function zoom(params) {
+    if (params === undefined) {
+      // get
+      return this._private.zoom;
+    } else {
+      // set
+      var vp = this.getZoomedViewport(params);
+      var _p = this._private;
+
+      if (vp == null || !vp.zoomed) {
+        return this;
+      }
+
+      _p.zoom = vp.zoom;
+
+      if (vp.panned) {
+        _p.pan.x = vp.pan.x;
+        _p.pan.y = vp.pan.y;
+      }
+
+      this.emit('zoom' + (vp.panned ? ' pan' : '') + ' viewport');
+      this.notify('viewport');
+      return this; // chaining
+    }
+  },
+  viewport: function viewport(opts) {
+    var _p = this._private;
+    var zoomDefd = true;
+    var panDefd = true;
+    var events = []; // to trigger
+
+    var zoomFailed = false;
+    var panFailed = false;
+
+    if (!opts) {
+      return this;
+    }
 
-                            if (isCore && properties.fit != null) {
-                                var fit = properties.fit;
-                                var fitVp = cy.getFitViewport(fit.eles || fit.boundingBox, fit.padding);
+    if (!number(opts.zoom)) {
+      zoomDefd = false;
+    }
 
-                                if (fitVp != null) {
-                                    properties.pan = fitVp.pan;
-                                    properties.zoom = fitVp.zoom;
-                                }
-                            } // override zoom (& potentially pan) w/ zoom obj if set
+    if (!plainObject(opts.pan)) {
+      panDefd = false;
+    }
 
+    if (!zoomDefd && !panDefd) {
+      return this;
+    }
 
-                            if (isCore && plainObject(properties.zoom)) {
-                                var vp = cy.getZoomedViewport(properties.zoom);
+    if (zoomDefd) {
+      var z = opts.zoom;
 
-                                if (vp != null) {
-                                    if (vp.zoomed) {
-                                        properties.zoom = vp.zoom;
-                                    }
+      if (z < _p.minZoom || z > _p.maxZoom || !_p.zoomingEnabled) {
+        zoomFailed = true;
+      } else {
+        _p.zoom = z;
+        events.push('zoom');
+      }
+    }
 
-                                    if (vp.panned) {
-                                        properties.pan = vp.pan;
-                                    }
-                                } else {
-                                    properties.zoom = null; // an inavalid zoom (e.g. no delta) gets automatically destroyed
-                                }
-                            }
+    if (panDefd && (!zoomFailed || !opts.cancelOnFailedZoom) && _p.panningEnabled) {
+      var p = opts.pan;
 
-                            return new Animation(all[0], properties);
-                        };
-                    },
-                    // animate
-                    animate: function animate() {
-                        return function animateImpl(properties, params) {
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+      if (number(p.x)) {
+        _p.pan.x = p.x;
+        panFailed = false;
+      }
 
-                            var cy = this._private.cy || this;
+      if (number(p.y)) {
+        _p.pan.y = p.y;
+        panFailed = false;
+      }
 
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+      if (!panFailed) {
+        events.push('pan');
+      }
+    }
 
-                            if (params) {
-                                properties = extend({}, properties, params);
-                            } // manually hook and run the animation
+    if (events.length > 0) {
+      events.push('viewport');
+      this.emit(events.join(' '));
+      this.notify('viewport');
+    }
 
+    return this; // chaining
+  },
+  center: function center(elements) {
+    var pan = this.getCenterPan(elements);
 
-                            for (var i = 0; i < all.length; i++) {
-                                var ele = all[i];
-                                var queue = ele.animated() && (properties.queue === undefined || properties.queue);
-                                var ani = ele.animation(properties, queue ? {
-                                    queue: true
-                                } : undefined);
-                                ani.play();
-                            }
+    if (pan) {
+      this._private.pan = pan;
+      this.emit('pan viewport');
+      this.notify('viewport');
+    }
 
-                            return this; // chaining
-                        };
-                    },
-                    // animate
-                    stop: function stop() {
-                        return function stopImpl(clearQueue, jumpToEnd) {
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+    return this; // chaining
+  },
+  getCenterPan: function getCenterPan(elements, zoom) {
+    if (!this._private.panningEnabled) {
+      return;
+    }
 
-                            var cy = this._private.cy || this;
+    if (string(elements)) {
+      var selector = elements;
+      elements = this.mutableElements().filter(selector);
+    } else if (!elementOrCollection(elements)) {
+      elements = this.mutableElements();
+    }
 
-                            if (!cy.styleEnabled()) {
-                                return this;
-                            }
+    if (elements.length === 0) {
+      return;
+    } // can't centre pan to nothing
+
+
+    var bb = elements.boundingBox();
+    var w = this.width();
+    var h = this.height();
+    zoom = zoom === undefined ? this._private.zoom : zoom;
+    var pan = {
+      // middle
+      x: (w - zoom * (bb.x1 + bb.x2)) / 2,
+      y: (h - zoom * (bb.y1 + bb.y2)) / 2
+    };
+    return pan;
+  },
+  reset: function reset() {
+    if (!this._private.panningEnabled || !this._private.zoomingEnabled) {
+      return this;
+    }
 
-                            for (var i = 0; i < all.length; i++) {
-                                var ele = all[i];
-                                var _p = ele._private;
-                                var anis = _p.animation.current;
-
-                                for (var j = 0; j < anis.length; j++) {
-                                    var ani = anis[j];
-                                    var ani_p = ani._private;
-
-                                    if (jumpToEnd) {
-                                        // next iteration of the animation loop, the animation
-                                        // will go straight to the end and be removed
-                                        ani_p.duration = 0;
-                                    }
-                                } // clear the queue of future animations
-
-
-                                if (clearQueue) {
-                                    _p.animation.queue = [];
-                                }
-
-                                if (!jumpToEnd) {
-                                    _p.animation.current = [];
-                                }
-                            } // we have to notify (the animation loop doesn't do it for us on `stop`)
-
-
-                            cy.notify('draw');
-                            return this;
-                        };
-                    } // stop
-
-                }; // define
-
-                var define$1 = {
-                    // access data field
-                    data: function data(params) {
-                        var defaults = {
-                            field: 'data',
-                            bindingEvent: 'data',
-                            allowBinding: false,
-                            allowSetting: false,
-                            allowGetting: false,
-                            settingEvent: 'data',
-                            settingTriggersEvent: false,
-                            triggerFnName: 'trigger',
-                            immutableKeys: {},
-                            // key => true if immutable
-                            updateStyle: false,
-                            beforeGet: function beforeGet(self) {},
-                            beforeSet: function beforeSet(self, obj) {},
-                            onSet: function onSet(self) {},
-                            canSet: function canSet(self) {
-                                return true;
-                            }
-                        };
-                        params = extend({}, defaults, params);
-                        return function dataImpl(name, value) {
-                            var p = params;
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
+    this.viewport({
+      pan: {
+        x: 0,
+        y: 0
+      },
+      zoom: 1
+    });
+    return this; // chaining
+  },
+  invalidateSize: function invalidateSize() {
+    this._private.sizeCache = null;
+  },
+  size: function size() {
+    var _p = this._private;
+    var container = _p.container;
+    return _p.sizeCache = _p.sizeCache || (container ? function () {
+      var style = window$1.getComputedStyle(container);
+
+      var val = function val(name) {
+        return parseFloat(style.getPropertyValue(name));
+      };
+
+      return {
+        width: container.clientWidth - val('padding-left') - val('padding-right'),
+        height: container.clientHeight - val('padding-top') - val('padding-bottom')
+      };
+    }() : {
+      // fallback if no container (not 0 b/c can be used for dividing etc)
+      width: 1,
+      height: 1
+    });
+  },
+  width: function width() {
+    return this.size().width;
+  },
+  height: function height() {
+    return this.size().height;
+  },
+  extent: function extent() {
+    var pan = this._private.pan;
+    var zoom = this._private.zoom;
+    var rb = this.renderedExtent();
+    var b = {
+      x1: (rb.x1 - pan.x) / zoom,
+      x2: (rb.x2 - pan.x) / zoom,
+      y1: (rb.y1 - pan.y) / zoom,
+      y2: (rb.y2 - pan.y) / zoom
+    };
+    b.w = b.x2 - b.x1;
+    b.h = b.y2 - b.y1;
+    return b;
+  },
+  renderedExtent: function renderedExtent() {
+    var width = this.width();
+    var height = this.height();
+    return {
+      x1: 0,
+      y1: 0,
+      x2: width,
+      y2: height,
+      w: width,
+      h: height
+    };
+  }
+}; // aliases
+
+corefn$8.centre = corefn$8.center; // backwards compatibility
+
+corefn$8.autolockNodes = corefn$8.autolock;
+corefn$8.autoungrabifyNodes = corefn$8.autoungrabify;
+
+var fn$6 = {
+  data: define$3.data({
+    field: 'data',
+    bindingEvent: 'data',
+    allowBinding: true,
+    allowSetting: true,
+    settingEvent: 'data',
+    settingTriggersEvent: true,
+    triggerFnName: 'trigger',
+    allowGetting: true
+  }),
+  removeData: define$3.removeData({
+    field: 'data',
+    event: 'data',
+    triggerFnName: 'trigger',
+    triggerEvent: true
+  }),
+  scratch: define$3.data({
+    field: 'scratch',
+    bindingEvent: 'scratch',
+    allowBinding: true,
+    allowSetting: true,
+    settingEvent: 'scratch',
+    settingTriggersEvent: true,
+    triggerFnName: 'trigger',
+    allowGetting: true
+  }),
+  removeScratch: define$3.removeData({
+    field: 'scratch',
+    event: 'scratch',
+    triggerFnName: 'trigger',
+    triggerEvent: true
+  })
+}; // aliases
+
+fn$6.attr = fn$6.data;
+fn$6.removeAttr = fn$6.removeData;
+
+var Core = function Core(opts) {
+  var cy = this;
+  opts = extend({}, opts);
+  var container = opts.container; // allow for passing a wrapped jquery object
+  // e.g. cytoscape({ container: $('#cy') })
+
+  if (container && !htmlElement(container) && htmlElement(container[0])) {
+    container = container[0];
+  }
 
-                            var single = selfIsArrayLike ? self[0] : self; // .data('foo', ...)
+  var reg = container ? container._cyreg : null; // e.g. already registered some info (e.g. readies) via jquery
 
-                            if (string(name)) {
-                                // set or get property
-                                // .data('foo')
-                                if (p.allowGetting && value === undefined) {
-                                    // get
-                                    var ret;
+  reg = reg || {};
 
-                                    if (single) {
-                                        p.beforeGet(single);
-                                        ret = single._private[p.field][name];
-                                    }
+  if (reg && reg.cy) {
+    reg.cy.destroy();
+    reg = {}; // old instance => replace reg completely
+  }
 
-                                    return ret; // .data('foo', 'bar')
-                                } else if (p.allowSetting && value !== undefined) {
-                                    // set
-                                    var valid = !p.immutableKeys[name];
+  var readies = reg.readies = reg.readies || [];
+
+  if (container) {
+    container._cyreg = reg;
+  } // make sure container assoc'd reg points to this cy
+
+
+  reg.cy = cy;
+  var head = window$1 !== undefined && container !== undefined && !opts.headless;
+  var options = opts;
+  options.layout = extend({
+    name: head ? 'grid' : 'null'
+  }, options.layout);
+  options.renderer = extend({
+    name: head ? 'canvas' : 'null'
+  }, options.renderer);
+
+  var defVal = function defVal(def, val, altVal) {
+    if (val !== undefined) {
+      return val;
+    } else if (altVal !== undefined) {
+      return altVal;
+    } else {
+      return def;
+    }
+  };
+
+  var _p = this._private = {
+    container: container,
+    // html dom ele container
+    ready: false,
+    // whether ready has been triggered
+    options: options,
+    // cached options
+    elements: new Collection(this),
+    // elements in the graph
+    listeners: [],
+    // list of listeners
+    aniEles: new Collection(this),
+    // elements being animated
+    data: {},
+    // data for the core
+    scratch: {},
+    // scratch object for core
+    layout: null,
+    renderer: null,
+    destroyed: false,
+    // whether destroy was called
+    notificationsEnabled: true,
+    // whether notifications are sent to the renderer
+    minZoom: 1e-50,
+    maxZoom: 1e50,
+    zoomingEnabled: defVal(true, options.zoomingEnabled),
+    userZoomingEnabled: defVal(true, options.userZoomingEnabled),
+    panningEnabled: defVal(true, options.panningEnabled),
+    userPanningEnabled: defVal(true, options.userPanningEnabled),
+    boxSelectionEnabled: defVal(true, options.boxSelectionEnabled),
+    autolock: defVal(false, options.autolock, options.autolockNodes),
+    autoungrabify: defVal(false, options.autoungrabify, options.autoungrabifyNodes),
+    autounselectify: defVal(false, options.autounselectify),
+    styleEnabled: options.styleEnabled === undefined ? head : options.styleEnabled,
+    zoom: number(options.zoom) ? options.zoom : 1,
+    pan: {
+      x: plainObject(options.pan) && number(options.pan.x) ? options.pan.x : 0,
+      y: plainObject(options.pan) && number(options.pan.y) ? options.pan.y : 0
+    },
+    animation: {
+      // object for currently-running animations
+      current: [],
+      queue: []
+    },
+    hasCompoundNodes: false
+  };
+
+  this.createEmitter(); // set selection type
+
+  this.selectionType(options.selectionType); // init zoom bounds
+
+  this.zoomRange({
+    min: options.minZoom,
+    max: options.maxZoom
+  });
+
+  var loadExtData = function loadExtData(extData, next) {
+    var anyIsPromise = extData.some(promise);
+
+    if (anyIsPromise) {
+      return Promise$1.all(extData).then(next); // load all data asynchronously, then exec rest of init
+    } else {
+      next(extData); // exec synchronously for convenience
+    }
+  }; // start with the default stylesheet so we have something before loading an external stylesheet
 
-                                    if (valid) {
-                                        var change = _defineProperty({}, name, value);
 
-                                        p.beforeSet(self, change);
+  if (_p.styleEnabled) {
+    cy.setStyle([]);
+  } // create the renderer
 
-                                        for (var i = 0, l = all.length; i < l; i++) {
-                                            var ele = all[i];
 
-                                            if (p.canSet(ele)) {
-                                                ele._private[p.field][name] = value;
-                                            }
-                                        } // update mappers if asked
+  var rendererOptions = extend({}, options, options.renderer); // allow rendering hints in top level options
 
+  cy.initRenderer(rendererOptions);
 
-                                        if (p.updateStyle) {
-                                            self.updateStyle();
-                                        } // call onSet callback
+  var setElesAndLayout = function setElesAndLayout(elements, onload, ondone) {
+    cy.notifications(false); // remove old elements
 
+    var oldEles = cy.mutableElements();
 
-                                        p.onSet(self);
+    if (oldEles.length > 0) {
+      oldEles.remove();
+    }
 
-                                        if (p.settingTriggersEvent) {
-                                            self[p.triggerFnName](p.settingEvent);
-                                        }
-                                    }
-                                } // .data({ 'foo': 'bar' })
+    if (elements != null) {
+      if (plainObject(elements) || array(elements)) {
+        cy.add(elements);
+      }
+    }
 
-                            } else if (p.allowSetting && plainObject(name)) {
-                                // extend
-                                var obj = name;
-                                var k, v;
-                                var keys = Object.keys(obj);
-                                p.beforeSet(self, obj);
+    cy.one('layoutready', function (e) {
+      cy.notifications(true);
+      cy.emit(e); // we missed this event by turning notifications off, so pass it on
+
+      cy.one('load', onload);
+      cy.emitAndNotify('load');
+    }).one('layoutstop', function () {
+      cy.one('done', ondone);
+      cy.emit('done');
+    });
+    var layoutOpts = extend({}, cy._private.options.layout);
+    layoutOpts.eles = cy.elements();
+    cy.layout(layoutOpts).run();
+  };
+
+  loadExtData([options.style, options.elements], function (thens) {
+    var initStyle = thens[0];
+    var initEles = thens[1]; // init style
+
+    if (_p.styleEnabled) {
+      cy.style().append(initStyle);
+    } // initial load
+
+
+    setElesAndLayout(initEles, function () {
+      // onready
+      cy.startAnimationLoop();
+      _p.ready = true; // if a ready callback is specified as an option, the bind it
+
+      if (fn(options.ready)) {
+        cy.on('ready', options.ready);
+      } // bind all the ready handlers registered before creating this instance
+
+
+      for (var i = 0; i < readies.length; i++) {
+        var fn$1 = readies[i];
+        cy.on('ready', fn$1);
+      }
+
+      if (reg) {
+        reg.readies = [];
+      } // clear b/c we've bound them all and don't want to keep it around in case a new core uses the same div etc
+
+
+      cy.emit('ready');
+    }, options.done);
+  });
+};
+
+var corefn$9 = Core.prototype; // short alias
+
+extend(corefn$9, {
+  instanceString: function instanceString() {
+    return 'core';
+  },
+  isReady: function isReady() {
+    return this._private.ready;
+  },
+  destroyed: function destroyed() {
+    return this._private.destroyed;
+  },
+  ready: function ready(fn) {
+    if (this.isReady()) {
+      this.emitter().emit('ready', [], fn); // just calls fn as though triggered via ready event
+    } else {
+      this.on('ready', fn);
+    }
 
-                                for (var _i = 0; _i < keys.length; _i++) {
-                                    k = keys[_i];
-                                    v = obj[k];
+    return this;
+  },
+  destroy: function destroy() {
+    var cy = this;
+    if (cy.destroyed()) return;
+    cy.stopAnimationLoop();
+    cy.destroyRenderer();
+    this.emit('destroy');
+    cy._private.destroyed = true;
+    return cy;
+  },
+  hasElementWithId: function hasElementWithId(id) {
+    return this._private.elements.hasElementWithId(id);
+  },
+  getElementById: function getElementById(id) {
+    return this._private.elements.getElementById(id);
+  },
+  hasCompoundNodes: function hasCompoundNodes() {
+    return this._private.hasCompoundNodes;
+  },
+  headless: function headless() {
+    return this._private.renderer.isHeadless();
+  },
+  styleEnabled: function styleEnabled() {
+    return this._private.styleEnabled;
+  },
+  addToPool: function addToPool(eles) {
+    this._private.elements.merge(eles);
+
+    return this; // chaining
+  },
+  removeFromPool: function removeFromPool(eles) {
+    this._private.elements.unmerge(eles);
+
+    return this;
+  },
+  container: function container() {
+    return this._private.container || null;
+  },
+  mount: function mount(container) {
+    if (container == null) {
+      return;
+    }
 
-                                    var _valid = !p.immutableKeys[k];
+    var cy = this;
+    var _p = cy._private;
+    var options = _p.options;
 
-                                    if (_valid) {
-                                        for (var j = 0; j < all.length; j++) {
-                                            var _ele = all[j];
+    if (!htmlElement(container) && htmlElement(container[0])) {
+      container = container[0];
+    }
 
-                                            if (p.canSet(_ele)) {
-                                                _ele._private[p.field][k] = v;
-                                            }
-                                        }
-                                    }
-                                } // update mappers if asked
+    cy.stopAnimationLoop();
+    cy.destroyRenderer();
+    _p.container = container;
+    _p.styleEnabled = true;
+    cy.invalidateSize();
+    cy.initRenderer(extend({}, options, options.renderer, {
+      // allow custom renderer name to be re-used, otherwise use canvas
+      name: options.renderer.name === 'null' ? 'canvas' : options.renderer.name
+    }));
+    cy.startAnimationLoop();
+    cy.style(options.style);
+    cy.emit('mount');
+    return cy;
+  },
+  unmount: function unmount() {
+    var cy = this;
+    cy.stopAnimationLoop();
+    cy.destroyRenderer();
+    cy.initRenderer({
+      name: 'null'
+    });
+    cy.emit('unmount');
+    return cy;
+  },
+  options: function options() {
+    return copy(this._private.options);
+  },
+  json: function json(obj) {
+    var cy = this;
+    var _p = cy._private;
+    var eles = cy.mutableElements();
+
+    var getFreshRef = function getFreshRef(ele) {
+      return cy.getElementById(ele.id());
+    };
+
+    if (plainObject(obj)) {
+      // set
+      cy.startBatch();
+
+      if (obj.elements) {
+        var idInJson = {};
+
+        var updateEles = function updateEles(jsons, gr) {
+          var toAdd = [];
+          var toMod = [];
+
+          for (var i = 0; i < jsons.length; i++) {
+            var json = jsons[i];
+            var id = '' + json.data.id; // id must be string
+
+            var ele = cy.getElementById(id);
+            idInJson[id] = true;
+
+            if (ele.length !== 0) {
+              // existing element should be updated
+              toMod.push({
+                ele: ele,
+                json: json
+              });
+            } else {
+              // otherwise should be added
+              if (gr) {
+                json.group = gr;
+                toAdd.push(json);
+              } else {
+                toAdd.push(json);
+              }
+            }
+          }
 
+          cy.add(toAdd);
 
-                                if (p.updateStyle) {
-                                    self.updateStyle();
-                                } // call onSet callback
+          for (var _i = 0; _i < toMod.length; _i++) {
+            var _toMod$_i = toMod[_i],
+                _ele = _toMod$_i.ele,
+                _json = _toMod$_i.json;
 
+            _ele.json(_json);
+          }
+        };
 
-                                p.onSet(self);
+        if (array(obj.elements)) {
+          // elements: []
+          updateEles(obj.elements);
+        } else {
+          // elements: { nodes: [], edges: [] }
+          var grs = ['nodes', 'edges'];
 
-                                if (p.settingTriggersEvent) {
-                                    self[p.triggerFnName](p.settingEvent);
-                                } // .data(function(){ ... })
+          for (var i = 0; i < grs.length; i++) {
+            var gr = grs[i];
+            var elements = obj.elements[gr];
 
-                            } else if (p.allowBinding && fn(name)) {
-                                // bind to event
-                                var fn$1 = name;
-                                self.on(p.bindingEvent, fn$1); // .data()
-                            } else if (p.allowGetting && name === undefined) {
-                                // get whole object
-                                var _ret;
+            if (array(elements)) {
+              updateEles(elements, gr);
+            }
+          }
+        }
 
-                                if (single) {
-                                    p.beforeGet(single);
-                                    _ret = single._private[p.field];
-                                }
+        var parentsToRemove = cy.collection();
+        eles.filter(function (ele) {
+          return !idInJson[ele.id()];
+        }).forEach(function (ele) {
+          if (ele.isParent()) {
+            parentsToRemove.merge(ele);
+          } else {
+            ele.remove();
+          }
+        }); // so that children are not removed w/parent
+
+        parentsToRemove.forEach(function (ele) {
+          return ele.children().move({
+            parent: null
+          });
+        }); // intermediate parents may be moved by prior line, so make sure we remove by fresh refs
+
+        parentsToRemove.forEach(function (ele) {
+          return getFreshRef(ele).remove();
+        });
+      }
+
+      if (obj.style) {
+        cy.style(obj.style);
+      }
+
+      if (obj.zoom != null && obj.zoom !== _p.zoom) {
+        cy.zoom(obj.zoom);
+      }
+
+      if (obj.pan) {
+        if (obj.pan.x !== _p.pan.x || obj.pan.y !== _p.pan.y) {
+          cy.pan(obj.pan);
+        }
+      }
 
-                                return _ret;
-                            }
+      if (obj.data) {
+        cy.data(obj.data);
+      }
 
-                            return self; // maintain chainability
-                        }; // function
-                    },
-                    // data
-                    // remove data field
-                    removeData: function removeData(params) {
-                        var defaults = {
-                            field: 'data',
-                            event: 'data',
-                            triggerFnName: 'trigger',
-                            triggerEvent: false,
-                            immutableKeys: {} // key => true if immutable
-
-                        };
-                        params = extend({}, defaults, params);
-                        return function removeDataImpl(names) {
-                            var p = params;
-                            var self = this;
-                            var selfIsArrayLike = self.length !== undefined;
-                            var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
-                            // .removeData('foo bar')
-
-                            if (string(names)) {
-                                // then get the list of keys, and delete them
-                                var keys = names.split(/\s+/);
-                                var l = keys.length;
-
-                                for (var i = 0; i < l; i++) {
-                                    // delete each non-empty key
-                                    var key = keys[i];
-
-                                    if (emptyString(key)) {
-                                        continue;
-                                    }
-
-                                    var valid = !p.immutableKeys[key]; // not valid if immutable
-
-                                    if (valid) {
-                                        for (var i_a = 0, l_a = all.length; i_a < l_a; i_a++) {
-                                            all[i_a]._private[p.field][key] = undefined;
-                                        }
-                                    }
-                                }
-
-                                if (p.triggerEvent) {
-                                    self[p.triggerFnName](p.event);
-                                } // .removeData()
-
-                            } else if (names === undefined) {
-                                // then delete all keys
-                                for (var _i_a = 0, _l_a = all.length; _i_a < _l_a; _i_a++) {
-                                    var _privateFields = all[_i_a]._private[p.field];
-
-                                    var _keys = Object.keys(_privateFields);
-
-                                    for (var _i2 = 0; _i2 < _keys.length; _i2++) {
-                                        var _key = _keys[_i2];
-                                        var validKeyToDelete = !p.immutableKeys[_key];
-
-                                        if (validKeyToDelete) {
-                                            _privateFields[_key] = undefined;
-                                        }
-                                    }
-                                }
-
-                                if (p.triggerEvent) {
-                                    self[p.triggerFnName](p.event);
-                                }
-                            }
+      var fields = ['minZoom', 'maxZoom', 'zoomingEnabled', 'userZoomingEnabled', 'panningEnabled', 'userPanningEnabled', 'boxSelectionEnabled', 'autolock', 'autoungrabify', 'autounselectify'];
 
-                            return self; // maintain chaining
-                        }; // function
-                    } // removeData
-
-                }; // define
-
-                var define$2 = {
-                    eventAliasesOn: function eventAliasesOn(proto) {
-                        var p = proto;
-                        p.addListener = p.listen = p.bind = p.on;
-                        p.unlisten = p.unbind = p.off = p.removeListener;
-                        p.trigger = p.emit; // this is just a wrapper alias of .on()
-
-                        p.pon = p.promiseOn = function (events, selector) {
-                            var self = this;
-                            var args = Array.prototype.slice.call(arguments, 0);
-                            return new Promise$1(function (resolve, reject) {
-                                var callback = function callback(e) {
-                                    self.off.apply(self, offArgs);
-                                    resolve(e);
-                                };
-
-                                var onArgs = args.concat([callback]);
-                                var offArgs = onArgs.concat([]);
-                                self.on.apply(self, onArgs);
-                            });
-                        };
-                    }
-                }; // define
+      for (var _i2 = 0; _i2 < fields.length; _i2++) {
+        var f = fields[_i2];
 
-// use this module to cherry pick functions into your prototype
-                var define$3 = {};
-                [define, define$1, define$2].forEach(function (m) {
-                    extend(define$3, m);
-                });
+        if (obj[f] != null) {
+          cy[f](obj[f]);
+        }
+      }
+
+      cy.endBatch();
+      return this; // chaining
+    } else {
+      // get
+      var flat = !!obj;
+      var json = {};
+
+      if (flat) {
+        json.elements = this.elements().map(function (ele) {
+          return ele.json();
+        });
+      } else {
+        json.elements = {};
+        eles.forEach(function (ele) {
+          var group = ele.group();
+
+          if (!json.elements[group]) {
+            json.elements[group] = [];
+          }
+
+          json.elements[group].push(ele.json());
+        });
+      }
+
+      if (this._private.styleEnabled) {
+        json.style = cy.style().json();
+      }
+
+      json.data = copy(cy.data());
+      var options = _p.options;
+      json.zoomingEnabled = _p.zoomingEnabled;
+      json.userZoomingEnabled = _p.userZoomingEnabled;
+      json.zoom = _p.zoom;
+      json.minZoom = _p.minZoom;
+      json.maxZoom = _p.maxZoom;
+      json.panningEnabled = _p.panningEnabled;
+      json.userPanningEnabled = _p.userPanningEnabled;
+      json.pan = copy(_p.pan);
+      json.boxSelectionEnabled = _p.boxSelectionEnabled;
+      json.renderer = copy(options.renderer);
+      json.hideEdgesOnViewport = options.hideEdgesOnViewport;
+      json.textureOnViewport = options.textureOnViewport;
+      json.wheelSensitivity = options.wheelSensitivity;
+      json.motionBlur = options.motionBlur;
+      return json;
+    }
+  }
+});
+corefn$9.$id = corefn$9.getElementById;
+[corefn, corefn$1, elesfn$v, corefn$2, corefn$3, corefn$4, corefn$5, corefn$6, corefn$7, corefn$8, fn$6].forEach(function (props) {
+  extend(corefn$9, props);
+});
+
+/* eslint-disable no-unused-vars */
+
+var defaults$9 = {
+  fit: true,
+  // whether to fit the viewport to the graph
+  directed: false,
+  // whether the tree is directed downwards (or edges can point in any direction if false)
+  padding: 30,
+  // padding on fit
+  circle: false,
+  // put depths in concentric circles if true, put depths top down if false
+  grid: false,
+  // whether to create an even grid into which the DAG is placed (circle:false only)
+  spacingFactor: 1.75,
+  // positive spacing factor, larger => more space between nodes (N.B. n/a if causes overlap)
+  boundingBox: undefined,
+  // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  avoidOverlap: true,
+  // prevents node overlap, may overflow boundingBox if not enough space
+  nodeDimensionsIncludeLabels: false,
+  // Excludes the label when calculating node bounding boxes for the layout algorithm
+  roots: undefined,
+  // the roots of the trees
+  maximal: false,
+  // whether to shift nodes down their natural BFS depths in order to avoid upwards edges (DAGS only)
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled,
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts
+
+};
+/* eslint-enable */
+
+var getInfo = function getInfo(ele) {
+  return ele.scratch('breadthfirst');
+};
+
+var setInfo = function setInfo(ele, obj) {
+  return ele.scratch('breadthfirst', obj);
+};
+
+function BreadthFirstLayout(options) {
+  this.options = extend({}, defaults$9, options);
+}
+
+BreadthFirstLayout.prototype.run = function () {
+  var params = this.options;
+  var options = params;
+  var cy = params.cy;
+  var eles = options.eles;
+  var nodes = eles.nodes().filter(function (n) {
+    return !n.isParent();
+  });
+  var graph = eles;
+  var directed = options.directed;
+  var maximal = options.maximal || options.maximalAdjustments > 0; // maximalAdjustments for compat. w/ old code
+
+  var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
+    x1: 0,
+    y1: 0,
+    w: cy.width(),
+    h: cy.height()
+  });
+  var roots;
+
+  if (elementOrCollection(options.roots)) {
+    roots = options.roots;
+  } else if (array(options.roots)) {
+    var rootsArray = [];
+
+    for (var i = 0; i < options.roots.length; i++) {
+      var id = options.roots[i];
+      var ele = cy.getElementById(id);
+      rootsArray.push(ele);
+    }
 
-                var elesfn$d = {
-                    animate: define$3.animate(),
-                    animation: define$3.animation(),
-                    animated: define$3.animated(),
-                    clearQueue: define$3.clearQueue(),
-                    delay: define$3.delay(),
-                    delayAnimation: define$3.delayAnimation(),
-                    stop: define$3.stop()
-                };
+    roots = cy.collection(rootsArray);
+  } else if (string(options.roots)) {
+    roots = cy.$(options.roots);
+  } else {
+    if (directed) {
+      roots = nodes.roots();
+    } else {
+      var components = eles.components();
+      roots = cy.collection();
+
+      var _loop = function _loop(_i) {
+        var comp = components[_i];
+        var maxDegree = comp.maxDegree(false);
+        var compRoots = comp.filter(function (ele) {
+          return ele.degree(false) === maxDegree;
+        });
+        roots = roots.add(compRoots);
+      };
+
+      for (var _i = 0; _i < components.length; _i++) {
+        _loop(_i);
+      }
+    }
+  }
 
-                var elesfn$e = {
-                    classes: function classes(_classes) {
-                        var self = this;
+  var depths = [];
+  var foundByBfs = {};
 
-                        if (_classes === undefined) {
-                            var ret = [];
+  var addToDepth = function addToDepth(ele, d) {
+    if (depths[d] == null) {
+      depths[d] = [];
+    }
 
-                            self[0]._private.classes.forEach(function (cls) {
-                                return ret.push(cls);
-                            });
+    var i = depths[d].length;
+    depths[d].push(ele);
+    setInfo(ele, {
+      index: i,
+      depth: d
+    });
+  };
+
+  var changeDepth = function changeDepth(ele, newDepth) {
+    var _getInfo = getInfo(ele),
+        depth = _getInfo.depth,
+        index = _getInfo.index;
+
+    depths[depth][index] = null;
+    addToDepth(ele, newDepth);
+  }; // find the depths of the nodes
+
+
+  graph.bfs({
+    roots: roots,
+    directed: options.directed,
+    visit: function visit(node, edge, pNode, i, depth) {
+      var ele = node[0];
+      var id = ele.id();
+      addToDepth(ele, depth);
+      foundByBfs[id] = true;
+    }
+  }); // check for nodes not found by bfs
 
-                            return ret;
-                        } else if (!array(_classes)) {
-                            // extract classes from string
-                            _classes = (_classes || '').match(/\S+/g) || [];
-                        }
+  var orphanNodes = [];
 
-                        var changed = [];
-                        var classesSet = new Set$1(_classes); // check and update each ele
+  for (var _i2 = 0; _i2 < nodes.length; _i2++) {
+    var _ele = nodes[_i2];
 
-                        for (var j = 0; j < self.length; j++) {
-                            var ele = self[j];
-                            var _p = ele._private;
-                            var eleClasses = _p.classes;
-                            var changedEle = false; // check if ele has all of the passed classes
+    if (foundByBfs[_ele.id()]) {
+      continue;
+    } else {
+      orphanNodes.push(_ele);
+    }
+  } // assign the nodes a depth and index
 
-                            for (var i = 0; i < _classes.length; i++) {
-                                var cls = _classes[i];
-                                var eleHasClass = eleClasses.has(cls);
 
-                                if (!eleHasClass) {
-                                    changedEle = true;
-                                    break;
-                                }
-                            } // check if ele has classes outside of those passed
+  var assignDepthsAt = function assignDepthsAt(i) {
+    var eles = depths[i];
 
+    for (var j = 0; j < eles.length; j++) {
+      var _ele2 = eles[j];
 
-                            if (!changedEle) {
-                                changedEle = eleClasses.size !== _classes.length;
-                            }
+      if (_ele2 == null) {
+        eles.splice(j, 1);
+        j--;
+        continue;
+      }
 
-                            if (changedEle) {
-                                _p.classes = classesSet;
-                                changed.push(ele);
-                            }
-                        } // trigger update style on those eles that had class changes
+      setInfo(_ele2, {
+        depth: i,
+        index: j
+      });
+    }
+  };
 
+  var assignDepths = function assignDepths() {
+    for (var _i3 = 0; _i3 < depths.length; _i3++) {
+      assignDepthsAt(_i3);
+    }
+  };
+
+  var adjustMaximally = function adjustMaximally(ele, shifted) {
+    var eInfo = getInfo(ele);
+    var incomers = ele.incomers().filter(function (el) {
+      return el.isNode() && eles.has(el);
+    });
+    var maxDepth = -1;
+    var id = ele.id();
+
+    for (var k = 0; k < incomers.length; k++) {
+      var incmr = incomers[k];
+      var iInfo = getInfo(incmr);
+      maxDepth = Math.max(maxDepth, iInfo.depth);
+    }
 
-                        if (changed.length > 0) {
-                            this.spawn(changed).updateStyle().emit('class');
-                        }
+    if (eInfo.depth <= maxDepth) {
+      if (shifted[id]) {
+        return null;
+      }
 
-                        return self;
-                    },
-                    addClass: function addClass(classes) {
-                        return this.toggleClass(classes, true);
-                    },
-                    hasClass: function hasClass(className) {
-                        var ele = this[0];
-                        return ele != null && ele._private.classes.has(className);
-                    },
-                    toggleClass: function toggleClass(classes, toggle) {
-                        if (!array(classes)) {
-                            // extract classes from string
-                            classes = classes.match(/\S+/g) || [];
-                        }
+      changeDepth(ele, maxDepth + 1);
+      shifted[id] = true;
+      return true;
+    }
 
-                        var self = this;
-                        var toggleUndefd = toggle === undefined;
-                        var changed = []; // eles who had classes changed
+    return false;
+  }; // for the directed case, try to make the edges all go down (i.e. depth i => depth i + 1)
 
-                        for (var i = 0, il = self.length; i < il; i++) {
-                            var ele = self[i];
-                            var eleClasses = ele._private.classes;
-                            var changedEle = false;
 
-                            for (var j = 0; j < classes.length; j++) {
-                                var cls = classes[j];
-                                var hasClass = eleClasses.has(cls);
-                                var changedNow = false;
+  if (directed && maximal) {
+    var Q = [];
+    var shifted = {};
 
-                                if (toggle || toggleUndefd && !hasClass) {
-                                    eleClasses.add(cls);
-                                    changedNow = true;
-                                } else if (!toggle || toggleUndefd && hasClass) {
-                                    eleClasses["delete"](cls);
-                                    changedNow = true;
-                                }
+    var enqueue = function enqueue(n) {
+      return Q.push(n);
+    };
 
-                                if (!changedEle && changedNow) {
-                                    changed.push(ele);
-                                    changedEle = true;
-                                }
-                            } // for j classes
+    var dequeue = function dequeue() {
+      return Q.shift();
+    };
 
-                        } // for i eles
-                        // trigger update style on those eles that had class changes
+    nodes.forEach(function (n) {
+      return Q.push(n);
+    });
 
+    while (Q.length > 0) {
+      var _ele3 = dequeue();
 
-                        if (changed.length > 0) {
-                            this.spawn(changed).updateStyle().emit('class');
-                        }
+      var didShift = adjustMaximally(_ele3, shifted);
 
-                        return self;
-                    },
-                    removeClass: function removeClass(classes) {
-                        return this.toggleClass(classes, false);
-                    },
-                    flashClass: function flashClass(classes, duration) {
-                        var self = this;
-
-                        if (duration == null) {
-                            duration = 250;
-                        } else if (duration === 0) {
-                            return self; // nothing to do really
-                        }
+      if (didShift) {
+        _ele3.outgoers().filter(function (el) {
+          return el.isNode() && eles.has(el);
+        }).forEach(enqueue);
+      } else if (didShift === null) {
+        warn('Detected double maximal shift for node `' + _ele3.id() + '`.  Bailing maximal adjustment due to cycle.  Use `options.maximal: true` only on DAGs.');
+        break; // exit on failure
+      }
+    }
+  }
 
-                        self.addClass(classes);
-                        setTimeout(function () {
-                            self.removeClass(classes);
-                        }, duration);
-                        return self;
-                    }
-                };
-                elesfn$e.className = elesfn$e.classNames = elesfn$e.classes;
-
-                var tokens = {
-                    metaChar: '[\\!\\"\\#\\$\\%\\&\\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]',
-                    // chars we need to escape in let names, etc
-                    comparatorOp: '=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=',
-                    // binary comparison op (used in data selectors)
-                    boolOp: '\\?|\\!|\\^',
-                    // boolean (unary) operators (used in data selectors)
-                    string: '"(?:\\\\"|[^"])*"' + '|' + "'(?:\\\\'|[^'])*'",
-                    // string literals (used in data selectors) -- doublequotes | singlequotes
-                    number: number$1,
-                    // number literal (used in data selectors) --- e.g. 0.1234, 1234, 12e123
-                    meta: 'degree|indegree|outdegree',
-                    // allowed metadata fields (i.e. allowed functions to use from Collection)
-                    separator: '\\s*,\\s*',
-                    // queries are separated by commas, e.g. edge[foo = 'bar'], node.someClass
-                    descendant: '\\s+',
-                    child: '\\s+>\\s+',
-                    subject: '\\$',
-                    group: 'node|edge|\\*',
-                    directedEdge: '\\s+->\\s+',
-                    undirectedEdge: '\\s+<->\\s+'
-                };
-                tokens.variable = '(?:[\\w-]|(?:\\\\' + tokens.metaChar + '))+'; // a variable name
+  assignDepths(); // clear holes
+  // find min distance we need to leave between nodes
 
-                tokens.value = tokens.string + '|' + tokens.number; // a value literal, either a string or number
+  var minDistance = 0;
 
-                tokens.className = tokens.variable; // a class name (follows variable conventions)
+  if (options.avoidOverlap) {
+    for (var _i4 = 0; _i4 < nodes.length; _i4++) {
+      var n = nodes[_i4];
+      var nbb = n.layoutDimensions(options);
+      var w = nbb.w;
+      var h = nbb.h;
+      minDistance = Math.max(minDistance, w, h);
+    }
+  } // get the weighted percent for an element based on its connectivity to other levels
 
-                tokens.id = tokens.variable; // an element id (follows variable conventions)
 
-                (function () {
-                    var ops, op, i; // add @ variants to comparatorOp
+  var cachedWeightedPercent = {};
 
-                    ops = tokens.comparatorOp.split('|');
+  var getWeightedPercent = function getWeightedPercent(ele) {
+    if (cachedWeightedPercent[ele.id()]) {
+      return cachedWeightedPercent[ele.id()];
+    }
 
-                    for (i = 0; i < ops.length; i++) {
-                        op = ops[i];
-                        tokens.comparatorOp += '|@' + op;
-                    } // add ! variants to comparatorOp
+    var eleDepth = getInfo(ele).depth;
+    var neighbors = ele.neighborhood();
+    var percent = 0;
+    var samples = 0;
 
+    for (var _i5 = 0; _i5 < neighbors.length; _i5++) {
+      var neighbor = neighbors[_i5];
 
-                    ops = tokens.comparatorOp.split('|');
+      if (neighbor.isEdge() || neighbor.isParent() || !nodes.has(neighbor)) {
+        continue;
+      }
 
-                    for (i = 0; i < ops.length; i++) {
-                        op = ops[i];
+      var bf = getInfo(neighbor);
+      var index = bf.index;
+      var depth = bf.depth; // unassigned neighbours shouldn't affect the ordering
 
-                        if (op.indexOf('!') >= 0) {
-                            continue;
-                        } // skip ops that explicitly contain !
+      if (index == null || depth == null) {
+        continue;
+      }
 
+      var nDepth = depths[depth].length;
 
-                        if (op === '=') {
-                            continue;
-                        } // skip = b/c != is explicitly defined
+      if (depth < eleDepth) {
+        // only get influenced by elements above
+        percent += index / nDepth;
+        samples++;
+      }
+    }
 
+    samples = Math.max(1, samples);
+    percent = percent / samples;
 
-                        tokens.comparatorOp += '|\\!' + op;
-                    }
-                })();
-
-                /**
-                 * Make a new query object
-                 *
-                 * @prop type {Type} The type enum (int) of the query
-                 * @prop checks List of checks to make against an ele to test for a match
-                 */
-                var newQuery = function newQuery() {
-                    return {
-                        checks: []
-                    };
-                };
+    if (samples === 0) {
+      // put lone nodes at the start
+      percent = 0;
+    }
 
-                /**
-                 * A check type enum-like object.  Uses integer values for fast match() lookup.
-                 * The ordering does not matter as long as the ints are unique.
-                 */
-                var Type = {
-                    /** E.g. node */
-                    GROUP: 0,
+    cachedWeightedPercent[ele.id()] = percent;
+    return percent;
+  }; // rearrange the indices in each depth level based on connectivity
 
-                    /** A collection of elements */
-                    COLLECTION: 1,
 
-                    /** A filter(ele) function */
-                    FILTER: 2,
+  var sortFn = function sortFn(a, b) {
+    var apct = getWeightedPercent(a);
+    var bpct = getWeightedPercent(b);
+    var diff = apct - bpct;
 
-                    /** E.g. [foo > 1] */
-                    DATA_COMPARE: 3,
+    if (diff === 0) {
+      return ascending(a.id(), b.id()); // make sure sort doesn't have don't-care comparisons
+    } else {
+      return diff;
+    }
+  }; // sort each level to make connected nodes closer
 
-                    /** E.g. [foo] */
-                    DATA_EXIST: 4,
 
-                    /** E.g. [?foo] */
-                    DATA_BOOL: 5,
+  for (var _i6 = 0; _i6 < depths.length; _i6++) {
+    depths[_i6].sort(sortFn);
 
-                    /** E.g. [[degree > 2]] */
-                    META_COMPARE: 6,
+    assignDepthsAt(_i6);
+  } // assign orphan nodes to a new top-level depth
 
-                    /** E.g. :selected */
-                    STATE: 7,
 
-                    /** E.g. #foo */
-                    ID: 8,
+  var orphanDepth = [];
 
-                    /** E.g. .foo */
-                    CLASS: 9,
+  for (var _i7 = 0; _i7 < orphanNodes.length; _i7++) {
+    orphanDepth.push(orphanNodes[_i7]);
+  }
 
-                    /** E.g. #foo <-> #bar */
-                    UNDIRECTED_EDGE: 10,
+  depths.unshift(orphanDepth);
+  assignDepths();
+  var biggestDepthSize = 0;
 
-                    /** E.g. #foo -> #bar */
-                    DIRECTED_EDGE: 11,
+  for (var _i8 = 0; _i8 < depths.length; _i8++) {
+    biggestDepthSize = Math.max(depths[_i8].length, biggestDepthSize);
+  }
 
-                    /** E.g. $#foo -> #bar */
-                    NODE_SOURCE: 12,
+  var center = {
+    x: bb.x1 + bb.w / 2,
+    y: bb.x1 + bb.h / 2
+  };
+  var maxDepthSize = depths.reduce(function (max, eles) {
+    return Math.max(max, eles.length);
+  }, 0);
+
+  var getPosition = function getPosition(ele) {
+    var _getInfo2 = getInfo(ele),
+        depth = _getInfo2.depth,
+        index = _getInfo2.index;
+
+    var depthSize = depths[depth].length;
+    var distanceX = Math.max(bb.w / ((options.grid ? maxDepthSize : depthSize) + 1), minDistance);
+    var distanceY = Math.max(bb.h / (depths.length + 1), minDistance);
+    var radiusStepSize = Math.min(bb.w / 2 / depths.length, bb.h / 2 / depths.length);
+    radiusStepSize = Math.max(radiusStepSize, minDistance);
+
+    if (!options.circle) {
+      var epos = {
+        x: center.x + (index + 1 - (depthSize + 1) / 2) * distanceX,
+        y: (depth + 1) * distanceY
+      };
+      return epos;
+    } else {
+      var radius = radiusStepSize * depth + radiusStepSize - (depths.length > 0 && depths[0].length <= 3 ? radiusStepSize / 2 : 0);
+      var theta = 2 * Math.PI / depths[depth].length * index;
+
+      if (depth === 0 && depths[0].length === 1) {
+        radius = 1;
+      }
+
+      return {
+        x: center.x + radius * Math.cos(theta),
+        y: center.y + radius * Math.sin(theta)
+      };
+    }
+  };
+
+  nodes.layoutPositions(this, options, getPosition);
+  return this; // chaining
+};
+
+var defaults$a = {
+  fit: true,
+  // whether to fit the viewport to the graph
+  padding: 30,
+  // the padding on fit
+  boundingBox: undefined,
+  // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  avoidOverlap: true,
+  // prevents node overlap, may overflow boundingBox and radius if not enough space
+  nodeDimensionsIncludeLabels: false,
+  // Excludes the label when calculating node bounding boxes for the layout algorithm
+  spacingFactor: undefined,
+  // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
+  radius: undefined,
+  // the radius of the circle
+  startAngle: 3 / 2 * Math.PI,
+  // where nodes start in radians
+  sweep: undefined,
+  // how many radians should be between the first and last node (defaults to full circle)
+  clockwise: true,
+  // whether the layout should go clockwise (true) or counterclockwise/anticlockwise (false)
+  sort: undefined,
+  // a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts 
+
+};
+
+function CircleLayout(options) {
+  this.options = extend({}, defaults$a, options);
+}
+
+CircleLayout.prototype.run = function () {
+  var params = this.options;
+  var options = params;
+  var cy = params.cy;
+  var eles = options.eles;
+  var clockwise = options.counterclockwise !== undefined ? !options.counterclockwise : options.clockwise;
+  var nodes = eles.nodes().not(':parent');
+
+  if (options.sort) {
+    nodes = nodes.sort(options.sort);
+  }
 
-                    /** E.g. #foo -> $#bar */
-                    NODE_TARGET: 13,
+  var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
+    x1: 0,
+    y1: 0,
+    w: cy.width(),
+    h: cy.height()
+  });
+  var center = {
+    x: bb.x1 + bb.w / 2,
+    y: bb.y1 + bb.h / 2
+  };
+  var sweep = options.sweep === undefined ? 2 * Math.PI - 2 * Math.PI / nodes.length : options.sweep;
+  var dTheta = sweep / Math.max(1, nodes.length - 1);
+  var r;
+  var minDistance = 0;
+
+  for (var i = 0; i < nodes.length; i++) {
+    var n = nodes[i];
+    var nbb = n.layoutDimensions(options);
+    var w = nbb.w;
+    var h = nbb.h;
+    minDistance = Math.max(minDistance, w, h);
+  }
 
-                    /** E.g. $#foo <-> #bar */
-                    NODE_NEIGHBOR: 14,
+  if (number(options.radius)) {
+    r = options.radius;
+  } else if (nodes.length <= 1) {
+    r = 0;
+  } else {
+    r = Math.min(bb.h, bb.w) / 2 - minDistance;
+  } // calculate the radius
 
-                    /** E.g. #foo > #bar */
-                    CHILD: 15,
 
-                    /** E.g. #foo #bar */
-                    DESCENDANT: 16,
+  if (nodes.length > 1 && options.avoidOverlap) {
+    // but only if more than one node (can't overlap)
+    minDistance *= 1.75; // just to have some nice spacing
 
-                    /** E.g. $#foo > #bar */
-                    PARENT: 17,
+    var dcos = Math.cos(dTheta) - Math.cos(0);
+    var dsin = Math.sin(dTheta) - Math.sin(0);
+    var rMin = Math.sqrt(minDistance * minDistance / (dcos * dcos + dsin * dsin)); // s.t. no nodes overlapping
 
-                    /** E.g. $#foo #bar */
-                    ANCESTOR: 18,
+    r = Math.max(rMin, r);
+  }
 
-                    /** E.g. #foo > $bar > #baz */
-                    COMPOUND_SPLIT: 19,
+  var getPos = function getPos(ele, i) {
+    var theta = options.startAngle + i * dTheta * (clockwise ? 1 : -1);
+    var rx = r * Math.cos(theta);
+    var ry = r * Math.sin(theta);
+    var pos = {
+      x: center.x + rx,
+      y: center.y + ry
+    };
+    return pos;
+  };
+
+  nodes.layoutPositions(this, options, getPos);
+  return this; // chaining
+};
+
+var defaults$b = {
+  fit: true,
+  // whether to fit the viewport to the graph
+  padding: 30,
+  // the padding on fit
+  startAngle: 3 / 2 * Math.PI,
+  // where nodes start in radians
+  sweep: undefined,
+  // how many radians should be between the first and last node (defaults to full circle)
+  clockwise: true,
+  // whether the layout should go clockwise (true) or counterclockwise/anticlockwise (false)
+  equidistant: false,
+  // whether levels have an equal radial distance betwen them, may cause bounding box overflow
+  minNodeSpacing: 10,
+  // min spacing between outside of nodes (used for radius adjustment)
+  boundingBox: undefined,
+  // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  avoidOverlap: true,
+  // prevents node overlap, may overflow boundingBox if not enough space
+  nodeDimensionsIncludeLabels: false,
+  // Excludes the label when calculating node bounding boxes for the layout algorithm
+  height: undefined,
+  // height of layout area (overrides container height)
+  width: undefined,
+  // width of layout area (overrides container width)
+  spacingFactor: undefined,
+  // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
+  concentric: function concentric(node) {
+    // returns numeric value for each node, placing higher nodes in levels towards the centre
+    return node.degree();
+  },
+  levelWidth: function levelWidth(nodes) {
+    // the variation of concentric values in each level
+    return nodes.maxDegree() / 4;
+  },
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts
+
+};
+
+function ConcentricLayout(options) {
+  this.options = extend({}, defaults$b, options);
+}
+
+ConcentricLayout.prototype.run = function () {
+  var params = this.options;
+  var options = params;
+  var clockwise = options.counterclockwise !== undefined ? !options.counterclockwise : options.clockwise;
+  var cy = params.cy;
+  var eles = options.eles;
+  var nodes = eles.nodes().not(':parent');
+  var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
+    x1: 0,
+    y1: 0,
+    w: cy.width(),
+    h: cy.height()
+  });
+  var center = {
+    x: bb.x1 + bb.w / 2,
+    y: bb.y1 + bb.h / 2
+  };
+  var nodeValues = []; // { node, value }
+
+  var maxNodeSize = 0;
+
+  for (var i = 0; i < nodes.length; i++) {
+    var node = nodes[i];
+    var value = void 0; // calculate the node value
+
+    value = options.concentric(node);
+    nodeValues.push({
+      value: value,
+      node: node
+    }); // for style mapping
+
+    node._private.scratch.concentric = value;
+  } // in case we used the `concentric` in style
+
+
+  nodes.updateStyle(); // calculate max size now based on potentially updated mappers
+
+  for (var _i = 0; _i < nodes.length; _i++) {
+    var _node = nodes[_i];
+
+    var nbb = _node.layoutDimensions(options);
+
+    maxNodeSize = Math.max(maxNodeSize, nbb.w, nbb.h);
+  } // sort node values in descreasing order
+
+
+  nodeValues.sort(function (a, b) {
+    return b.value - a.value;
+  });
+  var levelWidth = options.levelWidth(nodes); // put the values into levels
+
+  var levels = [[]];
+  var currentLevel = levels[0];
+
+  for (var _i2 = 0; _i2 < nodeValues.length; _i2++) {
+    var val = nodeValues[_i2];
+
+    if (currentLevel.length > 0) {
+      var diff = Math.abs(currentLevel[0].value - val.value);
+
+      if (diff >= levelWidth) {
+        currentLevel = [];
+        levels.push(currentLevel);
+      }
+    }
 
-                    /** Always matches, useful placeholder for subject in `COMPOUND_SPLIT` */
-                    TRUE: 20
-                };
+    currentLevel.push(val);
+  } // create positions from levels
 
-                var stateSelectors = [{
-                    selector: ':selected',
-                    matches: function matches(ele) {
-                        return ele.selected();
-                    }
-                }, {
-                    selector: ':unselected',
-                    matches: function matches(ele) {
-                        return !ele.selected();
-                    }
-                }, {
-                    selector: ':selectable',
-                    matches: function matches(ele) {
-                        return ele.selectable();
-                    }
-                }, {
-                    selector: ':unselectable',
-                    matches: function matches(ele) {
-                        return !ele.selectable();
-                    }
-                }, {
-                    selector: ':locked',
-                    matches: function matches(ele) {
-                        return ele.locked();
-                    }
-                }, {
-                    selector: ':unlocked',
-                    matches: function matches(ele) {
-                        return !ele.locked();
-                    }
-                }, {
-                    selector: ':visible',
-                    matches: function matches(ele) {
-                        return ele.visible();
-                    }
-                }, {
-                    selector: ':hidden',
-                    matches: function matches(ele) {
-                        return !ele.visible();
-                    }
-                }, {
-                    selector: ':transparent',
-                    matches: function matches(ele) {
-                        return ele.transparent();
-                    }
-                }, {
-                    selector: ':grabbed',
-                    matches: function matches(ele) {
-                        return ele.grabbed();
-                    }
-                }, {
-                    selector: ':free',
-                    matches: function matches(ele) {
-                        return !ele.grabbed();
-                    }
-                }, {
-                    selector: ':removed',
-                    matches: function matches(ele) {
-                        return ele.removed();
-                    }
-                }, {
-                    selector: ':inside',
-                    matches: function matches(ele) {
-                        return !ele.removed();
-                    }
-                }, {
-                    selector: ':grabbable',
-                    matches: function matches(ele) {
-                        return ele.grabbable();
-                    }
-                }, {
-                    selector: ':ungrabbable',
-                    matches: function matches(ele) {
-                        return !ele.grabbable();
-                    }
-                }, {
-                    selector: ':animated',
-                    matches: function matches(ele) {
-                        return ele.animated();
-                    }
-                }, {
-                    selector: ':unanimated',
-                    matches: function matches(ele) {
-                        return !ele.animated();
-                    }
-                }, {
-                    selector: ':parent',
-                    matches: function matches(ele) {
-                        return ele.isParent();
-                    }
-                }, {
-                    selector: ':childless',
-                    matches: function matches(ele) {
-                        return ele.isChildless();
-                    }
-                }, {
-                    selector: ':child',
-                    matches: function matches(ele) {
-                        return ele.isChild();
-                    }
-                }, {
-                    selector: ':orphan',
-                    matches: function matches(ele) {
-                        return ele.isOrphan();
-                    }
-                }, {
-                    selector: ':nonorphan',
-                    matches: function matches(ele) {
-                        return ele.isChild();
-                    }
-                }, {
-                    selector: ':compound',
-                    matches: function matches(ele) {
-                        if (ele.isNode()) {
-                            return ele.isParent();
-                        } else {
-                            return ele.source().isParent() || ele.target().isParent();
-                        }
-                    }
-                }, {
-                    selector: ':loop',
-                    matches: function matches(ele) {
-                        return ele.isLoop();
-                    }
-                }, {
-                    selector: ':simple',
-                    matches: function matches(ele) {
-                        return ele.isSimple();
-                    }
-                }, {
-                    selector: ':active',
-                    matches: function matches(ele) {
-                        return ele.active();
-                    }
-                }, {
-                    selector: ':inactive',
-                    matches: function matches(ele) {
-                        return !ele.active();
-                    }
-                }, {
-                    selector: ':backgrounding',
-                    matches: function matches(ele) {
-                        return ele.backgrounding();
-                    }
-                }, {
-                    selector: ':nonbackgrounding',
-                    matches: function matches(ele) {
-                        return !ele.backgrounding();
-                    }
-                }].sort(function (a, b) {
-                    // n.b. selectors that are starting substrings of others must have the longer ones first
-                    return descending(a.selector, b.selector);
-                });
 
-                var lookup = function () {
-                    var selToFn = {};
-                    var s;
+  var minDist = maxNodeSize + options.minNodeSpacing; // min dist between nodes
 
-                    for (var i = 0; i < stateSelectors.length; i++) {
-                        s = stateSelectors[i];
-                        selToFn[s.selector] = s.matches;
-                    }
+  if (!options.avoidOverlap) {
+    // then strictly constrain to bb
+    var firstLvlHasMulti = levels.length > 0 && levels[0].length > 1;
+    var maxR = Math.min(bb.w, bb.h) / 2 - minDist;
+    var rStep = maxR / (levels.length + firstLvlHasMulti ? 1 : 0);
+    minDist = Math.min(minDist, rStep);
+  } // find the metrics for each level
 
-                    return selToFn;
-                }();
 
-                var stateSelectorMatches = function stateSelectorMatches(sel, ele) {
-                    return lookup[sel](ele);
-                };
-                var stateSelectorRegex = '(' + stateSelectors.map(function (s) {
-                    return s.selector;
-                }).join('|') + ')';
+  var r = 0;
 
-// so that values get compared properly in Selector.filter()
+  for (var _i3 = 0; _i3 < levels.length; _i3++) {
+    var level = levels[_i3];
+    var sweep = options.sweep === undefined ? 2 * Math.PI - 2 * Math.PI / level.length : options.sweep;
+    var dTheta = level.dTheta = sweep / Math.max(1, level.length - 1); // calculate the radius
 
-                var cleanMetaChars = function cleanMetaChars(str) {
-                    return str.replace(new RegExp('\\\\(' + tokens.metaChar + ')', 'g'), function (match, $1) {
-                        return $1;
-                    });
-                };
+    if (level.length > 1 && options.avoidOverlap) {
+      // but only if more than one node (can't overlap)
+      var dcos = Math.cos(dTheta) - Math.cos(0);
+      var dsin = Math.sin(dTheta) - Math.sin(0);
+      var rMin = Math.sqrt(minDist * minDist / (dcos * dcos + dsin * dsin)); // s.t. no nodes overlapping
 
-                var replaceLastQuery = function replaceLastQuery(selector, examiningQuery, replacementQuery) {
-                    selector[selector.length - 1] = replacementQuery;
-                }; // NOTE: add new expression syntax here to have it recognised by the parser;
-// - a query contains all adjacent (i.e. no separator in between) expressions;
-// - the current query is stored in selector[i]
-// - you need to check the query objects in match() for it actually filter properly, but that's pretty straight forward
+      r = Math.max(rMin, r);
+    }
 
+    level.r = r;
+    r += minDist;
+  }
 
-                var exprs = [{
-                    name: 'group',
-                    // just used for identifying when debugging
-                    query: true,
-                    regex: '(' + tokens.group + ')',
-                    populate: function populate(selector, query, _ref) {
-                        var _ref2 = _slicedToArray(_ref, 1),
-                            group = _ref2[0];
+  if (options.equidistant) {
+    var rDeltaMax = 0;
+    var _r = 0;
 
-                        query.checks.push({
-                            type: Type.GROUP,
-                            value: group === '*' ? group : group + 's'
-                        });
-                    }
-                }, {
-                    name: 'state',
-                    query: true,
-                    regex: stateSelectorRegex,
-                    populate: function populate(selector, query, _ref3) {
-                        var _ref4 = _slicedToArray(_ref3, 1),
-                            state = _ref4[0];
-
-                        query.checks.push({
-                            type: Type.STATE,
-                            value: state
-                        });
-                    }
-                }, {
-                    name: 'id',
-                    query: true,
-                    regex: '\\#(' + tokens.id + ')',
-                    populate: function populate(selector, query, _ref5) {
-                        var _ref6 = _slicedToArray(_ref5, 1),
-                            id = _ref6[0];
-
-                        query.checks.push({
-                            type: Type.ID,
-                            value: cleanMetaChars(id)
-                        });
-                    }
-                }, {
-                    name: 'className',
-                    query: true,
-                    regex: '\\.(' + tokens.className + ')',
-                    populate: function populate(selector, query, _ref7) {
-                        var _ref8 = _slicedToArray(_ref7, 1),
-                            className = _ref8[0];
-
-                        query.checks.push({
-                            type: Type.CLASS,
-                            value: cleanMetaChars(className)
-                        });
-                    }
-                }, {
-                    name: 'dataExists',
-                    query: true,
-                    regex: '\\[\\s*(' + tokens.variable + ')\\s*\\]',
-                    populate: function populate(selector, query, _ref9) {
-                        var _ref10 = _slicedToArray(_ref9, 1),
-                            variable = _ref10[0];
-
-                        query.checks.push({
-                            type: Type.DATA_EXIST,
-                            field: cleanMetaChars(variable)
-                        });
-                    }
-                }, {
-                    name: 'dataCompare',
-                    query: true,
-                    regex: '\\[\\s*(' + tokens.variable + ')\\s*(' + tokens.comparatorOp + ')\\s*(' + tokens.value + ')\\s*\\]',
-                    populate: function populate(selector, query, _ref11) {
-                        var _ref12 = _slicedToArray(_ref11, 3),
-                            variable = _ref12[0],
-                            comparatorOp = _ref12[1],
-                            value = _ref12[2];
-
-                        var valueIsString = new RegExp('^' + tokens.string + '$').exec(value) != null;
-
-                        if (valueIsString) {
-                            value = value.substring(1, value.length - 1);
-                        } else {
-                            value = parseFloat(value);
-                        }
+    for (var _i4 = 0; _i4 < levels.length; _i4++) {
+      var _level = levels[_i4];
+      var rDelta = _level.r - _r;
+      rDeltaMax = Math.max(rDeltaMax, rDelta);
+    }
 
-                        query.checks.push({
-                            type: Type.DATA_COMPARE,
-                            field: cleanMetaChars(variable),
-                            operator: comparatorOp,
-                            value: value
-                        });
-                    }
-                }, {
-                    name: 'dataBool',
-                    query: true,
-                    regex: '\\[\\s*(' + tokens.boolOp + ')\\s*(' + tokens.variable + ')\\s*\\]',
-                    populate: function populate(selector, query, _ref13) {
-                        var _ref14 = _slicedToArray(_ref13, 2),
-                            boolOp = _ref14[0],
-                            variable = _ref14[1];
-
-                        query.checks.push({
-                            type: Type.DATA_BOOL,
-                            field: cleanMetaChars(variable),
-                            operator: boolOp
-                        });
-                    }
-                }, {
-                    name: 'metaCompare',
-                    query: true,
-                    regex: '\\[\\[\\s*(' + tokens.meta + ')\\s*(' + tokens.comparatorOp + ')\\s*(' + tokens.number + ')\\s*\\]\\]',
-                    populate: function populate(selector, query, _ref15) {
-                        var _ref16 = _slicedToArray(_ref15, 3),
-                            meta = _ref16[0],
-                            comparatorOp = _ref16[1],
-                            number = _ref16[2];
-
-                        query.checks.push({
-                            type: Type.META_COMPARE,
-                            field: cleanMetaChars(meta),
-                            operator: comparatorOp,
-                            value: parseFloat(number)
-                        });
-                    }
-                }, {
-                    name: 'nextQuery',
-                    separator: true,
-                    regex: tokens.separator,
-                    populate: function populate(selector, query) {
-                        var currentSubject = selector.currentSubject;
-                        var edgeCount = selector.edgeCount;
-                        var compoundCount = selector.compoundCount;
-                        var lastQ = selector[selector.length - 1];
-
-                        if (currentSubject != null) {
-                            lastQ.subject = currentSubject;
-                            selector.currentSubject = null;
-                        }
+    _r = 0;
 
-                        lastQ.edgeCount = edgeCount;
-                        lastQ.compoundCount = compoundCount;
-                        selector.edgeCount = 0;
-                        selector.compoundCount = 0; // go on to next query
+    for (var _i5 = 0; _i5 < levels.length; _i5++) {
+      var _level2 = levels[_i5];
 
-                        var nextQuery = selector[selector.length++] = newQuery();
-                        return nextQuery; // this is the new query to be filled by the following exprs
-                    }
-                }, {
-                    name: 'directedEdge',
-                    separator: true,
-                    regex: tokens.directedEdge,
-                    populate: function populate(selector, query) {
-                        if (selector.currentSubject == null) {
-                            // undirected edge
-                            var edgeQuery = newQuery();
-                            var source = query;
-                            var target = newQuery();
-                            edgeQuery.checks.push({
-                                type: Type.DIRECTED_EDGE,
-                                source: source,
-                                target: target
-                            }); // the query in the selector should be the edge rather than the source
-
-                            replaceLastQuery(selector, query, edgeQuery);
-                            selector.edgeCount++; // we're now populating the target query with expressions that follow
-
-                            return target;
-                        } else {
-                            // source/target
-                            var srcTgtQ = newQuery();
-                            var _source = query;
-
-                            var _target = newQuery();
-
-                            srcTgtQ.checks.push({
-                                type: Type.NODE_SOURCE,
-                                source: _source,
-                                target: _target
-                            }); // the query in the selector should be the neighbourhood rather than the node
-
-                            replaceLastQuery(selector, query, srcTgtQ);
-                            selector.edgeCount++;
-                            return _target; // now populating the target with the following expressions
-                        }
-                    }
-                }, {
-                    name: 'undirectedEdge',
-                    separator: true,
-                    regex: tokens.undirectedEdge,
-                    populate: function populate(selector, query) {
-                        if (selector.currentSubject == null) {
-                            // undirected edge
-                            var edgeQuery = newQuery();
-                            var source = query;
-                            var target = newQuery();
-                            edgeQuery.checks.push({
-                                type: Type.UNDIRECTED_EDGE,
-                                nodes: [source, target]
-                            }); // the query in the selector should be the edge rather than the source
-
-                            replaceLastQuery(selector, query, edgeQuery);
-                            selector.edgeCount++; // we're now populating the target query with expressions that follow
-
-                            return target;
-                        } else {
-                            // neighbourhood
-                            var nhoodQ = newQuery();
-                            var node = query;
-                            var neighbor = newQuery();
-                            nhoodQ.checks.push({
-                                type: Type.NODE_NEIGHBOR,
-                                node: node,
-                                neighbor: neighbor
-                            }); // the query in the selector should be the neighbourhood rather than the node
-
-                            replaceLastQuery(selector, query, nhoodQ);
-                            return neighbor; // now populating the neighbor with following expressions
-                        }
-                    }
-                }, {
-                    name: 'child',
-                    separator: true,
-                    regex: tokens.child,
-                    populate: function populate(selector, query) {
-                        if (selector.currentSubject == null) {
-                            // default: child query
-                            var parentChildQuery = newQuery();
-                            var child = newQuery();
-                            var parent = selector[selector.length - 1];
-                            parentChildQuery.checks.push({
-                                type: Type.CHILD,
-                                parent: parent,
-                                child: child
-                            }); // the query in the selector should be the '>' itself
-
-                            replaceLastQuery(selector, query, parentChildQuery);
-                            selector.compoundCount++; // we're now populating the child query with expressions that follow
-
-                            return child;
-                        } else if (selector.currentSubject === query) {
-                            // compound split query
-                            var compound = newQuery();
-                            var left = selector[selector.length - 1];
-                            var right = newQuery();
-                            var subject = newQuery();
-
-                            var _child = newQuery();
-
-                            var _parent = newQuery(); // set up the root compound q
-
-
-                            compound.checks.push({
-                                type: Type.COMPOUND_SPLIT,
-                                left: left,
-                                right: right,
-                                subject: subject
-                            }); // populate the subject and replace the q at the old spot (within left) with TRUE
-
-                            subject.checks = query.checks; // take the checks from the left
-
-                            query.checks = [{
-                                type: Type.TRUE
-                            }]; // checks under left refs the subject implicitly
-                            // set up the right q
-
-                            _parent.checks.push({
-                                type: Type.TRUE
-                            }); // parent implicitly refs the subject
-
-
-                            right.checks.push({
-                                type: Type.PARENT,
-                                // type is swapped on right side queries
-                                parent: _parent,
-                                child: _child // empty for now
-
-                            });
-                            replaceLastQuery(selector, left, compound); // update the ref since we moved things around for `query`
-
-                            selector.currentSubject = subject;
-                            selector.compoundCount++;
-                            return _child; // now populating the right side's child
-                        } else {
-                            // parent query
-                            // info for parent query
-                            var _parent2 = newQuery();
-
-                            var _child2 = newQuery();
-
-                            var pcQChecks = [{
-                                type: Type.PARENT,
-                                parent: _parent2,
-                                child: _child2
-                            }]; // the parent-child query takes the place of the query previously being populated
-
-                            _parent2.checks = query.checks; // the previous query contains the checks for the parent
-
-                            query.checks = pcQChecks; // pc query takes over
-
-                            selector.compoundCount++;
-                            return _child2; // we're now populating the child
-                        }
-                    }
-                }, {
-                    name: 'descendant',
-                    separator: true,
-                    regex: tokens.descendant,
-                    populate: function populate(selector, query) {
-                        if (selector.currentSubject == null) {
-                            // default: descendant query
-                            var ancChQuery = newQuery();
-                            var descendant = newQuery();
-                            var ancestor = selector[selector.length - 1];
-                            ancChQuery.checks.push({
-                                type: Type.DESCENDANT,
-                                ancestor: ancestor,
-                                descendant: descendant
-                            }); // the query in the selector should be the '>' itself
-
-                            replaceLastQuery(selector, query, ancChQuery);
-                            selector.compoundCount++; // we're now populating the descendant query with expressions that follow
-
-                            return descendant;
-                        } else if (selector.currentSubject === query) {
-                            // compound split query
-                            var compound = newQuery();
-                            var left = selector[selector.length - 1];
-                            var right = newQuery();
-                            var subject = newQuery();
-
-                            var _descendant = newQuery();
-
-                            var _ancestor = newQuery(); // set up the root compound q
-
-
-                            compound.checks.push({
-                                type: Type.COMPOUND_SPLIT,
-                                left: left,
-                                right: right,
-                                subject: subject
-                            }); // populate the subject and replace the q at the old spot (within left) with TRUE
-
-                            subject.checks = query.checks; // take the checks from the left
-
-                            query.checks = [{
-                                type: Type.TRUE
-                            }]; // checks under left refs the subject implicitly
-                            // set up the right q
-
-                            _ancestor.checks.push({
-                                type: Type.TRUE
-                            }); // ancestor implicitly refs the subject
-
-
-                            right.checks.push({
-                                type: Type.ANCESTOR,
-                                // type is swapped on right side queries
-                                ancestor: _ancestor,
-                                descendant: _descendant // empty for now
-
-                            });
-                            replaceLastQuery(selector, left, compound); // update the ref since we moved things around for `query`
-
-                            selector.currentSubject = subject;
-                            selector.compoundCount++;
-                            return _descendant; // now populating the right side's descendant
-                        } else {
-                            // ancestor query
-                            // info for parent query
-                            var _ancestor2 = newQuery();
-
-                            var _descendant2 = newQuery();
-
-                            var adQChecks = [{
-                                type: Type.ANCESTOR,
-                                ancestor: _ancestor2,
-                                descendant: _descendant2
-                            }]; // the parent-child query takes the place of the query previously being populated
-
-                            _ancestor2.checks = query.checks; // the previous query contains the checks for the parent
-
-                            query.checks = adQChecks; // pc query takes over
-
-                            selector.compoundCount++;
-                            return _descendant2; // we're now populating the child
-                        }
-                    }
-                }, {
-                    name: 'subject',
-                    modifier: true,
-                    regex: tokens.subject,
-                    populate: function populate(selector, query) {
-                        if (selector.currentSubject != null && selector.currentSubject !== query) {
-                            warn('Redefinition of subject in selector `' + selector.toString() + '`');
-                            return false;
-                        }
+      if (_i5 === 0) {
+        _r = _level2.r;
+      }
 
-                        selector.currentSubject = query;
-                        var topQ = selector[selector.length - 1];
-                        var topChk = topQ.checks[0];
-                        var topType = topChk == null ? null : topChk.type;
+      _level2.r = _r;
+      _r += rDeltaMax;
+    }
+  } // calculate the node positions
 
-                        if (topType === Type.DIRECTED_EDGE) {
-                            // directed edge with subject on the target
-                            // change to target node check
-                            topChk.type = Type.NODE_TARGET;
-                        } else if (topType === Type.UNDIRECTED_EDGE) {
-                            // undirected edge with subject on the second node
-                            // change to neighbor check
-                            topChk.type = Type.NODE_NEIGHBOR;
-                            topChk.node = topChk.nodes[1]; // second node is subject
 
-                            topChk.neighbor = topChk.nodes[0]; // clean up unused fields for new type
+  var pos = {}; // id => position
 
-                            topChk.nodes = null;
-                        }
-                    }
-                }];
-                exprs.forEach(function (e) {
-                    return e.regexObj = new RegExp('^' + e.regex);
-                });
+  for (var _i6 = 0; _i6 < levels.length; _i6++) {
+    var _level3 = levels[_i6];
+    var _dTheta = _level3.dTheta;
+    var _r2 = _level3.r;
 
-                /**
-                 * Of all the expressions, find the first match in the remaining text.
-                 * @param {string} remaining The remaining text to parse
-                 * @returns The matched expression and the newly remaining text `{ expr, match, name, remaining }`
-                 */
-
-                var consumeExpr = function consumeExpr(remaining) {
-                    var expr;
-                    var match;
-                    var name;
-
-                    for (var j = 0; j < exprs.length; j++) {
-                        var e = exprs[j];
-                        var n = e.name;
-                        var m = remaining.match(e.regexObj);
-
-                        if (m != null) {
-                            match = m;
-                            expr = e;
-                            name = n;
-                            var consumed = m[0];
-                            remaining = remaining.substring(consumed.length);
-                            break; // we've consumed one expr, so we can return now
-                        }
-                    }
+    for (var j = 0; j < _level3.length; j++) {
+      var _val = _level3[j];
+      var theta = options.startAngle + (clockwise ? 1 : -1) * _dTheta * j;
+      var p = {
+        x: center.x + _r2 * Math.cos(theta),
+        y: center.y + _r2 * Math.sin(theta)
+      };
+      pos[_val.node.id()] = p;
+    }
+  } // position the nodes
 
-                    return {
-                        expr: expr,
-                        match: match,
-                        name: name,
-                        remaining: remaining
-                    };
-                };
-                /**
-                 * Consume all the leading whitespace
-                 * @param {string} remaining The text to consume
-                 * @returns The text with the leading whitespace removed
-                 */
 
+  nodes.layoutPositions(this, options, function (ele) {
+    var id = ele.id();
+    return pos[id];
+  });
+  return this; // chaining
+};
 
-                var consumeWhitespace = function consumeWhitespace(remaining) {
-                    var match = remaining.match(/^\s+/);
+/*
+The CoSE layout was written by Gerardo Huck.
+https://www.linkedin.com/in/gerardohuck/
 
-                    if (match) {
-                        var consumed = match[0];
-                        remaining = remaining.substring(consumed.length);
-                    }
+Based on the following article:
+http://dl.acm.org/citation.cfm?id=1498047
 
-                    return remaining;
-                };
-                /**
-                 * Parse the string and store the parsed representation in the Selector.
-                 * @param {string} selector The selector string
-                 * @returns `true` if the selector was successfully parsed, `false` otherwise
-                 */
-
-
-                var parse = function parse(selector) {
-                    var self = this;
-                    var remaining = self.inputText = selector;
-                    var currentQuery = self[0] = newQuery();
-                    self.length = 1;
-                    remaining = consumeWhitespace(remaining); // get rid of leading whitespace
-
-                    for (;;) {
-                        var exprInfo = consumeExpr(remaining);
-
-                        if (exprInfo.expr == null) {
-                            warn('The selector `' + selector + '`is invalid');
-                            return false;
-                        } else {
-                            var args = exprInfo.match.slice(1); // let the token populate the selector object in currentQuery
-
-                            var ret = exprInfo.expr.populate(self, currentQuery, args);
-
-                            if (ret === false) {
-                                return false; // exit if population failed
-                            } else if (ret != null) {
-                                currentQuery = ret; // change the current query to be filled if the expr specifies
-                            }
-                        }
+Modifications tracked on Github.
+*/
+var DEBUG;
+/**
+ * @brief :  default layout options
+ */
 
-                        remaining = exprInfo.remaining; // we're done when there's nothing left to parse
+var defaults$c = {
+  // Called on `layoutready`
+  ready: function ready() {},
+  // Called on `layoutstop`
+  stop: function stop() {},
+  // Whether to animate while running the layout
+  // true : Animate continuously as the layout is running
+  // false : Just show the end result
+  // 'end' : Animate with the end result, from the initial positions to the end positions
+  animate: true,
+  // Easing of the animation for animate:'end'
+  animationEasing: undefined,
+  // The duration of the animation for animate:'end'
+  animationDuration: undefined,
+  // A function that determines whether the node should be animated
+  // All nodes animated by default on animate enabled
+  // Non-animated nodes are positioned immediately when the layout starts
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // The layout animates only after this many milliseconds for animate:true
+  // (prevents flashing on fast runs)
+  animationThreshold: 250,
+  // Number of iterations between consecutive screen positions update
+  refresh: 20,
+  // Whether to fit the network view after when done
+  fit: true,
+  // Padding on fit
+  padding: 30,
+  // Constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  boundingBox: undefined,
+  // Excludes the label when calculating node bounding boxes for the layout algorithm
+  nodeDimensionsIncludeLabels: false,
+  // Randomize the initial positions of the nodes (true) or use existing positions (false)
+  randomize: false,
+  // Extra spacing between components in non-compound graphs
+  componentSpacing: 40,
+  // Node repulsion (non overlapping) multiplier
+  nodeRepulsion: function nodeRepulsion(node) {
+    return 2048;
+  },
+  // Node repulsion (overlapping) multiplier
+  nodeOverlap: 4,
+  // Ideal edge (non nested) length
+  idealEdgeLength: function idealEdgeLength(edge) {
+    return 32;
+  },
+  // Divisor to compute edge forces
+  edgeElasticity: function edgeElasticity(edge) {
+    return 32;
+  },
+  // Nesting factor (multiplier) to compute ideal edge length for nested edges
+  nestingFactor: 1.2,
+  // Gravity force (constant)
+  gravity: 1,
+  // Maximum number of iterations to perform
+  numIter: 1000,
+  // Initial temperature (maximum node displacement)
+  initialTemp: 1000,
+  // Cooling factor (how the temperature is reduced between consecutive iterations
+  coolingFactor: 0.99,
+  // Lower temperature threshold (below this point the layout will end)
+  minTemp: 1.0
+};
+/**
+ * @brief       : constructor
+ * @arg options : object containing layout options
+ */
 
-                        if (remaining.match(/^\s*$/)) {
-                            break;
-                        }
-                    }
+function CoseLayout(options) {
+  this.options = extend({}, defaults$c, options);
+  this.options.layout = this;
+}
+/**
+ * @brief : runs the layout
+ */
 
-                    var lastQ = self[self.length - 1];
 
-                    if (self.currentSubject != null) {
-                        lastQ.subject = self.currentSubject;
-                    }
+CoseLayout.prototype.run = function () {
+  var options = this.options;
+  var cy = options.cy;
+  var layout = this;
+  layout.stopped = false;
 
-                    lastQ.edgeCount = self.edgeCount;
-                    lastQ.compoundCount = self.compoundCount;
+  if (options.animate === true || options.animate === false) {
+    layout.emit({
+      type: 'layoutstart',
+      layout: layout
+    });
+  } // Set DEBUG - Global variable
 
-                    for (var i = 0; i < self.length; i++) {
-                        var q = self[i]; // in future, this could potentially be allowed if there were operator precedence and detection of invalid combinations
 
-                        if (q.compoundCount > 0 && q.edgeCount > 0) {
-                            warn('The selector `' + selector + '` is invalid because it uses both a compound selector and an edge selector');
-                            return false;
-                        }
+  if (true === options.debug) {
+    DEBUG = true;
+  } else {
+    DEBUG = false;
+  } // Initialize layout info
 
-                        if (q.edgeCount > 1) {
-                            warn('The selector `' + selector + '` is invalid because it uses multiple edge selectors');
-                            return false;
-                        } else if (q.edgeCount === 1) {
-                            warn('The selector `' + selector + '` is deprecated.  Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons.  Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.');
-                        }
-                    }
 
-                    return true; // success
-                };
-                /**
-                 * Get the selector represented as a string.  This value uses default formatting,
-                 * so things like spacing may differ from the input text passed to the constructor.
-                 * @returns {string} The selector string
-                 */
+  var layoutInfo = createLayoutInfo(cy, layout, options); // Show LayoutInfo contents if debugging
 
+  if (DEBUG) {
+    printLayoutInfo(layoutInfo);
+  } // If required, randomize node positions
 
-                var toString = function toString() {
-                    if (this.toStringCache != null) {
-                        return this.toStringCache;
-                    }
 
-                    var clean = function clean(obj) {
-                        if (obj == null) {
-                            return '';
-                        } else {
-                            return obj;
-                        }
-                    };
+  if (options.randomize) {
+    randomizePositions(layoutInfo);
+  }
 
-                    var cleanVal = function cleanVal(val) {
-                        if (string(val)) {
-                            return '"' + val + '"';
-                        } else {
-                            return clean(val);
-                        }
-                    };
+  var startTime = performanceNow();
 
-                    var space = function space(val) {
-                        return ' ' + val + ' ';
-                    };
+  var refresh = function refresh() {
+    refreshPositions(layoutInfo, cy, options); // Fit the graph if necessary
 
-                    var checkToString = function checkToString(check, subject) {
-                        var type = check.type,
-                            value = check.value;
+    if (true === options.fit) {
+      cy.fit(options.padding);
+    }
+  };
 
-                        switch (type) {
-                            case Type.GROUP:
-                            {
-                                var group = clean(value);
-                                return group.substring(0, group.length - 1);
-                            }
+  var mainLoop = function mainLoop(i) {
+    if (layout.stopped || i >= options.numIter) {
+      // logDebug("Layout manually stopped. Stopping computation in step " + i);
+      return false;
+    } // Do one step in the phisical simulation
 
-                            case Type.DATA_COMPARE:
-                            {
-                                var field = check.field,
-                                    operator = check.operator;
-                                return '[' + field + space(clean(operator)) + cleanVal(value) + ']';
-                            }
 
-                            case Type.DATA_BOOL:
-                            {
-                                var _operator = check.operator,
-                                    _field = check.field;
-                                return '[' + clean(_operator) + _field + ']';
-                            }
+    step$1(layoutInfo, options); // Update temperature
 
-                            case Type.DATA_EXIST:
-                            {
-                                var _field2 = check.field;
-                                return '[' + _field2 + ']';
-                            }
+    layoutInfo.temperature = layoutInfo.temperature * options.coolingFactor; // logDebug("New temperature: " + layoutInfo.temperature);
 
-                            case Type.META_COMPARE:
-                            {
-                                var _operator2 = check.operator,
-                                    _field3 = check.field;
-                                return '[[' + _field3 + space(clean(_operator2)) + cleanVal(value) + ']]';
-                            }
+    if (layoutInfo.temperature < options.minTemp) {
+      // logDebug("Temperature drop below minimum threshold. Stopping computation in step " + i);
+      return false;
+    }
 
-                            case Type.STATE:
-                            {
-                                return value;
-                            }
+    return true;
+  };
 
-                            case Type.ID:
-                            {
-                                return '#' + value;
-                            }
+  var done = function done() {
+    if (options.animate === true || options.animate === false) {
+      refresh(); // Layout has finished
 
-                            case Type.CLASS:
-                            {
-                                return '.' + value;
-                            }
+      layout.one('layoutstop', options.stop);
+      layout.emit({
+        type: 'layoutstop',
+        layout: layout
+      });
+    } else {
+      var nodes = options.eles.nodes();
+      var getScaledPos = getScaleInBoundsFn(layoutInfo, options, nodes);
+      nodes.layoutPositions(layout, options, getScaledPos);
+    }
+  };
+
+  var i = 0;
+  var loopRet = true;
+
+  if (options.animate === true) {
+    var frame = function frame() {
+      var f = 0;
+
+      while (loopRet && f < options.refresh) {
+        loopRet = mainLoop(i);
+        i++;
+        f++;
+      }
+
+      if (!loopRet) {
+        // it's done
+        separateComponents(layoutInfo, options);
+        done();
+      } else {
+        var now = performanceNow();
+
+        if (now - startTime >= options.animationThreshold) {
+          refresh();
+        }
 
-                            case Type.PARENT:
-                            case Type.CHILD:
-                            {
-                                return queryToString(check.parent, subject) + space('>') + queryToString(check.child, subject);
-                            }
+        requestAnimationFrame(frame);
+      }
+    };
 
-                            case Type.ANCESTOR:
-                            case Type.DESCENDANT:
-                            {
-                                return queryToString(check.ancestor, subject) + ' ' + queryToString(check.descendant, subject);
-                            }
+    frame();
+  } else {
+    while (loopRet) {
+      loopRet = mainLoop(i);
+      i++;
+    }
 
-                            case Type.COMPOUND_SPLIT:
-                            {
-                                var lhs = queryToString(check.left, subject);
-                                var sub = queryToString(check.subject, subject);
-                                var rhs = queryToString(check.right, subject);
-                                return lhs + (lhs.length > 0 ? ' ' : '') + sub + rhs;
-                            }
+    separateComponents(layoutInfo, options);
+    done();
+  }
 
-                            case Type.TRUE:
-                            {
-                                return '';
-                            }
-                        }
-                    };
+  return this; // chaining
+};
+/**
+ * @brief : called on continuous layouts to stop them before they finish
+ */
 
-                    var queryToString = function queryToString(query, subject) {
-                        return query.checks.reduce(function (str, chk, i) {
-                            return str + (subject === query && i === 0 ? '$' : '') + checkToString(chk, subject);
-                        }, '');
-                    };
 
-                    var str = '';
+CoseLayout.prototype.stop = function () {
+  this.stopped = true;
 
-                    for (var i = 0; i < this.length; i++) {
-                        var query = this[i];
-                        str += queryToString(query, query.subject);
+  if (this.thread) {
+    this.thread.stop();
+  }
 
-                        if (this.length > 1 && i < this.length - 1) {
-                            str += ', ';
-                        }
-                    }
+  this.emit('layoutstop');
+  return this; // chaining
+};
 
-                    this.toStringCache = str;
-                    return str;
-                };
-                var parse$1 = {
-                    parse: parse,
-                    toString: toString
-                };
+CoseLayout.prototype.destroy = function () {
+  if (this.thread) {
+    this.thread.stop();
+  }
 
-                var valCmp = function valCmp(fieldVal, operator, value) {
-                    var matches;
-                    var isFieldStr = string(fieldVal);
-                    var isFieldNum = number(fieldVal);
-                    var isValStr = string(value);
-                    var fieldStr, valStr;
-                    var caseInsensitive = false;
-                    var notExpr = false;
-                    var isIneqCmp = false;
-
-                    if (operator.indexOf('!') >= 0) {
-                        operator = operator.replace('!', '');
-                        notExpr = true;
-                    }
+  return this; // chaining
+};
+/**
+ * @brief     : Creates an object which is contains all the data
+ *              used in the layout process
+ * @arg cy    : cytoscape.js object
+ * @return    : layoutInfo object initialized
+ */
 
-                    if (operator.indexOf('@') >= 0) {
-                        operator = operator.replace('@', '');
-                        caseInsensitive = true;
-                    }
 
-                    if (isFieldStr || isValStr || caseInsensitive) {
-                        fieldStr = !isFieldStr && !isFieldNum ? '' : '' + fieldVal;
-                        valStr = '' + value;
-                    } // if we're doing a case insensitive comparison, then we're using a STRING comparison
-                    // even if we're comparing numbers
+var createLayoutInfo = function createLayoutInfo(cy, layout, options) {
+  // Shortcut
+  var edges = options.eles.edges();
+  var nodes = options.eles.nodes();
+  var layoutInfo = {
+    isCompound: cy.hasCompoundNodes(),
+    layoutNodes: [],
+    idToIndex: {},
+    nodeSize: nodes.size(),
+    graphSet: [],
+    indexToGraph: [],
+    layoutEdges: [],
+    edgeSize: edges.size(),
+    temperature: options.initialTemp,
+    clientWidth: cy.width(),
+    clientHeight: cy.width(),
+    boundingBox: makeBoundingBox(options.boundingBox ? options.boundingBox : {
+      x1: 0,
+      y1: 0,
+      w: cy.width(),
+      h: cy.height()
+    })
+  };
+  var components = options.eles.components();
+  var id2cmptId = {};
+
+  for (var i = 0; i < components.length; i++) {
+    var component = components[i];
+
+    for (var j = 0; j < component.length; j++) {
+      var node = component[j];
+      id2cmptId[node.id()] = i;
+    }
+  } // Iterate over all nodes, creating layout nodes
+
+
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = nodes[i];
+    var nbb = n.layoutDimensions(options);
+    var tempNode = {};
+    tempNode.isLocked = n.locked();
+    tempNode.id = n.data('id');
+    tempNode.parentId = n.data('parent');
+    tempNode.cmptId = id2cmptId[n.id()];
+    tempNode.children = [];
+    tempNode.positionX = n.position('x');
+    tempNode.positionY = n.position('y');
+    tempNode.offsetX = 0;
+    tempNode.offsetY = 0;
+    tempNode.height = nbb.w;
+    tempNode.width = nbb.h;
+    tempNode.maxX = tempNode.positionX + tempNode.width / 2;
+    tempNode.minX = tempNode.positionX - tempNode.width / 2;
+    tempNode.maxY = tempNode.positionY + tempNode.height / 2;
+    tempNode.minY = tempNode.positionY - tempNode.height / 2;
+    tempNode.padLeft = parseFloat(n.style('padding'));
+    tempNode.padRight = parseFloat(n.style('padding'));
+    tempNode.padTop = parseFloat(n.style('padding'));
+    tempNode.padBottom = parseFloat(n.style('padding')); // forces
+
+    tempNode.nodeRepulsion = fn(options.nodeRepulsion) ? options.nodeRepulsion(n) : options.nodeRepulsion; // Add new node
+
+    layoutInfo.layoutNodes.push(tempNode); // Add entry to id-index map
+
+    layoutInfo.idToIndex[tempNode.id] = i;
+  } // Inline implementation of a queue, used for traversing the graph in BFS order
+
+
+  var queue = [];
+  var start = 0; // Points to the start the queue
+
+  var end = -1; // Points to the end of the queue
+
+  var tempGraph = []; // Second pass to add child information and
+  // initialize queue for hierarchical traversal
+
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = layoutInfo.layoutNodes[i];
+    var p_id = n.parentId; // Check if node n has a parent node
+
+    if (null != p_id) {
+      // Add node Id to parent's list of children
+      layoutInfo.layoutNodes[layoutInfo.idToIndex[p_id]].children.push(n.id);
+    } else {
+      // If a node doesn't have a parent, then it's in the root graph
+      queue[++end] = n.id;
+      tempGraph.push(n.id);
+    }
+  } // Add root graph to graphSet
 
 
-                    if (caseInsensitive) {
-                        fieldVal = fieldStr = fieldStr.toLowerCase();
-                        value = valStr = valStr.toLowerCase();
-                    }
+  layoutInfo.graphSet.push(tempGraph); // Traverse the graph, level by level,
 
-                    switch (operator) {
-                        case '*=':
-                            matches = fieldStr.indexOf(valStr) >= 0;
-                            break;
+  while (start <= end) {
+    // Get the node to visit and remove it from queue
+    var node_id = queue[start++];
+    var node_ix = layoutInfo.idToIndex[node_id];
+    var node = layoutInfo.layoutNodes[node_ix];
+    var children = node.children;
 
-                        case '$=':
-                            matches = fieldStr.indexOf(valStr, fieldStr.length - valStr.length) >= 0;
-                            break;
+    if (children.length > 0) {
+      // Add children nodes as a new graph to graph set
+      layoutInfo.graphSet.push(children); // Add children to que queue to be visited
 
-                        case '^=':
-                            matches = fieldStr.indexOf(valStr) === 0;
-                            break;
+      for (var i = 0; i < children.length; i++) {
+        queue[++end] = children[i];
+      }
+    }
+  } // Create indexToGraph map
 
-                        case '=':
-                            matches = fieldVal === value;
-                            break;
 
-                        case '>':
-                            isIneqCmp = true;
-                            matches = fieldVal > value;
-                            break;
+  for (var i = 0; i < layoutInfo.graphSet.length; i++) {
+    var graph = layoutInfo.graphSet[i];
 
-                        case '>=':
-                            isIneqCmp = true;
-                            matches = fieldVal >= value;
-                            break;
+    for (var j = 0; j < graph.length; j++) {
+      var index = layoutInfo.idToIndex[graph[j]];
+      layoutInfo.indexToGraph[index] = i;
+    }
+  } // Iterate over all edges, creating Layout Edges
 
-                        case '<':
-                            isIneqCmp = true;
-                            matches = fieldVal < value;
-                            break;
 
-                        case '<=':
-                            isIneqCmp = true;
-                            matches = fieldVal <= value;
-                            break;
+  for (var i = 0; i < layoutInfo.edgeSize; i++) {
+    var e = edges[i];
+    var tempEdge = {};
+    tempEdge.id = e.data('id');
+    tempEdge.sourceId = e.data('source');
+    tempEdge.targetId = e.data('target'); // Compute ideal length
 
-                        default:
-                            matches = false;
-                            break;
-                    } // apply the not op, but null vals for inequalities should always stay non-matching
+    var idealLength = fn(options.idealEdgeLength) ? options.idealEdgeLength(e) : options.idealEdgeLength;
+    var elasticity = fn(options.edgeElasticity) ? options.edgeElasticity(e) : options.edgeElasticity; // Check if it's an inter graph edge
 
+    var sourceIx = layoutInfo.idToIndex[tempEdge.sourceId];
+    var targetIx = layoutInfo.idToIndex[tempEdge.targetId];
+    var sourceGraph = layoutInfo.indexToGraph[sourceIx];
+    var targetGraph = layoutInfo.indexToGraph[targetIx];
 
-                    if (notExpr && (fieldVal != null || !isIneqCmp)) {
-                        matches = !matches;
-                    }
+    if (sourceGraph != targetGraph) {
+      // Find lowest common graph ancestor
+      var lca = findLCA(tempEdge.sourceId, tempEdge.targetId, layoutInfo); // Compute sum of node depths, relative to lca graph
 
-                    return matches;
-                };
-                var boolCmp = function boolCmp(fieldVal, operator) {
-                    switch (operator) {
-                        case '?':
-                            return fieldVal ? true : false;
+      var lcaGraph = layoutInfo.graphSet[lca];
+      var depth = 0; // Source depth
 
-                        case '!':
-                            return fieldVal ? false : true;
+      var tempNode = layoutInfo.layoutNodes[sourceIx];
 
-                        case '^':
-                            return fieldVal === undefined;
-                    }
-                };
-                var existCmp = function existCmp(fieldVal) {
-                    return fieldVal !== undefined;
-                };
-                var data = function data(ele, field) {
-                    return ele.data(field);
-                };
-                var meta = function meta(ele, field) {
-                    return ele[field]();
-                };
+      while (-1 === lcaGraph.indexOf(tempNode.id)) {
+        tempNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[tempNode.parentId]];
+        depth++;
+      } // Target depth
 
-                /** A lookup of `match(check, ele)` functions by `Type` int */
 
-                var match = [];
-                /**
-                 * Returns whether the query matches for the element
-                 * @param query The `{ type, value, ... }` query object
-                 * @param ele The element to compare against
-                 */
+      tempNode = layoutInfo.layoutNodes[targetIx];
 
-                var matches = function matches(query, ele) {
-                    return query.checks.every(function (chk) {
-                        return match[chk.type](chk, ele);
-                    });
-                };
+      while (-1 === lcaGraph.indexOf(tempNode.id)) {
+        tempNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[tempNode.parentId]];
+        depth++;
+      } // logDebug('LCA of nodes ' + tempEdge.sourceId + ' and ' + tempEdge.targetId +
+      //  ". Index: " + lca + " Contents: " + lcaGraph.toString() +
+      //  ". Depth: " + depth);
+      // Update idealLength
 
-                match[Type.GROUP] = function (check, ele) {
-                    var group = check.value;
-                    return group === '*' || group === ele.group();
-                };
 
-                match[Type.STATE] = function (check, ele) {
-                    var stateSelector = check.value;
-                    return stateSelectorMatches(stateSelector, ele);
-                };
+      idealLength *= depth * options.nestingFactor;
+    }
 
-                match[Type.ID] = function (check, ele) {
-                    var id = check.value;
-                    return ele.id() === id;
-                };
+    tempEdge.idealLength = idealLength;
+    tempEdge.elasticity = elasticity;
+    layoutInfo.layoutEdges.push(tempEdge);
+  } // Finally, return layoutInfo object
 
-                match[Type.CLASS] = function (check, ele) {
-                    var cls = check.value;
-                    return ele.hasClass(cls);
-                };
 
-                match[Type.META_COMPARE] = function (check, ele) {
-                    var field = check.field,
-                        operator = check.operator,
-                        value = check.value;
-                    return valCmp(meta(ele, field), operator, value);
-                };
+  return layoutInfo;
+};
+/**
+ * @brief : This function finds the index of the lowest common
+ *          graph ancestor between 2 nodes in the subtree
+ *          (from the graph hierarchy induced tree) whose
+ *          root is graphIx
+ *
+ * @arg node1: node1's ID
+ * @arg node2: node2's ID
+ * @arg layoutInfo: layoutInfo object
+ *
+ */
 
-                match[Type.DATA_COMPARE] = function (check, ele) {
-                    var field = check.field,
-                        operator = check.operator,
-                        value = check.value;
-                    return valCmp(data(ele, field), operator, value);
-                };
 
-                match[Type.DATA_BOOL] = function (check, ele) {
-                    var field = check.field,
-                        operator = check.operator;
-                    return boolCmp(data(ele, field), operator);
-                };
+var findLCA = function findLCA(node1, node2, layoutInfo) {
+  // Find their common ancester, starting from the root graph
+  var res = findLCA_aux(node1, node2, 0, layoutInfo);
 
-                match[Type.DATA_EXIST] = function (check, ele) {
-                    var field = check.field,
-                        operator = check.operator;
-                    return existCmp(data(ele, field));
-                };
+  if (2 > res.count) {
+    // If aux function couldn't find the common ancester,
+    // then it is the root graph
+    return 0;
+  } else {
+    return res.graph;
+  }
+};
+/**
+ * @brief          : Auxiliary function used for LCA computation
+ *
+ * @arg node1      : node1's ID
+ * @arg node2      : node2's ID
+ * @arg graphIx    : subgraph index
+ * @arg layoutInfo : layoutInfo object
+ *
+ * @return         : object of the form {count: X, graph: Y}, where:
+ *                   X is the number of ancesters (max: 2) found in
+ *                   graphIx (and it's subgraphs),
+ *                   Y is the graph index of the lowest graph containing
+ *                   all X nodes
+ */
 
-                match[Type.UNDIRECTED_EDGE] = function (check, ele) {
-                    var qA = check.nodes[0];
-                    var qB = check.nodes[1];
-                    var src = ele.source();
-                    var tgt = ele.target();
-                    return matches(qA, src) && matches(qB, tgt) || matches(qB, src) && matches(qA, tgt);
-                };
 
-                match[Type.NODE_NEIGHBOR] = function (check, ele) {
-                    return matches(check.node, ele) && ele.neighborhood().some(function (n) {
-                        return n.isNode() && matches(check.neighbor, n);
-                    });
-                };
+var findLCA_aux = function findLCA_aux(node1, node2, graphIx, layoutInfo) {
+  var graph = layoutInfo.graphSet[graphIx]; // If both nodes belongs to graphIx
 
-                match[Type.DIRECTED_EDGE] = function (check, ele) {
-                    return matches(check.source, ele.source()) && matches(check.target, ele.target());
-                };
+  if (-1 < graph.indexOf(node1) && -1 < graph.indexOf(node2)) {
+    return {
+      count: 2,
+      graph: graphIx
+    };
+  } // Make recursive calls for all subgraphs
 
-                match[Type.NODE_SOURCE] = function (check, ele) {
-                    return matches(check.source, ele) && ele.outgoers().some(function (n) {
-                        return n.isNode() && matches(check.target, n);
-                    });
-                };
 
-                match[Type.NODE_TARGET] = function (check, ele) {
-                    return matches(check.target, ele) && ele.incomers().some(function (n) {
-                        return n.isNode() && matches(check.source, n);
-                    });
-                };
+  var c = 0;
 
-                match[Type.CHILD] = function (check, ele) {
-                    return matches(check.child, ele) && matches(check.parent, ele.parent());
-                };
+  for (var i = 0; i < graph.length; i++) {
+    var nodeId = graph[i];
+    var nodeIx = layoutInfo.idToIndex[nodeId];
+    var children = layoutInfo.layoutNodes[nodeIx].children; // If the node has no child, skip it
 
-                match[Type.PARENT] = function (check, ele) {
-                    return matches(check.parent, ele) && ele.children().some(function (c) {
-                        return matches(check.child, c);
-                    });
-                };
+    if (0 === children.length) {
+      continue;
+    }
 
-                match[Type.DESCENDANT] = function (check, ele) {
-                    return matches(check.descendant, ele) && ele.ancestors().some(function (a) {
-                        return matches(check.ancestor, a);
-                    });
-                };
+    var childGraphIx = layoutInfo.indexToGraph[layoutInfo.idToIndex[children[0]]];
+    var result = findLCA_aux(node1, node2, childGraphIx, layoutInfo);
+
+    if (0 === result.count) {
+      // Neither node1 nor node2 are present in this subgraph
+      continue;
+    } else if (1 === result.count) {
+      // One of (node1, node2) is present in this subgraph
+      c++;
+
+      if (2 === c) {
+        // We've already found both nodes, no need to keep searching
+        break;
+      }
+    } else {
+      // Both nodes are present in this subgraph
+      return result;
+    }
+  }
 
-                match[Type.ANCESTOR] = function (check, ele) {
-                    return matches(check.ancestor, ele) && ele.descendants().some(function (d) {
-                        return matches(check.descendant, d);
-                    });
-                };
+  return {
+    count: c,
+    graph: graphIx
+  };
+};
+/**
+ * @brief: printsLayoutInfo into js console
+ *         Only used for debbuging
+ */
 
-                match[Type.COMPOUND_SPLIT] = function (check, ele) {
-                    return matches(check.subject, ele) && matches(check.left, ele) && matches(check.right, ele);
-                };
 
-                match[Type.TRUE] = function () {
-                    return true;
-                };
+if (false) { var printLayoutInfo; }
+/**
+ * @brief : Randomizes the position of all nodes
+ */
 
-                match[Type.COLLECTION] = function (check, ele) {
-                    var collection = check.value;
-                    return collection.has(ele);
-                };
 
-                match[Type.FILTER] = function (check, ele) {
-                    var filter = check.value;
-                    return filter(ele);
-                };
+var randomizePositions = function randomizePositions(layoutInfo, cy) {
+  var width = layoutInfo.clientWidth;
+  var height = layoutInfo.clientHeight;
 
-                var filter = function filter(collection) {
-                    var self = this; // for 1 id #foo queries, just get the element
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = layoutInfo.layoutNodes[i]; // No need to randomize compound nodes or locked nodes
 
-                    if (self.length === 1 && self[0].checks.length === 1 && self[0].checks[0].type === Type.ID) {
-                        return collection.getElementById(self[0].checks[0].value).collection();
-                    }
+    if (0 === n.children.length && !n.isLocked) {
+      n.positionX = Math.random() * width;
+      n.positionY = Math.random() * height;
+    }
+  }
+};
+
+var getScaleInBoundsFn = function getScaleInBoundsFn(layoutInfo, options, nodes) {
+  var bb = layoutInfo.boundingBox;
+  var coseBB = {
+    x1: Infinity,
+    x2: -Infinity,
+    y1: Infinity,
+    y2: -Infinity
+  };
+
+  if (options.boundingBox) {
+    nodes.forEach(function (node) {
+      var lnode = layoutInfo.layoutNodes[layoutInfo.idToIndex[node.data('id')]];
+      coseBB.x1 = Math.min(coseBB.x1, lnode.positionX);
+      coseBB.x2 = Math.max(coseBB.x2, lnode.positionX);
+      coseBB.y1 = Math.min(coseBB.y1, lnode.positionY);
+      coseBB.y2 = Math.max(coseBB.y2, lnode.positionY);
+    });
+    coseBB.w = coseBB.x2 - coseBB.x1;
+    coseBB.h = coseBB.y2 - coseBB.y1;
+  }
 
-                    var selectorFunction = function selectorFunction(element) {
-                        for (var j = 0; j < self.length; j++) {
-                            var query = self[j];
+  return function (ele, i) {
+    var lnode = layoutInfo.layoutNodes[layoutInfo.idToIndex[ele.data('id')]];
+
+    if (options.boundingBox) {
+      // then add extra bounding box constraint
+      var pctX = (lnode.positionX - coseBB.x1) / coseBB.w;
+      var pctY = (lnode.positionY - coseBB.y1) / coseBB.h;
+      return {
+        x: bb.x1 + pctX * bb.w,
+        y: bb.y1 + pctY * bb.h
+      };
+    } else {
+      return {
+        x: lnode.positionX,
+        y: lnode.positionY
+      };
+    }
+  };
+};
+/**
+ * @brief          : Updates the positions of nodes in the network
+ * @arg layoutInfo : LayoutInfo object
+ * @arg cy         : Cytoscape object
+ * @arg options    : Layout options
+ */
 
-                            if (matches(query, element)) {
-                                return true;
-                            }
-                        }
 
-                        return false;
-                    };
+var refreshPositions = function refreshPositions(layoutInfo, cy, options) {
+  // var s = 'Refreshing positions';
+  // logDebug(s);
+  var layout = options.layout;
+  var nodes = options.eles.nodes();
+  var getScaledPos = getScaleInBoundsFn(layoutInfo, options, nodes);
+  nodes.positions(getScaledPos); // Trigger layoutReady only on first call
+
+  if (true !== layoutInfo.ready) {
+    // s = 'Triggering layoutready';
+    // logDebug(s);
+    layoutInfo.ready = true;
+    layout.one('layoutready', options.ready);
+    layout.emit({
+      type: 'layoutready',
+      layout: this
+    });
+  }
+};
+/**
+ * @brief : Logs a debug message in JS console, if DEBUG is ON
+ */
+// var logDebug = function(text) {
+//   if (DEBUG) {
+//     console.debug(text);
+//   }
+// };
 
-                    if (self.text() == null) {
-                        selectorFunction = function selectorFunction() {
-                            return true;
-                        };
-                    }
+/**
+ * @brief          : Performs one iteration of the physical simulation
+ * @arg layoutInfo : LayoutInfo object already initialized
+ * @arg cy         : Cytoscape object
+ * @arg options    : Layout options
+ */
 
-                    return collection.filter(selectorFunction);
-                }; // filter
-// does selector match a single element?
 
+var step$1 = function step(layoutInfo, options, _step) {
+  // var s = "\n\n###############################";
+  // s += "\nSTEP: " + step;
+  // s += "\n###############################\n";
+  // logDebug(s);
+  // Calculate node repulsions
+  calculateNodeForces(layoutInfo, options); // Calculate edge forces
 
-                var matches$1 = function matches$1(ele) {
-                    var self = this;
+  calculateEdgeForces(layoutInfo); // Calculate gravity forces
 
-                    for (var j = 0; j < self.length; j++) {
-                        var query = self[j];
+  calculateGravityForces(layoutInfo, options); // Propagate forces from parent to child
 
-                        if (matches(query, ele)) {
-                            return true;
-                        }
-                    }
+  propagateForces(layoutInfo); // Update positions based on calculated forces
 
-                    return false;
-                }; // matches
+  updatePositions(layoutInfo);
+};
+/**
+ * @brief : Computes the node repulsion forces
+ */
 
 
-                var matching = {
-                    matches: matches$1,
-                    filter: filter
-                };
+var calculateNodeForces = function calculateNodeForces(layoutInfo, options) {
+  // Go through each of the graphs in graphSet
+  // Nodes only repel each other if they belong to the same graph
+  // var s = 'calculateNodeForces';
+  // logDebug(s);
+  for (var i = 0; i < layoutInfo.graphSet.length; i++) {
+    var graph = layoutInfo.graphSet[i];
+    var numNodes = graph.length; // s = "Set: " + graph.toString();
+    // logDebug(s);
+    // Now get all the pairs of nodes
+    // Only get each pair once, (A, B) = (B, A)
+
+    for (var j = 0; j < numNodes; j++) {
+      var node1 = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[j]]];
+
+      for (var k = j + 1; k < numNodes; k++) {
+        var node2 = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[k]]];
+        nodeRepulsion(node1, node2, layoutInfo, options);
+      }
+    }
+  }
+};
 
-                var Selector = function Selector(selector) {
-                    this.inputText = selector;
-                    this.currentSubject = null;
-                    this.compoundCount = 0;
-                    this.edgeCount = 0;
-                    this.length = 0;
-
-                    if (selector == null || string(selector) && selector.match(/^\s*$/)) ; else if (elementOrCollection(selector)) {
-                        this.addQuery({
-                            checks: [{
-                                type: Type.COLLECTION,
-                                value: selector.collection()
-                            }]
-                        });
-                    } else if (fn(selector)) {
-                        this.addQuery({
-                            checks: [{
-                                type: Type.FILTER,
-                                value: selector
-                            }]
-                        });
-                    } else if (string(selector)) {
-                        if (!this.parse(selector)) {
-                            this.invalid = true;
-                        }
-                    } else {
-                        error('A selector must be created from a string; found ');
-                    }
-                };
+var randomDistance = function randomDistance(max) {
+  return -max + 2 * max * Math.random();
+};
+/**
+ * @brief : Compute the node repulsion forces between a pair of nodes
+ */
 
-                var selfn = Selector.prototype;
-                [parse$1, matching].forEach(function (p) {
-                    return extend(selfn, p);
-                });
 
-                selfn.text = function () {
-                    return this.inputText;
-                };
+var nodeRepulsion = function nodeRepulsion(node1, node2, layoutInfo, options) {
+  // var s = "Node repulsion. Node1: " + node1.id + " Node2: " + node2.id;
+  var cmptId1 = node1.cmptId;
+  var cmptId2 = node2.cmptId;
 
-                selfn.size = function () {
-                    return this.length;
-                };
+  if (cmptId1 !== cmptId2 && !layoutInfo.isCompound) {
+    return;
+  } // Get direction of line connecting both node centers
 
-                selfn.eq = function (i) {
-                    return this[i];
-                };
 
-                selfn.sameText = function (otherSel) {
-                    return !this.invalid && !otherSel.invalid && this.text() === otherSel.text();
-                };
+  var directionX = node2.positionX - node1.positionX;
+  var directionY = node2.positionY - node1.positionY;
+  var maxRandDist = 1; // s += "\ndirectionX: " + directionX + ", directionY: " + directionY;
+  // If both centers are the same, apply a random force
 
-                selfn.addQuery = function (q) {
-                    this[this.length++] = q;
-                };
+  if (0 === directionX && 0 === directionY) {
+    directionX = randomDistance(maxRandDist);
+    directionY = randomDistance(maxRandDist);
+  }
 
-                selfn.selector = selfn.toString;
+  var overlap = nodesOverlap(node1, node2, directionX, directionY);
+
+  if (overlap > 0) {
+    // s += "\nNodes DO overlap.";
+    // s += "\nOverlap: " + overlap;
+    // If nodes overlap, repulsion force is proportional
+    // to the overlap
+    var force = options.nodeOverlap * overlap; // Compute the module and components of the force vector
+
+    var distance = Math.sqrt(directionX * directionX + directionY * directionY); // s += "\nDistance: " + distance;
+
+    var forceX = force * directionX / distance;
+    var forceY = force * directionY / distance;
+  } else {
+    // s += "\nNodes do NOT overlap.";
+    // If there's no overlap, force is inversely proportional
+    // to squared distance
+    // Get clipping points for both nodes
+    var point1 = findClippingPoint(node1, directionX, directionY);
+    var point2 = findClippingPoint(node2, -1 * directionX, -1 * directionY); // Use clipping points to compute distance
+
+    var distanceX = point2.x - point1.x;
+    var distanceY = point2.y - point1.y;
+    var distanceSqr = distanceX * distanceX + distanceY * distanceY;
+    var distance = Math.sqrt(distanceSqr); // s += "\nDistance: " + distance;
+    // Compute the module and components of the force vector
+
+    var force = (node1.nodeRepulsion + node2.nodeRepulsion) / distanceSqr;
+    var forceX = force * distanceX / distance;
+    var forceY = force * distanceY / distance;
+  } // Apply force
+
+
+  if (!node1.isLocked) {
+    node1.offsetX -= forceX;
+    node1.offsetY -= forceY;
+  }
 
-                var elesfn$f = {
-                    allAre: function allAre(selector) {
-                        var selObj = new Selector(selector);
-                        return this.every(function (ele) {
-                            return selObj.matches(ele);
-                        });
-                    },
-                    is: function is(selector) {
-                        var selObj = new Selector(selector);
-                        return this.some(function (ele) {
-                            return selObj.matches(ele);
-                        });
-                    },
-                    some: function some(fn, thisArg) {
-                        for (var i = 0; i < this.length; i++) {
-                            var ret = !thisArg ? fn(this[i], i, this) : fn.apply(thisArg, [this[i], i, this]);
+  if (!node2.isLocked) {
+    node2.offsetX += forceX;
+    node2.offsetY += forceY;
+  } // s += "\nForceX: " + forceX + " ForceY: " + forceY;
+  // logDebug(s);
 
-                            if (ret) {
-                                return true;
-                            }
-                        }
 
-                        return false;
-                    },
-                    every: function every(fn, thisArg) {
-                        for (var i = 0; i < this.length; i++) {
-                            var ret = !thisArg ? fn(this[i], i, this) : fn.apply(thisArg, [this[i], i, this]);
+  return;
+};
+/**
+ * @brief  : Determines whether two nodes overlap or not
+ * @return : Amount of overlapping (0 => no overlap)
+ */
 
-                            if (!ret) {
-                                return false;
-                            }
-                        }
 
-                        return true;
-                    },
-                    same: function same(collection) {
-                        // cheap collection ref check
-                        if (this === collection) {
-                            return true;
-                        }
+var nodesOverlap = function nodesOverlap(node1, node2, dX, dY) {
+  if (dX > 0) {
+    var overlapX = node1.maxX - node2.minX;
+  } else {
+    var overlapX = node2.maxX - node1.minX;
+  }
 
-                        collection = this.cy().collection(collection);
-                        var thisLength = this.length;
-                        var collectionLength = collection.length; // cheap length check
+  if (dY > 0) {
+    var overlapY = node1.maxY - node2.minY;
+  } else {
+    var overlapY = node2.maxY - node1.minY;
+  }
 
-                        if (thisLength !== collectionLength) {
-                            return false;
-                        } // cheap element ref check
+  if (overlapX >= 0 && overlapY >= 0) {
+    return Math.sqrt(overlapX * overlapX + overlapY * overlapY);
+  } else {
+    return 0;
+  }
+};
+/**
+ * @brief : Finds the point in which an edge (direction dX, dY) intersects
+ *          the rectangular bounding box of it's source/target node
+ */
 
 
-                        if (thisLength === 1) {
-                            return this[0] === collection[0];
-                        }
+var findClippingPoint = function findClippingPoint(node, dX, dY) {
+  // Shorcuts
+  var X = node.positionX;
+  var Y = node.positionY;
+  var H = node.height || 1;
+  var W = node.width || 1;
+  var dirSlope = dY / dX;
+  var nodeSlope = H / W; // var s = 'Computing clipping point of node ' + node.id +
+  //   " . Height:  " + H + ", Width: " + W +
+  //   "\nDirection " + dX + ", " + dY;
+  //
+  // Compute intersection
 
-                        return this.every(function (ele) {
-                            return collection.hasElementWithId(ele.id());
-                        });
-                    },
-                    anySame: function anySame(collection) {
-                        collection = this.cy().collection(collection);
-                        return this.some(function (ele) {
-                            return collection.hasElementWithId(ele.id());
-                        });
-                    },
-                    allAreNeighbors: function allAreNeighbors(collection) {
-                        collection = this.cy().collection(collection);
-                        var nhood = this.neighborhood();
-                        return collection.every(function (ele) {
-                            return nhood.hasElementWithId(ele.id());
-                        });
-                    },
-                    contains: function contains(collection) {
-                        collection = this.cy().collection(collection);
-                        var self = this;
-                        return collection.every(function (ele) {
-                            return self.hasElementWithId(ele.id());
-                        });
-                    }
-                };
-                elesfn$f.allAreNeighbours = elesfn$f.allAreNeighbors;
-                elesfn$f.has = elesfn$f.contains;
-                elesfn$f.equal = elesfn$f.equals = elesfn$f.same;
-
-                var cache = function cache(fn, name) {
-                    return function traversalCache(arg1, arg2, arg3, arg4) {
-                        var selectorOrEles = arg1;
-                        var eles = this;
-                        var key;
-
-                        if (selectorOrEles == null) {
-                            key = '';
-                        } else if (elementOrCollection(selectorOrEles) && selectorOrEles.length === 1) {
-                            key = selectorOrEles.id();
-                        }
+  var res = {}; // Case: Vertical direction (up)
 
-                        if (eles.length === 1 && key) {
-                            var _p = eles[0]._private;
-                            var tch = _p.traversalCache = _p.traversalCache || {};
-                            var ch = tch[name] = tch[name] || [];
-                            var hash = hashString(key);
-                            var cacheHit = ch[hash];
-
-                            if (cacheHit) {
-                                return cacheHit;
-                            } else {
-                                return ch[hash] = fn.call(eles, arg1, arg2, arg3, arg4);
-                            }
-                        } else {
-                            return fn.call(eles, arg1, arg2, arg3, arg4);
-                        }
-                    };
-                };
+  if (0 === dX && 0 < dY) {
+    res.x = X; // s += "\nUp direction";
 
-                var elesfn$g = {
-                    parent: function parent(selector) {
-                        var parents = []; // optimisation for single ele call
+    res.y = Y + H / 2;
+    return res;
+  } // Case: Vertical direction (down)
 
-                        if (this.length === 1) {
-                            var parent = this[0]._private.parent;
 
-                            if (parent) {
-                                return parent;
-                            }
-                        }
+  if (0 === dX && 0 > dY) {
+    res.x = X;
+    res.y = Y + H / 2; // s += "\nDown direction";
 
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            var _parent = ele._private.parent;
+    return res;
+  } // Case: Intersects the right border
 
-                            if (_parent) {
-                                parents.push(_parent);
-                            }
-                        }
 
-                        return this.spawn(parents, true).filter(selector);
-                    },
-                    parents: function parents(selector) {
-                        var parents = [];
-                        var eles = this.parent();
+  if (0 < dX && -1 * nodeSlope <= dirSlope && dirSlope <= nodeSlope) {
+    res.x = X + W / 2;
+    res.y = Y + W * dY / 2 / dX; // s += "\nRightborder";
 
-                        while (eles.nonempty()) {
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                parents.push(ele);
-                            }
+    return res;
+  } // Case: Intersects the left border
 
-                            eles = eles.parent();
-                        }
 
-                        return this.spawn(parents, true).filter(selector);
-                    },
-                    commonAncestors: function commonAncestors(selector) {
-                        var ancestors;
+  if (0 > dX && -1 * nodeSlope <= dirSlope && dirSlope <= nodeSlope) {
+    res.x = X - W / 2;
+    res.y = Y - W * dY / 2 / dX; // s += "\nLeftborder";
 
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            var parents = ele.parents();
-                            ancestors = ancestors || parents;
-                            ancestors = ancestors.intersect(parents); // current list must be common with current ele parents set
-                        }
+    return res;
+  } // Case: Intersects the top border
 
-                        return ancestors.filter(selector);
-                    },
-                    orphans: function orphans(selector) {
-                        return this.stdFilter(function (ele) {
-                            return ele.isOrphan();
-                        }).filter(selector);
-                    },
-                    nonorphans: function nonorphans(selector) {
-                        return this.stdFilter(function (ele) {
-                            return ele.isChild();
-                        }).filter(selector);
-                    },
-                    children: cache(function (selector) {
-                        var children = [];
-
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            var eleChildren = ele._private.children;
-
-                            for (var j = 0; j < eleChildren.length; j++) {
-                                children.push(eleChildren[j]);
-                            }
-                        }
 
-                        return this.spawn(children, true).filter(selector);
-                    }, 'children'),
-                    siblings: function siblings(selector) {
-                        return this.parent().children().not(this).filter(selector);
-                    },
-                    isParent: function isParent() {
-                        var ele = this[0];
+  if (0 < dY && (dirSlope <= -1 * nodeSlope || dirSlope >= nodeSlope)) {
+    res.x = X + H * dX / 2 / dY;
+    res.y = Y + H / 2; // s += "\nTop border";
 
-                        if (ele) {
-                            return ele.isNode() && ele._private.children.length !== 0;
-                        }
-                    },
-                    isChildless: function isChildless() {
-                        var ele = this[0];
+    return res;
+  } // Case: Intersects the bottom border
 
-                        if (ele) {
-                            return ele.isNode() && ele._private.children.length === 0;
-                        }
-                    },
-                    isChild: function isChild() {
-                        var ele = this[0];
 
-                        if (ele) {
-                            return ele.isNode() && ele._private.parent != null;
-                        }
-                    },
-                    isOrphan: function isOrphan() {
-                        var ele = this[0];
+  if (0 > dY && (dirSlope <= -1 * nodeSlope || dirSlope >= nodeSlope)) {
+    res.x = X - H * dX / 2 / dY;
+    res.y = Y - H / 2; // s += "\nBottom border";
 
-                        if (ele) {
-                            return ele.isNode() && ele._private.parent == null;
-                        }
-                    },
-                    descendants: function descendants(selector) {
-                        var elements = [];
-
-                        function add(eles) {
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                elements.push(ele);
-
-                                if (ele.children().nonempty()) {
-                                    add(ele.children());
-                                }
-                            }
-                        }
+    return res;
+  } // s += "\nClipping point found at " + res.x + ", " + res.y;
+  // logDebug(s);
 
-                        add(this.children());
-                        return this.spawn(elements, true).filter(selector);
-                    }
-                };
 
-                function forEachCompound(eles, fn, includeSelf, recursiveStep) {
-                    var q = [];
-                    var did = new Set$1();
-                    var cy = eles.cy();
-                    var hasCompounds = cy.hasCompoundNodes();
+  return res;
+};
+/**
+ * @brief : Calculates all edge forces
+ */
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
 
-                        if (includeSelf) {
-                            q.push(ele);
-                        } else if (hasCompounds) {
-                            recursiveStep(q, did, ele);
-                        }
-                    }
+var calculateEdgeForces = function calculateEdgeForces(layoutInfo, options) {
+  // Iterate over all edges
+  for (var i = 0; i < layoutInfo.edgeSize; i++) {
+    // Get edge, source & target nodes
+    var edge = layoutInfo.layoutEdges[i];
+    var sourceIx = layoutInfo.idToIndex[edge.sourceId];
+    var source = layoutInfo.layoutNodes[sourceIx];
+    var targetIx = layoutInfo.idToIndex[edge.targetId];
+    var target = layoutInfo.layoutNodes[targetIx]; // Get direction of line connecting both node centers
+
+    var directionX = target.positionX - source.positionX;
+    var directionY = target.positionY - source.positionY; // If both centers are the same, do nothing.
+    // A random force has already been applied as node repulsion
+
+    if (0 === directionX && 0 === directionY) {
+      continue;
+    } // Get clipping points for both nodes
+
+
+    var point1 = findClippingPoint(source, directionX, directionY);
+    var point2 = findClippingPoint(target, -1 * directionX, -1 * directionY);
+    var lx = point2.x - point1.x;
+    var ly = point2.y - point1.y;
+    var l = Math.sqrt(lx * lx + ly * ly);
+    var force = Math.pow(edge.idealLength - l, 2) / edge.elasticity;
+
+    if (0 !== l) {
+      var forceX = force * lx / l;
+      var forceY = force * ly / l;
+    } else {
+      var forceX = 0;
+      var forceY = 0;
+    } // Add this force to target and source nodes
+
+
+    if (!source.isLocked) {
+      source.offsetX += forceX;
+      source.offsetY += forceY;
+    }
 
-                    while (q.length > 0) {
-                        var _ele = q.shift();
+    if (!target.isLocked) {
+      target.offsetX -= forceX;
+      target.offsetY -= forceY;
+    } // var s = 'Edge force between nodes ' + source.id + ' and ' + target.id;
+    // s += "\nDistance: " + l + " Force: (" + forceX + ", " + forceY + ")";
+    // logDebug(s);
 
-                        fn(_ele);
-                        did.add(_ele.id());
+  }
+};
+/**
+ * @brief : Computes gravity forces for all nodes
+ */
 
-                        if (hasCompounds) {
-                            recursiveStep(q, did, _ele);
-                        }
-                    }
 
-                    return eles;
-                }
+var calculateGravityForces = function calculateGravityForces(layoutInfo, options) {
+  var distThreshold = 1; // var s = 'calculateGravityForces';
+  // logDebug(s);
+
+  for (var i = 0; i < layoutInfo.graphSet.length; i++) {
+    var graph = layoutInfo.graphSet[i];
+    var numNodes = graph.length; // s = "Set: " + graph.toString();
+    // logDebug(s);
+    // Compute graph center
+
+    if (0 === i) {
+      var centerX = layoutInfo.clientHeight / 2;
+      var centerY = layoutInfo.clientWidth / 2;
+    } else {
+      // Get Parent node for this graph, and use its position as center
+      var temp = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[0]]];
+      var parent = layoutInfo.layoutNodes[layoutInfo.idToIndex[temp.parentId]];
+      var centerX = parent.positionX;
+      var centerY = parent.positionY;
+    } // s = "Center found at: " + centerX + ", " + centerY;
+    // logDebug(s);
+    // Apply force to all nodes in graph
+
+
+    for (var j = 0; j < numNodes; j++) {
+      var node = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[j]]]; // s = "Node: " + node.id;
+
+      if (node.isLocked) {
+        continue;
+      }
+
+      var dx = centerX - node.positionX;
+      var dy = centerY - node.positionY;
+      var d = Math.sqrt(dx * dx + dy * dy);
+
+      if (d > distThreshold) {
+        var fx = options.gravity * dx / d;
+        var fy = options.gravity * dy / d;
+        node.offsetX += fx;
+        node.offsetY += fy; // s += ": Applied force: " + fx + ", " + fy;
+      } // s += ": skypped since it's too close to center";
+        // logDebug(s);
 
-                function addChildren(q, did, ele) {
-                    if (ele.isParent()) {
-                        var children = ele._private.children;
+    }
+  }
+};
+/**
+ * @brief          : This function propagates the existing offsets from
+ *                   parent nodes to its descendents.
+ * @arg layoutInfo : layoutInfo Object
+ * @arg cy         : cytoscape Object
+ * @arg options    : Layout options
+ */
 
-                        for (var i = 0; i < children.length; i++) {
-                            var child = children[i];
 
-                            if (!did.has(child.id())) {
-                                q.push(child);
-                            }
-                        }
-                    }
-                } // very efficient version of eles.add( eles.descendants() ).forEach()
-// for internal use
+var propagateForces = function propagateForces(layoutInfo, options) {
+  // Inline implementation of a queue, used for traversing the graph in BFS order
+  var queue = [];
+  var start = 0; // Points to the start the queue
 
+  var end = -1; // Points to the end of the queue
+  // logDebug('propagateForces');
+  // Start by visiting the nodes in the root graph
 
-                elesfn$g.forEachDown = function (fn) {
-                    var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                    return forEachCompound(this, fn, includeSelf, addChildren);
-                };
+  queue.push.apply(queue, layoutInfo.graphSet[0]);
+  end += layoutInfo.graphSet[0].length; // Traverse the graph, level by level,
 
-                function addParent(q, did, ele) {
-                    if (ele.isChild()) {
-                        var parent = ele._private.parent;
+  while (start <= end) {
+    // Get the node to visit and remove it from queue
+    var nodeId = queue[start++];
+    var nodeIndex = layoutInfo.idToIndex[nodeId];
+    var node = layoutInfo.layoutNodes[nodeIndex];
+    var children = node.children; // We only need to process the node if it's compound
 
-                        if (!did.has(parent.id())) {
-                            q.push(parent);
-                        }
-                    }
-                }
+    if (0 < children.length && !node.isLocked) {
+      var offX = node.offsetX;
+      var offY = node.offsetY; // var s = "Propagating offset from parent node : " + node.id +
+      //   ". OffsetX: " + offX + ". OffsetY: " + offY;
+      // s += "\n Children: " + children.toString();
+      // logDebug(s);
 
-                elesfn$g.forEachUp = function (fn) {
-                    var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                    return forEachCompound(this, fn, includeSelf, addParent);
-                };
+      for (var i = 0; i < children.length; i++) {
+        var childNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[children[i]]]; // Propagate offset
 
-                function addParentAndChildren(q, did, ele) {
-                    addParent(q, did, ele);
-                    addChildren(q, did, ele);
-                }
+        childNode.offsetX += offX;
+        childNode.offsetY += offY; // Add children to queue to be visited
 
-                elesfn$g.forEachUpAndDown = function (fn) {
-                    var includeSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                    return forEachCompound(this, fn, includeSelf, addParentAndChildren);
-                }; // aliases
-
-
-                elesfn$g.ancestors = elesfn$g.parents;
-
-                var fn$1, elesfn$h;
-                fn$1 = elesfn$h = {
-                    data: define$3.data({
-                        field: 'data',
-                        bindingEvent: 'data',
-                        allowBinding: true,
-                        allowSetting: true,
-                        settingEvent: 'data',
-                        settingTriggersEvent: true,
-                        triggerFnName: 'trigger',
-                        allowGetting: true,
-                        immutableKeys: {
-                            'id': true,
-                            'source': true,
-                            'target': true,
-                            'parent': true
-                        },
-                        updateStyle: true
-                    }),
-                    removeData: define$3.removeData({
-                        field: 'data',
-                        event: 'data',
-                        triggerFnName: 'trigger',
-                        triggerEvent: true,
-                        immutableKeys: {
-                            'id': true,
-                            'source': true,
-                            'target': true,
-                            'parent': true
-                        },
-                        updateStyle: true
-                    }),
-                    scratch: define$3.data({
-                        field: 'scratch',
-                        bindingEvent: 'scratch',
-                        allowBinding: true,
-                        allowSetting: true,
-                        settingEvent: 'scratch',
-                        settingTriggersEvent: true,
-                        triggerFnName: 'trigger',
-                        allowGetting: true,
-                        updateStyle: true
-                    }),
-                    removeScratch: define$3.removeData({
-                        field: 'scratch',
-                        event: 'scratch',
-                        triggerFnName: 'trigger',
-                        triggerEvent: true,
-                        updateStyle: true
-                    }),
-                    rscratch: define$3.data({
-                        field: 'rscratch',
-                        allowBinding: false,
-                        allowSetting: true,
-                        settingTriggersEvent: false,
-                        allowGetting: true
-                    }),
-                    removeRscratch: define$3.removeData({
-                        field: 'rscratch',
-                        triggerEvent: false
-                    }),
-                    id: function id() {
-                        var ele = this[0];
-
-                        if (ele) {
-                            return ele._private.data.id;
-                        }
-                    }
-                }; // aliases
+        queue[++end] = children[i];
+      } // Reset parent offsets
 
-                fn$1.attr = fn$1.data;
-                fn$1.removeAttr = fn$1.removeData;
-                var data$1 = elesfn$h;
 
-                var elesfn$i = {};
+      node.offsetX = 0;
+      node.offsetY = 0;
+    }
+  }
+};
+/**
+ * @brief : Updates the layout model positions, based on
+ *          the accumulated forces
+ */
 
-                function defineDegreeFunction(callback) {
-                    return function (includeLoops) {
-                        var self = this;
 
-                        if (includeLoops === undefined) {
-                            includeLoops = true;
-                        }
+var updatePositions = function updatePositions(layoutInfo, options) {
+  // var s = 'Updating positions';
+  // logDebug(s);
+  // Reset boundaries for compound nodes
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = layoutInfo.layoutNodes[i];
 
-                        if (self.length === 0) {
-                            return;
-                        }
+    if (0 < n.children.length) {
+      // logDebug("Resetting boundaries of compound node: " + n.id);
+      n.maxX = undefined;
+      n.minX = undefined;
+      n.maxY = undefined;
+      n.minY = undefined;
+    }
+  }
 
-                        if (self.isNode() && !self.removed()) {
-                            var degree = 0;
-                            var node = self[0];
-                            var connectedEdges = node._private.edges;
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = layoutInfo.layoutNodes[i];
+
+    if (0 < n.children.length || n.isLocked) {
+      // No need to set compound or locked node position
+      // logDebug("Skipping position update of node: " + n.id);
+      continue;
+    } // s = "Node: " + n.id + " Previous position: (" +
+    // n.positionX + ", " + n.positionY + ").";
+    // Limit displacement in order to improve stability
+
+
+    var tempForce = limitForce(n.offsetX, n.offsetY, layoutInfo.temperature);
+    n.positionX += tempForce.x;
+    n.positionY += tempForce.y;
+    n.offsetX = 0;
+    n.offsetY = 0;
+    n.minX = n.positionX - n.width;
+    n.maxX = n.positionX + n.width;
+    n.minY = n.positionY - n.height;
+    n.maxY = n.positionY + n.height; // s += " New Position: (" + n.positionX + ", " + n.positionY + ").";
+    // logDebug(s);
+    // Update ancestry boudaries
+
+    updateAncestryBoundaries(n, layoutInfo);
+  } // Update size, position of compund nodes
+
+
+  for (var i = 0; i < layoutInfo.nodeSize; i++) {
+    var n = layoutInfo.layoutNodes[i];
+
+    if (0 < n.children.length && !n.isLocked) {
+      n.positionX = (n.maxX + n.minX) / 2;
+      n.positionY = (n.maxY + n.minY) / 2;
+      n.width = n.maxX - n.minX;
+      n.height = n.maxY - n.minY; // s = "Updating position, size of compound node " + n.id;
+      // s += "\nPositionX: " + n.positionX + ", PositionY: " + n.positionY;
+      // s += "\nWidth: " + n.width + ", Height: " + n.height;
+      // logDebug(s);
+    }
+  }
+};
+/**
+ * @brief : Limits a force (forceX, forceY) to be not
+ *          greater (in modulo) than max.
+ 8          Preserves force direction.
+  */
 
-                            for (var i = 0; i < connectedEdges.length; i++) {
-                                var edge = connectedEdges[i];
 
-                                if (!includeLoops && edge.isLoop()) {
-                                    continue;
-                                }
+var limitForce = function limitForce(forceX, forceY, max) {
+  // var s = "Limiting force: (" + forceX + ", " + forceY + "). Max: " + max;
+  var force = Math.sqrt(forceX * forceX + forceY * forceY);
+
+  if (force > max) {
+    var res = {
+      x: max * forceX / force,
+      y: max * forceY / force
+    };
+  } else {
+    var res = {
+      x: forceX,
+      y: forceY
+    };
+  } // s += ".\nResult: (" + res.x + ", " + res.y + ")";
+  // logDebug(s);
+
+
+  return res;
+};
+/**
+ * @brief : Function used for keeping track of compound node
+ *          sizes, since they should bound all their subnodes.
+ */
 
-                                degree += callback(node, edge);
-                            }
 
-                            return degree;
-                        } else {
-                            return;
-                        }
-                    };
-                }
+var updateAncestryBoundaries = function updateAncestryBoundaries(node, layoutInfo) {
+  // var s = "Propagating new position/size of node " + node.id;
+  var parentId = node.parentId;
 
-                extend(elesfn$i, {
-                    degree: defineDegreeFunction(function (node, edge) {
-                        if (edge.source().same(edge.target())) {
-                            return 2;
-                        } else {
-                            return 1;
-                        }
-                    }),
-                    indegree: defineDegreeFunction(function (node, edge) {
-                        if (edge.target().same(node)) {
-                            return 1;
-                        } else {
-                            return 0;
-                        }
-                    }),
-                    outdegree: defineDegreeFunction(function (node, edge) {
-                        if (edge.source().same(node)) {
-                            return 1;
-                        } else {
-                            return 0;
-                        }
-                    })
-                });
+  if (null == parentId) {
+    // If there's no parent, we are done
+    // s += ". No parent node.";
+    // logDebug(s);
+    return;
+  } // Get Parent Node
 
-                function defineDegreeBoundsFunction(degreeFn, callback) {
-                    return function (includeLoops) {
-                        var ret;
-                        var nodes = this.nodes();
 
-                        for (var i = 0; i < nodes.length; i++) {
-                            var ele = nodes[i];
-                            var degree = ele[degreeFn](includeLoops);
+  var p = layoutInfo.layoutNodes[layoutInfo.idToIndex[parentId]];
+  var flag = false; // MaxX
 
-                            if (degree !== undefined && (ret === undefined || callback(degree, ret))) {
-                                ret = degree;
-                            }
-                        }
+  if (null == p.maxX || node.maxX + p.padRight > p.maxX) {
+    p.maxX = node.maxX + p.padRight;
+    flag = true; // s += "\nNew maxX for parent node " + p.id + ": " + p.maxX;
+  } // MinX
 
-                        return ret;
-                    };
-                }
 
-                extend(elesfn$i, {
-                    minDegree: defineDegreeBoundsFunction('degree', function (degree, min) {
-                        return degree < min;
-                    }),
-                    maxDegree: defineDegreeBoundsFunction('degree', function (degree, max) {
-                        return degree > max;
-                    }),
-                    minIndegree: defineDegreeBoundsFunction('indegree', function (degree, min) {
-                        return degree < min;
-                    }),
-                    maxIndegree: defineDegreeBoundsFunction('indegree', function (degree, max) {
-                        return degree > max;
-                    }),
-                    minOutdegree: defineDegreeBoundsFunction('outdegree', function (degree, min) {
-                        return degree < min;
-                    }),
-                    maxOutdegree: defineDegreeBoundsFunction('outdegree', function (degree, max) {
-                        return degree > max;
-                    })
-                });
-                extend(elesfn$i, {
-                    totalDegree: function totalDegree(includeLoops) {
-                        var total = 0;
-                        var nodes = this.nodes();
+  if (null == p.minX || node.minX - p.padLeft < p.minX) {
+    p.minX = node.minX - p.padLeft;
+    flag = true; // s += "\nNew minX for parent node " + p.id + ": " + p.minX;
+  } // MaxY
 
-                        for (var i = 0; i < nodes.length; i++) {
-                            total += nodes[i].degree(includeLoops);
-                        }
 
-                        return total;
-                    }
-                });
+  if (null == p.maxY || node.maxY + p.padBottom > p.maxY) {
+    p.maxY = node.maxY + p.padBottom;
+    flag = true; // s += "\nNew maxY for parent node " + p.id + ": " + p.maxY;
+  } // MinY
 
-                var fn$2, elesfn$j;
 
-                var beforePositionSet = function beforePositionSet(eles, newPos, silent) {
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
+  if (null == p.minY || node.minY - p.padTop < p.minY) {
+    p.minY = node.minY - p.padTop;
+    flag = true; // s += "\nNew minY for parent node " + p.id + ": " + p.minY;
+  } // If updated boundaries, propagate changes upward
 
-                        if (!ele.locked()) {
-                            var oldPos = ele._private.position;
-                            var delta = {
-                                x: newPos.x != null ? newPos.x - oldPos.x : 0,
-                                y: newPos.y != null ? newPos.y - oldPos.y : 0
-                            };
 
-                            if (ele.isParent() && !(delta.x === 0 && delta.y === 0)) {
-                                ele.children().shift(delta, silent);
-                            }
+  if (flag) {
+    // logDebug(s);
+    return updateAncestryBoundaries(p, layoutInfo);
+  } // s += ". No changes in boundaries/position of parent node " + p.id;
+  // logDebug(s);
 
-                            ele.shiftCachedBoundingBox(delta);
-                        }
-                    }
-                };
 
-                var positionDef = {
-                    field: 'position',
-                    bindingEvent: 'position',
-                    allowBinding: true,
-                    allowSetting: true,
-                    settingEvent: 'position',
-                    settingTriggersEvent: true,
-                    triggerFnName: 'emitAndNotify',
-                    allowGetting: true,
-                    validKeys: ['x', 'y'],
-                    beforeGet: function beforeGet(ele) {
-                        ele.updateCompoundBounds();
-                    },
-                    beforeSet: function beforeSet(eles, newPos) {
-                        beforePositionSet(eles, newPos, false);
-                    },
-                    onSet: function onSet(eles) {
-                        eles.dirtyCompoundBoundsCache();
-                    },
-                    canSet: function canSet(ele) {
-                        return !ele.locked();
-                    }
-                };
-                fn$2 = elesfn$j = {
-                    position: define$3.data(positionDef),
-                    // position but no notification to renderer
-                    silentPosition: define$3.data(extend({}, positionDef, {
-                        allowBinding: false,
-                        allowSetting: true,
-                        settingTriggersEvent: false,
-                        allowGetting: false,
-                        beforeSet: function beforeSet(eles, newPos) {
-                            beforePositionSet(eles, newPos, true);
-                        }
-                    })),
-                    positions: function positions(pos, silent) {
-                        if (plainObject(pos)) {
-                            if (silent) {
-                                this.silentPosition(pos);
-                            } else {
-                                this.position(pos);
-                            }
-                        } else if (fn(pos)) {
-                            var _fn = pos;
-                            var cy = this.cy();
-                            cy.startBatch();
-
-                            for (var i = 0; i < this.length; i++) {
-                                var ele = this[i];
-
-                                var _pos = void 0;
-
-                                if (_pos = _fn(ele, i)) {
-                                    if (silent) {
-                                        ele.silentPosition(_pos);
-                                    } else {
-                                        ele.position(_pos);
-                                    }
-                                }
-                            }
+  return;
+};
 
-                            cy.endBatch();
-                        }
+var separateComponents = function separateComponents(layoutInfo, options) {
+  var nodes = layoutInfo.layoutNodes;
+  var components = [];
 
-                        return this; // chaining
-                    },
-                    silentPositions: function silentPositions(pos) {
-                        return this.positions(pos, true);
-                    },
-                    shift: function shift(dim, val, silent) {
-                        var delta;
-
-                        if (plainObject(dim)) {
-                            delta = {
-                                x: number(dim.x) ? dim.x : 0,
-                                y: number(dim.y) ? dim.y : 0
-                            };
-                            silent = val;
-                        } else if (string(dim) && number(val)) {
-                            delta = {
-                                x: 0,
-                                y: 0
-                            };
-                            delta[dim] = val;
-                        }
+  for (var i = 0; i < nodes.length; i++) {
+    var node = nodes[i];
+    var cid = node.cmptId;
+    var component = components[cid] = components[cid] || [];
+    component.push(node);
+  }
 
-                        if (delta != null) {
-                            var cy = this.cy();
-                            cy.startBatch();
-
-                            for (var i = 0; i < this.length; i++) {
-                                var ele = this[i];
-                                var pos = ele.position();
-                                var newPos = {
-                                    x: pos.x + delta.x,
-                                    y: pos.y + delta.y
-                                };
-
-                                if (silent) {
-                                    ele.silentPosition(newPos);
-                                } else {
-                                    ele.position(newPos);
-                                }
-                            }
+  var totalA = 0;
 
-                            cy.endBatch();
-                        }
+  for (var i = 0; i < components.length; i++) {
+    var c = components[i];
 
-                        return this;
-                    },
-                    silentShift: function silentShift(dim, val) {
-                        if (plainObject(dim)) {
-                            this.shift(dim, true);
-                        } else if (string(dim) && number(val)) {
-                            this.shift(dim, val, true);
-                        }
+    if (!c) {
+      continue;
+    }
 
-                        return this;
-                    },
-                    // get/set the rendered (i.e. on screen) positon of the element
-                    renderedPosition: function renderedPosition(dim, val) {
-                        var ele = this[0];
-                        var cy = this.cy();
-                        var zoom = cy.zoom();
-                        var pan = cy.pan();
-                        var rpos = plainObject(dim) ? dim : undefined;
-                        var setting = rpos !== undefined || val !== undefined && string(dim);
-
-                        if (ele && ele.isNode()) {
-                            // must have an element and must be a node to return position
-                            if (setting) {
-                                for (var i = 0; i < this.length; i++) {
-                                    var _ele = this[i];
-
-                                    if (val !== undefined) {
-                                        // set one dimension
-                                        _ele.position(dim, (val - pan[dim]) / zoom);
-                                    } else if (rpos !== undefined) {
-                                        // set whole position
-                                        _ele.position(renderedToModelPosition(rpos, zoom, pan));
-                                    }
-                                }
-                            } else {
-                                // getting
-                                var pos = ele.position();
-                                rpos = modelToRenderedPosition(pos, zoom, pan);
-
-                                if (dim === undefined) {
-                                    // then return the whole rendered position
-                                    return rpos;
-                                } else {
-                                    // then return the specified dimension
-                                    return rpos[dim];
-                                }
-                            }
-                        } else if (!setting) {
-                            return undefined; // for empty collection case
-                        }
+    c.x1 = Infinity;
+    c.x2 = -Infinity;
+    c.y1 = Infinity;
+    c.y2 = -Infinity;
+
+    for (var j = 0; j < c.length; j++) {
+      var n = c[j];
+      c.x1 = Math.min(c.x1, n.positionX - n.width / 2);
+      c.x2 = Math.max(c.x2, n.positionX + n.width / 2);
+      c.y1 = Math.min(c.y1, n.positionY - n.height / 2);
+      c.y2 = Math.max(c.y2, n.positionY + n.height / 2);
+    }
 
-                        return this; // chaining
-                    },
-                    // get/set the position relative to the parent
-                    relativePosition: function relativePosition(dim, val) {
-                        var ele = this[0];
-                        var cy = this.cy();
-                        var ppos = plainObject(dim) ? dim : undefined;
-                        var setting = ppos !== undefined || val !== undefined && string(dim);
-                        var hasCompoundNodes = cy.hasCompoundNodes();
-
-                        if (ele && ele.isNode()) {
-                            // must have an element and must be a node to return position
-                            if (setting) {
-                                for (var i = 0; i < this.length; i++) {
-                                    var _ele2 = this[i];
-                                    var parent = hasCompoundNodes ? _ele2.parent() : null;
-                                    var hasParent = parent && parent.length > 0;
-                                    var relativeToParent = hasParent;
-
-                                    if (hasParent) {
-                                        parent = parent[0];
-                                    }
-
-                                    var origin = relativeToParent ? parent.position() : {
-                                        x: 0,
-                                        y: 0
-                                    };
-
-                                    if (val !== undefined) {
-                                        // set one dimension
-                                        _ele2.position(dim, val + origin[dim]);
-                                    } else if (ppos !== undefined) {
-                                        // set whole position
-                                        _ele2.position({
-                                            x: ppos.x + origin.x,
-                                            y: ppos.y + origin.y
-                                        });
-                                    }
-                                }
-                            } else {
-                                // getting
-                                var pos = ele.position();
-
-                                var _parent = hasCompoundNodes ? ele.parent() : null;
-
-                                var _hasParent = _parent && _parent.length > 0;
-
-                                var _relativeToParent = _hasParent;
-
-                                if (_hasParent) {
-                                    _parent = _parent[0];
-                                }
-
-                                var _origin = _relativeToParent ? _parent.position() : {
-                                    x: 0,
-                                    y: 0
-                                };
-
-                                ppos = {
-                                    x: pos.x - _origin.x,
-                                    y: pos.y - _origin.y
-                                };
-
-                                if (dim === undefined) {
-                                    // then return the whole rendered position
-                                    return ppos;
-                                } else {
-                                    // then return the specified dimension
-                                    return ppos[dim];
-                                }
-                            }
-                        } else if (!setting) {
-                            return undefined; // for empty collection case
-                        }
+    c.w = c.x2 - c.x1;
+    c.h = c.y2 - c.y1;
+    totalA += c.w * c.h;
+  }
 
-                        return this; // chaining
-                    }
-                }; // aliases
-
-                fn$2.modelPosition = fn$2.point = fn$2.position;
-                fn$2.modelPositions = fn$2.points = fn$2.positions;
-                fn$2.renderedPoint = fn$2.renderedPosition;
-                fn$2.relativePoint = fn$2.relativePosition;
-                var position = elesfn$j;
-
-                var fn$3, elesfn$k;
-                fn$3 = elesfn$k = {};
-
-                elesfn$k.renderedBoundingBox = function (options) {
-                    var bb = this.boundingBox(options);
-                    var cy = this.cy();
-                    var zoom = cy.zoom();
-                    var pan = cy.pan();
-                    var x1 = bb.x1 * zoom + pan.x;
-                    var x2 = bb.x2 * zoom + pan.x;
-                    var y1 = bb.y1 * zoom + pan.y;
-                    var y2 = bb.y2 * zoom + pan.y;
-                    return {
-                        x1: x1,
-                        x2: x2,
-                        y1: y1,
-                        y2: y2,
-                        w: x2 - x1,
-                        h: y2 - y1
-                    };
-                };
+  components.sort(function (c1, c2) {
+    return c2.w * c2.h - c1.w * c1.h;
+  });
+  var x = 0;
+  var y = 0;
+  var usedW = 0;
+  var rowH = 0;
+  var maxRowW = Math.sqrt(totalA) * layoutInfo.clientWidth / layoutInfo.clientHeight;
 
-                elesfn$k.dirtyCompoundBoundsCache = function () {
-                    var cy = this.cy();
+  for (var i = 0; i < components.length; i++) {
+    var c = components[i];
 
-                    if (!cy.styleEnabled() || !cy.hasCompoundNodes()) {
-                        return this;
-                    }
+    if (!c) {
+      continue;
+    }
 
-                    this.forEachUp(function (ele) {
-                        if (ele.isParent()) {
-                            var _p = ele._private;
-                            _p.compoundBoundsClean = false;
-                            _p.bbCache = null;
-                            ele.emitAndNotify('bounds');
-                        }
-                    });
-                    return this;
-                };
+    for (var j = 0; j < c.length; j++) {
+      var n = c[j];
 
-                elesfn$k.updateCompoundBounds = function () {
-                    var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
-                    var cy = this.cy(); // not possible to do on non-compound graphs or with the style disabled
+      if (!n.isLocked) {
+        n.positionX += x - c.x1;
+        n.positionY += y - c.y1;
+      }
+    }
 
-                    if (!cy.styleEnabled() || !cy.hasCompoundNodes()) {
-                        return this;
-                    } // save cycles when batching -- but bounds will be stale (or not exist yet)
+    x += c.w + options.componentSpacing;
+    usedW += c.w + options.componentSpacing;
+    rowH = Math.max(rowH, c.h);
 
+    if (usedW > maxRowW) {
+      y += rowH + options.componentSpacing;
+      x = 0;
+      usedW = 0;
+      rowH = 0;
+    }
+  }
+};
+
+var defaults$d = {
+  fit: true,
+  // whether to fit the viewport to the graph
+  padding: 30,
+  // padding used on fit
+  boundingBox: undefined,
+  // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  avoidOverlap: true,
+  // prevents node overlap, may overflow boundingBox if not enough space
+  avoidOverlapPadding: 10,
+  // extra spacing around nodes when avoidOverlap: true
+  nodeDimensionsIncludeLabels: false,
+  // Excludes the label when calculating node bounding boxes for the layout algorithm
+  spacingFactor: undefined,
+  // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
+  condense: false,
+  // uses all available space on false, uses minimal space on true
+  rows: undefined,
+  // force num of rows in the grid
+  cols: undefined,
+  // force num of columns in the grid
+  position: function position(node) {},
+  // returns { row, col } for element
+  sort: undefined,
+  // a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts 
+
+};
+
+function GridLayout(options) {
+  this.options = extend({}, defaults$d, options);
+}
+
+GridLayout.prototype.run = function () {
+  var params = this.options;
+  var options = params;
+  var cy = params.cy;
+  var eles = options.eles;
+  var nodes = eles.nodes().not(':parent');
+
+  if (options.sort) {
+    nodes = nodes.sort(options.sort);
+  }
 
-                    if (!force && cy.batching()) {
-                        return this;
-                    }
+  var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
+    x1: 0,
+    y1: 0,
+    w: cy.width(),
+    h: cy.height()
+  });
+
+  if (bb.h === 0 || bb.w === 0) {
+    nodes.layoutPositions(this, options, function (ele) {
+      return {
+        x: bb.x1,
+        y: bb.y1
+      };
+    });
+  } else {
+    // width/height * splits^2 = cells where splits is number of times to split width
+    var cells = nodes.size();
+    var splits = Math.sqrt(cells * bb.h / bb.w);
+    var rows = Math.round(splits);
+    var cols = Math.round(bb.w / bb.h * splits);
+
+    var small = function small(val) {
+      if (val == null) {
+        return Math.min(rows, cols);
+      } else {
+        var min = Math.min(rows, cols);
+
+        if (min == rows) {
+          rows = val;
+        } else {
+          cols = val;
+        }
+      }
+    };
+
+    var large = function large(val) {
+      if (val == null) {
+        return Math.max(rows, cols);
+      } else {
+        var max = Math.max(rows, cols);
+
+        if (max == rows) {
+          rows = val;
+        } else {
+          cols = val;
+        }
+      }
+    };
+
+    var oRows = options.rows;
+    var oCols = options.cols != null ? options.cols : options.columns; // if rows or columns were set in options, use those values
+
+    if (oRows != null && oCols != null) {
+      rows = oRows;
+      cols = oCols;
+    } else if (oRows != null && oCols == null) {
+      rows = oRows;
+      cols = Math.ceil(cells / rows);
+    } else if (oRows == null && oCols != null) {
+      cols = oCols;
+      rows = Math.ceil(cells / cols);
+    } // otherwise use the automatic values and adjust accordingly
+    // if rounding was up, see if we can reduce rows or columns
+    else if (cols * rows > cells) {
+        var sm = small();
+        var lg = large(); // reducing the small side takes away the most cells, so try it first
+
+        if ((sm - 1) * lg >= cells) {
+          small(sm - 1);
+        } else if ((lg - 1) * sm >= cells) {
+          large(lg - 1);
+        }
+      } else {
+        // if rounding was too low, add rows or columns
+        while (cols * rows < cells) {
+          var _sm = small();
 
-                    function update(parent) {
-                        if (!parent.isParent()) {
-                            return;
-                        }
+          var _lg = large(); // try to add to larger side first (adds less in multiplication)
 
-                        var _p = parent._private;
-                        var children = parent.children();
-                        var includeLabels = parent.pstyle('compound-sizing-wrt-labels').value === 'include';
-                        var min = {
-                            width: {
-                                val: parent.pstyle('min-width').pfValue,
-                                left: parent.pstyle('min-width-bias-left'),
-                                right: parent.pstyle('min-width-bias-right')
-                            },
-                            height: {
-                                val: parent.pstyle('min-height').pfValue,
-                                top: parent.pstyle('min-height-bias-top'),
-                                bottom: parent.pstyle('min-height-bias-bottom')
-                            }
-                        };
-                        var bb = children.boundingBox({
-                            includeLabels: includeLabels,
-                            includeOverlays: false,
-                            // updating the compound bounds happens outside of the regular
-                            // cache cycle (i.e. before fired events)
-                            useCache: false
-                        });
-                        var pos = _p.position; // if children take up zero area then keep position and fall back on stylesheet w/h
-
-                        if (bb.w === 0 || bb.h === 0) {
-                            bb = {
-                                w: parent.pstyle('width').pfValue,
-                                h: parent.pstyle('height').pfValue
-                            };
-                            bb.x1 = pos.x - bb.w / 2;
-                            bb.x2 = pos.x + bb.w / 2;
-                            bb.y1 = pos.y - bb.h / 2;
-                            bb.y2 = pos.y + bb.h / 2;
-                        }
 
-                        function computeBiasValues(propDiff, propBias, propBiasComplement) {
-                            var biasDiff = 0;
-                            var biasComplementDiff = 0;
-                            var biasTotal = propBias + propBiasComplement;
+          if ((_lg + 1) * _sm >= cells) {
+            large(_lg + 1);
+          } else {
+            small(_sm + 1);
+          }
+        }
+      }
 
-                            if (propDiff > 0 && biasTotal > 0) {
-                                biasDiff = propBias / biasTotal * propDiff;
-                                biasComplementDiff = propBiasComplement / biasTotal * propDiff;
-                            }
+    var cellWidth = bb.w / cols;
+    var cellHeight = bb.h / rows;
 
-                            return {
-                                biasDiff: biasDiff,
-                                biasComplementDiff: biasComplementDiff
-                            };
-                        }
+    if (options.condense) {
+      cellWidth = 0;
+      cellHeight = 0;
+    }
 
-                        function computePaddingValues(width, height, paddingObject, relativeTo) {
-                            // Assuming percentage is number from 0 to 1
-                            if (paddingObject.units === '%') {
-                                switch (relativeTo) {
-                                    case 'width':
-                                        return width > 0 ? paddingObject.pfValue * width : 0;
+    if (options.avoidOverlap) {
+      for (var i = 0; i < nodes.length; i++) {
+        var node = nodes[i];
+        var pos = node._private.position;
 
-                                    case 'height':
-                                        return height > 0 ? paddingObject.pfValue * height : 0;
+        if (pos.x == null || pos.y == null) {
+          // for bb
+          pos.x = 0;
+          pos.y = 0;
+        }
 
-                                    case 'average':
-                                        return width > 0 && height > 0 ? paddingObject.pfValue * (width + height) / 2 : 0;
+        var nbb = node.layoutDimensions(options);
+        var p = options.avoidOverlapPadding;
+        var w = nbb.w + p;
+        var h = nbb.h + p;
+        cellWidth = Math.max(cellWidth, w);
+        cellHeight = Math.max(cellHeight, h);
+      }
+    }
 
-                                    case 'min':
-                                        return width > 0 && height > 0 ? width > height ? paddingObject.pfValue * height : paddingObject.pfValue * width : 0;
+    var cellUsed = {}; // e.g. 'c-0-2' => true
 
-                                    case 'max':
-                                        return width > 0 && height > 0 ? width > height ? paddingObject.pfValue * width : paddingObject.pfValue * height : 0;
+    var used = function used(row, col) {
+      return cellUsed['c-' + row + '-' + col] ? true : false;
+    };
 
-                                    default:
-                                        return 0;
-                                }
-                            } else if (paddingObject.units === 'px') {
-                                return paddingObject.pfValue;
-                            } else {
-                                return 0;
-                            }
-                        }
+    var use = function use(row, col) {
+      cellUsed['c-' + row + '-' + col] = true;
+    }; // to keep track of current cell position
 
-                        var leftVal = min.width.left.value;
 
-                        if (min.width.left.units === 'px' && min.width.val > 0) {
-                            leftVal = leftVal * 100 / min.width.val;
-                        }
+    var row = 0;
+    var col = 0;
 
-                        var rightVal = min.width.right.value;
+    var moveToNextCell = function moveToNextCell() {
+      col++;
 
-                        if (min.width.right.units === 'px' && min.width.val > 0) {
-                            rightVal = rightVal * 100 / min.width.val;
-                        }
+      if (col >= cols) {
+        col = 0;
+        row++;
+      }
+    }; // get a cache of all the manual positions
 
-                        var topVal = min.height.top.value;
 
-                        if (min.height.top.units === 'px' && min.height.val > 0) {
-                            topVal = topVal * 100 / min.height.val;
-                        }
+    var id2manPos = {};
 
-                        var bottomVal = min.height.bottom.value;
+    for (var _i = 0; _i < nodes.length; _i++) {
+      var _node = nodes[_i];
+      var rcPos = options.position(_node);
 
-                        if (min.height.bottom.units === 'px' && min.height.val > 0) {
-                            bottomVal = bottomVal * 100 / min.height.val;
-                        }
+      if (rcPos && (rcPos.row !== undefined || rcPos.col !== undefined)) {
+        // must have at least row or col def'd
+        var _pos = {
+          row: rcPos.row,
+          col: rcPos.col
+        };
 
-                        var widthBiasDiffs = computeBiasValues(min.width.val - bb.w, leftVal, rightVal);
-                        var diffLeft = widthBiasDiffs.biasDiff;
-                        var diffRight = widthBiasDiffs.biasComplementDiff;
-                        var heightBiasDiffs = computeBiasValues(min.height.val - bb.h, topVal, bottomVal);
-                        var diffTop = heightBiasDiffs.biasDiff;
-                        var diffBottom = heightBiasDiffs.biasComplementDiff;
-                        _p.autoPadding = computePaddingValues(bb.w, bb.h, parent.pstyle('padding'), parent.pstyle('padding-relative-to').value);
-                        _p.autoWidth = Math.max(bb.w, min.width.val);
-                        pos.x = (-diffLeft + bb.x1 + bb.x2 + diffRight) / 2;
-                        _p.autoHeight = Math.max(bb.h, min.height.val);
-                        pos.y = (-diffTop + bb.y1 + bb.y2 + diffBottom) / 2;
-                    }
+        if (_pos.col === undefined) {
+          // find unused col
+          _pos.col = 0;
 
-                    for (var i = 0; i < this.length; i++) {
-                        var ele = this[i];
-                        var _p = ele._private;
+          while (used(_pos.row, _pos.col)) {
+            _pos.col++;
+          }
+        } else if (_pos.row === undefined) {
+          // find unused row
+          _pos.row = 0;
 
-                        if (!_p.compoundBoundsClean) {
-                            update(ele);
+          while (used(_pos.row, _pos.col)) {
+            _pos.row++;
+          }
+        }
 
-                            if (!cy.batching()) {
-                                _p.compoundBoundsClean = true;
-                            }
-                        }
-                    }
+        id2manPos[_node.id()] = _pos;
+        use(_pos.row, _pos.col);
+      }
+    }
 
-                    return this;
-                };
+    var getPos = function getPos(element, i) {
+      var x, y;
 
-                var noninf = function noninf(x) {
-                    if (x === Infinity || x === -Infinity) {
-                        return 0;
-                    }
+      if (element.locked() || element.isParent()) {
+        return false;
+      } // see if we have a manual position set
 
-                    return x;
-                };
 
-                var updateBounds = function updateBounds(b, x1, y1, x2, y2) {
-                    // don't update with zero area boxes
-                    if (x2 - x1 === 0 || y2 - y1 === 0) {
-                        return;
-                    } // don't update with null dim
+      var rcPos = id2manPos[element.id()];
 
+      if (rcPos) {
+        x = rcPos.col * cellWidth + cellWidth / 2 + bb.x1;
+        y = rcPos.row * cellHeight + cellHeight / 2 + bb.y1;
+      } else {
+        // otherwise set automatically
+        while (used(row, col)) {
+          moveToNextCell();
+        }
 
-                    if (x1 == null || y1 == null || x2 == null || y2 == null) {
-                        return;
-                    }
+        x = col * cellWidth + cellWidth / 2 + bb.x1;
+        y = row * cellHeight + cellHeight / 2 + bb.y1;
+        use(row, col);
+        moveToNextCell();
+      }
 
-                    b.x1 = x1 < b.x1 ? x1 : b.x1;
-                    b.x2 = x2 > b.x2 ? x2 : b.x2;
-                    b.y1 = y1 < b.y1 ? y1 : b.y1;
-                    b.y2 = y2 > b.y2 ? y2 : b.y2;
-                    b.w = b.x2 - b.x1;
-                    b.h = b.y2 - b.y1;
-                };
+      return {
+        x: x,
+        y: y
+      };
+    };
 
-                var updateBoundsFromBox = function updateBoundsFromBox(b, b2) {
-                    if (b2 == null) {
-                        return b;
-                    }
+    nodes.layoutPositions(this, options, getPos);
+  }
 
-                    return updateBounds(b, b2.x1, b2.y1, b2.x2, b2.y2);
-                };
+  return this; // chaining
+};
 
-                var prefixedProperty = function prefixedProperty(obj, field, prefix) {
-                    return getPrefixedProperty(obj, field, prefix);
-                };
+var defaults$e = {
+  ready: function ready() {},
+  // on layoutready
+  stop: function stop() {} // on layoutstop
 
-                var updateBoundsFromArrow = function updateBoundsFromArrow(bounds, ele, prefix) {
-                    if (ele.cy().headless()) {
-                        return;
-                    }
+}; // constructor
+// options : object containing layout options
 
-                    var _p = ele._private;
-                    var rstyle = _p.rstyle;
-                    var halfArW = rstyle.arrowWidth / 2;
-                    var arrowType = ele.pstyle(prefix + '-arrow-shape').value;
-                    var x;
-                    var y;
-
-                    if (arrowType !== 'none') {
-                        if (prefix === 'source') {
-                            x = rstyle.srcX;
-                            y = rstyle.srcY;
-                        } else if (prefix === 'target') {
-                            x = rstyle.tgtX;
-                            y = rstyle.tgtY;
-                        } else {
-                            x = rstyle.midX;
-                            y = rstyle.midY;
-                        } // always store the individual arrow bounds
-
-
-                        var bbs = _p.arrowBounds = _p.arrowBounds || {};
-                        var bb = bbs[prefix] = bbs[prefix] || {};
-                        bb.x1 = x - halfArW;
-                        bb.y1 = y - halfArW;
-                        bb.x2 = x + halfArW;
-                        bb.y2 = y + halfArW;
-                        bb.w = bb.x2 - bb.x1;
-                        bb.h = bb.y2 - bb.y1;
-                        expandBoundingBox(bb, 1);
-                        updateBounds(bounds, bb.x1, bb.y1, bb.x2, bb.y2);
-                    }
-                };
+function NullLayout(options) {
+  this.options = extend({}, defaults$e, options);
+} // runs the layout
+
+
+NullLayout.prototype.run = function () {
+  var options = this.options;
+  var eles = options.eles; // elements to consider in the layout
+
+  var layout = this; // cy is automatically populated for us in the constructor
+  // (disable eslint for next line as this serves as example layout code to external developers)
+  // eslint-disable-next-line no-unused-vars
+
+  var cy = options.cy;
+  layout.emit('layoutstart'); // puts all nodes at (0, 0)
+  // n.b. most layouts would use layoutPositions(), instead of positions() and manual events
+
+  eles.nodes().positions(function () {
+    return {
+      x: 0,
+      y: 0
+    };
+  }); // trigger layoutready when each node has had its position set at least once
+
+  layout.one('layoutready', options.ready);
+  layout.emit('layoutready'); // trigger layoutstop when the layout stops (e.g. finishes)
+
+  layout.one('layoutstop', options.stop);
+  layout.emit('layoutstop');
+  return this; // chaining
+}; // called on continuous layouts to stop them before they finish
+
+
+NullLayout.prototype.stop = function () {
+  return this; // chaining
+};
+
+var defaults$f = {
+  positions: undefined,
+  // map of (node id) => (position obj); or function(node){ return somPos; }
+  zoom: undefined,
+  // the zoom level to set (prob want fit = false if set)
+  pan: undefined,
+  // the pan level to set (prob want fit = false if set)
+  fit: true,
+  // whether to fit to viewport
+  padding: 30,
+  // padding on fit
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts
+
+};
+
+function PresetLayout(options) {
+  this.options = extend({}, defaults$f, options);
+}
+
+PresetLayout.prototype.run = function () {
+  var options = this.options;
+  var eles = options.eles;
+  var nodes = eles.nodes();
+  var posIsFn = fn(options.positions);
+
+  function getPosition(node) {
+    if (options.positions == null) {
+      return copyPosition(node.position());
+    }
 
-                var updateBoundsFromLabel = function updateBoundsFromLabel(bounds, ele, prefix) {
-                    if (ele.cy().headless()) {
-                        return;
-                    }
+    if (posIsFn) {
+      return options.positions(node);
+    }
 
-                    var prefixDash;
+    var pos = options.positions[node._private.data.id];
 
-                    if (prefix) {
-                        prefixDash = prefix + '-';
-                    } else {
-                        prefixDash = '';
-                    }
+    if (pos == null) {
+      return null;
+    }
 
-                    var _p = ele._private;
-                    var rstyle = _p.rstyle;
-                    var label = ele.pstyle(prefixDash + 'label').strValue;
-
-                    if (label) {
-                        var halign = ele.pstyle('text-halign');
-                        var valign = ele.pstyle('text-valign');
-                        var labelWidth = prefixedProperty(rstyle, 'labelWidth', prefix);
-                        var labelHeight = prefixedProperty(rstyle, 'labelHeight', prefix);
-                        var labelX = prefixedProperty(rstyle, 'labelX', prefix);
-                        var labelY = prefixedProperty(rstyle, 'labelY', prefix);
-                        var marginX = ele.pstyle(prefixDash + 'text-margin-x').pfValue;
-                        var marginY = ele.pstyle(prefixDash + 'text-margin-y').pfValue;
-                        var isEdge = ele.isEdge();
-                        var rotation = ele.pstyle(prefixDash + 'text-rotation');
-                        var outlineWidth = ele.pstyle('text-outline-width').pfValue;
-                        var borderWidth = ele.pstyle('text-border-width').pfValue;
-                        var halfBorderWidth = borderWidth / 2;
-                        var padding = ele.pstyle('text-background-padding').pfValue;
-                        var marginOfError = 2; // expand to work around browser dimension inaccuracies
-
-                        var lh = labelHeight;
-                        var lw = labelWidth;
-                        var lw_2 = lw / 2;
-                        var lh_2 = lh / 2;
-                        var lx1, lx2, ly1, ly2;
-
-                        if (isEdge) {
-                            lx1 = labelX - lw_2;
-                            lx2 = labelX + lw_2;
-                            ly1 = labelY - lh_2;
-                            ly2 = labelY + lh_2;
-                        } else {
-                            switch (halign.value) {
-                                case 'left':
-                                    lx1 = labelX - lw;
-                                    lx2 = labelX;
-                                    break;
-
-                                case 'center':
-                                    lx1 = labelX - lw_2;
-                                    lx2 = labelX + lw_2;
-                                    break;
-
-                                case 'right':
-                                    lx1 = labelX;
-                                    lx2 = labelX + lw;
-                                    break;
-                            }
+    return pos;
+  }
 
-                            switch (valign.value) {
-                                case 'top':
-                                    ly1 = labelY - lh;
-                                    ly2 = labelY;
-                                    break;
-
-                                case 'center':
-                                    ly1 = labelY - lh_2;
-                                    ly2 = labelY + lh_2;
-                                    break;
-
-                                case 'bottom':
-                                    ly1 = labelY;
-                                    ly2 = labelY + lh;
-                                    break;
-                            }
-                        } // shift by margin and expand by outline and border
-
-
-                        lx1 += marginX - Math.max(outlineWidth, halfBorderWidth) - padding - marginOfError;
-                        lx2 += marginX + Math.max(outlineWidth, halfBorderWidth) + padding + marginOfError;
-                        ly1 += marginY - Math.max(outlineWidth, halfBorderWidth) - padding - marginOfError;
-                        ly2 += marginY + Math.max(outlineWidth, halfBorderWidth) + padding + marginOfError; // always store the unrotated label bounds separately
-
-                        var bbPrefix = prefix || 'main';
-                        var bbs = _p.labelBounds;
-                        var bb = bbs[bbPrefix] = bbs[bbPrefix] || {};
-                        bb.x1 = lx1;
-                        bb.y1 = ly1;
-                        bb.x2 = lx2;
-                        bb.y2 = ly2;
-                        bb.w = lx2 - lx1;
-                        bb.h = ly2 - ly1;
-                        var isAutorotate = isEdge && rotation.strValue === 'autorotate';
-                        var isPfValue = rotation.pfValue != null && rotation.pfValue !== 0;
-
-                        if (isAutorotate || isPfValue) {
-                            var theta = isAutorotate ? prefixedProperty(_p.rstyle, 'labelAngle', prefix) : rotation.pfValue;
-                            var cos = Math.cos(theta);
-                            var sin = Math.sin(theta); // rotation point (default value for center-center)
-
-                            var xo = (lx1 + lx2) / 2;
-                            var yo = (ly1 + ly2) / 2;
-
-                            if (!isEdge) {
-                                switch (halign.value) {
-                                    case 'left':
-                                        xo = lx2;
-                                        break;
-
-                                    case 'right':
-                                        xo = lx1;
-                                        break;
-                                }
-
-                                switch (valign.value) {
-                                    case 'top':
-                                        yo = ly2;
-                                        break;
-
-                                    case 'bottom':
-                                        yo = ly1;
-                                        break;
-                                }
-                            }
+  nodes.layoutPositions(this, options, function (node, i) {
+    var position = getPosition(node);
 
-                            var rotate = function rotate(x, y) {
-                                x = x - xo;
-                                y = y - yo;
-                                return {
-                                    x: x * cos - y * sin + xo,
-                                    y: x * sin + y * cos + yo
-                                };
-                            };
-
-                            var px1y1 = rotate(lx1, ly1);
-                            var px1y2 = rotate(lx1, ly2);
-                            var px2y1 = rotate(lx2, ly1);
-                            var px2y2 = rotate(lx2, ly2);
-                            lx1 = Math.min(px1y1.x, px1y2.x, px2y1.x, px2y2.x);
-                            lx2 = Math.max(px1y1.x, px1y2.x, px2y1.x, px2y2.x);
-                            ly1 = Math.min(px1y1.y, px1y2.y, px2y1.y, px2y2.y);
-                            ly2 = Math.max(px1y1.y, px1y2.y, px2y1.y, px2y2.y);
-                        }
+    if (node.locked() || position == null) {
+      return false;
+    }
 
-                        var bbPrefixRot = bbPrefix + 'Rot';
-                        var bbRot = bbs[bbPrefixRot] = bbs[bbPrefixRot] || {};
-                        bbRot.x1 = lx1;
-                        bbRot.y1 = ly1;
-                        bbRot.x2 = lx2;
-                        bbRot.y2 = ly2;
-                        bbRot.w = lx2 - lx1;
-                        bbRot.h = ly2 - ly1;
-                        updateBounds(bounds, lx1, ly1, lx2, ly2);
-                        updateBounds(_p.labelBounds.all, lx1, ly1, lx2, ly2);
-                    }
+    return position;
+  });
+  return this; // chaining
+};
+
+var defaults$g = {
+  fit: true,
+  // whether to fit to viewport
+  padding: 30,
+  // fit padding
+  boundingBox: undefined,
+  // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
+  animate: false,
+  // whether to transition the node positions
+  animationDuration: 500,
+  // duration of animation in ms if enabled
+  animationEasing: undefined,
+  // easing of animation if enabled
+  animateFilter: function animateFilter(node, i) {
+    return true;
+  },
+  // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
+  ready: undefined,
+  // callback on layoutready
+  stop: undefined,
+  // callback on layoutstop
+  transform: function transform(node, position) {
+    return position;
+  } // transform a given node position. Useful for changing flow direction in discrete layouts 
+
+};
+
+function RandomLayout(options) {
+  this.options = extend({}, defaults$g, options);
+}
+
+RandomLayout.prototype.run = function () {
+  var options = this.options;
+  var cy = options.cy;
+  var eles = options.eles;
+  var nodes = eles.nodes().not(':parent');
+  var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
+    x1: 0,
+    y1: 0,
+    w: cy.width(),
+    h: cy.height()
+  });
+
+  var getPos = function getPos(node, i) {
+    return {
+      x: bb.x1 + Math.round(Math.random() * bb.w),
+      y: bb.y1 + Math.round(Math.random() * bb.h)
+    };
+  };
+
+  nodes.layoutPositions(this, options, getPos);
+  return this; // chaining
+};
+
+var layout = [{
+  name: 'breadthfirst',
+  impl: BreadthFirstLayout
+}, {
+  name: 'circle',
+  impl: CircleLayout
+}, {
+  name: 'concentric',
+  impl: ConcentricLayout
+}, {
+  name: 'cose',
+  impl: CoseLayout
+}, {
+  name: 'grid',
+  impl: GridLayout
+}, {
+  name: 'null',
+  impl: NullLayout
+}, {
+  name: 'preset',
+  impl: PresetLayout
+}, {
+  name: 'random',
+  impl: RandomLayout
+}];
+
+function NullRenderer(options) {
+  this.options = options;
+  this.notifications = 0; // for testing
+}
+
+var noop$1 = function noop() {};
+
+var throwImgErr = function throwImgErr() {
+  throw new Error('A headless instance can not render images');
+};
+
+NullRenderer.prototype = {
+  recalculateRenderedStyle: noop$1,
+  notify: function notify() {
+    this.notifications++;
+  },
+  init: noop$1,
+  isHeadless: function isHeadless() {
+    return true;
+  },
+  png: throwImgErr,
+  jpg: throwImgErr
+};
+
+var BRp = {};
+BRp.arrowShapeWidth = 0.3;
+
+BRp.registerArrowShapes = function () {
+  var arrowShapes = this.arrowShapes = {};
+  var renderer = this; // Contract for arrow shapes:
+  // 0, 0 is arrow tip
+  // (0, 1) is direction towards node
+  // (1, 0) is right
+  //
+  // functional api:
+  // collide: check x, y in shape
+  // roughCollide: called before collide, no false negatives
+  // draw: draw
+  // spacing: dist(arrowTip, nodeBoundary)
+  // gap: dist(edgeTip, nodeBoundary), edgeTip may != arrowTip
+
+  var bbCollide = function bbCollide(x, y, size, angle, translation, edgeWidth, padding) {
+    var x1 = translation.x - size / 2 - padding;
+    var x2 = translation.x + size / 2 + padding;
+    var y1 = translation.y - size / 2 - padding;
+    var y2 = translation.y + size / 2 + padding;
+    var inside = x1 <= x && x <= x2 && y1 <= y && y <= y2;
+    return inside;
+  };
+
+  var transform = function transform(x, y, size, angle, translation) {
+    var xRotated = x * Math.cos(angle) - y * Math.sin(angle);
+    var yRotated = x * Math.sin(angle) + y * Math.cos(angle);
+    var xScaled = xRotated * size;
+    var yScaled = yRotated * size;
+    var xTranslated = xScaled + translation.x;
+    var yTranslated = yScaled + translation.y;
+    return {
+      x: xTranslated,
+      y: yTranslated
+    };
+  };
+
+  var transformPoints = function transformPoints(pts, size, angle, translation) {
+    var retPts = [];
+
+    for (var i = 0; i < pts.length; i += 2) {
+      var x = pts[i];
+      var y = pts[i + 1];
+      retPts.push(transform(x, y, size, angle, translation));
+    }
 
-                    return bounds;
-                }; // get the bounding box of the elements (in raw model position)
+    return retPts;
+  };
 
+  var pointsToArr = function pointsToArr(pts) {
+    var ret = [];
 
-                var boundingBoxImpl = function boundingBoxImpl(ele, options) {
-                    var cy = ele._private.cy;
-                    var styleEnabled = cy.styleEnabled();
-                    var headless = cy.headless();
-                    var bounds = makeBoundingBox();
-                    var _p = ele._private;
-                    var isNode = ele.isNode();
-                    var isEdge = ele.isEdge();
-                    var ex1, ex2, ey1, ey2; // extrema of body / lines
+    for (var i = 0; i < pts.length; i++) {
+      var p = pts[i];
+      ret.push(p.x, p.y);
+    }
 
-                    var x, y; // node pos
+    return ret;
+  };
 
-                    var rstyle = _p.rstyle;
-                    var manualExpansion = isNode && styleEnabled ? ele.pstyle('bounds-expansion').pfValue : [0]; // must use `display` prop only, as reading `compound.width()` causes recursion
-                    // (other factors like width values will be considered later in this function anyway)
+  var standardGap = function standardGap(edge) {
+    return edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').pfValue * 2;
+  };
 
-                    var isDisplayed = function isDisplayed(ele) {
-                        return ele.pstyle('display').value !== 'none';
-                    };
+  var defineArrowShape = function defineArrowShape(name, defn) {
+    if (string(defn)) {
+      defn = arrowShapes[defn];
+    }
 
-                    var displayed = !styleEnabled || isDisplayed(ele) // must take into account connected nodes b/c of implicit edge hiding on display:none node
-                        && (!isEdge || isDisplayed(ele.source()) && isDisplayed(ele.target()));
+    arrowShapes[name] = extend({
+      name: name,
+      points: [-0.15, -0.3, 0.15, -0.3, 0.15, 0.3, -0.15, 0.3],
+      collide: function collide(x, y, size, angle, translation, padding) {
+        var points = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
+        var inside = pointInsidePolygonPoints(x, y, points);
+        return inside;
+      },
+      roughCollide: bbCollide,
+      draw: function draw(context, size, angle, translation) {
+        var points = transformPoints(this.points, size, angle, translation);
+        renderer.arrowShapeImpl('polygon')(context, points);
+      },
+      spacing: function spacing(edge) {
+        return 0;
+      },
+      gap: standardGap
+    }, defn);
+  };
+
+  defineArrowShape('none', {
+    collide: falsify,
+    roughCollide: falsify,
+    draw: noop,
+    spacing: zeroify,
+    gap: zeroify
+  });
+  defineArrowShape('triangle', {
+    points: [-0.15, -0.3, 0, 0, 0.15, -0.3]
+  });
+  defineArrowShape('arrow', 'triangle');
+  defineArrowShape('triangle-backcurve', {
+    points: arrowShapes['triangle'].points,
+    controlPoint: [0, -0.15],
+    roughCollide: bbCollide,
+    draw: function draw(context, size, angle, translation, edgeWidth) {
+      var ptsTrans = transformPoints(this.points, size, angle, translation);
+      var ctrlPt = this.controlPoint;
+      var ctrlPtTrans = transform(ctrlPt[0], ctrlPt[1], size, angle, translation);
+      renderer.arrowShapeImpl(this.name)(context, ptsTrans, ctrlPtTrans);
+    },
+    gap: function gap(edge) {
+      return standardGap(edge) * 0.8;
+    }
+  });
+  defineArrowShape('triangle-tee', {
+    points: [0, 0, 0.15, -0.3, -0.15, -0.3, 0, 0],
+    pointsTee: [-0.15, -0.4, -0.15, -0.5, 0.15, -0.5, 0.15, -0.4],
+    collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
+      var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
+      var teePts = pointsToArr(transformPoints(this.pointsTee, size + 2 * padding, angle, translation));
+      var inside = pointInsidePolygonPoints(x, y, triPts) || pointInsidePolygonPoints(x, y, teePts);
+      return inside;
+    },
+    draw: function draw(context, size, angle, translation, edgeWidth) {
+      var triPts = transformPoints(this.points, size, angle, translation);
+      var teePts = transformPoints(this.pointsTee, size, angle, translation);
+      renderer.arrowShapeImpl(this.name)(context, triPts, teePts);
+    }
+  });
+  defineArrowShape('circle-triangle', {
+    radius: 0.15,
+    pointsTr: [0, -0.15, 0.15, -0.45, -0.15, -0.45, 0, -0.15],
+    collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
+      var t = translation;
+      var circleInside = Math.pow(t.x - x, 2) + Math.pow(t.y - y, 2) <= Math.pow((size + 2 * padding) * this.radius, 2);
+      var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
+      return pointInsidePolygonPoints(x, y, triPts) || circleInside;
+    },
+    draw: function draw(context, size, angle, translation, edgeWidth) {
+      var triPts = transformPoints(this.pointsTr, size, angle, translation);
+      renderer.arrowShapeImpl(this.name)(context, triPts, translation.x, translation.y, this.radius * size);
+    },
+    spacing: function spacing(edge) {
+      return renderer.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.radius;
+    }
+  });
+  defineArrowShape('triangle-cross', {
+    points: [0, 0, 0.15, -0.3, -0.15, -0.3, 0, 0],
+    baseCrossLinePts: [-0.15, -0.4, // first half of the rectangle
+    -0.15, -0.4, 0.15, -0.4, // second half of the rectangle
+    0.15, -0.4],
+    crossLinePts: function crossLinePts(size, edgeWidth) {
+      // shift points so that the distance between the cross points matches edge width
+      var p = this.baseCrossLinePts.slice();
+      var shiftFactor = edgeWidth / size;
+      var y0 = 3;
+      var y1 = 5;
+      p[y0] = p[y0] - shiftFactor;
+      p[y1] = p[y1] - shiftFactor;
+      return p;
+    },
+    collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
+      var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
+      var teePts = pointsToArr(transformPoints(this.crossLinePts(size, edgeWidth), size + 2 * padding, angle, translation));
+      var inside = pointInsidePolygonPoints(x, y, triPts) || pointInsidePolygonPoints(x, y, teePts);
+      return inside;
+    },
+    draw: function draw(context, size, angle, translation, edgeWidth) {
+      var triPts = transformPoints(this.points, size, angle, translation);
+      var crossLinePts = transformPoints(this.crossLinePts(size, edgeWidth), size, angle, translation);
+      renderer.arrowShapeImpl(this.name)(context, triPts, crossLinePts);
+    }
+  });
+  defineArrowShape('vee', {
+    points: [-0.15, -0.3, 0, 0, 0.15, -0.3, 0, -0.15],
+    gap: function gap(edge) {
+      return standardGap(edge) * 0.525;
+    }
+  });
+  defineArrowShape('circle', {
+    radius: 0.15,
+    collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
+      var t = translation;
+      var inside = Math.pow(t.x - x, 2) + Math.pow(t.y - y, 2) <= Math.pow((size + 2 * padding) * this.radius, 2);
+      return inside;
+    },
+    draw: function draw(context, size, angle, translation, edgeWidth) {
+      renderer.arrowShapeImpl(this.name)(context, translation.x, translation.y, this.radius * size);
+    },
+    spacing: function spacing(edge) {
+      return renderer.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.radius;
+    }
+  });
+  defineArrowShape('tee', {
+    points: [-0.15, 0, -0.15, -0.1, 0.15, -0.1, 0.15, 0],
+    spacing: function spacing(edge) {
+      return 1;
+    },
+    gap: function gap(edge) {
+      return 1;
+    }
+  });
+  defineArrowShape('square', {
+    points: [-0.15, 0.00, 0.15, 0.00, 0.15, -0.3, -0.15, -0.3]
+  });
+  defineArrowShape('diamond', {
+    points: [-0.15, -0.15, 0, -0.3, 0.15, -0.15, 0, 0],
+    gap: function gap(edge) {
+      return edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').value;
+    }
+  });
+  defineArrowShape('chevron', {
+    points: [0, 0, -0.15, -0.15, -0.1, -0.2, 0, -0.1, 0.1, -0.2, 0.15, -0.15],
+    gap: function gap(edge) {
+      return 0.95 * edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').value;
+    }
+  });
+};
+
+var BRp$1 = {}; // Project mouse
+
+BRp$1.projectIntoViewport = function (clientX, clientY) {
+  var cy = this.cy;
+  var offsets = this.findContainerClientCoords();
+  var offsetLeft = offsets[0];
+  var offsetTop = offsets[1];
+  var scale = offsets[4];
+  var pan = cy.pan();
+  var zoom = cy.zoom();
+  var x = ((clientX - offsetLeft) / scale - pan.x) / zoom;
+  var y = ((clientY - offsetTop) / scale - pan.y) / zoom;
+  return [x, y];
+};
+
+BRp$1.findContainerClientCoords = function () {
+  if (this.containerBB) {
+    return this.containerBB;
+  }
 
-                    if (displayed) {
-                        // displayed suffices, since we will find zero area eles anyway
-                        var overlayOpacity = 0;
-                        var overlayPadding = 0;
+  var container = this.container;
+  var rect = container.getBoundingClientRect();
+  var style = window$1.getComputedStyle(container);
+
+  var styleValue = function styleValue(name) {
+    return parseFloat(style.getPropertyValue(name));
+  };
+
+  var padding = {
+    left: styleValue('padding-left'),
+    right: styleValue('padding-right'),
+    top: styleValue('padding-top'),
+    bottom: styleValue('padding-bottom')
+  };
+  var border = {
+    left: styleValue('border-left-width'),
+    right: styleValue('border-right-width'),
+    top: styleValue('border-top-width'),
+    bottom: styleValue('border-bottom-width')
+  };
+  var clientWidth = container.clientWidth;
+  var clientHeight = container.clientHeight;
+  var paddingHor = padding.left + padding.right;
+  var paddingVer = padding.top + padding.bottom;
+  var borderHor = border.left + border.right;
+  var scale = rect.width / (clientWidth + borderHor);
+  var unscaledW = clientWidth - paddingHor;
+  var unscaledH = clientHeight - paddingVer;
+  var left = rect.left + padding.left + border.left;
+  var top = rect.top + padding.top + border.top;
+  return this.containerBB = [left, top, unscaledW, unscaledH, scale];
+};
+
+BRp$1.invalidateContainerClientCoordsCache = function () {
+  this.containerBB = null;
+};
+
+BRp$1.findNearestElement = function (x, y, interactiveElementsOnly, isTouch) {
+  return this.findNearestElements(x, y, interactiveElementsOnly, isTouch)[0];
+};
+
+BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
+  var self = this;
+  var r = this;
+  var eles = r.getCachedZSortedEles();
+  var near = []; // 1 node max, 1 edge max
+
+  var zoom = r.cy.zoom();
+  var hasCompounds = r.cy.hasCompoundNodes();
+  var edgeThreshold = (isTouch ? 24 : 8) / zoom;
+  var nodeThreshold = (isTouch ? 8 : 2) / zoom;
+  var labelThreshold = (isTouch ? 8 : 2) / zoom;
+  var minSqDist = Infinity;
+  var nearEdge;
+  var nearNode;
+
+  if (interactiveElementsOnly) {
+    eles = eles.interactive;
+  }
 
-                        if (styleEnabled && options.includeOverlays) {
-                            overlayOpacity = ele.pstyle('overlay-opacity').value;
+  function addEle(ele, sqDist) {
+    if (ele.isNode()) {
+      if (nearNode) {
+        return; // can't replace node
+      } else {
+        nearNode = ele;
+        near.push(ele);
+      }
+    }
 
-                            if (overlayOpacity !== 0) {
-                                overlayPadding = ele.pstyle('overlay-padding').value;
-                            }
-                        }
+    if (ele.isEdge() && (sqDist == null || sqDist < minSqDist)) {
+      if (nearEdge) {
+        // then replace existing edge
+        // can replace only if same z-index
+        if (nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value && nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value) {
+          for (var i = 0; i < near.length; i++) {
+            if (near[i].isEdge()) {
+              near[i] = ele;
+              nearEdge = ele;
+              minSqDist = sqDist != null ? sqDist : minSqDist;
+              break;
+            }
+          }
+        }
+      } else {
+        near.push(ele);
+        nearEdge = ele;
+        minSqDist = sqDist != null ? sqDist : minSqDist;
+      }
+    }
+  }
 
-                        var w = 0;
-                        var wHalf = 0;
+  function checkNode(node) {
+    var width = node.outerWidth() + 2 * nodeThreshold;
+    var height = node.outerHeight() + 2 * nodeThreshold;
+    var hw = width / 2;
+    var hh = height / 2;
+    var pos = node.position();
+
+    if (pos.x - hw <= x && x <= pos.x + hw // bb check x
+    && pos.y - hh <= y && y <= pos.y + hh // bb check y
+    ) {
+        var shape = r.nodeShapes[self.getNodeShape(node)];
+
+        if (shape.checkPoint(x, y, 0, width, height, pos.x, pos.y)) {
+          addEle(node, 0);
+          return true;
+        }
+      }
+  }
 
-                        if (styleEnabled) {
-                            w = ele.pstyle('width').pfValue;
-                            wHalf = w / 2;
-                        }
+  function checkEdge(edge) {
+    var _p = edge._private;
+    var rs = _p.rscratch;
+    var styleWidth = edge.pstyle('width').pfValue;
+    var scale = edge.pstyle('arrow-scale').value;
+    var width = styleWidth / 2 + edgeThreshold; // more like a distance radius from centre
+
+    var widthSq = width * width;
+    var width2 = width * 2;
+    var src = _p.source;
+    var tgt = _p.target;
+    var sqDist;
+
+    if (rs.edgeType === 'segments' || rs.edgeType === 'straight' || rs.edgeType === 'haystack') {
+      var pts = rs.allpts;
+
+      for (var i = 0; i + 3 < pts.length; i += 2) {
+        if (inLineVicinity(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], width2) && widthSq > (sqDist = sqdistToFiniteLine(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3]))) {
+          addEle(edge, sqDist);
+          return true;
+        }
+      }
+    } else if (rs.edgeType === 'bezier' || rs.edgeType === 'multibezier' || rs.edgeType === 'self' || rs.edgeType === 'compound') {
+      var pts = rs.allpts;
+
+      for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
+        if (inBezierVicinity(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], pts[i + 4], pts[i + 5], width2) && widthSq > (sqDist = sqdistToQuadraticBezier(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], pts[i + 4], pts[i + 5]))) {
+          addEle(edge, sqDist);
+          return true;
+        }
+      }
+    } // if we're close to the edge but didn't hit it, maybe we hit its arrows
+
+
+    var src = src || _p.source;
+    var tgt = tgt || _p.target;
+    var arSize = self.getArrowWidth(styleWidth, scale);
+    var arrows = [{
+      name: 'source',
+      x: rs.arrowStartX,
+      y: rs.arrowStartY,
+      angle: rs.srcArrowAngle
+    }, {
+      name: 'target',
+      x: rs.arrowEndX,
+      y: rs.arrowEndY,
+      angle: rs.tgtArrowAngle
+    }, {
+      name: 'mid-source',
+      x: rs.midX,
+      y: rs.midY,
+      angle: rs.midsrcArrowAngle
+    }, {
+      name: 'mid-target',
+      x: rs.midX,
+      y: rs.midY,
+      angle: rs.midtgtArrowAngle
+    }];
+
+    for (var i = 0; i < arrows.length; i++) {
+      var ar = arrows[i];
+      var shape = r.arrowShapes[edge.pstyle(ar.name + '-arrow-shape').value];
+      var edgeWidth = edge.pstyle('width').pfValue;
+
+      if (shape.roughCollide(x, y, arSize, ar.angle, {
+        x: ar.x,
+        y: ar.y
+      }, edgeWidth, edgeThreshold) && shape.collide(x, y, arSize, ar.angle, {
+        x: ar.x,
+        y: ar.y
+      }, edgeWidth, edgeThreshold)) {
+        addEle(edge);
+        return true;
+      }
+    } // for compound graphs, hitting edge may actually want a connected node instead (b/c edge may have greater z-index precedence)
+
+
+    if (hasCompounds && near.length > 0) {
+      checkNode(src);
+      checkNode(tgt);
+    }
+  }
 
-                        if (isNode && options.includeNodes) {
-                            var pos = ele.position();
-                            x = pos.x;
-                            y = pos.y;
-
-                            var _w = ele.outerWidth();
-
-                            var halfW = _w / 2;
-                            var h = ele.outerHeight();
-                            var halfH = h / 2; // handle node dimensions
-                            /////////////////////////
-
-                            ex1 = x - halfW;
-                            ex2 = x + halfW;
-                            ey1 = y - halfH;
-                            ey2 = y + halfH;
-                            updateBounds(bounds, ex1, ey1, ex2, ey2);
-                        } else if (isEdge && options.includeEdges) {
-                            if (styleEnabled && !headless) {
-                                var curveStyle = ele.pstyle('curve-style').strValue; // handle edge dimensions (rough box estimate)
-                                //////////////////////////////////////////////
-
-                                ex1 = Math.min(rstyle.srcX, rstyle.midX, rstyle.tgtX);
-                                ex2 = Math.max(rstyle.srcX, rstyle.midX, rstyle.tgtX);
-                                ey1 = Math.min(rstyle.srcY, rstyle.midY, rstyle.tgtY);
-                                ey2 = Math.max(rstyle.srcY, rstyle.midY, rstyle.tgtY); // take into account edge width
-
-                                ex1 -= wHalf;
-                                ex2 += wHalf;
-                                ey1 -= wHalf;
-                                ey2 += wHalf;
-                                updateBounds(bounds, ex1, ey1, ex2, ey2); // precise edges
-                                ////////////////
-
-                                if (curveStyle === 'haystack') {
-                                    var hpts = rstyle.haystackPts;
-
-                                    if (hpts && hpts.length === 2) {
-                                        ex1 = hpts[0].x;
-                                        ey1 = hpts[0].y;
-                                        ex2 = hpts[1].x;
-                                        ey2 = hpts[1].y;
-
-                                        if (ex1 > ex2) {
-                                            var temp = ex1;
-                                            ex1 = ex2;
-                                            ex2 = temp;
-                                        }
-
-                                        if (ey1 > ey2) {
-                                            var _temp = ey1;
-                                            ey1 = ey2;
-                                            ey2 = _temp;
-                                        }
-
-                                        updateBounds(bounds, ex1 - wHalf, ey1 - wHalf, ex2 + wHalf, ey2 + wHalf);
-                                    }
-                                } else if (curveStyle === 'bezier' || curveStyle === 'unbundled-bezier' || curveStyle === 'segments' || curveStyle === 'taxi') {
-                                    var pts;
-
-                                    switch (curveStyle) {
-                                        case 'bezier':
-                                        case 'unbundled-bezier':
-                                            pts = rstyle.bezierPts;
-                                            break;
-
-                                        case 'segments':
-                                        case 'taxi':
-                                            pts = rstyle.linePts;
-                                            break;
-                                    }
-
-                                    if (pts != null) {
-                                        for (var j = 0; j < pts.length; j++) {
-                                            var pt = pts[j];
-                                            ex1 = pt.x - wHalf;
-                                            ex2 = pt.x + wHalf;
-                                            ey1 = pt.y - wHalf;
-                                            ey2 = pt.y + wHalf;
-                                            updateBounds(bounds, ex1, ey1, ex2, ey2);
-                                        }
-                                    }
-                                } // bezier-like or segment-like edge
-
-                            } else {
-                                // headless or style disabled
-                                // fallback on source and target positions
-                                //////////////////////////////////////////
-                                var n1 = ele.source();
-                                var n1pos = n1.position();
-                                var n2 = ele.target();
-                                var n2pos = n2.position();
-                                ex1 = n1pos.x;
-                                ex2 = n2pos.x;
-                                ey1 = n1pos.y;
-                                ey2 = n2pos.y;
-
-                                if (ex1 > ex2) {
-                                    var _temp2 = ex1;
-                                    ex1 = ex2;
-                                    ex2 = _temp2;
-                                }
-
-                                if (ey1 > ey2) {
-                                    var _temp3 = ey1;
-                                    ey1 = ey2;
-                                    ey2 = _temp3;
-                                } // take into account edge width
-
-
-                                ex1 -= wHalf;
-                                ex2 += wHalf;
-                                ey1 -= wHalf;
-                                ey2 += wHalf;
-                                updateBounds(bounds, ex1, ey1, ex2, ey2);
-                            } // headless or style disabled
-
-                        } // edges
-                        // handle edge arrow size
-                        /////////////////////////
-
-
-                        if (styleEnabled && options.includeEdges && isEdge) {
-                            updateBoundsFromArrow(bounds, ele, 'mid-source');
-                            updateBoundsFromArrow(bounds, ele, 'mid-target');
-                            updateBoundsFromArrow(bounds, ele, 'source');
-                            updateBoundsFromArrow(bounds, ele, 'target');
-                        } // ghost
-                        ////////
-
-
-                        if (styleEnabled) {
-                            var ghost = ele.pstyle('ghost').value === 'yes';
-
-                            if (ghost) {
-                                var gx = ele.pstyle('ghost-offset-x').pfValue;
-                                var gy = ele.pstyle('ghost-offset-y').pfValue;
-                                updateBounds(bounds, bounds.x1 + gx, bounds.y1 + gy, bounds.x2 + gx, bounds.y2 + gy);
-                            }
-                        } // always store the body bounds separately from the labels
-
-
-                        var bbBody = _p.bodyBounds = _p.bodyBounds || {};
-                        assignBoundingBox(bbBody, bounds);
-                        expandBoundingBoxSides(bbBody, manualExpansion);
-                        expandBoundingBox(bbBody, 1); // expand to work around browser dimension inaccuracies
-                        // overlay
-                        //////////
-
-                        if (styleEnabled) {
-                            ex1 = bounds.x1;
-                            ex2 = bounds.x2;
-                            ey1 = bounds.y1;
-                            ey2 = bounds.y2;
-                            updateBounds(bounds, ex1 - overlayPadding, ey1 - overlayPadding, ex2 + overlayPadding, ey2 + overlayPadding);
-                        } // always store the body bounds separately from the labels
-
-
-                        var bbOverlay = _p.overlayBounds = _p.overlayBounds || {};
-                        assignBoundingBox(bbOverlay, bounds);
-                        expandBoundingBoxSides(bbOverlay, manualExpansion);
-                        expandBoundingBox(bbOverlay, 1); // expand to work around browser dimension inaccuracies
-                        // handle label dimensions
-                        //////////////////////////
-
-                        var bbLabels = _p.labelBounds = _p.labelBounds || {};
-
-                        if (bbLabels.all != null) {
-                            clearBoundingBox(bbLabels.all);
-                        } else {
-                            bbLabels.all = makeBoundingBox();
-                        }
+  function preprop(obj, name, pre) {
+    return getPrefixedProperty(obj, name, pre);
+  }
 
-                        if (styleEnabled && options.includeLabels) {
-                            if (options.includeMainLabels) {
-                                updateBoundsFromLabel(bounds, ele, null);
-                            }
+  function checkLabel(ele, prefix) {
+    var _p = ele._private;
+    var th = labelThreshold;
+    var prefixDash;
 
-                            if (isEdge) {
-                                if (options.includeSourceLabels) {
-                                    updateBoundsFromLabel(bounds, ele, 'source');
-                                }
+    if (prefix) {
+      prefixDash = prefix + '-';
+    } else {
+      prefixDash = '';
+    }
 
-                                if (options.includeTargetLabels) {
-                                    updateBoundsFromLabel(bounds, ele, 'target');
-                                }
-                            }
-                        } // style enabled for labels
+    ele.boundingBox();
+    var bb = _p.labelBounds[prefix || 'main'];
+    var text = ele.pstyle(prefixDash + 'label').value;
+    var eventsEnabled = ele.pstyle('text-events').strValue === 'yes';
 
-                    } // if displayed
+    if (!eventsEnabled || !text) {
+      return;
+    }
 
+    var rstyle = _p.rstyle;
+    var lx = preprop(rstyle, 'labelX', prefix);
+    var ly = preprop(rstyle, 'labelY', prefix);
+    var theta = preprop(_p.rscratch, 'labelAngle', prefix);
+    var lx1 = bb.x1 - th;
+    var lx2 = bb.x2 + th;
+    var ly1 = bb.y1 - th;
+    var ly2 = bb.y2 + th;
+
+    if (theta) {
+      var cos = Math.cos(theta);
+      var sin = Math.sin(theta);
+
+      var rotate = function rotate(x, y) {
+        x = x - lx;
+        y = y - ly;
+        return {
+          x: x * cos - y * sin + lx,
+          y: x * sin + y * cos + ly
+        };
+      };
+
+      var px1y1 = rotate(lx1, ly1);
+      var px1y2 = rotate(lx1, ly2);
+      var px2y1 = rotate(lx2, ly1);
+      var px2y2 = rotate(lx2, ly2);
+      var points = [px1y1.x, px1y1.y, px2y1.x, px2y1.y, px2y2.x, px2y2.y, px1y2.x, px1y2.y];
+
+      if (pointInsidePolygonPoints(x, y, points)) {
+        addEle(ele);
+        return true;
+      }
+    } else {
+      // do a cheaper bb check
+      if (inBoundingBox(bb, x, y)) {
+        addEle(ele);
+        return true;
+      }
+    }
+  }
 
-                    bounds.x1 = noninf(bounds.x1);
-                    bounds.y1 = noninf(bounds.y1);
-                    bounds.x2 = noninf(bounds.x2);
-                    bounds.y2 = noninf(bounds.y2);
-                    bounds.w = noninf(bounds.x2 - bounds.x1);
-                    bounds.h = noninf(bounds.y2 - bounds.y1);
+  for (var i = eles.length - 1; i >= 0; i--) {
+    // reverse order for precedence
+    var ele = eles[i];
 
-                    if (bounds.w > 0 && bounds.h > 0 && displayed) {
-                        expandBoundingBoxSides(bounds, manualExpansion); // expand bounds by 1 because antialiasing can increase the visual/effective size by 1 on all sides
+    if (ele.isNode()) {
+      checkNode(ele) || checkLabel(ele);
+    } else {
+      // then edge
+      checkEdge(ele) || checkLabel(ele) || checkLabel(ele, 'source') || checkLabel(ele, 'target');
+    }
+  }
 
-                        expandBoundingBox(bounds, 1);
-                    }
+  return near;
+}; // 'Give me everything from this box'
+
+
+BRp$1.getAllInBox = function (x1, y1, x2, y2) {
+  var eles = this.getCachedZSortedEles().interactive;
+  var box = [];
+  var x1c = Math.min(x1, x2);
+  var x2c = Math.max(x1, x2);
+  var y1c = Math.min(y1, y2);
+  var y2c = Math.max(y1, y2);
+  x1 = x1c;
+  x2 = x2c;
+  y1 = y1c;
+  y2 = y2c;
+  var boxBb = makeBoundingBox({
+    x1: x1,
+    y1: y1,
+    x2: x2,
+    y2: y2
+  });
+
+  for (var e = 0; e < eles.length; e++) {
+    var ele = eles[e];
+
+    if (ele.isNode()) {
+      var node = ele;
+      var nodeBb = node.boundingBox({
+        includeNodes: true,
+        includeEdges: false,
+        includeLabels: false
+      });
 
-                    return bounds;
-                };
+      if (boundingBoxesIntersect(boxBb, nodeBb) && !boundingBoxInBoundingBox(nodeBb, boxBb)) {
+        box.push(node);
+      }
+    } else {
+      var edge = ele;
+      var _p = edge._private;
+      var rs = _p.rscratch;
+
+      if (rs.startX != null && rs.startY != null && !inBoundingBox(boxBb, rs.startX, rs.startY)) {
+        continue;
+      }
+
+      if (rs.endX != null && rs.endY != null && !inBoundingBox(boxBb, rs.endX, rs.endY)) {
+        continue;
+      }
+
+      if (rs.edgeType === 'bezier' || rs.edgeType === 'multibezier' || rs.edgeType === 'self' || rs.edgeType === 'compound' || rs.edgeType === 'segments' || rs.edgeType === 'haystack') {
+        var pts = _p.rstyle.bezierPts || _p.rstyle.linePts || _p.rstyle.haystackPts;
+        var allInside = true;
+
+        for (var i = 0; i < pts.length; i++) {
+          if (!pointInBoundingBox(boxBb, pts[i])) {
+            allInside = false;
+            break;
+          }
+        }
 
-                var getKey = function getKey(opts) {
-                    var i = 0;
-
-                    var tf = function tf(val) {
-                        return (val ? 1 : 0) << i++;
-                    };
-
-                    var key = 0;
-                    key += tf(opts.incudeNodes);
-                    key += tf(opts.includeEdges);
-                    key += tf(opts.includeLabels);
-                    key += tf(opts.includeMainLabels);
-                    key += tf(opts.includeSourceLabels);
-                    key += tf(opts.includeTargetLabels);
-                    key += tf(opts.includeOverlays);
-                    return key;
-                };
+        if (allInside) {
+          box.push(edge);
+        }
+      } else if (rs.edgeType === 'haystack' || rs.edgeType === 'straight') {
+        box.push(edge);
+      }
+    }
+  }
 
-                var getBoundingBoxPosKey = function getBoundingBoxPosKey(ele) {
-                    if (ele.isEdge()) {
-                        var p1 = ele.source().position();
-                        var p2 = ele.target().position();
+  return box;
+};
+
+var BRp$2 = {};
+
+BRp$2.calculateArrowAngles = function (edge) {
+  var rs = edge._private.rscratch;
+  var isHaystack = rs.edgeType === 'haystack';
+  var isBezier = rs.edgeType === 'bezier';
+  var isMultibezier = rs.edgeType === 'multibezier';
+  var isSegments = rs.edgeType === 'segments';
+  var isCompound = rs.edgeType === 'compound';
+  var isSelf = rs.edgeType === 'self'; // Displacement gives direction for arrowhead orientation
+
+  var dispX, dispY;
+  var startX, startY, endX, endY, midX, midY;
+
+  if (isHaystack) {
+    startX = rs.haystackPts[0];
+    startY = rs.haystackPts[1];
+    endX = rs.haystackPts[2];
+    endY = rs.haystackPts[3];
+  } else {
+    startX = rs.arrowStartX;
+    startY = rs.arrowStartY;
+    endX = rs.arrowEndX;
+    endY = rs.arrowEndY;
+  }
 
-                        var r = function r(x) {
-                            return Math.round(x);
-                        };
+  midX = rs.midX;
+  midY = rs.midY; // source
+  //
+
+  if (isSegments) {
+    dispX = startX - rs.segpts[0];
+    dispY = startY - rs.segpts[1];
+  } else if (isMultibezier || isCompound || isSelf || isBezier) {
+    var pts = rs.allpts;
+    var bX = qbezierAt(pts[0], pts[2], pts[4], 0.1);
+    var bY = qbezierAt(pts[1], pts[3], pts[5], 0.1);
+    dispX = startX - bX;
+    dispY = startY - bY;
+  } else {
+    dispX = startX - midX;
+    dispY = startY - midY;
+  }
 
-                        return hashIntsArray([r(p1.x), r(p1.y), r(p2.x), r(p2.y)]);
-                    } else {
-                        return 0;
-                    }
-                };
+  rs.srcArrowAngle = getAngleFromDisp(dispX, dispY); // mid target
+  //
 
-                var cachedBoundingBoxImpl = function cachedBoundingBoxImpl(ele, opts) {
-                    var _p = ele._private;
-                    var bb;
-                    var isEdge = ele.isEdge();
-                    var key = opts == null ? defBbOptsKey : getKey(opts);
-                    var usingDefOpts = key === defBbOptsKey;
-                    var currPosKey = getBoundingBoxPosKey(ele);
-                    var isPosKeySame = _p.bbCachePosKey === currPosKey;
-                    var useCache = opts.useCache && isPosKeySame;
-
-                    var isDirty = function isDirty(ele) {
-                        return ele._private.bbCache == null || ele._private.styleDirty;
-                    };
-
-                    var needRecalc = !useCache || isDirty(ele) || isEdge && isDirty(ele.source()) || isDirty(ele.target());
-
-                    if (needRecalc) {
-                        if (!isPosKeySame) {
-                            ele.recalculateRenderedStyle(useCache);
-                        }
+  var midX = rs.midX;
+  var midY = rs.midY;
 
-                        bb = boundingBoxImpl(ele, defBbOpts);
-                        _p.bbCache = bb;
-                        _p.bbCacheShift.x = _p.bbCacheShift.y = 0;
-                        _p.bbCachePosKey = currPosKey;
-                    } else {
-                        bb = _p.bbCache;
-                    }
+  if (isHaystack) {
+    midX = (startX + endX) / 2;
+    midY = (startY + endY) / 2;
+  }
 
-                    if (!needRecalc && (_p.bbCacheShift.x !== 0 || _p.bbCacheShift.y !== 0)) {
-                        var shift = assignShiftToBoundingBox;
-                        var delta = _p.bbCacheShift;
+  dispX = endX - startX;
+  dispY = endY - startY;
+
+  if (isSegments) {
+    var pts = rs.allpts;
+
+    if (pts.length / 2 % 2 === 0) {
+      var i2 = pts.length / 2;
+      var i1 = i2 - 2;
+      dispX = pts[i2] - pts[i1];
+      dispY = pts[i2 + 1] - pts[i1 + 1];
+    } else {
+      var i2 = pts.length / 2 - 1;
+      var i1 = i2 - 2;
+      var i3 = i2 + 2;
+      dispX = pts[i2] - pts[i1];
+      dispY = pts[i2 + 1] - pts[i1 + 1];
+    }
+  } else if (isMultibezier || isCompound || isSelf) {
+    var pts = rs.allpts;
+    var cpts = rs.ctrlpts;
+    var bp0x, bp0y;
+    var bp1x, bp1y;
+
+    if (cpts.length / 2 % 2 === 0) {
+      var p0 = pts.length / 2 - 1; // startpt
+
+      var ic = p0 + 2;
+      var p1 = ic + 2;
+      bp0x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.0);
+      bp0y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.0);
+      bp1x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.0001);
+      bp1y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.0001);
+    } else {
+      var ic = pts.length / 2 - 1; // ctrpt
+
+      var p0 = ic - 2; // startpt
+
+      var p1 = ic + 2; // endpt
+
+      bp0x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.4999);
+      bp0y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.4999);
+      bp1x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.5);
+      bp1y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.5);
+    }
 
-                        var safeShift = function safeShift(bb, delta) {
-                            if (bb != null) {
-                                shift(bb, delta);
-                            }
-                        };
-
-                        shift(bb, delta);
-                        var bodyBounds = _p.bodyBounds,
-                            overlayBounds = _p.overlayBounds,
-                            labelBounds = _p.labelBounds,
-                            arrowBounds = _p.arrowBounds;
-                        safeShift(bodyBounds, delta);
-                        safeShift(overlayBounds, delta);
-
-                        if (arrowBounds != null) {
-                            safeShift(arrowBounds.source, delta);
-                            safeShift(arrowBounds.target, delta);
-                            safeShift(arrowBounds['mid-source'], delta);
-                            safeShift(arrowBounds['mid-target'], delta);
-                        }
+    dispX = bp1x - bp0x;
+    dispY = bp1y - bp0y;
+  }
 
-                        if (labelBounds != null) {
-                            safeShift(labelBounds.main, delta);
-                            safeShift(labelBounds.all, delta);
-                            safeShift(labelBounds.source, delta);
-                            safeShift(labelBounds.target, delta);
-                        }
-                    } // always reset the shift, because we either applied the shift or cleared it by doing a fresh recalc
+  rs.midtgtArrowAngle = getAngleFromDisp(dispX, dispY);
+  rs.midDispX = dispX;
+  rs.midDispY = dispY; // mid source
+  //
 
+  dispX *= -1;
+  dispY *= -1;
 
-                    _p.bbCacheShift.x = _p.bbCacheShift.y = 0; // not using def opts => need to build up bb from combination of sub bbs
+  if (isSegments) {
+    var pts = rs.allpts;
 
-                    if (!usingDefOpts) {
-                        var isNode = ele.isNode();
-                        bb = makeBoundingBox();
+    if (pts.length / 2 % 2 === 0) ; else {
+      var i2 = pts.length / 2 - 1;
+      var i3 = i2 + 2;
+      dispX = -(pts[i3] - pts[i2]);
+      dispY = -(pts[i3 + 1] - pts[i2 + 1]);
+    }
+  }
 
-                        if (opts.includeNodes && isNode || opts.includeEdges && !isNode) {
-                            if (opts.includeOverlays) {
-                                updateBoundsFromBox(bb, _p.overlayBounds);
-                            } else {
-                                updateBoundsFromBox(bb, _p.bodyBounds);
-                            }
-                        }
+  rs.midsrcArrowAngle = getAngleFromDisp(dispX, dispY); // target
+  //
+
+  if (isSegments) {
+    dispX = endX - rs.segpts[rs.segpts.length - 2];
+    dispY = endY - rs.segpts[rs.segpts.length - 1];
+  } else if (isMultibezier || isCompound || isSelf || isBezier) {
+    var pts = rs.allpts;
+    var l = pts.length;
+    var bX = qbezierAt(pts[l - 6], pts[l - 4], pts[l - 2], 0.9);
+    var bY = qbezierAt(pts[l - 5], pts[l - 3], pts[l - 1], 0.9);
+    dispX = endX - bX;
+    dispY = endY - bY;
+  } else {
+    dispX = endX - midX;
+    dispY = endY - midY;
+  }
 
-                        if (opts.includeLabels) {
-                            if (opts.includeMainLabels && (!isEdge || opts.includeSourceLabels && opts.includeTargetLabels)) {
-                                updateBoundsFromBox(bb, _p.labelBounds.all);
-                            } else {
-                                if (opts.includeMainLabels) {
-                                    updateBoundsFromBox(bb, _p.labelBounds.mainRot);
-                                }
-
-                                if (opts.includeSourceLabels) {
-                                    updateBoundsFromBox(bb, _p.labelBounds.sourceRot);
-                                }
-
-                                if (opts.includeTargetLabels) {
-                                    updateBoundsFromBox(bb, _p.labelBounds.targetRot);
-                                }
-                            }
-                        }
+  rs.tgtArrowAngle = getAngleFromDisp(dispX, dispY);
+};
 
-                        bb.w = bb.x2 - bb.x1;
-                        bb.h = bb.y2 - bb.y1;
-                    }
+BRp$2.getArrowWidth = BRp$2.getArrowHeight = function (edgeWidth, scale) {
+  var cache = this.arrowWidthCache = this.arrowWidthCache || {};
+  var cachedVal = cache[edgeWidth + ', ' + scale];
 
-                    return bb;
-                };
+  if (cachedVal) {
+    return cachedVal;
+  }
 
-                var defBbOpts = {
-                    includeNodes: true,
-                    includeEdges: true,
-                    includeLabels: true,
-                    includeMainLabels: true,
-                    includeSourceLabels: true,
-                    includeTargetLabels: true,
-                    includeOverlays: true,
-                    useCache: true
-                };
-                var defBbOptsKey = getKey(defBbOpts);
-                var filledBbOpts = defaults(defBbOpts);
-
-                elesfn$k.boundingBox = function (options) {
-                    var bounds; // the main usecase is ele.boundingBox() for a single element with no/def options
-                    // specified s.t. the cache is used, so check for this case to make it faster by
-                    // avoiding the overhead of the rest of the function
-
-                    if (this.length === 1 && this[0]._private.bbCache != null && !this[0]._private.styleDirty && (options === undefined || options.useCache === undefined || options.useCache === true)) {
-                        if (options === undefined) {
-                            options = defBbOpts;
-                        } else {
-                            options = filledBbOpts(options);
-                        }
+  cachedVal = Math.max(Math.pow(edgeWidth * 13.37, 0.9), 29) * scale;
+  cache[edgeWidth + ', ' + scale] = cachedVal;
+  return cachedVal;
+};
+
+var BRp$3 = {};
+
+BRp$3.findHaystackPoints = function (edges) {
+  for (var i = 0; i < edges.length; i++) {
+    var edge = edges[i];
+    var _p = edge._private;
+    var rs = _p.rscratch;
+
+    if (!rs.haystack) {
+      var angle = Math.random() * 2 * Math.PI;
+      rs.source = {
+        x: Math.cos(angle),
+        y: Math.sin(angle)
+      };
+      angle = Math.random() * 2 * Math.PI;
+      rs.target = {
+        x: Math.cos(angle),
+        y: Math.sin(angle)
+      };
+    }
 
-                        bounds = cachedBoundingBoxImpl(this[0], options);
-                    } else {
-                        bounds = makeBoundingBox();
-                        options = options || defBbOpts;
-                        var opts = filledBbOpts(options);
-                        var eles = this;
-                        var cy = eles.cy();
-                        var styleEnabled = cy.styleEnabled();
-
-                        if (styleEnabled) {
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                var _p = ele._private;
-                                var currPosKey = getBoundingBoxPosKey(ele);
-                                var isPosKeySame = _p.bbCachePosKey === currPosKey;
-                                var useCache = opts.useCache && isPosKeySame && !_p.styleDirty;
-                                ele.recalculateRenderedStyle(useCache);
-                            }
-                        }
+    var src = _p.source;
+    var tgt = _p.target;
+    var srcPos = src.position();
+    var tgtPos = tgt.position();
+    var srcW = src.width();
+    var tgtW = tgt.width();
+    var srcH = src.height();
+    var tgtH = tgt.height();
+    var radius = edge.pstyle('haystack-radius').value;
+    var halfRadius = radius / 2; // b/c have to half width/height
+
+    rs.haystackPts = rs.allpts = [rs.source.x * srcW * halfRadius + srcPos.x, rs.source.y * srcH * halfRadius + srcPos.y, rs.target.x * tgtW * halfRadius + tgtPos.x, rs.target.y * tgtH * halfRadius + tgtPos.y];
+    rs.midX = (rs.allpts[0] + rs.allpts[2]) / 2;
+    rs.midY = (rs.allpts[1] + rs.allpts[3]) / 2; // always override as haystack in case set to different type previously
+
+    rs.edgeType = 'haystack';
+    rs.haystack = true;
+    this.storeEdgeProjections(edge);
+    this.calculateArrowAngles(edge);
+    this.recalculateEdgeLabelProjections(edge);
+    this.calculateLabelAngles(edge);
+  }
+};
+
+BRp$3.findSegmentsPoints = function (edge, pairInfo) {
+  // Segments (multiple straight lines)
+  var rs = edge._private.rscratch;
+  var posPts = pairInfo.posPts,
+      intersectionPts = pairInfo.intersectionPts,
+      vectorNormInverse = pairInfo.vectorNormInverse;
+  var edgeDistances = edge.pstyle('edge-distances').value;
+  var segmentWs = edge.pstyle('segment-weights');
+  var segmentDs = edge.pstyle('segment-distances');
+  var segmentsN = Math.min(segmentWs.pfValue.length, segmentDs.pfValue.length);
+  rs.edgeType = 'segments';
+  rs.segpts = [];
+
+  for (var s = 0; s < segmentsN; s++) {
+    var w = segmentWs.pfValue[s];
+    var d = segmentDs.pfValue[s];
+    var w1 = 1 - w;
+    var w2 = w;
+    var midptPts = edgeDistances === 'node-position' ? posPts : intersectionPts;
+    var adjustedMidpt = {
+      x: midptPts.x1 * w1 + midptPts.x2 * w2,
+      y: midptPts.y1 * w1 + midptPts.y2 * w2
+    };
+    rs.segpts.push(adjustedMidpt.x + vectorNormInverse.x * d, adjustedMidpt.y + vectorNormInverse.y * d);
+  }
+};
+
+BRp$3.findLoopPoints = function (edge, pairInfo, i, edgeIsUnbundled) {
+  // Self-edge
+  var rs = edge._private.rscratch;
+  var dirCounts = pairInfo.dirCounts,
+      srcPos = pairInfo.srcPos;
+  var ctrlptDists = edge.pstyle('control-point-distances');
+  var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
+  var loopDir = edge.pstyle('loop-direction').pfValue;
+  var loopSwp = edge.pstyle('loop-sweep').pfValue;
+  var stepSize = edge.pstyle('control-point-step-size').pfValue;
+  rs.edgeType = 'self';
+  var j = i;
+  var loopDist = stepSize;
+
+  if (edgeIsUnbundled) {
+    j = 0;
+    loopDist = ctrlptDist;
+  }
 
-                        this.updateCompoundBounds();
+  var loopAngle = loopDir - Math.PI / 2;
+  var outAngle = loopAngle - loopSwp / 2;
+  var inAngle = loopAngle + loopSwp / 2; // increase by step size for overlapping loops, keyed on direction and sweep values
+
+  var dc = String(loopDir + '_' + loopSwp);
+  j = dirCounts[dc] === undefined ? dirCounts[dc] = 0 : ++dirCounts[dc];
+  rs.ctrlpts = [srcPos.x + Math.cos(outAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.y + Math.sin(outAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.x + Math.cos(inAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.y + Math.sin(inAngle) * 1.4 * loopDist * (j / 3 + 1)];
+};
+
+BRp$3.findCompoundLoopPoints = function (edge, pairInfo, i, edgeIsUnbundled) {
+  // Compound edge
+  var rs = edge._private.rscratch;
+  rs.edgeType = 'compound';
+  var srcPos = pairInfo.srcPos,
+      tgtPos = pairInfo.tgtPos,
+      srcW = pairInfo.srcW,
+      srcH = pairInfo.srcH,
+      tgtW = pairInfo.tgtW,
+      tgtH = pairInfo.tgtH;
+  var stepSize = edge.pstyle('control-point-step-size').pfValue;
+  var ctrlptDists = edge.pstyle('control-point-distances');
+  var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
+  var j = i;
+  var loopDist = stepSize;
+
+  if (edgeIsUnbundled) {
+    j = 0;
+    loopDist = ctrlptDist;
+  }
 
-                        for (var _i = 0; _i < eles.length; _i++) {
-                            var _ele = eles[_i];
-                            updateBoundsFromBox(bounds, cachedBoundingBoxImpl(_ele, opts));
-                        }
-                    }
+  var loopW = 50;
+  var loopaPos = {
+    x: srcPos.x - srcW / 2,
+    y: srcPos.y - srcH / 2
+  };
+  var loopbPos = {
+    x: tgtPos.x - tgtW / 2,
+    y: tgtPos.y - tgtH / 2
+  };
+  var loopPos = {
+    x: Math.min(loopaPos.x, loopbPos.x),
+    y: Math.min(loopaPos.y, loopbPos.y)
+  }; // avoids cases with impossible beziers
+
+  var minCompoundStretch = 0.5;
+  var compoundStretchA = Math.max(minCompoundStretch, Math.log(srcW * 0.01));
+  var compoundStretchB = Math.max(minCompoundStretch, Math.log(tgtW * 0.01));
+  rs.ctrlpts = [loopPos.x, loopPos.y - (1 + Math.pow(loopW, 1.12) / 100) * loopDist * (j / 3 + 1) * compoundStretchA, loopPos.x - (1 + Math.pow(loopW, 1.12) / 100) * loopDist * (j / 3 + 1) * compoundStretchB, loopPos.y];
+};
+
+BRp$3.findStraightEdgePoints = function (edge) {
+  // Straight edge within bundle
+  edge._private.rscratch.edgeType = 'straight';
+};
+
+BRp$3.findBezierPoints = function (edge, pairInfo, i, edgeIsUnbundled, edgeIsSwapped) {
+  var rs = edge._private.rscratch;
+  var vectorNormInverse = pairInfo.vectorNormInverse,
+      posPts = pairInfo.posPts,
+      intersectionPts = pairInfo.intersectionPts;
+  var edgeDistances = edge.pstyle('edge-distances').value;
+  var stepSize = edge.pstyle('control-point-step-size').pfValue;
+  var ctrlptDists = edge.pstyle('control-point-distances');
+  var ctrlptWs = edge.pstyle('control-point-weights');
+  var bezierN = ctrlptDists && ctrlptWs ? Math.min(ctrlptDists.value.length, ctrlptWs.value.length) : 1;
+  var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
+  var ctrlptWeight = ctrlptWs.value[0]; // (Multi)bezier
+
+  var multi = edgeIsUnbundled;
+  rs.edgeType = multi ? 'multibezier' : 'bezier';
+  rs.ctrlpts = [];
+
+  for (var b = 0; b < bezierN; b++) {
+    var normctrlptDist = (0.5 - pairInfo.eles.length / 2 + i) * stepSize * (edgeIsSwapped ? -1 : 1);
+    var manctrlptDist = void 0;
+    var sign = signum(normctrlptDist);
+
+    if (multi) {
+      ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[b] : stepSize; // fall back on step size
+
+      ctrlptWeight = ctrlptWs.value[b];
+    }
 
-                    bounds.x1 = noninf(bounds.x1);
-                    bounds.y1 = noninf(bounds.y1);
-                    bounds.x2 = noninf(bounds.x2);
-                    bounds.y2 = noninf(bounds.y2);
-                    bounds.w = noninf(bounds.x2 - bounds.x1);
-                    bounds.h = noninf(bounds.y2 - bounds.y1);
-                    return bounds;
-                };
+    if (edgeIsUnbundled) {
+      // multi or single unbundled
+      manctrlptDist = ctrlptDist;
+    } else {
+      manctrlptDist = ctrlptDist !== undefined ? sign * ctrlptDist : undefined;
+    }
 
-                elesfn$k.dirtyBoundingBoxCache = function () {
-                    for (var i = 0; i < this.length; i++) {
-                        var _p = this[i]._private;
-                        _p.bbCache = null;
-                        _p.bbCacheShift.x = _p.bbCacheShift.y = 0;
-                        _p.bbCachePosKey = null;
-                        _p.bodyBounds = null;
-                        _p.overlayBounds = null;
-                        _p.labelBounds.all = null;
-                        _p.labelBounds.source = null;
-                        _p.labelBounds.target = null;
-                        _p.labelBounds.main = null;
-                        _p.labelBounds.sourceRot = null;
-                        _p.labelBounds.targetRot = null;
-                        _p.labelBounds.mainRot = null;
-                        _p.arrowBounds.source = null;
-                        _p.arrowBounds.target = null;
-                        _p.arrowBounds['mid-source'] = null;
-                        _p.arrowBounds['mid-target'] = null;
-                    }
+    var distanceFromMidpoint = manctrlptDist !== undefined ? manctrlptDist : normctrlptDist;
+    var w1 = 1 - ctrlptWeight;
+    var w2 = ctrlptWeight;
+    var midptPts = edgeDistances === 'node-position' ? posPts : intersectionPts;
+    var adjustedMidpt = {
+      x: midptPts.x1 * w1 + midptPts.x2 * w2,
+      y: midptPts.y1 * w1 + midptPts.y2 * w2
+    };
+    rs.ctrlpts.push(adjustedMidpt.x + vectorNormInverse.x * distanceFromMidpoint, adjustedMidpt.y + vectorNormInverse.y * distanceFromMidpoint);
+  }
+};
+
+BRp$3.findTaxiPoints = function (edge, pairInfo) {
+  // Taxicab geometry with two turns maximum
+  var rs = edge._private.rscratch;
+  rs.edgeType = 'segments';
+  var VERTICAL = 'vertical';
+  var HORIZONTAL = 'horizontal';
+  var LEFTWARD = 'leftward';
+  var RIGHTWARD = 'rightward';
+  var DOWNWARD = 'downward';
+  var UPWARD = 'upward';
+  var AUTO = 'auto';
+  var posPts = pairInfo.posPts,
+      srcW = pairInfo.srcW,
+      srcH = pairInfo.srcH,
+      tgtW = pairInfo.tgtW,
+      tgtH = pairInfo.tgtH;
+  var edgeDistances = edge.pstyle('edge-distances').value;
+  var dIncludesNodeBody = edgeDistances !== 'node-position';
+  var taxiDir = edge.pstyle('taxi-direction').value;
+  var rawTaxiDir = taxiDir; // unprocessed value
+
+  var taxiTurn = edge.pstyle('taxi-turn');
+  var turnIsPercent = taxiTurn.units === '%';
+  var taxiTurnPfVal = taxiTurn.pfValue;
+  var turnIsNegative = taxiTurnPfVal < 0; // i.e. from target side
+
+  var minD = edge.pstyle('taxi-turn-min-distance').pfValue;
+  var dw = dIncludesNodeBody ? (srcW + tgtW) / 2 : 0;
+  var dh = dIncludesNodeBody ? (srcH + tgtH) / 2 : 0;
+  var pdx = posPts.x2 - posPts.x1;
+  var pdy = posPts.y2 - posPts.y1; // take away the effective w/h from the magnitude of the delta value
+
+  var subDWH = function subDWH(dxy, dwh) {
+    if (dxy > 0) {
+      return Math.max(dxy - dwh, 0);
+    } else {
+      return Math.min(dxy + dwh, 0);
+    }
+  };
+
+  var dx = subDWH(pdx, dw);
+  var dy = subDWH(pdy, dh);
+  var isExplicitDir = false;
+
+  if (rawTaxiDir === AUTO) {
+    taxiDir = Math.abs(dx) > Math.abs(dy) ? HORIZONTAL : VERTICAL;
+  } else if (rawTaxiDir === UPWARD || rawTaxiDir === DOWNWARD) {
+    taxiDir = VERTICAL;
+    isExplicitDir = true;
+  } else if (rawTaxiDir === LEFTWARD || rawTaxiDir === RIGHTWARD) {
+    taxiDir = HORIZONTAL;
+    isExplicitDir = true;
+  }
 
-                    this.emitAndNotify('bounds');
-                    return this;
-                };
+  var isVert = taxiDir === VERTICAL;
+  var l = isVert ? dy : dx;
+  var pl = isVert ? pdy : pdx;
+  var sgnL = signum(pl);
+  var forcedDir = false;
+
+  if (!(isExplicitDir && (turnIsPercent || turnIsNegative)) // forcing in this case would cause weird growing in the opposite direction
+  && (rawTaxiDir === DOWNWARD && pl < 0 || rawTaxiDir === UPWARD && pl > 0 || rawTaxiDir === LEFTWARD && pl > 0 || rawTaxiDir === RIGHTWARD && pl < 0)) {
+    sgnL *= -1;
+    l = sgnL * Math.abs(l);
+    forcedDir = true;
+  }
 
-                elesfn$k.shiftCachedBoundingBox = function (delta) {
-                    for (var i = 0; i < this.length; i++) {
-                        var ele = this[i];
-                        var _p = ele._private;
-                        var bb = _p.bbCache;
+  var d;
 
-                        if (bb != null) {
-                            _p.bbCacheShift.x += delta.x;
-                            _p.bbCacheShift.y += delta.y;
-                        }
-                    }
+  if (turnIsPercent) {
+    var p = taxiTurnPfVal < 0 ? 1 + taxiTurnPfVal : taxiTurnPfVal;
+    d = p * l;
+  } else {
+    var k = taxiTurnPfVal < 0 ? l : 0;
+    d = k + taxiTurnPfVal * sgnL;
+  }
 
-                    this.emitAndNotify('bounds');
-                    return this;
-                }; // private helper to get bounding box for custom node positions
-// - good for perf in certain cases but currently requires dirtying the rendered style
-// - would be better to not modify the nodes but the nodes are read directly everywhere in the renderer...
-// - try to use for only things like discrete layouts where the node position would change anyway
+  var getIsTooClose = function getIsTooClose(d) {
+    return Math.abs(d) < minD || Math.abs(d) >= Math.abs(l);
+  };
+
+  var isTooCloseSrc = getIsTooClose(d);
+  var isTooCloseTgt = getIsTooClose(Math.abs(l) - Math.abs(d));
+  var isTooClose = isTooCloseSrc || isTooCloseTgt;
+
+  if (isTooClose && !forcedDir) {
+    // non-ideal routing
+    if (isVert) {
+      // vertical fallbacks
+      var lShapeInsideSrc = Math.abs(pl) <= srcH / 2;
+      var lShapeInsideTgt = Math.abs(pdx) <= tgtW / 2;
+
+      if (lShapeInsideSrc) {
+        // horizontal Z-shape (direction not respected)
+        var x = (posPts.x1 + posPts.x2) / 2;
+        var y1 = posPts.y1,
+            y2 = posPts.y2;
+        rs.segpts = [x, y1, x, y2];
+      } else if (lShapeInsideTgt) {
+        // vertical Z-shape (distance not respected)
+        var y = (posPts.y1 + posPts.y2) / 2;
+        var x1 = posPts.x1,
+            x2 = posPts.x2;
+        rs.segpts = [x1, y, x2, y];
+      } else {
+        // L-shape fallback (turn distance not respected, but works well with tree siblings)
+        rs.segpts = [posPts.x1, posPts.y2];
+      }
+    } else {
+      // horizontal fallbacks
+      var _lShapeInsideSrc = Math.abs(pl) <= srcW / 2;
+
+      var _lShapeInsideTgt = Math.abs(pdy) <= tgtH / 2;
+
+      if (_lShapeInsideSrc) {
+        // vertical Z-shape (direction not respected)
+        var _y = (posPts.y1 + posPts.y2) / 2;
+
+        var _x = posPts.x1,
+            _x2 = posPts.x2;
+        rs.segpts = [_x, _y, _x2, _y];
+      } else if (_lShapeInsideTgt) {
+        // horizontal Z-shape (turn distance not respected)
+        var _x3 = (posPts.x1 + posPts.x2) / 2;
+
+        var _y2 = posPts.y1,
+            _y3 = posPts.y2;
+        rs.segpts = [_x3, _y2, _x3, _y3];
+      } else {
+        // L-shape (turn distance not respected, but works well for tree siblings)
+        rs.segpts = [posPts.x2, posPts.y1];
+      }
+    }
+  } else {
+    // ideal routing
+    if (isVert) {
+      var _y4 = posPts.y1 + d + (dIncludesNodeBody ? srcH / 2 * sgnL : 0);
+
+      var _x4 = posPts.x1,
+          _x5 = posPts.x2;
+      rs.segpts = [_x4, _y4, _x5, _y4];
+    } else {
+      // horizontal
+      var _x6 = posPts.x1 + d + (dIncludesNodeBody ? srcW / 2 * sgnL : 0);
+
+      var _y5 = posPts.y1,
+          _y6 = posPts.y2;
+      rs.segpts = [_x6, _y5, _x6, _y6];
+    }
+  }
+};
+
+BRp$3.tryToCorrectInvalidPoints = function (edge, pairInfo) {
+  var rs = edge._private.rscratch; // can only correct beziers for now...
+
+  if (rs.edgeType === 'bezier') {
+    var srcPos = pairInfo.srcPos,
+        tgtPos = pairInfo.tgtPos,
+        srcW = pairInfo.srcW,
+        srcH = pairInfo.srcH,
+        tgtW = pairInfo.tgtW,
+        tgtH = pairInfo.tgtH,
+        srcShape = pairInfo.srcShape,
+        tgtShape = pairInfo.tgtShape;
+    var badStart = !number(rs.startX) || !number(rs.startY);
+    var badAStart = !number(rs.arrowStartX) || !number(rs.arrowStartY);
+    var badEnd = !number(rs.endX) || !number(rs.endY);
+    var badAEnd = !number(rs.arrowEndX) || !number(rs.arrowEndY);
+    var minCpADistFactor = 3;
+    var arrowW = this.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.arrowShapeWidth;
+    var minCpADist = minCpADistFactor * arrowW;
+    var startACpDist = dist({
+      x: rs.ctrlpts[0],
+      y: rs.ctrlpts[1]
+    }, {
+      x: rs.startX,
+      y: rs.startY
+    });
+    var closeStartACp = startACpDist < minCpADist;
+    var endACpDist = dist({
+      x: rs.ctrlpts[0],
+      y: rs.ctrlpts[1]
+    }, {
+      x: rs.endX,
+      y: rs.endY
+    });
+    var closeEndACp = endACpDist < minCpADist;
+    var overlapping = false;
+
+    if (badStart || badAStart || closeStartACp) {
+      overlapping = true; // project control point along line from src centre to outside the src shape
+      // (otherwise intersection will yield nothing)
+
+      var cpD = {
+        // delta
+        x: rs.ctrlpts[0] - srcPos.x,
+        y: rs.ctrlpts[1] - srcPos.y
+      };
+      var cpL = Math.sqrt(cpD.x * cpD.x + cpD.y * cpD.y); // length of line
+
+      var cpM = {
+        // normalised delta
+        x: cpD.x / cpL,
+        y: cpD.y / cpL
+      };
+      var radius = Math.max(srcW, srcH);
+      var cpProj = {
+        // *2 radius guarantees outside shape
+        x: rs.ctrlpts[0] + cpM.x * 2 * radius,
+        y: rs.ctrlpts[1] + cpM.y * 2 * radius
+      };
+      var srcCtrlPtIntn = srcShape.intersectLine(srcPos.x, srcPos.y, srcW, srcH, cpProj.x, cpProj.y, 0);
+
+      if (closeStartACp) {
+        rs.ctrlpts[0] = rs.ctrlpts[0] + cpM.x * (minCpADist - startACpDist);
+        rs.ctrlpts[1] = rs.ctrlpts[1] + cpM.y * (minCpADist - startACpDist);
+      } else {
+        rs.ctrlpts[0] = srcCtrlPtIntn[0] + cpM.x * minCpADist;
+        rs.ctrlpts[1] = srcCtrlPtIntn[1] + cpM.y * minCpADist;
+      }
+    }
 
+    if (badEnd || badAEnd || closeEndACp) {
+      overlapping = true; // project control point along line from tgt centre to outside the tgt shape
+      // (otherwise intersection will yield nothing)
+
+      var _cpD = {
+        // delta
+        x: rs.ctrlpts[0] - tgtPos.x,
+        y: rs.ctrlpts[1] - tgtPos.y
+      };
+
+      var _cpL = Math.sqrt(_cpD.x * _cpD.x + _cpD.y * _cpD.y); // length of line
+
+
+      var _cpM = {
+        // normalised delta
+        x: _cpD.x / _cpL,
+        y: _cpD.y / _cpL
+      };
+
+      var _radius = Math.max(srcW, srcH);
+
+      var _cpProj = {
+        // *2 radius guarantees outside shape
+        x: rs.ctrlpts[0] + _cpM.x * 2 * _radius,
+        y: rs.ctrlpts[1] + _cpM.y * 2 * _radius
+      };
+      var tgtCtrlPtIntn = tgtShape.intersectLine(tgtPos.x, tgtPos.y, tgtW, tgtH, _cpProj.x, _cpProj.y, 0);
+
+      if (closeEndACp) {
+        rs.ctrlpts[0] = rs.ctrlpts[0] + _cpM.x * (minCpADist - endACpDist);
+        rs.ctrlpts[1] = rs.ctrlpts[1] + _cpM.y * (minCpADist - endACpDist);
+      } else {
+        rs.ctrlpts[0] = tgtCtrlPtIntn[0] + _cpM.x * minCpADist;
+        rs.ctrlpts[1] = tgtCtrlPtIntn[1] + _cpM.y * minCpADist;
+      }
+    }
 
-                elesfn$k.boundingBoxAt = function (fn) {
-                    var nodes = this.nodes();
-                    var cy = this.cy();
-                    var hasCompoundNodes = cy.hasCompoundNodes();
+    if (overlapping) {
+      // recalc endpts
+      this.findEndpoints(edge);
+    }
+  }
+};
 
-                    if (hasCompoundNodes) {
-                        nodes = nodes.filter(function (node) {
-                            return !node.isParent();
-                        });
-                    }
+BRp$3.storeAllpts = function (edge) {
+  var rs = edge._private.rscratch;
 
-                    if (plainObject(fn)) {
-                        var obj = fn;
+  if (rs.edgeType === 'multibezier' || rs.edgeType === 'bezier' || rs.edgeType === 'self' || rs.edgeType === 'compound') {
+    rs.allpts = [];
+    rs.allpts.push(rs.startX, rs.startY);
 
-                        fn = function fn() {
-                            return obj;
-                        };
-                    }
+    for (var b = 0; b + 1 < rs.ctrlpts.length; b += 2) {
+      // ctrl pt itself
+      rs.allpts.push(rs.ctrlpts[b], rs.ctrlpts[b + 1]); // the midpt between ctrlpts as intermediate destination pts
 
-                    var storeOldPos = function storeOldPos(node, i) {
-                        return node._private.bbAtOldPos = fn(node, i);
-                    };
+      if (b + 3 < rs.ctrlpts.length) {
+        rs.allpts.push((rs.ctrlpts[b] + rs.ctrlpts[b + 2]) / 2, (rs.ctrlpts[b + 1] + rs.ctrlpts[b + 3]) / 2);
+      }
+    }
 
-                    var getOldPos = function getOldPos(node) {
-                        return node._private.bbAtOldPos;
-                    };
+    rs.allpts.push(rs.endX, rs.endY);
+    var m, mt;
+
+    if (rs.ctrlpts.length / 2 % 2 === 0) {
+      m = rs.allpts.length / 2 - 1;
+      rs.midX = rs.allpts[m];
+      rs.midY = rs.allpts[m + 1];
+    } else {
+      m = rs.allpts.length / 2 - 3;
+      mt = 0.5;
+      rs.midX = qbezierAt(rs.allpts[m], rs.allpts[m + 2], rs.allpts[m + 4], mt);
+      rs.midY = qbezierAt(rs.allpts[m + 1], rs.allpts[m + 3], rs.allpts[m + 5], mt);
+    }
+  } else if (rs.edgeType === 'straight') {
+    // need to calc these after endpts
+    rs.allpts = [rs.startX, rs.startY, rs.endX, rs.endY]; // default midpt for labels etc
+
+    rs.midX = (rs.startX + rs.endX + rs.arrowStartX + rs.arrowEndX) / 4;
+    rs.midY = (rs.startY + rs.endY + rs.arrowStartY + rs.arrowEndY) / 4;
+  } else if (rs.edgeType === 'segments') {
+    rs.allpts = [];
+    rs.allpts.push(rs.startX, rs.startY);
+    rs.allpts.push.apply(rs.allpts, rs.segpts);
+    rs.allpts.push(rs.endX, rs.endY);
+
+    if (rs.segpts.length % 4 === 0) {
+      var i2 = rs.segpts.length / 2;
+      var i1 = i2 - 2;
+      rs.midX = (rs.segpts[i1] + rs.segpts[i2]) / 2;
+      rs.midY = (rs.segpts[i1 + 1] + rs.segpts[i2 + 1]) / 2;
+    } else {
+      var _i = rs.segpts.length / 2 - 1;
+
+      rs.midX = rs.segpts[_i];
+      rs.midY = rs.segpts[_i + 1];
+    }
+  }
+};
 
-                    cy.startBatch();
-                    nodes.forEach(storeOldPos).silentPositions(fn);
+BRp$3.checkForInvalidEdgeWarning = function (edge) {
+  var rs = edge[0]._private.rscratch;
 
-                    if (hasCompoundNodes) {
-                        this.updateCompoundBounds(true); // force update b/c we're inside a batch cycle
-                    }
+  if (rs.nodesOverlap || number(rs.startX) && number(rs.startY) && number(rs.endX) && number(rs.endY)) {
+    rs.loggedErr = false;
+  } else {
+    if (!rs.loggedErr) {
+      rs.loggedErr = true;
+      warn('Edge `' + edge.id() + '` has invalid endpoints and so it is impossible to draw.  Adjust your edge style (e.g. control points) accordingly or use an alternative edge type.  This is expected behaviour when the source node and the target node overlap.');
+    }
+  }
+};
 
-                    var bb = copyBoundingBox(this.boundingBox({
-                        useCache: false
-                    }));
-                    nodes.silentPositions(getOldPos);
-                    cy.endBatch();
-                    return bb;
-                };
+BRp$3.findEdgeControlPoints = function (edges) {
+  var _this = this;
 
-                fn$3.boundingbox = fn$3.bb = fn$3.boundingBox;
-                fn$3.renderedBoundingbox = fn$3.renderedBoundingBox;
-                var bounds = elesfn$k;
-
-                var fn$4, elesfn$l;
-                fn$4 = elesfn$l = {};
-
-                var defineDimFns = function defineDimFns(opts) {
-                    opts.uppercaseName = capitalize(opts.name);
-                    opts.autoName = 'auto' + opts.uppercaseName;
-                    opts.labelName = 'label' + opts.uppercaseName;
-                    opts.outerName = 'outer' + opts.uppercaseName;
-                    opts.uppercaseOuterName = capitalize(opts.outerName);
-
-                    fn$4[opts.name] = function dimImpl() {
-                        var ele = this[0];
-                        var _p = ele._private;
-                        var cy = _p.cy;
-                        var styleEnabled = cy._private.styleEnabled;
-
-                        if (ele) {
-                            if (styleEnabled) {
-                                if (ele.isParent()) {
-                                    ele.updateCompoundBounds();
-                                    return _p[opts.autoName] || 0;
-                                }
-
-                                var d = ele.pstyle(opts.name);
-
-                                switch (d.strValue) {
-                                    case 'label':
-                                        ele.recalculateRenderedStyle();
-                                        return _p.rstyle[opts.labelName] || 0;
-
-                                    default:
-                                        return d.pfValue;
-                                }
-                            } else {
-                                return 1;
-                            }
-                        }
-                    };
-
-                    fn$4['outer' + opts.uppercaseName] = function outerDimImpl() {
-                        var ele = this[0];
-                        var _p = ele._private;
-                        var cy = _p.cy;
-                        var styleEnabled = cy._private.styleEnabled;
-
-                        if (ele) {
-                            if (styleEnabled) {
-                                var dim = ele[opts.name]();
-                                var border = ele.pstyle('border-width').pfValue; // n.b. 1/2 each side
-
-                                var padding = 2 * ele.padding();
-                                return dim + border + padding;
-                            } else {
-                                return 1;
-                            }
-                        }
-                    };
+  if (!edges || edges.length === 0) {
+    return;
+  }
 
-                    fn$4['rendered' + opts.uppercaseName] = function renderedDimImpl() {
-                        var ele = this[0];
+  var r = this;
+  var cy = r.cy;
+  var hasCompounds = cy.hasCompoundNodes();
+  var hashTable = {
+    map: new Map$1(),
+    get: function get(pairId) {
+      var map2 = this.map.get(pairId[0]);
+
+      if (map2 != null) {
+        return map2.get(pairId[1]);
+      } else {
+        return null;
+      }
+    },
+    set: function set(pairId, val) {
+      var map2 = this.map.get(pairId[0]);
+
+      if (map2 == null) {
+        map2 = new Map$1();
+        this.map.set(pairId[0], map2);
+      }
+
+      map2.set(pairId[1], val);
+    }
+  };
+  var pairIds = [];
+  var haystackEdges = []; // create a table of edge (src, tgt) => list of edges between them
+
+  for (var i = 0; i < edges.length; i++) {
+    var edge = edges[i];
+    var _p = edge._private;
+    var curveStyle = edge.pstyle('curve-style').value; // ignore edges who are not to be displayed
+    // they shouldn't take up space
+
+    if (edge.removed() || !edge.takesUpSpace()) {
+      continue;
+    }
 
-                        if (ele) {
-                            var d = ele[opts.name]();
-                            return d * this.cy().zoom();
-                        }
-                    };
+    if (curveStyle === 'haystack') {
+      haystackEdges.push(edge);
+      continue;
+    }
 
-                    fn$4['rendered' + opts.uppercaseOuterName] = function renderedOuterDimImpl() {
-                        var ele = this[0];
+    var edgeIsUnbundled = curveStyle === 'unbundled-bezier' || curveStyle === 'segments' || curveStyle === 'straight' || curveStyle === 'taxi';
+    var edgeIsBezier = curveStyle === 'unbundled-bezier' || curveStyle === 'bezier';
+    var src = _p.source;
+    var tgt = _p.target;
+    var srcIndex = src.poolIndex();
+    var tgtIndex = tgt.poolIndex();
+    var pairId = [srcIndex, tgtIndex].sort();
+    var tableEntry = hashTable.get(pairId);
+
+    if (tableEntry == null) {
+      tableEntry = {
+        eles: []
+      };
+      hashTable.set(pairId, tableEntry);
+      pairIds.push(pairId);
+    }
 
-                        if (ele) {
-                            var od = ele[opts.outerName]();
-                            return od * this.cy().zoom();
-                        }
-                    };
-                };
+    tableEntry.eles.push(edge);
 
-                defineDimFns({
-                    name: 'width'
-                });
-                defineDimFns({
-                    name: 'height'
-                });
+    if (edgeIsUnbundled) {
+      tableEntry.hasUnbundled = true;
+    }
 
-                elesfn$l.padding = function () {
-                    var ele = this[0];
-                    var _p = ele._private;
+    if (edgeIsBezier) {
+      tableEntry.hasBezier = true;
+    }
+  } // for each pair (src, tgt), create the ctrl pts
+  // Nested for loop is OK; total number of iterations for both loops = edgeCount
 
-                    if (ele.isParent()) {
-                        ele.updateCompoundBounds();
 
-                        if (_p.autoPadding !== undefined) {
-                            return _p.autoPadding;
-                        } else {
-                            return ele.pstyle('padding').pfValue;
-                        }
-                    } else {
-                        return ele.pstyle('padding').pfValue;
-                    }
-                };
+  var _loop = function _loop(p) {
+    var pairId = pairIds[p];
+    var pairInfo = hashTable.get(pairId);
+    var swappedpairInfo = void 0;
 
-                elesfn$l.paddedHeight = function () {
-                    var ele = this[0];
-                    return ele.height() + 2 * ele.padding();
-                };
+    if (!pairInfo.hasUnbundled) {
+      var pllEdges = pairInfo.eles[0].parallelEdges().filter(function (e) {
+        return e.isBundledBezier();
+      });
+      clearArray(pairInfo.eles);
+      pllEdges.forEach(function (edge) {
+        return pairInfo.eles.push(edge);
+      }); // for each pair id, the edges should be sorted by index
 
-                elesfn$l.paddedWidth = function () {
-                    var ele = this[0];
-                    return ele.width() + 2 * ele.padding();
-                };
+      pairInfo.eles.sort(function (edge1, edge2) {
+        return edge1.poolIndex() - edge2.poolIndex();
+      });
+    }
 
-                var widthHeight = elesfn$l;
+    var firstEdge = pairInfo.eles[0];
+    var src = firstEdge.source();
+    var tgt = firstEdge.target(); // make sure src/tgt distinction is consistent w.r.t. pairId
 
-                var ifEdge = function ifEdge(ele, getValue) {
-                    if (ele.isEdge()) {
-                        return getValue(ele);
-                    }
-                };
+    if (src.poolIndex() > tgt.poolIndex()) {
+      var temp = src;
+      src = tgt;
+      tgt = temp;
+    }
 
-                var ifEdgeRenderedPosition = function ifEdgeRenderedPosition(ele, getPoint) {
-                    if (ele.isEdge()) {
-                        var cy = ele.cy();
-                        return modelToRenderedPosition(getPoint(ele), cy.zoom(), cy.pan());
-                    }
-                };
+    var srcPos = pairInfo.srcPos = src.position();
+    var tgtPos = pairInfo.tgtPos = tgt.position();
+    var srcW = pairInfo.srcW = src.outerWidth();
+    var srcH = pairInfo.srcH = src.outerHeight();
+    var tgtW = pairInfo.tgtW = tgt.outerWidth();
+    var tgtH = pairInfo.tgtH = tgt.outerHeight();
+
+    var srcShape = pairInfo.srcShape = r.nodeShapes[_this.getNodeShape(src)];
+
+    var tgtShape = pairInfo.tgtShape = r.nodeShapes[_this.getNodeShape(tgt)];
+
+    pairInfo.dirCounts = {
+      'north': 0,
+      'west': 0,
+      'south': 0,
+      'east': 0,
+      'northwest': 0,
+      'southwest': 0,
+      'northeast': 0,
+      'southeast': 0
+    };
+
+    for (var _i2 = 0; _i2 < pairInfo.eles.length; _i2++) {
+      var _edge = pairInfo.eles[_i2];
+      var rs = _edge[0]._private.rscratch;
+
+      var _curveStyle = _edge.pstyle('curve-style').value;
+
+      var _edgeIsUnbundled = _curveStyle === 'unbundled-bezier' || _curveStyle === 'segments' || _curveStyle === 'taxi'; // whether the normalised pair order is the reverse of the edge's src-tgt order
+
+
+      var edgeIsSwapped = !src.same(_edge.source());
+
+      if (!pairInfo.calculatedIntersection && src !== tgt && (pairInfo.hasBezier || pairInfo.hasUnbundled)) {
+        pairInfo.calculatedIntersection = true; // pt outside src shape to calc distance/displacement from src to tgt
+
+        var srcOutside = srcShape.intersectLine(srcPos.x, srcPos.y, srcW, srcH, tgtPos.x, tgtPos.y, 0);
+        var srcIntn = pairInfo.srcIntn = srcOutside; // pt outside tgt shape to calc distance/displacement from src to tgt
+
+        var tgtOutside = tgtShape.intersectLine(tgtPos.x, tgtPos.y, tgtW, tgtH, srcPos.x, srcPos.y, 0);
+        var tgtIntn = pairInfo.tgtIntn = tgtOutside;
+        var intersectionPts = pairInfo.intersectionPts = {
+          x1: srcOutside[0],
+          x2: tgtOutside[0],
+          y1: srcOutside[1],
+          y2: tgtOutside[1]
+        };
+        var posPts = pairInfo.posPts = {
+          x1: srcPos.x,
+          x2: tgtPos.x,
+          y1: srcPos.y,
+          y2: tgtPos.y
+        };
+        var dy = tgtOutside[1] - srcOutside[1];
+        var dx = tgtOutside[0] - srcOutside[0];
+        var l = Math.sqrt(dx * dx + dy * dy);
+        var vector = pairInfo.vector = {
+          x: dx,
+          y: dy
+        };
+        var vectorNorm = pairInfo.vectorNorm = {
+          x: vector.x / l,
+          y: vector.y / l
+        };
+        var vectorNormInverse = {
+          x: -vectorNorm.y,
+          y: vectorNorm.x
+        }; // if node shapes overlap, then no ctrl pts to draw
+
+        pairInfo.nodesOverlap = !number(l) || tgtShape.checkPoint(srcOutside[0], srcOutside[1], 0, tgtW, tgtH, tgtPos.x, tgtPos.y) || srcShape.checkPoint(tgtOutside[0], tgtOutside[1], 0, srcW, srcH, srcPos.x, srcPos.y);
+        pairInfo.vectorNormInverse = vectorNormInverse;
+        swappedpairInfo = {
+          nodesOverlap: pairInfo.nodesOverlap,
+          dirCounts: pairInfo.dirCounts,
+          calculatedIntersection: true,
+          hasBezier: pairInfo.hasBezier,
+          hasUnbundled: pairInfo.hasUnbundled,
+          eles: pairInfo.eles,
+          srcPos: tgtPos,
+          tgtPos: srcPos,
+          srcW: tgtW,
+          srcH: tgtH,
+          tgtW: srcW,
+          tgtH: srcH,
+          srcIntn: tgtIntn,
+          tgtIntn: srcIntn,
+          srcShape: tgtShape,
+          tgtShape: srcShape,
+          posPts: {
+            x1: posPts.x2,
+            y1: posPts.y2,
+            x2: posPts.x1,
+            y2: posPts.y1
+          },
+          intersectionPts: {
+            x1: intersectionPts.x2,
+            y1: intersectionPts.y2,
+            x2: intersectionPts.x1,
+            y2: intersectionPts.y1
+          },
+          vector: {
+            x: -vector.x,
+            y: -vector.y
+          },
+          vectorNorm: {
+            x: -vectorNorm.x,
+            y: -vectorNorm.y
+          },
+          vectorNormInverse: {
+            x: -vectorNormInverse.x,
+            y: -vectorNormInverse.y
+          }
+        };
+      }
+
+      var passedPairInfo = edgeIsSwapped ? swappedpairInfo : pairInfo;
+      rs.nodesOverlap = passedPairInfo.nodesOverlap;
+      rs.srcIntn = passedPairInfo.srcIntn;
+      rs.tgtIntn = passedPairInfo.tgtIntn;
+
+      if (hasCompounds && (src.isParent() || src.isChild() || tgt.isParent() || tgt.isChild()) && (src.parents().anySame(tgt) || tgt.parents().anySame(src) || src.same(tgt) && src.isParent())) {
+        _this.findCompoundLoopPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled);
+      } else if (src === tgt) {
+        _this.findLoopPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled);
+      } else if (_curveStyle === 'segments') {
+        _this.findSegmentsPoints(_edge, passedPairInfo);
+      } else if (_curveStyle === 'taxi') {
+        _this.findTaxiPoints(_edge, passedPairInfo);
+      } else if (_curveStyle === 'straight' || !_edgeIsUnbundled && pairInfo.eles.length % 2 === 1 && _i2 === Math.floor(pairInfo.eles.length / 2)) {
+        _this.findStraightEdgePoints(_edge);
+      } else {
+        _this.findBezierPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled, edgeIsSwapped);
+      }
+
+      _this.findEndpoints(_edge);
+
+      _this.tryToCorrectInvalidPoints(_edge, passedPairInfo);
+
+      _this.checkForInvalidEdgeWarning(_edge);
+
+      _this.storeAllpts(_edge);
+
+      _this.storeEdgeProjections(_edge);
+
+      _this.calculateArrowAngles(_edge);
+
+      _this.recalculateEdgeLabelProjections(_edge);
+
+      _this.calculateLabelAngles(_edge);
+    } // for pair edges
+
+  };
+
+  for (var p = 0; p < pairIds.length; p++) {
+    _loop(p);
+  } // for pair ids
+  // haystacks avoid the expense of pairInfo stuff (intersections etc.)
+
+
+  this.findHaystackPoints(haystackEdges);
+};
+
+function getPts(pts) {
+  var retPts = [];
+
+  if (pts == null) {
+    return;
+  }
 
-                var ifEdgeRenderedPositions = function ifEdgeRenderedPositions(ele, getPoints) {
-                    if (ele.isEdge()) {
-                        var cy = ele.cy();
-                        var pan = cy.pan();
-                        var zoom = cy.zoom();
-                        return getPoints(ele).map(function (p) {
-                            return modelToRenderedPosition(p, zoom, pan);
-                        });
-                    }
-                };
+  for (var i = 0; i < pts.length; i += 2) {
+    var x = pts[i];
+    var y = pts[i + 1];
+    retPts.push({
+      x: x,
+      y: y
+    });
+  }
 
-                var controlPoints = function controlPoints(ele) {
-                    return ele.renderer().getControlPoints(ele);
-                };
+  return retPts;
+}
 
-                var segmentPoints = function segmentPoints(ele) {
-                    return ele.renderer().getSegmentPoints(ele);
-                };
+BRp$3.getSegmentPoints = function (edge) {
+  var rs = edge[0]._private.rscratch;
+  var type = rs.edgeType;
 
-                var sourceEndpoint = function sourceEndpoint(ele) {
-                    return ele.renderer().getSourceEndpoint(ele);
-                };
+  if (type === 'segments') {
+    this.recalculateRenderedStyle(edge);
+    return getPts(rs.segpts);
+  }
+};
 
-                var targetEndpoint = function targetEndpoint(ele) {
-                    return ele.renderer().getTargetEndpoint(ele);
-                };
+BRp$3.getControlPoints = function (edge) {
+  var rs = edge[0]._private.rscratch;
+  var type = rs.edgeType;
 
-                var midpoint = function midpoint(ele) {
-                    return ele.renderer().getEdgeMidpoint(ele);
-                };
+  if (type === 'bezier' || type === 'multibezier' || type === 'self' || type === 'compound') {
+    this.recalculateRenderedStyle(edge);
+    return getPts(rs.ctrlpts);
+  }
+};
+
+BRp$3.getEdgeMidpoint = function (edge) {
+  var rs = edge[0]._private.rscratch;
+  this.recalculateRenderedStyle(edge);
+  return {
+    x: rs.midX,
+    y: rs.midY
+  };
+};
+
+var BRp$4 = {};
+
+BRp$4.manualEndptToPx = function (node, prop) {
+  var r = this;
+  var npos = node.position();
+  var w = node.outerWidth();
+  var h = node.outerHeight();
+
+  if (prop.value.length === 2) {
+    var p = [prop.pfValue[0], prop.pfValue[1]];
+
+    if (prop.units[0] === '%') {
+      p[0] = p[0] * w;
+    }
 
-                var pts = {
-                    controlPoints: {
-                        get: controlPoints,
-                        mult: true
-                    },
-                    segmentPoints: {
-                        get: segmentPoints,
-                        mult: true
-                    },
-                    sourceEndpoint: {
-                        get: sourceEndpoint
-                    },
-                    targetEndpoint: {
-                        get: targetEndpoint
-                    },
-                    midpoint: {
-                        get: midpoint
-                    }
-                };
+    if (prop.units[1] === '%') {
+      p[1] = p[1] * h;
+    }
 
-                var renderedName = function renderedName(name) {
-                    return 'rendered' + name[0].toUpperCase() + name.substr(1);
-                };
+    p[0] += npos.x;
+    p[1] += npos.y;
+    return p;
+  } else {
+    var angle = prop.pfValue[0];
+    angle = -Math.PI / 2 + angle; // start at 12 o'clock
 
-                var edgePoints = Object.keys(pts).reduce(function (obj, name) {
-                    var spec = pts[name];
-                    var rName = renderedName(name);
+    var l = 2 * Math.max(w, h);
+    var _p = [npos.x + Math.cos(angle) * l, npos.y + Math.sin(angle) * l];
+    return r.nodeShapes[this.getNodeShape(node)].intersectLine(npos.x, npos.y, w, h, _p[0], _p[1], 0);
+  }
+};
+
+BRp$4.findEndpoints = function (edge) {
+  var r = this;
+  var intersect;
+  var source = edge.source()[0];
+  var target = edge.target()[0];
+  var srcPos = source.position();
+  var tgtPos = target.position();
+  var tgtArShape = edge.pstyle('target-arrow-shape').value;
+  var srcArShape = edge.pstyle('source-arrow-shape').value;
+  var tgtDist = edge.pstyle('target-distance-from-node').pfValue;
+  var srcDist = edge.pstyle('source-distance-from-node').pfValue;
+  var curveStyle = edge.pstyle('curve-style').value;
+  var rs = edge._private.rscratch;
+  var et = rs.edgeType;
+  var taxi = curveStyle === 'taxi';
+  var self = et === 'self' || et === 'compound';
+  var bezier = et === 'bezier' || et === 'multibezier' || self;
+  var multi = et !== 'bezier';
+  var lines = et === 'straight' || et === 'segments';
+  var segments = et === 'segments';
+  var hasEndpts = bezier || multi || lines;
+  var overrideEndpts = self || taxi;
+  var srcManEndpt = edge.pstyle('source-endpoint');
+  var srcManEndptVal = overrideEndpts ? 'outside-to-node' : srcManEndpt.value;
+  var tgtManEndpt = edge.pstyle('target-endpoint');
+  var tgtManEndptVal = overrideEndpts ? 'outside-to-node' : tgtManEndpt.value;
+  rs.srcManEndpt = srcManEndpt;
+  rs.tgtManEndpt = tgtManEndpt;
+  var p1; // last known point of edge on target side
+
+  var p2; // last known point of edge on source side
+
+  var p1_i; // point to intersect with target shape
+
+  var p2_i; // point to intersect with source shape
+
+  if (bezier) {
+    var cpStart = [rs.ctrlpts[0], rs.ctrlpts[1]];
+    var cpEnd = multi ? [rs.ctrlpts[rs.ctrlpts.length - 2], rs.ctrlpts[rs.ctrlpts.length - 1]] : cpStart;
+    p1 = cpEnd;
+    p2 = cpStart;
+  } else if (lines) {
+    var srcArrowFromPt = !segments ? [tgtPos.x, tgtPos.y] : rs.segpts.slice(0, 2);
+    var tgtArrowFromPt = !segments ? [srcPos.x, srcPos.y] : rs.segpts.slice(rs.segpts.length - 2);
+    p1 = tgtArrowFromPt;
+    p2 = srcArrowFromPt;
+  }
 
-                    obj[name] = function () {
-                        return ifEdge(this, spec.get);
-                    };
+  if (tgtManEndptVal === 'inside-to-node') {
+    intersect = [tgtPos.x, tgtPos.y];
+  } else if (tgtManEndpt.units) {
+    intersect = this.manualEndptToPx(target, tgtManEndpt);
+  } else if (tgtManEndptVal === 'outside-to-line') {
+    intersect = rs.tgtIntn; // use cached value from ctrlpt calc
+  } else {
+    if (tgtManEndptVal === 'outside-to-node' || tgtManEndptVal === 'outside-to-node-or-label') {
+      p1_i = p1;
+    } else if (tgtManEndptVal === 'outside-to-line' || tgtManEndptVal === 'outside-to-line-or-label') {
+      p1_i = [srcPos.x, srcPos.y];
+    }
 
-                    if (spec.mult) {
-                        obj[rName] = function () {
-                            return ifEdgeRenderedPositions(this, spec.get);
-                        };
-                    } else {
-                        obj[rName] = function () {
-                            return ifEdgeRenderedPosition(this, spec.get);
-                        };
-                    }
+    intersect = r.nodeShapes[this.getNodeShape(target)].intersectLine(tgtPos.x, tgtPos.y, target.outerWidth(), target.outerHeight(), p1_i[0], p1_i[1], 0);
+
+    if (tgtManEndptVal === 'outside-to-node-or-label' || tgtManEndptVal === 'outside-to-line-or-label') {
+      var trs = target._private.rscratch;
+      var lw = trs.labelWidth;
+      var lh = trs.labelHeight;
+      var lx = trs.labelX;
+      var ly = trs.labelY;
+      var lw2 = lw / 2;
+      var lh2 = lh / 2;
+      var va = target.pstyle('text-valign').value;
+
+      if (va === 'top') {
+        ly -= lh2;
+      } else if (va === 'bottom') {
+        ly += lh2;
+      }
+
+      var ha = target.pstyle('text-halign').value;
+
+      if (ha === 'left') {
+        lx -= lw2;
+      } else if (ha === 'right') {
+        lx += lw2;
+      }
+
+      var labelIntersect = polygonIntersectLine(p1_i[0], p1_i[1], [lx - lw2, ly - lh2, lx + lw2, ly - lh2, lx + lw2, ly + lh2, lx - lw2, ly + lh2], tgtPos.x, tgtPos.y);
+
+      if (labelIntersect.length > 0) {
+        var refPt = srcPos;
+        var intSqdist = sqdist(refPt, array2point(intersect));
+        var labIntSqdist = sqdist(refPt, array2point(labelIntersect));
+        var minSqDist = intSqdist;
+
+        if (labIntSqdist < intSqdist) {
+          intersect = labelIntersect;
+          minSqDist = labIntSqdist;
+        }
 
-                    return obj;
-                }, {});
+        if (labelIntersect.length > 2) {
+          var labInt2SqDist = sqdist(refPt, {
+            x: labelIntersect[2],
+            y: labelIntersect[3]
+          });
 
-                var dimensions = extend({}, position, bounds, widthHeight, edgePoints);
+          if (labInt2SqDist < minSqDist) {
+            intersect = [labelIntersect[2], labelIntersect[3]];
+          }
+        }
+      }
+    }
+  }
 
-                /*!
-Event object based on jQuery events, MIT license
+  var arrowEnd = shortenIntersection(intersect, p1, r.arrowShapes[tgtArShape].spacing(edge) + tgtDist);
+  var edgeEnd = shortenIntersection(intersect, p1, r.arrowShapes[tgtArShape].gap(edge) + tgtDist);
+  rs.endX = edgeEnd[0];
+  rs.endY = edgeEnd[1];
+  rs.arrowEndX = arrowEnd[0];
+  rs.arrowEndY = arrowEnd[1];
+
+  if (srcManEndptVal === 'inside-to-node') {
+    intersect = [srcPos.x, srcPos.y];
+  } else if (srcManEndpt.units) {
+    intersect = this.manualEndptToPx(source, srcManEndpt);
+  } else if (srcManEndptVal === 'outside-to-line') {
+    intersect = rs.srcIntn; // use cached value from ctrlpt calc
+  } else {
+    if (srcManEndptVal === 'outside-to-node' || srcManEndptVal === 'outside-to-node-or-label') {
+      p2_i = p2;
+    } else if (srcManEndptVal === 'outside-to-line' || srcManEndptVal === 'outside-to-line-or-label') {
+      p2_i = [tgtPos.x, tgtPos.y];
+    }
 
-https://jquery.org/license/
-https://tldrlegal.com/license/mit-license
-https://github.com/jquery/jquery/blob/master/src/event.js
-*/
-                var Event = function Event(src, props) {
-                    this.recycle(src, props);
-                };
+    intersect = r.nodeShapes[this.getNodeShape(source)].intersectLine(srcPos.x, srcPos.y, source.outerWidth(), source.outerHeight(), p2_i[0], p2_i[1], 0);
 
-                function returnFalse() {
-                    return false;
-                }
+    if (srcManEndptVal === 'outside-to-node-or-label' || srcManEndptVal === 'outside-to-line-or-label') {
+      var srs = source._private.rscratch;
+      var _lw = srs.labelWidth;
+      var _lh = srs.labelHeight;
+      var _lx = srs.labelX;
+      var _ly = srs.labelY;
 
-                function returnTrue() {
-                    return true;
-                } // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-
-
-                Event.prototype = {
-                    instanceString: function instanceString() {
-                        return 'event';
-                    },
-                    recycle: function recycle(src, props) {
-                        this.isImmediatePropagationStopped = this.isPropagationStopped = this.isDefaultPrevented = returnFalse;
-
-                        if (src != null && src.preventDefault) {
-                            // Browser Event object
-                            this.type = src.type; // Events bubbling up the document may have been marked as prevented
-                            // by a handler lower down the tree; reflect the correct value.
-
-                            this.isDefaultPrevented = src.defaultPrevented ? returnTrue : returnFalse;
-                        } else if (src != null && src.type) {
-                            // Plain object containing all event details
-                            props = src;
-                        } else {
-                            // Event string
-                            this.type = src;
-                        } // Put explicitly provided properties onto the event object
-
-
-                        if (props != null) {
-                            // more efficient to manually copy fields we use
-                            this.originalEvent = props.originalEvent;
-                            this.type = props.type != null ? props.type : this.type;
-                            this.cy = props.cy;
-                            this.target = props.target;
-                            this.position = props.position;
-                            this.renderedPosition = props.renderedPosition;
-                            this.namespace = props.namespace;
-                            this.layout = props.layout;
-                        }
+      var _lw2 = _lw / 2;
 
-                        if (this.cy != null && this.position != null && this.renderedPosition == null) {
-                            // create a rendered position based on the passed position
-                            var pos = this.position;
-                            var zoom = this.cy.zoom();
-                            var pan = this.cy.pan();
-                            this.renderedPosition = {
-                                x: pos.x * zoom + pan.x,
-                                y: pos.y * zoom + pan.y
-                            };
-                        } // Create a timestamp if incoming event doesn't have one
+      var _lh2 = _lh / 2;
 
+      var _va = source.pstyle('text-valign').value;
 
-                        this.timeStamp = src && src.timeStamp || Date.now();
-                    },
-                    preventDefault: function preventDefault() {
-                        this.isDefaultPrevented = returnTrue;
-                        var e = this.originalEvent;
+      if (_va === 'top') {
+        _ly -= _lh2;
+      } else if (_va === 'bottom') {
+        _ly += _lh2;
+      }
 
-                        if (!e) {
-                            return;
-                        } // if preventDefault exists run it on the original event
+      var _ha = source.pstyle('text-halign').value;
 
+      if (_ha === 'left') {
+        _lx -= _lw2;
+      } else if (_ha === 'right') {
+        _lx += _lw2;
+      }
 
-                        if (e.preventDefault) {
-                            e.preventDefault();
-                        }
-                    },
-                    stopPropagation: function stopPropagation() {
-                        this.isPropagationStopped = returnTrue;
-                        var e = this.originalEvent;
+      var _labelIntersect = polygonIntersectLine(p2_i[0], p2_i[1], [_lx - _lw2, _ly - _lh2, _lx + _lw2, _ly - _lh2, _lx + _lw2, _ly + _lh2, _lx - _lw2, _ly + _lh2], srcPos.x, srcPos.y);
 
-                        if (!e) {
-                            return;
-                        } // if stopPropagation exists run it on the original event
+      if (_labelIntersect.length > 0) {
+        var _refPt = tgtPos;
 
+        var _intSqdist = sqdist(_refPt, array2point(intersect));
 
-                        if (e.stopPropagation) {
-                            e.stopPropagation();
-                        }
-                    },
-                    stopImmediatePropagation: function stopImmediatePropagation() {
-                        this.isImmediatePropagationStopped = returnTrue;
-                        this.stopPropagation();
-                    },
-                    isDefaultPrevented: returnFalse,
-                    isPropagationStopped: returnFalse,
-                    isImmediatePropagationStopped: returnFalse
-                };
+        var _labIntSqdist = sqdist(_refPt, array2point(_labelIntersect));
 
-                var eventRegex = /^([^.]+)(\.(?:[^.]+))?$/; // regex for matching event strings (e.g. "click.namespace")
-
-                var universalNamespace = '.*'; // matches as if no namespace specified and prevents users from unbinding accidentally
-
-                var defaults$8 = {
-                    qualifierCompare: function qualifierCompare(q1, q2) {
-                        return q1 === q2;
-                    },
-                    eventMatches: function eventMatches()
-                        /*context, listener, eventObj*/
-                    {
-                        return true;
-                    },
-                    addEventFields: function addEventFields()
-                        /*context, evt*/
-                    {},
-                    callbackContext: function callbackContext(context
-                                                              /*, listener, eventObj*/
-                    ) {
-                        return context;
-                    },
-                    beforeEmit: function beforeEmit()
-                        /* context, listener, eventObj */
-                    {},
-                    afterEmit: function afterEmit()
-                        /* context, listener, eventObj */
-                    {},
-                    bubble: function bubble()
-                        /*context*/
-                    {
-                        return false;
-                    },
-                    parent: function parent()
-                        /*context*/
-                    {
-                        return null;
-                    },
-                    context: null
-                };
-                var defaultsKeys = Object.keys(defaults$8);
-                var emptyOpts = {};
+        var _minSqDist = _intSqdist;
 
-                function Emitter() {
-                    var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyOpts;
-                    var context = arguments.length > 1 ? arguments[1] : undefined;
+        if (_labIntSqdist < _intSqdist) {
+          intersect = [_labelIntersect[0], _labelIntersect[1]];
+          _minSqDist = _labIntSqdist;
+        }
 
-                    // micro-optimisation vs Object.assign() -- reduces Element instantiation time
-                    for (var i = 0; i < defaultsKeys.length; i++) {
-                        var key = defaultsKeys[i];
-                        this[key] = opts[key] || defaults$8[key];
-                    }
+        if (_labelIntersect.length > 2) {
+          var _labInt2SqDist = sqdist(_refPt, {
+            x: _labelIntersect[2],
+            y: _labelIntersect[3]
+          });
 
-                    this.context = context || this.context;
-                    this.listeners = [];
-                    this.emitting = 0;
-                }
+          if (_labInt2SqDist < _minSqDist) {
+            intersect = [_labelIntersect[2], _labelIntersect[3]];
+          }
+        }
+      }
+    }
+  }
 
-                var p = Emitter.prototype;
+  var arrowStart = shortenIntersection(intersect, p2, r.arrowShapes[srcArShape].spacing(edge) + srcDist);
+  var edgeStart = shortenIntersection(intersect, p2, r.arrowShapes[srcArShape].gap(edge) + srcDist);
+  rs.startX = edgeStart[0];
+  rs.startY = edgeStart[1];
+  rs.arrowStartX = arrowStart[0];
+  rs.arrowStartY = arrowStart[1];
+
+  if (hasEndpts) {
+    if (!number(rs.startX) || !number(rs.startY) || !number(rs.endX) || !number(rs.endY)) {
+      rs.badLine = true;
+    } else {
+      rs.badLine = false;
+    }
+  }
+};
+
+BRp$4.getSourceEndpoint = function (edge) {
+  var rs = edge[0]._private.rscratch;
+  this.recalculateRenderedStyle(edge);
+
+  switch (rs.edgeType) {
+    case 'haystack':
+      return {
+        x: rs.haystackPts[0],
+        y: rs.haystackPts[1]
+      };
+
+    default:
+      return {
+        x: rs.arrowStartX,
+        y: rs.arrowStartY
+      };
+  }
+};
+
+BRp$4.getTargetEndpoint = function (edge) {
+  var rs = edge[0]._private.rscratch;
+  this.recalculateRenderedStyle(edge);
+
+  switch (rs.edgeType) {
+    case 'haystack':
+      return {
+        x: rs.haystackPts[2],
+        y: rs.haystackPts[3]
+      };
+
+    default:
+      return {
+        x: rs.arrowEndX,
+        y: rs.arrowEndY
+      };
+  }
+};
 
-                var forEachEvent = function forEachEvent(self, handler, events, qualifier, callback, conf, confOverrides) {
-                    if (fn(qualifier)) {
-                        callback = qualifier;
-                        qualifier = null;
-                    }
+var BRp$5 = {};
 
-                    if (confOverrides) {
-                        if (conf == null) {
-                            conf = confOverrides;
-                        } else {
-                            conf = extend({}, conf, confOverrides);
-                        }
-                    }
+function pushBezierPts(r, edge, pts) {
+  var qbezierAt$1 = function qbezierAt$1(p1, p2, p3, t) {
+    return qbezierAt(p1, p2, p3, t);
+  };
 
-                    var eventList = array(events) ? events : events.split(/\s+/);
+  var _p = edge._private;
+  var bpts = _p.rstyle.bezierPts;
 
-                    for (var i = 0; i < eventList.length; i++) {
-                        var evt = eventList[i];
+  for (var i = 0; i < r.bezierProjPcts.length; i++) {
+    var p = r.bezierProjPcts[i];
+    bpts.push({
+      x: qbezierAt$1(pts[0], pts[2], pts[4], p),
+      y: qbezierAt$1(pts[1], pts[3], pts[5], p)
+    });
+  }
+}
 
-                        if (emptyString(evt)) {
-                            continue;
-                        }
+BRp$5.storeEdgeProjections = function (edge) {
+  var _p = edge._private;
+  var rs = _p.rscratch;
+  var et = rs.edgeType; // clear the cached points state
 
-                        var match = evt.match(eventRegex); // type[.namespace]
+  _p.rstyle.bezierPts = null;
+  _p.rstyle.linePts = null;
+  _p.rstyle.haystackPts = null;
 
-                        if (match) {
-                            var type = match[1];
-                            var namespace = match[2] ? match[2] : null;
-                            var ret = handler(self, evt, type, namespace, qualifier, callback, conf);
+  if (et === 'multibezier' || et === 'bezier' || et === 'self' || et === 'compound') {
+    _p.rstyle.bezierPts = [];
 
-                            if (ret === false) {
-                                break;
-                            } // allow exiting early
+    for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
+      pushBezierPts(this, edge, rs.allpts.slice(i, i + 6));
+    }
+  } else if (et === 'segments') {
+    var lpts = _p.rstyle.linePts = [];
 
-                        }
-                    }
-                };
+    for (var i = 0; i + 1 < rs.allpts.length; i += 2) {
+      lpts.push({
+        x: rs.allpts[i],
+        y: rs.allpts[i + 1]
+      });
+    }
+  } else if (et === 'haystack') {
+    var hpts = rs.haystackPts;
+    _p.rstyle.haystackPts = [{
+      x: hpts[0],
+      y: hpts[1]
+    }, {
+      x: hpts[2],
+      y: hpts[3]
+    }];
+  }
 
-                var makeEventObj = function makeEventObj(self, obj) {
-                    self.addEventFields(self.context, obj);
-                    return new Event(obj.type, obj);
-                };
+  _p.rstyle.arrowWidth = this.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.arrowShapeWidth;
+};
 
-                var forEachEventObj = function forEachEventObj(self, handler, events) {
-                    if (event(events)) {
-                        handler(self, events);
-                        return;
-                    } else if (plainObject(events)) {
-                        handler(self, makeEventObj(self, events));
-                        return;
-                    }
+BRp$5.recalculateEdgeProjections = function (edges) {
+  this.findEdgeControlPoints(edges);
+};
 
-                    var eventList = array(events) ? events : events.split(/\s+/);
+/* global document */
 
-                    for (var i = 0; i < eventList.length; i++) {
-                        var evt = eventList[i];
+var BRp$6 = {};
 
-                        if (emptyString(evt)) {
-                            continue;
-                        }
+BRp$6.recalculateNodeLabelProjection = function (node) {
+  var content = node.pstyle('label').strValue;
 
-                        var match = evt.match(eventRegex); // type[.namespace]
-
-                        if (match) {
-                            var type = match[1];
-                            var namespace = match[2] ? match[2] : null;
-                            var eventObj = makeEventObj(self, {
-                                type: type,
-                                namespace: namespace,
-                                target: self.context
-                            });
-                            handler(self, eventObj);
-                        }
-                    }
-                };
+  if (emptyString(content)) {
+    return;
+  }
 
-                p.on = p.addListener = function (events, qualifier, callback, conf, confOverrides) {
-                    forEachEvent(this, function (self, event, type, namespace, qualifier, callback, conf) {
-                        if (fn(callback)) {
-                            self.listeners.push({
-                                event: event,
-                                // full event string
-                                callback: callback,
-                                // callback to run
-                                type: type,
-                                // the event type (e.g. 'click')
-                                namespace: namespace,
-                                // the event namespace (e.g. ".foo")
-                                qualifier: qualifier,
-                                // a restriction on whether to match this emitter
-                                conf: conf // additional configuration
-
-                            });
-                        }
-                    }, events, qualifier, callback, conf, confOverrides);
-                    return this;
-                };
+  var textX, textY;
+  var _p = node._private;
+  var nodeWidth = node.width();
+  var nodeHeight = node.height();
+  var padding = node.padding();
+  var nodePos = node.position();
+  var textHalign = node.pstyle('text-halign').strValue;
+  var textValign = node.pstyle('text-valign').strValue;
+  var rs = _p.rscratch;
+  var rstyle = _p.rstyle;
+
+  switch (textHalign) {
+    case 'left':
+      textX = nodePos.x - nodeWidth / 2 - padding;
+      break;
+
+    case 'right':
+      textX = nodePos.x + nodeWidth / 2 + padding;
+      break;
+
+    default:
+      // e.g. center
+      textX = nodePos.x;
+  }
 
-                p.one = function (events, qualifier, callback, conf) {
-                    return this.on(events, qualifier, callback, conf, {
-                        one: true
-                    });
-                };
+  switch (textValign) {
+    case 'top':
+      textY = nodePos.y - nodeHeight / 2 - padding;
+      break;
 
-                p.removeListener = p.off = function (events, qualifier, callback, conf) {
-                    var _this = this;
+    case 'bottom':
+      textY = nodePos.y + nodeHeight / 2 + padding;
+      break;
 
-                    if (this.emitting !== 0) {
-                        this.listeners = copyArray(this.listeners);
-                    }
+    default:
+      // e.g. middle
+      textY = nodePos.y;
+  }
 
-                    var listeners = this.listeners;
+  rs.labelX = textX;
+  rs.labelY = textY;
+  rstyle.labelX = textX;
+  rstyle.labelY = textY;
+  this.applyLabelDimensions(node);
+};
 
-                    var _loop = function _loop(i) {
-                        var listener = listeners[i];
-                        forEachEvent(_this, function (self, event, type, namespace, qualifier, callback
-                                                      /*, conf*/
-                        ) {
-                            if ((listener.type === type || events === '*') && (!namespace && listener.namespace !== '.*' || listener.namespace === namespace) && (!qualifier || self.qualifierCompare(listener.qualifier, qualifier)) && (!callback || listener.callback === callback)) {
-                                listeners.splice(i, 1);
-                                return false;
-                            }
-                        }, events, qualifier, callback, conf);
-                    };
+var lineAngleFromDelta = function lineAngleFromDelta(dx, dy) {
+  var angle = Math.atan(dy / dx);
 
-                    for (var i = listeners.length - 1; i >= 0; i--) {
-                        _loop(i);
-                    }
+  if (dx === 0 && angle < 0) {
+    angle = angle * -1;
+  }
 
-                    return this;
-                };
+  return angle;
+};
+
+var lineAngle = function lineAngle(p0, p1) {
+  var dx = p1.x - p0.x;
+  var dy = p1.y - p0.y;
+  return lineAngleFromDelta(dx, dy);
+};
+
+var bezierAngle = function bezierAngle(p0, p1, p2, t) {
+  var t0 = bound(0, t - 0.001, 1);
+  var t1 = bound(0, t + 0.001, 1);
+  var lp0 = qbezierPtAt(p0, p1, p2, t0);
+  var lp1 = qbezierPtAt(p0, p1, p2, t1);
+  return lineAngle(lp0, lp1);
+};
+
+BRp$6.recalculateEdgeLabelProjections = function (edge) {
+  var p;
+  var _p = edge._private;
+  var rs = _p.rscratch;
+  var r = this;
+  var content = {
+    mid: edge.pstyle('label').strValue,
+    source: edge.pstyle('source-label').strValue,
+    target: edge.pstyle('target-label').strValue
+  };
+
+  if (content.mid || content.source || content.target) ; else {
+      return; // no labels => no calcs
+    } // add center point to style so bounding box calculations can use it
+  //
+
+
+  p = {
+    x: rs.midX,
+    y: rs.midY
+  };
+
+  var setRs = function setRs(propName, prefix, value) {
+    setPrefixedProperty(_p.rscratch, propName, prefix, value);
+    setPrefixedProperty(_p.rstyle, propName, prefix, value);
+  };
+
+  setRs('labelX', null, p.x);
+  setRs('labelY', null, p.y);
+  var midAngle = lineAngleFromDelta(rs.midDispX, rs.midDispY);
+  setRs('labelAutoAngle', null, midAngle);
+
+  var createControlPointInfo = function createControlPointInfo() {
+    if (createControlPointInfo.cache) {
+      return createControlPointInfo.cache;
+    } // use cache so only 1x per edge
+
+
+    var ctrlpts = []; // store each ctrlpt info init
+
+    for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
+      var p0 = {
+        x: rs.allpts[i],
+        y: rs.allpts[i + 1]
+      };
+      var p1 = {
+        x: rs.allpts[i + 2],
+        y: rs.allpts[i + 3]
+      }; // ctrlpt
+
+      var p2 = {
+        x: rs.allpts[i + 4],
+        y: rs.allpts[i + 5]
+      };
+      ctrlpts.push({
+        p0: p0,
+        p1: p1,
+        p2: p2,
+        startDist: 0,
+        length: 0,
+        segments: []
+      });
+    }
 
-                p.removeAllListeners = function () {
-                    return this.removeListener('*');
-                };
+    var bpts = _p.rstyle.bezierPts;
+    var nProjs = r.bezierProjPcts.length;
 
-                p.emit = p.trigger = function (events, extraParams, manualCallback) {
-                    var listeners = this.listeners;
-                    var numListenersBeforeEmit = listeners.length;
-                    this.emitting++;
+    function addSegment(cp, p0, p1, t0, t1) {
+      var length = dist(p0, p1);
+      var prevSegment = cp.segments[cp.segments.length - 1];
+      var segment = {
+        p0: p0,
+        p1: p1,
+        t0: t0,
+        t1: t1,
+        startDist: prevSegment ? prevSegment.startDist + prevSegment.length : 0,
+        length: length
+      };
+      cp.segments.push(segment);
+      cp.length += length;
+    } // update each ctrlpt with segment info
 
-                    if (!array(extraParams)) {
-                        extraParams = [extraParams];
-                    }
 
-                    forEachEventObj(this, function (self, eventObj) {
-                        if (manualCallback != null) {
-                            listeners = [{
-                                event: eventObj.event,
-                                type: eventObj.type,
-                                namespace: eventObj.namespace,
-                                callback: manualCallback
-                            }];
-                            numListenersBeforeEmit = listeners.length;
-                        }
+    for (var _i = 0; _i < ctrlpts.length; _i++) {
+      var cp = ctrlpts[_i];
+      var prevCp = ctrlpts[_i - 1];
 
-                        var _loop2 = function _loop2(i) {
-                            var listener = listeners[i];
+      if (prevCp) {
+        cp.startDist = prevCp.startDist + prevCp.length;
+      }
 
-                            if (listener.type === eventObj.type && (!listener.namespace || listener.namespace === eventObj.namespace || listener.namespace === universalNamespace) && self.eventMatches(self.context, listener, eventObj)) {
-                                var args = [eventObj];
+      addSegment(cp, cp.p0, bpts[_i * nProjs], 0, r.bezierProjPcts[0]); // first
 
-                                if (extraParams != null) {
-                                    push(args, extraParams);
-                                }
+      for (var j = 0; j < nProjs - 1; j++) {
+        addSegment(cp, bpts[_i * nProjs + j], bpts[_i * nProjs + j + 1], r.bezierProjPcts[j], r.bezierProjPcts[j + 1]);
+      }
 
-                                self.beforeEmit(self.context, listener, eventObj);
+      addSegment(cp, bpts[_i * nProjs + nProjs - 1], cp.p2, r.bezierProjPcts[nProjs - 1], 1); // last
+    }
 
-                                if (listener.conf && listener.conf.one) {
-                                    self.listeners = self.listeners.filter(function (l) {
-                                        return l !== listener;
-                                    });
-                                }
+    return createControlPointInfo.cache = ctrlpts;
+  };
 
-                                var context = self.callbackContext(self.context, listener, eventObj);
-                                var ret = listener.callback.apply(context, args);
-                                self.afterEmit(self.context, listener, eventObj);
+  var calculateEndProjection = function calculateEndProjection(prefix) {
+    var angle;
+    var isSrc = prefix === 'source';
 
-                                if (ret === false) {
-                                    eventObj.stopPropagation();
-                                    eventObj.preventDefault();
-                                }
-                            } // if listener matches
+    if (!content[prefix]) {
+      return;
+    }
 
-                        };
+    var offset = edge.pstyle(prefix + '-text-offset').pfValue;
+
+    switch (rs.edgeType) {
+      case 'self':
+      case 'compound':
+      case 'bezier':
+      case 'multibezier':
+        {
+          var cps = createControlPointInfo();
+          var selected;
+          var startDist = 0;
+          var totalDist = 0; // find the segment we're on
+
+          for (var i = 0; i < cps.length; i++) {
+            var _cp = cps[isSrc ? i : cps.length - 1 - i];
+
+            for (var j = 0; j < _cp.segments.length; j++) {
+              var _seg = _cp.segments[isSrc ? j : _cp.segments.length - 1 - j];
+              var lastSeg = i === cps.length - 1 && j === _cp.segments.length - 1;
+              startDist = totalDist;
+              totalDist += _seg.length;
+
+              if (totalDist >= offset || lastSeg) {
+                selected = {
+                  cp: _cp,
+                  segment: _seg
+                };
+                break;
+              }
+            }
 
-                        for (var i = 0; i < numListenersBeforeEmit; i++) {
-                            _loop2(i);
-                        } // for listener
+            if (selected) {
+              break;
+            }
+          }
+
+          var cp = selected.cp;
+          var seg = selected.segment;
+          var tSegment = (offset - startDist) / seg.length;
+          var segDt = seg.t1 - seg.t0;
+          var t = isSrc ? seg.t0 + segDt * tSegment : seg.t1 - segDt * tSegment;
+          t = bound(0, t, 1);
+          p = qbezierPtAt(cp.p0, cp.p1, cp.p2, t);
+          angle = bezierAngle(cp.p0, cp.p1, cp.p2, t);
+          break;
+        }
 
+      case 'straight':
+      case 'segments':
+      case 'haystack':
+        {
+          var d = 0,
+              di,
+              d0;
+          var p0, p1;
+          var l = rs.allpts.length;
+
+          for (var _i2 = 0; _i2 + 3 < l; _i2 += 2) {
+            if (isSrc) {
+              p0 = {
+                x: rs.allpts[_i2],
+                y: rs.allpts[_i2 + 1]
+              };
+              p1 = {
+                x: rs.allpts[_i2 + 2],
+                y: rs.allpts[_i2 + 3]
+              };
+            } else {
+              p0 = {
+                x: rs.allpts[l - 2 - _i2],
+                y: rs.allpts[l - 1 - _i2]
+              };
+              p1 = {
+                x: rs.allpts[l - 4 - _i2],
+                y: rs.allpts[l - 3 - _i2]
+              };
+            }
 
-                        if (self.bubble(self.context) && !eventObj.isPropagationStopped()) {
-                            self.parent(self.context).emit(eventObj, extraParams);
-                        }
-                    }, events);
-                    this.emitting--;
-                    return this;
-                };
+            di = dist(p0, p1);
+            d0 = d;
+            d += di;
 
-                var emitterOptions = {
-                    qualifierCompare: function qualifierCompare(selector1, selector2) {
-                        if (selector1 == null || selector2 == null) {
-                            return selector1 == null && selector2 == null;
-                        } else {
-                            return selector1.sameText(selector2);
-                        }
-                    },
-                    eventMatches: function eventMatches(ele, listener, eventObj) {
-                        var selector = listener.qualifier;
+            if (d >= offset) {
+              break;
+            }
+          }
 
-                        if (selector != null) {
-                            return ele !== eventObj.target && element(eventObj.target) && selector.matches(eventObj.target);
-                        }
+          var pD = offset - d0;
 
-                        return true;
-                    },
-                    addEventFields: function addEventFields(ele, evt) {
-                        evt.cy = ele.cy();
-                        evt.target = ele;
-                    },
-                    callbackContext: function callbackContext(ele, listener, eventObj) {
-                        return listener.qualifier != null ? eventObj.target : ele;
-                    },
-                    beforeEmit: function beforeEmit(context, listener
-                                                    /*, eventObj*/
-                    ) {
-                        if (listener.conf && listener.conf.once) {
-                            listener.conf.onceCollection.removeListener(listener.event, listener.qualifier, listener.callback);
-                        }
-                    },
-                    bubble: function bubble() {
-                        return true;
-                    },
-                    parent: function parent(ele) {
-                        return ele.isChild() ? ele.parent() : ele.cy();
-                    }
-                };
+          var _t = pD / di;
 
-                var argSelector = function argSelector(arg) {
-                    if (string(arg)) {
-                        return new Selector(arg);
-                    } else {
-                        return arg;
-                    }
-                };
+          _t = bound(0, _t, 1);
+          p = lineAt(p0, p1, _t);
+          angle = lineAngle(p0, p1);
+          break;
+        }
+    }
 
-                var elesfn$m = {
-                    createEmitter: function createEmitter() {
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            var _p = ele._private;
+    setRs('labelX', prefix, p.x);
+    setRs('labelY', prefix, p.y);
+    setRs('labelAutoAngle', prefix, angle);
+  };
 
-                            if (!_p.emitter) {
-                                _p.emitter = new Emitter(emitterOptions, ele);
-                            }
-                        }
+  calculateEndProjection('source');
+  calculateEndProjection('target');
+  this.applyLabelDimensions(edge);
+};
 
-                        return this;
-                    },
-                    emitter: function emitter() {
-                        return this._private.emitter;
-                    },
-                    on: function on(events, selector, callback) {
-                        var argSel = argSelector(selector);
-
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().on(events, argSel, callback);
-                        }
+BRp$6.applyLabelDimensions = function (ele) {
+  this.applyPrefixedLabelDimensions(ele);
 
-                        return this;
-                    },
-                    removeListener: function removeListener(events, selector, callback) {
-                        var argSel = argSelector(selector);
+  if (ele.isEdge()) {
+    this.applyPrefixedLabelDimensions(ele, 'source');
+    this.applyPrefixedLabelDimensions(ele, 'target');
+  }
+};
+
+BRp$6.applyPrefixedLabelDimensions = function (ele, prefix) {
+  var _p = ele._private;
+  var text = this.getLabelText(ele, prefix);
+  var labelDims = this.calculateLabelDimensions(ele, text);
+  var lineHeight = ele.pstyle('line-height').pfValue;
+  var textWrap = ele.pstyle('text-wrap').strValue;
+  var lines = getPrefixedProperty(_p.rscratch, 'labelWrapCachedLines', prefix) || [];
+  var numLines = textWrap !== 'wrap' ? 1 : Math.max(lines.length, 1);
+  var normPerLineHeight = labelDims.height / numLines;
+  var labelLineHeight = normPerLineHeight * lineHeight;
+  var width = labelDims.width;
+  var height = labelDims.height + (numLines - 1) * (lineHeight - 1) * normPerLineHeight;
+  setPrefixedProperty(_p.rstyle, 'labelWidth', prefix, width);
+  setPrefixedProperty(_p.rscratch, 'labelWidth', prefix, width);
+  setPrefixedProperty(_p.rstyle, 'labelHeight', prefix, height);
+  setPrefixedProperty(_p.rscratch, 'labelHeight', prefix, height);
+  setPrefixedProperty(_p.rscratch, 'labelLineHeight', prefix, labelLineHeight);
+};
+
+BRp$6.getLabelText = function (ele, prefix) {
+  var _p = ele._private;
+  var pfd = prefix ? prefix + '-' : '';
+  var text = ele.pstyle(pfd + 'label').strValue;
+  var textTransform = ele.pstyle('text-transform').value;
+
+  var rscratch = function rscratch(propName, value) {
+    if (value) {
+      setPrefixedProperty(_p.rscratch, propName, prefix, value);
+      return value;
+    } else {
+      return getPrefixedProperty(_p.rscratch, propName, prefix);
+    }
+  }; // for empty text, skip all processing
 
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().removeListener(events, argSel, callback);
-                        }
 
-                        return this;
-                    },
-                    removeAllListeners: function removeAllListeners() {
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().removeAllListeners();
-                        }
+  if (!text) {
+    return '';
+  }
 
-                        return this;
-                    },
-                    one: function one(events, selector, callback) {
-                        var argSel = argSelector(selector);
+  if (textTransform == 'none') ; else if (textTransform == 'uppercase') {
+    text = text.toUpperCase();
+  } else if (textTransform == 'lowercase') {
+    text = text.toLowerCase();
+  }
 
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().one(events, argSel, callback);
-                        }
+  var wrapStyle = ele.pstyle('text-wrap').value;
 
-                        return this;
-                    },
-                    once: function once(events, selector, callback) {
-                        var argSel = argSelector(selector);
-
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().on(events, argSel, callback, {
-                                once: true,
-                                onceCollection: this
-                            });
-                        }
-                    },
-                    emit: function emit(events, extraParams) {
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            ele.emitter().emit(events, extraParams);
-                        }
+  if (wrapStyle === 'wrap') {
+    var labelKey = rscratch('labelKey'); // save recalc if the label is the same as before
 
-                        return this;
-                    },
-                    emitAndNotify: function emitAndNotify(event, extraParams) {
-                        // for internal use only
-                        if (this.length === 0) {
-                            return;
-                        } // empty collections don't need to notify anything
-                        // notify renderer
+    if (labelKey != null && rscratch('labelWrapKey') === labelKey) {
+      return rscratch('labelWrapCachedText');
+    }
 
+    var zwsp = "\u200B";
+    var lines = text.split('\n');
+    var maxW = ele.pstyle('text-max-width').pfValue;
+    var overflow = ele.pstyle('text-overflow-wrap').value;
+    var overflowAny = overflow === 'anywhere';
+    var wrappedLines = [];
+    var wordsRegex = /[\s\u200b]+/;
+    var wordSeparator = overflowAny ? '' : ' ';
+
+    for (var l = 0; l < lines.length; l++) {
+      var line = lines[l];
+      var lineDims = this.calculateLabelDimensions(ele, line);
+      var lineW = lineDims.width;
+
+      if (overflowAny) {
+        var processedLine = line.split('').join(zwsp);
+        line = processedLine;
+      }
+
+      if (lineW > maxW) {
+        // line is too long
+        var words = line.split(wordsRegex);
+        var subline = '';
+
+        for (var w = 0; w < words.length; w++) {
+          var word = words[w];
+          var testLine = subline.length === 0 ? word : subline + wordSeparator + word;
+          var testDims = this.calculateLabelDimensions(ele, testLine);
+          var testW = testDims.width;
+
+          if (testW <= maxW) {
+            // word fits on current line
+            subline += word + wordSeparator;
+          } else {
+            // word starts new line
+            if (subline) {
+              wrappedLines.push(subline);
+            }
 
-                        this.cy().notify(event, this);
-                        this.emit(event, extraParams);
-                        return this;
-                    }
-                };
-                define$3.eventAliasesOn(elesfn$m);
-
-                var elesfn$n = {
-                    nodes: function nodes(selector) {
-                        return this.filter(function (ele) {
-                            return ele.isNode();
-                        }).filter(selector);
-                    },
-                    edges: function edges(selector) {
-                        return this.filter(function (ele) {
-                            return ele.isEdge();
-                        }).filter(selector);
-                    },
-                    // internal helper to get nodes and edges as separate collections with single iteration over elements
-                    byGroup: function byGroup() {
-                        var nodes = this.spawn();
-                        var edges = this.spawn();
-
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-
-                            if (ele.isNode()) {
-                                nodes.push(ele);
-                            } else {
-                                edges.push(ele);
-                            }
-                        }
+            subline = word + wordSeparator;
+          }
+        } // if there's remaining text, put it in a wrapped line
 
-                        return {
-                            nodes: nodes,
-                            edges: edges
-                        };
-                    },
-                    filter: function filter(_filter, thisArg) {
-                        if (_filter === undefined) {
-                            // check this first b/c it's the most common/performant case
-                            return this;
-                        } else if (string(_filter) || elementOrCollection(_filter)) {
-                            return new Selector(_filter).filter(this);
-                        } else if (fn(_filter)) {
-                            var filterEles = this.spawn();
-                            var eles = this;
-
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                var include = thisArg ? _filter.apply(thisArg, [ele, i, eles]) : _filter(ele, i, eles);
-
-                                if (include) {
-                                    filterEles.push(ele);
-                                }
-                            }
 
-                            return filterEles;
-                        }
+        if (!subline.match(/^[\s\u200b]+$/)) {
+          wrappedLines.push(subline);
+        }
+      } else {
+        // line is already short enough
+        wrappedLines.push(line);
+      }
+    } // for
+
+
+    rscratch('labelWrapCachedLines', wrappedLines);
+    text = rscratch('labelWrapCachedText', wrappedLines.join('\n'));
+    rscratch('labelWrapKey', labelKey);
+  } else if (wrapStyle === 'ellipsis') {
+    var _maxW = ele.pstyle('text-max-width').pfValue;
+    var ellipsized = '';
+    var ellipsis = "\u2026";
+    var incLastCh = false;
+
+    for (var i = 0; i < text.length; i++) {
+      var widthWithNextCh = this.calculateLabelDimensions(ele, ellipsized + text[i] + ellipsis).width;
+
+      if (widthWithNextCh > _maxW) {
+        break;
+      }
+
+      ellipsized += text[i];
+
+      if (i === text.length - 1) {
+        incLastCh = true;
+      }
+    }
 
-                        return this.spawn(); // if not handled by above, give 'em an empty collection
-                    },
-                    not: function not(toRemove) {
-                        if (!toRemove) {
-                            return this;
-                        } else {
-                            if (string(toRemove)) {
-                                toRemove = this.filter(toRemove);
-                            }
+    if (!incLastCh) {
+      ellipsized += ellipsis;
+    }
 
-                            var elements = this.spawn();
+    return ellipsized;
+  } // if ellipsize
 
-                            for (var i = 0; i < this.length; i++) {
-                                var element = this[i];
-                                var remove = toRemove.has(element);
 
-                                if (!remove) {
-                                    elements.push(element);
-                                }
-                            }
+  return text;
+};
 
-                            return elements;
-                        }
-                    },
-                    absoluteComplement: function absoluteComplement() {
-                        var cy = this.cy();
-                        return cy.mutableElements().not(this);
-                    },
-                    intersect: function intersect(other) {
-                        // if a selector is specified, then filter by it instead
-                        if (string(other)) {
-                            var selector = other;
-                            return this.filter(selector);
-                        }
+BRp$6.getLabelJustification = function (ele) {
+  var justification = ele.pstyle('text-justification').strValue;
+  var textHalign = ele.pstyle('text-halign').strValue;
 
-                        var elements = this.spawn();
-                        var col1 = this;
-                        var col2 = other;
-                        var col1Smaller = this.length < other.length;
-                        var colS = col1Smaller ? col1 : col2;
-                        var colL = col1Smaller ? col2 : col1;
+  if (justification === 'auto') {
+    if (ele.isNode()) {
+      switch (textHalign) {
+        case 'left':
+          return 'right';
 
-                        for (var i = 0; i < colS.length; i++) {
-                            var ele = colS[i];
+        case 'right':
+          return 'left';
 
-                            if (colL.has(ele)) {
-                                elements.push(ele);
-                            }
-                        }
+        default:
+          return 'center';
+      }
+    } else {
+      return 'center';
+    }
+  } else {
+    return justification;
+  }
+};
 
-                        return elements;
-                    },
-                    xor: function xor(other) {
-                        var cy = this._private.cy;
+BRp$6.calculateLabelDimensions = function (ele, text) {
+  var r = this;
+  var cacheKey = hashString(text, ele._private.labelDimsKey);
+  var cache = r.labelDimCache || (r.labelDimCache = []);
+  var existingVal = cache[cacheKey];
 
-                        if (string(other)) {
-                            other = cy.$(other);
-                        }
+  if (existingVal != null) {
+    return existingVal;
+  }
 
-                        var elements = this.spawn();
-                        var col1 = this;
-                        var col2 = other;
+  var padding = 0; // add padding around text dims, as the measurement isn't that accurate
+
+  var fStyle = ele.pstyle('font-style').strValue;
+  var size = ele.pstyle('font-size').pfValue;
+  var family = ele.pstyle('font-family').strValue;
+  var weight = ele.pstyle('font-weight').strValue;
+  var canvas = this.labelCalcCanvas;
+  var c2d = this.labelCalcCanvasContext;
+
+  if (!canvas) {
+    canvas = this.labelCalcCanvas = document.createElement('canvas');
+    c2d = this.labelCalcCanvasContext = canvas.getContext('2d');
+    var ds = canvas.style;
+    ds.position = 'absolute';
+    ds.left = '-9999px';
+    ds.top = '-9999px';
+    ds.zIndex = '-1';
+    ds.visibility = 'hidden';
+    ds.pointerEvents = 'none';
+  }
 
-                        var add = function add(col, other) {
-                            for (var i = 0; i < col.length; i++) {
-                                var ele = col[i];
-                                var id = ele._private.data.id;
-                                var inOther = other.hasElementWithId(id);
+  c2d.font = "".concat(fStyle, " ").concat(weight, " ").concat(size, "px ").concat(family);
+  var width = 0;
+  var height = 0;
+  var lines = text.split('\n');
+
+  for (var i = 0; i < lines.length; i++) {
+    var line = lines[i];
+    var metrics = c2d.measureText(line);
+    var w = Math.ceil(metrics.width);
+    var h = size;
+    width = Math.max(w, width);
+    height += h;
+  }
 
-                                if (!inOther) {
-                                    elements.push(ele);
-                                }
-                            }
-                        };
+  width += padding;
+  height += padding;
+  return cache[cacheKey] = {
+    width: width,
+    height: height
+  };
+};
+
+BRp$6.calculateLabelAngle = function (ele, prefix) {
+  var _p = ele._private;
+  var rs = _p.rscratch;
+  var isEdge = ele.isEdge();
+  var prefixDash = prefix ? prefix + '-' : '';
+  var rot = ele.pstyle(prefixDash + 'text-rotation');
+  var rotStr = rot.strValue;
+
+  if (rotStr === 'none') {
+    return 0;
+  } else if (isEdge && rotStr === 'autorotate') {
+    return rs.labelAutoAngle;
+  } else if (rotStr === 'autorotate') {
+    return 0;
+  } else {
+    return rot.pfValue;
+  }
+};
+
+BRp$6.calculateLabelAngles = function (ele) {
+  var r = this;
+  var isEdge = ele.isEdge();
+  var _p = ele._private;
+  var rs = _p.rscratch;
+  rs.labelAngle = r.calculateLabelAngle(ele);
+
+  if (isEdge) {
+    rs.sourceLabelAngle = r.calculateLabelAngle(ele, 'source');
+    rs.targetLabelAngle = r.calculateLabelAngle(ele, 'target');
+  }
+};
 
-                        add(col1, col2);
-                        add(col2, col1);
-                        return elements;
-                    },
-                    diff: function diff(other) {
-                        var cy = this._private.cy;
+var BRp$7 = {};
+var TOO_SMALL_CUT_RECT = 28;
+var warnedCutRect = false;
 
-                        if (string(other)) {
-                            other = cy.$(other);
-                        }
+BRp$7.getNodeShape = function (node) {
+  var r = this;
+  var shape = node.pstyle('shape').value;
 
-                        var left = this.spawn();
-                        var right = this.spawn();
-                        var both = this.spawn();
-                        var col1 = this;
-                        var col2 = other;
-
-                        var add = function add(col, other, retEles) {
-                            for (var i = 0; i < col.length; i++) {
-                                var ele = col[i];
-                                var id = ele._private.data.id;
-                                var inOther = other.hasElementWithId(id);
-
-                                if (inOther) {
-                                    both.merge(ele);
-                                } else {
-                                    retEles.push(ele);
-                                }
-                            }
-                        };
-
-                        add(col1, col2, left);
-                        add(col2, col1, right);
-                        return {
-                            left: left,
-                            right: right,
-                            both: both
-                        };
-                    },
-                    add: function add(toAdd) {
-                        var cy = this._private.cy;
-
-                        if (!toAdd) {
-                            return this;
-                        }
+  if (shape === 'cutrectangle' && (node.width() < TOO_SMALL_CUT_RECT || node.height() < TOO_SMALL_CUT_RECT)) {
+    if (!warnedCutRect) {
+      warn('The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead');
+      warnedCutRect = true;
+    }
 
-                        if (string(toAdd)) {
-                            var selector = toAdd;
-                            toAdd = cy.mutableElements().filter(selector);
-                        }
+    return 'rectangle';
+  }
 
-                        var elements = this.spawnSelf();
+  if (node.isParent()) {
+    if (shape === 'rectangle' || shape === 'roundrectangle' || shape === 'round-rectangle' || shape === 'cutrectangle' || shape === 'cut-rectangle' || shape === 'barrel') {
+      return shape;
+    } else {
+      return 'rectangle';
+    }
+  }
 
-                        for (var i = 0; i < toAdd.length; i++) {
-                            var ele = toAdd[i];
-                            var add = !this.has(ele);
+  if (shape === 'polygon') {
+    var points = node.pstyle('shape-polygon-points').value;
+    return r.nodeShapes.makePolygon(points).name;
+  }
 
-                            if (add) {
-                                elements.push(ele);
-                            }
-                        }
+  return shape;
+};
 
-                        return elements;
-                    },
-                    // in place merge on calling collection
-                    merge: function merge(toAdd) {
-                        var _p = this._private;
-                        var cy = _p.cy;
+var BRp$8 = {};
 
-                        if (!toAdd) {
-                            return this;
-                        }
+BRp$8.registerCalculationListeners = function () {
+  var cy = this.cy;
+  var elesToUpdate = cy.collection();
+  var r = this;
 
-                        if (toAdd && string(toAdd)) {
-                            var selector = toAdd;
-                            toAdd = cy.mutableElements().filter(selector);
-                        }
+  var enqueue = function enqueue(eles) {
+    var dirtyStyleCaches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+    elesToUpdate.merge(eles);
 
-                        var map = _p.map;
+    if (dirtyStyleCaches) {
+      for (var i = 0; i < eles.length; i++) {
+        var ele = eles[i];
+        var _p = ele._private;
+        var rstyle = _p.rstyle;
+        rstyle.clean = false;
+        rstyle.cleanConnected = false;
+      }
+    }
+  };
+
+  r.binder(cy).on('bounds.* dirty.*', function onDirtyBounds(e) {
+    var ele = e.target;
+    enqueue(ele);
+  }).on('style.* background.*', function onDirtyStyle(e) {
+    var ele = e.target;
+    enqueue(ele, false);
+  });
+
+  var updateEleCalcs = function updateEleCalcs(willDraw) {
+    if (willDraw) {
+      var fns = r.onUpdateEleCalcsFns;
+
+      for (var i = 0; i < elesToUpdate.length; i++) {
+        var ele = elesToUpdate[i];
+        var rstyle = ele._private.rstyle;
+
+        if (ele.isNode() && !rstyle.cleanConnected) {
+          enqueue(ele.connectedEdges());
+          rstyle.cleanConnected = true;
+        }
+      }
 
-                        for (var i = 0; i < toAdd.length; i++) {
-                            var toAddEle = toAdd[i];
-                            var id = toAddEle._private.data.id;
-                            var add = !map.has(id);
+      if (fns) {
+        for (var _i = 0; _i < fns.length; _i++) {
+          var fn = fns[_i];
+          fn(willDraw, elesToUpdate);
+        }
+      }
 
-                            if (add) {
-                                var index = this.length++;
-                                this[index] = toAddEle;
-                                map.set(id, {
-                                    ele: toAddEle,
-                                    index: index
-                                });
-                            }
-                        }
+      r.recalculateRenderedStyle(elesToUpdate);
+      elesToUpdate = cy.collection();
+    }
+  };
 
-                        return this; // chaining
-                    },
-                    unmergeAt: function unmergeAt(i) {
-                        var ele = this[i];
-                        var id = ele.id();
-                        var _p = this._private;
-                        var map = _p.map; // remove ele
-
-                        this[i] = undefined;
-                        map["delete"](id);
-                        var unmergedLastEle = i === this.length - 1; // replace empty spot with last ele in collection
-
-                        if (this.length > 1 && !unmergedLastEle) {
-                            var lastEleI = this.length - 1;
-                            var lastEle = this[lastEleI];
-                            var lastEleId = lastEle._private.data.id;
-                            this[lastEleI] = undefined;
-                            this[i] = lastEle;
-                            map.set(lastEleId, {
-                                ele: lastEle,
-                                index: i
-                            });
-                        } // the collection is now 1 ele smaller
-
-
-                        this.length--;
-                        return this;
-                    },
-                    // remove single ele in place in calling collection
-                    unmergeOne: function unmergeOne(ele) {
-                        ele = ele[0];
-                        var _p = this._private;
-                        var id = ele._private.data.id;
-                        var map = _p.map;
-                        var entry = map.get(id);
-
-                        if (!entry) {
-                            return this; // no need to remove
-                        }
+  r.flushRenderedStyleQueue = function () {
+    updateEleCalcs(true);
+  };
 
-                        var i = entry.index;
-                        this.unmergeAt(i);
-                        return this;
-                    },
-                    // remove eles in place on calling collection
-                    unmerge: function unmerge(toRemove) {
-                        var cy = this._private.cy;
+  r.beforeRender(updateEleCalcs, r.beforeRenderPriorities.eleCalcs);
+};
 
-                        if (!toRemove) {
-                            return this;
-                        }
+BRp$8.onUpdateEleCalcs = function (fn) {
+  var fns = this.onUpdateEleCalcsFns = this.onUpdateEleCalcsFns || [];
+  fns.push(fn);
+};
 
-                        if (toRemove && string(toRemove)) {
-                            var selector = toRemove;
-                            toRemove = cy.mutableElements().filter(selector);
-                        }
+BRp$8.recalculateRenderedStyle = function (eles, useCache) {
+  var isCleanConnected = function isCleanConnected(ele) {
+    return ele._private.rstyle.cleanConnected;
+  };
 
-                        for (var i = 0; i < toRemove.length; i++) {
-                            this.unmergeOne(toRemove[i]);
-                        }
+  var edges = [];
+  var nodes = []; // the renderer can't be used for calcs when destroyed, e.g. ele.boundingBox()
 
-                        return this; // chaining
-                    },
-                    unmergeBy: function unmergeBy(toRmFn) {
-                        for (var i = this.length - 1; i >= 0; i--) {
-                            var ele = this[i];
+  if (this.destroyed) {
+    return;
+  } // use cache by default for perf
 
-                            if (toRmFn(ele)) {
-                                this.unmergeAt(i);
-                            }
-                        }
 
-                        return this;
-                    },
-                    map: function map(mapFn, thisArg) {
-                        var arr = [];
-                        var eles = this;
+  if (useCache === undefined) {
+    useCache = true;
+  }
 
-                        for (var i = 0; i < eles.length; i++) {
-                            var ele = eles[i];
-                            var ret = thisArg ? mapFn.apply(thisArg, [ele, i, eles]) : mapFn(ele, i, eles);
-                            arr.push(ret);
-                        }
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    var _p = ele._private;
+    var rstyle = _p.rstyle; // an edge may be implicitly dirty b/c of one of its connected nodes
+    // (and a request for recalc may come in between frames)
 
-                        return arr;
-                    },
-                    reduce: function reduce(fn, initialValue) {
-                        var val = initialValue;
-                        var eles = this;
+    if (ele.isEdge() && (!isCleanConnected(ele.source()) || !isCleanConnected(ele.target()))) {
+      rstyle.clean = false;
+    } // only update if dirty and in graph
 
-                        for (var i = 0; i < eles.length; i++) {
-                            val = fn(val, eles[i], i, eles);
-                        }
 
-                        return val;
-                    },
-                    max: function max(valFn, thisArg) {
-                        var max = -Infinity;
-                        var maxEle;
-                        var eles = this;
+    if (useCache && rstyle.clean || ele.removed()) {
+      continue;
+    } // only update if not display: none
 
-                        for (var i = 0; i < eles.length; i++) {
-                            var ele = eles[i];
-                            var val = thisArg ? valFn.apply(thisArg, [ele, i, eles]) : valFn(ele, i, eles);
 
-                            if (val > max) {
-                                max = val;
-                                maxEle = ele;
-                            }
-                        }
+    if (ele.pstyle('display').value === 'none') {
+      continue;
+    }
 
-                        return {
-                            value: max,
-                            ele: maxEle
-                        };
-                    },
-                    min: function min(valFn, thisArg) {
-                        var min = Infinity;
-                        var minEle;
-                        var eles = this;
-
-                        for (var i = 0; i < eles.length; i++) {
-                            var ele = eles[i];
-                            var val = thisArg ? valFn.apply(thisArg, [ele, i, eles]) : valFn(ele, i, eles);
-
-                            if (val < min) {
-                                min = val;
-                                minEle = ele;
-                            }
-                        }
+    if (_p.group === 'nodes') {
+      nodes.push(ele);
+    } else {
+      // edges
+      edges.push(ele);
+    }
 
-                        return {
-                            value: min,
-                            ele: minEle
-                        };
-                    }
-                }; // aliases
-
-                var fn$5 = elesfn$n;
-                fn$5['u'] = fn$5['|'] = fn$5['+'] = fn$5.union = fn$5.or = fn$5.add;
-                fn$5['\\'] = fn$5['!'] = fn$5['-'] = fn$5.difference = fn$5.relativeComplement = fn$5.subtract = fn$5.not;
-                fn$5['n'] = fn$5['&'] = fn$5['.'] = fn$5.and = fn$5.intersection = fn$5.intersect;
-                fn$5['^'] = fn$5['(+)'] = fn$5['(-)'] = fn$5.symmetricDifference = fn$5.symdiff = fn$5.xor;
-                fn$5.fnFilter = fn$5.filterFn = fn$5.stdFilter = fn$5.filter;
-                fn$5.complement = fn$5.abscomp = fn$5.absoluteComplement;
-
-                var elesfn$o = {
-                    isNode: function isNode() {
-                        return this.group() === 'nodes';
-                    },
-                    isEdge: function isEdge() {
-                        return this.group() === 'edges';
-                    },
-                    isLoop: function isLoop() {
-                        return this.isEdge() && this.source()[0] === this.target()[0];
-                    },
-                    isSimple: function isSimple() {
-                        return this.isEdge() && this.source()[0] !== this.target()[0];
-                    },
-                    group: function group() {
-                        var ele = this[0];
-
-                        if (ele) {
-                            return ele._private.group;
-                        }
-                    }
-                };
+    rstyle.clean = true;
+  } // update node data from projections
 
-                /**
-                 *  Elements are drawn in a specific order based on compound depth (low to high), the element type (nodes above edges),
-                 *  and z-index (low to high).  These styles affect how this applies:
-                 *
-                 *  z-compound-depth: May be `bottom | orphan | auto | top`.  The first drawn is `bottom`, then `orphan` which is the
-                 *      same depth as the root of the compound graph, followed by the default value `auto` which draws in order from
-                 *      root to leaves of the compound graph.  The last drawn is `top`.
-                 *  z-index-compare: May be `auto | manual`.  The default value is `auto` which always draws edges under nodes.
-                 *      `manual` ignores this convention and draws based on the `z-index` value setting.
-                 *  z-index: An integer value that affects the relative draw order of elements.  In general, an element with a higher
-                 *      `z-index` will be drawn on top of an element with a lower `z-index`.
-                 */
-
-                var zIndexSort = function zIndexSort(a, b) {
-                    var cy = a.cy();
-                    var hasCompoundNodes = cy.hasCompoundNodes();
-
-                    function getDepth(ele) {
-                        var style = ele.pstyle('z-compound-depth');
-
-                        if (style.value === 'auto') {
-                            return hasCompoundNodes ? ele.zDepth() : 0;
-                        } else if (style.value === 'bottom') {
-                            return -1;
-                        } else if (style.value === 'top') {
-                            return MAX_INT;
-                        } // 'orphan'
-
-
-                        return 0;
-                    }
 
-                    var depthDiff = getDepth(a) - getDepth(b);
+  for (var _i2 = 0; _i2 < nodes.length; _i2++) {
+    var _ele = nodes[_i2];
+    var _p2 = _ele._private;
+    var _rstyle = _p2.rstyle;
 
-                    if (depthDiff !== 0) {
-                        return depthDiff;
-                    }
+    var pos = _ele.position();
 
-                    function getEleDepth(ele) {
-                        var style = ele.pstyle('z-index-compare');
+    this.recalculateNodeLabelProjection(_ele);
+    _rstyle.nodeX = pos.x;
+    _rstyle.nodeY = pos.y;
+    _rstyle.nodeW = _ele.pstyle('width').pfValue;
+    _rstyle.nodeH = _ele.pstyle('height').pfValue;
+  }
 
-                        if (style.value === 'auto') {
-                            return ele.isNode() ? 1 : 0;
-                        } // 'manual'
+  this.recalculateEdgeProjections(edges); // update edge data from projections
+
+  for (var _i3 = 0; _i3 < edges.length; _i3++) {
+    var _ele2 = edges[_i3];
+    var _p3 = _ele2._private;
+    var _rstyle2 = _p3.rstyle;
+    var rs = _p3.rscratch; // update rstyle positions
+
+    _rstyle2.srcX = rs.arrowStartX;
+    _rstyle2.srcY = rs.arrowStartY;
+    _rstyle2.tgtX = rs.arrowEndX;
+    _rstyle2.tgtY = rs.arrowEndY;
+    _rstyle2.midX = rs.midX;
+    _rstyle2.midY = rs.midY;
+    _rstyle2.labelAngle = rs.labelAngle;
+    _rstyle2.sourceLabelAngle = rs.sourceLabelAngle;
+    _rstyle2.targetLabelAngle = rs.targetLabelAngle;
+  }
+};
 
+var BRp$9 = {};
 
-                        return 0;
-                    }
+BRp$9.updateCachedGrabbedEles = function () {
+  var eles = this.cachedZSortedEles;
 
-                    var eleDiff = getEleDepth(a) - getEleDepth(b);
+  if (!eles) {
+    // just let this be recalculated on the next z sort tick
+    return;
+  }
 
-                    if (eleDiff !== 0) {
-                        return eleDiff;
-                    }
+  eles.drag = [];
+  eles.nondrag = [];
+  var grabTargets = [];
 
-                    var zDiff = a.pstyle('z-index').value - b.pstyle('z-index').value;
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    var rs = ele._private.rscratch;
 
-                    if (zDiff !== 0) {
-                        return zDiff;
-                    } // compare indices in the core (order added to graph w/ last on top)
+    if (ele.grabbed() && !ele.isParent()) {
+      grabTargets.push(ele);
+    } else if (rs.inDragLayer) {
+      eles.drag.push(ele);
+    } else {
+      eles.nondrag.push(ele);
+    }
+  } // put the grab target nodes last so it's on top of its neighbourhood
 
 
-                    return a.poolIndex() - b.poolIndex();
-                };
+  for (var i = 0; i < grabTargets.length; i++) {
+    var ele = grabTargets[i];
+    eles.drag.push(ele);
+  }
+};
+
+BRp$9.invalidateCachedZSortedEles = function () {
+  this.cachedZSortedEles = null;
+};
+
+BRp$9.getCachedZSortedEles = function (forceRecalc) {
+  if (forceRecalc || !this.cachedZSortedEles) {
+    var eles = this.cy.mutableElements().toArray();
+    eles.sort(zIndexSort);
+    eles.interactive = eles.filter(function (ele) {
+      return ele.interactive();
+    });
+    this.cachedZSortedEles = eles;
+    this.updateCachedGrabbedEles();
+  } else {
+    eles = this.cachedZSortedEles;
+  }
 
-                var elesfn$p = {
-                    forEach: function forEach(fn$1, thisArg) {
-                        if (fn(fn$1)) {
-                            var N = this.length;
+  return eles;
+};
 
-                            for (var i = 0; i < N; i++) {
-                                var ele = this[i];
-                                var ret = thisArg ? fn$1.apply(thisArg, [ele, i, this]) : fn$1(ele, i, this);
+var BRp$a = {};
+[BRp$1, BRp$2, BRp$3, BRp$4, BRp$5, BRp$6, BRp$7, BRp$8, BRp$9].forEach(function (props) {
+  extend(BRp$a, props);
+});
 
-                                if (ret === false) {
-                                    break;
-                                } // exit each early on return false
+var BRp$b = {};
 
-                            }
-                        }
+BRp$b.getCachedImage = function (url, crossOrigin, onLoad) {
+  var r = this;
+  var imageCache = r.imageCache = r.imageCache || {};
+  var cache = imageCache[url];
 
-                        return this;
-                    },
-                    toArray: function toArray() {
-                        var array = [];
+  if (cache) {
+    if (!cache.image.complete) {
+      cache.image.addEventListener('load', onLoad);
+    }
 
-                        for (var i = 0; i < this.length; i++) {
-                            array.push(this[i]);
-                        }
+    return cache.image;
+  } else {
+    cache = imageCache[url] = imageCache[url] || {};
+    var image = cache.image = new Image(); // eslint-disable-line no-undef
 
-                        return array;
-                    },
-                    slice: function slice(start, end) {
-                        var array = [];
-                        var thisSize = this.length;
+    image.addEventListener('load', onLoad);
+    image.addEventListener('error', function () {
+      image.error = true;
+    }); // #1582 safari doesn't load data uris with crossOrigin properly
+    // https://bugs.webkit.org/show_bug.cgi?id=123978
 
-                        if (end == null) {
-                            end = thisSize;
-                        }
+    var dataUriPrefix = 'data:';
+    var isDataUri = url.substring(0, dataUriPrefix.length).toLowerCase() === dataUriPrefix;
 
-                        if (start == null) {
-                            start = 0;
-                        }
+    if (!isDataUri) {
+      image.crossOrigin = crossOrigin; // prevent tainted canvas
+    }
 
-                        if (start < 0) {
-                            start = thisSize + start;
-                        }
+    image.src = url;
+    return image;
+  }
+};
 
-                        if (end < 0) {
-                            end = thisSize + end;
-                        }
+var BRp$c = {};
+/* global document, window, ResizeObserver, MutationObserver */
 
-                        for (var i = start; i >= 0 && i < end && i < thisSize; i++) {
-                            array.push(this[i]);
-                        }
+BRp$c.registerBinding = function (target, event, handler, useCapture) {
+  // eslint-disable-line no-unused-vars
+  var args = Array.prototype.slice.apply(arguments, [1]); // copy
 
-                        return this.spawn(array);
-                    },
-                    size: function size() {
-                        return this.length;
-                    },
-                    eq: function eq(i) {
-                        return this[i] || this.spawn();
-                    },
-                    first: function first() {
-                        return this[0] || this.spawn();
-                    },
-                    last: function last() {
-                        return this[this.length - 1] || this.spawn();
-                    },
-                    empty: function empty() {
-                        return this.length === 0;
-                    },
-                    nonempty: function nonempty() {
-                        return !this.empty();
-                    },
-                    sort: function sort(sortFn) {
-                        if (!fn(sortFn)) {
-                            return this;
-                        }
+  var b = this.binder(target);
+  return b.on.apply(b, args);
+};
 
-                        var sorted = this.toArray().sort(sortFn);
-                        return this.spawn(sorted);
-                    },
-                    sortByZIndex: function sortByZIndex() {
-                        return this.sort(zIndexSort);
-                    },
-                    zDepth: function zDepth() {
-                        var ele = this[0];
+BRp$c.binder = function (tgt) {
+  var r = this;
+  var tgtIsDom = tgt === window || tgt === document || tgt === document.body || domElement(tgt);
 
-                        if (!ele) {
-                            return undefined;
-                        } // let cy = ele.cy();
+  if (r.supportsPassiveEvents == null) {
+    // from https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
+    var supportsPassive = false;
 
+    try {
+      var opts = Object.defineProperty({}, 'passive', {
+        get: function get() {
+          supportsPassive = true;
+          return true;
+        }
+      });
+      window.addEventListener('test', null, opts);
+    } catch (err) {// not supported
+    }
 
-                        var _p = ele._private;
-                        var group = _p.group;
+    r.supportsPassiveEvents = supportsPassive;
+  }
 
-                        if (group === 'nodes') {
-                            var depth = _p.data.parent ? ele.parents().size() : 0;
+  var on = function on(event, handler, useCapture) {
+    var args = Array.prototype.slice.call(arguments);
 
-                            if (!ele.isParent()) {
-                                return MAX_INT - 1; // childless nodes always on top
-                            }
+    if (tgtIsDom && r.supportsPassiveEvents) {
+      // replace useCapture w/ opts obj
+      args[2] = {
+        capture: useCapture != null ? useCapture : false,
+        passive: false,
+        once: false
+      };
+    }
 
-                            return depth;
-                        } else {
-                            var src = _p.source;
-                            var tgt = _p.target;
-                            var srcDepth = src.zDepth();
-                            var tgtDepth = tgt.zDepth();
-                            return Math.max(srcDepth, tgtDepth, 0); // depth of deepest parent
-                        }
-                    }
-                };
-                elesfn$p.each = elesfn$p.forEach;
-
-                var defineSymbolIterator = function defineSymbolIterator() {
-                    var typeofUndef =  "undefined" ;
-                    var isIteratorSupported = (typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) != typeofUndef && _typeof(Symbol.iterator) != typeofUndef; // eslint-disable-line no-undef
-
-                    if (isIteratorSupported) {
-                        elesfn$p[Symbol.iterator] = function () {
-                            var _this = this;
-
-                            // eslint-disable-line no-undef
-                            var entry = {
-                                value: undefined,
-                                done: false
-                            };
-                            var i = 0;
-                            var length = this.length;
-                            return _defineProperty({
-                                next: function next() {
-                                    if (i < length) {
-                                        entry.value = _this[i++];
-                                    } else {
-                                        entry.value = undefined;
-                                        entry.done = true;
-                                    }
-
-                                    return entry;
-                                }
-                            }, Symbol.iterator, function () {
-                                // eslint-disable-line no-undef
-                                return this;
-                            });
-                        };
-                    }
-                };
+    r.bindings.push({
+      target: tgt,
+      args: args
+    });
+    (tgt.addEventListener || tgt.on).apply(tgt, args);
+    return this;
+  };
+
+  return {
+    on: on,
+    addEventListener: on,
+    addListener: on,
+    bind: on
+  };
+};
+
+BRp$c.nodeIsDraggable = function (node) {
+  return node && node.isNode() && !node.locked() && node.grabbable();
+};
+
+BRp$c.nodeIsGrabbable = function (node) {
+  return this.nodeIsDraggable(node) && node.interactive();
+};
+
+BRp$c.load = function () {
+  var r = this;
+
+  var isSelected = function isSelected(ele) {
+    return ele.selected();
+  };
+
+  var triggerEvents = function triggerEvents(target, names, e, position) {
+    if (target == null) {
+      target = r.cy;
+    }
 
-                defineSymbolIterator();
+    for (var i = 0; i < names.length; i++) {
+      var name = names[i];
+      target.emit({
+        originalEvent: e,
+        type: name,
+        position: position
+      });
+    }
+  };
 
-                var getLayoutDimensionOptions = defaults({
-                    nodeDimensionsIncludeLabels: false
-                });
-                var elesfn$q = {
-                    // Calculates and returns node dimensions { x, y } based on options given
-                    layoutDimensions: function layoutDimensions(options) {
-                        options = getLayoutDimensionOptions(options);
-                        var dims;
-
-                        if (!this.takesUpSpace()) {
-                            dims = {
-                                w: 0,
-                                h: 0
-                            };
-                        } else if (options.nodeDimensionsIncludeLabels) {
-                            var bbDim = this.boundingBox();
-                            dims = {
-                                w: bbDim.w,
-                                h: bbDim.h
-                            };
-                        } else {
-                            dims = {
-                                w: this.outerWidth(),
-                                h: this.outerHeight()
-                            };
-                        } // sanitise the dimensions for external layouts (avoid division by zero)
-
-
-                        if (dims.w === 0 || dims.h === 0) {
-                            dims.w = dims.h = 1;
-                        }
+  var isMultSelKeyDown = function isMultSelKeyDown(e) {
+    return e.shiftKey || e.metaKey || e.ctrlKey; // maybe e.altKey
+  };
 
-                        return dims;
-                    },
-                    // using standard layout options, apply position function (w/ or w/o animation)
-                    layoutPositions: function layoutPositions(layout, options, fn) {
-                        var nodes = this.nodes();
-                        var cy = this.cy();
-                        var layoutEles = options.eles; // nodes & edges
+  var allowPanningPassthrough = function allowPanningPassthrough(down, downs) {
+    var allowPassthrough = true;
 
-                        var getMemoizeKey = function getMemoizeKey(node) {
-                            return node.id();
-                        };
+    if (r.cy.hasCompoundNodes() && down && down.pannable()) {
+      // a grabbable compound node below the ele => no passthrough panning
+      for (var i = 0; downs && i < downs.length; i++) {
+        var down = downs[i];
 
-                        var fnMem = memoize(fn, getMemoizeKey); // memoized version of position function
+        if (down.isNode() && down.isParent()) {
+          allowPassthrough = false;
+          break;
+        }
+      }
+    } else {
+      allowPassthrough = true;
+    }
 
-                        layout.emit({
-                            type: 'layoutstart',
-                            layout: layout
-                        });
-                        layout.animations = [];
-
-                        var calculateSpacing = function calculateSpacing(spacing, nodesBb, pos) {
-                            var center = {
-                                x: nodesBb.x1 + nodesBb.w / 2,
-                                y: nodesBb.y1 + nodesBb.h / 2
-                            };
-                            var spacingVector = {
-                                // scale from center of bounding box (not necessarily 0,0)
-                                x: (pos.x - center.x) * spacing,
-                                y: (pos.y - center.y) * spacing
-                            };
-                            return {
-                                x: center.x + spacingVector.x,
-                                y: center.y + spacingVector.y
-                            };
-                        };
-
-                        var useSpacingFactor = options.spacingFactor && options.spacingFactor !== 1;
-
-                        var spacingBb = function spacingBb() {
-                            if (!useSpacingFactor) {
-                                return null;
-                            }
+    return allowPassthrough;
+  };
 
-                            var bb = makeBoundingBox();
+  var setGrabbed = function setGrabbed(ele) {
+    ele[0]._private.grabbed = true;
+  };
 
-                            for (var i = 0; i < nodes.length; i++) {
-                                var node = nodes[i];
-                                var pos = fnMem(node, i);
-                                expandBoundingBoxByPoint(bb, pos.x, pos.y);
-                            }
+  var setFreed = function setFreed(ele) {
+    ele[0]._private.grabbed = false;
+  };
 
-                            return bb;
-                        };
+  var setInDragLayer = function setInDragLayer(ele) {
+    ele[0]._private.rscratch.inDragLayer = true;
+  };
 
-                        var bb = spacingBb();
-                        var getFinalPos = memoize(function (node, i) {
-                            var newPos = fnMem(node, i);
+  var setOutDragLayer = function setOutDragLayer(ele) {
+    ele[0]._private.rscratch.inDragLayer = false;
+  };
 
-                            if (useSpacingFactor) {
-                                var spacing = Math.abs(options.spacingFactor);
-                                newPos = calculateSpacing(spacing, bb, newPos);
-                            }
+  var setGrabTarget = function setGrabTarget(ele) {
+    ele[0]._private.rscratch.isGrabTarget = true;
+  };
 
-                            if (options.transform != null) {
-                                newPos = options.transform(node, newPos);
-                            }
+  var removeGrabTarget = function removeGrabTarget(ele) {
+    ele[0]._private.rscratch.isGrabTarget = false;
+  };
 
-                            return newPos;
-                        }, getMemoizeKey);
-
-                        if (options.animate) {
-                            for (var i = 0; i < nodes.length; i++) {
-                                var node = nodes[i];
-                                var newPos = getFinalPos(node, i);
-                                var animateNode = options.animateFilter == null || options.animateFilter(node, i);
-
-                                if (animateNode) {
-                                    var ani = node.animation({
-                                        position: newPos,
-                                        duration: options.animationDuration,
-                                        easing: options.animationEasing
-                                    });
-                                    layout.animations.push(ani);
-                                } else {
-                                    node.position(newPos);
-                                }
-                            }
+  var addToDragList = function addToDragList(ele, opts) {
+    var list = opts.addToList;
+    var listHasEle = list.has(ele);
 
-                            if (options.fit) {
-                                var fitAni = cy.animation({
-                                    fit: {
-                                        boundingBox: layoutEles.boundingBoxAt(getFinalPos),
-                                        padding: options.padding
-                                    },
-                                    duration: options.animationDuration,
-                                    easing: options.animationEasing
-                                });
-                                layout.animations.push(fitAni);
-                            } else if (options.zoom !== undefined && options.pan !== undefined) {
-                                var zoomPanAni = cy.animation({
-                                    zoom: options.zoom,
-                                    pan: options.pan,
-                                    duration: options.animationDuration,
-                                    easing: options.animationEasing
-                                });
-                                layout.animations.push(zoomPanAni);
-                            }
+    if (!listHasEle) {
+      list.merge(ele);
+      setGrabbed(ele);
+    }
+  }; // helper function to determine which child nodes and inner edges
+  // of a compound node to be dragged as well as the grabbed and selected nodes
 
-                            layout.animations.forEach(function (ani) {
-                                return ani.play();
-                            });
-                            layout.one('layoutready', options.ready);
-                            layout.emit({
-                                type: 'layoutready',
-                                layout: layout
-                            });
-                            Promise$1.all(layout.animations.map(function (ani) {
-                                return ani.promise();
-                            })).then(function () {
-                                layout.one('layoutstop', options.stop);
-                                layout.emit({
-                                    type: 'layoutstop',
-                                    layout: layout
-                                });
-                            });
-                        } else {
-                            nodes.positions(getFinalPos);
-
-                            if (options.fit) {
-                                cy.fit(options.eles, options.padding);
-                            }
 
-                            if (options.zoom != null) {
-                                cy.zoom(options.zoom);
-                            }
+  var addDescendantsToDrag = function addDescendantsToDrag(node, opts) {
+    if (!node.cy().hasCompoundNodes()) {
+      return;
+    }
 
-                            if (options.pan) {
-                                cy.pan(options.pan);
-                            }
+    if (opts.inDragLayer == null && opts.addToList == null) {
+      return;
+    } // nothing to do
 
-                            layout.one('layoutready', options.ready);
-                            layout.emit({
-                                type: 'layoutready',
-                                layout: layout
-                            });
-                            layout.one('layoutstop', options.stop);
-                            layout.emit({
-                                type: 'layoutstop',
-                                layout: layout
-                            });
-                        }
 
-                        return this; // chaining
-                    },
-                    layout: function layout(options) {
-                        var cy = this.cy();
-                        return cy.makeLayout(extend({}, options, {
-                            eles: this
-                        }));
-                    }
-                }; // aliases:
+    var innerNodes = node.descendants();
 
-                elesfn$q.createLayout = elesfn$q.makeLayout = elesfn$q.layout;
+    if (opts.inDragLayer) {
+      innerNodes.forEach(setInDragLayer);
+      innerNodes.connectedEdges().forEach(setInDragLayer);
+    }
 
-                function styleCache(key, fn, ele) {
-                    var _p = ele._private;
-                    var cache = _p.styleCache = _p.styleCache || [];
-                    var val;
+    if (opts.addToList) {
+      opts.addToList.unmerge(innerNodes);
+    }
+  }; // adds the given nodes and its neighbourhood to the drag layer
 
-                    if ((val = cache[key]) != null) {
-                        return val;
-                    } else {
-                        val = cache[key] = fn(ele);
-                        return val;
-                    }
-                }
 
-                function cacheStyleFunction(key, fn) {
-                    key = hashString(key);
-                    return function cachedStyleFunction(ele) {
-                        return styleCache(key, fn, ele);
-                    };
-                }
+  var addNodesToDrag = function addNodesToDrag(nodes, opts) {
+    opts = opts || {};
+    var hasCompoundNodes = nodes.cy().hasCompoundNodes();
 
-                function cachePrototypeStyleFunction(key, fn) {
-                    key = hashString(key);
+    if (opts.inDragLayer) {
+      nodes.forEach(setInDragLayer);
+      nodes.neighborhood().stdFilter(function (ele) {
+        return !hasCompoundNodes || ele.isEdge();
+      }).forEach(setInDragLayer);
+    }
 
-                    var selfFn = function selfFn(ele) {
-                        return fn.call(ele);
-                    };
+    if (opts.addToList) {
+      nodes.forEach(function (ele) {
+        addToDragList(ele, opts);
+      });
+    }
 
-                    return function cachedPrototypeStyleFunction() {
-                        var ele = this[0];
+    addDescendantsToDrag(nodes, opts); // always add to drag
+    // also add nodes and edges related to the topmost ancestor
 
-                        if (ele) {
-                            return styleCache(key, selfFn, ele);
-                        }
-                    };
-                }
+    updateAncestorsInDragLayer(nodes, {
+      inDragLayer: opts.inDragLayer
+    });
+    r.updateCachedGrabbedEles();
+  };
 
-                var elesfn$r = {
-                    recalculateRenderedStyle: function recalculateRenderedStyle(useCache) {
-                        var cy = this.cy();
-                        var renderer = cy.renderer();
-                        var styleEnabled = cy.styleEnabled();
+  var addNodeToDrag = addNodesToDrag;
 
-                        if (renderer && styleEnabled) {
-                            renderer.recalculateRenderedStyle(this, useCache);
-                        }
+  var freeDraggedElements = function freeDraggedElements(grabbedEles) {
+    if (!grabbedEles) {
+      return;
+    } // just go over all elements rather than doing a bunch of (possibly expensive) traversals
 
-                        return this;
-                    },
-                    dirtyStyleCache: function dirtyStyleCache() {
-                        var cy = this.cy();
-
-                        var dirty = function dirty(ele) {
-                            return ele._private.styleCache = null;
-                        };
-
-                        if (cy.hasCompoundNodes()) {
-                            var eles;
-                            eles = this.spawnSelf().merge(this.descendants()).merge(this.parents());
-                            eles.merge(eles.connectedEdges());
-                            eles.forEach(dirty);
-                        } else {
-                            this.forEach(function (ele) {
-                                dirty(ele);
-                                ele.connectedEdges().forEach(dirty);
-                            });
-                        }
 
-                        return this;
-                    },
-                    // fully updates (recalculates) the style for the elements
-                    updateStyle: function updateStyle(notifyRenderer) {
-                        var cy = this._private.cy;
+    r.getCachedZSortedEles().forEach(function (ele) {
+      setFreed(ele);
+      setOutDragLayer(ele);
+      removeGrabTarget(ele);
+    });
+    r.updateCachedGrabbedEles();
+  }; // helper function to determine which ancestor nodes and edges should go
+  // to the drag layer (or should be removed from drag layer).
 
-                        if (!cy.styleEnabled()) {
-                            return this;
-                        }
 
-                        if (cy.batching()) {
-                            var bEles = cy._private.batchStyleEles;
-                            bEles.merge(this);
-                            return this; // chaining and exit early when batching
-                        }
+  var updateAncestorsInDragLayer = function updateAncestorsInDragLayer(node, opts) {
+    if (opts.inDragLayer == null && opts.addToList == null) {
+      return;
+    } // nothing to do
 
-                        var hasCompounds = cy.hasCompoundNodes();
-                        var updatedEles = this;
-                        notifyRenderer = notifyRenderer || notifyRenderer === undefined ? true : false;
 
-                        if (hasCompounds) {
-                            // then add everything up and down for compound selector checks
-                            updatedEles = this.spawnSelf().merge(this.descendants()).merge(this.parents());
-                        } // let changedEles = style.apply( updatedEles );
+    if (!node.cy().hasCompoundNodes()) {
+      return;
+    } // find top-level parent
 
 
-                        var changedEles = updatedEles;
+    var parent = node.ancestors().orphans(); // no parent node: no nodes to add to the drag layer
 
-                        if (notifyRenderer) {
-                            changedEles.emitAndNotify('style'); // let renderer know we changed style
-                        } else {
-                            changedEles.emit('style'); // just fire the event
-                        }
+    if (parent.same(node)) {
+      return;
+    }
 
-                        updatedEles.forEach(function (ele) {
-                            return ele._private.styleDirty = true;
-                        });
-                        return this; // chaining
-                    },
-                    // get the internal parsed style object for the specified property
-                    parsedStyle: function parsedStyle(property) {
-                        var includeNonDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                        var ele = this[0];
-                        var cy = ele.cy();
-
-                        if (!cy.styleEnabled()) {
-                            return;
-                        }
+    var nodes = parent.descendants().spawnSelf().merge(parent).unmerge(node).unmerge(node.descendants());
+    var edges = nodes.connectedEdges();
 
-                        if (ele) {
-                            if (ele._private.styleDirty) {
-                                // n.b. this flag should be set before apply() to avoid potential infinite recursion
-                                ele._private.styleDirty = false;
-                                cy.style().apply(ele);
-                                ele.emitAndNotify('style');
-                            }
+    if (opts.inDragLayer) {
+      edges.forEach(setInDragLayer);
+      nodes.forEach(setInDragLayer);
+    }
 
-                            var overriddenStyle = ele._private.style[property];
+    if (opts.addToList) {
+      nodes.forEach(function (ele) {
+        addToDragList(ele, opts);
+      });
+    }
+  };
 
-                            if (overriddenStyle != null) {
-                                return overriddenStyle;
-                            } else if (includeNonDefault) {
-                                return cy.style().getDefaultProperty(property);
-                            } else {
-                                return null;
-                            }
-                        }
-                    },
-                    numericStyle: function numericStyle(property) {
-                        var ele = this[0];
+  var blurActiveDomElement = function blurActiveDomElement() {
+    if (document.activeElement != null && document.activeElement.blur != null) {
+      document.activeElement.blur();
+    }
+  };
 
-                        if (!ele.cy().styleEnabled()) {
-                            return;
-                        }
+  var haveMutationsApi = typeof MutationObserver !== 'undefined';
+  var haveResizeObserverApi = typeof ResizeObserver !== 'undefined'; // watch for when the cy container is removed from the dom
 
-                        if (ele) {
-                            var pstyle = ele.pstyle(property);
-                            return pstyle.pfValue !== undefined ? pstyle.pfValue : pstyle.value;
-                        }
-                    },
-                    numericStyleUnits: function numericStyleUnits(property) {
-                        var ele = this[0];
+  if (haveMutationsApi) {
+    r.removeObserver = new MutationObserver(function (mutns) {
+      // eslint-disable-line no-undef
+      for (var i = 0; i < mutns.length; i++) {
+        var mutn = mutns[i];
+        var rNodes = mutn.removedNodes;
 
-                        if (!ele.cy().styleEnabled()) {
-                            return;
-                        }
+        if (rNodes) {
+          for (var j = 0; j < rNodes.length; j++) {
+            var rNode = rNodes[j];
 
-                        if (ele) {
-                            return ele.pstyle(property).units;
-                        }
-                    },
-                    // get the specified css property as a rendered value (i.e. on-screen value)
-                    // or get the whole rendered style if no property specified (NB doesn't allow setting)
-                    renderedStyle: function renderedStyle(property) {
-                        var cy = this.cy();
-
-                        if (!cy.styleEnabled()) {
-                            return this;
-                        }
+            if (rNode === r.container) {
+              r.destroy();
+              break;
+            }
+          }
+        }
+      }
+    });
 
-                        var ele = this[0];
+    if (r.container.parentNode) {
+      r.removeObserver.observe(r.container.parentNode, {
+        childList: true
+      });
+    }
+  } else {
+    r.registerBinding(r.container, 'DOMNodeRemoved', function (e) {
+      // eslint-disable-line no-unused-vars
+      r.destroy();
+    });
+  }
 
-                        if (ele) {
-                            return cy.style().getRenderedStyle(ele, property);
-                        }
-                    },
-                    // read the calculated css style of the element or override the style (via a bypass)
-                    style: function style(name, value) {
-                        var cy = this.cy();
+  var onResize = util(function () {
+    r.cy.resize();
+  }, 100);
 
-                        if (!cy.styleEnabled()) {
-                            return this;
-                        }
+  if (haveMutationsApi) {
+    r.styleObserver = new MutationObserver(onResize); // eslint-disable-line no-undef
 
-                        var updateTransitions = false;
-                        var style = cy.style();
-
-                        if (plainObject(name)) {
-                            // then extend the bypass
-                            var props = name;
-                            style.applyBypass(this, props, updateTransitions);
-                            this.emitAndNotify('style'); // let the renderer know we've updated style
-                        } else if (string(name)) {
-                            if (value === undefined) {
-                                // then get the property from the style
-                                var ele = this[0];
-
-                                if (ele) {
-                                    return style.getStylePropertyValue(ele, name);
-                                } else {
-                                    // empty collection => can't get any value
-                                    return;
-                                }
-                            } else {
-                                // then set the bypass with the property value
-                                style.applyBypass(this, name, value, updateTransitions);
-                                this.emitAndNotify('style'); // let the renderer know we've updated style
-                            }
-                        } else if (name === undefined) {
-                            var _ele = this[0];
-
-                            if (_ele) {
-                                return style.getRawStyle(_ele);
-                            } else {
-                                // empty collection => can't get any value
-                                return;
-                            }
-                        }
+    r.styleObserver.observe(r.container, {
+      attributes: true
+    });
+  } // auto resize
 
-                        return this; // chaining
-                    },
-                    removeStyle: function removeStyle(names) {
-                        var cy = this.cy();
 
-                        if (!cy.styleEnabled()) {
-                            return this;
-                        }
+  r.registerBinding(window, 'resize', onResize); // eslint-disable-line no-undef
 
-                        var updateTransitions = false;
-                        var style = cy.style();
-                        var eles = this;
+  if (haveResizeObserverApi) {
+    r.resizeObserver = new ResizeObserver(onResize); // eslint-disable-line no-undef
 
-                        if (names === undefined) {
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                style.removeAllBypasses(ele, updateTransitions);
-                            }
-                        } else {
-                            names = names.split(/\s+/);
+    r.resizeObserver.observe(r.container);
+  }
 
-                            for (var _i = 0; _i < eles.length; _i++) {
-                                var _ele2 = eles[_i];
-                                style.removeBypasses(_ele2, names, updateTransitions);
-                            }
-                        }
+  var forEachUp = function forEachUp(domEle, fn) {
+    while (domEle != null) {
+      fn(domEle);
+      domEle = domEle.parentNode;
+    }
+  };
+
+  var invalidateCoords = function invalidateCoords() {
+    r.invalidateContainerClientCoordsCache();
+  };
+
+  forEachUp(r.container, function (domEle) {
+    r.registerBinding(domEle, 'transitionend', invalidateCoords);
+    r.registerBinding(domEle, 'animationend', invalidateCoords);
+    r.registerBinding(domEle, 'scroll', invalidateCoords);
+  }); // stop right click menu from appearing on cy
+
+  r.registerBinding(r.container, 'contextmenu', function (e) {
+    e.preventDefault();
+  });
+
+  var inBoxSelection = function inBoxSelection() {
+    return r.selection[4] !== 0;
+  };
+
+  var eventInContainer = function eventInContainer(e) {
+    // save cycles if mouse events aren't to be captured
+    var containerPageCoords = r.findContainerClientCoords();
+    var x = containerPageCoords[0];
+    var y = containerPageCoords[1];
+    var width = containerPageCoords[2];
+    var height = containerPageCoords[3];
+    var positions = e.touches ? e.touches : [e];
+    var atLeastOnePosInside = false;
+
+    for (var i = 0; i < positions.length; i++) {
+      var p = positions[i];
+
+      if (x <= p.clientX && p.clientX <= x + width && y <= p.clientY && p.clientY <= y + height) {
+        atLeastOnePosInside = true;
+        break;
+      }
+    }
 
-                        this.emitAndNotify('style'); // let the renderer know we've updated style
-
-                        return this; // chaining
-                    },
-                    show: function show() {
-                        this.css('display', 'element');
-                        return this; // chaining
-                    },
-                    hide: function hide() {
-                        this.css('display', 'none');
-                        return this; // chaining
-                    },
-                    effectiveOpacity: function effectiveOpacity() {
-                        var cy = this.cy();
-
-                        if (!cy.styleEnabled()) {
-                            return 1;
-                        }
+    if (!atLeastOnePosInside) {
+      return false;
+    }
 
-                        var hasCompoundNodes = cy.hasCompoundNodes();
-                        var ele = this[0];
+    var container = r.container;
+    var target = e.target;
+    var tParent = target.parentNode;
+    var containerIsTarget = false;
 
-                        if (ele) {
-                            var _p = ele._private;
-                            var parentOpacity = ele.pstyle('opacity').value;
+    while (tParent) {
+      if (tParent === container) {
+        containerIsTarget = true;
+        break;
+      }
 
-                            if (!hasCompoundNodes) {
-                                return parentOpacity;
-                            }
+      tParent = tParent.parentNode;
+    }
 
-                            var parents = !_p.data.parent ? null : ele.parents();
+    if (!containerIsTarget) {
+      return false;
+    } // if target is outisde cy container, then this event is not for us
 
-                            if (parents) {
-                                for (var i = 0; i < parents.length; i++) {
-                                    var parent = parents[i];
-                                    var opacity = parent.pstyle('opacity').value;
-                                    parentOpacity = opacity * parentOpacity;
-                                }
-                            }
 
-                            return parentOpacity;
-                        }
-                    },
-                    transparent: function transparent() {
-                        var cy = this.cy();
+    return true;
+  }; // Primary key
 
-                        if (!cy.styleEnabled()) {
-                            return false;
-                        }
 
-                        var ele = this[0];
-                        var hasCompoundNodes = ele.cy().hasCompoundNodes();
+  r.registerBinding(r.container, 'mousedown', function mousedownHandler(e) {
+    if (!eventInContainer(e)) {
+      return;
+    }
 
-                        if (ele) {
-                            if (!hasCompoundNodes) {
-                                return ele.pstyle('opacity').value === 0;
-                            } else {
-                                return ele.effectiveOpacity() === 0;
-                            }
-                        }
-                    },
-                    backgrounding: function backgrounding() {
-                        var cy = this.cy();
+    e.preventDefault();
+    blurActiveDomElement();
+    r.hoverData.capture = true;
+    r.hoverData.which = e.which;
+    var cy = r.cy;
+    var gpos = [e.clientX, e.clientY];
+    var pos = r.projectIntoViewport(gpos[0], gpos[1]);
+    var select = r.selection;
+    var nears = r.findNearestElements(pos[0], pos[1], true, false);
+    var near = nears[0];
+    var draggedElements = r.dragData.possibleDragElements;
+    r.hoverData.mdownPos = pos;
+    r.hoverData.mdownGPos = gpos;
+
+    var checkForTaphold = function checkForTaphold() {
+      r.hoverData.tapholdCancelled = false;
+      clearTimeout(r.hoverData.tapholdTimeout);
+      r.hoverData.tapholdTimeout = setTimeout(function () {
+        if (r.hoverData.tapholdCancelled) {
+          return;
+        } else {
+          var ele = r.hoverData.down;
+
+          if (ele) {
+            ele.emit({
+              originalEvent: e,
+              type: 'taphold',
+              position: {
+                x: pos[0],
+                y: pos[1]
+              }
+            });
+          } else {
+            cy.emit({
+              originalEvent: e,
+              type: 'taphold',
+              position: {
+                x: pos[0],
+                y: pos[1]
+              }
+            });
+          }
+        }
+      }, r.tapholdDuration);
+    }; // Right click button
+
+
+    if (e.which == 3) {
+      r.hoverData.cxtStarted = true;
+      var cxtEvt = {
+        originalEvent: e,
+        type: 'cxttapstart',
+        position: {
+          x: pos[0],
+          y: pos[1]
+        }
+      };
+
+      if (near) {
+        near.activate();
+        near.emit(cxtEvt);
+        r.hoverData.down = near;
+      } else {
+        cy.emit(cxtEvt);
+      }
+
+      r.hoverData.downTime = new Date().getTime();
+      r.hoverData.cxtDragged = false; // Primary button
+    } else if (e.which == 1) {
+      if (near) {
+        near.activate();
+      } // Element dragging
+
+
+      {
+        // If something is under the cursor and it is draggable, prepare to grab it
+        if (near != null) {
+          if (r.nodeIsGrabbable(near)) {
+            var makeEvent = function makeEvent(type) {
+              return {
+                originalEvent: e,
+                type: type,
+                position: {
+                  x: pos[0],
+                  y: pos[1]
+                }
+              };
+            };
 
-                        if (!cy.styleEnabled()) {
-                            return false;
-                        }
+            var triggerGrab = function triggerGrab(ele) {
+              ele.emit(makeEvent('grab'));
+            };
 
-                        var ele = this[0];
-                        return ele._private.backgrounding ? true : false;
-                    }
-                };
+            setGrabTarget(near);
+
+            if (!near.selected()) {
+              draggedElements = r.dragData.possibleDragElements = cy.collection();
+              addNodeToDrag(near, {
+                addToList: draggedElements
+              });
+              near.emit(makeEvent('grabon')).emit(makeEvent('grab'));
+            } else {
+              draggedElements = r.dragData.possibleDragElements = cy.collection();
+              var selectedNodes = cy.$(function (ele) {
+                return ele.isNode() && ele.selected() && r.nodeIsGrabbable(ele);
+              });
+              addNodesToDrag(selectedNodes, {
+                addToList: draggedElements
+              });
+              near.emit(makeEvent('grabon'));
+              selectedNodes.forEach(triggerGrab);
+            }
 
-                function checkCompound(ele, parentOk) {
-                    var _p = ele._private;
-                    var parents = _p.data.parent ? ele.parents() : null;
+            r.redrawHint('eles', true);
+            r.redrawHint('drag', true);
+          }
+        }
 
-                    if (parents) {
-                        for (var i = 0; i < parents.length; i++) {
-                            var parent = parents[i];
+        r.hoverData.down = near;
+        r.hoverData.downs = nears;
+        r.hoverData.downTime = new Date().getTime();
+      }
+      triggerEvents(near, ['mousedown', 'tapstart', 'vmousedown'], e, {
+        x: pos[0],
+        y: pos[1]
+      });
 
-                            if (!parentOk(parent)) {
-                                return false;
-                            }
-                        }
-                    }
+      if (near == null) {
+        select[4] = 1;
+        r.data.bgActivePosistion = {
+          x: pos[0],
+          y: pos[1]
+        };
+        r.redrawHint('select', true);
+        r.redraw();
+      } else if (near.pannable()) {
+        select[4] = 1; // for future pan
+      }
+
+      checkForTaphold();
+    } // Initialize selection box coordinates
+
+
+    select[0] = select[2] = pos[0];
+    select[1] = select[3] = pos[1];
+  }, false);
+  r.registerBinding(window, 'mousemove', function mousemoveHandler(e) {
+    // eslint-disable-line no-undef
+    var capture = r.hoverData.capture;
+
+    if (!capture && !eventInContainer(e)) {
+      return;
+    }
 
-                    return true;
-                }
+    var preventDefault = false;
+    var cy = r.cy;
+    var zoom = cy.zoom();
+    var gpos = [e.clientX, e.clientY];
+    var pos = r.projectIntoViewport(gpos[0], gpos[1]);
+    var mdownPos = r.hoverData.mdownPos;
+    var mdownGPos = r.hoverData.mdownGPos;
+    var select = r.selection;
+    var near = null;
+
+    if (!r.hoverData.draggingEles && !r.hoverData.dragging && !r.hoverData.selecting) {
+      near = r.findNearestElement(pos[0], pos[1], true, false);
+    }
 
-                function defineDerivedStateFunction(specs) {
-                    var ok = specs.ok;
-                    var edgeOkViaNode = specs.edgeOkViaNode || specs.ok;
-                    var parentOk = specs.parentOk || specs.ok;
-                    return function () {
-                        var cy = this.cy();
+    var last = r.hoverData.last;
+    var down = r.hoverData.down;
+    var disp = [pos[0] - select[2], pos[1] - select[3]];
+    var draggedElements = r.dragData.possibleDragElements;
+    var isOverThresholdDrag;
+
+    if (mdownGPos) {
+      var dx = gpos[0] - mdownGPos[0];
+      var dx2 = dx * dx;
+      var dy = gpos[1] - mdownGPos[1];
+      var dy2 = dy * dy;
+      var dist2 = dx2 + dy2;
+      r.hoverData.isOverThresholdDrag = isOverThresholdDrag = dist2 >= r.desktopTapThreshold2;
+    }
 
-                        if (!cy.styleEnabled()) {
-                            return true;
-                        }
+    var multSelKeyDown = isMultSelKeyDown(e);
 
-                        var ele = this[0];
-                        var hasCompoundNodes = cy.hasCompoundNodes();
+    if (isOverThresholdDrag) {
+      r.hoverData.tapholdCancelled = true;
+    }
 
-                        if (ele) {
-                            var _p = ele._private;
+    var updateDragDelta = function updateDragDelta() {
+      var dragDelta = r.hoverData.dragDelta = r.hoverData.dragDelta || [];
+
+      if (dragDelta.length === 0) {
+        dragDelta.push(disp[0]);
+        dragDelta.push(disp[1]);
+      } else {
+        dragDelta[0] += disp[0];
+        dragDelta[1] += disp[1];
+      }
+    };
+
+    preventDefault = true;
+    triggerEvents(near, ['mousemove', 'vmousemove', 'tapdrag'], e, {
+      x: pos[0],
+      y: pos[1]
+    });
+
+    var goIntoBoxMode = function goIntoBoxMode() {
+      r.data.bgActivePosistion = undefined;
+
+      if (!r.hoverData.selecting) {
+        cy.emit({
+          originalEvent: e,
+          type: 'boxstart',
+          position: {
+            x: pos[0],
+            y: pos[1]
+          }
+        });
+      }
+
+      select[4] = 1;
+      r.hoverData.selecting = true;
+      r.redrawHint('select', true);
+      r.redraw();
+    }; // trigger context drag if rmouse down
+
+
+    if (r.hoverData.which === 3) {
+      // but only if over threshold
+      if (isOverThresholdDrag) {
+        var cxtEvt = {
+          originalEvent: e,
+          type: 'cxtdrag',
+          position: {
+            x: pos[0],
+            y: pos[1]
+          }
+        };
+
+        if (down) {
+          down.emit(cxtEvt);
+        } else {
+          cy.emit(cxtEvt);
+        }
 
-                            if (!ok(ele)) {
-                                return false;
-                            }
+        r.hoverData.cxtDragged = true;
+
+        if (!r.hoverData.cxtOver || near !== r.hoverData.cxtOver) {
+          if (r.hoverData.cxtOver) {
+            r.hoverData.cxtOver.emit({
+              originalEvent: e,
+              type: 'cxtdragout',
+              position: {
+                x: pos[0],
+                y: pos[1]
+              }
+            });
+          }
+
+          r.hoverData.cxtOver = near;
+
+          if (near) {
+            near.emit({
+              originalEvent: e,
+              type: 'cxtdragover',
+              position: {
+                x: pos[0],
+                y: pos[1]
+              }
+            });
+          }
+        }
+      } // Check if we are drag panning the entire graph
+
+    } else if (r.hoverData.dragging) {
+      preventDefault = true;
+
+      if (cy.panningEnabled() && cy.userPanningEnabled()) {
+        var deltaP;
+
+        if (r.hoverData.justStartedPan) {
+          var mdPos = r.hoverData.mdownPos;
+          deltaP = {
+            x: (pos[0] - mdPos[0]) * zoom,
+            y: (pos[1] - mdPos[1]) * zoom
+          };
+          r.hoverData.justStartedPan = false;
+        } else {
+          deltaP = {
+            x: disp[0] * zoom,
+            y: disp[1] * zoom
+          };
+        }
 
-                            if (ele.isNode()) {
-                                return !hasCompoundNodes || checkCompound(ele, parentOk);
-                            } else {
-                                var src = _p.source;
-                                var tgt = _p.target;
-                                return edgeOkViaNode(src) && (!hasCompoundNodes || checkCompound(src, edgeOkViaNode)) && (src === tgt || edgeOkViaNode(tgt) && (!hasCompoundNodes || checkCompound(tgt, edgeOkViaNode)));
-                            }
-                        }
-                    };
-                }
+        cy.panBy(deltaP);
+        r.hoverData.dragged = true;
+      } // Needs reproject due to pan changing viewport
+
+
+      pos = r.projectIntoViewport(e.clientX, e.clientY); // Checks primary button down & out of time & mouse not moved much
+    } else if (select[4] == 1 && (down == null || down.pannable())) {
+      if (isOverThresholdDrag) {
+        if (!r.hoverData.dragging && cy.boxSelectionEnabled() && (multSelKeyDown || !cy.panningEnabled() || !cy.userPanningEnabled())) {
+          goIntoBoxMode();
+        } else if (!r.hoverData.selecting && cy.panningEnabled() && cy.userPanningEnabled()) {
+          var allowPassthrough = allowPanningPassthrough(down, r.hoverData.downs);
+
+          if (allowPassthrough) {
+            r.hoverData.dragging = true;
+            r.hoverData.justStartedPan = true;
+            select[4] = 0;
+            r.data.bgActivePosistion = array2point(mdownPos);
+            r.redrawHint('select', true);
+            r.redraw();
+          }
+        }
 
-                var eleTakesUpSpace = cacheStyleFunction('eleTakesUpSpace', function (ele) {
-                    return ele.pstyle('display').value === 'element' && ele.width() !== 0 && (ele.isNode() ? ele.height() !== 0 : true);
-                });
-                elesfn$r.takesUpSpace = cachePrototypeStyleFunction('takesUpSpace', defineDerivedStateFunction({
-                    ok: eleTakesUpSpace
-                }));
-                var eleInteractive = cacheStyleFunction('eleInteractive', function (ele) {
-                    return ele.pstyle('events').value === 'yes' && ele.pstyle('visibility').value === 'visible' && eleTakesUpSpace(ele);
-                });
-                var parentInteractive = cacheStyleFunction('parentInteractive', function (parent) {
-                    return parent.pstyle('visibility').value === 'visible' && eleTakesUpSpace(parent);
-                });
-                elesfn$r.interactive = cachePrototypeStyleFunction('interactive', defineDerivedStateFunction({
-                    ok: eleInteractive,
-                    parentOk: parentInteractive,
-                    edgeOkViaNode: eleTakesUpSpace
-                }));
+        if (down && down.pannable() && down.active()) {
+          down.unactivate();
+        }
+      }
+    } else {
+      if (down && down.pannable() && down.active()) {
+        down.unactivate();
+      }
+
+      if ((!down || !down.grabbed()) && near != last) {
+        if (last) {
+          triggerEvents(last, ['mouseout', 'tapdragout'], e, {
+            x: pos[0],
+            y: pos[1]
+          });
+        }
 
-                elesfn$r.noninteractive = function () {
-                    var ele = this[0];
+        if (near) {
+          triggerEvents(near, ['mouseover', 'tapdragover'], e, {
+            x: pos[0],
+            y: pos[1]
+          });
+        }
 
-                    if (ele) {
-                        return !ele.interactive();
-                    }
-                };
+        r.hoverData.last = near;
+      }
+
+      if (down) {
+        if (isOverThresholdDrag) {
+          // then we can take action
+          if (cy.boxSelectionEnabled() && multSelKeyDown) {
+            // then selection overrides
+            if (down && down.grabbed()) {
+              freeDraggedElements(draggedElements);
+              down.emit('freeon');
+              draggedElements.emit('free');
+
+              if (r.dragData.didDrag) {
+                down.emit('dragfreeon');
+                draggedElements.emit('dragfree');
+              }
+            }
 
-                var eleVisible = cacheStyleFunction('eleVisible', function (ele) {
-                    return ele.pstyle('visibility').value === 'visible' && ele.pstyle('opacity').pfValue !== 0 && eleTakesUpSpace(ele);
-                });
-                var edgeVisibleViaNode = eleTakesUpSpace;
-                elesfn$r.visible = cachePrototypeStyleFunction('visible', defineDerivedStateFunction({
-                    ok: eleVisible,
-                    edgeOkViaNode: edgeVisibleViaNode
-                }));
+            goIntoBoxMode();
+          } else if (down && down.grabbed() && r.nodeIsDraggable(down)) {
+            // drag node
+            var justStartedDrag = !r.dragData.didDrag;
 
-                elesfn$r.hidden = function () {
-                    var ele = this[0];
+            if (justStartedDrag) {
+              r.redrawHint('eles', true);
+            }
 
-                    if (ele) {
-                        return !ele.visible();
-                    }
-                };
+            r.dragData.didDrag = true; // indicate that we actually did drag the node
 
-                elesfn$r.isBundledBezier = cachePrototypeStyleFunction('isBundledBezier', function () {
-                    if (!this.cy().styleEnabled()) {
-                        return false;
-                    }
+            var toTrigger = cy.collection(); // now, add the elements to the drag layer if not done already
 
-                    return !this.removed() && this.pstyle('curve-style').value === 'bezier' && this.takesUpSpace();
-                });
-                elesfn$r.bypass = elesfn$r.css = elesfn$r.style;
-                elesfn$r.renderedCss = elesfn$r.renderedStyle;
-                elesfn$r.removeBypass = elesfn$r.removeCss = elesfn$r.removeStyle;
-                elesfn$r.pstyle = elesfn$r.parsedStyle;
-
-                var elesfn$s = {};
-
-                function defineSwitchFunction(params) {
-                    return function () {
-                        var args = arguments;
-                        var changedEles = []; // e.g. cy.nodes().select( data, handler )
-
-                        if (args.length === 2) {
-                            var data = args[0];
-                            var handler = args[1];
-                            this.on(params.event, data, handler);
-                        } // e.g. cy.nodes().select( handler )
-                        else if (args.length === 1 && fn(args[0])) {
-                            var _handler = args[0];
-                            this.on(params.event, _handler);
-                        } // e.g. cy.nodes().select()
-                        // e.g. (private) cy.nodes().select(['tapselect'])
-                        else if (args.length === 0 || args.length === 1 && array(args[0])) {
-                            var addlEvents = args.length === 1 ? args[0] : null;
-
-                            for (var i = 0; i < this.length; i++) {
-                                var ele = this[i];
-                                var able = !params.ableField || ele._private[params.ableField];
-                                var changed = ele._private[params.field] != params.value;
-
-                                if (params.overrideAble) {
-                                    var overrideAble = params.overrideAble(ele);
-
-                                    if (overrideAble !== undefined) {
-                                        able = overrideAble;
-
-                                        if (!overrideAble) {
-                                            return this;
-                                        } // to save cycles assume not able for all on override
-
-                                    }
-                                }
-
-                                if (able) {
-                                    ele._private[params.field] = params.value;
-
-                                    if (changed) {
-                                        changedEles.push(ele);
-                                    }
-                                }
-                            }
+            if (!r.hoverData.draggingEles) {
+              addNodesToDrag(draggedElements, {
+                inDragLayer: true
+              });
+            }
 
-                            var changedColl = this.spawn(changedEles);
-                            changedColl.updateStyle(); // change of state => possible change of style
+            var totalShift = {
+              x: 0,
+              y: 0
+            };
 
-                            changedColl.emit(params.event);
+            if (number(disp[0]) && number(disp[1])) {
+              totalShift.x += disp[0];
+              totalShift.y += disp[1];
 
-                            if (addlEvents) {
-                                changedColl.emit(addlEvents);
-                            }
-                        }
+              if (justStartedDrag) {
+                var dragDelta = r.hoverData.dragDelta;
 
-                        return this;
-                    };
+                if (dragDelta && number(dragDelta[0]) && number(dragDelta[1])) {
+                  totalShift.x += dragDelta[0];
+                  totalShift.y += dragDelta[1];
                 }
+              }
+            }
 
-                function defineSwitchSet(params) {
-                    elesfn$s[params.field] = function () {
-                        var ele = this[0];
+            for (var i = 0; i < draggedElements.length; i++) {
+              var dEle = draggedElements[i];
 
-                        if (ele) {
-                            if (params.overrideField) {
-                                var val = params.overrideField(ele);
+              if (r.nodeIsDraggable(dEle) && dEle.grabbed()) {
+                toTrigger.push(dEle);
+              }
+            }
 
-                                if (val !== undefined) {
-                                    return val;
-                                }
-                            }
+            r.hoverData.draggingEles = true;
+            toTrigger.silentShift(totalShift).emit('position drag');
+            r.redrawHint('drag', true);
+            r.redraw();
+          }
+        } else {
+          // otherwise save drag delta for when we actually start dragging so the relative grab pos is constant
+          updateDragDelta();
+        }
+      } // prevent the dragging from triggering text selection on the page
 
-                            return ele._private[params.field];
-                        }
-                    };
-
-                    elesfn$s[params.on] = defineSwitchFunction({
-                        event: params.on,
-                        field: params.field,
-                        ableField: params.ableField,
-                        overrideAble: params.overrideAble,
-                        value: true
-                    });
-                    elesfn$s[params.off] = defineSwitchFunction({
-                        event: params.off,
-                        field: params.field,
-                        ableField: params.ableField,
-                        overrideAble: params.overrideAble,
-                        value: false
-                    });
-                }
 
-                defineSwitchSet({
-                    field: 'locked',
-                    overrideField: function overrideField(ele) {
-                        return ele.cy().autolock() ? true : undefined;
-                    },
-                    on: 'lock',
-                    off: 'unlock'
-                });
-                defineSwitchSet({
-                    field: 'grabbable',
-                    overrideField: function overrideField(ele) {
-                        return ele.cy().autoungrabify() || ele.pannable() ? false : undefined;
-                    },
-                    on: 'grabify',
-                    off: 'ungrabify'
-                });
-                defineSwitchSet({
-                    field: 'selected',
-                    ableField: 'selectable',
-                    overrideAble: function overrideAble(ele) {
-                        return ele.cy().autounselectify() ? false : undefined;
-                    },
-                    on: 'select',
-                    off: 'unselect'
-                });
-                defineSwitchSet({
-                    field: 'selectable',
-                    overrideField: function overrideField(ele) {
-                        return ele.cy().autounselectify() ? false : undefined;
-                    },
-                    on: 'selectify',
-                    off: 'unselectify'
-                });
-                elesfn$s.deselect = elesfn$s.unselect;
-
-                elesfn$s.grabbed = function () {
-                    var ele = this[0];
+      preventDefault = true;
+    }
 
-                    if (ele) {
-                        return ele._private.grabbed;
-                    }
-                };
+    select[2] = pos[0];
+    select[3] = pos[1];
 
-                defineSwitchSet({
-                    field: 'active',
-                    on: 'activate',
-                    off: 'unactivate'
-                });
-                defineSwitchSet({
-                    field: 'pannable',
-                    on: 'panify',
-                    off: 'unpanify'
-                });
+    if (preventDefault) {
+      if (e.stopPropagation) e.stopPropagation();
+      if (e.preventDefault) e.preventDefault();
+      return false;
+    }
+  }, false);
+  r.registerBinding(window, 'mouseup', function mouseupHandler(e) {
+    // eslint-disable-line no-undef
+    var capture = r.hoverData.capture;
 
-                elesfn$s.inactive = function () {
-                    var ele = this[0];
+    if (!capture) {
+      return;
+    }
 
-                    if (ele) {
-                        return !ele._private.active;
-                    }
-                };
+    r.hoverData.capture = false;
+    var cy = r.cy;
+    var pos = r.projectIntoViewport(e.clientX, e.clientY);
+    var select = r.selection;
+    var near = r.findNearestElement(pos[0], pos[1], true, false);
+    var draggedElements = r.dragData.possibleDragElements;
+    var down = r.hoverData.down;
+    var multSelKeyDown = isMultSelKeyDown(e);
+
+    if (r.data.bgActivePosistion) {
+      r.redrawHint('select', true);
+      r.redraw();
+    }
 
-                var elesfn$t = {}; // DAG functions
-////////////////
+    r.hoverData.tapholdCancelled = true;
+    r.data.bgActivePosistion = undefined; // not active bg now
 
-                var defineDagExtremity = function defineDagExtremity(params) {
-                    return function dagExtremityImpl(selector) {
-                        var eles = this;
-                        var ret = [];
+    if (down) {
+      down.unactivate();
+    }
 
-                        for (var i = 0; i < eles.length; i++) {
-                            var ele = eles[i];
+    if (r.hoverData.which === 3) {
+      var cxtEvt = {
+        originalEvent: e,
+        type: 'cxttapend',
+        position: {
+          x: pos[0],
+          y: pos[1]
+        }
+      };
+
+      if (down) {
+        down.emit(cxtEvt);
+      } else {
+        cy.emit(cxtEvt);
+      }
+
+      if (!r.hoverData.cxtDragged) {
+        var cxtTap = {
+          originalEvent: e,
+          type: 'cxttap',
+          position: {
+            x: pos[0],
+            y: pos[1]
+          }
+        };
+
+        if (down) {
+          down.emit(cxtTap);
+        } else {
+          cy.emit(cxtTap);
+        }
+      }
+
+      r.hoverData.cxtDragged = false;
+      r.hoverData.which = null;
+    } else if (r.hoverData.which === 1) {
+      triggerEvents(near, ['mouseup', 'tapend', 'vmouseup'], e, {
+        x: pos[0],
+        y: pos[1]
+      });
 
-                            if (!ele.isNode()) {
-                                continue;
-                            }
+      if (!r.dragData.didDrag // didn't move a node around
+      && !r.hoverData.dragged // didn't pan
+      && !r.hoverData.selecting // not box selection
+      && !r.hoverData.isOverThresholdDrag // didn't move too much
+      ) {
+          triggerEvents(down, ['click', 'tap', 'vclick'], e, {
+            x: pos[0],
+            y: pos[1]
+          });
+        } // Deselect all elements if nothing is currently under the mouse cursor and we aren't dragging something
+
+
+      if (down == null && // not mousedown on node
+      !r.dragData.didDrag // didn't move the node around
+      && !r.hoverData.selecting // not box selection
+      && !r.hoverData.dragged // didn't pan
+      && !isMultSelKeyDown(e)) {
+        cy.$(isSelected).unselect(['tapunselect']);
+
+        if (draggedElements.length > 0) {
+          r.redrawHint('eles', true);
+        }
 
-                            var disqualified = false;
-                            var edges = ele.connectedEdges();
+        r.dragData.possibleDragElements = draggedElements = cy.collection();
+      } // Single selection
 
-                            for (var j = 0; j < edges.length; j++) {
-                                var edge = edges[j];
-                                var src = edge.source();
-                                var tgt = edge.target();
 
-                                if (params.noIncomingEdges && tgt === ele && src !== ele || params.noOutgoingEdges && src === ele && tgt !== ele) {
-                                    disqualified = true;
-                                    break;
-                                }
-                            }
+      if (near == down && !r.dragData.didDrag && !r.hoverData.selecting) {
+        if (near != null && near._private.selectable) {
+          if (r.hoverData.dragging) ; else if (cy.selectionType() === 'additive' || multSelKeyDown) {
+            if (near.selected()) {
+              near.unselect(['tapunselect']);
+            } else {
+              near.select(['tapselect']);
+            }
+          } else {
+            if (!multSelKeyDown) {
+              cy.$(isSelected).unmerge(near).unselect(['tapunselect']);
+              near.select(['tapselect']);
+            }
+          }
 
-                            if (!disqualified) {
-                                ret.push(ele);
-                            }
-                        }
+          r.redrawHint('eles', true);
+        }
+      }
 
-                        return this.spawn(ret, true).filter(selector);
-                    };
-                };
+      if (r.hoverData.selecting) {
+        var box = cy.collection(r.getAllInBox(select[0], select[1], select[2], select[3]));
+        r.redrawHint('select', true);
 
-                var defineDagOneHop = function defineDagOneHop(params) {
-                    return function (selector) {
-                        var eles = this;
-                        var oEles = [];
+        if (box.length > 0) {
+          r.redrawHint('eles', true);
+        }
 
-                        for (var i = 0; i < eles.length; i++) {
-                            var ele = eles[i];
+        cy.emit({
+          type: 'boxend',
+          originalEvent: e,
+          position: {
+            x: pos[0],
+            y: pos[1]
+          }
+        });
+
+        var eleWouldBeSelected = function eleWouldBeSelected(ele) {
+          return ele.selectable() && !ele.selected();
+        };
+
+        if (cy.selectionType() === 'additive') {
+          box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
+        } else {
+          if (!multSelKeyDown) {
+            cy.$(isSelected).unmerge(box).unselect();
+          }
+
+          box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
+        } // always need redraw in case eles unselectable
+
+
+        r.redraw();
+      } // Cancel drag pan
+
+
+      if (r.hoverData.dragging) {
+        r.hoverData.dragging = false;
+        r.redrawHint('select', true);
+        r.redrawHint('eles', true);
+        r.redraw();
+      }
+
+      if (!select[4]) {
+        r.redrawHint('drag', true);
+        r.redrawHint('eles', true);
+        var downWasGrabbed = down && down.grabbed();
+        freeDraggedElements(draggedElements);
+
+        if (downWasGrabbed) {
+          down.emit('freeon');
+          draggedElements.emit('free');
+
+          if (r.dragData.didDrag) {
+            down.emit('dragfreeon');
+            draggedElements.emit('dragfree');
+          }
+        }
+      }
+    } // else not right mouse
+
+
+    select[4] = 0;
+    r.hoverData.down = null;
+    r.hoverData.cxtStarted = false;
+    r.hoverData.draggingEles = false;
+    r.hoverData.selecting = false;
+    r.hoverData.isOverThresholdDrag = false;
+    r.dragData.didDrag = false;
+    r.hoverData.dragged = false;
+    r.hoverData.dragDelta = [];
+    r.hoverData.mdownPos = null;
+    r.hoverData.mdownGPos = null;
+  }, false);
+
+  var wheelHandler = function wheelHandler(e) {
+    if (r.scrollingPage) {
+      return;
+    } // while scrolling, ignore wheel-to-zoom
+
+
+    var cy = r.cy;
+    var zoom = cy.zoom();
+    var pan = cy.pan();
+    var pos = r.projectIntoViewport(e.clientX, e.clientY);
+    var rpos = [pos[0] * zoom + pan.x, pos[1] * zoom + pan.y];
+
+    if (r.hoverData.draggingEles || r.hoverData.dragging || r.hoverData.cxtStarted || inBoxSelection()) {
+      // if pan dragging or cxt dragging, wheel movements make no zoom
+      e.preventDefault();
+      return;
+    }
 
-                            if (!ele.isNode()) {
-                                continue;
-                            }
+    if (cy.panningEnabled() && cy.userPanningEnabled() && cy.zoomingEnabled() && cy.userZoomingEnabled()) {
+      e.preventDefault();
+      r.data.wheelZooming = true;
+      clearTimeout(r.data.wheelTimeout);
+      r.data.wheelTimeout = setTimeout(function () {
+        r.data.wheelZooming = false;
+        r.redrawHint('eles', true);
+        r.redraw();
+      }, 150);
+      var diff;
+
+      if (e.deltaY != null) {
+        diff = e.deltaY / -250;
+      } else if (e.wheelDeltaY != null) {
+        diff = e.wheelDeltaY / 1000;
+      } else {
+        diff = e.wheelDelta / 1000;
+      }
+
+      diff = diff * r.wheelSensitivity;
+      var needsWheelFix = e.deltaMode === 1;
+
+      if (needsWheelFix) {
+        // fixes slow wheel events on ff/linux and ff/windows
+        diff *= 33;
+      }
+
+      var newZoom = cy.zoom() * Math.pow(10, diff);
+
+      if (e.type === 'gesturechange') {
+        newZoom = r.gestureStartZoom * e.scale;
+      }
+
+      cy.zoom({
+        level: newZoom,
+        renderedPosition: {
+          x: rpos[0],
+          y: rpos[1]
+        }
+      });
+    }
+  }; // Functions to help with whether mouse wheel should trigger zooming
+  // --
+
+
+  r.registerBinding(r.container, 'wheel', wheelHandler, true); // disable nonstandard wheel events
+  // r.registerBinding(r.container, 'mousewheel', wheelHandler, true);
+  // r.registerBinding(r.container, 'DOMMouseScroll', wheelHandler, true);
+  // r.registerBinding(r.container, 'MozMousePixelScroll', wheelHandler, true); // older firefox
+
+  r.registerBinding(window, 'scroll', function scrollHandler(e) {
+    // eslint-disable-line no-unused-vars
+    r.scrollingPage = true;
+    clearTimeout(r.scrollingPageTimeout);
+    r.scrollingPageTimeout = setTimeout(function () {
+      r.scrollingPage = false;
+    }, 250);
+  }, true); // desktop safari pinch to zoom start
+
+  r.registerBinding(r.container, 'gesturestart', function gestureStartHandler(e) {
+    r.gestureStartZoom = r.cy.zoom();
+
+    if (!r.hasTouchStarted) {
+      // don't affect touch devices like iphone
+      e.preventDefault();
+    }
+  }, true);
+  r.registerBinding(r.container, 'gesturechange', function (e) {
+    if (!r.hasTouchStarted) {
+      // don't affect touch devices like iphone
+      wheelHandler(e);
+    }
+  }, true); // Functions to help with handling mouseout/mouseover on the Cytoscape container
+  // Handle mouseout on Cytoscape container
+
+  r.registerBinding(r.container, 'mouseout', function mouseOutHandler(e) {
+    var pos = r.projectIntoViewport(e.clientX, e.clientY);
+    r.cy.emit({
+      originalEvent: e,
+      type: 'mouseout',
+      position: {
+        x: pos[0],
+        y: pos[1]
+      }
+    });
+  }, false);
+  r.registerBinding(r.container, 'mouseover', function mouseOverHandler(e) {
+    var pos = r.projectIntoViewport(e.clientX, e.clientY);
+    r.cy.emit({
+      originalEvent: e,
+      type: 'mouseover',
+      position: {
+        x: pos[0],
+        y: pos[1]
+      }
+    });
+  }, false);
+  var f1x1, f1y1, f2x1, f2y1; // starting points for pinch-to-zoom
+
+  var distance1, distance1Sq; // initial distance between finger 1 and finger 2 for pinch-to-zoom
+
+  var center1, modelCenter1; // center point on start pinch to zoom
+
+  var offsetLeft, offsetTop;
+  var containerWidth, containerHeight;
+  var twoFingersStartInside;
+
+  var distance = function distance(x1, y1, x2, y2) {
+    return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
+  };
+
+  var distanceSq = function distanceSq(x1, y1, x2, y2) {
+    return (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1);
+  };
+
+  var touchstartHandler;
+  r.registerBinding(r.container, 'touchstart', touchstartHandler = function touchstartHandler(e) {
+    r.hasTouchStarted = true;
+
+    if (!eventInContainer(e)) {
+      return;
+    }
 
-                            var edges = ele.connectedEdges();
+    blurActiveDomElement();
+    r.touchData.capture = true;
+    r.data.bgActivePosistion = undefined;
+    var cy = r.cy;
+    var now = r.touchData.now;
+    var earlier = r.touchData.earlier;
+
+    if (e.touches[0]) {
+      var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
+      now[0] = pos[0];
+      now[1] = pos[1];
+    }
 
-                            for (var j = 0; j < edges.length; j++) {
-                                var edge = edges[j];
-                                var src = edge.source();
-                                var tgt = edge.target();
+    if (e.touches[1]) {
+      var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
+      now[2] = pos[0];
+      now[3] = pos[1];
+    }
 
-                                if (params.outgoing && src === ele) {
-                                    oEles.push(edge);
-                                    oEles.push(tgt);
-                                } else if (params.incoming && tgt === ele) {
-                                    oEles.push(edge);
-                                    oEles.push(src);
-                                }
-                            }
-                        }
+    if (e.touches[2]) {
+      var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
+      now[4] = pos[0];
+      now[5] = pos[1];
+    } // record starting points for pinch-to-zoom
+
+
+    if (e.touches[1]) {
+      r.touchData.singleTouchMoved = true;
+      freeDraggedElements(r.dragData.touchDragEles);
+      var offsets = r.findContainerClientCoords();
+      offsetLeft = offsets[0];
+      offsetTop = offsets[1];
+      containerWidth = offsets[2];
+      containerHeight = offsets[3];
+      f1x1 = e.touches[0].clientX - offsetLeft;
+      f1y1 = e.touches[0].clientY - offsetTop;
+      f2x1 = e.touches[1].clientX - offsetLeft;
+      f2y1 = e.touches[1].clientY - offsetTop;
+      twoFingersStartInside = 0 <= f1x1 && f1x1 <= containerWidth && 0 <= f2x1 && f2x1 <= containerWidth && 0 <= f1y1 && f1y1 <= containerHeight && 0 <= f2y1 && f2y1 <= containerHeight;
+      var pan = cy.pan();
+      var zoom = cy.zoom();
+      distance1 = distance(f1x1, f1y1, f2x1, f2y1);
+      distance1Sq = distanceSq(f1x1, f1y1, f2x1, f2y1);
+      center1 = [(f1x1 + f2x1) / 2, (f1y1 + f2y1) / 2];
+      modelCenter1 = [(center1[0] - pan.x) / zoom, (center1[1] - pan.y) / zoom]; // consider context tap
+
+      var cxtDistThreshold = 200;
+      var cxtDistThresholdSq = cxtDistThreshold * cxtDistThreshold;
+
+      if (distance1Sq < cxtDistThresholdSq && !e.touches[2]) {
+        var near1 = r.findNearestElement(now[0], now[1], true, true);
+        var near2 = r.findNearestElement(now[2], now[3], true, true);
+
+        if (near1 && near1.isNode()) {
+          near1.activate().emit({
+            originalEvent: e,
+            type: 'cxttapstart',
+            position: {
+              x: now[0],
+              y: now[1]
+            }
+          });
+          r.touchData.start = near1;
+        } else if (near2 && near2.isNode()) {
+          near2.activate().emit({
+            originalEvent: e,
+            type: 'cxttapstart',
+            position: {
+              x: now[0],
+              y: now[1]
+            }
+          });
+          r.touchData.start = near2;
+        } else {
+          cy.emit({
+            originalEvent: e,
+            type: 'cxttapstart',
+            position: {
+              x: now[0],
+              y: now[1]
+            }
+          });
+        }
 
-                        return this.spawn(oEles, true).filter(selector);
-                    };
-                };
+        if (r.touchData.start) {
+          r.touchData.start._private.grabbed = false;
+        }
 
-                var defineDagAllHops = function defineDagAllHops(params) {
-                    return function (selector) {
-                        var eles = this;
-                        var sEles = [];
-                        var sElesIds = {};
+        r.touchData.cxt = true;
+        r.touchData.cxtDragged = false;
+        r.data.bgActivePosistion = undefined;
+        r.redraw();
+        return;
+      }
+    }
 
-                        for (;;) {
-                            var next = params.outgoing ? eles.outgoers() : eles.incomers();
+    if (e.touches[2]) {
+      // ignore
+      // safari on ios pans the page otherwise (normally you should be able to preventdefault on touchmove...)
+      if (cy.boxSelectionEnabled()) {
+        e.preventDefault();
+      }
+    } else if (e.touches[1]) ; else if (e.touches[0]) {
+      var nears = r.findNearestElements(now[0], now[1], true, true);
+      var near = nears[0];
+
+      if (near != null) {
+        near.activate();
+        r.touchData.start = near;
+        r.touchData.starts = nears;
+
+        if (r.nodeIsGrabbable(near)) {
+          var draggedEles = r.dragData.touchDragEles = cy.collection();
+          var selectedNodes = null;
+          r.redrawHint('eles', true);
+          r.redrawHint('drag', true);
+
+          if (near.selected()) {
+            // reset drag elements, since near will be added again
+            selectedNodes = cy.$(function (ele) {
+              return ele.selected() && r.nodeIsGrabbable(ele);
+            });
+            addNodesToDrag(selectedNodes, {
+              addToList: draggedEles
+            });
+          } else {
+            addNodeToDrag(near, {
+              addToList: draggedEles
+            });
+          }
+
+          setGrabTarget(near);
+
+          var makeEvent = function makeEvent(type) {
+            return {
+              originalEvent: e,
+              type: type,
+              position: {
+                x: now[0],
+                y: now[1]
+              }
+            };
+          };
 
-                            if (next.length === 0) {
-                                break;
-                            } // done if none left
+          near.emit(makeEvent('grabon'));
 
+          if (selectedNodes) {
+            selectedNodes.forEach(function (n) {
+              n.emit(makeEvent('grab'));
+            });
+          } else {
+            near.emit(makeEvent('grab'));
+          }
+        }
+      }
 
-                            var newNext = false;
+      triggerEvents(near, ['touchstart', 'tapstart', 'vmousedown'], e, {
+        x: now[0],
+        y: now[1]
+      });
 
-                            for (var i = 0; i < next.length; i++) {
-                                var n = next[i];
-                                var nid = n.id();
+      if (near == null) {
+        r.data.bgActivePosistion = {
+          x: pos[0],
+          y: pos[1]
+        };
+        r.redrawHint('select', true);
+        r.redraw();
+      } // Tap, taphold
+      // -----
+
+
+      r.touchData.singleTouchMoved = false;
+      r.touchData.singleTouchStartTime = +new Date();
+      clearTimeout(r.touchData.tapholdTimeout);
+      r.touchData.tapholdTimeout = setTimeout(function () {
+        if (r.touchData.singleTouchMoved === false && !r.pinching // if pinching, then taphold unselect shouldn't take effect
+        && !r.touchData.selecting // box selection shouldn't allow taphold through
+        ) {
+            triggerEvents(r.touchData.start, ['taphold'], e, {
+              x: now[0],
+              y: now[1]
+            });
+          }
+      }, r.tapholdDuration);
+    }
 
-                                if (!sElesIds[nid]) {
-                                    sElesIds[nid] = true;
-                                    sEles.push(n);
-                                    newNext = true;
-                                }
-                            }
+    if (e.touches.length >= 1) {
+      var sPos = r.touchData.startPosition = [];
 
-                            if (!newNext) {
-                                break;
-                            } // done if touched all outgoers already
+      for (var i = 0; i < now.length; i++) {
+        sPos[i] = earlier[i] = now[i];
+      }
 
+      var touch0 = e.touches[0];
+      r.touchData.startGPosition = [touch0.clientX, touch0.clientY];
+    }
+  }, false);
+  var touchmoveHandler;
+  r.registerBinding(window, 'touchmove', touchmoveHandler = function touchmoveHandler(e) {
+    // eslint-disable-line no-undef
+    var capture = r.touchData.capture;
+
+    if (!capture && !eventInContainer(e)) {
+      return;
+    }
 
-                            eles = next;
-                        }
+    var select = r.selection;
+    var cy = r.cy;
+    var now = r.touchData.now;
+    var earlier = r.touchData.earlier;
+    var zoom = cy.zoom();
 
-                        return this.spawn(sEles, true).filter(selector);
-                    };
-                };
+    if (e.touches[0]) {
+      var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
+      now[0] = pos[0];
+      now[1] = pos[1];
+    }
 
-                elesfn$t.clearTraversalCache = function () {
-                    for (var i = 0; i < this.length; i++) {
-                        this[i]._private.traversalCache = null;
-                    }
-                };
+    if (e.touches[1]) {
+      var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
+      now[2] = pos[0];
+      now[3] = pos[1];
+    }
 
-                extend(elesfn$t, {
-                    // get the root nodes in the DAG
-                    roots: defineDagExtremity({
-                        noIncomingEdges: true
-                    }),
-                    // get the leaf nodes in the DAG
-                    leaves: defineDagExtremity({
-                        noOutgoingEdges: true
-                    }),
-                    // normally called children in graph theory
-                    // these nodes =edges=> outgoing nodes
-                    outgoers: cache(defineDagOneHop({
-                        outgoing: true
-                    }), 'outgoers'),
-                    // aka DAG descendants
-                    successors: defineDagAllHops({
-                        outgoing: true
-                    }),
-                    // normally called parents in graph theory
-                    // these nodes <=edges= incoming nodes
-                    incomers: cache(defineDagOneHop({
-                        incoming: true
-                    }), 'incomers'),
-                    // aka DAG ancestors
-                    predecessors: defineDagAllHops({
-                        incoming: true
-                    })
-                }); // Neighbourhood functions
-//////////////////////////
+    if (e.touches[2]) {
+      var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
+      now[4] = pos[0];
+      now[5] = pos[1];
+    }
 
-                extend(elesfn$t, {
-                    neighborhood: cache(function (selector) {
-                        var elements = [];
-                        var nodes = this.nodes();
+    var startGPos = r.touchData.startGPosition;
+    var isOverThresholdDrag;
+
+    if (capture && e.touches[0] && startGPos) {
+      var disp = [];
+
+      for (var j = 0; j < now.length; j++) {
+        disp[j] = now[j] - earlier[j];
+      }
+
+      var dx = e.touches[0].clientX - startGPos[0];
+      var dx2 = dx * dx;
+      var dy = e.touches[0].clientY - startGPos[1];
+      var dy2 = dy * dy;
+      var dist2 = dx2 + dy2;
+      isOverThresholdDrag = dist2 >= r.touchTapThreshold2;
+    } // context swipe cancelling
+
+
+    if (capture && r.touchData.cxt) {
+      e.preventDefault();
+      var f1x2 = e.touches[0].clientX - offsetLeft,
+          f1y2 = e.touches[0].clientY - offsetTop;
+      var f2x2 = e.touches[1].clientX - offsetLeft,
+          f2y2 = e.touches[1].clientY - offsetTop; // var distance2 = distance( f1x2, f1y2, f2x2, f2y2 );
+
+      var distance2Sq = distanceSq(f1x2, f1y2, f2x2, f2y2);
+      var factorSq = distance2Sq / distance1Sq;
+      var distThreshold = 150;
+      var distThresholdSq = distThreshold * distThreshold;
+      var factorThreshold = 1.5;
+      var factorThresholdSq = factorThreshold * factorThreshold; // cancel ctx gestures if the distance b/t the fingers increases
+
+      if (factorSq >= factorThresholdSq || distance2Sq >= distThresholdSq) {
+        r.touchData.cxt = false;
+        r.data.bgActivePosistion = undefined;
+        r.redrawHint('select', true);
+        var cxtEvt = {
+          originalEvent: e,
+          type: 'cxttapend',
+          position: {
+            x: now[0],
+            y: now[1]
+          }
+        };
+
+        if (r.touchData.start) {
+          r.touchData.start.unactivate().emit(cxtEvt);
+          r.touchData.start = null;
+        } else {
+          cy.emit(cxtEvt);
+        }
+      }
+    } // context swipe
 
-                        for (var i = 0; i < nodes.length; i++) {
-                            // for all nodes
-                            var node = nodes[i];
-                            var connectedEdges = node.connectedEdges(); // for each connected edge, add the edge and the other node
 
-                            for (var j = 0; j < connectedEdges.length; j++) {
-                                var edge = connectedEdges[j];
-                                var src = edge.source();
-                                var tgt = edge.target();
-                                var otherNode = node === src ? tgt : src; // need check in case of loop
+    if (capture && r.touchData.cxt) {
+      var cxtEvt = {
+        originalEvent: e,
+        type: 'cxtdrag',
+        position: {
+          x: now[0],
+          y: now[1]
+        }
+      };
+      r.data.bgActivePosistion = undefined;
+      r.redrawHint('select', true);
+
+      if (r.touchData.start) {
+        r.touchData.start.emit(cxtEvt);
+      } else {
+        cy.emit(cxtEvt);
+      }
+
+      if (r.touchData.start) {
+        r.touchData.start._private.grabbed = false;
+      }
+
+      r.touchData.cxtDragged = true;
+      var near = r.findNearestElement(now[0], now[1], true, true);
+
+      if (!r.touchData.cxtOver || near !== r.touchData.cxtOver) {
+        if (r.touchData.cxtOver) {
+          r.touchData.cxtOver.emit({
+            originalEvent: e,
+            type: 'cxtdragout',
+            position: {
+              x: now[0],
+              y: now[1]
+            }
+          });
+        }
 
-                                if (otherNode.length > 0) {
-                                    elements.push(otherNode[0]); // add node 1 hop away
-                                } // add connected edge
+        r.touchData.cxtOver = near;
 
+        if (near) {
+          near.emit({
+            originalEvent: e,
+            type: 'cxtdragover',
+            position: {
+              x: now[0],
+              y: now[1]
+            }
+          });
+        }
+      } // box selection
+
+    } else if (capture && e.touches[2] && cy.boxSelectionEnabled()) {
+      e.preventDefault();
+      r.data.bgActivePosistion = undefined;
+      this.lastThreeTouch = +new Date();
+
+      if (!r.touchData.selecting) {
+        cy.emit({
+          originalEvent: e,
+          type: 'boxstart',
+          position: {
+            x: now[0],
+            y: now[1]
+          }
+        });
+      }
+
+      r.touchData.selecting = true;
+      r.touchData.didSelect = true;
+      select[4] = 1;
+
+      if (!select || select.length === 0 || select[0] === undefined) {
+        select[0] = (now[0] + now[2] + now[4]) / 3;
+        select[1] = (now[1] + now[3] + now[5]) / 3;
+        select[2] = (now[0] + now[2] + now[4]) / 3 + 1;
+        select[3] = (now[1] + now[3] + now[5]) / 3 + 1;
+      } else {
+        select[2] = (now[0] + now[2] + now[4]) / 3;
+        select[3] = (now[1] + now[3] + now[5]) / 3;
+      }
+
+      r.redrawHint('select', true);
+      r.redraw(); // pinch to zoom
+    } else if (capture && e.touches[1] && !r.touchData.didSelect // don't allow box selection to degrade to pinch-to-zoom
+    && cy.zoomingEnabled() && cy.panningEnabled() && cy.userZoomingEnabled() && cy.userPanningEnabled()) {
+      // two fingers => pinch to zoom
+      e.preventDefault();
+      r.data.bgActivePosistion = undefined;
+      r.redrawHint('select', true);
+      var draggedEles = r.dragData.touchDragEles;
+
+      if (draggedEles) {
+        r.redrawHint('drag', true);
+
+        for (var i = 0; i < draggedEles.length; i++) {
+          var de_p = draggedEles[i]._private;
+          de_p.grabbed = false;
+          de_p.rscratch.inDragLayer = false;
+        }
+      }
 
-                                elements.push(edge[0]);
-                            }
-                        }
+      var _start = r.touchData.start; // (x2, y2) for fingers 1 and 2
 
-                        return this.spawn(elements, true).filter(selector);
-                    }, 'neighborhood'),
-                    closedNeighborhood: function closedNeighborhood(selector) {
-                        return this.neighborhood().add(this).filter(selector);
-                    },
-                    openNeighborhood: function openNeighborhood(selector) {
-                        return this.neighborhood(selector);
-                    }
-                }); // aliases
+      var f1x2 = e.touches[0].clientX - offsetLeft,
+          f1y2 = e.touches[0].clientY - offsetTop;
+      var f2x2 = e.touches[1].clientX - offsetLeft,
+          f2y2 = e.touches[1].clientY - offsetTop;
+      var distance2 = distance(f1x2, f1y2, f2x2, f2y2); // var distance2Sq = distanceSq( f1x2, f1y2, f2x2, f2y2 );
+      // var factor = Math.sqrt( distance2Sq ) / Math.sqrt( distance1Sq );
 
-                elesfn$t.neighbourhood = elesfn$t.neighborhood;
-                elesfn$t.closedNeighbourhood = elesfn$t.closedNeighborhood;
-                elesfn$t.openNeighbourhood = elesfn$t.openNeighborhood; // Edge functions
-/////////////////
+      var factor = distance2 / distance1;
 
-                extend(elesfn$t, {
-                    source: cache(function sourceImpl(selector) {
-                        var ele = this[0];
-                        var src;
+      if (twoFingersStartInside) {
+        // delta finger1
+        var df1x = f1x2 - f1x1;
+        var df1y = f1y2 - f1y1; // delta finger 2
 
-                        if (ele) {
-                            src = ele._private.source || ele.cy().collection();
-                        }
+        var df2x = f2x2 - f2x1;
+        var df2y = f2y2 - f2y1; // translation is the normalised vector of the two fingers movement
+        // i.e. so pinching cancels out and moving together pans
 
-                        return src && selector ? src.filter(selector) : src;
-                    }, 'source'),
-                    target: cache(function targetImpl(selector) {
-                        var ele = this[0];
-                        var tgt;
+        var tx = (df1x + df2x) / 2;
+        var ty = (df1y + df2y) / 2; // now calculate the zoom
 
-                        if (ele) {
-                            tgt = ele._private.target || ele.cy().collection();
-                        }
+        var zoom1 = cy.zoom();
+        var zoom2 = zoom1 * factor;
+        var pan1 = cy.pan(); // the model center point converted to the current rendered pos
 
-                        return tgt && selector ? tgt.filter(selector) : tgt;
-                    }, 'target'),
-                    sources: defineSourceFunction({
-                        attr: 'source'
-                    }),
-                    targets: defineSourceFunction({
-                        attr: 'target'
-                    })
-                });
+        var ctrx = modelCenter1[0] * zoom1 + pan1.x;
+        var ctry = modelCenter1[1] * zoom1 + pan1.y;
+        var pan2 = {
+          x: -zoom2 / zoom1 * (ctrx - pan1.x - tx) + ctrx,
+          y: -zoom2 / zoom1 * (ctry - pan1.y - ty) + ctry
+        }; // remove dragged eles
 
-                function defineSourceFunction(params) {
-                    return function sourceImpl(selector) {
-                        var sources = [];
+        if (_start && _start.active()) {
+          var draggedEles = r.dragData.touchDragEles;
+          freeDraggedElements(draggedEles);
+          r.redrawHint('drag', true);
+          r.redrawHint('eles', true);
 
-                        for (var i = 0; i < this.length; i++) {
-                            var ele = this[i];
-                            var src = ele._private[params.attr];
+          _start.unactivate().emit('freeon');
 
-                            if (src) {
-                                sources.push(src);
-                            }
-                        }
+          draggedEles.emit('free');
 
-                        return this.spawn(sources, true).filter(selector);
-                    };
-                }
+          if (r.dragData.didDrag) {
+            _start.emit('dragfreeon');
 
-                extend(elesfn$t, {
-                    edgesWith: cache(defineEdgesWithFunction(), 'edgesWith'),
-                    edgesTo: cache(defineEdgesWithFunction({
-                        thisIsSrc: true
-                    }), 'edgesTo')
-                });
+            draggedEles.emit('dragfree');
+          }
+        }
 
-                function defineEdgesWithFunction(params) {
-                    return function edgesWithImpl(otherNodes) {
-                        var elements = [];
-                        var cy = this._private.cy;
-                        var p = params || {}; // get elements if a selector is specified
+        cy.viewport({
+          zoom: zoom2,
+          pan: pan2,
+          cancelOnFailedZoom: true
+        });
+        distance1 = distance2;
+        f1x1 = f1x2;
+        f1y1 = f1y2;
+        f2x1 = f2x2;
+        f2y1 = f2y2;
+        r.pinching = true;
+      } // Re-project
+
+
+      if (e.touches[0]) {
+        var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
+        now[0] = pos[0];
+        now[1] = pos[1];
+      }
+
+      if (e.touches[1]) {
+        var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
+        now[2] = pos[0];
+        now[3] = pos[1];
+      }
+
+      if (e.touches[2]) {
+        var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
+        now[4] = pos[0];
+        now[5] = pos[1];
+      }
+    } else if (e.touches[0] && !r.touchData.didSelect // don't allow box selection to degrade to single finger events like panning
+    ) {
+        var start = r.touchData.start;
+        var last = r.touchData.last;
+        var near;
+
+        if (!r.hoverData.draggingEles && !r.swipePanning) {
+          near = r.findNearestElement(now[0], now[1], true, true);
+        }
 
-                        if (string(otherNodes)) {
-                            otherNodes = cy.$(otherNodes);
-                        }
+        if (capture && start != null) {
+          e.preventDefault();
+        } // dragging nodes
 
-                        for (var h = 0; h < otherNodes.length; h++) {
-                            var edges = otherNodes[h]._private.edges;
 
-                            for (var i = 0; i < edges.length; i++) {
-                                var edge = edges[i];
-                                var edgeData = edge._private.data;
-                                var thisToOther = this.hasElementWithId(edgeData.source) && otherNodes.hasElementWithId(edgeData.target);
-                                var otherToThis = otherNodes.hasElementWithId(edgeData.source) && this.hasElementWithId(edgeData.target);
-                                var edgeConnectsThisAndOther = thisToOther || otherToThis;
+        if (capture && start != null && r.nodeIsDraggable(start)) {
+          if (isOverThresholdDrag) {
+            // then dragging can happen
+            var draggedEles = r.dragData.touchDragEles;
+            var justStartedDrag = !r.dragData.didDrag;
 
-                                if (!edgeConnectsThisAndOther) {
-                                    continue;
-                                }
+            if (justStartedDrag) {
+              addNodesToDrag(draggedEles, {
+                inDragLayer: true
+              });
+            }
 
-                                if (p.thisIsSrc || p.thisIsTgt) {
-                                    if (p.thisIsSrc && !thisToOther) {
-                                        continue;
-                                    }
+            r.dragData.didDrag = true;
+            var totalShift = {
+              x: 0,
+              y: 0
+            };
 
-                                    if (p.thisIsTgt && !otherToThis) {
-                                        continue;
-                                    }
-                                }
+            if (number(disp[0]) && number(disp[1])) {
+              totalShift.x += disp[0];
+              totalShift.y += disp[1];
 
-                                elements.push(edge);
-                            }
-                        }
+              if (justStartedDrag) {
+                r.redrawHint('eles', true);
+                var dragDelta = r.touchData.dragDelta;
 
-                        return this.spawn(elements, true);
-                    };
+                if (dragDelta && number(dragDelta[0]) && number(dragDelta[1])) {
+                  totalShift.x += dragDelta[0];
+                  totalShift.y += dragDelta[1];
                 }
+              }
+            }
 
-                extend(elesfn$t, {
-                    connectedEdges: cache(function (selector) {
-                        var retEles = [];
-                        var eles = this;
-
-                        for (var i = 0; i < eles.length; i++) {
-                            var node = eles[i];
-
-                            if (!node.isNode()) {
-                                continue;
-                            }
+            r.hoverData.draggingEles = true;
+            draggedEles.silentShift(totalShift).emit('position drag');
+            r.redrawHint('drag', true);
 
-                            var edges = node._private.edges;
+            if (r.touchData.startPosition[0] == earlier[0] && r.touchData.startPosition[1] == earlier[1]) {
+              r.redrawHint('eles', true);
+            }
 
-                            for (var j = 0; j < edges.length; j++) {
-                                var edge = edges[j];
-                                retEles.push(edge);
-                            }
-                        }
+            r.redraw();
+          } else {
+            // otherise keep track of drag delta for later
+            var dragDelta = r.touchData.dragDelta = r.touchData.dragDelta || [];
+
+            if (dragDelta.length === 0) {
+              dragDelta.push(disp[0]);
+              dragDelta.push(disp[1]);
+            } else {
+              dragDelta[0] += disp[0];
+              dragDelta[1] += disp[1];
+            }
+          }
+        } // touchmove
+
+
+        {
+          triggerEvents(start || near, ['touchmove', 'tapdrag', 'vmousemove'], e, {
+            x: now[0],
+            y: now[1]
+          });
+
+          if ((!start || !start.grabbed()) && near != last) {
+            if (last) {
+              last.emit({
+                originalEvent: e,
+                type: 'tapdragout',
+                position: {
+                  x: now[0],
+                  y: now[1]
+                }
+              });
+            }
 
-                        return this.spawn(retEles, true).filter(selector);
-                    }, 'connectedEdges'),
-                    connectedNodes: cache(function (selector) {
-                        var retEles = [];
-                        var eles = this;
+            if (near) {
+              near.emit({
+                originalEvent: e,
+                type: 'tapdragover',
+                position: {
+                  x: now[0],
+                  y: now[1]
+                }
+              });
+            }
+          }
 
-                        for (var i = 0; i < eles.length; i++) {
-                            var edge = eles[i];
+          r.touchData.last = near;
+        } // check to cancel taphold
 
-                            if (!edge.isEdge()) {
-                                continue;
-                            }
+        if (capture) {
+          for (var i = 0; i < now.length; i++) {
+            if (now[i] && r.touchData.startPosition[i] && isOverThresholdDrag) {
+              r.touchData.singleTouchMoved = true;
+            }
+          }
+        } // panning
 
-                            retEles.push(edge.source()[0]);
-                            retEles.push(edge.target()[0]);
-                        }
 
-                        return this.spawn(retEles, true).filter(selector);
-                    }, 'connectedNodes'),
-                    parallelEdges: cache(defineParallelEdgesFunction(), 'parallelEdges'),
-                    codirectedEdges: cache(defineParallelEdgesFunction({
-                        codirected: true
-                    }), 'codirectedEdges')
-                });
+        if (capture && (start == null || start.pannable()) && cy.panningEnabled() && cy.userPanningEnabled()) {
+          var allowPassthrough = allowPanningPassthrough(start, r.touchData.starts);
 
-                function defineParallelEdgesFunction(params) {
-                    var defaults = {
-                        codirected: false
-                    };
-                    params = extend({}, defaults, params);
-                    return function parallelEdgesImpl(selector) {
-                        // micro-optimised for renderer
-                        var elements = [];
-                        var edges = this.edges();
-                        var p = params; // look at all the edges in the collection
-
-                        for (var i = 0; i < edges.length; i++) {
-                            var edge1 = edges[i];
-                            var edge1_p = edge1._private;
-                            var src1 = edge1_p.source;
-                            var srcid1 = src1._private.data.id;
-                            var tgtid1 = edge1_p.data.target;
-                            var srcEdges1 = src1._private.edges; // look at edges connected to the src node of this edge
-
-                            for (var j = 0; j < srcEdges1.length; j++) {
-                                var edge2 = srcEdges1[j];
-                                var edge2data = edge2._private.data;
-                                var tgtid2 = edge2data.target;
-                                var srcid2 = edge2data.source;
-                                var codirected = tgtid2 === tgtid1 && srcid2 === srcid1;
-                                var oppdirected = srcid1 === tgtid2 && tgtid1 === srcid2;
-
-                                if (p.codirected && codirected || !p.codirected && (codirected || oppdirected)) {
-                                    elements.push(edge2);
-                                }
-                            }
-                        }
+          if (allowPassthrough) {
+            e.preventDefault();
 
-                        return this.spawn(elements, true).filter(selector);
-                    };
-                } // Misc functions
-/////////////////
+            if (!r.data.bgActivePosistion) {
+              r.data.bgActivePosistion = array2point(r.touchData.startPosition);
+            }
 
+            if (r.swipePanning) {
+              cy.panBy({
+                x: disp[0] * zoom,
+                y: disp[1] * zoom
+              });
+            } else if (isOverThresholdDrag) {
+              r.swipePanning = true;
+              cy.panBy({
+                x: dx * zoom,
+                y: dy * zoom
+              });
+
+              if (start) {
+                start.unactivate();
+                r.redrawHint('select', true);
+                r.touchData.start = null;
+              }
+            }
+          } // Re-project
 
-                extend(elesfn$t, {
-                    components: function components(root) {
-                        var self = this;
-                        var cy = self.cy();
-                        var visited = cy.collection();
-                        var unvisited = root == null ? self.nodes() : root.nodes();
-                        var components = [];
 
-                        if (root != null && unvisited.empty()) {
-                            // root may contain only edges
-                            unvisited = root.sources(); // doesn't matter which node to use (undirected), so just use the source sides
-                        }
+          var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
+          now[0] = pos[0];
+          now[1] = pos[1];
+        }
+      }
 
-                        var visitInComponent = function visitInComponent(node, component) {
-                            visited.merge(node);
-                            unvisited.unmerge(node);
-                            component.merge(node);
-                        };
+    for (var j = 0; j < now.length; j++) {
+      earlier[j] = now[j];
+    } // the active bg indicator should be removed when making a swipe that is neither for dragging nodes or panning
 
-                        if (unvisited.empty()) {
-                            return self.spawn();
-                        }
 
-                        var _loop = function _loop() {
-                            // each iteration yields a component
-                            var cmpt = cy.collection();
-                            components.push(cmpt);
-                            var root = unvisited[0];
-                            visitInComponent(root, cmpt);
-                            self.bfs({
-                                directed: false,
-                                roots: root,
-                                visit: function visit(v) {
-                                    return visitInComponent(v, cmpt);
-                                }
-                            });
-                            cmpt.forEach(function (node) {
-                                node.connectedEdges().forEach(function (e) {
-                                    // connectedEdges() usually cached
-                                    if (self.has(e) && cmpt.has(e.source()) && cmpt.has(e.target())) {
-                                        // has() is cheap
-                                        cmpt.merge(e); // forEach() only considers nodes -- sets N at call time
-                                    }
-                                });
-                            });
-                        };
-
-                        do {
-                            _loop();
-                        } while (unvisited.length > 0);
-
-                        return components;
-                    },
-                    component: function component() {
-                        var ele = this[0];
-                        return ele.cy().mutableElements().components(ele)[0];
-                    }
-                });
-                elesfn$t.componentsOf = elesfn$t.components;
+    if (capture && e.touches.length > 0 && !r.hoverData.draggingEles && !r.swipePanning && r.data.bgActivePosistion != null) {
+      r.data.bgActivePosistion = undefined;
+      r.redrawHint('select', true);
+      r.redraw();
+    }
+  }, false);
+  var touchcancelHandler;
+  r.registerBinding(window, 'touchcancel', touchcancelHandler = function touchcancelHandler(e) {
+    // eslint-disable-line no-unused-vars
+    var start = r.touchData.start;
+    r.touchData.capture = false;
+
+    if (start) {
+      start.unactivate();
+    }
+  });
+  var touchendHandler;
+  r.registerBinding(window, 'touchend', touchendHandler = function touchendHandler(e) {
+    // eslint-disable-line no-unused-vars
+    var start = r.touchData.start;
+    var capture = r.touchData.capture;
+
+    if (capture) {
+      if (e.touches.length === 0) {
+        r.touchData.capture = false;
+      }
+
+      e.preventDefault();
+    } else {
+      return;
+    }
 
-                var Collection = function Collection(cy, elements) {
-                    var unique = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+    var select = r.selection;
+    r.swipePanning = false;
+    r.hoverData.draggingEles = false;
+    var cy = r.cy;
+    var zoom = cy.zoom();
+    var now = r.touchData.now;
+    var earlier = r.touchData.earlier;
+
+    if (e.touches[0]) {
+      var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
+      now[0] = pos[0];
+      now[1] = pos[1];
+    }
 
-                    if (cy === undefined) {
-                        error('A collection must have a reference to the core');
-                        return;
-                    }
+    if (e.touches[1]) {
+      var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
+      now[2] = pos[0];
+      now[3] = pos[1];
+    }
 
-                    var map = new Map$1();
-                    var createdElements = false;
+    if (e.touches[2]) {
+      var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
+      now[4] = pos[0];
+      now[5] = pos[1];
+    }
 
-                    if (!elements) {
-                        elements = [];
-                    } else if (elements.length > 0 && plainObject(elements[0]) && !element(elements[0])) {
-                        createdElements = true; // make elements from json and restore all at once later
+    if (start) {
+      start.unactivate();
+    }
 
-                        var eles = [];
-                        var elesIds = new Set$1();
+    var ctxTapend;
 
-                        for (var i = 0, l = elements.length; i < l; i++) {
-                            var json = elements[i];
+    if (r.touchData.cxt) {
+      ctxTapend = {
+        originalEvent: e,
+        type: 'cxttapend',
+        position: {
+          x: now[0],
+          y: now[1]
+        }
+      };
+
+      if (start) {
+        start.emit(ctxTapend);
+      } else {
+        cy.emit(ctxTapend);
+      }
+
+      if (!r.touchData.cxtDragged) {
+        var ctxTap = {
+          originalEvent: e,
+          type: 'cxttap',
+          position: {
+            x: now[0],
+            y: now[1]
+          }
+        };
+
+        if (start) {
+          start.emit(ctxTap);
+        } else {
+          cy.emit(ctxTap);
+        }
+      }
+
+      if (r.touchData.start) {
+        r.touchData.start._private.grabbed = false;
+      }
+
+      r.touchData.cxt = false;
+      r.touchData.start = null;
+      r.redraw();
+      return;
+    } // no more box selection if we don't have three fingers
+
+
+    if (!e.touches[2] && cy.boxSelectionEnabled() && r.touchData.selecting) {
+      r.touchData.selecting = false;
+      var box = cy.collection(r.getAllInBox(select[0], select[1], select[2], select[3]));
+      select[0] = undefined;
+      select[1] = undefined;
+      select[2] = undefined;
+      select[3] = undefined;
+      select[4] = 0;
+      r.redrawHint('select', true);
+      cy.emit({
+        type: 'boxend',
+        originalEvent: e,
+        position: {
+          x: now[0],
+          y: now[1]
+        }
+      });
 
-                            if (json.data == null) {
-                                json.data = {};
-                            }
+      var eleWouldBeSelected = function eleWouldBeSelected(ele) {
+        return ele.selectable() && !ele.selected();
+      };
 
-                            var _data = json.data; // make sure newly created elements have valid ids
+      box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
 
-                            if (_data.id == null) {
-                                _data.id = uuid();
-                            } else if (cy.hasElementWithId(_data.id) || elesIds.has(_data.id)) {
-                                continue; // can't create element if prior id already exists
-                            }
+      if (box.nonempty()) {
+        r.redrawHint('eles', true);
+      }
 
-                            var ele = new Element(cy, json, false);
-                            eles.push(ele);
-                            elesIds.add(_data.id);
-                        }
+      r.redraw();
+    }
 
-                        elements = eles;
-                    }
+    if (start != null) {
+      start.unactivate();
+    }
 
-                    this.length = 0;
+    if (e.touches[2]) {
+      r.data.bgActivePosistion = undefined;
+      r.redrawHint('select', true);
+    } else if (e.touches[1]) ; else if (e.touches[0]) ; else if (!e.touches[0]) {
+      r.data.bgActivePosistion = undefined;
+      r.redrawHint('select', true);
+      var draggedEles = r.dragData.touchDragEles;
+
+      if (start != null) {
+        var startWasGrabbed = start._private.grabbed;
+        freeDraggedElements(draggedEles);
+        r.redrawHint('drag', true);
+        r.redrawHint('eles', true);
+
+        if (startWasGrabbed) {
+          start.emit('freeon');
+          draggedEles.emit('free');
+
+          if (r.dragData.didDrag) {
+            start.emit('dragfreeon');
+            draggedEles.emit('dragfree');
+          }
+        }
 
-                    for (var _i = 0, _l = elements.length; _i < _l; _i++) {
-                        var element$1 = elements[_i][0]; // [0] in case elements is an array of collections, rather than array of elements
+        triggerEvents(start, ['touchend', 'tapend', 'vmouseup', 'tapdragout'], e, {
+          x: now[0],
+          y: now[1]
+        });
+        start.unactivate();
+        r.touchData.start = null;
+      } else {
+        var near = r.findNearestElement(now[0], now[1], true, true);
+        triggerEvents(near, ['touchend', 'tapend', 'vmouseup', 'tapdragout'], e, {
+          x: now[0],
+          y: now[1]
+        });
+      }
+
+      var dx = r.touchData.startPosition[0] - now[0];
+      var dx2 = dx * dx;
+      var dy = r.touchData.startPosition[1] - now[1];
+      var dy2 = dy * dy;
+      var dist2 = dx2 + dy2;
+      var rdist2 = dist2 * zoom * zoom; // Tap event, roughly same as mouse click event for touch
+
+      if (!r.touchData.singleTouchMoved) {
+        if (!start) {
+          cy.$(':selected').unselect(['tapunselect']);
+        }
 
-                        if (element$1 == null) {
-                            continue;
-                        }
+        triggerEvents(start, ['tap', 'vclick'], e, {
+          x: now[0],
+          y: now[1]
+        });
+      } // Prepare to select the currently touched node, only if it hasn't been dragged past a certain distance
+
+
+      if (start != null && !r.dragData.didDrag // didn't drag nodes around
+      && start._private.selectable && rdist2 < r.touchTapThreshold2 && !r.pinching // pinch to zoom should not affect selection
+      ) {
+          if (cy.selectionType() === 'single') {
+            cy.$(isSelected).unmerge(start).unselect(['tapunselect']);
+            start.select(['tapselect']);
+          } else {
+            if (start.selected()) {
+              start.unselect(['tapunselect']);
+            } else {
+              start.select(['tapselect']);
+            }
+          }
 
-                        var id = element$1._private.data.id;
+          r.redrawHint('eles', true);
+        }
 
-                        if (!unique || !map.has(id)) {
-                            if (unique) {
-                                map.set(id, {
-                                    index: this.length,
-                                    ele: element$1
-                                });
-                            }
+      r.touchData.singleTouchMoved = true;
+    }
 
-                            this[this.length] = element$1;
-                            this.length++;
-                        }
-                    }
+    for (var j = 0; j < now.length; j++) {
+      earlier[j] = now[j];
+    }
 
-                    this._private = {
-                        eles: this,
-                        cy: cy,
+    r.dragData.didDrag = false; // reset for next touchstart
 
-                        get map() {
-                            if (this.lazyMap == null) {
-                                this.rebuildMap();
-                            }
+    if (e.touches.length === 0) {
+      r.touchData.dragDelta = [];
+      r.touchData.startPosition = null;
+      r.touchData.startGPosition = null;
+      r.touchData.didSelect = false;
+    }
 
-                            return this.lazyMap;
-                        },
+    if (e.touches.length < 2) {
+      if (e.touches.length === 1) {
+        // the old start global pos'n may not be the same finger that remains
+        r.touchData.startGPosition = [e.touches[0].clientX, e.touches[0].clientY];
+      }
+
+      r.pinching = false;
+      r.redrawHint('eles', true);
+      r.redraw();
+    } //r.redraw();
+
+  }, false); // fallback compatibility layer for ms pointer events
+
+  if (typeof TouchEvent === 'undefined') {
+    var pointers = [];
+
+    var makeTouch = function makeTouch(e) {
+      return {
+        clientX: e.clientX,
+        clientY: e.clientY,
+        force: 1,
+        identifier: e.pointerId,
+        pageX: e.pageX,
+        pageY: e.pageY,
+        radiusX: e.width / 2,
+        radiusY: e.height / 2,
+        screenX: e.screenX,
+        screenY: e.screenY,
+        target: e.target
+      };
+    };
+
+    var makePointer = function makePointer(e) {
+      return {
+        event: e,
+        touch: makeTouch(e)
+      };
+    };
+
+    var addPointer = function addPointer(e) {
+      pointers.push(makePointer(e));
+    };
+
+    var removePointer = function removePointer(e) {
+      for (var i = 0; i < pointers.length; i++) {
+        var p = pointers[i];
+
+        if (p.event.pointerId === e.pointerId) {
+          pointers.splice(i, 1);
+          return;
+        }
+      }
+    };
+
+    var updatePointer = function updatePointer(e) {
+      var p = pointers.filter(function (p) {
+        return p.event.pointerId === e.pointerId;
+      })[0];
+      p.event = e;
+      p.touch = makeTouch(e);
+    };
+
+    var addTouchesToEvent = function addTouchesToEvent(e) {
+      e.touches = pointers.map(function (p) {
+        return p.touch;
+      });
+    };
+
+    var pointerIsMouse = function pointerIsMouse(e) {
+      return e.pointerType === 'mouse' || e.pointerType === 4;
+    };
+
+    r.registerBinding(r.container, 'pointerdown', function (e) {
+      if (pointerIsMouse(e)) {
+        return;
+      } // mouse already handled
+
+
+      e.preventDefault();
+      addPointer(e);
+      addTouchesToEvent(e);
+      touchstartHandler(e);
+    });
+    r.registerBinding(r.container, 'pointerup', function (e) {
+      if (pointerIsMouse(e)) {
+        return;
+      } // mouse already handled
+
+
+      removePointer(e);
+      addTouchesToEvent(e);
+      touchendHandler(e);
+    });
+    r.registerBinding(r.container, 'pointercancel', function (e) {
+      if (pointerIsMouse(e)) {
+        return;
+      } // mouse already handled
+
+
+      removePointer(e);
+      addTouchesToEvent(e);
+      touchcancelHandler(e);
+    });
+    r.registerBinding(r.container, 'pointermove', function (e) {
+      if (pointerIsMouse(e)) {
+        return;
+      } // mouse already handled
+
+
+      e.preventDefault();
+      updatePointer(e);
+      addTouchesToEvent(e);
+      touchmoveHandler(e);
+    });
+  }
+};
+
+var BRp$d = {};
+
+BRp$d.generatePolygon = function (name, points) {
+  return this.nodeShapes[name] = {
+    renderer: this,
+    name: name,
+    points: points,
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl('polygon', context, centerX, centerY, width, height, this.points);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      return polygonIntersectLine(x, y, this.points, nodeX, nodeY, width / 2, height / 2, padding);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      return pointInsidePolygon(x, y, this.points, centerX, centerY, width, height, [0, -1], padding);
+    }
+  };
+};
+
+BRp$d.generateEllipse = function () {
+  return this.nodeShapes['ellipse'] = {
+    renderer: this,
+    name: 'ellipse',
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      return intersectLineEllipse(x, y, nodeX, nodeY, width / 2 + padding, height / 2 + padding);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      return checkInEllipse(x, y, width, height, centerX, centerY, padding);
+    }
+  };
+};
+
+BRp$d.generateRoundPolygon = function (name, points) {
+  // Pre-compute control points
+  // Since these points depend on the radius length (which in turns depend on the width/height of the node) we will only pre-compute
+  // the unit vectors.
+  // For simplicity the layout will be:
+  // [ p0, UnitVectorP0P1, p1, UniVectorP1P2, ..., pn, UnitVectorPnP0 ]
+  var allPoints = new Array(points.length * 2);
+
+  for (var i = 0; i < points.length / 2; i++) {
+    var sourceIndex = i * 2;
+    var destIndex = void 0;
+
+    if (i < points.length / 2 - 1) {
+      destIndex = (i + 1) * 2;
+    } else {
+      destIndex = 0;
+    }
 
-                        set map(m) {
-                            this.lazyMap = m;
-                        },
+    allPoints[i * 4] = points[sourceIndex];
+    allPoints[i * 4 + 1] = points[sourceIndex + 1];
+    var xDest = points[destIndex] - points[sourceIndex];
+    var yDest = points[destIndex + 1] - points[sourceIndex + 1];
+    var norm = Math.sqrt(xDest * xDest + yDest * yDest);
+    allPoints[i * 4 + 2] = xDest / norm;
+    allPoints[i * 4 + 3] = yDest / norm;
+  }
 
-                        rebuildMap: function rebuildMap() {
-                            var m = this.lazyMap = new Map$1();
-                            var eles = this.eles;
+  return this.nodeShapes[name] = {
+    renderer: this,
+    name: name,
+    points: allPoints,
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl('round-polygon', context, centerX, centerY, width, height, this.points);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      return roundPolygonIntersectLine(x, y, this.points, nodeX, nodeY, width, height);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      return pointInsideRoundPolygon(x, y, this.points, centerX, centerY, width, height);
+    }
+  };
+};
 
-                            for (var _i2 = 0; _i2 < eles.length; _i2++) {
-                                var _ele = eles[_i2];
-                                m.set(_ele.id(), {
-                                    index: _i2,
-                                    ele: _ele
-                                });
-                            }
-                        }
-                    };
+BRp$d.generateRoundRectangle = function () {
+  return this.nodeShapes['round-rectangle'] = this.nodeShapes['roundrectangle'] = {
+    renderer: this,
+    name: 'round-rectangle',
+    points: generateUnitNgonPointsFitToSquare(4, 0),
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      return roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      var cornerRadius = getRoundRectangleRadius(width, height);
+      var diam = cornerRadius * 2; // Check hBox
 
-                    if (unique) {
-                        this._private.map = map;
-                    } // restore the elements if we created them from json
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - diam, [0, -1], padding)) {
+        return true;
+      } // Check vBox
 
 
-                    if (createdElements) {
-                        this.restore();
-                    }
-                }; // Functions
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// keep the prototypes in sync (an element has the same functions as a collection)
-// and use elefn and elesfn as shorthands to the prototypes
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - diam, height, [0, -1], padding)) {
+        return true;
+      } // Check top left quarter circle
 
 
-                var elesfn$u = Element.prototype = Collection.prototype = Object.create(Array.prototype);
+      if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY - height / 2 + cornerRadius, padding)) {
+        return true;
+      } // Check top right quarter circle
 
-                elesfn$u.instanceString = function () {
-                    return 'collection';
-                };
 
-                elesfn$u.spawn = function (eles, unique) {
-                    return new Collection(this.cy(), eles, unique);
-                };
+      if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY - height / 2 + cornerRadius, padding)) {
+        return true;
+      } // Check bottom right quarter circle
 
-                elesfn$u.spawnSelf = function () {
-                    return this.spawn(this);
-                };
 
-                elesfn$u.cy = function () {
-                    return this._private.cy;
-                };
+      if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
+        return true;
+      } // Check bottom left quarter circle
 
-                elesfn$u.renderer = function () {
-                    return this._private.cy.renderer();
-                };
 
-                elesfn$u.element = function () {
-                    return this[0];
-                };
+      if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
+        return true;
+      }
 
-                elesfn$u.collection = function () {
-                    if (collection(this)) {
-                        return this;
-                    } else {
-                        // an element
-                        return new Collection(this._private.cy, [this]);
-                    }
-                };
+      return false;
+    }
+  };
+};
+
+BRp$d.generateCutRectangle = function () {
+  return this.nodeShapes['cut-rectangle'] = this.nodeShapes['cutrectangle'] = {
+    renderer: this,
+    name: 'cut-rectangle',
+    cornerLength: getCutRectangleCornerLength(),
+    points: generateUnitNgonPointsFitToSquare(4, 0),
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
+    },
+    generateCutTrianglePts: function generateCutTrianglePts(width, height, centerX, centerY) {
+      var cl = this.cornerLength;
+      var hh = height / 2;
+      var hw = width / 2;
+      var xBegin = centerX - hw;
+      var xEnd = centerX + hw;
+      var yBegin = centerY - hh;
+      var yEnd = centerY + hh; // points are in clockwise order, inner (imaginary) triangle pt on [4, 5]
+
+      return {
+        topLeft: [xBegin, yBegin + cl, xBegin + cl, yBegin, xBegin + cl, yBegin + cl],
+        topRight: [xEnd - cl, yBegin, xEnd, yBegin + cl, xEnd - cl, yBegin + cl],
+        bottomRight: [xEnd, yEnd - cl, xEnd - cl, yEnd, xEnd - cl, yEnd - cl],
+        bottomLeft: [xBegin + cl, yEnd, xBegin, yEnd - cl, xBegin + cl, yEnd - cl]
+      };
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      var cPts = this.generateCutTrianglePts(width + 2 * padding, height + 2 * padding, nodeX, nodeY);
+      var pts = [].concat.apply([], [cPts.topLeft.splice(0, 4), cPts.topRight.splice(0, 4), cPts.bottomRight.splice(0, 4), cPts.bottomLeft.splice(0, 4)]);
+      return polygonIntersectLine(x, y, pts, nodeX, nodeY);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      // Check hBox
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - 2 * this.cornerLength, [0, -1], padding)) {
+        return true;
+      } // Check vBox
+
+
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - 2 * this.cornerLength, height, [0, -1], padding)) {
+        return true;
+      }
+
+      var cutTrianglePts = this.generateCutTrianglePts(width, height, centerX, centerY);
+      return pointInsidePolygonPoints(x, y, cutTrianglePts.topLeft) || pointInsidePolygonPoints(x, y, cutTrianglePts.topRight) || pointInsidePolygonPoints(x, y, cutTrianglePts.bottomRight) || pointInsidePolygonPoints(x, y, cutTrianglePts.bottomLeft);
+    }
+  };
+};
+
+BRp$d.generateBarrel = function () {
+  return this.nodeShapes['barrel'] = {
+    renderer: this,
+    name: 'barrel',
+    points: generateUnitNgonPointsFitToSquare(4, 0),
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      // use two fixed t values for the bezier curve approximation
+      var t0 = 0.15;
+      var t1 = 0.5;
+      var t2 = 0.85;
+      var bPts = this.generateBarrelBezierPts(width + 2 * padding, height + 2 * padding, nodeX, nodeY);
+
+      var approximateBarrelCurvePts = function approximateBarrelCurvePts(pts) {
+        // approximate curve pts based on the two t values
+        var m0 = qbezierPtAt({
+          x: pts[0],
+          y: pts[1]
+        }, {
+          x: pts[2],
+          y: pts[3]
+        }, {
+          x: pts[4],
+          y: pts[5]
+        }, t0);
+        var m1 = qbezierPtAt({
+          x: pts[0],
+          y: pts[1]
+        }, {
+          x: pts[2],
+          y: pts[3]
+        }, {
+          x: pts[4],
+          y: pts[5]
+        }, t1);
+        var m2 = qbezierPtAt({
+          x: pts[0],
+          y: pts[1]
+        }, {
+          x: pts[2],
+          y: pts[3]
+        }, {
+          x: pts[4],
+          y: pts[5]
+        }, t2);
+        return [pts[0], pts[1], m0.x, m0.y, m1.x, m1.y, m2.x, m2.y, pts[4], pts[5]];
+      };
+
+      var pts = [].concat(approximateBarrelCurvePts(bPts.topLeft), approximateBarrelCurvePts(bPts.topRight), approximateBarrelCurvePts(bPts.bottomRight), approximateBarrelCurvePts(bPts.bottomLeft));
+      return polygonIntersectLine(x, y, pts, nodeX, nodeY);
+    },
+    generateBarrelBezierPts: function generateBarrelBezierPts(width, height, centerX, centerY) {
+      var hh = height / 2;
+      var hw = width / 2;
+      var xBegin = centerX - hw;
+      var xEnd = centerX + hw;
+      var yBegin = centerY - hh;
+      var yEnd = centerY + hh;
+      var curveConstants = getBarrelCurveConstants(width, height);
+      var hOffset = curveConstants.heightOffset;
+      var wOffset = curveConstants.widthOffset;
+      var ctrlPtXOffset = curveConstants.ctrlPtOffsetPct * width; // points are in clockwise order, inner (imaginary) control pt on [4, 5]
+
+      var pts = {
+        topLeft: [xBegin, yBegin + hOffset, xBegin + ctrlPtXOffset, yBegin, xBegin + wOffset, yBegin],
+        topRight: [xEnd - wOffset, yBegin, xEnd - ctrlPtXOffset, yBegin, xEnd, yBegin + hOffset],
+        bottomRight: [xEnd, yEnd - hOffset, xEnd - ctrlPtXOffset, yEnd, xEnd - wOffset, yEnd],
+        bottomLeft: [xBegin + wOffset, yEnd, xBegin + ctrlPtXOffset, yEnd, xBegin, yEnd - hOffset]
+      };
+      pts.topLeft.isTop = true;
+      pts.topRight.isTop = true;
+      pts.bottomLeft.isBottom = true;
+      pts.bottomRight.isBottom = true;
+      return pts;
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      var curveConstants = getBarrelCurveConstants(width, height);
+      var hOffset = curveConstants.heightOffset;
+      var wOffset = curveConstants.widthOffset; // Check hBox
+
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - 2 * hOffset, [0, -1], padding)) {
+        return true;
+      } // Check vBox
+
+
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - 2 * wOffset, height, [0, -1], padding)) {
+        return true;
+      }
+
+      var barrelCurvePts = this.generateBarrelBezierPts(width, height, centerX, centerY);
+
+      var getCurveT = function getCurveT(x, y, curvePts) {
+        var x0 = curvePts[4];
+        var x1 = curvePts[2];
+        var x2 = curvePts[0];
+        var y0 = curvePts[5]; // var y1 = curvePts[ 3 ];
+
+        var y2 = curvePts[1];
+        var xMin = Math.min(x0, x2);
+        var xMax = Math.max(x0, x2);
+        var yMin = Math.min(y0, y2);
+        var yMax = Math.max(y0, y2);
+
+        if (xMin <= x && x <= xMax && yMin <= y && y <= yMax) {
+          var coeff = bezierPtsToQuadCoeff(x0, x1, x2);
+          var roots = solveQuadratic(coeff[0], coeff[1], coeff[2], x);
+          var validRoots = roots.filter(function (r) {
+            return 0 <= r && r <= 1;
+          });
+
+          if (validRoots.length > 0) {
+            return validRoots[0];
+          }
+        }
 
-                elesfn$u.unique = function () {
-                    return new Collection(this._private.cy, this, true);
-                };
+        return null;
+      };
 
-                elesfn$u.hasElementWithId = function (id) {
-                    id = '' + id; // id must be string
+      var curveRegions = Object.keys(barrelCurvePts);
 
-                    return this._private.map.has(id);
-                };
+      for (var i = 0; i < curveRegions.length; i++) {
+        var corner = curveRegions[i];
+        var cornerPts = barrelCurvePts[corner];
+        var t = getCurveT(x, y, cornerPts);
 
-                elesfn$u.getElementById = function (id) {
-                    id = '' + id; // id must be string
+        if (t == null) {
+          continue;
+        }
 
-                    var cy = this._private.cy;
+        var y0 = cornerPts[5];
+        var y1 = cornerPts[3];
+        var y2 = cornerPts[1];
+        var bezY = qbezierAt(y0, y1, y2, t);
 
-                    var entry = this._private.map.get(id);
+        if (cornerPts.isTop && bezY <= y) {
+          return true;
+        }
 
-                    return entry ? entry.ele : new Collection(cy); // get ele or empty collection
-                };
+        if (cornerPts.isBottom && y <= bezY) {
+          return true;
+        }
+      }
 
-                elesfn$u.$id = elesfn$u.getElementById;
+      return false;
+    }
+  };
+};
 
-                elesfn$u.poolIndex = function () {
-                    var cy = this._private.cy;
-                    var eles = cy._private.elements;
-                    var id = this[0]._private.data.id;
-                    return eles._private.map.get(id).index;
-                };
+BRp$d.generateBottomRoundrectangle = function () {
+  return this.nodeShapes['bottom-round-rectangle'] = this.nodeShapes['bottomroundrectangle'] = {
+    renderer: this,
+    name: 'bottom-round-rectangle',
+    points: generateUnitNgonPointsFitToSquare(4, 0),
+    draw: function draw(context, centerX, centerY, width, height) {
+      this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
+    },
+    intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
+      var topStartX = nodeX - (width / 2 + padding);
+      var topStartY = nodeY - (height / 2 + padding);
+      var topEndY = topStartY;
+      var topEndX = nodeX + (width / 2 + padding);
+      var topIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, topStartX, topStartY, topEndX, topEndY, false);
 
-                elesfn$u.indexOf = function (ele) {
-                    var id = ele[0]._private.data.id;
-                    return this._private.map.get(id).index;
-                };
+      if (topIntersections.length > 0) {
+        return topIntersections;
+      }
 
-                elesfn$u.indexOfId = function (id) {
-                    id = '' + id; // id must be string
+      return roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding);
+    },
+    checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
+      var cornerRadius = getRoundRectangleRadius(width, height);
+      var diam = 2 * cornerRadius; // Check hBox
 
-                    return this._private.map.get(id).index;
-                };
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - diam, [0, -1], padding)) {
+        return true;
+      } // Check vBox
 
-                elesfn$u.json = function (obj) {
-                    var ele = this.element();
-                    var cy = this.cy();
 
-                    if (ele == null && obj) {
-                        return this;
-                    } // can't set to no eles
+      if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - diam, height, [0, -1], padding)) {
+        return true;
+      } // check non-rounded top side
 
 
-                    if (ele == null) {
-                        return undefined;
-                    } // can't get from no eles
+      var outerWidth = width / 2 + 2 * padding;
+      var outerHeight = height / 2 + 2 * padding;
+      var points = [centerX - outerWidth, centerY - outerHeight, centerX - outerWidth, centerY, centerX + outerWidth, centerY, centerX + outerWidth, centerY - outerHeight];
 
+      if (pointInsidePolygonPoints(x, y, points)) {
+        return true;
+      } // Check bottom right quarter circle
 
-                    var p = ele._private;
 
-                    if (plainObject(obj)) {
-                        // set
-                        cy.startBatch();
+      if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
+        return true;
+      } // Check bottom left quarter circle
 
-                        if (obj.data) {
-                            ele.data(obj.data);
-                            var _data2 = p.data;
 
-                            if (ele.isEdge()) {
-                                // source and target are immutable via data()
-                                var move = false;
-                                var spec = {};
-                                var src = obj.data.source;
-                                var tgt = obj.data.target;
+      if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
+        return true;
+      }
 
-                                if (src != null && src != _data2.source) {
-                                    spec.source = '' + src; // id must be string
+      return false;
+    }
+  };
+};
+
+BRp$d.registerNodeShapes = function () {
+  var nodeShapes = this.nodeShapes = {};
+  var renderer = this;
+  this.generateEllipse();
+  this.generatePolygon('triangle', generateUnitNgonPointsFitToSquare(3, 0));
+  this.generateRoundPolygon('round-triangle', generateUnitNgonPointsFitToSquare(3, 0));
+  this.generatePolygon('rectangle', generateUnitNgonPointsFitToSquare(4, 0));
+  nodeShapes['square'] = nodeShapes['rectangle'];
+  this.generateRoundRectangle();
+  this.generateCutRectangle();
+  this.generateBarrel();
+  this.generateBottomRoundrectangle();
+  {
+    var diamondPoints = [0, 1, 1, 0, 0, -1, -1, 0];
+    this.generatePolygon('diamond', diamondPoints);
+    this.generateRoundPolygon('round-diamond', diamondPoints);
+  }
+  this.generatePolygon('pentagon', generateUnitNgonPointsFitToSquare(5, 0));
+  this.generateRoundPolygon('round-pentagon', generateUnitNgonPointsFitToSquare(5, 0));
+  this.generatePolygon('hexagon', generateUnitNgonPointsFitToSquare(6, 0));
+  this.generateRoundPolygon('round-hexagon', generateUnitNgonPointsFitToSquare(6, 0));
+  this.generatePolygon('heptagon', generateUnitNgonPointsFitToSquare(7, 0));
+  this.generateRoundPolygon('round-heptagon', generateUnitNgonPointsFitToSquare(7, 0));
+  this.generatePolygon('octagon', generateUnitNgonPointsFitToSquare(8, 0));
+  this.generateRoundPolygon('round-octagon', generateUnitNgonPointsFitToSquare(8, 0));
+  var star5Points = new Array(20);
+  {
+    var outerPoints = generateUnitNgonPoints(5, 0);
+    var innerPoints = generateUnitNgonPoints(5, Math.PI / 5); // Outer radius is 1; inner radius of star is smaller
+
+    var innerRadius = 0.5 * (3 - Math.sqrt(5));
+    innerRadius *= 1.57;
+
+    for (var i = 0; i < innerPoints.length / 2; i++) {
+      innerPoints[i * 2] *= innerRadius;
+      innerPoints[i * 2 + 1] *= innerRadius;
+    }
 
-                                    move = true;
-                                }
+    for (var i = 0; i < 20 / 4; i++) {
+      star5Points[i * 4] = outerPoints[i * 2];
+      star5Points[i * 4 + 1] = outerPoints[i * 2 + 1];
+      star5Points[i * 4 + 2] = innerPoints[i * 2];
+      star5Points[i * 4 + 3] = innerPoints[i * 2 + 1];
+    }
+  }
+  star5Points = fitPolygonToSquare(star5Points);
+  this.generatePolygon('star', star5Points);
+  this.generatePolygon('vee', [-1, -1, 0, -0.333, 1, -1, 0, 1]);
+  this.generatePolygon('rhomboid', [-1, -1, 0.333, -1, 1, 1, -0.333, 1]);
+  this.nodeShapes['concavehexagon'] = this.generatePolygon('concave-hexagon', [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]);
+  {
+    var tagPoints = [-1, -1, 0.25, -1, 1, 0, 0.25, 1, -1, 1];
+    this.generatePolygon('tag', tagPoints);
+    this.generateRoundPolygon('round-tag', tagPoints);
+  }
 
-                                if (tgt != null && tgt != _data2.target) {
-                                    spec.target = '' + tgt; // id must be string
+  nodeShapes.makePolygon = function (points) {
+    // use caching on user-specified polygons so they are as fast as native shapes
+    var key = points.join('$');
+    var name = 'polygon-' + key;
+    var shape;
 
-                                    move = true;
-                                }
+    if (shape = this[name]) {
+      // got cached shape
+      return shape;
+    } // create and cache new shape
 
-                                if (move) {
-                                    ele = ele.move(spec);
-                                }
-                            } else {
-                                // parent is immutable via data()
-                                var newParentValSpecd = 'parent' in obj.data;
-                                var parent = obj.data.parent;
 
-                                if (newParentValSpecd && (parent != null || _data2.parent != null) && parent != _data2.parent) {
-                                    if (parent === undefined) {
-                                        // can't set undefined imperatively, so use null
-                                        parent = null;
-                                    }
+    return renderer.generatePolygon(name, points);
+  };
+};
 
-                                    if (parent != null) {
-                                        parent = '' + parent; // id must be string
-                                    }
+var BRp$e = {};
 
-                                    ele = ele.move({
-                                        parent: parent
-                                    });
-                                }
-                            }
-                        }
+BRp$e.timeToRender = function () {
+  return this.redrawTotalTime / this.redrawCount;
+};
 
-                        if (obj.position) {
-                            ele.position(obj.position);
-                        } // ignore group -- immutable
+BRp$e.redraw = function (options) {
+  options = options || staticEmptyObject();
+  var r = this;
 
+  if (r.averageRedrawTime === undefined) {
+    r.averageRedrawTime = 0;
+  }
 
-                        var checkSwitch = function checkSwitch(k, trueFnName, falseFnName) {
-                            var obj_k = obj[k];
+  if (r.lastRedrawTime === undefined) {
+    r.lastRedrawTime = 0;
+  }
 
-                            if (obj_k != null && obj_k !== p[k]) {
-                                if (obj_k) {
-                                    ele[trueFnName]();
-                                } else {
-                                    ele[falseFnName]();
-                                }
-                            }
-                        };
+  if (r.lastDrawTime === undefined) {
+    r.lastDrawTime = 0;
+  }
 
-                        checkSwitch('removed', 'remove', 'restore');
-                        checkSwitch('selected', 'select', 'unselect');
-                        checkSwitch('selectable', 'selectify', 'unselectify');
-                        checkSwitch('locked', 'lock', 'unlock');
-                        checkSwitch('grabbable', 'grabify', 'ungrabify');
-                        checkSwitch('pannable', 'panify', 'unpanify');
+  r.requestedFrame = true;
+  r.renderOptions = options;
+};
 
-                        if (obj.classes != null) {
-                            ele.classes(obj.classes);
-                        }
+BRp$e.beforeRender = function (fn, priority) {
+  // the renderer can't add tick callbacks when destroyed
+  if (this.destroyed) {
+    return;
+  }
 
-                        cy.endBatch();
-                        return this;
-                    } else if (obj === undefined) {
-                        // get
-                        var json = {
-                            data: copy(p.data),
-                            position: copy(p.position),
-                            group: p.group,
-                            removed: p.removed,
-                            selected: p.selected,
-                            selectable: p.selectable,
-                            locked: p.locked,
-                            grabbable: p.grabbable,
-                            pannable: p.pannable,
-                            classes: null
-                        };
-                        json.classes = '';
-                        var i = 0;
-                        p.classes.forEach(function (cls) {
-                            return json.classes += i++ === 0 ? cls : ' ' + cls;
-                        });
-                        return json;
-                    }
-                };
+  if (priority == null) {
+    error('Priority is not optional for beforeRender');
+  }
 
-                elesfn$u.jsons = function () {
-                    var jsons = [];
+  var cbs = this.beforeRenderCallbacks;
+  cbs.push({
+    fn: fn,
+    priority: priority
+  }); // higher priority callbacks executed first
 
-                    for (var i = 0; i < this.length; i++) {
-                        var ele = this[i];
-                        var json = ele.json();
-                        jsons.push(json);
-                    }
+  cbs.sort(function (a, b) {
+    return b.priority - a.priority;
+  });
+};
 
-                    return jsons;
-                };
+var beforeRenderCallbacks = function beforeRenderCallbacks(r, willDraw, startTime) {
+  var cbs = r.beforeRenderCallbacks;
 
-                elesfn$u.clone = function () {
-                    var cy = this.cy();
-                    var elesArr = [];
+  for (var i = 0; i < cbs.length; i++) {
+    cbs[i].fn(willDraw, startTime);
+  }
+};
 
-                    for (var i = 0; i < this.length; i++) {
-                        var ele = this[i];
-                        var json = ele.json();
-                        var clone = new Element(cy, json, false); // NB no restore
+BRp$e.startRenderLoop = function () {
+  var r = this;
+  var cy = r.cy;
 
-                        elesArr.push(clone);
-                    }
+  if (r.renderLoopStarted) {
+    return;
+  } else {
+    r.renderLoopStarted = true;
+  }
 
-                    return new Collection(cy, elesArr);
-                };
+  var renderFn = function renderFn(requestTime) {
+    if (r.destroyed) {
+      return;
+    }
 
-                elesfn$u.copy = elesfn$u.clone;
+    if (cy.batching()) ; else if (r.requestedFrame && !r.skipFrame) {
+      beforeRenderCallbacks(r, true, requestTime);
+      var startTime = performanceNow();
+      r.render(r.renderOptions);
+      var endTime = r.lastDrawTime = performanceNow();
 
-                elesfn$u.restore = function () {
-                    var notifyRenderer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
-                    var addToPool = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                    var self = this;
-                    var cy = self.cy();
-                    var cy_p = cy._private; // create arrays of nodes and edges, since we need to
-                    // restore the nodes first
+      if (r.averageRedrawTime === undefined) {
+        r.averageRedrawTime = endTime - startTime;
+      }
 
-                    var nodes = [];
-                    var edges = [];
-                    var elements;
+      if (r.redrawCount === undefined) {
+        r.redrawCount = 0;
+      }
 
-                    for (var _i3 = 0, l = self.length; _i3 < l; _i3++) {
-                        var ele = self[_i3];
+      r.redrawCount++;
 
-                        if (addToPool && !ele.removed()) {
-                            // don't need to handle this ele
-                            continue;
-                        } // keep nodes first in the array and edges after
+      if (r.redrawTotalTime === undefined) {
+        r.redrawTotalTime = 0;
+      }
 
+      var duration = endTime - startTime;
+      r.redrawTotalTime += duration;
+      r.lastRedrawTime = duration; // use a weighted average with a bias from the previous average so we don't spike so easily
 
-                        if (ele.isNode()) {
-                            // put to front of array if node
-                            nodes.push(ele);
-                        } else {
-                            // put to end of array if edge
-                            edges.push(ele);
-                        }
-                    }
+      r.averageRedrawTime = r.averageRedrawTime / 2 + duration / 2;
+      r.requestedFrame = false;
+    } else {
+      beforeRenderCallbacks(r, false, requestTime);
+    }
 
-                    elements = nodes.concat(edges);
-                    var i;
+    r.skipFrame = false;
+    requestAnimationFrame(renderFn);
+  };
 
-                    var removeFromElements = function removeFromElements() {
-                        elements.splice(i, 1);
-                        i--;
-                    }; // now, restore each element
+  requestAnimationFrame(renderFn);
+};
 
+var BaseRenderer = function BaseRenderer(options) {
+  this.init(options);
+};
 
-                    for (i = 0; i < elements.length; i++) {
-                        var _ele2 = elements[i];
-                        var _private = _ele2._private;
-                        var _data3 = _private.data; // the traversal cache should start fresh when ele is added
+var BR = BaseRenderer;
+var BRp$f = BR.prototype;
+BRp$f.clientFunctions = ['redrawHint', 'render', 'renderTo', 'matchCanvasSize', 'nodeShapeImpl', 'arrowShapeImpl'];
 
-                        _ele2.clearTraversalCache(); // set id and validate
+BRp$f.init = function (options) {
+  var r = this;
+  r.options = options;
+  r.cy = options.cy;
+  var ctr = r.container = options.cy.container(); // prepend a stylesheet in the head such that
 
+  if (window$1) {
+    var document = window$1.document;
+    var head = document.head;
+    var stylesheetId = '__________cytoscape_stylesheet';
+    var className = '__________cytoscape_container';
+    var stylesheetAlreadyExists = document.getElementById(stylesheetId) != null;
 
-                        if (!addToPool && !_private.removed) ; else if (_data3.id === undefined) {
-                            _data3.id = uuid();
-                        } else if (number(_data3.id)) {
-                            _data3.id = '' + _data3.id; // now it's a string
-                        } else if (emptyString(_data3.id) || !string(_data3.id)) {
-                            error('Can not create element with invalid string ID `' + _data3.id + '`'); // can't create element if it has empty string as id or non-string id
+    if (ctr.className.indexOf(className) < 0) {
+      ctr.className = (ctr.className || '') + ' ' + className;
+    }
 
-                            removeFromElements();
-                            continue;
-                        } else if (cy.hasElementWithId(_data3.id)) {
-                            error('Can not create second element with ID `' + _data3.id + '`'); // can't create element if one already has that id
+    if (!stylesheetAlreadyExists) {
+      var stylesheet = document.createElement('style');
+      stylesheet.id = stylesheetId;
+      stylesheet.innerHTML = '.' + className + ' { position: relative; }';
+      head.insertBefore(stylesheet, head.children[0]); // first so lowest priority
+    }
 
-                            removeFromElements();
-                            continue;
-                        }
+    var computedStyle = window$1.getComputedStyle(ctr);
+    var position = computedStyle.getPropertyValue('position');
 
-                        var id = _data3.id; // id is finalised, now let's keep a ref
+    if (position === 'static') {
+      warn('A Cytoscape container has style position:static and so can not use UI extensions properly');
+    }
+  }
 
-                        if (_ele2.isNode()) {
-                            // extra checks for nodes
-                            var pos = _private.position; // make sure the nodes have a defined position
+  r.selection = [undefined, undefined, undefined, undefined, 0]; // Coordinates for selection box, plus enabled flag
+
+  r.bezierProjPcts = [0.05, 0.225, 0.4, 0.5, 0.6, 0.775, 0.95]; //--Pointer-related data
+
+  r.hoverData = {
+    down: null,
+    last: null,
+    downTime: null,
+    triggerMode: null,
+    dragging: false,
+    initialPan: [null, null],
+    capture: false
+  };
+  r.dragData = {
+    possibleDragElements: []
+  };
+  r.touchData = {
+    start: null,
+    capture: false,
+    // These 3 fields related to tap, taphold events
+    startPosition: [null, null, null, null, null, null],
+    singleTouchStartTime: null,
+    singleTouchMoved: true,
+    now: [null, null, null, null, null, null],
+    earlier: [null, null, null, null, null, null]
+  };
+  r.redraws = 0;
+  r.showFps = options.showFps;
+  r.debug = options.debug;
+  r.hideEdgesOnViewport = options.hideEdgesOnViewport;
+  r.textureOnViewport = options.textureOnViewport;
+  r.wheelSensitivity = options.wheelSensitivity;
+  r.motionBlurEnabled = options.motionBlur; // on by default
+
+  r.forcedPixelRatio = number(options.pixelRatio) ? options.pixelRatio : null;
+  r.motionBlur = options.motionBlur; // for initial kick off
+
+  r.motionBlurOpacity = options.motionBlurOpacity;
+  r.motionBlurTransparency = 1 - r.motionBlurOpacity;
+  r.motionBlurPxRatio = 1;
+  r.mbPxRBlurry = 1; //0.8;
+
+  r.minMbLowQualFrames = 4;
+  r.fullQualityMb = false;
+  r.clearedForMotionBlur = [];
+  r.desktopTapThreshold = options.desktopTapThreshold;
+  r.desktopTapThreshold2 = options.desktopTapThreshold * options.desktopTapThreshold;
+  r.touchTapThreshold = options.touchTapThreshold;
+  r.touchTapThreshold2 = options.touchTapThreshold * options.touchTapThreshold;
+  r.tapholdDuration = 500;
+  r.bindings = [];
+  r.beforeRenderCallbacks = [];
+  r.beforeRenderPriorities = {
+    // higher priority execs before lower one
+    animations: 400,
+    eleCalcs: 300,
+    eleTxrDeq: 200,
+    lyrTxrDeq: 150,
+    lyrTxrSkip: 100
+  };
+  r.registerNodeShapes();
+  r.registerArrowShapes();
+  r.registerCalculationListeners();
+};
+
+BRp$f.notify = function (eventName, eles) {
+  var r = this;
+  var cy = r.cy; // the renderer can't be notified after it's destroyed
+
+  if (this.destroyed) {
+    return;
+  }
 
-                            if (pos.x == null) {
-                                pos.x = 0;
-                            }
+  if (eventName === 'init') {
+    r.load();
+    return;
+  }
 
-                            if (pos.y == null) {
-                                pos.y = 0;
-                            }
-                        }
+  if (eventName === 'destroy') {
+    r.destroy();
+    return;
+  }
 
-                        if (_ele2.isEdge()) {
-                            // extra checks for edges
-                            var edge = _ele2;
-                            var fields = ['source', 'target'];
-                            var fieldsLength = fields.length;
-                            var badSourceOrTarget = false;
-
-                            for (var j = 0; j < fieldsLength; j++) {
-                                var field = fields[j];
-                                var val = _data3[field];
-
-                                if (number(val)) {
-                                    val = _data3[field] = '' + _data3[field]; // now string
-                                }
-
-                                if (val == null || val === '') {
-                                    // can't create if source or target is not defined properly
-                                    error('Can not create edge `' + id + '` with unspecified ' + field);
-                                    badSourceOrTarget = true;
-                                } else if (!cy.hasElementWithId(val)) {
-                                    // can't create edge if one of its nodes doesn't exist
-                                    error('Can not create edge `' + id + '` with nonexistant ' + field + ' `' + val + '`');
-                                    badSourceOrTarget = true;
-                                }
-                            }
+  if (eventName === 'add' || eventName === 'remove' || eventName === 'move' && cy.hasCompoundNodes() || eventName === 'load' || eventName === 'zorder' || eventName === 'mount') {
+    r.invalidateCachedZSortedEles();
+  }
 
-                            if (badSourceOrTarget) {
-                                removeFromElements();
-                                continue;
-                            } // can't create this
+  if (eventName === 'viewport') {
+    r.redrawHint('select', true);
+  }
 
+  if (eventName === 'load' || eventName === 'resize' || eventName === 'mount') {
+    r.invalidateContainerClientCoordsCache();
+    r.matchCanvasSize(r.container);
+  }
 
-                            var src = cy.getElementById(_data3.source);
-                            var tgt = cy.getElementById(_data3.target); // only one edge in node if loop
+  r.redrawHint('eles', true);
+  r.redrawHint('drag', true);
+  this.startRenderLoop();
+  this.redraw();
+};
+
+BRp$f.destroy = function () {
+  var r = this;
+  r.destroyed = true;
+  r.cy.stopAnimationLoop();
+
+  for (var i = 0; i < r.bindings.length; i++) {
+    var binding = r.bindings[i];
+    var b = binding;
+    var tgt = b.target;
+    (tgt.off || tgt.removeEventListener).apply(tgt, b.args);
+  }
 
-                            if (src.same(tgt)) {
-                                src._private.edges.push(edge);
-                            } else {
-                                src._private.edges.push(edge);
+  r.bindings = [];
+  r.beforeRenderCallbacks = [];
+  r.onUpdateEleCalcsFns = [];
 
-                                tgt._private.edges.push(edge);
-                            }
+  if (r.removeObserver) {
+    r.removeObserver.disconnect();
+  }
 
-                            edge._private.source = src;
-                            edge._private.target = tgt;
-                        } // if is edge
-                        // create mock ids / indexes maps for element so it can be used like collections
+  if (r.styleObserver) {
+    r.styleObserver.disconnect();
+  }
 
+  if (r.resizeObserver) {
+    r.resizeObserver.disconnect();
+  }
 
-                        _private.map = new Map$1();
+  if (r.labelCalcDiv) {
+    try {
+      document.body.removeChild(r.labelCalcDiv); // eslint-disable-line no-undef
+    } catch (e) {// ie10 issue #1014
+    }
+  }
+};
+
+BRp$f.isHeadless = function () {
+  return false;
+};
+
+[BRp, BRp$a, BRp$b, BRp$c, BRp$d, BRp$e].forEach(function (props) {
+  extend(BRp$f, props);
+});
+
+var fullFpsTime = 1000 / 60; // assume 60 frames per second
+
+var defs = {
+  setupDequeueing: function setupDequeueing(opts) {
+    return function setupDequeueingImpl() {
+      var self = this;
+      var r = this.renderer;
+
+      if (self.dequeueingSetup) {
+        return;
+      } else {
+        self.dequeueingSetup = true;
+      }
+
+      var queueRedraw = util(function () {
+        r.redrawHint('eles', true);
+        r.redrawHint('drag', true);
+        r.redraw();
+      }, opts.deqRedrawThreshold);
+
+      var dequeue = function dequeue(willDraw, frameStartTime) {
+        var startTime = performanceNow();
+        var avgRenderTime = r.averageRedrawTime;
+        var renderTime = r.lastRedrawTime;
+        var deqd = [];
+        var extent = r.cy.extent();
+        var pixelRatio = r.getPixelRatio(); // if we aren't in a tick that causes a draw, then the rendered style
+        // queue won't automatically be flushed before dequeueing starts
+
+        if (!willDraw) {
+          r.flushRenderedStyleQueue();
+        }
 
-                        _private.map.set(id, {
-                            ele: _ele2,
-                            index: 0
-                        });
+        while (true) {
+          // eslint-disable-line no-constant-condition
+          var now = performanceNow();
+          var duration = now - startTime;
+          var frameDuration = now - frameStartTime;
 
-                        _private.removed = false;
+          if (renderTime < fullFpsTime) {
+            // if we're rendering faster than the ideal fps, then do dequeueing
+            // during all of the remaining frame time
+            var timeAvailable = fullFpsTime - (willDraw ? avgRenderTime : 0);
 
-                        if (addToPool) {
-                            cy.addToPool(_ele2);
-                        }
-                    } // for each element
-                    // do compound node sanity checks
+            if (frameDuration >= opts.deqFastCost * timeAvailable) {
+              break;
+            }
+          } else {
+            if (willDraw) {
+              if (duration >= opts.deqCost * renderTime || duration >= opts.deqAvgCost * avgRenderTime) {
+                break;
+              }
+            } else if (frameDuration >= opts.deqNoDrawCost * fullFpsTime) {
+              break;
+            }
+          }
 
+          var thisDeqd = opts.deq(self, pixelRatio, extent);
 
-                    for (var _i4 = 0; _i4 < nodes.length; _i4++) {
-                        // each node
-                        var node = nodes[_i4];
-                        var _data4 = node._private.data;
+          if (thisDeqd.length > 0) {
+            for (var i = 0; i < thisDeqd.length; i++) {
+              deqd.push(thisDeqd[i]);
+            }
+          } else {
+            break;
+          }
+        } // callbacks on dequeue
 
-                        if (number(_data4.parent)) {
-                            // then automake string
-                            _data4.parent = '' + _data4.parent;
-                        }
 
-                        var parentId = _data4.parent;
-                        var specifiedParent = parentId != null;
+        if (deqd.length > 0) {
+          opts.onDeqd(self, deqd);
 
-                        if (specifiedParent) {
-                            var parent = cy.getElementById(parentId);
+          if (!willDraw && opts.shouldRedraw(self, deqd, pixelRatio, extent)) {
+            queueRedraw();
+          }
+        }
+      };
 
-                            if (parent.empty()) {
-                                // non-existant parent; just remove it
-                                _data4.parent = undefined;
-                            } else {
-                                var selfAsParent = false;
-                                var ancestor = parent;
+      var priority = opts.priority || noop;
+      r.beforeRender(dequeue, priority(self));
+    };
+  }
+};
 
-                                while (!ancestor.empty()) {
-                                    if (node.same(ancestor)) {
-                                        // mark self as parent and remove from data
-                                        selfAsParent = true;
-                                        _data4.parent = undefined; // remove parent reference
-                                        // exit or we loop forever
+// Uses keys so elements may share the same cache.
 
-                                        break;
-                                    }
+var ElementTextureCacheLookup =
+/*#__PURE__*/
+function () {
+  function ElementTextureCacheLookup(getKey) {
+    var doesEleInvalidateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : falsify;
 
-                                    ancestor = ancestor.parent();
-                                }
+    _classCallCheck(this, ElementTextureCacheLookup);
 
-                                if (!selfAsParent) {
-                                    // connect with children
-                                    parent[0]._private.children.push(node);
+    this.idsByKey = new Map$1();
+    this.keyForId = new Map$1();
+    this.cachesByLvl = new Map$1();
+    this.lvls = [];
+    this.getKey = getKey;
+    this.doesEleInvalidateKey = doesEleInvalidateKey;
+  }
 
-                                    node._private.parent = parent[0]; // let the core know we have a compound graph
+  _createClass(ElementTextureCacheLookup, [{
+    key: "getIdsFor",
+    value: function getIdsFor(key) {
+      if (key == null) {
+        error("Can not get id list for null key");
+      }
 
-                                    cy_p.hasCompoundNodes = true;
-                                }
-                            } // else
+      var idsByKey = this.idsByKey;
+      var ids = this.idsByKey.get(key);
 
-                        } // if specified parent
+      if (!ids) {
+        ids = new Set$1();
+        idsByKey.set(key, ids);
+      }
 
-                    } // for each node
+      return ids;
+    }
+  }, {
+    key: "addIdForKey",
+    value: function addIdForKey(key, id) {
+      if (key != null) {
+        this.getIdsFor(key).add(id);
+      }
+    }
+  }, {
+    key: "deleteIdForKey",
+    value: function deleteIdForKey(key, id) {
+      if (key != null) {
+        this.getIdsFor(key)["delete"](id);
+      }
+    }
+  }, {
+    key: "getNumberOfIdsForKey",
+    value: function getNumberOfIdsForKey(key) {
+      if (key == null) {
+        return 0;
+      } else {
+        return this.getIdsFor(key).size;
+      }
+    }
+  }, {
+    key: "updateKeyMappingFor",
+    value: function updateKeyMappingFor(ele) {
+      var id = ele.id();
+      var prevKey = this.keyForId.get(id);
+      var currKey = this.getKey(ele);
+      this.deleteIdForKey(prevKey, id);
+      this.addIdForKey(currKey, id);
+      this.keyForId.set(id, currKey);
+    }
+  }, {
+    key: "deleteKeyMappingFor",
+    value: function deleteKeyMappingFor(ele) {
+      var id = ele.id();
+      var prevKey = this.keyForId.get(id);
+      this.deleteIdForKey(prevKey, id);
+      this.keyForId["delete"](id);
+    }
+  }, {
+    key: "keyHasChangedFor",
+    value: function keyHasChangedFor(ele) {
+      var id = ele.id();
+      var prevKey = this.keyForId.get(id);
+      var newKey = this.getKey(ele);
+      return prevKey !== newKey;
+    }
+  }, {
+    key: "isInvalid",
+    value: function isInvalid(ele) {
+      return this.keyHasChangedFor(ele) || this.doesEleInvalidateKey(ele);
+    }
+  }, {
+    key: "getCachesAt",
+    value: function getCachesAt(lvl) {
+      var cachesByLvl = this.cachesByLvl,
+          lvls = this.lvls;
+      var caches = cachesByLvl.get(lvl);
+
+      if (!caches) {
+        caches = new Map$1();
+        cachesByLvl.set(lvl, caches);
+        lvls.push(lvl);
+      }
+
+      return caches;
+    }
+  }, {
+    key: "getCache",
+    value: function getCache(key, lvl) {
+      return this.getCachesAt(lvl).get(key);
+    }
+  }, {
+    key: "get",
+    value: function get(ele, lvl) {
+      var key = this.getKey(ele);
+      var cache = this.getCache(key, lvl); // getting for an element may need to add to the id list b/c eles can share keys
 
+      if (cache != null) {
+        this.updateKeyMappingFor(ele);
+      }
 
-                    if (elements.length > 0) {
-                        var restored = elements.length === self.length ? self : new Collection(cy, elements);
+      return cache;
+    }
+  }, {
+    key: "getForCachedKey",
+    value: function getForCachedKey(ele, lvl) {
+      var key = this.keyForId.get(ele.id()); // n.b. use cached key, not newly computed key
 
-                        for (var _i5 = 0; _i5 < restored.length; _i5++) {
-                            var _ele3 = restored[_i5];
+      var cache = this.getCache(key, lvl);
+      return cache;
+    }
+  }, {
+    key: "hasCache",
+    value: function hasCache(key, lvl) {
+      return this.getCachesAt(lvl).has(key);
+    }
+  }, {
+    key: "has",
+    value: function has(ele, lvl) {
+      var key = this.getKey(ele);
+      return this.hasCache(key, lvl);
+    }
+  }, {
+    key: "setCache",
+    value: function setCache(key, lvl, cache) {
+      cache.key = key;
+      this.getCachesAt(lvl).set(key, cache);
+    }
+  }, {
+    key: "set",
+    value: function set(ele, lvl, cache) {
+      var key = this.getKey(ele);
+      this.setCache(key, lvl, cache);
+      this.updateKeyMappingFor(ele);
+    }
+  }, {
+    key: "deleteCache",
+    value: function deleteCache(key, lvl) {
+      this.getCachesAt(lvl)["delete"](key);
+    }
+  }, {
+    key: "delete",
+    value: function _delete(ele, lvl) {
+      var key = this.getKey(ele);
+      this.deleteCache(key, lvl);
+    }
+  }, {
+    key: "invalidateKey",
+    value: function invalidateKey(key) {
+      var _this = this;
 
-                            if (_ele3.isNode()) {
-                                continue;
-                            } // adding an edge invalidates the traversal caches for the parallel edges
+      this.lvls.forEach(function (lvl) {
+        return _this.deleteCache(key, lvl);
+      });
+    } // returns true if no other eles reference the invalidated cache (n.b. other eles may need the cache with the same key)
 
+  }, {
+    key: "invalidate",
+    value: function invalidate(ele) {
+      var id = ele.id();
+      var key = this.keyForId.get(id); // n.b. use stored key rather than current (potential key)
 
-                            _ele3.parallelEdges().clearTraversalCache(); // adding an edge invalidates the traversal cache for the connected nodes
+      this.deleteKeyMappingFor(ele);
+      var entireKeyInvalidated = this.doesEleInvalidateKey(ele);
 
+      if (entireKeyInvalidated) {
+        // clear mapping for current key
+        this.invalidateKey(key);
+      }
 
-                            _ele3.source().clearTraversalCache();
+      return entireKeyInvalidated || this.getNumberOfIdsForKey(key) === 0;
+    }
+  }]);
 
-                            _ele3.target().clearTraversalCache();
-                        }
+  return ElementTextureCacheLookup;
+}();
 
-                        var toUpdateStyle;
+var minTxrH = 25; // the size of the texture cache for small height eles (special case)
 
-                        if (cy_p.hasCompoundNodes) {
-                            toUpdateStyle = cy.collection().merge(restored).merge(restored.connectedNodes()).merge(restored.parent());
-                        } else {
-                            toUpdateStyle = restored;
-                        }
+var txrStepH = 50; // the min size of the regular cache, and the size it increases with each step up
 
-                        toUpdateStyle.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(notifyRenderer);
+var minLvl = -4; // when scaling smaller than that we don't need to re-render
 
-                        if (notifyRenderer) {
-                            restored.emitAndNotify('add');
-                        } else if (addToPool) {
-                            restored.emit('add');
-                        }
-                    }
+var maxLvl = 3; // when larger than this scale just render directly (caching is not helpful)
 
-                    return self; // chainability
-                };
+var maxZoom = 7.99; // beyond this zoom level, layered textures are not used
 
-                elesfn$u.removed = function () {
-                    var ele = this[0];
-                    return ele && ele._private.removed;
-                };
+var eleTxrSpacing = 8; // spacing between elements on textures to avoid blitting overlaps
 
-                elesfn$u.inside = function () {
-                    var ele = this[0];
-                    return ele && !ele._private.removed;
-                };
+var defTxrWidth = 1024; // default/minimum texture width
 
-                elesfn$u.remove = function () {
-                    var notifyRenderer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
-                    var removeFromPool = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                    var self = this;
-                    var elesToRemove = [];
-                    var elesToRemoveIds = {};
-                    var cy = self._private.cy; // add connected edges
+var maxTxrW = 1024; // the maximum width of a texture
 
-                    function addConnectedEdges(node) {
-                        var edges = node._private.edges;
+var maxTxrH = 1024; // the maximum height of a texture
 
-                        for (var i = 0; i < edges.length; i++) {
-                            add(edges[i]);
-                        }
-                    } // add descendant nodes
+var minUtility = 0.2; // if usage of texture is less than this, it is retired
 
+var maxFullness = 0.8; // fullness of texture after which queue removal is checked
 
-                    function addChildren(node) {
-                        var children = node._private.children;
+var maxFullnessChecks = 10; // dequeued after this many checks
 
-                        for (var i = 0; i < children.length; i++) {
-                            add(children[i]);
-                        }
-                    }
+var deqCost = 0.15; // % of add'l rendering cost allowed for dequeuing ele caches each frame
 
-                    function add(ele) {
-                        var alreadyAdded = elesToRemoveIds[ele.id()];
+var deqAvgCost = 0.1; // % of add'l rendering cost compared to average overall redraw time
 
-                        if (removeFromPool && ele.removed() || alreadyAdded) {
-                            return;
-                        } else {
-                            elesToRemoveIds[ele.id()] = true;
-                        }
+var deqNoDrawCost = 0.9; // % of avg frame time that can be used for dequeueing when not drawing
 
-                        if (ele.isNode()) {
-                            elesToRemove.push(ele); // nodes are removed last
+var deqFastCost = 0.9; // % of frame time to be used when >60fps
 
-                            addConnectedEdges(ele);
-                            addChildren(ele);
-                        } else {
-                            elesToRemove.unshift(ele); // edges are removed first
-                        }
-                    } // make the list of elements to remove
-                    // (may be removing more than specified due to connected edges etc)
+var deqRedrawThreshold = 100; // time to batch redraws together from dequeueing to allow more dequeueing calcs to happen in the meanwhile
 
+var maxDeqSize = 1; // number of eles to dequeue and render at higher texture in each batch
 
-                    for (var i = 0, l = self.length; i < l; i++) {
-                        var ele = self[i];
-                        add(ele);
-                    }
+var getTxrReasons = {
+  dequeue: 'dequeue',
+  downscale: 'downscale',
+  highQuality: 'highQuality'
+};
+var initDefaults = defaults({
+  getKey: null,
+  doesEleInvalidateKey: falsify,
+  drawElement: null,
+  getBoundingBox: null,
+  getRotationPoint: null,
+  getRotationOffset: null,
+  isVisible: trueify,
+  allowEdgeTxrCaching: true,
+  allowParentTxrCaching: true
+});
 
-                    function removeEdgeRef(node, edge) {
-                        var connectedEdges = node._private.edges;
-                        removeFromArray(connectedEdges, edge); // removing an edges invalidates the traversal cache for its nodes
+var ElementTextureCache = function ElementTextureCache(renderer, initOptions) {
+  var self = this;
+  self.renderer = renderer;
+  self.onDequeues = [];
+  var opts = initDefaults(initOptions);
+  extend(self, opts);
+  self.lookup = new ElementTextureCacheLookup(opts.getKey, opts.doesEleInvalidateKey);
+  self.setupDequeueing();
+};
 
-                        node.clearTraversalCache();
-                    }
+var ETCp = ElementTextureCache.prototype;
+ETCp.reasons = getTxrReasons; // the list of textures in which new subtextures for elements can be placed
 
-                    function removeParallelRef(pllEdge) {
-                        // removing an edge invalidates the traversal caches for the parallel edges
-                        pllEdge.clearTraversalCache();
-                    }
+ETCp.getTextureQueue = function (txrH) {
+  var self = this;
+  self.eleImgCaches = self.eleImgCaches || {};
+  return self.eleImgCaches[txrH] = self.eleImgCaches[txrH] || [];
+}; // the list of usused textures which can be recycled (in use in texture queue)
 
-                    var alteredParents = [];
-                    alteredParents.ids = {};
 
-                    function removeChildRef(parent, ele) {
-                        ele = ele[0];
-                        parent = parent[0];
-                        var children = parent._private.children;
-                        var pid = parent.id();
-                        removeFromArray(children, ele); // remove parent => child ref
+ETCp.getRetiredTextureQueue = function (txrH) {
+  var self = this;
+  var rtxtrQs = self.eleImgCaches.retired = self.eleImgCaches.retired || {};
+  var rtxtrQ = rtxtrQs[txrH] = rtxtrQs[txrH] || [];
+  return rtxtrQ;
+}; // queue of element draw requests at different scale levels
 
-                        ele._private.parent = null; // remove child => parent ref
 
-                        if (!alteredParents.ids[pid]) {
-                            alteredParents.ids[pid] = true;
-                            alteredParents.push(parent);
-                        }
-                    }
+ETCp.getElementQueue = function () {
+  var self = this;
+  var q = self.eleCacheQueue = self.eleCacheQueue || new Heap(function (a, b) {
+    return b.reqs - a.reqs;
+  });
+  return q;
+}; // queue of element draw requests at different scale levels (element id lookup)
 
-                    self.dirtyCompoundBoundsCache();
 
-                    if (removeFromPool) {
-                        cy.removeFromPool(elesToRemove); // remove from core pool
-                    }
+ETCp.getElementKeyToQueue = function () {
+  var self = this;
+  var k2q = self.eleKeyToCacheQueue = self.eleKeyToCacheQueue || {};
+  return k2q;
+};
 
-                    for (var _i6 = 0; _i6 < elesToRemove.length; _i6++) {
-                        var _ele4 = elesToRemove[_i6];
+ETCp.getElement = function (ele, bb, pxRatio, lvl, reason) {
+  var self = this;
+  var r = this.renderer;
+  var zoom = r.cy.zoom();
+  var lookup = this.lookup;
 
-                        if (_ele4.isEdge()) {
-                            // remove references to this edge in its connected nodes
-                            var src = _ele4.source()[0];
+  if (bb.w === 0 || bb.h === 0 || isNaN(bb.w) || isNaN(bb.h) || !ele.visible()) {
+    return null;
+  }
 
-                            var tgt = _ele4.target()[0];
+  if (!self.allowEdgeTxrCaching && ele.isEdge() || !self.allowParentTxrCaching && ele.isParent()) {
+    return null;
+  }
 
-                            removeEdgeRef(src, _ele4);
-                            removeEdgeRef(tgt, _ele4);
+  if (lvl == null) {
+    lvl = Math.ceil(log2(zoom * pxRatio));
+  }
 
-                            var pllEdges = _ele4.parallelEdges();
+  if (lvl < minLvl) {
+    lvl = minLvl;
+  } else if (zoom >= maxZoom || lvl > maxLvl) {
+    return null;
+  }
 
-                            for (var j = 0; j < pllEdges.length; j++) {
-                                var pllEdge = pllEdges[j];
-                                removeParallelRef(pllEdge);
+  var scale = Math.pow(2, lvl);
+  var eleScaledH = bb.h * scale;
+  var eleScaledW = bb.w * scale;
+  var scaledLabelShown = r.eleTextBiggerThanMin(ele, scale);
 
-                                if (pllEdge.isBundledBezier()) {
-                                    pllEdge.dirtyBoundingBoxCache();
-                                }
-                            }
-                        } else {
-                            // remove reference to parent
-                            var parent = _ele4.parent();
+  if (!this.isVisible(ele, scaledLabelShown)) {
+    return null;
+  }
 
-                            if (parent.length !== 0) {
-                                removeChildRef(parent, _ele4);
-                            }
-                        }
+  var eleCache = lookup.get(ele, lvl); // if this get was on an unused/invalidated cache, then restore the texture usage metric
 
-                        if (removeFromPool) {
-                            // mark as removed
-                            _ele4._private.removed = true;
-                        }
-                    } // check to see if we have a compound graph or not
+  if (eleCache && eleCache.invalidated) {
+    eleCache.invalidated = false;
+    eleCache.texture.invalidatedWidth -= eleCache.width;
+  }
 
+  if (eleCache) {
+    return eleCache;
+  }
 
-                    var elesStillInside = cy._private.elements;
-                    cy._private.hasCompoundNodes = false;
+  var txrH; // which texture height this ele belongs to
 
-                    for (var _i7 = 0; _i7 < elesStillInside.length; _i7++) {
-                        var _ele5 = elesStillInside[_i7];
+  if (eleScaledH <= minTxrH) {
+    txrH = minTxrH;
+  } else if (eleScaledH <= txrStepH) {
+    txrH = txrStepH;
+  } else {
+    txrH = Math.ceil(eleScaledH / txrStepH) * txrStepH;
+  }
 
-                        if (_ele5.isParent()) {
-                            cy._private.hasCompoundNodes = true;
-                            break;
-                        }
-                    }
+  if (eleScaledH > maxTxrH || eleScaledW > maxTxrW) {
+    return null; // caching large elements is not efficient
+  }
 
-                    var removedElements = new Collection(this.cy(), elesToRemove);
+  var txrQ = self.getTextureQueue(txrH); // first try the second last one in case it has space at the end
 
-                    if (removedElements.size() > 0) {
-                        // must manually notify since trigger won't do this automatically once removed
-                        if (notifyRenderer) {
-                            removedElements.emitAndNotify('remove');
-                        } else if (removeFromPool) {
-                            removedElements.emit('remove');
-                        }
-                    } // the parents who were modified by the removal need their style updated
+  var txr = txrQ[txrQ.length - 2];
 
+  var addNewTxr = function addNewTxr() {
+    return self.recycleTexture(txrH, eleScaledW) || self.addTexture(txrH, eleScaledW);
+  }; // try the last one if there is no second last one
 
-                    for (var _i8 = 0; _i8 < alteredParents.length; _i8++) {
-                        var _ele6 = alteredParents[_i8];
 
-                        if (!removeFromPool || !_ele6.removed()) {
-                            _ele6.updateStyle();
-                        }
-                    }
+  if (!txr) {
+    txr = txrQ[txrQ.length - 1];
+  } // if the last one doesn't exist, we need a first one
 
-                    return removedElements;
-                };
 
-                elesfn$u.move = function (struct) {
-                    var cy = this._private.cy;
-                    var eles = this; // just clean up refs, caches, etc. in the same way as when removing and then restoring
-                    // (our calls to remove/restore do not remove from the graph or make events)
+  if (!txr) {
+    txr = addNewTxr();
+  } // if there's no room in the current texture, we need a new one
 
-                    var notifyRenderer = false;
-                    var modifyPool = false;
 
-                    var toString = function toString(id) {
-                        return id == null ? id : '' + id;
-                    }; // id must be string
+  if (txr.width - txr.usedWidth < eleScaledW) {
+    txr = addNewTxr();
+  }
 
+  var scalableFrom = function scalableFrom(otherCache) {
+    return otherCache && otherCache.scaledLabelShown === scaledLabelShown;
+  };
 
-                    if (struct.source !== undefined || struct.target !== undefined) {
-                        var srcId = toString(struct.source);
-                        var tgtId = toString(struct.target);
-                        var srcExists = srcId != null && cy.hasElementWithId(srcId);
-                        var tgtExists = tgtId != null && cy.hasElementWithId(tgtId);
+  var deqing = reason && reason === getTxrReasons.dequeue;
+  var highQualityReq = reason && reason === getTxrReasons.highQuality;
+  var downscaleReq = reason && reason === getTxrReasons.downscale;
+  var higherCache; // the nearest cache with a higher level
 
-                        if (srcExists || tgtExists) {
-                            cy.batch(function () {
-                                // avoid duplicate style updates
-                                eles.remove(notifyRenderer, modifyPool); // clean up refs etc.
+  for (var l = lvl + 1; l <= maxLvl; l++) {
+    var c = lookup.get(ele, l);
 
-                                eles.emitAndNotify('moveout');
+    if (c) {
+      higherCache = c;
+      break;
+    }
+  }
 
-                                for (var i = 0; i < eles.length; i++) {
-                                    var ele = eles[i];
-                                    var _data5 = ele._private.data;
+  var oneUpCache = higherCache && higherCache.level === lvl + 1 ? higherCache : null;
 
-                                    if (ele.isEdge()) {
-                                        if (srcExists) {
-                                            _data5.source = srcId;
-                                        }
+  var downscale = function downscale() {
+    txr.context.drawImage(oneUpCache.texture.canvas, oneUpCache.x, 0, oneUpCache.width, oneUpCache.height, txr.usedWidth, 0, eleScaledW, eleScaledH);
+  }; // reset ele area in texture
 
-                                        if (tgtExists) {
-                                            _data5.target = tgtId;
-                                        }
-                                    }
-                                }
 
-                                eles.restore(notifyRenderer, modifyPool); // make new refs, style, etc.
-                            });
-                            eles.emitAndNotify('move');
-                        }
-                    } else if (struct.parent !== undefined) {
-                        // move node to new parent
-                        var parentId = toString(struct.parent);
-                        var parentExists = parentId === null || cy.hasElementWithId(parentId);
-
-                        if (parentExists) {
-                            var pidToAssign = parentId === null ? undefined : parentId;
-                            cy.batch(function () {
-                                // avoid duplicate style updates
-                                var updated = eles.remove(notifyRenderer, modifyPool); // clean up refs etc.
-
-                                updated.emitAndNotify('moveout');
-
-                                for (var i = 0; i < eles.length; i++) {
-                                    var ele = eles[i];
-                                    var _data6 = ele._private.data;
-
-                                    if (ele.isNode()) {
-                                        _data6.parent = pidToAssign;
-                                    }
-                                }
-
-                                updated.restore(notifyRenderer, modifyPool); // make new refs, style, etc.
-                            });
-                            eles.emitAndNotify('move');
-                        }
-                    }
+  txr.context.setTransform(1, 0, 0, 1, 0, 0);
+  txr.context.clearRect(txr.usedWidth, 0, eleScaledW, txrH);
 
-                    return this;
-                };
+  if (scalableFrom(oneUpCache)) {
+    // then we can relatively cheaply rescale the existing image w/o rerendering
+    downscale();
+  } else if (scalableFrom(higherCache)) {
+    // then use the higher cache for now and queue the next level down
+    // to cheaply scale towards the smaller level
+    if (highQualityReq) {
+      for (var _l = higherCache.level; _l > lvl; _l--) {
+        oneUpCache = self.getElement(ele, bb, pxRatio, _l, getTxrReasons.downscale);
+      }
 
-                [elesfn$c, elesfn$d, elesfn$e, elesfn$f, elesfn$g, data$1, elesfn$i, dimensions, elesfn$m, elesfn$n, elesfn$o, elesfn$p, elesfn$q, elesfn$r, elesfn$s, elesfn$t].forEach(function (props) {
-                    extend(elesfn$u, props);
-                });
+      downscale();
+    } else {
+      self.queueElement(ele, higherCache.level - 1);
+      return higherCache;
+    }
+  } else {
+    var lowerCache; // the nearest cache with a lower level
 
-                var corefn = {
-                    add: function add(opts) {
-                        var elements;
-                        var cy = this; // add the elements
+    if (!deqing && !highQualityReq && !downscaleReq) {
+      for (var _l2 = lvl - 1; _l2 >= minLvl; _l2--) {
+        var _c = lookup.get(ele, _l2);
 
-                        if (elementOrCollection(opts)) {
-                            var eles = opts;
+        if (_c) {
+          lowerCache = _c;
+          break;
+        }
+      }
+    }
 
-                            if (eles._private.cy === cy) {
-                                // same instance => just restore
-                                elements = eles.restore();
-                            } else {
-                                // otherwise, copy from json
-                                var jsons = [];
+    if (scalableFrom(lowerCache)) {
+      // then use the lower quality cache for now and queue the better one for later
+      self.queueElement(ele, lvl);
+      return lowerCache;
+    }
 
-                                for (var i = 0; i < eles.length; i++) {
-                                    var ele = eles[i];
-                                    jsons.push(ele.json());
-                                }
+    txr.context.translate(txr.usedWidth, 0);
+    txr.context.scale(scale, scale);
+    this.drawElement(txr.context, ele, bb, scaledLabelShown, false);
+    txr.context.scale(1 / scale, 1 / scale);
+    txr.context.translate(-txr.usedWidth, 0);
+  }
 
-                                elements = new Collection(cy, jsons);
-                            }
-                        } // specify an array of options
-                        else if (array(opts)) {
-                            var _jsons = opts;
-                            elements = new Collection(cy, _jsons);
-                        } // specify via opts.nodes and opts.edges
-                        else if (plainObject(opts) && (array(opts.nodes) || array(opts.edges))) {
-                            var elesByGroup = opts;
-                            var _jsons2 = [];
-                            var grs = ['nodes', 'edges'];
-
-                            for (var _i = 0, il = grs.length; _i < il; _i++) {
-                                var group = grs[_i];
-                                var elesArray = elesByGroup[group];
-
-                                if (array(elesArray)) {
-                                    for (var j = 0, jl = elesArray.length; j < jl; j++) {
-                                        var json = extend({
-                                            group: group
-                                        }, elesArray[j]);
-
-                                        _jsons2.push(json);
-                                    }
-                                }
-                            }
+  eleCache = {
+    x: txr.usedWidth,
+    texture: txr,
+    level: lvl,
+    scale: scale,
+    width: eleScaledW,
+    height: eleScaledH,
+    scaledLabelShown: scaledLabelShown
+  };
+  txr.usedWidth += Math.ceil(eleScaledW + eleTxrSpacing);
+  txr.eleCaches.push(eleCache);
+  lookup.set(ele, lvl, eleCache);
+  self.checkTextureFullness(txr);
+  return eleCache;
+};
+
+ETCp.invalidateElements = function (eles) {
+  for (var i = 0; i < eles.length; i++) {
+    this.invalidateElement(eles[i]);
+  }
+};
 
-                            elements = new Collection(cy, _jsons2);
-                        } // specify options for one element
-                        else {
-                            var _json = opts;
-                            elements = new Element(cy, _json).collection();
-                        }
+ETCp.invalidateElement = function (ele) {
+  var self = this;
+  var lookup = self.lookup;
+  var caches = [];
+  var invalid = lookup.isInvalid(ele);
 
-                        return elements;
-                    },
-                    remove: function remove(collection) {
-                        if (elementOrCollection(collection)) ; else if (string(collection)) {
-                            var selector = collection;
-                            collection = this.$(selector);
-                        }
+  if (!invalid) {
+    return; // override the invalidation request if the element key has not changed
+  }
 
-                        return collection.remove();
-                    }
-                };
+  for (var lvl = minLvl; lvl <= maxLvl; lvl++) {
+    var cache = lookup.getForCachedKey(ele, lvl);
 
-                /* global Float32Array */
-
-                /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */
-                function generateCubicBezier(mX1, mY1, mX2, mY2) {
-                    var NEWTON_ITERATIONS = 4,
-                        NEWTON_MIN_SLOPE = 0.001,
-                        SUBDIVISION_PRECISION = 0.0000001,
-                        SUBDIVISION_MAX_ITERATIONS = 10,
-                        kSplineTableSize = 11,
-                        kSampleStepSize = 1.0 / (kSplineTableSize - 1.0),
-                        float32ArraySupported = typeof Float32Array !== 'undefined';
-                    /* Must contain four arguments. */
-
-                    if (arguments.length !== 4) {
-                        return false;
-                    }
-                    /* Arguments must be numbers. */
+    if (cache) {
+      caches.push(cache);
+    }
+  }
 
+  var noOtherElesUseCache = lookup.invalidate(ele);
 
-                    for (var i = 0; i < 4; ++i) {
-                        if (typeof arguments[i] !== "number" || isNaN(arguments[i]) || !isFinite(arguments[i])) {
-                            return false;
-                        }
-                    }
-                    /* X values must be in the [0, 1] range. */
+  if (noOtherElesUseCache) {
+    for (var i = 0; i < caches.length; i++) {
+      var _cache = caches[i];
+      var txr = _cache.texture; // remove space from the texture it belongs to
 
+      txr.invalidatedWidth += _cache.width; // mark the cache as invalidated
 
-                    mX1 = Math.min(mX1, 1);
-                    mX2 = Math.min(mX2, 1);
-                    mX1 = Math.max(mX1, 0);
-                    mX2 = Math.max(mX2, 0);
-                    var mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
+      _cache.invalidated = true; // retire the texture if its utility is low
 
-                    function A(aA1, aA2) {
-                        return 1.0 - 3.0 * aA2 + 3.0 * aA1;
-                    }
+      self.checkTextureUtility(txr);
+    }
+  } // remove from queue since the old req was for the old state
 
-                    function B(aA1, aA2) {
-                        return 3.0 * aA2 - 6.0 * aA1;
-                    }
 
-                    function C(aA1) {
-                        return 3.0 * aA1;
-                    }
+  self.removeFromQueue(ele);
+};
 
-                    function calcBezier(aT, aA1, aA2) {
-                        return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
-                    }
+ETCp.checkTextureUtility = function (txr) {
+  // invalidate all entries in the cache if the cache size is small
+  if (txr.invalidatedWidth >= minUtility * txr.width) {
+    this.retireTexture(txr);
+  }
+};
+
+ETCp.checkTextureFullness = function (txr) {
+  // if texture has been mostly filled and passed over several times, remove
+  // it from the queue so we don't need to waste time looking at it to put new things
+  var self = this;
+  var txrQ = self.getTextureQueue(txr.height);
+
+  if (txr.usedWidth / txr.width > maxFullness && txr.fullnessChecks >= maxFullnessChecks) {
+    removeFromArray(txrQ, txr);
+  } else {
+    txr.fullnessChecks++;
+  }
+};
 
-                    function getSlope(aT, aA1, aA2) {
-                        return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);
-                    }
+ETCp.retireTexture = function (txr) {
+  var self = this;
+  var txrH = txr.height;
+  var txrQ = self.getTextureQueue(txrH);
+  var lookup = this.lookup; // retire the texture from the active / searchable queue:
 
-                    function newtonRaphsonIterate(aX, aGuessT) {
-                        for (var _i = 0; _i < NEWTON_ITERATIONS; ++_i) {
-                            var currentSlope = getSlope(aGuessT, mX1, mX2);
+  removeFromArray(txrQ, txr);
+  txr.retired = true; // remove the refs from the eles to the caches:
 
-                            if (currentSlope === 0.0) {
-                                return aGuessT;
-                            }
+  var eleCaches = txr.eleCaches;
 
-                            var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
-                            aGuessT -= currentX / currentSlope;
-                        }
+  for (var i = 0; i < eleCaches.length; i++) {
+    var eleCache = eleCaches[i];
+    lookup.deleteCache(eleCache.key, eleCache.level);
+  }
 
-                        return aGuessT;
-                    }
+  clearArray(eleCaches); // add the texture to a retired queue so it can be recycled in future:
+
+  var rtxtrQ = self.getRetiredTextureQueue(txrH);
+  rtxtrQ.push(txr);
+};
+
+ETCp.addTexture = function (txrH, minW) {
+  var self = this;
+  var txrQ = self.getTextureQueue(txrH);
+  var txr = {};
+  txrQ.push(txr);
+  txr.eleCaches = [];
+  txr.height = txrH;
+  txr.width = Math.max(defTxrWidth, minW);
+  txr.usedWidth = 0;
+  txr.invalidatedWidth = 0;
+  txr.fullnessChecks = 0;
+  txr.canvas = self.renderer.makeOffscreenCanvas(txr.width, txr.height);
+  txr.context = txr.canvas.getContext('2d');
+  return txr;
+};
+
+ETCp.recycleTexture = function (txrH, minW) {
+  var self = this;
+  var txrQ = self.getTextureQueue(txrH);
+  var rtxtrQ = self.getRetiredTextureQueue(txrH);
+
+  for (var i = 0; i < rtxtrQ.length; i++) {
+    var txr = rtxtrQ[i];
+
+    if (txr.width >= minW) {
+      txr.retired = false;
+      txr.usedWidth = 0;
+      txr.invalidatedWidth = 0;
+      txr.fullnessChecks = 0;
+      clearArray(txr.eleCaches);
+      txr.context.setTransform(1, 0, 0, 1, 0, 0);
+      txr.context.clearRect(0, 0, txr.width, txr.height);
+      removeFromArray(rtxtrQ, txr);
+      txrQ.push(txr);
+      return txr;
+    }
+  }
+};
+
+ETCp.queueElement = function (ele, lvl) {
+  var self = this;
+  var q = self.getElementQueue();
+  var k2q = self.getElementKeyToQueue();
+  var key = this.getKey(ele);
+  var existingReq = k2q[key];
+
+  if (existingReq) {
+    // use the max lvl b/c in between lvls are cheap to make
+    existingReq.level = Math.max(existingReq.level, lvl);
+    existingReq.eles.merge(ele);
+    existingReq.reqs++;
+    q.updateItem(existingReq);
+  } else {
+    var req = {
+      eles: ele.spawn().merge(ele),
+      level: lvl,
+      reqs: 1,
+      key: key
+    };
+    q.push(req);
+    k2q[key] = req;
+  }
+};
+
+ETCp.dequeue = function (pxRatio
+/*, extent*/
+) {
+  var self = this;
+  var q = self.getElementQueue();
+  var k2q = self.getElementKeyToQueue();
+  var dequeued = [];
+  var lookup = self.lookup;
+
+  for (var i = 0; i < maxDeqSize; i++) {
+    if (q.size() > 0) {
+      var req = q.pop();
+      var key = req.key;
+      var ele = req.eles[0]; // all eles have the same key
+
+      var cacheExists = lookup.hasCache(ele, req.level); // clear out the key to req lookup
+
+      k2q[key] = null; // dequeueing isn't necessary with an existing cache
+
+      if (cacheExists) {
+        continue;
+      }
+
+      dequeued.push(req);
+      var bb = self.getBoundingBox(ele);
+      self.getElement(ele, bb, pxRatio, req.level, getTxrReasons.dequeue);
+    } else {
+      break;
+    }
+  }
 
-                    function calcSampleValues() {
-                        for (var _i2 = 0; _i2 < kSplineTableSize; ++_i2) {
-                            mSampleValues[_i2] = calcBezier(_i2 * kSampleStepSize, mX1, mX2);
-                        }
-                    }
+  return dequeued;
+};
+
+ETCp.removeFromQueue = function (ele) {
+  var self = this;
+  var q = self.getElementQueue();
+  var k2q = self.getElementKeyToQueue();
+  var key = this.getKey(ele);
+  var req = k2q[key];
+
+  if (req != null) {
+    if (req.eles.length === 1) {
+      // remove if last ele in the req
+      // bring to front of queue
+      req.reqs = MAX_INT;
+      q.updateItem(req);
+      q.pop(); // remove from queue
+
+      k2q[key] = null; // remove from lookup map
+    } else {
+      // otherwise just remove ele from req
+      req.eles.unmerge(ele);
+    }
+  }
+};
+
+ETCp.onDequeue = function (fn) {
+  this.onDequeues.push(fn);
+};
+
+ETCp.offDequeue = function (fn) {
+  removeFromArray(this.onDequeues, fn);
+};
+
+ETCp.setupDequeueing = defs.setupDequeueing({
+  deqRedrawThreshold: deqRedrawThreshold,
+  deqCost: deqCost,
+  deqAvgCost: deqAvgCost,
+  deqNoDrawCost: deqNoDrawCost,
+  deqFastCost: deqFastCost,
+  deq: function deq(self, pxRatio, extent) {
+    return self.dequeue(pxRatio, extent);
+  },
+  onDeqd: function onDeqd(self, deqd) {
+    for (var i = 0; i < self.onDequeues.length; i++) {
+      var fn = self.onDequeues[i];
+      fn(deqd);
+    }
+  },
+  shouldRedraw: function shouldRedraw(self, deqd, pxRatio, extent) {
+    for (var i = 0; i < deqd.length; i++) {
+      var eles = deqd[i].eles;
 
-                    function binarySubdivide(aX, aA, aB) {
-                        var currentX,
-                            currentT,
-                            i = 0;
+      for (var j = 0; j < eles.length; j++) {
+        var bb = eles[j].boundingBox();
 
-                        do {
-                            currentT = aA + (aB - aA) / 2.0;
-                            currentX = calcBezier(currentT, mX1, mX2) - aX;
+        if (boundingBoxesIntersect(bb, extent)) {
+          return true;
+        }
+      }
+    }
 
-                            if (currentX > 0.0) {
-                                aB = currentT;
-                            } else {
-                                aA = currentT;
-                            }
-                        } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
+    return false;
+  },
+  priority: function priority(self) {
+    return self.renderer.beforeRenderPriorities.eleTxrDeq;
+  }
+});
 
-                        return currentT;
-                    }
+var defNumLayers = 1; // default number of layers to use
 
-                    function getTForX(aX) {
-                        var intervalStart = 0.0,
-                            currentSample = 1,
-                            lastSample = kSplineTableSize - 1;
+var minLvl$1 = -4; // when scaling smaller than that we don't need to re-render
 
-                        for (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {
-                            intervalStart += kSampleStepSize;
-                        }
+var maxLvl$1 = 2; // when larger than this scale just render directly (caching is not helpful)
 
-                        --currentSample;
-                        var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]),
-                            guessForT = intervalStart + dist * kSampleStepSize,
-                            initialSlope = getSlope(guessForT, mX1, mX2);
-
-                        if (initialSlope >= NEWTON_MIN_SLOPE) {
-                            return newtonRaphsonIterate(aX, guessForT);
-                        } else if (initialSlope === 0.0) {
-                            return guessForT;
-                        } else {
-                            return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
-                        }
-                    }
+var maxZoom$1 = 3.99; // beyond this zoom level, layered textures are not used
 
-                    var _precomputed = false;
+var deqRedrawThreshold$1 = 50; // time to batch redraws together from dequeueing to allow more dequeueing calcs to happen in the meanwhile
 
-                    function precompute() {
-                        _precomputed = true;
+var refineEleDebounceTime = 50; // time to debounce sharper ele texture updates
 
-                        if (mX1 !== mY1 || mX2 !== mY2) {
-                            calcSampleValues();
-                        }
-                    }
+var deqCost$1 = 0.15; // % of add'l rendering cost allowed for dequeuing ele caches each frame
 
-                    var f = function f(aX) {
-                        if (!_precomputed) {
-                            precompute();
-                        }
+var deqAvgCost$1 = 0.1; // % of add'l rendering cost compared to average overall redraw time
 
-                        if (mX1 === mY1 && mX2 === mY2) {
-                            return aX;
-                        }
+var deqNoDrawCost$1 = 0.9; // % of avg frame time that can be used for dequeueing when not drawing
 
-                        if (aX === 0) {
-                            return 0;
-                        }
+var deqFastCost$1 = 0.9; // % of frame time to be used when >60fps
 
-                        if (aX === 1) {
-                            return 1;
-                        }
+var maxDeqSize$1 = 1; // number of eles to dequeue and render at higher texture in each batch
 
-                        return calcBezier(getTForX(aX), mY1, mY2);
-                    };
+var invalidThreshold = 250; // time threshold for disabling b/c of invalidations
 
-                    f.getControlPoints = function () {
-                        return [{
-                            x: mX1,
-                            y: mY1
-                        }, {
-                            x: mX2,
-                            y: mY2
-                        }];
-                    };
+var maxLayerArea = 4000 * 4000; // layers can't be bigger than this
 
-                    var str = "generateBezier(" + [mX1, mY1, mX2, mY2] + ")";
+var useHighQualityEleTxrReqs = true; // whether to use high quality ele txr requests (generally faster and cheaper in the longterm)
+// var log = function(){ console.log.apply( console, arguments ); };
 
-                    f.toString = function () {
-                        return str;
-                    };
+var LayeredTextureCache = function LayeredTextureCache(renderer) {
+  var self = this;
+  var r = self.renderer = renderer;
+  var cy = r.cy;
+  self.layersByLevel = {}; // e.g. 2 => [ layer1, layer2, ..., layerN ]
+
+  self.firstGet = true;
+  self.lastInvalidationTime = performanceNow() - 2 * invalidThreshold;
+  self.skipping = false;
+  self.eleTxrDeqs = cy.collection();
+  self.scheduleElementRefinement = util(function () {
+    self.refineElementTextures(self.eleTxrDeqs);
+    self.eleTxrDeqs.unmerge(self.eleTxrDeqs);
+  }, refineEleDebounceTime);
+  r.beforeRender(function (willDraw, now) {
+    if (now - self.lastInvalidationTime <= invalidThreshold) {
+      self.skipping = true;
+    } else {
+      self.skipping = false;
+    }
+  }, r.beforeRenderPriorities.lyrTxrSkip);
+
+  var qSort = function qSort(a, b) {
+    return b.reqs - a.reqs;
+  };
+
+  self.layersQueue = new Heap(qSort);
+  self.setupDequeueing();
+};
+
+var LTCp = LayeredTextureCache.prototype;
+var layerIdPool = 0;
+var MAX_INT$1 = Math.pow(2, 53) - 1;
+
+LTCp.makeLayer = function (bb, lvl) {
+  var scale = Math.pow(2, lvl);
+  var w = Math.ceil(bb.w * scale);
+  var h = Math.ceil(bb.h * scale);
+  var canvas = this.renderer.makeOffscreenCanvas(w, h);
+  var layer = {
+    id: layerIdPool = ++layerIdPool % MAX_INT$1,
+    bb: bb,
+    level: lvl,
+    width: w,
+    height: h,
+    canvas: canvas,
+    context: canvas.getContext('2d'),
+    eles: [],
+    elesQueue: [],
+    reqs: 0
+  }; // log('make layer %s with w %s and h %s and lvl %s', layer.id, layer.width, layer.height, layer.level);
+
+  var cxt = layer.context;
+  var dx = -layer.bb.x1;
+  var dy = -layer.bb.y1; // do the transform on creation to save cycles (it's the same for all eles)
+
+  cxt.scale(scale, scale);
+  cxt.translate(dx, dy);
+  return layer;
+};
+
+LTCp.getLayers = function (eles, pxRatio, lvl) {
+  var self = this;
+  var r = self.renderer;
+  var cy = r.cy;
+  var zoom = cy.zoom();
+  var firstGet = self.firstGet;
+  self.firstGet = false; // log('--\nget layers with %s eles', eles.length);
+  //log eles.map(function(ele){ return ele.id() }) );
+
+  if (lvl == null) {
+    lvl = Math.ceil(log2(zoom * pxRatio));
+
+    if (lvl < minLvl$1) {
+      lvl = minLvl$1;
+    } else if (zoom >= maxZoom$1 || lvl > maxLvl$1) {
+      return null;
+    }
+  }
 
-                    return f;
-                }
+  self.validateLayersElesOrdering(lvl, eles);
+  var layersByLvl = self.layersByLevel;
+  var scale = Math.pow(2, lvl);
+  var layers = layersByLvl[lvl] = layersByLvl[lvl] || [];
+  var bb;
+  var lvlComplete = self.levelIsComplete(lvl, eles);
+  var tmpLayers;
+
+  var checkTempLevels = function checkTempLevels() {
+    var canUseAsTmpLvl = function canUseAsTmpLvl(l) {
+      self.validateLayersElesOrdering(l, eles);
+
+      if (self.levelIsComplete(l, eles)) {
+        tmpLayers = layersByLvl[l];
+        return true;
+      }
+    };
+
+    var checkLvls = function checkLvls(dir) {
+      if (tmpLayers) {
+        return;
+      }
+
+      for (var l = lvl + dir; minLvl$1 <= l && l <= maxLvl$1; l += dir) {
+        if (canUseAsTmpLvl(l)) {
+          break;
+        }
+      }
+    };
 
-                /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */
+    checkLvls(+1);
+    checkLvls(-1); // remove the invalid layers; they will be replaced as needed later in this function
 
-                /* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass
-   then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */
-                var generateSpringRK4 = function () {
-                    function springAccelerationForState(state) {
-                        return -state.tension * state.x - state.friction * state.v;
-                    }
+    for (var i = layers.length - 1; i >= 0; i--) {
+      var layer = layers[i];
 
-                    function springEvaluateStateWithDerivative(initialState, dt, derivative) {
-                        var state = {
-                            x: initialState.x + derivative.dx * dt,
-                            v: initialState.v + derivative.dv * dt,
-                            tension: initialState.tension,
-                            friction: initialState.friction
-                        };
-                        return {
-                            dx: state.v,
-                            dv: springAccelerationForState(state)
-                        };
-                    }
+      if (layer.invalid) {
+        removeFromArray(layers, layer);
+      }
+    }
+  };
+
+  if (!lvlComplete) {
+    // if the current level is incomplete, then use the closest, best quality layerset temporarily
+    // and later queue the current layerset so we can get the proper quality level soon
+    checkTempLevels();
+  } else {
+    // log('level complete, using existing layers\n--');
+    return layers;
+  }
 
-                    function springIntegrateState(state, dt) {
-                        var a = {
-                                dx: state.v,
-                                dv: springAccelerationForState(state)
-                            },
-                            b = springEvaluateStateWithDerivative(state, dt * 0.5, a),
-                            c = springEvaluateStateWithDerivative(state, dt * 0.5, b),
-                            d = springEvaluateStateWithDerivative(state, dt, c),
-                            dxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),
-                            dvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);
-                        state.x = state.x + dxdt * dt;
-                        state.v = state.v + dvdt * dt;
-                        return state;
-                    }
+  var getBb = function getBb() {
+    if (!bb) {
+      bb = makeBoundingBox();
 
-                    return function springRK4Factory(tension, friction, duration) {
-                        var initState = {
-                                x: -1,
-                                v: 0,
-                                tension: null,
-                                friction: null
-                            },
-                            path = [0],
-                            time_lapsed = 0,
-                            tolerance = 1 / 10000,
-                            DT = 16 / 1000,
-                            have_duration,
-                            dt,
-                            last_state;
-                        tension = parseFloat(tension) || 500;
-                        friction = parseFloat(friction) || 20;
-                        duration = duration || null;
-                        initState.tension = tension;
-                        initState.friction = friction;
-                        have_duration = duration !== null;
-                        /* Calculate the actual time it takes for this animation to complete with the provided conditions. */
-
-                        if (have_duration) {
-                            /* Run the simulation without a duration. */
-                            time_lapsed = springRK4Factory(tension, friction);
-                            /* Compute the adjusted time delta. */
-
-                            dt = time_lapsed / duration * DT;
-                        } else {
-                            dt = DT;
-                        }
+      for (var i = 0; i < eles.length; i++) {
+        updateBoundingBox(bb, eles[i].boundingBox());
+      }
+    }
 
-                        for (;;) {
-                            /* Next/step function .*/
-                            last_state = springIntegrateState(last_state || initState, dt);
-                            /* Store the position. */
+    return bb;
+  };
 
-                            path.push(1 + last_state.x);
-                            time_lapsed += 16;
-                            /* If the change threshold is reached, break. */
+  var makeLayer = function makeLayer(opts) {
+    opts = opts || {};
+    var after = opts.after;
+    getBb();
+    var area = bb.w * scale * (bb.h * scale);
 
-                            if (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {
-                                break;
-                            }
-                        }
-                        /* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the
-       computed path and returns a snapshot of the position according to a given percentComplete. */
+    if (area > maxLayerArea) {
+      return null;
+    }
 
+    var layer = self.makeLayer(bb, lvl);
 
-                        return !have_duration ? time_lapsed : function (percentComplete) {
-                            return path[percentComplete * (path.length - 1) | 0];
-                        };
-                    };
-                }();
+    if (after != null) {
+      var index = layers.indexOf(after) + 1;
+      layers.splice(index, 0, layer);
+    } else if (opts.insert === undefined || opts.insert) {
+      // no after specified => first layer made so put at start
+      layers.unshift(layer);
+    } // if( tmpLayers ){
+    //self.queueLayer( layer );
+    // }
 
-                var cubicBezier = function cubicBezier(t1, p1, t2, p2) {
-                    var bezier = generateCubicBezier(t1, p1, t2, p2);
-                    return function (start, end, percent) {
-                        return start + (end - start) * bezier(percent);
-                    };
-                };
 
-                var easings = {
-                    'linear': function linear(start, end, percent) {
-                        return start + (end - start) * percent;
-                    },
-                    // default easings
-                    'ease': cubicBezier(0.25, 0.1, 0.25, 1),
-                    'ease-in': cubicBezier(0.42, 0, 1, 1),
-                    'ease-out': cubicBezier(0, 0, 0.58, 1),
-                    'ease-in-out': cubicBezier(0.42, 0, 0.58, 1),
-                    // sine
-                    'ease-in-sine': cubicBezier(0.47, 0, 0.745, 0.715),
-                    'ease-out-sine': cubicBezier(0.39, 0.575, 0.565, 1),
-                    'ease-in-out-sine': cubicBezier(0.445, 0.05, 0.55, 0.95),
-                    // quad
-                    'ease-in-quad': cubicBezier(0.55, 0.085, 0.68, 0.53),
-                    'ease-out-quad': cubicBezier(0.25, 0.46, 0.45, 0.94),
-                    'ease-in-out-quad': cubicBezier(0.455, 0.03, 0.515, 0.955),
-                    // cubic
-                    'ease-in-cubic': cubicBezier(0.55, 0.055, 0.675, 0.19),
-                    'ease-out-cubic': cubicBezier(0.215, 0.61, 0.355, 1),
-                    'ease-in-out-cubic': cubicBezier(0.645, 0.045, 0.355, 1),
-                    // quart
-                    'ease-in-quart': cubicBezier(0.895, 0.03, 0.685, 0.22),
-                    'ease-out-quart': cubicBezier(0.165, 0.84, 0.44, 1),
-                    'ease-in-out-quart': cubicBezier(0.77, 0, 0.175, 1),
-                    // quint
-                    'ease-in-quint': cubicBezier(0.755, 0.05, 0.855, 0.06),
-                    'ease-out-quint': cubicBezier(0.23, 1, 0.32, 1),
-                    'ease-in-out-quint': cubicBezier(0.86, 0, 0.07, 1),
-                    // expo
-                    'ease-in-expo': cubicBezier(0.95, 0.05, 0.795, 0.035),
-                    'ease-out-expo': cubicBezier(0.19, 1, 0.22, 1),
-                    'ease-in-out-expo': cubicBezier(1, 0, 0, 1),
-                    // circ
-                    'ease-in-circ': cubicBezier(0.6, 0.04, 0.98, 0.335),
-                    'ease-out-circ': cubicBezier(0.075, 0.82, 0.165, 1),
-                    'ease-in-out-circ': cubicBezier(0.785, 0.135, 0.15, 0.86),
-                    // user param easings...
-                    'spring': function spring(tension, friction, duration) {
-                        if (duration === 0) {
-                            // can't get a spring w/ duration 0
-                            return easings.linear; // duration 0 => jump to end so impl doesn't matter
-                        }
+    return layer;
+  };
 
-                        var spring = generateSpringRK4(tension, friction, duration);
-                        return function (start, end, percent) {
-                            return start + (end - start) * spring(percent);
-                        };
-                    },
-                    'cubic-bezier': cubicBezier
-                };
+  if (self.skipping && !firstGet) {
+    // log('skip layers');
+    return null;
+  } // log('do layers');
 
-                function getEasedValue(type, start, end, percent, easingFn) {
-                    if (percent === 1) {
-                        return end;
-                    }
 
-                    if (start === end) {
-                        return end;
-                    }
+  var layer = null;
+  var maxElesPerLayer = eles.length / defNumLayers;
+  var allowLazyQueueing =  !firstGet;
 
-                    var val = easingFn(start, end, percent);
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    var rs = ele._private.rscratch;
+    var caches = rs.imgLayerCaches = rs.imgLayerCaches || {}; // log('look at ele', ele.id());
 
-                    if (type == null) {
-                        return val;
-                    }
+    var existingLayer = caches[lvl];
 
-                    if (type.roundValue || type.color) {
-                        val = Math.round(val);
-                    }
+    if (existingLayer) {
+      // reuse layer for later eles
+      // log('reuse layer for', ele.id());
+      layer = existingLayer;
+      continue;
+    }
 
-                    if (type.min !== undefined) {
-                        val = Math.max(val, type.min);
-                    }
+    if (!layer || layer.eles.length >= maxElesPerLayer || !boundingBoxInBoundingBox(layer.bb, ele.boundingBox())) {
+      // log('make new layer for ele %s', ele.id());
+      layer = makeLayer({
+        insert: true,
+        after: layer
+      }); // if now layer can be built then we can't use layers at this level
 
-                    if (type.max !== undefined) {
-                        val = Math.min(val, type.max);
-                    }
+      if (!layer) {
+        return null;
+      } // log('new layer with id %s', layer.id);
 
-                    return val;
-                }
+    }
 
-                function getValue(prop, spec) {
-                    if (prop.pfValue != null || prop.value != null) {
-                        if (prop.pfValue != null && (spec == null || spec.type.units !== '%')) {
-                            return prop.pfValue;
-                        } else {
-                            return prop.value;
-                        }
-                    } else {
-                        return prop;
-                    }
-                }
+    if (tmpLayers || allowLazyQueueing) {
+      // log('queue ele %s in layer %s', ele.id(), layer.id);
+      self.queueLayer(layer, ele);
+    } else {
+      // log('draw ele %s in layer %s', ele.id(), layer.id);
+      self.drawEleInLayer(layer, ele, lvl, pxRatio);
+    }
 
-                function ease(startProp, endProp, percent, easingFn, propSpec) {
-                    var type = propSpec != null ? propSpec.type : null;
+    layer.eles.push(ele);
+    caches[lvl] = layer;
+  } // log('--');
 
-                    if (percent < 0) {
-                        percent = 0;
-                    } else if (percent > 1) {
-                        percent = 1;
-                    }
 
-                    var start = getValue(startProp, propSpec);
-                    var end = getValue(endProp, propSpec);
+  if (tmpLayers) {
+    // then we only queued the current layerset and can't draw it yet
+    return tmpLayers;
+  }
 
-                    if (number(start) && number(end)) {
-                        return getEasedValue(type, start, end, percent, easingFn);
-                    } else if (array(start) && array(end)) {
-                        var easedArr = [];
+  if (allowLazyQueueing) {
+    // log('lazy queue level', lvl);
+    return null;
+  }
 
-                        for (var i = 0; i < end.length; i++) {
-                            var si = start[i];
-                            var ei = end[i];
+  return layers;
+}; // a layer may want to use an ele cache of a higher level to avoid blurriness
+// so the layer level might not equal the ele level
 
-                            if (si != null && ei != null) {
-                                var val = getEasedValue(type, si, ei, percent, easingFn);
-                                easedArr.push(val);
-                            } else {
-                                easedArr.push(ei);
-                            }
-                        }
 
-                        return easedArr;
-                    }
+LTCp.getEleLevelForLayerLevel = function (lvl, pxRatio) {
+  return lvl;
+};
 
-                    return undefined;
-                }
+LTCp.drawEleInLayer = function (layer, ele, lvl, pxRatio) {
+  var self = this;
+  var r = this.renderer;
+  var context = layer.context;
+  var bb = ele.boundingBox();
 
-                function step(self, ani, now, isCore) {
-                    var isEles = !isCore;
-                    var _p = self._private;
-                    var ani_p = ani._private;
-                    var pEasing = ani_p.easing;
-                    var startTime = ani_p.startTime;
-                    var cy = isCore ? self : self.cy();
-                    var style = cy.style();
-
-                    if (!ani_p.easingImpl) {
-                        if (pEasing == null) {
-                            // use default
-                            ani_p.easingImpl = easings['linear'];
-                        } else {
-                            // then define w/ name
-                            var easingVals;
-
-                            if (string(pEasing)) {
-                                var easingProp = style.parse('transition-timing-function', pEasing);
-                                easingVals = easingProp.value;
-                            } else {
-                                // then assume preparsed array
-                                easingVals = pEasing;
-                            }
+  if (bb.w === 0 || bb.h === 0 || !ele.visible()) {
+    return;
+  }
 
-                            var name, args;
+  lvl = self.getEleLevelForLayerLevel(lvl, pxRatio);
 
-                            if (string(easingVals)) {
-                                name = easingVals;
-                                args = [];
-                            } else {
-                                name = easingVals[1];
-                                args = easingVals.slice(2).map(function (n) {
-                                    return +n;
-                                });
-                            }
+  {
+    r.setImgSmoothing(context, false);
+  }
 
-                            if (args.length > 0) {
-                                // create with args
-                                if (name === 'spring') {
-                                    args.push(ani_p.duration); // need duration to generate spring
-                                }
+  {
+    r.drawCachedElement(context, ele, null, null, lvl, useHighQualityEleTxrReqs);
+  }
 
-                                ani_p.easingImpl = easings[name].apply(null, args);
-                            } else {
-                                // static impl by name
-                                ani_p.easingImpl = easings[name];
-                            }
-                        }
-                    }
+  {
+    r.setImgSmoothing(context, true);
+  }
+};
 
-                    var easing = ani_p.easingImpl;
-                    var percent;
+LTCp.levelIsComplete = function (lvl, eles) {
+  var self = this;
+  var layers = self.layersByLevel[lvl];
 
-                    if (ani_p.duration === 0) {
-                        percent = 1;
-                    } else {
-                        percent = (now - startTime) / ani_p.duration;
-                    }
+  if (!layers || layers.length === 0) {
+    return false;
+  }
 
-                    if (ani_p.applying) {
-                        percent = ani_p.progress;
-                    }
+  var numElesInLayers = 0;
 
-                    if (percent < 0) {
-                        percent = 0;
-                    } else if (percent > 1) {
-                        percent = 1;
-                    }
+  for (var i = 0; i < layers.length; i++) {
+    var layer = layers[i]; // if there are any eles needed to be drawn yet, the level is not complete
 
-                    if (ani_p.delay == null) {
-                        // then update
-                        var startPos = ani_p.startPosition;
-                        var endPos = ani_p.position;
+    if (layer.reqs > 0) {
+      return false;
+    } // if the layer is invalid, the level is not complete
 
-                        if (endPos && isEles && !self.locked()) {
-                            var newPos = {};
 
-                            if (valid(startPos.x, endPos.x)) {
-                                newPos.x = ease(startPos.x, endPos.x, percent, easing);
-                            }
+    if (layer.invalid) {
+      return false;
+    }
 
-                            if (valid(startPos.y, endPos.y)) {
-                                newPos.y = ease(startPos.y, endPos.y, percent, easing);
-                            }
+    numElesInLayers += layer.eles.length;
+  } // we should have exactly the number of eles passed in to be complete
 
-                            self.position(newPos);
-                        }
 
-                        var startPan = ani_p.startPan;
-                        var endPan = ani_p.pan;
-                        var pan = _p.pan;
-                        var animatingPan = endPan != null && isCore;
+  if (numElesInLayers !== eles.length) {
+    return false;
+  }
 
-                        if (animatingPan) {
-                            if (valid(startPan.x, endPan.x)) {
-                                pan.x = ease(startPan.x, endPan.x, percent, easing);
-                            }
+  return true;
+};
 
-                            if (valid(startPan.y, endPan.y)) {
-                                pan.y = ease(startPan.y, endPan.y, percent, easing);
-                            }
+LTCp.validateLayersElesOrdering = function (lvl, eles) {
+  var layers = this.layersByLevel[lvl];
 
-                            self.emit('pan');
-                        }
+  if (!layers) {
+    return;
+  } // if in a layer the eles are not in the same order, then the layer is invalid
+  // (i.e. there is an ele in between the eles in the layer)
 
-                        var startZoom = ani_p.startZoom;
-                        var endZoom = ani_p.zoom;
-                        var animatingZoom = endZoom != null && isCore;
 
-                        if (animatingZoom) {
-                            if (valid(startZoom, endZoom)) {
-                                _p.zoom = bound(_p.minZoom, ease(startZoom, endZoom, percent, easing), _p.maxZoom);
-                            }
+  for (var i = 0; i < layers.length; i++) {
+    var layer = layers[i];
+    var offset = -1; // find the offset
 
-                            self.emit('zoom');
-                        }
+    for (var j = 0; j < eles.length; j++) {
+      if (layer.eles[0] === eles[j]) {
+        offset = j;
+        break;
+      }
+    }
 
-                        if (animatingPan || animatingZoom) {
-                            self.emit('viewport');
-                        }
+    if (offset < 0) {
+      // then the layer has nonexistant elements and is invalid
+      this.invalidateLayer(layer);
+      continue;
+    } // the eles in the layer must be in the same continuous order, else the layer is invalid
 
-                        var props = ani_p.style;
 
-                        if (props && props.length > 0 && isEles) {
-                            for (var i = 0; i < props.length; i++) {
-                                var prop = props[i];
-                                var _name = prop.name;
-                                var end = prop;
-                                var start = ani_p.startStyle[_name];
-                                var propSpec = style.properties[start.name];
-                                var easedVal = ease(start, end, percent, easing, propSpec);
-                                style.overrideBypass(self, _name, easedVal);
-                            } // for props
+    var o = offset;
 
+    for (var j = 0; j < layer.eles.length; j++) {
+      if (layer.eles[j] !== eles[o + j]) {
+        // log('invalidate based on ordering', layer.id);
+        this.invalidateLayer(layer);
+        break;
+      }
+    }
+  }
+};
 
-                            self.emit('style');
-                        } // if
+LTCp.updateElementsInLayers = function (eles, update) {
+  var self = this;
+  var isEles = element(eles[0]); // collect udpated elements (cascaded from the layers) and update each
+  // layer itself along the way
 
-                    }
+  for (var i = 0; i < eles.length; i++) {
+    var req = isEles ? null : eles[i];
+    var ele = isEles ? eles[i] : eles[i].ele;
+    var rs = ele._private.rscratch;
+    var caches = rs.imgLayerCaches = rs.imgLayerCaches || {};
 
-                    ani_p.progress = percent;
-                    return percent;
-                }
+    for (var l = minLvl$1; l <= maxLvl$1; l++) {
+      var layer = caches[l];
 
-                function valid(start, end) {
-                    if (start == null || end == null) {
-                        return false;
-                    }
+      if (!layer) {
+        continue;
+      } // if update is a request from the ele cache, then it affects only
+      // the matching level
 
-                    if (number(start) && number(end)) {
-                        return true;
-                    } else if (start && end) {
-                        return true;
-                    }
 
-                    return false;
-                }
+      if (req && self.getEleLevelForLayerLevel(layer.level) !== req.level) {
+        continue;
+      }
 
-                function startAnimation(self, ani, now, isCore) {
-                    var ani_p = ani._private;
-                    ani_p.started = true;
-                    ani_p.startTime = now - ani_p.progress * ani_p.duration;
-                }
+      update(layer, ele, req);
+    }
+  }
+};
 
-                function stepAll(now, cy) {
-                    var eles = cy._private.aniEles;
-                    var doneEles = [];
+LTCp.haveLayers = function () {
+  var self = this;
+  var haveLayers = false;
 
-                    function stepOne(ele, isCore) {
-                        var _p = ele._private;
-                        var current = _p.animation.current;
-                        var queue = _p.animation.queue;
-                        var ranAnis = false; // if nothing currently animating, get something from the queue
+  for (var l = minLvl$1; l <= maxLvl$1; l++) {
+    var layers = self.layersByLevel[l];
 
-                        if (current.length === 0) {
-                            var next = queue.shift();
+    if (layers && layers.length > 0) {
+      haveLayers = true;
+      break;
+    }
+  }
 
-                            if (next) {
-                                current.push(next);
-                            }
-                        }
+  return haveLayers;
+};
 
-                        var callbacks = function callbacks(_callbacks) {
-                            for (var j = _callbacks.length - 1; j >= 0; j--) {
-                                var cb = _callbacks[j];
-                                cb();
-                            }
+LTCp.invalidateElements = function (eles) {
+  var self = this;
 
-                            _callbacks.splice(0, _callbacks.length);
-                        }; // step and remove if done
+  if (eles.length === 0) {
+    return;
+  }
 
+  self.lastInvalidationTime = performanceNow(); // log('update invalidate layer time from eles');
 
-                        for (var i = current.length - 1; i >= 0; i--) {
-                            var ani = current[i];
-                            var ani_p = ani._private;
+  if (eles.length === 0 || !self.haveLayers()) {
+    return;
+  }
 
-                            if (ani_p.stopped) {
-                                current.splice(i, 1);
-                                ani_p.hooked = false;
-                                ani_p.playing = false;
-                                ani_p.started = false;
-                                callbacks(ani_p.frames);
-                                continue;
-                            }
+  self.updateElementsInLayers(eles, function invalAssocLayers(layer, ele, req) {
+    self.invalidateLayer(layer);
+  });
+};
 
-                            if (!ani_p.playing && !ani_p.applying) {
-                                continue;
-                            } // an apply() while playing shouldn't do anything
+LTCp.invalidateLayer = function (layer) {
+  // log('update invalidate layer time');
+  this.lastInvalidationTime = performanceNow();
 
+  if (layer.invalid) {
+    return;
+  } // save cycles
 
-                            if (ani_p.playing && ani_p.applying) {
-                                ani_p.applying = false;
-                            }
 
-                            if (!ani_p.started) {
-                                startAnimation(ele, ani, now);
-                            }
+  var lvl = layer.level;
+  var eles = layer.eles;
+  var layers = this.layersByLevel[lvl]; // log('invalidate layer', layer.id );
 
-                            step(ele, ani, now, isCore);
+  removeFromArray(layers, layer); // layer.eles = [];
 
-                            if (ani_p.applying) {
-                                ani_p.applying = false;
-                            }
+  layer.elesQueue = [];
+  layer.invalid = true;
 
-                            callbacks(ani_p.frames);
+  if (layer.replacement) {
+    layer.replacement.invalid = true;
+  }
 
-                            if (ani_p.step != null) {
-                                ani_p.step(now);
-                            }
+  for (var i = 0; i < eles.length; i++) {
+    var caches = eles[i]._private.rscratch.imgLayerCaches;
 
-                            if (ani.completed()) {
-                                current.splice(i, 1);
-                                ani_p.hooked = false;
-                                ani_p.playing = false;
-                                ani_p.started = false;
-                                callbacks(ani_p.completes);
-                            }
+    if (caches) {
+      caches[lvl] = null;
+    }
+  }
+};
 
-                            ranAnis = true;
-                        }
+LTCp.refineElementTextures = function (eles) {
+  var self = this; // log('refine', eles.length);
 
-                        if (!isCore && current.length === 0 && queue.length === 0) {
-                            doneEles.push(ele);
-                        }
+  self.updateElementsInLayers(eles, function refineEachEle(layer, ele, req) {
+    var rLyr = layer.replacement;
 
-                        return ranAnis;
-                    } // stepElement
-                    // handle all eles
+    if (!rLyr) {
+      rLyr = layer.replacement = self.makeLayer(layer.bb, layer.level);
+      rLyr.replaces = layer;
+      rLyr.eles = layer.eles; // log('make replacement layer %s for %s with level %s', rLyr.id, layer.id, rLyr.level);
+    }
 
+    if (!rLyr.reqs) {
+      for (var i = 0; i < rLyr.eles.length; i++) {
+        self.queueLayer(rLyr, rLyr.eles[i]);
+      } // log('queue replacement layer refinement', rLyr.id);
 
-                    var ranEleAni = false;
+    }
+  });
+};
 
-                    for (var e = 0; e < eles.length; e++) {
-                        var ele = eles[e];
-                        var handledThisEle = stepOne(ele);
-                        ranEleAni = ranEleAni || handledThisEle;
-                    } // each element
+LTCp.enqueueElementRefinement = function (ele) {
 
+  this.eleTxrDeqs.merge(ele);
+  this.scheduleElementRefinement();
+};
 
-                    var ranCoreAni = stepOne(cy, true); // notify renderer
+LTCp.queueLayer = function (layer, ele) {
+  var self = this;
+  var q = self.layersQueue;
+  var elesQ = layer.elesQueue;
+  var hasId = elesQ.hasId = elesQ.hasId || {}; // if a layer is going to be replaced, queuing is a waste of time
 
-                    if (ranEleAni || ranCoreAni) {
-                        if (eles.length > 0) {
-                            cy.notify('draw', eles);
-                        } else {
-                            cy.notify('draw');
-                        }
-                    } // remove elements from list of currently animating if its queues are empty
-
-
-                    eles.unmerge(doneEles);
-                    cy.emit('step');
-                } // stepAll
-
-                var corefn$1 = {
-                    // pull in animation functions
-                    animate: define$3.animate(),
-                    animation: define$3.animation(),
-                    animated: define$3.animated(),
-                    clearQueue: define$3.clearQueue(),
-                    delay: define$3.delay(),
-                    delayAnimation: define$3.delayAnimation(),
-                    stop: define$3.stop(),
-                    addToAnimationPool: function addToAnimationPool(eles) {
-                        var cy = this;
-
-                        if (!cy.styleEnabled()) {
-                            return;
-                        } // save cycles when no style used
-
-
-                        cy._private.aniEles.merge(eles);
-                    },
-                    stopAnimationLoop: function stopAnimationLoop() {
-                        this._private.animationsRunning = false;
-                    },
-                    startAnimationLoop: function startAnimationLoop() {
-                        var cy = this;
-                        cy._private.animationsRunning = true;
-
-                        if (!cy.styleEnabled()) {
-                            return;
-                        } // save cycles when no style used
-                        // NB the animation loop will exec in headless environments if style enabled
-                        // and explicit cy.destroy() is necessary to stop the loop
-
-
-                        function headlessStep() {
-                            if (!cy._private.animationsRunning) {
-                                return;
-                            }
+  if (layer.replacement) {
+    return;
+  }
 
-                            requestAnimationFrame(function animationStep(now) {
-                                stepAll(now, cy);
-                                headlessStep();
-                            });
-                        }
+  if (ele) {
+    if (hasId[ele.id()]) {
+      return;
+    }
 
-                        var renderer = cy.renderer();
+    elesQ.push(ele);
+    hasId[ele.id()] = true;
+  }
 
-                        if (renderer && renderer.beforeRender) {
-                            // let the renderer schedule animations
-                            renderer.beforeRender(function rendererAnimationStep(willDraw, now) {
-                                stepAll(now, cy);
-                            }, renderer.beforeRenderPriorities.animations);
-                        } else {
-                            // manage the animation loop ourselves
-                            headlessStep(); // first call
-                        }
-                    }
-                };
+  if (layer.reqs) {
+    layer.reqs++;
+    q.updateItem(layer);
+  } else {
+    layer.reqs = 1;
+    q.push(layer);
+  }
+};
 
-                var emitterOptions$1 = {
-                    qualifierCompare: function qualifierCompare(selector1, selector2) {
-                        if (selector1 == null || selector2 == null) {
-                            return selector1 == null && selector2 == null;
-                        } else {
-                            return selector1.sameText(selector2);
-                        }
-                    },
-                    eventMatches: function eventMatches(cy, listener, eventObj) {
-                        var selector = listener.qualifier;
+LTCp.dequeue = function (pxRatio) {
+  var self = this;
+  var q = self.layersQueue;
+  var deqd = [];
+  var eleDeqs = 0;
 
-                        if (selector != null) {
-                            return cy !== eventObj.target && element(eventObj.target) && selector.matches(eventObj.target);
-                        }
+  while (eleDeqs < maxDeqSize$1) {
+    if (q.size() === 0) {
+      break;
+    }
 
-                        return true;
-                    },
-                    addEventFields: function addEventFields(cy, evt) {
-                        evt.cy = cy;
-                        evt.target = cy;
-                    },
-                    callbackContext: function callbackContext(cy, listener, eventObj) {
-                        return listener.qualifier != null ? eventObj.target : cy;
-                    }
-                };
+    var layer = q.peek(); // if a layer has been or will be replaced, then don't waste time with it
 
-                var argSelector$1 = function argSelector(arg) {
-                    if (string(arg)) {
-                        return new Selector(arg);
-                    } else {
-                        return arg;
-                    }
-                };
+    if (layer.replacement) {
+      // log('layer %s in queue skipped b/c it already has a replacement', layer.id);
+      q.pop();
+      continue;
+    } // if this is a replacement layer that has been superceded, then forget it
 
-                var elesfn$v = {
-                    createEmitter: function createEmitter() {
-                        var _p = this._private;
 
-                        if (!_p.emitter) {
-                            _p.emitter = new Emitter(emitterOptions$1, this);
-                        }
+    if (layer.replaces && layer !== layer.replaces.replacement) {
+      // log('layer is no longer the most uptodate replacement; dequeued', layer.id)
+      q.pop();
+      continue;
+    }
 
-                        return this;
-                    },
-                    emitter: function emitter() {
-                        return this._private.emitter;
-                    },
-                    on: function on(events, selector, callback) {
-                        this.emitter().on(events, argSelector$1(selector), callback);
-                        return this;
-                    },
-                    removeListener: function removeListener(events, selector, callback) {
-                        this.emitter().removeListener(events, argSelector$1(selector), callback);
-                        return this;
-                    },
-                    removeAllListeners: function removeAllListeners() {
-                        this.emitter().removeAllListeners();
-                        return this;
-                    },
-                    one: function one(events, selector, callback) {
-                        this.emitter().one(events, argSelector$1(selector), callback);
-                        return this;
-                    },
-                    once: function once(events, selector, callback) {
-                        this.emitter().one(events, argSelector$1(selector), callback);
-                        return this;
-                    },
-                    emit: function emit(events, extraParams) {
-                        this.emitter().emit(events, extraParams);
-                        return this;
-                    },
-                    emitAndNotify: function emitAndNotify(event, eles) {
-                        this.emit(event);
-                        this.notify(event, eles);
-                        return this;
-                    }
-                };
-                define$3.eventAliasesOn(elesfn$v);
-
-                var corefn$2 = {
-                    png: function png(options) {
-                        var renderer = this._private.renderer;
-                        options = options || {};
-                        return renderer.png(options);
-                    },
-                    jpg: function jpg(options) {
-                        var renderer = this._private.renderer;
-                        options = options || {};
-                        options.bg = options.bg || '#fff';
-                        return renderer.jpg(options);
-                    }
-                };
-                corefn$2.jpeg = corefn$2.jpg;
+    if (layer.invalid) {
+      // log('replacement layer %s is invalid; dequeued', layer.id);
+      q.pop();
+      continue;
+    }
 
-                var corefn$3 = {
-                    layout: function layout(options) {
-                        var cy = this;
+    var ele = layer.elesQueue.shift();
 
-                        if (options == null) {
-                            error('Layout options must be specified to make a layout');
-                            return;
-                        }
+    if (ele) {
+      // log('dequeue layer %s', layer.id);
+      self.drawEleInLayer(layer, ele, layer.level, pxRatio);
+      eleDeqs++;
+    }
 
-                        if (options.name == null) {
-                            error('A `name` must be specified to make a layout');
-                            return;
-                        }
+    if (deqd.length === 0) {
+      // we need only one entry in deqd to queue redrawing etc
+      deqd.push(true);
+    } // if the layer has all its eles done, then remove from the queue
 
-                        var name = options.name;
-                        var Layout = cy.extension('layout', name);
 
-                        if (Layout == null) {
-                            error('No such layout `' + name + '` found.  Did you forget to import it and `cytoscape.use()` it?');
-                            return;
-                        }
+    if (layer.elesQueue.length === 0) {
+      q.pop();
+      layer.reqs = 0; // log('dequeue of layer %s complete', layer.id);
+      // when a replacement layer is dequeued, it replaces the old layer in the level
 
-                        var eles;
+      if (layer.replaces) {
+        self.applyLayerReplacement(layer);
+      }
 
-                        if (string(options.eles)) {
-                            eles = cy.$(options.eles);
-                        } else {
-                            eles = options.eles != null ? options.eles : cy.$();
-                        }
+      self.requestRedraw();
+    }
+  }
 
-                        var layout = new Layout(extend({}, options, {
-                            cy: cy,
-                            eles: eles
-                        }));
-                        return layout;
-                    }
-                };
-                corefn$3.createLayout = corefn$3.makeLayout = corefn$3.layout;
+  return deqd;
+};
 
-                var corefn$4 = {
-                    notify: function notify(eventName, eventEles) {
-                        var _p = this._private;
+LTCp.applyLayerReplacement = function (layer) {
+  var self = this;
+  var layersInLevel = self.layersByLevel[layer.level];
+  var replaced = layer.replaces;
+  var index = layersInLevel.indexOf(replaced); // if the replaced layer is not in the active list for the level, then replacing
+  // refs would be a mistake (i.e. overwriting the true active layer)
 
-                        if (this.batching()) {
-                            _p.batchNotifications = _p.batchNotifications || {};
-                            var eles = _p.batchNotifications[eventName] = _p.batchNotifications[eventName] || this.collection();
+  if (index < 0 || replaced.invalid) {
+    // log('replacement layer would have no effect', layer.id);
+    return;
+  }
 
-                            if (eventEles != null) {
-                                eles.merge(eventEles);
-                            }
+  layersInLevel[index] = layer; // replace level ref
+  // replace refs in eles
 
-                            return; // notifications are disabled during batching
-                        }
+  for (var i = 0; i < layer.eles.length; i++) {
+    var _p = layer.eles[i]._private;
+    var cache = _p.imgLayerCaches = _p.imgLayerCaches || {};
 
-                        if (!_p.notificationsEnabled) {
-                            return;
-                        } // exit on disabled
+    if (cache) {
+      cache[layer.level] = layer;
+    }
+  } // log('apply replacement layer %s over %s', layer.id, replaced.id);
+
+
+  self.requestRedraw();
+};
+
+LTCp.requestRedraw = util(function () {
+  var r = this.renderer;
+  r.redrawHint('eles', true);
+  r.redrawHint('drag', true);
+  r.redraw();
+}, 100);
+LTCp.setupDequeueing = defs.setupDequeueing({
+  deqRedrawThreshold: deqRedrawThreshold$1,
+  deqCost: deqCost$1,
+  deqAvgCost: deqAvgCost$1,
+  deqNoDrawCost: deqNoDrawCost$1,
+  deqFastCost: deqFastCost$1,
+  deq: function deq(self, pxRatio) {
+    return self.dequeue(pxRatio);
+  },
+  onDeqd: noop,
+  shouldRedraw: trueify,
+  priority: function priority(self) {
+    return self.renderer.beforeRenderPriorities.lyrTxrDeq;
+  }
+});
 
+var CRp = {};
+var impl;
 
-                        var renderer = this.renderer(); // exit if destroy() called on core or renderer in between frames #1499 #1528
+function polygon(context, points) {
+  for (var i = 0; i < points.length; i++) {
+    var pt = points[i];
+    context.lineTo(pt.x, pt.y);
+  }
+}
 
-                        if (this.destroyed() || !renderer) {
-                            return;
-                        }
+function triangleBackcurve(context, points, controlPoint) {
+  var firstPt;
 
-                        renderer.notify(eventName, eventEles);
-                    },
-                    notifications: function notifications(bool) {
-                        var p = this._private;
+  for (var i = 0; i < points.length; i++) {
+    var pt = points[i];
 
-                        if (bool === undefined) {
-                            return p.notificationsEnabled;
-                        } else {
-                            p.notificationsEnabled = bool ? true : false;
-                        }
+    if (i === 0) {
+      firstPt = pt;
+    }
 
-                        return this;
-                    },
-                    noNotifications: function noNotifications(callback) {
-                        this.notifications(false);
-                        callback();
-                        this.notifications(true);
-                    },
-                    batching: function batching() {
-                        return this._private.batchCount > 0;
-                    },
-                    startBatch: function startBatch() {
-                        var _p = this._private;
-
-                        if (_p.batchCount == null) {
-                            _p.batchCount = 0;
-                        }
+    context.lineTo(pt.x, pt.y);
+  }
 
-                        if (_p.batchCount === 0) {
-                            _p.batchStyleEles = this.collection();
-                            _p.batchNotifications = {};
-                        }
+  context.quadraticCurveTo(controlPoint.x, controlPoint.y, firstPt.x, firstPt.y);
+}
 
-                        _p.batchCount++;
-                        return this;
-                    },
-                    endBatch: function endBatch() {
-                        var _p = this._private;
+function triangleTee(context, trianglePoints, teePoints) {
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                        if (_p.batchCount === 0) {
-                            return this;
-                        }
+  var triPts = trianglePoints;
 
-                        _p.batchCount--;
+  for (var i = 0; i < triPts.length; i++) {
+    var pt = triPts[i];
+    context.lineTo(pt.x, pt.y);
+  }
 
-                        if (_p.batchCount === 0) {
-                            // update style for dirty eles
-                            _p.batchStyleEles.updateStyle();
+  var teePts = teePoints;
+  var firstTeePt = teePoints[0];
+  context.moveTo(firstTeePt.x, firstTeePt.y);
 
-                            var renderer = this.renderer(); // notify the renderer of queued eles and event types
+  for (var i = 1; i < teePts.length; i++) {
+    var pt = teePts[i];
+    context.lineTo(pt.x, pt.y);
+  }
 
-                            Object.keys(_p.batchNotifications).forEach(function (eventName) {
-                                var eles = _p.batchNotifications[eventName];
+  if (context.closePath) {
+    context.closePath();
+  }
+}
 
-                                if (eles.empty()) {
-                                    renderer.notify(eventName);
-                                } else {
-                                    renderer.notify(eventName, eles);
-                                }
-                            });
-                        }
+function circleTriangle(context, trianglePoints, rx, ry, r) {
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                        return this;
-                    },
-                    batch: function batch(callback) {
-                        this.startBatch();
-                        callback();
-                        this.endBatch();
-                        return this;
-                    },
-                    // for backwards compatibility
-                    batchData: function batchData(map) {
-                        var cy = this;
-                        return this.batch(function () {
-                            var ids = Object.keys(map);
-
-                            for (var i = 0; i < ids.length; i++) {
-                                var id = ids[i];
-                                var data = map[id];
-                                var ele = cy.getElementById(id);
-                                ele.data(data);
-                            }
-                        });
-                    }
-                };
+  context.arc(rx, ry, r, 0, Math.PI * 2, false);
+  var triPts = trianglePoints;
+  var firstTrPt = triPts[0];
+  context.moveTo(firstTrPt.x, firstTrPt.y);
 
-                var rendererDefaults = defaults({
-                    hideEdgesOnViewport: false,
-                    textureOnViewport: false,
-                    motionBlur: false,
-                    motionBlurOpacity: 0.05,
-                    pixelRatio: undefined,
-                    desktopTapThreshold: 4,
-                    touchTapThreshold: 8,
-                    wheelSensitivity: 1,
-                    debug: false,
-                    showFps: false
-                });
-                var corefn$5 = {
-                    renderTo: function renderTo(context, zoom, pan, pxRatio) {
-                        var r = this._private.renderer;
-                        r.renderTo(context, zoom, pan, pxRatio);
-                        return this;
-                    },
-                    renderer: function renderer() {
-                        return this._private.renderer;
-                    },
-                    forceRender: function forceRender() {
-                        this.notify('draw');
-                        return this;
-                    },
-                    resize: function resize() {
-                        this.invalidateSize();
-                        this.emitAndNotify('resize');
-                        return this;
-                    },
-                    initRenderer: function initRenderer(options) {
-                        var cy = this;
-                        var RendererProto = cy.extension('renderer', options.name);
-
-                        if (RendererProto == null) {
-                            error("Can not initialise: No such renderer `".concat(options.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
-                            return;
-                        }
+  for (var i = 0; i < triPts.length; i++) {
+    var pt = triPts[i];
+    context.lineTo(pt.x, pt.y);
+  }
 
-                        if (options.wheelSensitivity !== undefined) {
-                            warn("You have set a custom wheel sensitivity.  This will make your app zoom unnaturally when using mainstream mice.  You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");
-                        }
+  if (context.closePath) {
+    context.closePath();
+  }
+}
+
+function circle(context, rx, ry, r) {
+  context.arc(rx, ry, r, 0, Math.PI * 2, false);
+}
+
+CRp.arrowShapeImpl = function (name) {
+  return (impl || (impl = {
+    'polygon': polygon,
+    'triangle-backcurve': triangleBackcurve,
+    'triangle-tee': triangleTee,
+    'circle-triangle': circleTriangle,
+    'triangle-cross': triangleTee,
+    'circle': circle
+  }))[name];
+};
+
+var CRp$1 = {};
+
+CRp$1.drawElement = function (context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity) {
+  var r = this;
+
+  if (ele.isNode()) {
+    r.drawNode(context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity);
+  } else {
+    r.drawEdge(context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity);
+  }
+};
 
-                        var rOpts = rendererDefaults(options);
-                        rOpts.cy = cy;
-                        cy._private.renderer = new RendererProto(rOpts);
-                        this.notify('init');
-                    },
-                    destroyRenderer: function destroyRenderer() {
-                        var cy = this;
-                        cy.notify('destroy'); // destroy the renderer
+CRp$1.drawElementOverlay = function (context, ele) {
+  var r = this;
 
-                        var domEle = cy.container();
+  if (ele.isNode()) {
+    r.drawNodeOverlay(context, ele);
+  } else {
+    r.drawEdgeOverlay(context, ele);
+  }
+};
 
-                        if (domEle) {
-                            domEle._cyreg = null;
+CRp$1.drawCachedElementPortion = function (context, ele, eleTxrCache, pxRatio, lvl, reason, getRotation, getOpacity) {
+  var r = this;
+  var bb = eleTxrCache.getBoundingBox(ele);
 
-                            while (domEle.childNodes.length > 0) {
-                                domEle.removeChild(domEle.childNodes[0]);
-                            }
-                        }
+  if (bb.w === 0 || bb.h === 0) {
+    return;
+  } // ignore zero size case
 
-                        cy._private.renderer = null; // to be extra safe, remove the ref
 
-                        cy.mutableElements().forEach(function (ele) {
-                            var _p = ele._private;
-                            _p.rscratch = {};
-                            _p.rstyle = {};
-                            _p.animation.current = [];
-                            _p.animation.queue = [];
-                        });
-                    },
-                    onRender: function onRender(fn) {
-                        return this.on('render', fn);
-                    },
-                    offRender: function offRender(fn) {
-                        return this.off('render', fn);
-                    }
-                };
-                corefn$5.invalidateDimensions = corefn$5.resize;
-
-                var corefn$6 = {
-                    // get a collection
-                    // - empty collection on no args
-                    // - collection of elements in the graph on selector arg
-                    // - guarantee a returned collection when elements or collection specified
-                    collection: function collection(eles, opts) {
-                        if (string(eles)) {
-                            return this.$(eles);
-                        } else if (elementOrCollection(eles)) {
-                            return eles.collection();
-                        } else if (array(eles)) {
-                            return new Collection(this, eles, opts);
-                        }
+  var eleCache = eleTxrCache.getElement(ele, bb, pxRatio, lvl, reason);
 
-                        return new Collection(this);
-                    },
-                    nodes: function nodes(selector) {
-                        var nodes = this.$(function (ele) {
-                            return ele.isNode();
-                        });
+  if (eleCache != null) {
+    var opacity = getOpacity(r, ele);
 
-                        if (selector) {
-                            return nodes.filter(selector);
-                        }
+    if (opacity === 0) {
+      return;
+    }
 
-                        return nodes;
-                    },
-                    edges: function edges(selector) {
-                        var edges = this.$(function (ele) {
-                            return ele.isEdge();
-                        });
+    var theta = getRotation(r, ele);
+    var x1 = bb.x1,
+        y1 = bb.y1,
+        w = bb.w,
+        h = bb.h;
+    var x, y, sx, sy, smooth;
+
+    if (theta !== 0) {
+      var rotPt = eleTxrCache.getRotationPoint(ele);
+      sx = rotPt.x;
+      sy = rotPt.y;
+      context.translate(sx, sy);
+      context.rotate(theta);
+      smooth = r.getImgSmoothing(context);
+
+      if (!smooth) {
+        r.setImgSmoothing(context, true);
+      }
+
+      var off = eleTxrCache.getRotationOffset(ele);
+      x = off.x;
+      y = off.y;
+    } else {
+      x = x1;
+      y = y1;
+    }
 
-                        if (selector) {
-                            return edges.filter(selector);
-                        }
+    var oldGlobalAlpha;
 
-                        return edges;
-                    },
-                    // search the graph like jQuery
-                    $: function $(selector) {
-                        var eles = this._private.elements;
+    if (opacity !== 1) {
+      oldGlobalAlpha = context.globalAlpha;
+      context.globalAlpha = oldGlobalAlpha * opacity;
+    }
 
-                        if (selector) {
-                            return eles.filter(selector);
-                        } else {
-                            return eles.spawnSelf();
-                        }
-                    },
-                    mutableElements: function mutableElements() {
-                        return this._private.elements;
-                    }
-                }; // aliases
+    context.drawImage(eleCache.texture.canvas, eleCache.x, 0, eleCache.width, eleCache.height, x, y, w, h);
 
-                corefn$6.elements = corefn$6.filter = corefn$6.$;
+    if (opacity !== 1) {
+      context.globalAlpha = oldGlobalAlpha;
+    }
 
-                var styfn = {}; // keys for style blocks, e.g. ttfftt
+    if (theta !== 0) {
+      context.rotate(-theta);
+      context.translate(-sx, -sy);
 
-                var TRUE = 't';
-                var FALSE = 'f'; // (potentially expensive calculation)
-// apply the style to the element based on
-// - its bypass
-// - what selectors match it
+      if (!smooth) {
+        r.setImgSmoothing(context, false);
+      }
+    }
+  } else {
+    eleTxrCache.drawElement(context, ele); // direct draw fallback
+  }
+};
+
+var getZeroRotation = function getZeroRotation() {
+  return 0;
+};
+
+var getLabelRotation = function getLabelRotation(r, ele) {
+  return r.getTextAngle(ele, null);
+};
+
+var getSourceLabelRotation = function getSourceLabelRotation(r, ele) {
+  return r.getTextAngle(ele, 'source');
+};
+
+var getTargetLabelRotation = function getTargetLabelRotation(r, ele) {
+  return r.getTextAngle(ele, 'target');
+};
+
+var getOpacity = function getOpacity(r, ele) {
+  return ele.effectiveOpacity();
+};
+
+var getTextOpacity = function getTextOpacity(e, ele) {
+  return ele.pstyle('text-opacity').pfValue * ele.effectiveOpacity();
+};
+
+CRp$1.drawCachedElement = function (context, ele, pxRatio, extent, lvl, requestHighQuality) {
+  var r = this;
+  var _r$data = r.data,
+      eleTxrCache = _r$data.eleTxrCache,
+      lblTxrCache = _r$data.lblTxrCache,
+      slbTxrCache = _r$data.slbTxrCache,
+      tlbTxrCache = _r$data.tlbTxrCache;
+  var bb = ele.boundingBox();
+  var reason = requestHighQuality === true ? eleTxrCache.reasons.highQuality : null;
+
+  if (bb.w === 0 || bb.h === 0 || !ele.visible()) {
+    return;
+  }
 
-                styfn.apply = function (eles) {
-                    var self = this;
-                    var _p = self._private;
-                    var cy = _p.cy;
-                    var updatedEles = cy.collection();
+  if (!extent || boundingBoxesIntersect(bb, extent)) {
+    var isEdge = ele.isEdge();
 
-                    for (var ie = 0; ie < eles.length; ie++) {
-                        var ele = eles[ie];
-                        var cxtMeta = self.getContextMeta(ele);
+    var badLine = ele.element()._private.rscratch.badLine;
 
-                        if (cxtMeta.empty) {
-                            continue;
-                        }
+    r.drawCachedElementPortion(context, ele, eleTxrCache, pxRatio, lvl, reason, getZeroRotation, getOpacity);
 
-                        var cxtStyle = self.getContextStyle(cxtMeta);
-                        var app = self.applyContextStyle(cxtMeta, cxtStyle, ele);
+    if (!isEdge || !badLine) {
+      r.drawCachedElementPortion(context, ele, lblTxrCache, pxRatio, lvl, reason, getLabelRotation, getTextOpacity);
+    }
 
-                        if (ele._private.appliedInitStyle) {
-                            self.updateTransitions(ele, app.diffProps);
-                        } else {
-                            ele._private.appliedInitStyle = true;
-                        }
+    if (isEdge && !badLine) {
+      r.drawCachedElementPortion(context, ele, slbTxrCache, pxRatio, lvl, reason, getSourceLabelRotation, getTextOpacity);
+      r.drawCachedElementPortion(context, ele, tlbTxrCache, pxRatio, lvl, reason, getTargetLabelRotation, getTextOpacity);
+    }
 
-                        var hintsDiff = self.updateStyleHints(ele);
+    r.drawElementOverlay(context, ele);
+  }
+};
 
-                        if (hintsDiff) {
-                            updatedEles.push(ele);
-                        }
-                    } // for elements
+CRp$1.drawElements = function (context, eles) {
+  var r = this;
 
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    r.drawElement(context, ele);
+  }
+};
 
-                    return updatedEles;
-                };
+CRp$1.drawCachedElements = function (context, eles, pxRatio, extent) {
+  var r = this;
 
-                styfn.getPropertiesDiff = function (oldCxtKey, newCxtKey) {
-                    var self = this;
-                    var cache = self._private.propDiffs = self._private.propDiffs || {};
-                    var dualCxtKey = oldCxtKey + '-' + newCxtKey;
-                    var cachedVal = cache[dualCxtKey];
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
+    r.drawCachedElement(context, ele, pxRatio, extent);
+  }
+};
 
-                    if (cachedVal) {
-                        return cachedVal;
-                    }
+CRp$1.drawCachedNodes = function (context, eles, pxRatio, extent) {
+  var r = this;
 
-                    var diffProps = [];
-                    var addedProp = {};
-
-                    for (var i = 0; i < self.length; i++) {
-                        var cxt = self[i];
-                        var oldHasCxt = oldCxtKey[i] === TRUE;
-                        var newHasCxt = newCxtKey[i] === TRUE;
-                        var cxtHasDiffed = oldHasCxt !== newHasCxt;
-                        var cxtHasMappedProps = cxt.mappedProperties.length > 0;
-
-                        if (cxtHasDiffed || newHasCxt && cxtHasMappedProps) {
-                            var props = void 0;
-
-                            if (cxtHasDiffed && cxtHasMappedProps) {
-                                props = cxt.properties; // suffices b/c mappedProperties is a subset of properties
-                            } else if (cxtHasDiffed) {
-                                props = cxt.properties; // need to check them all
-                            } else if (cxtHasMappedProps) {
-                                props = cxt.mappedProperties; // only need to check mapped
-                            }
+  for (var i = 0; i < eles.length; i++) {
+    var ele = eles[i];
 
-                            for (var j = 0; j < props.length; j++) {
-                                var prop = props[j];
-                                var name = prop.name; // if a later context overrides this property, then the fact that this context has switched/diffed doesn't matter
-                                // (semi expensive check since it makes this function O(n^2) on context length, but worth it since overall result
-                                // is cached)
+    if (!ele.isNode()) {
+      continue;
+    }
 
-                                var laterCxtOverrides = false;
+    r.drawCachedElement(context, ele, pxRatio, extent);
+  }
+};
 
-                                for (var k = i + 1; k < self.length; k++) {
-                                    var laterCxt = self[k];
-                                    var hasLaterCxt = newCxtKey[k] === TRUE;
+CRp$1.drawLayeredElements = function (context, eles, pxRatio, extent) {
+  var r = this;
+  var layers = r.data.lyrTxrCache.getLayers(eles, pxRatio);
 
-                                    if (!hasLaterCxt) {
-                                        continue;
-                                    } // can't override unless the context is active
+  if (layers) {
+    for (var i = 0; i < layers.length; i++) {
+      var layer = layers[i];
+      var bb = layer.bb;
 
+      if (bb.w === 0 || bb.h === 0) {
+        continue;
+      }
 
-                                    laterCxtOverrides = laterCxt.properties[prop.name] != null;
+      context.drawImage(layer.canvas, bb.x1, bb.y1, bb.w, bb.h);
+    }
+  } else {
+    // fall back on plain caching if no layers
+    r.drawCachedElements(context, eles, pxRatio, extent);
+  }
+};
 
-                                    if (laterCxtOverrides) {
-                                        break;
-                                    } // exit early as long as one later context overrides
+/* global Path2D */
+var CRp$2 = {};
 
-                                }
+CRp$2.drawEdge = function (context, edge, shiftToOriginWithBb) {
+  var drawLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
+  var shouldDrawOverlay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
+  var shouldDrawOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
+  var r = this;
+  var rs = edge._private.rscratch;
 
-                                if (!addedProp[name] && !laterCxtOverrides) {
-                                    addedProp[name] = true;
-                                    diffProps.push(name);
-                                }
-                            } // for props
+  if (shouldDrawOpacity && !edge.visible()) {
+    return;
+  } // if bezier ctrl pts can not be calculated, then die
 
-                        } // if
 
-                    } // for contexts
+  if (rs.badLine || rs.allpts == null || isNaN(rs.allpts[0])) {
+    // isNaN in case edge is impossible and browser bugs (e.g. safari)
+    return;
+  }
 
+  var bb;
 
-                    cache[dualCxtKey] = diffProps;
-                    return diffProps;
-                };
+  if (shiftToOriginWithBb) {
+    bb = shiftToOriginWithBb;
+    context.translate(-bb.x1, -bb.y1);
+  }
 
-                styfn.getContextMeta = function (ele) {
-                    var self = this;
-                    var cxtKey = '';
-                    var diffProps;
-                    var prevKey = ele._private.styleCxtKey || ''; // get the cxt key
+  var opacity = shouldDrawOpacity ? edge.pstyle('opacity').value : 1;
+  var lineStyle = edge.pstyle('line-style').value;
+  var edgeWidth = edge.pstyle('width').pfValue;
+  var lineCap = edge.pstyle('line-cap').value;
+
+  var drawLine = function drawLine() {
+    var strokeOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : opacity;
+    context.lineWidth = edgeWidth;
+    context.lineCap = lineCap;
+    r.eleStrokeStyle(context, edge, strokeOpacity);
+    r.drawEdgePath(edge, context, rs.allpts, lineStyle);
+    context.lineCap = 'butt'; // reset for other drawing functions
+  };
+
+  var drawOverlay = function drawOverlay() {
+    if (!shouldDrawOverlay) {
+      return;
+    }
 
-                    for (var i = 0; i < self.length; i++) {
-                        var context = self[i];
-                        var contextSelectorMatches = context.selector && context.selector.matches(ele); // NB: context.selector may be null for 'core'
+    r.drawEdgeOverlay(context, edge);
+  };
+
+  var drawArrows = function drawArrows() {
+    var arrowOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : opacity;
+    r.drawArrowheads(context, edge, arrowOpacity);
+  };
+
+  var drawText = function drawText() {
+    r.drawElementText(context, edge, null, drawLabel);
+  };
+
+  context.lineJoin = 'round';
+  var ghost = edge.pstyle('ghost').value === 'yes';
+
+  if (ghost) {
+    var gx = edge.pstyle('ghost-offset-x').pfValue;
+    var gy = edge.pstyle('ghost-offset-y').pfValue;
+    var ghostOpacity = edge.pstyle('ghost-opacity').value;
+    var effectiveGhostOpacity = opacity * ghostOpacity;
+    context.translate(gx, gy);
+    drawLine(effectiveGhostOpacity);
+    drawArrows(effectiveGhostOpacity);
+    context.translate(-gx, -gy);
+  }
 
-                        if (contextSelectorMatches) {
-                            cxtKey += TRUE;
-                        } else {
-                            cxtKey += FALSE;
-                        }
-                    } // for context
+  drawLine();
+  drawArrows();
+  drawOverlay();
+  drawText();
 
+  if (shiftToOriginWithBb) {
+    context.translate(bb.x1, bb.y1);
+  }
+};
 
-                    diffProps = self.getPropertiesDiff(prevKey, cxtKey);
-                    ele._private.styleCxtKey = cxtKey;
-                    return {
-                        key: cxtKey,
-                        diffPropNames: diffProps,
-                        empty: diffProps.length === 0
-                    };
-                }; // gets a computed ele style object based on matched contexts
+CRp$2.drawEdgeOverlay = function (context, edge) {
+  if (!edge.visible()) {
+    return;
+  }
 
+  var overlayOpacity = edge.pstyle('overlay-opacity').value;
 
-                styfn.getContextStyle = function (cxtMeta) {
-                    var cxtKey = cxtMeta.key;
-                    var self = this;
-                    var cxtStyles = this._private.contextStyles = this._private.contextStyles || {}; // if already computed style, returned cached copy
+  if (overlayOpacity === 0) {
+    return;
+  }
 
-                    if (cxtStyles[cxtKey]) {
-                        return cxtStyles[cxtKey];
-                    }
+  var r = this;
+  var usePaths = r.usePaths();
+  var rs = edge._private.rscratch;
+  var overlayPadding = edge.pstyle('overlay-padding').pfValue;
+  var overlayWidth = 2 * overlayPadding;
+  var overlayColor = edge.pstyle('overlay-color').value;
+  context.lineWidth = overlayWidth;
+
+  if (rs.edgeType === 'self' && !usePaths) {
+    context.lineCap = 'butt';
+  } else {
+    context.lineCap = 'round';
+  }
 
-                    var style = {
-                        _private: {
-                            key: cxtKey
-                        }
-                    };
+  r.colorStrokeStyle(context, overlayColor[0], overlayColor[1], overlayColor[2], overlayOpacity);
+  r.drawEdgePath(edge, context, rs.allpts, 'solid');
+};
+
+CRp$2.drawEdgePath = function (edge, context, pts, type) {
+  var rs = edge._private.rscratch;
+  var canvasCxt = context;
+  var path;
+  var pathCacheHit = false;
+  var usePaths = this.usePaths();
+  var lineDashPattern = edge.pstyle('line-dash-pattern').pfValue;
+  var lineDashOffset = edge.pstyle('line-dash-offset').pfValue;
+
+  if (usePaths) {
+    var pathCacheKey = pts.join('$');
+    var keyMatches = rs.pathCacheKey && rs.pathCacheKey === pathCacheKey;
+
+    if (keyMatches) {
+      path = context = rs.pathCache;
+      pathCacheHit = true;
+    } else {
+      path = context = new Path2D();
+      rs.pathCacheKey = pathCacheKey;
+      rs.pathCache = path;
+    }
+  }
 
-                    for (var i = 0; i < self.length; i++) {
-                        var cxt = self[i];
-                        var hasCxt = cxtKey[i] === TRUE;
+  if (canvasCxt.setLineDash) {
+    // for very outofdate browsers
+    switch (type) {
+      case 'dotted':
+        canvasCxt.setLineDash([1, 1]);
+        break;
+
+      case 'dashed':
+        canvasCxt.setLineDash(lineDashPattern);
+        canvasCxt.lineDashOffset = lineDashOffset;
+        break;
+
+      case 'solid':
+        canvasCxt.setLineDash([]);
+        break;
+    }
+  }
 
-                        if (!hasCxt) {
-                            continue;
-                        }
+  if (!pathCacheHit && !rs.badLine) {
+    if (context.beginPath) {
+      context.beginPath();
+    }
 
-                        for (var j = 0; j < cxt.properties.length; j++) {
-                            var prop = cxt.properties[j];
-                            style[prop.name] = prop;
-                        }
-                    }
+    context.moveTo(pts[0], pts[1]);
 
-                    cxtStyles[cxtKey] = style;
-                    return style;
-                };
+    switch (rs.edgeType) {
+      case 'bezier':
+      case 'self':
+      case 'compound':
+      case 'multibezier':
+        for (var i = 2; i + 3 < pts.length; i += 4) {
+          context.quadraticCurveTo(pts[i], pts[i + 1], pts[i + 2], pts[i + 3]);
+        }
 
-                styfn.applyContextStyle = function (cxtMeta, cxtStyle, ele) {
-                    var self = this;
-                    var diffProps = cxtMeta.diffPropNames;
-                    var retDiffProps = {};
-                    var types = self.types;
-
-                    for (var i = 0; i < diffProps.length; i++) {
-                        var diffPropName = diffProps[i];
-                        var cxtProp = cxtStyle[diffPropName];
-                        var eleProp = ele.pstyle(diffPropName);
-
-                        if (!cxtProp) {
-                            // no context prop means delete
-                            if (!eleProp) {
-                                continue; // no existing prop means nothing needs to be removed
-                                // nb affects initial application on mapped values like control-point-distances
-                            } else if (eleProp.bypass) {
-                                cxtProp = {
-                                    name: diffPropName,
-                                    deleteBypassed: true
-                                };
-                            } else {
-                                cxtProp = {
-                                    name: diffPropName,
-                                    "delete": true
-                                };
-                            }
-                        } // save cycles when the context prop doesn't need to be applied
+        break;
 
+      case 'straight':
+      case 'segments':
+      case 'haystack':
+        for (var _i = 2; _i + 1 < pts.length; _i += 2) {
+          context.lineTo(pts[_i], pts[_i + 1]);
+        }
 
-                        if (eleProp === cxtProp) {
-                            continue;
-                        } // save cycles when a mapped context prop doesn't need to be applied
+        break;
+    }
+  }
 
+  context = canvasCxt;
 
-                        if (cxtProp.mapped === types.fn // context prop is function mapper
-                            && eleProp != null // some props can be null even by default (e.g. a prop that overrides another one)
-                            && eleProp.mapping != null // ele prop is a concrete value from from a mapper
-                            && eleProp.mapping.value === cxtProp.value // the current prop on the ele is a flat prop value for the function mapper
-                        ) {
-                            // NB don't write to cxtProp, as it's shared among eles (stored in stylesheet)
-                            var mapping = eleProp.mapping; // can write to mapping, as it's a per-ele copy
+  if (usePaths) {
+    context.stroke(path);
+  } else {
+    context.stroke();
+  } // reset any line dashes
 
-                            var fnValue = mapping.fnValue = cxtProp.value(ele); // temporarily cache the value in case of a miss
 
-                            if (fnValue === mapping.prevFnValue) {
-                                continue;
-                            }
-                        }
+  if (context.setLineDash) {
+    // for very outofdate browsers
+    context.setLineDash([]);
+  }
+};
 
-                        var retDiffProp = retDiffProps[diffPropName] = {
-                            prev: eleProp
-                        };
-                        self.applyParsedProperty(ele, cxtProp);
-                        retDiffProp.next = ele.pstyle(diffPropName);
+CRp$2.drawArrowheads = function (context, edge, opacity) {
+  var rs = edge._private.rscratch;
+  var isHaystack = rs.edgeType === 'haystack';
 
-                        if (retDiffProp.next && retDiffProp.next.bypass) {
-                            retDiffProp.next = retDiffProp.next.bypassed;
-                        }
-                    }
+  if (!isHaystack) {
+    this.drawArrowhead(context, edge, 'source', rs.arrowStartX, rs.arrowStartY, rs.srcArrowAngle, opacity);
+  }
 
-                    return {
-                        diffProps: retDiffProps
-                    };
-                };
+  this.drawArrowhead(context, edge, 'mid-target', rs.midX, rs.midY, rs.midtgtArrowAngle, opacity);
+  this.drawArrowhead(context, edge, 'mid-source', rs.midX, rs.midY, rs.midsrcArrowAngle, opacity);
 
-                styfn.updateStyleHints = function (ele) {
-                    var _p = ele._private;
-                    var self = this;
-                    var propNames = self.propertyGroupNames;
-                    var propGrKeys = self.propertyGroupKeys;
+  if (!isHaystack) {
+    this.drawArrowhead(context, edge, 'target', rs.arrowEndX, rs.arrowEndY, rs.tgtArrowAngle, opacity);
+  }
+};
 
-                    var propHash = function propHash(ele, propNames, seedKey) {
-                        return self.getPropertiesHash(ele, propNames, seedKey);
-                    };
+CRp$2.drawArrowhead = function (context, edge, prefix, x, y, angle, opacity) {
+  if (isNaN(x) || x == null || isNaN(y) || y == null || isNaN(angle) || angle == null) {
+    return;
+  }
 
-                    var oldStyleKey = _p.styleKey;
+  var self = this;
+  var arrowShape = edge.pstyle(prefix + '-arrow-shape').value;
 
-                    if (ele.removed()) {
-                        return false;
-                    }
+  if (arrowShape === 'none') {
+    return;
+  }
 
-                    var isNode = _p.group === 'nodes'; // get the style key hashes per prop group
-                    // but lazily -- only use non-default prop values to reduce the number of hashes
-                    //
+  var arrowClearFill = edge.pstyle(prefix + '-arrow-fill').value === 'hollow' ? 'both' : 'filled';
+  var arrowFill = edge.pstyle(prefix + '-arrow-fill').value;
+  var edgeWidth = edge.pstyle('width').pfValue;
+  var edgeOpacity = edge.pstyle('opacity').value;
 
-                    var overriddenStyles = ele._private.style;
-                    propNames = Object.keys(overriddenStyles);
+  if (opacity === undefined) {
+    opacity = edgeOpacity;
+  }
 
-                    for (var i = 0; i < propGrKeys.length; i++) {
-                        var grKey = propGrKeys[i];
-                        _p.styleKeys[grKey] = [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT];
-                    }
+  var gco = context.globalCompositeOperation;
+
+  if (opacity !== 1 || arrowFill === 'hollow') {
+    // then extra clear is needed
+    context.globalCompositeOperation = 'destination-out';
+    self.colorFillStyle(context, 255, 255, 255, 1);
+    self.colorStrokeStyle(context, 255, 255, 255, 1);
+    self.drawArrowShape(edge, context, arrowClearFill, edgeWidth, arrowShape, x, y, angle);
+    context.globalCompositeOperation = gco;
+  } // otherwise, the opaque arrow clears it for free :)
+
+
+  var color = edge.pstyle(prefix + '-arrow-color').value;
+  self.colorFillStyle(context, color[0], color[1], color[2], opacity);
+  self.colorStrokeStyle(context, color[0], color[1], color[2], opacity);
+  self.drawArrowShape(edge, context, arrowFill, edgeWidth, arrowShape, x, y, angle);
+};
+
+CRp$2.drawArrowShape = function (edge, context, fill, edgeWidth, shape, x, y, angle) {
+  var r = this;
+  var usePaths = this.usePaths() && shape !== 'triangle-cross';
+  var pathCacheHit = false;
+  var path;
+  var canvasContext = context;
+  var translation = {
+    x: x,
+    y: y
+  };
+  var scale = edge.pstyle('arrow-scale').value;
+  var size = this.getArrowWidth(edgeWidth, scale);
+  var shapeImpl = r.arrowShapes[shape];
+
+  if (usePaths) {
+    var cache = r.arrowPathCache = r.arrowPathCache || [];
+    var key = hashString(shape);
+    var cachedPath = cache[key];
+
+    if (cachedPath != null) {
+      path = context = cachedPath;
+      pathCacheHit = true;
+    } else {
+      path = context = new Path2D();
+      cache[key] = path;
+    }
+  }
 
-                    var updateGrKey1 = function updateGrKey1(val, grKey) {
-                        return _p.styleKeys[grKey][0] = hashInt(val, _p.styleKeys[grKey][0]);
-                    };
+  if (!pathCacheHit) {
+    if (context.beginPath) {
+      context.beginPath();
+    }
 
-                    var updateGrKey2 = function updateGrKey2(val, grKey) {
-                        return _p.styleKeys[grKey][1] = hashIntAlt(val, _p.styleKeys[grKey][1]);
-                    };
+    if (usePaths) {
+      // store in the path cache with values easily manipulated later
+      shapeImpl.draw(context, 1, 0, {
+        x: 0,
+        y: 0
+      }, 1);
+    } else {
+      shapeImpl.draw(context, size, angle, translation, edgeWidth);
+    }
 
-                    var updateGrKey = function updateGrKey(val, grKey) {
-                        updateGrKey1(val, grKey);
-                        updateGrKey2(val, grKey);
-                    };
+    if (context.closePath) {
+      context.closePath();
+    }
+  }
 
-                    var updateGrKeyWStr = function updateGrKeyWStr(strVal, grKey) {
-                        for (var j = 0; j < strVal.length; j++) {
-                            var ch = strVal.charCodeAt(j);
-                            updateGrKey1(ch, grKey);
-                            updateGrKey2(ch, grKey);
-                        }
-                    }; // - hashing works on 32 bit ints b/c we use bitwise ops
-                    // - small numbers get cut off (e.g. 0.123 is seen as 0 by the hashing function)
-                    // - raise up small numbers so more significant digits are seen by hashing
-                    // - make small numbers larger than a normal value to avoid collisions
-                    // - works in practice and it's relatively cheap
+  context = canvasContext;
 
+  if (usePaths) {
+    // set transform to arrow position/orientation
+    context.translate(x, y);
+    context.rotate(angle);
+    context.scale(size, size);
+  }
 
-                    var N = 2000000000;
+  if (fill === 'filled' || fill === 'both') {
+    if (usePaths) {
+      context.fill(path);
+    } else {
+      context.fill();
+    }
+  }
 
-                    var cleanNum = function cleanNum(val) {
-                        return -128 < val && val < 128 && Math.floor(val) !== val ? N - (val * 1024 | 0) : val;
-                    };
+  if (fill === 'hollow' || fill === 'both') {
+    context.lineWidth = (shapeImpl.matchEdgeWidth ? edgeWidth : 1) / (usePaths ? size : 1);
+    context.lineJoin = 'miter';
 
-                    for (var _i = 0; _i < propNames.length; _i++) {
-                        var name = propNames[_i];
-                        var parsedProp = overriddenStyles[name];
+    if (usePaths) {
+      context.stroke(path);
+    } else {
+      context.stroke();
+    }
+  }
 
-                        if (parsedProp == null) {
-                            continue;
-                        }
+  if (usePaths) {
+    // reset transform by applying inverse
+    context.scale(1 / size, 1 / size);
+    context.rotate(-angle);
+    context.translate(-x, -y);
+  }
+};
 
-                        var propInfo = this.properties[name];
-                        var type = propInfo.type;
-                        var _grKey = propInfo.groupKey;
-                        var normalizedNumberVal = void 0;
+var CRp$3 = {};
 
-                        if (propInfo.hashOverride != null) {
-                            normalizedNumberVal = propInfo.hashOverride(ele, parsedProp);
-                        } else if (parsedProp.pfValue != null) {
-                            normalizedNumberVal = parsedProp.pfValue;
-                        } // might not be a number if it allows enums
+CRp$3.safeDrawImage = function (context, img, ix, iy, iw, ih, x, y, w, h) {
+  // detect problematic cases for old browsers with bad images (cheaper than try-catch)
+  if (iw <= 0 || ih <= 0 || w <= 0 || h <= 0) {
+    return;
+  }
 
+  context.drawImage(img, ix, iy, iw, ih, x, y, w, h);
+};
+
+CRp$3.drawInscribedImage = function (context, img, node, index, nodeOpacity) {
+  var r = this;
+  var pos = node.position();
+  var nodeX = pos.x;
+  var nodeY = pos.y;
+  var styleObj = node.cy().style();
+  var getIndexedStyle = styleObj.getIndexedStyle.bind(styleObj);
+  var fit = getIndexedStyle(node, 'background-fit', 'value', index);
+  var repeat = getIndexedStyle(node, 'background-repeat', 'value', index);
+  var nodeW = node.width();
+  var nodeH = node.height();
+  var paddingX2 = node.padding() * 2;
+  var nodeTW = nodeW + (getIndexedStyle(node, 'background-width-relative-to', 'value', index) === 'inner' ? 0 : paddingX2);
+  var nodeTH = nodeH + (getIndexedStyle(node, 'background-height-relative-to', 'value', index) === 'inner' ? 0 : paddingX2);
+  var rs = node._private.rscratch;
+  var clip = getIndexedStyle(node, 'background-clip', 'value', index);
+  var shouldClip = clip === 'node';
+  var imgOpacity = getIndexedStyle(node, 'background-image-opacity', 'value', index) * nodeOpacity;
+  var imgW = img.width || img.cachedW;
+  var imgH = img.height || img.cachedH; // workaround for broken browsers like ie
+
+  if (null == imgW || null == imgH) {
+    document.body.appendChild(img); // eslint-disable-line no-undef
+
+    imgW = img.cachedW = img.width || img.offsetWidth;
+    imgH = img.cachedH = img.height || img.offsetHeight;
+    document.body.removeChild(img); // eslint-disable-line no-undef
+  }
 
-                        var numberVal = propInfo.enums == null ? parsedProp.value : null;
-                        var haveNormNum = normalizedNumberVal != null;
-                        var haveUnitedNum = numberVal != null;
-                        var haveNum = haveNormNum || haveUnitedNum;
-                        var units = parsedProp.units; // numbers are cheaper to hash than strings
-                        // 1 hash op vs n hash ops (for length n string)
+  var w = imgW;
+  var h = imgH;
 
-                        if (type.number && haveNum && !type.multiple) {
-                            var v = haveNormNum ? normalizedNumberVal : numberVal;
-                            updateGrKey(cleanNum(v), _grKey);
+  if (getIndexedStyle(node, 'background-width', 'value', index) !== 'auto') {
+    if (getIndexedStyle(node, 'background-width', 'units', index) === '%') {
+      w = getIndexedStyle(node, 'background-width', 'pfValue', index) * nodeTW;
+    } else {
+      w = getIndexedStyle(node, 'background-width', 'pfValue', index);
+    }
+  }
 
-                            if (!haveNormNum && units != null) {
-                                updateGrKeyWStr(units, _grKey);
-                            }
-                        } else {
-                            updateGrKeyWStr(parsedProp.strValue, _grKey);
-                        }
-                    } // overall style key
-                    //
+  if (getIndexedStyle(node, 'background-height', 'value', index) !== 'auto') {
+    if (getIndexedStyle(node, 'background-height', 'units', index) === '%') {
+      h = getIndexedStyle(node, 'background-height', 'pfValue', index) * nodeTH;
+    } else {
+      h = getIndexedStyle(node, 'background-height', 'pfValue', index);
+    }
+  }
 
+  if (w === 0 || h === 0) {
+    return; // no point in drawing empty image (and chrome is broken in this case)
+  }
 
-                    var hash = [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT];
+  if (fit === 'contain') {
+    var scale = Math.min(nodeTW / w, nodeTH / h);
+    w *= scale;
+    h *= scale;
+  } else if (fit === 'cover') {
+    var scale = Math.max(nodeTW / w, nodeTH / h);
+    w *= scale;
+    h *= scale;
+  }
 
-                    for (var _i2 = 0; _i2 < propGrKeys.length; _i2++) {
-                        var _grKey2 = propGrKeys[_i2];
-                        var grHash = _p.styleKeys[_grKey2];
-                        hash[0] = hashInt(grHash[0], hash[0]);
-                        hash[1] = hashIntAlt(grHash[1], hash[1]);
-                    }
+  var x = nodeX - nodeTW / 2; // left
 
-                    _p.styleKey = combineHashes(hash[0], hash[1]); // label dims
-                    //
-
-                    var sk = _p.styleKeys;
-                    _p.labelDimsKey = combineHashesArray(sk.labelDimensions);
-                    var labelKeys = propHash(ele, ['label'], sk.labelDimensions);
-                    _p.labelKey = combineHashesArray(labelKeys);
-                    _p.labelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, labelKeys));
-
-                    if (!isNode) {
-                        var sourceLabelKeys = propHash(ele, ['source-label'], sk.labelDimensions);
-                        _p.sourceLabelKey = combineHashesArray(sourceLabelKeys);
-                        _p.sourceLabelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, sourceLabelKeys));
-                        var targetLabelKeys = propHash(ele, ['target-label'], sk.labelDimensions);
-                        _p.targetLabelKey = combineHashesArray(targetLabelKeys);
-                        _p.targetLabelStyleKey = combineHashesArray(hashArrays(sk.commonLabel, targetLabelKeys));
-                    } // node
-                    //
-
-
-                    if (isNode) {
-                        var _p$styleKeys = _p.styleKeys,
-                            nodeBody = _p$styleKeys.nodeBody,
-                            nodeBorder = _p$styleKeys.nodeBorder,
-                            backgroundImage = _p$styleKeys.backgroundImage,
-                            compound = _p$styleKeys.compound,
-                            pie = _p$styleKeys.pie;
-                        var nodeKeys = [nodeBody, nodeBorder, backgroundImage, compound, pie].filter(function (k) {
-                            return k != null;
-                        }).reduce(hashArrays, [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT]);
-                        _p.nodeKey = combineHashesArray(nodeKeys);
-                        _p.hasPie = pie != null && pie[0] !== DEFAULT_HASH_SEED && pie[1] !== DEFAULT_HASH_SEED_ALT;
-                    }
+  var posXUnits = getIndexedStyle(node, 'background-position-x', 'units', index);
+  var posXPfVal = getIndexedStyle(node, 'background-position-x', 'pfValue', index);
 
-                    return oldStyleKey !== _p.styleKey;
-                };
+  if (posXUnits === '%') {
+    x += (nodeTW - w) * posXPfVal;
+  } else {
+    x += posXPfVal;
+  }
 
-                styfn.clearStyleHints = function (ele) {
-                    var _p = ele._private;
-                    _p.styleCxtKey = '';
-                    _p.styleKeys = {};
-                    _p.styleKey = null;
-                    _p.labelKey = null;
-                    _p.labelStyleKey = null;
-                    _p.sourceLabelKey = null;
-                    _p.sourceLabelStyleKey = null;
-                    _p.targetLabelKey = null;
-                    _p.targetLabelStyleKey = null;
-                    _p.nodeKey = null;
-                    _p.hasPie = null;
-                }; // apply a property to the style (for internal use)
-// returns whether application was successful
-//
-// now, this function flattens the property, and here's how:
-//
-// for parsedProp:{ bypass: true, deleteBypass: true }
-// no property is generated, instead the bypass property in the
-// element's style is replaced by what's pointed to by the `bypassed`
-// field in the bypass property (i.e. restoring the property the
-// bypass was overriding)
-//
-// for parsedProp:{ mapped: truthy }
-// the generated flattenedProp:{ mapping: prop }
-//
-// for parsedProp:{ bypass: true }
-// the generated flattenedProp:{ bypassed: parsedProp }
+  var offXUnits = getIndexedStyle(node, 'background-offset-x', 'units', index);
+  var offXPfVal = getIndexedStyle(node, 'background-offset-x', 'pfValue', index);
 
+  if (offXUnits === '%') {
+    x += (nodeTW - w) * offXPfVal;
+  } else {
+    x += offXPfVal;
+  }
 
-                styfn.applyParsedProperty = function (ele, parsedProp) {
-                    var self = this;
-                    var prop = parsedProp;
-                    var style = ele._private.style;
-                    var flatProp;
-                    var types = self.types;
-                    var type = self.properties[prop.name].type;
-                    var propIsBypass = prop.bypass;
-                    var origProp = style[prop.name];
-                    var origPropIsBypass = origProp && origProp.bypass;
-                    var _p = ele._private;
-                    var flatPropMapping = 'mapping';
-
-                    var getVal = function getVal(p) {
-                        if (p == null) {
-                            return null;
-                        } else if (p.pfValue != null) {
-                            return p.pfValue;
-                        } else {
-                            return p.value;
-                        }
-                    };
+  var y = nodeY - nodeTH / 2; // top
 
-                    var checkTriggers = function checkTriggers() {
-                        var fromVal = getVal(origProp);
-                        var toVal = getVal(prop);
-                        self.checkTriggers(ele, prop.name, fromVal, toVal);
-                    }; // edge sanity checks to prevent the client from making serious mistakes
+  var posYUnits = getIndexedStyle(node, 'background-position-y', 'units', index);
+  var posYPfVal = getIndexedStyle(node, 'background-position-y', 'pfValue', index);
 
+  if (posYUnits === '%') {
+    y += (nodeTH - h) * posYPfVal;
+  } else {
+    y += posYPfVal;
+  }
 
-                    if (parsedProp.name === 'curve-style' && ele.isEdge() && ( // loops must be bundled beziers
-                        parsedProp.value !== 'bezier' && ele.isLoop() || // edges connected to compound nodes can not be haystacks
-                        parsedProp.value === 'haystack' && (ele.source().isParent() || ele.target().isParent()))) {
-                        prop = parsedProp = this.parse(parsedProp.name, 'bezier', propIsBypass);
-                    }
+  var offYUnits = getIndexedStyle(node, 'background-offset-y', 'units', index);
+  var offYPfVal = getIndexedStyle(node, 'background-offset-y', 'pfValue', index);
 
-                    if (prop["delete"]) {
-                        // delete the property and use the default value on falsey value
-                        style[prop.name] = undefined;
-                        checkTriggers();
-                        return true;
-                    }
+  if (offYUnits === '%') {
+    y += (nodeTH - h) * offYPfVal;
+  } else {
+    y += offYPfVal;
+  }
 
-                    if (prop.deleteBypassed) {
-                        // delete the property that the
-                        if (!origProp) {
-                            checkTriggers();
-                            return true; // can't delete if no prop
-                        } else if (origProp.bypass) {
-                            // delete bypassed
-                            origProp.bypassed = undefined;
-                            checkTriggers();
-                            return true;
-                        } else {
-                            return false; // we're unsuccessful deleting the bypassed
-                        }
-                    } // check if we need to delete the current bypass
-
-
-                    if (prop.deleteBypass) {
-                        // then this property is just here to indicate we need to delete
-                        if (!origProp) {
-                            checkTriggers();
-                            return true; // property is already not defined
-                        } else if (origProp.bypass) {
-                            // then replace the bypass property with the original
-                            // because the bypassed property was already applied (and therefore parsed), we can just replace it (no reapplying necessary)
-                            style[prop.name] = origProp.bypassed;
-                            checkTriggers();
-                            return true;
-                        } else {
-                            return false; // we're unsuccessful deleting the bypass
-                        }
-                    }
+  if (rs.pathCache) {
+    x -= nodeX;
+    y -= nodeY;
+    nodeX = 0;
+    nodeY = 0;
+  }
 
-                    var printMappingErr = function printMappingErr() {
-                        warn('Do not assign mappings to elements without corresponding data (i.e. ele `' + ele.id() + '` has no mapping for property `' + prop.name + '` with data field `' + prop.field + '`); try a `[' + prop.field + ']` selector to limit scope to elements with `' + prop.field + '` defined');
-                    }; // put the property in the style objects
+  var gAlpha = context.globalAlpha;
+  context.globalAlpha = imgOpacity;
 
+  if (repeat === 'no-repeat') {
+    if (shouldClip) {
+      context.save();
 
-                    switch (prop.mapped) {
-                        // flatten the property if mapped
-                        case types.mapData:
-                        {
-                            // flatten the field (e.g. data.foo.bar)
-                            var fields = prop.field.split('.');
-                            var fieldVal = _p.data;
+      if (rs.pathCache) {
+        context.clip(rs.pathCache);
+      } else {
+        r.nodeShapes[r.getNodeShape(node)].draw(context, nodeX, nodeY, nodeTW, nodeTH);
+        context.clip();
+      }
+    }
 
-                            for (var i = 0; i < fields.length && fieldVal; i++) {
-                                var field = fields[i];
-                                fieldVal = fieldVal[field];
-                            }
+    r.safeDrawImage(context, img, 0, 0, imgW, imgH, x, y, w, h);
 
-                            if (fieldVal == null) {
-                                printMappingErr();
-                                return false;
-                            }
+    if (shouldClip) {
+      context.restore();
+    }
+  } else {
+    var pattern = context.createPattern(img, repeat);
+    context.fillStyle = pattern;
+    r.nodeShapes[r.getNodeShape(node)].draw(context, nodeX, nodeY, nodeTW, nodeTH);
+    context.translate(x, y);
+    context.fill();
+    context.translate(-x, -y);
+  }
 
-                            var percent;
+  context.globalAlpha = gAlpha;
+};
 
-                            if (!number(fieldVal)) {
-                                // then don't apply and fall back on the existing style
-                                warn('Do not use continuous mappers without specifying numeric data (i.e. `' + prop.field + ': ' + fieldVal + '` for `' + ele.id() + '` is non-numeric)');
-                                return false;
-                            } else {
-                                var fieldWidth = prop.fieldMax - prop.fieldMin;
+var CRp$4 = {};
 
-                                if (fieldWidth === 0) {
-                                    // safety check -- not strictly necessary as no props of zero range should be passed here
-                                    percent = 0;
-                                } else {
-                                    percent = (fieldVal - prop.fieldMin) / fieldWidth;
-                                }
-                            } // make sure to bound percent value
+CRp$4.eleTextBiggerThanMin = function (ele, scale) {
+  if (!scale) {
+    var zoom = ele.cy().zoom();
+    var pxRatio = this.getPixelRatio();
+    var lvl = Math.ceil(log2(zoom * pxRatio)); // the effective texture level
 
+    scale = Math.pow(2, lvl);
+  }
 
-                            if (percent < 0) {
-                                percent = 0;
-                            } else if (percent > 1) {
-                                percent = 1;
-                            }
+  var computedSize = ele.pstyle('font-size').pfValue * scale;
+  var minSize = ele.pstyle('min-zoomed-font-size').pfValue;
 
-                            if (type.color) {
-                                var r1 = prop.valueMin[0];
-                                var r2 = prop.valueMax[0];
-                                var g1 = prop.valueMin[1];
-                                var g2 = prop.valueMax[1];
-                                var b1 = prop.valueMin[2];
-                                var b2 = prop.valueMax[2];
-                                var a1 = prop.valueMin[3] == null ? 1 : prop.valueMin[3];
-                                var a2 = prop.valueMax[3] == null ? 1 : prop.valueMax[3];
-                                var clr = [Math.round(r1 + (r2 - r1) * percent), Math.round(g1 + (g2 - g1) * percent), Math.round(b1 + (b2 - b1) * percent), Math.round(a1 + (a2 - a1) * percent)];
-                                flatProp = {
-                                    // colours are simple, so just create the flat property instead of expensive string parsing
-                                    bypass: prop.bypass,
-                                    // we're a bypass if the mapping property is a bypass
-                                    name: prop.name,
-                                    value: clr,
-                                    strValue: 'rgb(' + clr[0] + ', ' + clr[1] + ', ' + clr[2] + ')'
-                                };
-                            } else if (type.number) {
-                                var calcValue = prop.valueMin + (prop.valueMax - prop.valueMin) * percent;
-                                flatProp = this.parse(prop.name, calcValue, prop.bypass, flatPropMapping);
-                            } else {
-                                return false; // can only map to colours and numbers
-                            }
+  if (computedSize < minSize) {
+    return false;
+  }
 
-                            if (!flatProp) {
-                                // if we can't flatten the property, then don't apply the property and fall back on the existing style
-                                printMappingErr();
-                                return false;
-                            }
+  return true;
+};
 
-                            flatProp.mapping = prop; // keep a reference to the mapping
+CRp$4.drawElementText = function (context, ele, shiftToOriginWithBb, force, prefix) {
+  var useEleOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
+  var r = this;
 
-                            prop = flatProp; // the flattened (mapped) property is the one we want
+  if (force == null) {
+    if (useEleOpacity && !r.eleTextBiggerThanMin(ele)) {
+      return;
+    }
+  } else if (force === false) {
+    return;
+  }
 
-                            break;
-                        }
-                        // direct mapping
+  if (ele.isNode()) {
+    var label = ele.pstyle('label');
 
-                        case types.data:
-                        {
-                            // flatten the field (e.g. data.foo.bar)
-                            var _fields = prop.field.split('.');
+    if (!label || !label.value) {
+      return;
+    }
 
-                            var _fieldVal = _p.data;
+    var justification = r.getLabelJustification(ele);
+    context.textAlign = justification;
+    context.textBaseline = 'bottom';
+  } else {
+    var badLine = ele.element()._private.rscratch.badLine;
 
-                            for (var _i3 = 0; _i3 < _fields.length && _fieldVal; _i3++) {
-                                var _field = _fields[_i3];
-                                _fieldVal = _fieldVal[_field];
-                            }
+    var _label = ele.pstyle('label');
 
-                            if (_fieldVal != null) {
-                                flatProp = this.parse(prop.name, _fieldVal, prop.bypass, flatPropMapping);
-                            }
+    var srcLabel = ele.pstyle('source-label');
+    var tgtLabel = ele.pstyle('target-label');
 
-                            if (!flatProp) {
-                                // if we can't flatten the property, then don't apply and fall back on the existing style
-                                printMappingErr();
-                                return false;
-                            }
+    if (badLine || (!_label || !_label.value) && (!srcLabel || !srcLabel.value) && (!tgtLabel || !tgtLabel.value)) {
+      return;
+    }
 
-                            flatProp.mapping = prop; // keep a reference to the mapping
+    context.textAlign = 'center';
+    context.textBaseline = 'bottom';
+  }
 
-                            prop = flatProp; // the flattened (mapped) property is the one we want
+  var applyRotation = !shiftToOriginWithBb;
+  var bb;
 
-                            break;
-                        }
+  if (shiftToOriginWithBb) {
+    bb = shiftToOriginWithBb;
+    context.translate(-bb.x1, -bb.y1);
+  }
 
-                        case types.fn:
-                        {
-                            var fn = prop.value;
-                            var fnRetVal = prop.fnValue != null ? prop.fnValue : fn(ele); // check for cached value before calling function
+  if (prefix == null) {
+    r.drawText(context, ele, null, applyRotation, useEleOpacity);
 
-                            prop.prevFnValue = fnRetVal;
+    if (ele.isEdge()) {
+      r.drawText(context, ele, 'source', applyRotation, useEleOpacity);
+      r.drawText(context, ele, 'target', applyRotation, useEleOpacity);
+    }
+  } else {
+    r.drawText(context, ele, prefix, applyRotation, useEleOpacity);
+  }
 
-                            if (fnRetVal == null) {
-                                warn('Custom function mappers may not return null (i.e. `' + prop.name + '` for ele `' + ele.id() + '` is null)');
-                                return false;
-                            }
+  if (shiftToOriginWithBb) {
+    context.translate(bb.x1, bb.y1);
+  }
+};
 
-                            flatProp = this.parse(prop.name, fnRetVal, prop.bypass, flatPropMapping);
+CRp$4.getFontCache = function (context) {
+  var cache;
+  this.fontCaches = this.fontCaches || [];
 
-                            if (!flatProp) {
-                                warn('Custom function mappers may not return invalid values for the property type (i.e. `' + prop.name + '` for ele `' + ele.id() + '` is invalid)');
-                                return false;
-                            }
+  for (var i = 0; i < this.fontCaches.length; i++) {
+    cache = this.fontCaches[i];
 
-                            flatProp.mapping = copy(prop); // keep a reference to the mapping
+    if (cache.context === context) {
+      return cache;
+    }
+  }
 
-                            prop = flatProp; // the flattened (mapped) property is the one we want
+  cache = {
+    context: context
+  };
+  this.fontCaches.push(cache);
+  return cache;
+}; // set up canvas context with font
+// returns transformed text string
 
-                            break;
-                        }
 
-                        case undefined:
-                            break;
-                        // just set the property
+CRp$4.setupTextStyle = function (context, ele) {
+  var useEleOpacity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
+  // Font style
+  var labelStyle = ele.pstyle('font-style').strValue;
+  var labelSize = ele.pstyle('font-size').pfValue + 'px';
+  var labelFamily = ele.pstyle('font-family').strValue;
+  var labelWeight = ele.pstyle('font-weight').strValue;
+  var opacity = useEleOpacity ? ele.effectiveOpacity() * ele.pstyle('text-opacity').value : 1;
+  var outlineOpacity = ele.pstyle('text-outline-opacity').value * opacity;
+  var color = ele.pstyle('color').value;
+  var outlineColor = ele.pstyle('text-outline-color').value;
+  context.font = labelStyle + ' ' + labelWeight + ' ' + labelSize + ' ' + labelFamily;
+  context.lineJoin = 'round'; // so text outlines aren't jagged
+
+  this.colorFillStyle(context, color[0], color[1], color[2], opacity);
+  this.colorStrokeStyle(context, outlineColor[0], outlineColor[1], outlineColor[2], outlineOpacity);
+}; // TODO ensure re-used
+
+
+function roundRect(ctx, x, y, width, height) {
+  var radius = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 5;
+  ctx.beginPath();
+  ctx.moveTo(x + radius, y);
+  ctx.lineTo(x + width - radius, y);
+  ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
+  ctx.lineTo(x + width, y + height - radius);
+  ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
+  ctx.lineTo(x + radius, y + height);
+  ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
+  ctx.lineTo(x, y + radius);
+  ctx.quadraticCurveTo(x, y, x + radius, y);
+  ctx.closePath();
+  ctx.fill();
+}
+
+CRp$4.getTextAngle = function (ele, prefix) {
+  var theta;
+  var _p = ele._private;
+  var rscratch = _p.rscratch;
+  var pdash = prefix ? prefix + '-' : '';
+  var rotation = ele.pstyle(pdash + 'text-rotation');
+  var textAngle = getPrefixedProperty(rscratch, 'labelAngle', prefix);
+
+  if (rotation.strValue === 'autorotate') {
+    theta = ele.isEdge() ? textAngle : 0;
+  } else if (rotation.strValue === 'none') {
+    theta = 0;
+  } else {
+    theta = rotation.pfValue;
+  }
 
-                        default:
-                            return false;
-                        // not a valid mapping
-                    } // if the property is a bypass property, then link the resultant property to the original one
+  return theta;
+};
 
+CRp$4.drawText = function (context, ele, prefix) {
+  var applyRotation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
+  var useEleOpacity = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
+  var _p = ele._private;
+  var rscratch = _p.rscratch;
+  var parentOpacity = useEleOpacity ? ele.effectiveOpacity() : 1;
 
-                    if (propIsBypass) {
-                        if (origPropIsBypass) {
-                            // then this bypass overrides the existing one
-                            prop.bypassed = origProp.bypassed; // steal bypassed prop from old bypass
-                        } else {
-                            // then link the orig prop to the new bypass
-                            prop.bypassed = origProp;
-                        }
+  if (useEleOpacity && (parentOpacity === 0 || ele.pstyle('text-opacity').value === 0)) {
+    return;
+  } // use 'main' as an alias for the main label (i.e. null prefix)
 
-                        style[prop.name] = prop; // and set
-                    } else {
-                        // prop is not bypass
-                        if (origPropIsBypass) {
-                            // then keep the orig prop (since it's a bypass) and link to the new prop
-                            origProp.bypassed = prop;
-                        } else {
-                            // then just replace the old prop with the new one
-                            style[prop.name] = prop;
-                        }
-                    }
 
-                    checkTriggers();
-                    return true;
-                };
+  if (prefix === 'main') {
+    prefix = null;
+  }
 
-                styfn.cleanElements = function (eles, keepBypasses) {
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        this.clearStyleHints(ele);
-                        ele.dirtyCompoundBoundsCache();
-                        ele.dirtyBoundingBoxCache();
-
-                        if (!keepBypasses) {
-                            ele._private.style = {};
-                        } else {
-                            var style = ele._private.style;
-                            var propNames = Object.keys(style);
-
-                            for (var j = 0; j < propNames.length; j++) {
-                                var propName = propNames[j];
-                                var eleProp = style[propName];
-
-                                if (eleProp != null) {
-                                    if (eleProp.bypass) {
-                                        eleProp.bypassed = null;
-                                    } else {
-                                        style[propName] = null;
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }; // updates the visual style for all elements (useful for manual style modification after init)
+  var textX = getPrefixedProperty(rscratch, 'labelX', prefix);
+  var textY = getPrefixedProperty(rscratch, 'labelY', prefix);
+  var orgTextX, orgTextY; // used for rotation
+
+  var text = this.getLabelText(ele, prefix);
+
+  if (text != null && text !== '' && !isNaN(textX) && !isNaN(textY)) {
+    this.setupTextStyle(context, ele, useEleOpacity);
+    var pdash = prefix ? prefix + '-' : '';
+    var textW = getPrefixedProperty(rscratch, 'labelWidth', prefix);
+    var textH = getPrefixedProperty(rscratch, 'labelHeight', prefix);
+    var marginX = ele.pstyle(pdash + 'text-margin-x').pfValue;
+    var marginY = ele.pstyle(pdash + 'text-margin-y').pfValue;
+    var isEdge = ele.isEdge();
+    var halign = ele.pstyle('text-halign').value;
+    var valign = ele.pstyle('text-valign').value;
+
+    if (isEdge) {
+      halign = 'center';
+      valign = 'center';
+    }
 
+    textX += marginX;
+    textY += marginY;
+    var theta;
 
-                styfn.update = function () {
-                    var cy = this._private.cy;
-                    var eles = cy.mutableElements();
-                    eles.updateStyle();
-                }; // diffProps : { name => { prev, next } }
+    if (!applyRotation) {
+      theta = 0;
+    } else {
+      theta = this.getTextAngle(ele, prefix);
+    }
 
+    if (theta !== 0) {
+      orgTextX = textX;
+      orgTextY = textY;
+      context.translate(orgTextX, orgTextY);
+      context.rotate(theta);
+      textX = 0;
+      textY = 0;
+    }
 
-                styfn.updateTransitions = function (ele, diffProps) {
-                    var self = this;
-                    var _p = ele._private;
-                    var props = ele.pstyle('transition-property').value;
-                    var duration = ele.pstyle('transition-duration').pfValue;
-                    var delay = ele.pstyle('transition-delay').pfValue;
+    switch (valign) {
+      case 'top':
+        break;
 
-                    if (props.length > 0 && duration > 0) {
-                        var style = {}; // build up the style to animate towards
+      case 'center':
+        textY += textH / 2;
+        break;
 
-                        var anyPrev = false;
+      case 'bottom':
+        textY += textH;
+        break;
+    }
 
-                        for (var i = 0; i < props.length; i++) {
-                            var prop = props[i];
-                            var styProp = ele.pstyle(prop);
-                            var diffProp = diffProps[prop];
+    var backgroundOpacity = ele.pstyle('text-background-opacity').value;
+    var borderOpacity = ele.pstyle('text-border-opacity').value;
+    var textBorderWidth = ele.pstyle('text-border-width').pfValue;
+    var backgroundPadding = ele.pstyle('text-background-padding').pfValue;
+
+    if (backgroundOpacity > 0 || textBorderWidth > 0 && borderOpacity > 0) {
+      var bgX = textX - backgroundPadding;
+
+      switch (halign) {
+        case 'left':
+          bgX -= textW;
+          break;
+
+        case 'center':
+          bgX -= textW / 2;
+          break;
+      }
+
+      var bgY = textY - textH - backgroundPadding;
+      var bgW = textW + 2 * backgroundPadding;
+      var bgH = textH + 2 * backgroundPadding;
+
+      if (backgroundOpacity > 0) {
+        var textFill = context.fillStyle;
+        var textBackgroundColor = ele.pstyle('text-background-color').value;
+        context.fillStyle = 'rgba(' + textBackgroundColor[0] + ',' + textBackgroundColor[1] + ',' + textBackgroundColor[2] + ',' + backgroundOpacity * parentOpacity + ')';
+        var styleShape = ele.pstyle('text-background-shape').strValue;
+
+        if (styleShape.indexOf('round') === 0) {
+          roundRect(context, bgX, bgY, bgW, bgH, 2);
+        } else {
+          context.fillRect(bgX, bgY, bgW, bgH);
+        }
 
-                            if (!diffProp) {
-                                continue;
-                            }
+        context.fillStyle = textFill;
+      }
+
+      if (textBorderWidth > 0 && borderOpacity > 0) {
+        var textStroke = context.strokeStyle;
+        var textLineWidth = context.lineWidth;
+        var textBorderColor = ele.pstyle('text-border-color').value;
+        var textBorderStyle = ele.pstyle('text-border-style').value;
+        context.strokeStyle = 'rgba(' + textBorderColor[0] + ',' + textBorderColor[1] + ',' + textBorderColor[2] + ',' + borderOpacity * parentOpacity + ')';
+        context.lineWidth = textBorderWidth;
+
+        if (context.setLineDash) {
+          // for very outofdate browsers
+          switch (textBorderStyle) {
+            case 'dotted':
+              context.setLineDash([1, 1]);
+              break;
+
+            case 'dashed':
+              context.setLineDash([4, 2]);
+              break;
+
+            case 'double':
+              context.lineWidth = textBorderWidth / 4; // 50% reserved for white between the two borders
+
+              context.setLineDash([]);
+              break;
+
+            case 'solid':
+              context.setLineDash([]);
+              break;
+          }
+        }
 
-                            var prevProp = diffProp.prev;
-                            var fromProp = prevProp;
-                            var toProp = diffProp.next != null ? diffProp.next : styProp;
-                            var diff = false;
-                            var initVal = void 0;
-                            var initDt = 0.000001; // delta time % value for initVal (allows animating out of init zero opacity)
+        context.strokeRect(bgX, bgY, bgW, bgH);
 
-                            if (!fromProp) {
-                                continue;
-                            } // consider px values
+        if (textBorderStyle === 'double') {
+          var whiteWidth = textBorderWidth / 2;
+          context.strokeRect(bgX + whiteWidth, bgY + whiteWidth, bgW - whiteWidth * 2, bgH - whiteWidth * 2);
+        }
 
+        if (context.setLineDash) {
+          // for very outofdate browsers
+          context.setLineDash([]);
+        }
 
-                            if (number(fromProp.pfValue) && number(toProp.pfValue)) {
-                                diff = toProp.pfValue - fromProp.pfValue; // nonzero is truthy
+        context.lineWidth = textLineWidth;
+        context.strokeStyle = textStroke;
+      }
+    }
 
-                                initVal = fromProp.pfValue + initDt * diff; // consider numerical values
-                            } else if (number(fromProp.value) && number(toProp.value)) {
-                                diff = toProp.value - fromProp.value; // nonzero is truthy
+    var lineWidth = 2 * ele.pstyle('text-outline-width').pfValue; // *2 b/c the stroke is drawn centred on the middle
 
-                                initVal = fromProp.value + initDt * diff; // consider colour values
-                            } else if (array(fromProp.value) && array(toProp.value)) {
-                                diff = fromProp.value[0] !== toProp.value[0] || fromProp.value[1] !== toProp.value[1] || fromProp.value[2] !== toProp.value[2];
-                                initVal = fromProp.strValue;
-                            } // the previous value is good for an animation only if it's different
+    if (lineWidth > 0) {
+      context.lineWidth = lineWidth;
+    }
 
+    if (ele.pstyle('text-wrap').value === 'wrap') {
+      var lines = getPrefixedProperty(rscratch, 'labelWrapCachedLines', prefix);
+      var lineHeight = getPrefixedProperty(rscratch, 'labelLineHeight', prefix);
+      var halfTextW = textW / 2;
+      var justification = this.getLabelJustification(ele);
+
+      if (justification === 'auto') ; else if (halign === 'left') {
+        // auto justification : right
+        if (justification === 'left') {
+          textX += -textW;
+        } else if (justification === 'center') {
+          textX += -halfTextW;
+        } // else same as auto
+
+      } else if (halign === 'center') {
+        // auto justfication : center
+        if (justification === 'left') {
+          textX += -halfTextW;
+        } else if (justification === 'right') {
+          textX += halfTextW;
+        } // else same as auto
+
+      } else if (halign === 'right') {
+        // auto justification : left
+        if (justification === 'center') {
+          textX += halfTextW;
+        } else if (justification === 'right') {
+          textX += textW;
+        } // else same as auto
+
+      }
+
+      switch (valign) {
+        case 'top':
+          textY -= (lines.length - 1) * lineHeight;
+          break;
+
+        case 'center':
+        case 'bottom':
+          textY -= (lines.length - 1) * lineHeight;
+          break;
+      }
+
+      for (var l = 0; l < lines.length; l++) {
+        if (lineWidth > 0) {
+          context.strokeText(lines[l], textX, textY);
+        }
 
-                            if (diff) {
-                                style[prop] = toProp.strValue; // to val
+        context.fillText(lines[l], textX, textY);
+        textY += lineHeight;
+      }
+    } else {
+      if (lineWidth > 0) {
+        context.strokeText(text, textX, textY);
+      }
 
-                                this.applyBypass(ele, prop, initVal); // from val
+      context.fillText(text, textX, textY);
+    }
 
-                                anyPrev = true;
-                            }
-                        } // end if props allow ani
-                        // can't transition if there's nothing previous to transition from
+    if (theta !== 0) {
+      context.rotate(-theta);
+      context.translate(-orgTextX, -orgTextY);
+    }
+  }
+};
+
+/* global Path2D */
+var CRp$5 = {};
+
+CRp$5.drawNode = function (context, node, shiftToOriginWithBb) {
+  var drawLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
+  var shouldDrawOverlay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
+  var shouldDrawOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
+  var r = this;
+  var nodeWidth, nodeHeight;
+  var _p = node._private;
+  var rs = _p.rscratch;
+  var pos = node.position();
+
+  if (!number(pos.x) || !number(pos.y)) {
+    return; // can't draw node with undefined position
+  }
 
+  if (shouldDrawOpacity && !node.visible()) {
+    return;
+  }
 
-                        if (!anyPrev) {
-                            return;
-                        }
+  var eleOpacity = shouldDrawOpacity ? node.effectiveOpacity() : 1;
+  var usePaths = r.usePaths();
+  var path;
+  var pathCacheHit = false;
+  var padding = node.padding();
+  nodeWidth = node.width() + 2 * padding;
+  nodeHeight = node.height() + 2 * padding; //
+  // setup shift
+
+  var bb;
+
+  if (shiftToOriginWithBb) {
+    bb = shiftToOriginWithBb;
+    context.translate(-bb.x1, -bb.y1);
+  } //
+  // load bg image
+
+
+  var bgImgProp = node.pstyle('background-image');
+  var urls = bgImgProp.value;
+  var urlDefined = new Array(urls.length);
+  var image = new Array(urls.length);
+  var numImages = 0;
+
+  for (var i = 0; i < urls.length; i++) {
+    var url = urls[i];
+    var defd = urlDefined[i] = url != null && url !== 'none';
+
+    if (defd) {
+      var bgImgCrossOrigin = node.cy().style().getIndexedStyle(node, 'background-image-crossorigin', 'value', i);
+      numImages++; // get image, and if not loaded then ask to redraw when later loaded
+
+      image[i] = r.getCachedImage(url, bgImgCrossOrigin, function () {
+        _p.backgroundTimestamp = Date.now();
+        node.emitAndNotify('background');
+      });
+    }
+  } //
+  // setup styles
+
+
+  var darkness = node.pstyle('background-blacken').value;
+  var borderWidth = node.pstyle('border-width').pfValue;
+  var bgOpacity = node.pstyle('background-opacity').value * eleOpacity;
+  var borderColor = node.pstyle('border-color').value;
+  var borderStyle = node.pstyle('border-style').value;
+  var borderOpacity = node.pstyle('border-opacity').value * eleOpacity;
+  context.lineJoin = 'miter'; // so borders are square with the node shape
+
+  var setupShapeColor = function setupShapeColor() {
+    var bgOpy = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : bgOpacity;
+    r.eleFillStyle(context, node, bgOpy);
+  };
+
+  var setupBorderColor = function setupBorderColor() {
+    var bdrOpy = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : borderOpacity;
+    r.colorStrokeStyle(context, borderColor[0], borderColor[1], borderColor[2], bdrOpy);
+  }; //
+  // setup shape
+
+
+  var styleShape = node.pstyle('shape').strValue;
+  var shapePts = node.pstyle('shape-polygon-points').pfValue;
+
+  if (usePaths) {
+    context.translate(pos.x, pos.y);
+    var pathCache = r.nodePathCache = r.nodePathCache || [];
+    var key = hashStrings(styleShape === 'polygon' ? styleShape + ',' + shapePts.join(',') : styleShape, '' + nodeHeight, '' + nodeWidth);
+    var cachedPath = pathCache[key];
+
+    if (cachedPath != null) {
+      path = cachedPath;
+      pathCacheHit = true;
+      rs.pathCache = path;
+    } else {
+      path = new Path2D();
+      pathCache[key] = rs.pathCache = path;
+    }
+  }
 
-                        _p.transitioning = true;
-                        new Promise$1(function (resolve) {
-                            if (delay > 0) {
-                                ele.delayAnimation(delay).play().promise().then(resolve);
-                            } else {
-                                resolve();
-                            }
-                        }).then(function () {
-                            return ele.animation({
-                                style: style,
-                                duration: duration,
-                                easing: ele.pstyle('transition-timing-function').value,
-                                queue: false
-                            }).play().promise();
-                        }).then(function () {
-                            // if( !isBypass ){
-                            self.removeBypasses(ele, props);
-                            ele.emitAndNotify('style'); // }
-
-                            _p.transitioning = false;
-                        });
-                    } else if (_p.transitioning) {
-                        this.removeBypasses(ele, props);
-                        ele.emitAndNotify('style');
-                        _p.transitioning = false;
-                    }
-                };
+  var drawShape = function drawShape() {
+    if (!pathCacheHit) {
+      var npos = pos;
 
-                styfn.checkTrigger = function (ele, name, fromValue, toValue, getTrigger, onTrigger) {
-                    var prop = this.properties[name];
-                    var triggerCheck = getTrigger(prop);
+      if (usePaths) {
+        npos = {
+          x: 0,
+          y: 0
+        };
+      }
 
-                    if (triggerCheck != null && triggerCheck(fromValue, toValue)) {
-                        onTrigger(prop);
-                    }
-                };
+      r.nodeShapes[r.getNodeShape(node)].draw(path || context, npos.x, npos.y, nodeWidth, nodeHeight);
+    }
 
-                styfn.checkZOrderTrigger = function (ele, name, fromValue, toValue) {
-                    var _this = this;
+    if (usePaths) {
+      context.fill(path);
+    } else {
+      context.fill();
+    }
+  };
+
+  var drawImages = function drawImages() {
+    var nodeOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : eleOpacity;
+    var prevBging = _p.backgrounding;
+    var totalCompleted = 0;
+
+    for (var _i = 0; _i < image.length; _i++) {
+      if (urlDefined[_i] && image[_i].complete && !image[_i].error) {
+        totalCompleted++;
+        r.drawInscribedImage(context, image[_i], node, _i, nodeOpacity);
+      }
+    }
 
-                    this.checkTrigger(ele, name, fromValue, toValue, function (prop) {
-                        return prop.triggersZOrder;
-                    }, function () {
-                        _this._private.cy.notify('zorder', ele);
-                    });
-                };
+    _p.backgrounding = !(totalCompleted === numImages);
 
-                styfn.checkBoundsTrigger = function (ele, name, fromValue, toValue) {
-                    this.checkTrigger(ele, name, fromValue, toValue, function (prop) {
-                        return prop.triggersBounds;
-                    }, function (prop) {
-                        ele.dirtyCompoundBoundsCache();
-                        ele.dirtyBoundingBoxCache(); // if the prop change makes the bb of pll bezier edges invalid,
-                        // then dirty the pll edge bb cache as well
-
-                        if ( // only for beziers -- so performance of other edges isn't affected
-                            name === 'curve-style' && (fromValue === 'bezier' || toValue === 'bezier') && prop.triggersBoundsOfParallelBeziers) {
-                            ele.parallelEdges().forEach(function (pllEdge) {
-                                if (pllEdge.isBundledBezier()) {
-                                    pllEdge.dirtyBoundingBoxCache();
-                                }
-                            });
-                        }
-                    });
-                };
+    if (prevBging !== _p.backgrounding) {
+      // update style b/c :backgrounding state changed
+      node.updateStyle(false);
+    }
+  };
 
-                styfn.checkTriggers = function (ele, name, fromValue, toValue) {
-                    ele.dirtyStyleCache();
-                    this.checkZOrderTrigger(ele, name, fromValue, toValue);
-                    this.checkBoundsTrigger(ele, name, fromValue, toValue);
-                };
+  var drawPie = function drawPie() {
+    var redrawShape = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
+    var pieOpacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eleOpacity;
 
-                var styfn$1 = {}; // bypasses are applied to an existing style on an element, and just tacked on temporarily
-// returns true iff application was successful for at least 1 specified property
+    if (r.hasPie(node)) {
+      r.drawPie(context, node, pieOpacity); // redraw/restore path if steps after pie need it
 
-                styfn$1.applyBypass = function (eles, name, value, updateTransitions) {
-                    var self = this;
-                    var props = [];
-                    var isBypass = true; // put all the properties (can specify one or many) in an array after parsing them
-
-                    if (name === '*' || name === '**') {
-                        // apply to all property names
-                        if (value !== undefined) {
-                            for (var i = 0; i < self.properties.length; i++) {
-                                var prop = self.properties[i];
-                                var _name = prop.name;
-                                var parsedProp = this.parse(_name, value, true);
-
-                                if (parsedProp) {
-                                    props.push(parsedProp);
-                                }
-                            }
-                        }
-                    } else if (string(name)) {
-                        // then parse the single property
-                        var _parsedProp = this.parse(name, value, true);
+      if (redrawShape) {
+        if (!usePaths) {
+          r.nodeShapes[r.getNodeShape(node)].draw(context, pos.x, pos.y, nodeWidth, nodeHeight);
+        }
+      }
+    }
+  };
 
-                        if (_parsedProp) {
-                            props.push(_parsedProp);
-                        }
-                    } else if (plainObject(name)) {
-                        // then parse each property
-                        var specifiedProps = name;
-                        updateTransitions = value;
-                        var names = Object.keys(specifiedProps);
-
-                        for (var _i = 0; _i < names.length; _i++) {
-                            var _name2 = names[_i];
-                            var _value = specifiedProps[_name2];
-
-                            if (_value === undefined) {
-                                // try camel case name too
-                                _value = specifiedProps[dash2camel(_name2)];
-                            }
+  var darken = function darken() {
+    var darkenOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : eleOpacity;
+    var opacity = (darkness > 0 ? darkness : -darkness) * darkenOpacity;
+    var c = darkness > 0 ? 0 : 255;
 
-                            if (_value !== undefined) {
-                                var _parsedProp2 = this.parse(_name2, _value, true);
+    if (darkness !== 0) {
+      r.colorFillStyle(context, c, c, c, opacity);
 
-                                if (_parsedProp2) {
-                                    props.push(_parsedProp2);
-                                }
-                            }
-                        }
-                    } else {
-                        // can't do anything without well defined properties
-                        return false;
-                    } // we've failed if there are no valid properties
+      if (usePaths) {
+        context.fill(path);
+      } else {
+        context.fill();
+      }
+    }
+  };
+
+  var drawBorder = function drawBorder() {
+    if (borderWidth > 0) {
+      context.lineWidth = borderWidth;
+      context.lineCap = 'butt';
+
+      if (context.setLineDash) {
+        // for very outofdate browsers
+        switch (borderStyle) {
+          case 'dotted':
+            context.setLineDash([1, 1]);
+            break;
+
+          case 'dashed':
+            context.setLineDash([4, 2]);
+            break;
+
+          case 'solid':
+          case 'double':
+            context.setLineDash([]);
+            break;
+        }
+      }
+
+      if (usePaths) {
+        context.stroke(path);
+      } else {
+        context.stroke();
+      }
+
+      if (borderStyle === 'double') {
+        context.lineWidth = borderWidth / 3;
+        var gco = context.globalCompositeOperation;
+        context.globalCompositeOperation = 'destination-out';
+
+        if (usePaths) {
+          context.stroke(path);
+        } else {
+          context.stroke();
+        }
 
+        context.globalCompositeOperation = gco;
+      } // reset in case we changed the border style
 
-                    if (props.length === 0) {
-                        return false;
-                    } // now, apply the bypass properties on the elements
 
+      if (context.setLineDash) {
+        // for very outofdate browsers
+        context.setLineDash([]);
+      }
+    }
+  };
 
-                    var ret = false; // return true if at least one succesful bypass applied
+  var drawOverlay = function drawOverlay() {
+    if (shouldDrawOverlay) {
+      r.drawNodeOverlay(context, node, pos, nodeWidth, nodeHeight);
+    }
+  };
+
+  var drawText = function drawText() {
+    r.drawElementText(context, node, null, drawLabel);
+  };
+
+  var ghost = node.pstyle('ghost').value === 'yes';
+
+  if (ghost) {
+    var gx = node.pstyle('ghost-offset-x').pfValue;
+    var gy = node.pstyle('ghost-offset-y').pfValue;
+    var ghostOpacity = node.pstyle('ghost-opacity').value;
+    var effGhostOpacity = ghostOpacity * eleOpacity;
+    context.translate(gx, gy);
+    setupShapeColor(ghostOpacity * bgOpacity);
+    drawShape();
+    drawImages(effGhostOpacity);
+    drawPie(darkness !== 0 || borderWidth !== 0);
+    darken(effGhostOpacity);
+    setupBorderColor(ghostOpacity * borderOpacity);
+    drawBorder();
+    context.translate(-gx, -gy);
+  }
 
-                    for (var _i2 = 0; _i2 < eles.length; _i2++) {
-                        // for each ele
-                        var ele = eles[_i2];
-                        var diffProps = {};
-                        var diffProp = void 0;
+  setupShapeColor();
+  drawShape();
+  drawImages();
+  drawPie(darkness !== 0 || borderWidth !== 0);
+  darken();
+  setupBorderColor();
+  drawBorder();
 
-                        for (var j = 0; j < props.length; j++) {
-                            // for each prop
-                            var _prop = props[j];
+  if (usePaths) {
+    context.translate(-pos.x, -pos.y);
+  }
 
-                            if (updateTransitions) {
-                                var prevProp = ele.pstyle(_prop.name);
-                                diffProp = diffProps[_prop.name] = {
-                                    prev: prevProp
-                                };
-                            }
+  drawText();
+  drawOverlay(); //
+  // clean up shift
 
-                            ret = this.applyParsedProperty(ele, copy(_prop)) || ret;
+  if (shiftToOriginWithBb) {
+    context.translate(bb.x1, bb.y1);
+  }
+};
 
-                            if (updateTransitions) {
-                                diffProp.next = ele.pstyle(_prop.name);
-                            }
-                        } // for props
+CRp$5.drawNodeOverlay = function (context, node, pos, nodeWidth, nodeHeight) {
+  var r = this;
 
+  if (!node.visible()) {
+    return;
+  }
 
-                        if (ret) {
-                            this.updateStyleHints(ele);
-                        }
+  var overlayPadding = node.pstyle('overlay-padding').pfValue;
+  var overlayOpacity = node.pstyle('overlay-opacity').value;
+  var overlayColor = node.pstyle('overlay-color').value;
 
-                        if (updateTransitions) {
-                            this.updateTransitions(ele, diffProps, isBypass);
-                        }
-                    } // for eles
+  if (overlayOpacity > 0) {
+    pos = pos || node.position();
 
+    if (nodeWidth == null || nodeHeight == null) {
+      var padding = node.padding();
+      nodeWidth = node.width() + 2 * padding;
+      nodeHeight = node.height() + 2 * padding;
+    }
 
-                    return ret;
-                }; // only useful in specific cases like animation
+    r.colorFillStyle(context, overlayColor[0], overlayColor[1], overlayColor[2], overlayOpacity);
+    r.nodeShapes['roundrectangle'].draw(context, pos.x, pos.y, nodeWidth + overlayPadding * 2, nodeHeight + overlayPadding * 2);
+    context.fill();
+  }
+}; // does the node have at least one pie piece?
 
 
-                styfn$1.overrideBypass = function (eles, name, value) {
-                    name = camel2dash(name);
+CRp$5.hasPie = function (node) {
+  node = node[0]; // ensure ele ref
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        var prop = ele._private.style[name];
-                        var type = this.properties[name].type;
-                        var isColor = type.color;
-                        var isMulti = type.mutiple;
-                        var oldValue = !prop ? null : prop.pfValue != null ? prop.pfValue : prop.value;
+  return node._private.hasPie;
+};
 
-                        if (!prop || !prop.bypass) {
-                            // need a bypass if one doesn't exist
-                            this.applyBypass(ele, name, value);
-                        } else {
-                            prop.value = value;
+CRp$5.drawPie = function (context, node, nodeOpacity, pos) {
+  node = node[0]; // ensure ele ref
 
-                            if (prop.pfValue != null) {
-                                prop.pfValue = value;
-                            }
+  pos = pos || node.position();
+  var cyStyle = node.cy().style();
+  var pieSize = node.pstyle('pie-size');
+  var x = pos.x;
+  var y = pos.y;
+  var nodeW = node.width();
+  var nodeH = node.height();
+  var radius = Math.min(nodeW, nodeH) / 2; // must fit in node
 
-                            if (isColor) {
-                                prop.strValue = 'rgb(' + value.join(',') + ')';
-                            } else if (isMulti) {
-                                prop.strValue = value.join(' ');
-                            } else {
-                                prop.strValue = '' + value;
-                            }
+  var lastPercent = 0; // what % to continue drawing pie slices from on [0, 1]
 
-                            this.updateStyleHints(ele);
-                        }
+  var usePaths = this.usePaths();
 
-                        this.checkTriggers(ele, name, oldValue, value);
-                    }
-                };
+  if (usePaths) {
+    x = 0;
+    y = 0;
+  }
 
-                styfn$1.removeAllBypasses = function (eles, updateTransitions) {
-                    return this.removeBypasses(eles, this.propertyNames, updateTransitions);
-                };
-
-                styfn$1.removeBypasses = function (eles, props, updateTransitions) {
-                    var isBypass = true;
-
-                    for (var j = 0; j < eles.length; j++) {
-                        var ele = eles[j];
-                        var diffProps = {};
-
-                        for (var i = 0; i < props.length; i++) {
-                            var name = props[i];
-                            var prop = this.properties[name];
-                            var prevProp = ele.pstyle(prop.name);
-
-                            if (!prevProp || !prevProp.bypass) {
-                                // if a bypass doesn't exist for the prop, nothing needs to be removed
-                                continue;
-                            }
-
-                            var value = ''; // empty => remove bypass
+  if (pieSize.units === '%') {
+    radius = radius * pieSize.pfValue;
+  } else if (pieSize.pfValue !== undefined) {
+    radius = pieSize.pfValue / 2;
+  }
 
-                            var parsedProp = this.parse(name, value, true);
-                            var diffProp = diffProps[prop.name] = {
-                                prev: prevProp
-                            };
-                            this.applyParsedProperty(ele, parsedProp);
-                            diffProp.next = ele.pstyle(prop.name);
-                        } // for props
+  for (var i = 1; i <= cyStyle.pieBackgroundN; i++) {
+    // 1..N
+    var size = node.pstyle('pie-' + i + '-background-size').value;
+    var color = node.pstyle('pie-' + i + '-background-color').value;
+    var opacity = node.pstyle('pie-' + i + '-background-opacity').value * nodeOpacity;
+    var percent = size / 100; // map integer range [0, 100] to [0, 1]
+    // percent can't push beyond 1
 
+    if (percent + lastPercent > 1) {
+      percent = 1 - lastPercent;
+    }
 
-                        this.updateStyleHints(ele);
+    var angleStart = 1.5 * Math.PI + 2 * Math.PI * lastPercent; // start at 12 o'clock and go clockwise
 
-                        if (updateTransitions) {
-                            this.updateTransitions(ele, diffProps, isBypass);
-                        }
-                    } // for eles
+    var angleDelta = 2 * Math.PI * percent;
+    var angleEnd = angleStart + angleDelta; // ignore if
+    // - zero size
+    // - we're already beyond the full circle
+    // - adding the current slice would go beyond the full circle
 
-                };
+    if (size === 0 || lastPercent >= 1 || lastPercent + percent > 1) {
+      continue;
+    }
 
-                var styfn$2 = {}; // gets what an em size corresponds to in pixels relative to a dom element
+    context.beginPath();
+    context.moveTo(x, y);
+    context.arc(x, y, radius, angleStart, angleEnd);
+    context.closePath();
+    this.colorFillStyle(context, color[0], color[1], color[2], opacity);
+    context.fill();
+    lastPercent += percent;
+  }
+};
 
-                styfn$2.getEmSizeInPixels = function () {
-                    var px = this.containerCss('font-size');
+var CRp$6 = {};
+var motionBlurDelay = 100; // var isFirefox = typeof InstallTrigger !== 'undefined';
 
-                    if (px != null) {
-                        return parseFloat(px);
-                    } else {
-                        return 1; // for headless
-                    }
-                }; // gets css property from the core container
+CRp$6.getPixelRatio = function () {
+  var context = this.data.contexts[0];
 
+  if (this.forcedPixelRatio != null) {
+    return this.forcedPixelRatio;
+  }
 
-                styfn$2.containerCss = function (propName) {
-                    var cy = this._private.cy;
-                    var domElement = cy.container();
+  var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1;
+  return (window.devicePixelRatio || 1) / backingStore; // eslint-disable-line no-undef
+};
 
-                    if (window$1 && domElement && window$1.getComputedStyle) {
-                        return window$1.getComputedStyle(domElement).getPropertyValue(propName);
-                    }
-                };
+CRp$6.paintCache = function (context) {
+  var caches = this.paintCaches = this.paintCaches || [];
+  var needToCreateCache = true;
+  var cache;
 
-                var styfn$3 = {}; // gets the rendered style for an element
+  for (var i = 0; i < caches.length; i++) {
+    cache = caches[i];
 
-                styfn$3.getRenderedStyle = function (ele, prop) {
-                    if (prop) {
-                        return this.getStylePropertyValue(ele, prop, true);
-                    } else {
-                        return this.getRawStyle(ele, true);
-                    }
-                }; // gets the raw style for an element
+    if (cache.context === context) {
+      needToCreateCache = false;
+      break;
+    }
+  }
 
+  if (needToCreateCache) {
+    cache = {
+      context: context
+    };
+    caches.push(cache);
+  }
 
-                styfn$3.getRawStyle = function (ele, isRenderedVal) {
-                    var self = this;
-                    ele = ele[0]; // insure it's an element
+  return cache;
+};
+
+CRp$6.createGradientStyleFor = function (context, shapeStyleName, ele, fill, opacity) {
+  var gradientStyle;
+  var usePaths = this.usePaths();
+  var colors = ele.pstyle(shapeStyleName + '-gradient-stop-colors').value,
+      positions = ele.pstyle(shapeStyleName + '-gradient-stop-positions').pfValue;
+
+  if (fill === 'radial-gradient') {
+    if (ele.isEdge()) {
+      var start = ele.sourceEndpoint(),
+          end = ele.targetEndpoint(),
+          mid = ele.midpoint();
+      var d1 = dist(start, mid);
+      var d2 = dist(end, mid);
+      gradientStyle = context.createRadialGradient(mid.x, mid.y, 0, mid.x, mid.y, Math.max(d1, d2));
+    } else {
+      var pos = usePaths ? {
+        x: 0,
+        y: 0
+      } : ele.position(),
+          width = ele.paddedWidth(),
+          height = ele.paddedHeight();
+      gradientStyle = context.createRadialGradient(pos.x, pos.y, 0, pos.x, pos.y, Math.max(width, height));
+    }
+  } else {
+    if (ele.isEdge()) {
+      var _start = ele.sourceEndpoint(),
+          _end = ele.targetEndpoint();
+
+      gradientStyle = context.createLinearGradient(_start.x, _start.y, _end.x, _end.y);
+    } else {
+      var _pos = usePaths ? {
+        x: 0,
+        y: 0
+      } : ele.position(),
+          _width = ele.paddedWidth(),
+          _height = ele.paddedHeight(),
+          halfWidth = _width / 2,
+          halfHeight = _height / 2;
+
+      var direction = ele.pstyle('background-gradient-direction').value;
+
+      switch (direction) {
+        case 'to-bottom':
+          gradientStyle = context.createLinearGradient(_pos.x, _pos.y - halfHeight, _pos.x, _pos.y + halfHeight);
+          break;
+
+        case 'to-top':
+          gradientStyle = context.createLinearGradient(_pos.x, _pos.y + halfHeight, _pos.x, _pos.y - halfHeight);
+          break;
+
+        case 'to-left':
+          gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y, _pos.x - halfWidth, _pos.y);
+          break;
+
+        case 'to-right':
+          gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y, _pos.x + halfWidth, _pos.y);
+          break;
+
+        case 'to-bottom-right':
+        case 'to-right-bottom':
+          gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y - halfHeight, _pos.x + halfWidth, _pos.y + halfHeight);
+          break;
+
+        case 'to-top-right':
+        case 'to-right-top':
+          gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y + halfHeight, _pos.x + halfWidth, _pos.y - halfHeight);
+          break;
+
+        case 'to-bottom-left':
+        case 'to-left-bottom':
+          gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y - halfHeight, _pos.x - halfWidth, _pos.y + halfHeight);
+          break;
+
+        case 'to-top-left':
+        case 'to-left-top':
+          gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y + halfHeight, _pos.x - halfWidth, _pos.y - halfHeight);
+          break;
+      }
+    }
+  }
 
-                    if (ele) {
-                        var rstyle = {};
+  if (!gradientStyle) return null; // invalid gradient style
 
-                        for (var i = 0; i < self.properties.length; i++) {
-                            var prop = self.properties[i];
-                            var val = self.getStylePropertyValue(ele, prop.name, isRenderedVal);
+  var hasPositions = positions.length === colors.length;
+  var length = colors.length;
 
-                            if (val != null) {
-                                rstyle[prop.name] = val;
-                                rstyle[dash2camel(prop.name)] = val;
-                            }
-                        }
+  for (var i = 0; i < length; i++) {
+    gradientStyle.addColorStop(hasPositions ? positions[i] : i / (length - 1), 'rgba(' + colors[i][0] + ',' + colors[i][1] + ',' + colors[i][2] + ',' + opacity + ')');
+  }
 
-                        return rstyle;
-                    }
-                };
+  return gradientStyle;
+};
+
+CRp$6.gradientFillStyle = function (context, ele, fill, opacity) {
+  var gradientStyle = this.createGradientStyleFor(context, 'background', ele, fill, opacity);
+  if (!gradientStyle) return null; // error
+
+  context.fillStyle = gradientStyle;
+};
+
+CRp$6.colorFillStyle = function (context, r, g, b, a) {
+  context.fillStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; // turn off for now, seems context does its own caching
+  // var cache = this.paintCache(context);
+  // var fillStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';
+  // if( cache.fillStyle !== fillStyle ){
+  //   context.fillStyle = cache.fillStyle = fillStyle;
+  // }
+};
+
+CRp$6.eleFillStyle = function (context, ele, opacity) {
+  var backgroundFill = ele.pstyle('background-fill').value;
+
+  if (backgroundFill === 'linear-gradient' || backgroundFill === 'radial-gradient') {
+    this.gradientFillStyle(context, ele, backgroundFill, opacity);
+  } else {
+    var backgroundColor = ele.pstyle('background-color').value;
+    this.colorFillStyle(context, backgroundColor[0], backgroundColor[1], backgroundColor[2], opacity);
+  }
+};
+
+CRp$6.gradientStrokeStyle = function (context, ele, fill, opacity) {
+  var gradientStyle = this.createGradientStyleFor(context, 'line', ele, fill, opacity);
+  if (!gradientStyle) return null; // error
+
+  context.strokeStyle = gradientStyle;
+};
+
+CRp$6.colorStrokeStyle = function (context, r, g, b, a) {
+  context.strokeStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; // turn off for now, seems context does its own caching
+  // var cache = this.paintCache(context);
+  // var strokeStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';
+  // if( cache.strokeStyle !== strokeStyle ){
+  //   context.strokeStyle = cache.strokeStyle = strokeStyle;
+  // }
+};
+
+CRp$6.eleStrokeStyle = function (context, ele, opacity) {
+  var lineFill = ele.pstyle('line-fill').value;
+
+  if (lineFill === 'linear-gradient' || lineFill === 'radial-gradient') {
+    this.gradientStrokeStyle(context, ele, lineFill, opacity);
+  } else {
+    var lineColor = ele.pstyle('line-color').value;
+    this.colorStrokeStyle(context, lineColor[0], lineColor[1], lineColor[2], opacity);
+  }
+}; // Resize canvas
 
-                styfn$3.getIndexedStyle = function (ele, property, subproperty, index) {
-                    var pstyle = ele.pstyle(property)[subproperty][index];
-                    return pstyle != null ? pstyle : ele.cy().style().getDefaultProperty(property)[subproperty][0];
-                };
 
-                styfn$3.getStylePropertyValue = function (ele, propName, isRenderedVal) {
-                    var self = this;
-                    ele = ele[0]; // insure it's an element
+CRp$6.matchCanvasSize = function (container) {
+  var r = this;
+  var data = r.data;
+  var bb = r.findContainerClientCoords();
+  var width = bb[2];
+  var height = bb[3];
+  var pixelRatio = r.getPixelRatio();
+  var mbPxRatio = r.motionBlurPxRatio;
 
-                    if (ele) {
-                        var prop = self.properties[propName];
+  if (container === r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE] || container === r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG]) {
+    pixelRatio = mbPxRatio;
+  }
 
-                        if (prop.alias) {
-                            prop = prop.pointsTo;
-                        }
+  var canvasWidth = width * pixelRatio;
+  var canvasHeight = height * pixelRatio;
+  var canvas;
 
-                        var type = prop.type;
-                        var styleProp = ele.pstyle(prop.name);
-
-                        if (styleProp) {
-                            var value = styleProp.value,
-                                units = styleProp.units,
-                                strValue = styleProp.strValue;
-
-                            if (isRenderedVal && type.number && value != null && number(value)) {
-                                var zoom = ele.cy().zoom();
-
-                                var getRenderedValue = function getRenderedValue(val) {
-                                    return val * zoom;
-                                };
-
-                                var getValueStringWithUnits = function getValueStringWithUnits(val, units) {
-                                    return getRenderedValue(val) + units;
-                                };
-
-                                var isArrayValue = array(value);
-                                var haveUnits = isArrayValue ? units.every(function (u) {
-                                    return u != null;
-                                }) : units != null;
-
-                                if (haveUnits) {
-                                    if (isArrayValue) {
-                                        return value.map(function (v, i) {
-                                            return getValueStringWithUnits(v, units[i]);
-                                        }).join(' ');
-                                    } else {
-                                        return getValueStringWithUnits(value, units);
-                                    }
-                                } else {
-                                    if (isArrayValue) {
-                                        return value.map(function (v) {
-                                            return string(v) ? v : '' + getRenderedValue(v);
-                                        }).join(' ');
-                                    } else {
-                                        return '' + getRenderedValue(value);
-                                    }
-                                }
-                            } else if (strValue != null) {
-                                return strValue;
-                            }
-                        }
+  if (canvasWidth === r.canvasWidth && canvasHeight === r.canvasHeight) {
+    return; // save cycles if same
+  }
 
-                        return null;
-                    }
-                };
+  r.fontCaches = null; // resizing resets the style
 
-                styfn$3.getAnimationStartStyle = function (ele, aniProps) {
-                    var rstyle = {};
+  var canvasContainer = data.canvasContainer;
+  canvasContainer.style.width = width + 'px';
+  canvasContainer.style.height = height + 'px';
 
-                    for (var i = 0; i < aniProps.length; i++) {
-                        var aniProp = aniProps[i];
-                        var name = aniProp.name;
-                        var styleProp = ele.pstyle(name);
+  for (var i = 0; i < r.CANVAS_LAYERS; i++) {
+    canvas = data.canvases[i];
+    canvas.width = canvasWidth;
+    canvas.height = canvasHeight;
+    canvas.style.width = width + 'px';
+    canvas.style.height = height + 'px';
+  }
 
-                        if (styleProp !== undefined) {
-                            // then make a prop of it
-                            if (plainObject(styleProp)) {
-                                styleProp = this.parse(name, styleProp.strValue);
-                            } else {
-                                styleProp = this.parse(name, styleProp);
-                            }
-                        }
+  for (var i = 0; i < r.BUFFER_COUNT; i++) {
+    canvas = data.bufferCanvases[i];
+    canvas.width = canvasWidth;
+    canvas.height = canvasHeight;
+    canvas.style.width = width + 'px';
+    canvas.style.height = height + 'px';
+  }
 
-                        if (styleProp) {
-                            rstyle[name] = styleProp;
-                        }
-                    }
+  r.textureMult = 1;
 
-                    return rstyle;
-                };
+  if (pixelRatio <= 1) {
+    canvas = data.bufferCanvases[r.TEXTURE_BUFFER];
+    r.textureMult = 2;
+    canvas.width = canvasWidth * r.textureMult;
+    canvas.height = canvasHeight * r.textureMult;
+  }
 
-                styfn$3.getPropsList = function (propsObj) {
-                    var self = this;
-                    var rstyle = [];
-                    var style = propsObj;
-                    var props = self.properties;
+  r.canvasWidth = canvasWidth;
+  r.canvasHeight = canvasHeight;
+};
+
+CRp$6.renderTo = function (cxt, zoom, pan, pxRatio) {
+  this.render({
+    forcedContext: cxt,
+    forcedZoom: zoom,
+    forcedPan: pan,
+    drawAllLayers: true,
+    forcedPxRatio: pxRatio
+  });
+};
+
+CRp$6.render = function (options) {
+  options = options || staticEmptyObject();
+  var forcedContext = options.forcedContext;
+  var drawAllLayers = options.drawAllLayers;
+  var drawOnlyNodeLayer = options.drawOnlyNodeLayer;
+  var forcedZoom = options.forcedZoom;
+  var forcedPan = options.forcedPan;
+  var r = this;
+  var pixelRatio = options.forcedPxRatio === undefined ? this.getPixelRatio() : options.forcedPxRatio;
+  var cy = r.cy;
+  var data = r.data;
+  var needDraw = data.canvasNeedsRedraw;
+  var textureDraw = r.textureOnViewport && !forcedContext && (r.pinching || r.hoverData.dragging || r.swipePanning || r.data.wheelZooming);
+  var motionBlur = options.motionBlur !== undefined ? options.motionBlur : r.motionBlur;
+  var mbPxRatio = r.motionBlurPxRatio;
+  var hasCompoundNodes = cy.hasCompoundNodes();
+  var inNodeDragGesture = r.hoverData.draggingEles;
+  var inBoxSelection = r.hoverData.selecting || r.touchData.selecting ? true : false;
+  motionBlur = motionBlur && !forcedContext && r.motionBlurEnabled && !inBoxSelection;
+  var motionBlurFadeEffect = motionBlur;
+
+  if (!forcedContext) {
+    if (r.prevPxRatio !== pixelRatio) {
+      r.invalidateContainerClientCoordsCache();
+      r.matchCanvasSize(r.container);
+      r.redrawHint('eles', true);
+      r.redrawHint('drag', true);
+    }
 
-                    if (style) {
-                        var names = Object.keys(style);
+    r.prevPxRatio = pixelRatio;
+  }
 
-                        for (var i = 0; i < names.length; i++) {
-                            var name = names[i];
-                            var val = style[name];
-                            var prop = props[name] || props[camel2dash(name)];
-                            var styleProp = this.parse(prop.name, val);
+  if (!forcedContext && r.motionBlurTimeout) {
+    clearTimeout(r.motionBlurTimeout);
+  }
 
-                            if (styleProp) {
-                                rstyle.push(styleProp);
-                            }
-                        }
-                    }
+  if (motionBlur) {
+    if (r.mbFrames == null) {
+      r.mbFrames = 0;
+    }
 
-                    return rstyle;
-                };
+    r.mbFrames++;
 
-                styfn$3.getNonDefaultPropertiesHash = function (ele, propNames, seed) {
-                    var hash = seed.slice();
-                    var name, val, strVal, chVal;
-                    var i, j;
-
-                    for (i = 0; i < propNames.length; i++) {
-                        name = propNames[i];
-                        val = ele.pstyle(name, false);
-
-                        if (val == null) {
-                            continue;
-                        } else if (val.pfValue != null) {
-                            hash[0] = hashInt(chVal, hash[0]);
-                            hash[1] = hashIntAlt(chVal, hash[1]);
-                        } else {
-                            strVal = val.strValue;
-
-                            for (j = 0; j < strVal.length; j++) {
-                                chVal = strVal.charCodeAt(j);
-                                hash[0] = hashInt(chVal, hash[0]);
-                                hash[1] = hashIntAlt(chVal, hash[1]);
-                            }
-                        }
-                    }
+    if (r.mbFrames < 3) {
+      // need several frames before even high quality motionblur
+      motionBlurFadeEffect = false;
+    } // go to lower quality blurry frames when several m/b frames have been rendered (avoids flashing)
 
-                    return hash;
-                };
 
-                styfn$3.getPropertiesHash = styfn$3.getNonDefaultPropertiesHash;
+    if (r.mbFrames > r.minMbLowQualFrames) {
+      //r.fullQualityMb = false;
+      r.motionBlurPxRatio = r.mbPxRBlurry;
+    }
+  }
 
-                var styfn$4 = {};
+  if (r.clearingMotionBlur) {
+    r.motionBlurPxRatio = 1;
+  } // b/c drawToContext() may be async w.r.t. redraw(), keep track of last texture frame
+  // because a rogue async texture frame would clear needDraw
 
-                styfn$4.appendFromJson = function (json) {
-                    var style = this;
 
-                    for (var i = 0; i < json.length; i++) {
-                        var context = json[i];
-                        var selector = context.selector;
-                        var props = context.style || context.css;
-                        var names = Object.keys(props);
-                        style.selector(selector); // apply selector
+  if (r.textureDrawLastFrame && !textureDraw) {
+    needDraw[r.NODE] = true;
+    needDraw[r.SELECT_BOX] = true;
+  }
 
-                        for (var j = 0; j < names.length; j++) {
-                            var name = names[j];
-                            var value = props[name];
-                            style.css(name, value); // apply property
-                        }
-                    }
+  var style = cy.style();
+  var zoom = cy.zoom();
+  var effectiveZoom = forcedZoom !== undefined ? forcedZoom : zoom;
+  var pan = cy.pan();
+  var effectivePan = {
+    x: pan.x,
+    y: pan.y
+  };
+  var vp = {
+    zoom: zoom,
+    pan: {
+      x: pan.x,
+      y: pan.y
+    }
+  };
+  var prevVp = r.prevViewport;
+  var viewportIsDiff = prevVp === undefined || vp.zoom !== prevVp.zoom || vp.pan.x !== prevVp.pan.x || vp.pan.y !== prevVp.pan.y; // we want the low quality motionblur only when the viewport is being manipulated etc (where it's not noticed)
 
-                    return style;
-                }; // accessible cy.style() function
+  if (!viewportIsDiff && !(inNodeDragGesture && !hasCompoundNodes)) {
+    r.motionBlurPxRatio = 1;
+  }
 
+  if (forcedPan) {
+    effectivePan = forcedPan;
+  } // apply pixel ratio
 
-                styfn$4.fromJson = function (json) {
-                    var style = this;
-                    style.resetToDefault();
-                    style.appendFromJson(json);
-                    return style;
-                }; // get json from cy.style() api
 
+  effectiveZoom *= pixelRatio;
+  effectivePan.x *= pixelRatio;
+  effectivePan.y *= pixelRatio;
+  var eles = r.getCachedZSortedEles();
 
-                styfn$4.json = function () {
-                    var json = [];
+  function mbclear(context, x, y, w, h) {
+    var gco = context.globalCompositeOperation;
+    context.globalCompositeOperation = 'destination-out';
+    r.colorFillStyle(context, 255, 255, 255, r.motionBlurTransparency);
+    context.fillRect(x, y, w, h);
+    context.globalCompositeOperation = gco;
+  }
 
-                    for (var i = this.defaultLength; i < this.length; i++) {
-                        var cxt = this[i];
-                        var selector = cxt.selector;
-                        var props = cxt.properties;
-                        var css = {};
+  function setContextTransform(context, clear) {
+    var ePan, eZoom, w, h;
+
+    if (!r.clearingMotionBlur && (context === data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE] || context === data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG])) {
+      ePan = {
+        x: pan.x * mbPxRatio,
+        y: pan.y * mbPxRatio
+      };
+      eZoom = zoom * mbPxRatio;
+      w = r.canvasWidth * mbPxRatio;
+      h = r.canvasHeight * mbPxRatio;
+    } else {
+      ePan = effectivePan;
+      eZoom = effectiveZoom;
+      w = r.canvasWidth;
+      h = r.canvasHeight;
+    }
 
-                        for (var j = 0; j < props.length; j++) {
-                            var prop = props[j];
-                            css[prop.name] = prop.strValue;
-                        }
+    context.setTransform(1, 0, 0, 1, 0, 0);
 
-                        json.push({
-                            selector: !selector ? 'core' : selector.toString(),
-                            style: css
-                        });
-                    }
+    if (clear === 'motionBlur') {
+      mbclear(context, 0, 0, w, h);
+    } else if (!forcedContext && (clear === undefined || clear)) {
+      context.clearRect(0, 0, w, h);
+    }
 
-                    return json;
-                };
+    if (!drawAllLayers) {
+      context.translate(ePan.x, ePan.y);
+      context.scale(eZoom, eZoom);
+    }
 
-                var styfn$5 = {};
+    if (forcedPan) {
+      context.translate(forcedPan.x, forcedPan.y);
+    }
 
-                styfn$5.appendFromString = function (string) {
-                    var self = this;
-                    var style = this;
-                    var remaining = '' + string;
-                    var selAndBlockStr;
-                    var blockRem;
-                    var propAndValStr; // remove comments from the style string
+    if (forcedZoom) {
+      context.scale(forcedZoom, forcedZoom);
+    }
+  }
 
-                    remaining = remaining.replace(/[/][*](\s|.)+?[*][/]/g, '');
+  if (!textureDraw) {
+    r.textureDrawLastFrame = false;
+  }
 
-                    function removeSelAndBlockFromRemaining() {
-                        // remove the parsed selector and block from the remaining text to parse
-                        if (remaining.length > selAndBlockStr.length) {
-                            remaining = remaining.substr(selAndBlockStr.length);
-                        } else {
-                            remaining = '';
-                        }
-                    }
+  if (textureDraw) {
+    r.textureDrawLastFrame = true;
+
+    if (!r.textureCache) {
+      r.textureCache = {};
+      r.textureCache.bb = cy.mutableElements().boundingBox();
+      r.textureCache.texture = r.data.bufferCanvases[r.TEXTURE_BUFFER];
+      var cxt = r.data.bufferContexts[r.TEXTURE_BUFFER];
+      cxt.setTransform(1, 0, 0, 1, 0, 0);
+      cxt.clearRect(0, 0, r.canvasWidth * r.textureMult, r.canvasHeight * r.textureMult);
+      r.render({
+        forcedContext: cxt,
+        drawOnlyNodeLayer: true,
+        forcedPxRatio: pixelRatio * r.textureMult
+      });
+      var vp = r.textureCache.viewport = {
+        zoom: cy.zoom(),
+        pan: cy.pan(),
+        width: r.canvasWidth,
+        height: r.canvasHeight
+      };
+      vp.mpan = {
+        x: (0 - vp.pan.x) / vp.zoom,
+        y: (0 - vp.pan.y) / vp.zoom
+      };
+    }
 
-                    function removePropAndValFromRem() {
-                        // remove the parsed property and value from the remaining block text to parse
-                        if (blockRem.length > propAndValStr.length) {
-                            blockRem = blockRem.substr(propAndValStr.length);
-                        } else {
-                            blockRem = '';
-                        }
-                    }
+    needDraw[r.DRAG] = false;
+    needDraw[r.NODE] = false;
+    var context = data.contexts[r.NODE];
+    var texture = r.textureCache.texture;
+    var vp = r.textureCache.viewport;
+    context.setTransform(1, 0, 0, 1, 0, 0);
+
+    if (motionBlur) {
+      mbclear(context, 0, 0, vp.width, vp.height);
+    } else {
+      context.clearRect(0, 0, vp.width, vp.height);
+    }
 
-                    for (;;) {
-                        var nothingLeftToParse = remaining.match(/^\s*$/);
+    var outsideBgColor = style.core('outside-texture-bg-color').value;
+    var outsideBgOpacity = style.core('outside-texture-bg-opacity').value;
+    r.colorFillStyle(context, outsideBgColor[0], outsideBgColor[1], outsideBgColor[2], outsideBgOpacity);
+    context.fillRect(0, 0, vp.width, vp.height);
+    var zoom = cy.zoom();
+    setContextTransform(context, false);
+    context.clearRect(vp.mpan.x, vp.mpan.y, vp.width / vp.zoom / pixelRatio, vp.height / vp.zoom / pixelRatio);
+    context.drawImage(texture, vp.mpan.x, vp.mpan.y, vp.width / vp.zoom / pixelRatio, vp.height / vp.zoom / pixelRatio);
+  } else if (r.textureOnViewport && !forcedContext) {
+    // clear the cache since we don't need it
+    r.textureCache = null;
+  }
 
-                        if (nothingLeftToParse) {
-                            break;
-                        }
+  var extent = cy.extent();
+  var vpManip = r.pinching || r.hoverData.dragging || r.swipePanning || r.data.wheelZooming || r.hoverData.draggingEles || r.cy.animated();
+  var hideEdges = r.hideEdgesOnViewport && vpManip;
+  var needMbClear = [];
+  needMbClear[r.NODE] = !needDraw[r.NODE] && motionBlur && !r.clearedForMotionBlur[r.NODE] || r.clearingMotionBlur;
 
-                        var selAndBlock = remaining.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);
+  if (needMbClear[r.NODE]) {
+    r.clearedForMotionBlur[r.NODE] = true;
+  }
 
-                        if (!selAndBlock) {
-                            warn('Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: ' + remaining);
-                            break;
-                        }
+  needMbClear[r.DRAG] = !needDraw[r.DRAG] && motionBlur && !r.clearedForMotionBlur[r.DRAG] || r.clearingMotionBlur;
 
-                        selAndBlockStr = selAndBlock[0]; // parse the selector
+  if (needMbClear[r.DRAG]) {
+    r.clearedForMotionBlur[r.DRAG] = true;
+  }
 
-                        var selectorStr = selAndBlock[1];
+  if (needDraw[r.NODE] || drawAllLayers || drawOnlyNodeLayer || needMbClear[r.NODE]) {
+    var useBuffer = motionBlur && !needMbClear[r.NODE] && mbPxRatio !== 1;
+    var context = forcedContext || (useBuffer ? r.data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE] : data.contexts[r.NODE]);
+    var clear = motionBlur && !useBuffer ? 'motionBlur' : undefined;
+    setContextTransform(context, clear);
 
-                        if (selectorStr !== 'core') {
-                            var selector = new Selector(selectorStr);
+    if (hideEdges) {
+      r.drawCachedNodes(context, eles.nondrag, pixelRatio, extent);
+    } else {
+      r.drawLayeredElements(context, eles.nondrag, pixelRatio, extent);
+    }
 
-                            if (selector.invalid) {
-                                warn('Skipping parsing of block: Invalid selector found in string stylesheet: ' + selectorStr); // skip this selector and block
+    if (r.debug) {
+      r.drawDebugPoints(context, eles.nondrag);
+    }
 
-                                removeSelAndBlockFromRemaining();
-                                continue;
-                            }
-                        } // parse the block of properties and values
+    if (!drawAllLayers && !motionBlur) {
+      needDraw[r.NODE] = false;
+    }
+  }
 
+  if (!drawOnlyNodeLayer && (needDraw[r.DRAG] || drawAllLayers || needMbClear[r.DRAG])) {
+    var useBuffer = motionBlur && !needMbClear[r.DRAG] && mbPxRatio !== 1;
+    var context = forcedContext || (useBuffer ? r.data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG] : data.contexts[r.DRAG]);
+    setContextTransform(context, motionBlur && !useBuffer ? 'motionBlur' : undefined);
 
-                        var blockStr = selAndBlock[2];
-                        var invalidBlock = false;
-                        blockRem = blockStr;
-                        var props = [];
+    if (hideEdges) {
+      r.drawCachedNodes(context, eles.drag, pixelRatio, extent);
+    } else {
+      r.drawCachedElements(context, eles.drag, pixelRatio, extent);
+    }
 
-                        for (;;) {
-                            var _nothingLeftToParse = blockRem.match(/^\s*$/);
+    if (r.debug) {
+      r.drawDebugPoints(context, eles.drag);
+    }
 
-                            if (_nothingLeftToParse) {
-                                break;
-                            }
+    if (!drawAllLayers && !motionBlur) {
+      needDraw[r.DRAG] = false;
+    }
+  }
 
-                            var propAndVal = blockRem.match(/^\s*(.+?)\s*:\s*(.+?)\s*;/);
+  if (r.showFps || !drawOnlyNodeLayer && needDraw[r.SELECT_BOX] && !drawAllLayers) {
+    var context = forcedContext || data.contexts[r.SELECT_BOX];
+    setContextTransform(context);
+
+    if (r.selection[4] == 1 && (r.hoverData.selecting || r.touchData.selecting)) {
+      var zoom = r.cy.zoom();
+      var borderWidth = style.core('selection-box-border-width').value / zoom;
+      context.lineWidth = borderWidth;
+      context.fillStyle = 'rgba(' + style.core('selection-box-color').value[0] + ',' + style.core('selection-box-color').value[1] + ',' + style.core('selection-box-color').value[2] + ',' + style.core('selection-box-opacity').value + ')';
+      context.fillRect(r.selection[0], r.selection[1], r.selection[2] - r.selection[0], r.selection[3] - r.selection[1]);
+
+      if (borderWidth > 0) {
+        context.strokeStyle = 'rgba(' + style.core('selection-box-border-color').value[0] + ',' + style.core('selection-box-border-color').value[1] + ',' + style.core('selection-box-border-color').value[2] + ',' + style.core('selection-box-opacity').value + ')';
+        context.strokeRect(r.selection[0], r.selection[1], r.selection[2] - r.selection[0], r.selection[3] - r.selection[1]);
+      }
+    }
 
-                            if (!propAndVal) {
-                                warn('Skipping parsing of block: Invalid formatting of style property and value definitions found in:' + blockStr);
-                                invalidBlock = true;
-                                break;
-                            }
+    if (data.bgActivePosistion && !r.hoverData.selecting) {
+      var zoom = r.cy.zoom();
+      var pos = data.bgActivePosistion;
+      context.fillStyle = 'rgba(' + style.core('active-bg-color').value[0] + ',' + style.core('active-bg-color').value[1] + ',' + style.core('active-bg-color').value[2] + ',' + style.core('active-bg-opacity').value + ')';
+      context.beginPath();
+      context.arc(pos.x, pos.y, style.core('active-bg-size').pfValue / zoom, 0, 2 * Math.PI);
+      context.fill();
+    }
 
-                            propAndValStr = propAndVal[0];
-                            var propStr = propAndVal[1];
-                            var valStr = propAndVal[2];
-                            var prop = self.properties[propStr];
+    var timeToRender = r.lastRedrawTime;
+
+    if (r.showFps && timeToRender) {
+      timeToRender = Math.round(timeToRender);
+      var fps = Math.round(1000 / timeToRender);
+      context.setTransform(1, 0, 0, 1, 0, 0);
+      context.fillStyle = 'rgba(255, 0, 0, 0.75)';
+      context.strokeStyle = 'rgba(255, 0, 0, 0.75)';
+      context.lineWidth = 1;
+      context.fillText('1 frame = ' + timeToRender + ' ms = ' + fps + ' fps', 0, 20);
+      var maxFps = 60;
+      context.strokeRect(0, 30, 250, 20);
+      context.fillRect(0, 30, 250 * Math.min(fps / maxFps, 1), 20);
+    }
 
-                            if (!prop) {
-                                warn('Skipping property: Invalid property name in: ' + propAndValStr); // skip this property in the block
+    if (!drawAllLayers) {
+      needDraw[r.SELECT_BOX] = false;
+    }
+  } // motionblur: blit rendered blurry frames
+
+
+  if (motionBlur && mbPxRatio !== 1) {
+    var cxtNode = data.contexts[r.NODE];
+    var txtNode = r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE];
+    var cxtDrag = data.contexts[r.DRAG];
+    var txtDrag = r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG];
+
+    var drawMotionBlur = function drawMotionBlur(cxt, txt, needClear) {
+      cxt.setTransform(1, 0, 0, 1, 0, 0);
+
+      if (needClear || !motionBlurFadeEffect) {
+        cxt.clearRect(0, 0, r.canvasWidth, r.canvasHeight);
+      } else {
+        mbclear(cxt, 0, 0, r.canvasWidth, r.canvasHeight);
+      }
+
+      var pxr = mbPxRatio;
+      cxt.drawImage(txt, // img
+      0, 0, // sx, sy
+      r.canvasWidth * pxr, r.canvasHeight * pxr, // sw, sh
+      0, 0, // x, y
+      r.canvasWidth, r.canvasHeight // w, h
+      );
+    };
+
+    if (needDraw[r.NODE] || needMbClear[r.NODE]) {
+      drawMotionBlur(cxtNode, txtNode, needMbClear[r.NODE]);
+      needDraw[r.NODE] = false;
+    }
 
-                                removePropAndValFromRem();
-                                continue;
-                            }
+    if (needDraw[r.DRAG] || needMbClear[r.DRAG]) {
+      drawMotionBlur(cxtDrag, txtDrag, needMbClear[r.DRAG]);
+      needDraw[r.DRAG] = false;
+    }
+  }
 
-                            var parsedProp = style.parse(propStr, valStr);
+  r.prevViewport = vp;
 
-                            if (!parsedProp) {
-                                warn('Skipping property: Invalid property definition in: ' + propAndValStr); // skip this property in the block
+  if (r.clearingMotionBlur) {
+    r.clearingMotionBlur = false;
+    r.motionBlurCleared = true;
+    r.motionBlur = true;
+  }
 
-                                removePropAndValFromRem();
-                                continue;
-                            }
+  if (motionBlur) {
+    r.motionBlurTimeout = setTimeout(function () {
+      r.motionBlurTimeout = null;
+      r.clearedForMotionBlur[r.NODE] = false;
+      r.clearedForMotionBlur[r.DRAG] = false;
+      r.motionBlur = false;
+      r.clearingMotionBlur = !textureDraw;
+      r.mbFrames = 0;
+      needDraw[r.NODE] = true;
+      needDraw[r.DRAG] = true;
+      r.redraw();
+    }, motionBlurDelay);
+  }
 
-                            props.push({
-                                name: propStr,
-                                val: valStr
-                            });
-                            removePropAndValFromRem();
-                        }
+  if (!forcedContext) {
+    cy.emit('render');
+  }
+};
 
-                        if (invalidBlock) {
-                            removeSelAndBlockFromRemaining();
-                            break;
-                        } // put the parsed block in the style
+var CRp$7 = {}; // @O Polygon drawing
 
+CRp$7.drawPolygonPath = function (context, x, y, width, height, points) {
+  var halfW = width / 2;
+  var halfH = height / 2;
 
-                        style.selector(selectorStr);
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                        for (var i = 0; i < props.length; i++) {
-                            var _prop = props[i];
-                            style.css(_prop.name, _prop.val);
-                        }
+  context.moveTo(x + halfW * points[0], y + halfH * points[1]);
 
-                        removeSelAndBlockFromRemaining();
-                    }
+  for (var i = 1; i < points.length / 2; i++) {
+    context.lineTo(x + halfW * points[i * 2], y + halfH * points[i * 2 + 1]);
+  }
 
-                    return style;
-                };
+  context.closePath();
+};
 
-                styfn$5.fromString = function (string) {
-                    var style = this;
-                    style.resetToDefault();
-                    style.appendFromString(string);
-                    return style;
-                };
+CRp$7.drawRoundPolygonPath = function (context, x, y, width, height, points) {
+  var halfW = width / 2;
+  var halfH = height / 2;
+  var cornerRadius = getRoundPolygonRadius(width, height);
 
-                var styfn$6 = {};
-
-                (function () {
-                    var number = number$1;
-                    var rgba = rgbaNoBackRefs;
-                    var hsla = hslaNoBackRefs;
-                    var hex3$1 = hex3;
-                    var hex6$1 = hex6;
-
-                    var data = function data(prefix) {
-                        return '^' + prefix + '\\s*\\(\\s*([\\w\\.]+)\\s*\\)$';
-                    };
-
-                    var mapData = function mapData(prefix) {
-                        var mapArg = number + '|\\w+|' + rgba + '|' + hsla + '|' + hex3$1 + '|' + hex6$1;
-                        return '^' + prefix + '\\s*\\(([\\w\\.]+)\\s*\\,\\s*(' + number + ')\\s*\\,\\s*(' + number + ')\\s*,\\s*(' + mapArg + ')\\s*\\,\\s*(' + mapArg + ')\\)$';
-                    };
-
-                    var urlRegexes = ['^url\\s*\\(\\s*[\'"]?(.+?)[\'"]?\\s*\\)$', '^(none)$', '^(.+)$']; // each visual style property has a type and needs to be validated according to it
-
-                    styfn$6.types = {
-                        time: {
-                            number: true,
-                            min: 0,
-                            units: 's|ms',
-                            implicitUnits: 'ms'
-                        },
-                        percent: {
-                            number: true,
-                            min: 0,
-                            max: 100,
-                            units: '%',
-                            implicitUnits: '%'
-                        },
-                        percentages: {
-                            number: true,
-                            min: 0,
-                            max: 100,
-                            units: '%',
-                            implicitUnits: '%',
-                            multiple: true
-                        },
-                        zeroOneNumber: {
-                            number: true,
-                            min: 0,
-                            max: 1,
-                            unitless: true
-                        },
-                        zeroOneNumbers: {
-                            number: true,
-                            min: 0,
-                            max: 1,
-                            unitless: true,
-                            multiple: true
-                        },
-                        nOneOneNumber: {
-                            number: true,
-                            min: -1,
-                            max: 1,
-                            unitless: true
-                        },
-                        nonNegativeInt: {
-                            number: true,
-                            min: 0,
-                            integer: true,
-                            unitless: true
-                        },
-                        position: {
-                            enums: ['parent', 'origin']
-                        },
-                        nodeSize: {
-                            number: true,
-                            min: 0,
-                            enums: ['label']
-                        },
-                        number: {
-                            number: true,
-                            unitless: true
-                        },
-                        numbers: {
-                            number: true,
-                            unitless: true,
-                            multiple: true
-                        },
-                        positiveNumber: {
-                            number: true,
-                            unitless: true,
-                            min: 0,
-                            strictMin: true
-                        },
-                        size: {
-                            number: true,
-                            min: 0
-                        },
-                        bidirectionalSize: {
-                            number: true
-                        },
-                        // allows negative
-                        bidirectionalSizeMaybePercent: {
-                            number: true,
-                            allowPercent: true
-                        },
-                        // allows negative
-                        bidirectionalSizes: {
-                            number: true,
-                            multiple: true
-                        },
-                        // allows negative
-                        sizeMaybePercent: {
-                            number: true,
-                            min: 0,
-                            allowPercent: true
-                        },
-                        axisDirection: {
-                            enums: ['horizontal', 'leftward', 'rightward', 'vertical', 'upward', 'downward', 'auto']
-                        },
-                        paddingRelativeTo: {
-                            enums: ['width', 'height', 'average', 'min', 'max']
-                        },
-                        bgWH: {
-                            number: true,
-                            min: 0,
-                            allowPercent: true,
-                            enums: ['auto'],
-                            multiple: true
-                        },
-                        bgPos: {
-                            number: true,
-                            allowPercent: true,
-                            multiple: true
-                        },
-                        bgRelativeTo: {
-                            enums: ['inner', 'include-padding'],
-                            multiple: true
-                        },
-                        bgRepeat: {
-                            enums: ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'],
-                            multiple: true
-                        },
-                        bgFit: {
-                            enums: ['none', 'contain', 'cover'],
-                            multiple: true
-                        },
-                        bgCrossOrigin: {
-                            enums: ['anonymous', 'use-credentials'],
-                            multiple: true
-                        },
-                        bgClip: {
-                            enums: ['none', 'node'],
-                            multiple: true
-                        },
-                        color: {
-                            color: true
-                        },
-                        colors: {
-                            color: true,
-                            multiple: true
-                        },
-                        fill: {
-                            enums: ['solid', 'linear-gradient', 'radial-gradient']
-                        },
-                        bool: {
-                            enums: ['yes', 'no']
-                        },
-                        lineStyle: {
-                            enums: ['solid', 'dotted', 'dashed']
-                        },
-                        lineCap: {
-                            enums: ['butt', 'round', 'square']
-                        },
-                        borderStyle: {
-                            enums: ['solid', 'dotted', 'dashed', 'double']
-                        },
-                        curveStyle: {
-                            enums: ['bezier', 'unbundled-bezier', 'haystack', 'segments', 'straight', 'taxi']
-                        },
-                        fontFamily: {
-                            regex: '^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'
-                        },
-                        fontStyle: {
-                            enums: ['italic', 'normal', 'oblique']
-                        },
-                        fontWeight: {
-                            enums: ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '800', '900', 100, 200, 300, 400, 500, 600, 700, 800, 900]
-                        },
-                        textDecoration: {
-                            enums: ['none', 'underline', 'overline', 'line-through']
-                        },
-                        textTransform: {
-                            enums: ['none', 'uppercase', 'lowercase']
-                        },
-                        textWrap: {
-                            enums: ['none', 'wrap', 'ellipsis']
-                        },
-                        textOverflowWrap: {
-                            enums: ['whitespace', 'anywhere']
-                        },
-                        textBackgroundShape: {
-                            enums: ['rectangle', 'roundrectangle', 'round-rectangle']
-                        },
-                        nodeShape: {
-                            enums: ['rectangle', 'roundrectangle', 'round-rectangle', 'cutrectangle', 'cut-rectangle', 'bottomroundrectangle', 'bottom-round-rectangle', 'barrel', 'ellipse', 'triangle', 'round-triangle', 'square', 'pentagon', 'round-pentagon', 'hexagon', 'round-hexagon', 'concavehexagon', 'concave-hexagon', 'heptagon', 'round-heptagon', 'octagon', 'round-octagon', 'tag', 'round-tag', 'star', 'diamond', 'round-diamond', 'vee', 'rhomboid', 'polygon']
-                        },
-                        compoundIncludeLabels: {
-                            enums: ['include', 'exclude']
-                        },
-                        arrowShape: {
-                            enums: ['tee', 'triangle', 'triangle-tee', 'circle-triangle', 'triangle-cross', 'triangle-backcurve', 'vee', 'square', 'circle', 'diamond', 'chevron', 'none']
-                        },
-                        arrowFill: {
-                            enums: ['filled', 'hollow']
-                        },
-                        display: {
-                            enums: ['element', 'none']
-                        },
-                        visibility: {
-                            enums: ['hidden', 'visible']
-                        },
-                        zCompoundDepth: {
-                            enums: ['bottom', 'orphan', 'auto', 'top']
-                        },
-                        zIndexCompare: {
-                            enums: ['auto', 'manual']
-                        },
-                        valign: {
-                            enums: ['top', 'center', 'bottom']
-                        },
-                        halign: {
-                            enums: ['left', 'center', 'right']
-                        },
-                        justification: {
-                            enums: ['left', 'center', 'right', 'auto']
-                        },
-                        text: {
-                            string: true
-                        },
-                        data: {
-                            mapping: true,
-                            regex: data('data')
-                        },
-                        layoutData: {
-                            mapping: true,
-                            regex: data('layoutData')
-                        },
-                        scratch: {
-                            mapping: true,
-                            regex: data('scratch')
-                        },
-                        mapData: {
-                            mapping: true,
-                            regex: mapData('mapData')
-                        },
-                        mapLayoutData: {
-                            mapping: true,
-                            regex: mapData('mapLayoutData')
-                        },
-                        mapScratch: {
-                            mapping: true,
-                            regex: mapData('mapScratch')
-                        },
-                        fn: {
-                            mapping: true,
-                            fn: true
-                        },
-                        url: {
-                            regexes: urlRegexes,
-                            singleRegexMatchValue: true
-                        },
-                        urls: {
-                            regexes: urlRegexes,
-                            singleRegexMatchValue: true,
-                            multiple: true
-                        },
-                        propList: {
-                            propList: true
-                        },
-                        angle: {
-                            number: true,
-                            units: 'deg|rad',
-                            implicitUnits: 'rad'
-                        },
-                        textRotation: {
-                            number: true,
-                            units: 'deg|rad',
-                            implicitUnits: 'rad',
-                            enums: ['none', 'autorotate']
-                        },
-                        polygonPointList: {
-                            number: true,
-                            multiple: true,
-                            evenMultiple: true,
-                            min: -1,
-                            max: 1,
-                            unitless: true
-                        },
-                        edgeDistances: {
-                            enums: ['intersection', 'node-position']
-                        },
-                        edgeEndpoint: {
-                            number: true,
-                            multiple: true,
-                            units: '%|px|em|deg|rad',
-                            implicitUnits: 'px',
-                            enums: ['inside-to-node', 'outside-to-node', 'outside-to-node-or-label', 'outside-to-line', 'outside-to-line-or-label'],
-                            singleEnum: true,
-                            validate: function validate(valArr, unitsArr) {
-                                switch (valArr.length) {
-                                    case 2:
-                                        // can be % or px only
-                                        return unitsArr[0] !== 'deg' && unitsArr[0] !== 'rad' && unitsArr[1] !== 'deg' && unitsArr[1] !== 'rad';
-
-                                    case 1:
-                                        // can be enum, deg, or rad only
-                                        return string(valArr[0]) || unitsArr[0] === 'deg' || unitsArr[0] === 'rad';
-
-                                    default:
-                                        return false;
-                                }
-                            }
-                        },
-                        easing: {
-                            regexes: ['^(spring)\\s*\\(\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*\\)$', '^(cubic-bezier)\\s*\\(\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*,\\s*(' + number + ')\\s*\\)$'],
-                            enums: ['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'ease-in-sine', 'ease-out-sine', 'ease-in-out-sine', 'ease-in-quad', 'ease-out-quad', 'ease-in-out-quad', 'ease-in-cubic', 'ease-out-cubic', 'ease-in-out-cubic', 'ease-in-quart', 'ease-out-quart', 'ease-in-out-quart', 'ease-in-quint', 'ease-out-quint', 'ease-in-out-quint', 'ease-in-expo', 'ease-out-expo', 'ease-in-out-expo', 'ease-in-circ', 'ease-out-circ', 'ease-in-out-circ']
-                        },
-                        gradientDirection: {
-                            enums: ['to-bottom', 'to-top', 'to-left', 'to-right', 'to-bottom-right', 'to-bottom-left', 'to-top-right', 'to-top-left', 'to-right-bottom', 'to-left-bottom', 'to-right-top', 'to-left-top']
-                        },
-                        boundsExpansion: {
-                            number: true,
-                            multiple: true,
-                            min: 0,
-                            validate: function validate(valArr) {
-                                var length = valArr.length;
-                                return length === 1 || length === 2 || length === 4;
-                            }
-                        }
-                    };
-                    var diff = {
-                        zeroNonZero: function zeroNonZero(val1, val2) {
-                            if ((val1 == null || val2 == null) && val1 !== val2) {
-                                return true; // null cases could represent any value
-                            }
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                            if (val1 == 0 && val2 != 0) {
-                                return true;
-                            } else if (val1 != 0 && val2 == 0) {
-                                return true;
-                            } else {
-                                return false;
-                            }
-                        },
-                        any: function any(val1, val2) {
-                            return val1 != val2;
-                        },
-                        emptyNonEmpty: function emptyNonEmpty(str1, str2) {
-                            var empty1 = emptyString(str1);
-                            var empty2 = emptyString(str2);
-                            return empty1 && !empty2 || !empty1 && empty2;
-                        }
-                    }; // define visual style properties
-                    //
-                    // - n.b. adding a new group of props may require updates to updateStyleHints()
-                    // - adding new props to an existing group gets handled automatically
-
-                    var t = styfn$6.types;
-                    var mainLabel = [{
-                        name: 'label',
-                        type: t.text,
-                        triggersBounds: diff.any,
-                        triggersZOrder: diff.emptyNonEmpty
-                    }, {
-                        name: 'text-rotation',
-                        type: t.textRotation,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-margin-x',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-margin-y',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }];
-                    var sourceLabel = [{
-                        name: 'source-label',
-                        type: t.text,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-text-rotation',
-                        type: t.textRotation,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-text-margin-x',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-text-margin-y',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-text-offset',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }];
-                    var targetLabel = [{
-                        name: 'target-label',
-                        type: t.text,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-text-rotation',
-                        type: t.textRotation,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-text-margin-x',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-text-margin-y',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-text-offset',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }];
-                    var labelDimensions = [{
-                        name: 'font-family',
-                        type: t.fontFamily,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'font-style',
-                        type: t.fontStyle,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'font-weight',
-                        type: t.fontWeight,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'font-size',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-transform',
-                        type: t.textTransform,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-wrap',
-                        type: t.textWrap,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-overflow-wrap',
-                        type: t.textOverflowWrap,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-max-width',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-outline-width',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'line-height',
-                        type: t.positiveNumber,
-                        triggersBounds: diff.any
-                    }];
-                    var commonLabel = [{
-                        name: 'text-valign',
-                        type: t.valign,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-halign',
-                        type: t.halign,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'color',
-                        type: t.color
-                    }, {
-                        name: 'text-outline-color',
-                        type: t.color
-                    }, {
-                        name: 'text-outline-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'text-background-color',
-                        type: t.color
-                    }, {
-                        name: 'text-background-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'text-background-padding',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-border-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'text-border-color',
-                        type: t.color
-                    }, {
-                        name: 'text-border-width',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-border-style',
-                        type: t.borderStyle,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-background-shape',
-                        type: t.textBackgroundShape,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'text-justification',
-                        type: t.justification
-                    }];
-                    var behavior = [{
-                        name: 'events',
-                        type: t.bool
-                    }, {
-                        name: 'text-events',
-                        type: t.bool
-                    }];
-                    var visibility = [{
-                        name: 'display',
-                        type: t.display,
-                        triggersZOrder: diff.any,
-                        triggersBounds: diff.any,
-                        triggersBoundsOfParallelBeziers: true
-                    }, {
-                        name: 'visibility',
-                        type: t.visibility,
-                        triggersZOrder: diff.any
-                    }, {
-                        name: 'opacity',
-                        type: t.zeroOneNumber,
-                        triggersZOrder: diff.zeroNonZero
-                    }, {
-                        name: 'text-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'min-zoomed-font-size',
-                        type: t.size
-                    }, {
-                        name: 'z-compound-depth',
-                        type: t.zCompoundDepth,
-                        triggersZOrder: diff.any
-                    }, {
-                        name: 'z-index-compare',
-                        type: t.zIndexCompare,
-                        triggersZOrder: diff.any
-                    }, {
-                        name: 'z-index',
-                        type: t.nonNegativeInt,
-                        triggersZOrder: diff.any
-                    }];
-                    var overlay = [{
-                        name: 'overlay-padding',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'overlay-color',
-                        type: t.color
-                    }, {
-                        name: 'overlay-opacity',
-                        type: t.zeroOneNumber,
-                        triggersBounds: diff.zeroNonZero
-                    }];
-                    var transition = [{
-                        name: 'transition-property',
-                        type: t.propList
-                    }, {
-                        name: 'transition-duration',
-                        type: t.time
-                    }, {
-                        name: 'transition-delay',
-                        type: t.time
-                    }, {
-                        name: 'transition-timing-function',
-                        type: t.easing
-                    }];
-
-                    var nodeSizeHashOverride = function nodeSizeHashOverride(ele, parsedProp) {
-                        if (parsedProp.value === 'label') {
-                            return -ele.poolIndex(); // no hash key hits is using label size (hitrate for perf probably low anyway)
-                        } else {
-                            return parsedProp.pfValue;
-                        }
-                    };
-
-                    var nodeBody = [{
-                        name: 'height',
-                        type: t.nodeSize,
-                        triggersBounds: diff.any,
-                        hashOverride: nodeSizeHashOverride
-                    }, {
-                        name: 'width',
-                        type: t.nodeSize,
-                        triggersBounds: diff.any,
-                        hashOverride: nodeSizeHashOverride
-                    }, {
-                        name: 'shape',
-                        type: t.nodeShape,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'shape-polygon-points',
-                        type: t.polygonPointList,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'background-color',
-                        type: t.color
-                    }, {
-                        name: 'background-fill',
-                        type: t.fill
-                    }, {
-                        name: 'background-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'background-blacken',
-                        type: t.nOneOneNumber
-                    }, {
-                        name: 'background-gradient-stop-colors',
-                        type: t.colors
-                    }, {
-                        name: 'background-gradient-stop-positions',
-                        type: t.percentages
-                    }, {
-                        name: 'background-gradient-direction',
-                        type: t.gradientDirection
-                    }, {
-                        name: 'padding',
-                        type: t.sizeMaybePercent,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'padding-relative-to',
-                        type: t.paddingRelativeTo,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'bounds-expansion',
-                        type: t.boundsExpansion,
-                        triggersBounds: diff.any
-                    }];
-                    var nodeBorder = [{
-                        name: 'border-color',
-                        type: t.color
-                    }, {
-                        name: 'border-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'border-width',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'border-style',
-                        type: t.borderStyle
-                    }];
-                    var backgroundImage = [{
-                        name: 'background-image',
-                        type: t.urls
-                    }, {
-                        name: 'background-image-crossorigin',
-                        type: t.bgCrossOrigin
-                    }, {
-                        name: 'background-image-opacity',
-                        type: t.zeroOneNumbers
-                    }, {
-                        name: 'background-position-x',
-                        type: t.bgPos
-                    }, {
-                        name: 'background-position-y',
-                        type: t.bgPos
-                    }, {
-                        name: 'background-width-relative-to',
-                        type: t.bgRelativeTo
-                    }, {
-                        name: 'background-height-relative-to',
-                        type: t.bgRelativeTo
-                    }, {
-                        name: 'background-repeat',
-                        type: t.bgRepeat
-                    }, {
-                        name: 'background-fit',
-                        type: t.bgFit
-                    }, {
-                        name: 'background-clip',
-                        type: t.bgClip
-                    }, {
-                        name: 'background-width',
-                        type: t.bgWH
-                    }, {
-                        name: 'background-height',
-                        type: t.bgWH
-                    }, {
-                        name: 'background-offset-x',
-                        type: t.bgPos
-                    }, {
-                        name: 'background-offset-y',
-                        type: t.bgPos
-                    }];
-                    var compound = [{
-                        name: 'position',
-                        type: t.position,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'compound-sizing-wrt-labels',
-                        type: t.compoundIncludeLabels,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-width',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-width-bias-left',
-                        type: t.sizeMaybePercent,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-width-bias-right',
-                        type: t.sizeMaybePercent,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-height',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-height-bias-top',
-                        type: t.sizeMaybePercent,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'min-height-bias-bottom',
-                        type: t.sizeMaybePercent,
-                        triggersBounds: diff.any
-                    }];
-                    var edgeLine = [{
-                        name: 'line-style',
-                        type: t.lineStyle
-                    }, {
-                        name: 'line-color',
-                        type: t.color
-                    }, {
-                        name: 'line-fill',
-                        type: t.fill
-                    }, {
-                        name: 'line-cap',
-                        type: t.lineCap
-                    }, {
-                        name: 'line-dash-pattern',
-                        type: t.numbers
-                    }, {
-                        name: 'line-dash-offset',
-                        type: t.number
-                    }, {
-                        name: 'line-gradient-stop-colors',
-                        type: t.colors
-                    }, {
-                        name: 'line-gradient-stop-positions',
-                        type: t.percentages
-                    }, {
-                        name: 'curve-style',
-                        type: t.curveStyle,
-                        triggersBounds: diff.any,
-                        triggersBoundsOfParallelBeziers: true
-                    }, {
-                        name: 'haystack-radius',
-                        type: t.zeroOneNumber,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-endpoint',
-                        type: t.edgeEndpoint,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-endpoint',
-                        type: t.edgeEndpoint,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'control-point-step-size',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'control-point-distances',
-                        type: t.bidirectionalSizes,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'control-point-weights',
-                        type: t.numbers,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'segment-distances',
-                        type: t.bidirectionalSizes,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'segment-weights',
-                        type: t.numbers,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'taxi-turn',
-                        type: t.bidirectionalSizeMaybePercent,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'taxi-turn-min-distance',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'taxi-direction',
-                        type: t.axisDirection,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'edge-distances',
-                        type: t.edgeDistances,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'arrow-scale',
-                        type: t.positiveNumber,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'loop-direction',
-                        type: t.angle,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'loop-sweep',
-                        type: t.angle,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'source-distance-from-node',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'target-distance-from-node',
-                        type: t.size,
-                        triggersBounds: diff.any
-                    }];
-                    var ghost = [{
-                        name: 'ghost',
-                        type: t.bool,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'ghost-offset-x',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'ghost-offset-y',
-                        type: t.bidirectionalSize,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'ghost-opacity',
-                        type: t.zeroOneNumber
-                    }];
-                    var core = [{
-                        name: 'selection-box-color',
-                        type: t.color
-                    }, {
-                        name: 'selection-box-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'selection-box-border-color',
-                        type: t.color
-                    }, {
-                        name: 'selection-box-border-width',
-                        type: t.size
-                    }, {
-                        name: 'active-bg-color',
-                        type: t.color
-                    }, {
-                        name: 'active-bg-opacity',
-                        type: t.zeroOneNumber
-                    }, {
-                        name: 'active-bg-size',
-                        type: t.size
-                    }, {
-                        name: 'outside-texture-bg-color',
-                        type: t.color
-                    }, {
-                        name: 'outside-texture-bg-opacity',
-                        type: t.zeroOneNumber
-                    }]; // pie backgrounds for nodes
-
-                    var pie = [];
-                    styfn$6.pieBackgroundN = 16; // because the pie properties are numbered, give access to a constant N (for renderer use)
-
-                    pie.push({
-                        name: 'pie-size',
-                        type: t.sizeMaybePercent
-                    });
-
-                    for (var i = 1; i <= styfn$6.pieBackgroundN; i++) {
-                        pie.push({
-                            name: 'pie-' + i + '-background-color',
-                            type: t.color
-                        });
-                        pie.push({
-                            name: 'pie-' + i + '-background-size',
-                            type: t.percent
-                        });
-                        pie.push({
-                            name: 'pie-' + i + '-background-opacity',
-                            type: t.zeroOneNumber
-                        });
-                    } // edge arrows
-
-
-                    var edgeArrow = [];
-                    var arrowPrefixes = styfn$6.arrowPrefixes = ['source', 'mid-source', 'target', 'mid-target'];
-                    [{
-                        name: 'arrow-shape',
-                        type: t.arrowShape,
-                        triggersBounds: diff.any
-                    }, {
-                        name: 'arrow-color',
-                        type: t.color
-                    }, {
-                        name: 'arrow-fill',
-                        type: t.arrowFill
-                    }].forEach(function (prop) {
-                        arrowPrefixes.forEach(function (prefix) {
-                            var name = prefix + '-' + prop.name;
-                            var type = prop.type,
-                                triggersBounds = prop.triggersBounds;
-                            edgeArrow.push({
-                                name: name,
-                                type: type,
-                                triggersBounds: triggersBounds
-                            });
-                        });
-                    }, {});
-                    var props = styfn$6.properties = [].concat(behavior, transition, visibility, overlay, ghost, commonLabel, labelDimensions, mainLabel, sourceLabel, targetLabel, nodeBody, nodeBorder, backgroundImage, pie, compound, edgeLine, edgeArrow, core);
-                    var propGroups = styfn$6.propertyGroups = {
-                        // common to all eles
-                        behavior: behavior,
-                        transition: transition,
-                        visibility: visibility,
-                        overlay: overlay,
-                        ghost: ghost,
-                        // labels
-                        commonLabel: commonLabel,
-                        labelDimensions: labelDimensions,
-                        mainLabel: mainLabel,
-                        sourceLabel: sourceLabel,
-                        targetLabel: targetLabel,
-                        // node props
-                        nodeBody: nodeBody,
-                        nodeBorder: nodeBorder,
-                        backgroundImage: backgroundImage,
-                        pie: pie,
-                        compound: compound,
-                        // edge props
-                        edgeLine: edgeLine,
-                        edgeArrow: edgeArrow,
-                        core: core
-                    };
-                    var propGroupNames = styfn$6.propertyGroupNames = {};
-                    var propGroupKeys = styfn$6.propertyGroupKeys = Object.keys(propGroups);
-                    propGroupKeys.forEach(function (key) {
-                        propGroupNames[key] = propGroups[key].map(function (prop) {
-                            return prop.name;
-                        });
-                        propGroups[key].forEach(function (prop) {
-                            return prop.groupKey = key;
-                        });
-                    }); // define aliases
-
-                    var aliases = styfn$6.aliases = [{
-                        name: 'content',
-                        pointsTo: 'label'
-                    }, {
-                        name: 'control-point-distance',
-                        pointsTo: 'control-point-distances'
-                    }, {
-                        name: 'control-point-weight',
-                        pointsTo: 'control-point-weights'
-                    }, {
-                        name: 'edge-text-rotation',
-                        pointsTo: 'text-rotation'
-                    }, {
-                        name: 'padding-left',
-                        pointsTo: 'padding'
-                    }, {
-                        name: 'padding-right',
-                        pointsTo: 'padding'
-                    }, {
-                        name: 'padding-top',
-                        pointsTo: 'padding'
-                    }, {
-                        name: 'padding-bottom',
-                        pointsTo: 'padding'
-                    }]; // list of property names
-
-                    styfn$6.propertyNames = props.map(function (p) {
-                        return p.name;
-                    }); // allow access of properties by name ( e.g. style.properties.height )
-
-                    for (var _i = 0; _i < props.length; _i++) {
-                        var prop = props[_i];
-                        props[prop.name] = prop; // allow lookup by name
-                    } // map aliases
-
-
-                    for (var _i2 = 0; _i2 < aliases.length; _i2++) {
-                        var alias = aliases[_i2];
-                        var pointsToProp = props[alias.pointsTo];
-                        var aliasProp = {
-                            name: alias.name,
-                            alias: true,
-                            pointsTo: pointsToProp
-                        }; // add alias prop for parsing
-
-                        props.push(aliasProp);
-                        props[alias.name] = aliasProp; // allow lookup by name
-                    }
-                })();
+  for (var _i = 0; _i < points.length / 4; _i++) {
+    var sourceUv = void 0,
+        destUv = void 0;
 
-                styfn$6.getDefaultProperty = function (name) {
-                    return this.getDefaultProperties()[name];
-                };
+    if (_i === 0) {
+      sourceUv = points.length - 2;
+    } else {
+      sourceUv = _i * 4 - 2;
+    }
 
-                styfn$6.getDefaultProperties = function () {
-                    var _p = this._private;
+    destUv = _i * 4 + 2;
+    var px = x + halfW * points[_i * 4];
+    var py = y + halfH * points[_i * 4 + 1];
+    var cosTheta = -points[sourceUv] * points[destUv] - points[sourceUv + 1] * points[destUv + 1];
+    var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
+    var cp0x = px - offset * points[sourceUv];
+    var cp0y = py - offset * points[sourceUv + 1];
+    var cp1x = px + offset * points[destUv];
+    var cp1y = py + offset * points[destUv + 1];
+
+    if (_i === 0) {
+      context.moveTo(cp0x, cp0y);
+    } else {
+      context.lineTo(cp0x, cp0y);
+    }
 
-                    if (_p.defaultProperties != null) {
-                        return _p.defaultProperties;
-                    }
+    context.arcTo(px, py, cp1x, cp1y, cornerRadius);
+  }
 
-                    var rawProps = extend({
-                        // core props
-                        'selection-box-color': '#ddd',
-                        'selection-box-opacity': 0.65,
-                        'selection-box-border-color': '#aaa',
-                        'selection-box-border-width': 1,
-                        'active-bg-color': 'black',
-                        'active-bg-opacity': 0.15,
-                        'active-bg-size': 30,
-                        'outside-texture-bg-color': '#000',
-                        'outside-texture-bg-opacity': 0.125,
-                        // common node/edge props
-                        'events': 'yes',
-                        'text-events': 'no',
-                        'text-valign': 'top',
-                        'text-halign': 'center',
-                        'text-justification': 'auto',
-                        'line-height': 1,
-                        'color': '#000',
-                        'text-outline-color': '#000',
-                        'text-outline-width': 0,
-                        'text-outline-opacity': 1,
-                        'text-opacity': 1,
-                        'text-decoration': 'none',
-                        'text-transform': 'none',
-                        'text-wrap': 'none',
-                        'text-overflow-wrap': 'whitespace',
-                        'text-max-width': 9999,
-                        'text-background-color': '#000',
-                        'text-background-opacity': 0,
-                        'text-background-shape': 'rectangle',
-                        'text-background-padding': 0,
-                        'text-border-opacity': 0,
-                        'text-border-width': 0,
-                        'text-border-style': 'solid',
-                        'text-border-color': '#000',
-                        'font-family': 'Helvetica Neue, Helvetica, sans-serif',
-                        'font-style': 'normal',
-                        'font-weight': 'normal',
-                        'font-size': 16,
-                        'min-zoomed-font-size': 0,
-                        'text-rotation': 'none',
-                        'source-text-rotation': 'none',
-                        'target-text-rotation': 'none',
-                        'visibility': 'visible',
-                        'display': 'element',
-                        'opacity': 1,
-                        'z-compound-depth': 'auto',
-                        'z-index-compare': 'auto',
-                        'z-index': 0,
-                        'label': '',
-                        'text-margin-x': 0,
-                        'text-margin-y': 0,
-                        'source-label': '',
-                        'source-text-offset': 0,
-                        'source-text-margin-x': 0,
-                        'source-text-margin-y': 0,
-                        'target-label': '',
-                        'target-text-offset': 0,
-                        'target-text-margin-x': 0,
-                        'target-text-margin-y': 0,
-                        'overlay-opacity': 0,
-                        'overlay-color': '#000',
-                        'overlay-padding': 10,
-                        'transition-property': 'none',
-                        'transition-duration': 0,
-                        'transition-delay': 0,
-                        'transition-timing-function': 'linear',
-                        // node props
-                        'background-blacken': 0,
-                        'background-color': '#999',
-                        'background-fill': 'solid',
-                        'background-opacity': 1,
-                        'background-image': 'none',
-                        'background-image-crossorigin': 'anonymous',
-                        'background-image-opacity': 1,
-                        'background-position-x': '50%',
-                        'background-position-y': '50%',
-                        'background-offset-x': 0,
-                        'background-offset-y': 0,
-                        'background-width-relative-to': 'include-padding',
-                        'background-height-relative-to': 'include-padding',
-                        'background-repeat': 'no-repeat',
-                        'background-fit': 'none',
-                        'background-clip': 'node',
-                        'background-width': 'auto',
-                        'background-height': 'auto',
-                        'border-color': '#000',
-                        'border-opacity': 1,
-                        'border-width': 0,
-                        'border-style': 'solid',
-                        'height': 30,
-                        'width': 30,
-                        'shape': 'ellipse',
-                        'shape-polygon-points': '-1, -1,   1, -1,   1, 1,   -1, 1',
-                        'bounds-expansion': 0,
-                        // node gradient
-                        'background-gradient-direction': 'to-bottom',
-                        'background-gradient-stop-colors': '#999',
-                        'background-gradient-stop-positions': '0%',
-                        // ghost props
-                        'ghost': 'no',
-                        'ghost-offset-y': 0,
-                        'ghost-offset-x': 0,
-                        'ghost-opacity': 0,
-                        // compound props
-                        'padding': 0,
-                        'padding-relative-to': 'width',
-                        'position': 'origin',
-                        'compound-sizing-wrt-labels': 'include',
-                        'min-width': 0,
-                        'min-width-bias-left': 0,
-                        'min-width-bias-right': 0,
-                        'min-height': 0,
-                        'min-height-bias-top': 0,
-                        'min-height-bias-bottom': 0
-                    }, {
-                        // node pie bg
-                        'pie-size': '100%'
-                    }, [{
-                        name: 'pie-{{i}}-background-color',
-                        value: 'black'
-                    }, {
-                        name: 'pie-{{i}}-background-size',
-                        value: '0%'
-                    }, {
-                        name: 'pie-{{i}}-background-opacity',
-                        value: 1
-                    }].reduce(function (css, prop) {
-                        for (var i = 1; i <= styfn$6.pieBackgroundN; i++) {
-                            var name = prop.name.replace('{{i}}', i);
-                            var val = prop.value;
-                            css[name] = val;
-                        }
+  context.closePath();
+}; // Round rectangle drawing
 
-                        return css;
-                    }, {}), {
-                        // edge props
-                        'line-style': 'solid',
-                        'line-color': '#999',
-                        'line-fill': 'solid',
-                        'line-cap': 'butt',
-                        'line-gradient-stop-colors': '#999',
-                        'line-gradient-stop-positions': '0%',
-                        'control-point-step-size': 40,
-                        'control-point-weights': 0.5,
-                        'segment-weights': 0.5,
-                        'segment-distances': 20,
-                        'taxi-turn': '50%',
-                        'taxi-turn-min-distance': 10,
-                        'taxi-direction': 'auto',
-                        'edge-distances': 'intersection',
-                        'curve-style': 'haystack',
-                        'haystack-radius': 0,
-                        'arrow-scale': 1,
-                        'loop-direction': '-45deg',
-                        'loop-sweep': '-90deg',
-                        'source-distance-from-node': 0,
-                        'target-distance-from-node': 0,
-                        'source-endpoint': 'outside-to-node',
-                        'target-endpoint': 'outside-to-node',
-                        'line-dash-pattern': [6, 3],
-                        'line-dash-offset': 0
-                    }, [{
-                        name: 'arrow-shape',
-                        value: 'none'
-                    }, {
-                        name: 'arrow-color',
-                        value: '#999'
-                    }, {
-                        name: 'arrow-fill',
-                        value: 'filled'
-                    }].reduce(function (css, prop) {
-                        styfn$6.arrowPrefixes.forEach(function (prefix) {
-                            var name = prefix + '-' + prop.name;
-                            var val = prop.value;
-                            css[name] = val;
-                        });
-                        return css;
-                    }, {}));
-                    var parsedProps = {};
 
-                    for (var i = 0; i < this.properties.length; i++) {
-                        var prop = this.properties[i];
+CRp$7.drawRoundRectanglePath = function (context, x, y, width, height) {
+  var halfWidth = width / 2;
+  var halfHeight = height / 2;
+  var cornerRadius = getRoundRectangleRadius(width, height);
 
-                        if (prop.pointsTo) {
-                            continue;
-                        }
+  if (context.beginPath) {
+    context.beginPath();
+  } // Start at top middle
 
-                        var name = prop.name;
-                        var val = rawProps[name];
-                        var parsedProp = this.parse(name, val);
-                        parsedProps[name] = parsedProp;
-                    }
 
-                    _p.defaultProperties = parsedProps;
-                    return _p.defaultProperties;
-                };
+  context.moveTo(x, y - halfHeight); // Arc from middle top to right side
 
-                styfn$6.addDefaultStylesheet = function () {
-                    this.selector(':parent').css({
-                        'shape': 'rectangle',
-                        'padding': 10,
-                        'background-color': '#eee',
-                        'border-color': '#ccc',
-                        'border-width': 1
-                    }).selector('edge').css({
-                        'width': 3
-                    }).selector(':loop').css({
-                        'curve-style': 'bezier'
-                    }).selector('edge:compound').css({
-                        'curve-style': 'bezier',
-                        'source-endpoint': 'outside-to-line',
-                        'target-endpoint': 'outside-to-line'
-                    }).selector(':selected').css({
-                        'background-color': '#0169D9',
-                        'line-color': '#0169D9',
-                        'source-arrow-color': '#0169D9',
-                        'target-arrow-color': '#0169D9',
-                        'mid-source-arrow-color': '#0169D9',
-                        'mid-target-arrow-color': '#0169D9'
-                    }).selector(':parent:selected').css({
-                        'background-color': '#CCE1F9',
-                        'border-color': '#aec8e5'
-                    }).selector(':active').css({
-                        'overlay-color': 'black',
-                        'overlay-padding': 10,
-                        'overlay-opacity': 0.25
-                    });
-                    this.defaultLength = this.length;
-                };
+  context.arcTo(x + halfWidth, y - halfHeight, x + halfWidth, y, cornerRadius); // Arc from right side to bottom
 
-                var styfn$7 = {}; // a caching layer for property parsing
+  context.arcTo(x + halfWidth, y + halfHeight, x, y + halfHeight, cornerRadius); // Arc from bottom to left side
 
-                styfn$7.parse = function (name, value, propIsBypass, propIsFlat) {
-                    var self = this; // function values can't be cached in all cases, and there isn't much benefit of caching them anyway
+  context.arcTo(x - halfWidth, y + halfHeight, x - halfWidth, y, cornerRadius); // Arc from left side to topBorder
 
-                    if (fn(value)) {
-                        return self.parseImplWarn(name, value, propIsBypass, propIsFlat);
-                    }
+  context.arcTo(x - halfWidth, y - halfHeight, x, y - halfHeight, cornerRadius); // Join line
 
-                    var flatKey = propIsFlat === 'mapping' || propIsFlat === true || propIsFlat === false || propIsFlat == null ? 'dontcare' : propIsFlat;
-                    var bypassKey = propIsBypass ? 't' : 'f';
-                    var valueKey = '' + value;
-                    var argHash = hashStrings(name, valueKey, bypassKey, flatKey);
-                    var propCache = self.propCache = self.propCache || [];
-                    var ret;
+  context.lineTo(x, y - halfHeight);
+  context.closePath();
+};
 
-                    if (!(ret = propCache[argHash])) {
-                        ret = propCache[argHash] = self.parseImplWarn(name, value, propIsBypass, propIsFlat);
-                    } // - bypasses can't be shared b/c the value can be changed by animations or otherwise overridden
-                    // - mappings can't be shared b/c mappings are per-element
+CRp$7.drawBottomRoundRectanglePath = function (context, x, y, width, height) {
+  var halfWidth = width / 2;
+  var halfHeight = height / 2;
+  var cornerRadius = getRoundRectangleRadius(width, height);
 
+  if (context.beginPath) {
+    context.beginPath();
+  } // Start at top middle
 
-                    if (propIsBypass || propIsFlat === 'mapping') {
-                        // need a copy since props are mutated later in their lifecycles
-                        ret = copy(ret);
 
-                        if (ret) {
-                            ret.value = copy(ret.value); // because it could be an array, e.g. colour
-                        }
-                    }
+  context.moveTo(x, y - halfHeight);
+  context.lineTo(x + halfWidth, y - halfHeight);
+  context.lineTo(x + halfWidth, y);
+  context.arcTo(x + halfWidth, y + halfHeight, x, y + halfHeight, cornerRadius);
+  context.arcTo(x - halfWidth, y + halfHeight, x - halfWidth, y, cornerRadius);
+  context.lineTo(x - halfWidth, y - halfHeight);
+  context.lineTo(x, y - halfHeight);
+  context.closePath();
+};
 
-                    return ret;
-                };
+CRp$7.drawCutRectanglePath = function (context, x, y, width, height) {
+  var halfWidth = width / 2;
+  var halfHeight = height / 2;
+  var cornerLength = getCutRectangleCornerLength();
 
-                styfn$7.parseImplWarn = function (name, value, propIsBypass, propIsFlat) {
-                    var prop = this.parseImpl(name, value, propIsBypass, propIsFlat);
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                    if (!prop && value != null) {
-                        warn("The style property `".concat(name, ": ").concat(value, "` is invalid"));
-                    }
+  context.moveTo(x - halfWidth + cornerLength, y - halfHeight);
+  context.lineTo(x + halfWidth - cornerLength, y - halfHeight);
+  context.lineTo(x + halfWidth, y - halfHeight + cornerLength);
+  context.lineTo(x + halfWidth, y + halfHeight - cornerLength);
+  context.lineTo(x + halfWidth - cornerLength, y + halfHeight);
+  context.lineTo(x - halfWidth + cornerLength, y + halfHeight);
+  context.lineTo(x - halfWidth, y + halfHeight - cornerLength);
+  context.lineTo(x - halfWidth, y - halfHeight + cornerLength);
+  context.closePath();
+};
+
+CRp$7.drawBarrelPath = function (context, x, y, width, height) {
+  var halfWidth = width / 2;
+  var halfHeight = height / 2;
+  var xBegin = x - halfWidth;
+  var xEnd = x + halfWidth;
+  var yBegin = y - halfHeight;
+  var yEnd = y + halfHeight;
+  var barrelCurveConstants = getBarrelCurveConstants(width, height);
+  var wOffset = barrelCurveConstants.widthOffset;
+  var hOffset = barrelCurveConstants.heightOffset;
+  var ctrlPtXOffset = barrelCurveConstants.ctrlPtOffsetPct * wOffset;
+
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                    if (prop && (prop.name === 'width' || prop.name === 'height') && value === 'label') {
-                        warn('The style value of `label` is deprecated for `' + prop.name + '`');
-                    }
+  context.moveTo(xBegin, yBegin + hOffset);
+  context.lineTo(xBegin, yEnd - hOffset);
+  context.quadraticCurveTo(xBegin + ctrlPtXOffset, yEnd, xBegin + wOffset, yEnd);
+  context.lineTo(xEnd - wOffset, yEnd);
+  context.quadraticCurveTo(xEnd - ctrlPtXOffset, yEnd, xEnd, yEnd - hOffset);
+  context.lineTo(xEnd, yBegin + hOffset);
+  context.quadraticCurveTo(xEnd - ctrlPtXOffset, yBegin, xEnd - wOffset, yBegin);
+  context.lineTo(xBegin + wOffset, yBegin);
+  context.quadraticCurveTo(xBegin + ctrlPtXOffset, yBegin, xBegin, yBegin + hOffset);
+  context.closePath();
+};
+
+var sin0 = Math.sin(0);
+var cos0 = Math.cos(0);
+var sin = {};
+var cos = {};
+var ellipseStepSize = Math.PI / 40;
+
+for (var i = 0 * Math.PI; i < 2 * Math.PI; i += ellipseStepSize) {
+  sin[i] = Math.sin(i);
+  cos[i] = Math.cos(i);
+}
+
+CRp$7.drawEllipsePath = function (context, centerX, centerY, width, height) {
+  if (context.beginPath) {
+    context.beginPath();
+  }
 
-                    return prop;
-                }; // parse a property; return null on invalid; return parsed property otherwise
-// fields :
-// - name : the name of the property
-// - value : the parsed, native-typed value of the property
-// - strValue : a string value that represents the property value in valid css
-// - bypass : true iff the property is a bypass property
+  if (context.ellipse) {
+    context.ellipse(centerX, centerY, width / 2, height / 2, 0, 0, 2 * Math.PI);
+  } else {
+    var xPos, yPos;
+    var rw = width / 2;
+    var rh = height / 2;
+
+    for (var i = 0 * Math.PI; i < 2 * Math.PI; i += ellipseStepSize) {
+      xPos = centerX - rw * sin[i] * sin0 + rw * cos[i] * cos0;
+      yPos = centerY + rh * cos[i] * sin0 + rh * sin[i] * cos0;
+
+      if (i === 0) {
+        context.moveTo(xPos, yPos);
+      } else {
+        context.lineTo(xPos, yPos);
+      }
+    }
+  }
 
+  context.closePath();
+};
+
+/* global atob, ArrayBuffer, Uint8Array, Blob */
+var CRp$8 = {};
+
+CRp$8.createBuffer = function (w, h) {
+  var buffer = document.createElement('canvas'); // eslint-disable-line no-undef
+
+  buffer.width = w;
+  buffer.height = h;
+  return [buffer, buffer.getContext('2d')];
+};
+
+CRp$8.bufferCanvasImage = function (options) {
+  var cy = this.cy;
+  var eles = cy.mutableElements();
+  var bb = eles.boundingBox();
+  var ctrRect = this.findContainerClientCoords();
+  var width = options.full ? Math.ceil(bb.w) : ctrRect[2];
+  var height = options.full ? Math.ceil(bb.h) : ctrRect[3];
+  var specdMaxDims = number(options.maxWidth) || number(options.maxHeight);
+  var pxRatio = this.getPixelRatio();
+  var scale = 1;
+
+  if (options.scale !== undefined) {
+    width *= options.scale;
+    height *= options.scale;
+    scale = options.scale;
+  } else if (specdMaxDims) {
+    var maxScaleW = Infinity;
+    var maxScaleH = Infinity;
+
+    if (number(options.maxWidth)) {
+      maxScaleW = scale * options.maxWidth / width;
+    }
 
-                styfn$7.parseImpl = function (name, value, propIsBypass, propIsFlat) {
-                    var self = this;
-                    name = camel2dash(name); // make sure the property name is in dash form (e.g. 'property-name' not 'propertyName')
+    if (number(options.maxHeight)) {
+      maxScaleH = scale * options.maxHeight / height;
+    }
 
-                    var property = self.properties[name];
-                    var passedValue = value;
-                    var types = self.types;
+    scale = Math.min(maxScaleW, maxScaleH);
+    width *= scale;
+    height *= scale;
+  }
 
-                    if (!property) {
-                        return null;
-                    } // return null on property of unknown name
+  if (!specdMaxDims) {
+    width *= pxRatio;
+    height *= pxRatio;
+    scale *= pxRatio;
+  }
 
+  var buffCanvas = document.createElement('canvas'); // eslint-disable-line no-undef
+
+  buffCanvas.width = width;
+  buffCanvas.height = height;
+  buffCanvas.style.width = width + 'px';
+  buffCanvas.style.height = height + 'px';
+  var buffCxt = buffCanvas.getContext('2d'); // Rasterize the layers, but only if container has nonzero size
+
+  if (width > 0 && height > 0) {
+    buffCxt.clearRect(0, 0, width, height);
+    buffCxt.globalCompositeOperation = 'source-over';
+    var zsortedEles = this.getCachedZSortedEles();
+
+    if (options.full) {
+      // draw the full bounds of the graph
+      buffCxt.translate(-bb.x1 * scale, -bb.y1 * scale);
+      buffCxt.scale(scale, scale);
+      this.drawElements(buffCxt, zsortedEles);
+      buffCxt.scale(1 / scale, 1 / scale);
+      buffCxt.translate(bb.x1 * scale, bb.y1 * scale);
+    } else {
+      // draw the current view
+      var pan = cy.pan();
+      var translation = {
+        x: pan.x * scale,
+        y: pan.y * scale
+      };
+      scale *= cy.zoom();
+      buffCxt.translate(translation.x, translation.y);
+      buffCxt.scale(scale, scale);
+      this.drawElements(buffCxt, zsortedEles);
+      buffCxt.scale(1 / scale, 1 / scale);
+      buffCxt.translate(-translation.x, -translation.y);
+    } // need to fill bg at end like this in order to fill cleared transparent pixels in jpgs
+
+
+    if (options.bg) {
+      buffCxt.globalCompositeOperation = 'destination-over';
+      buffCxt.fillStyle = options.bg;
+      buffCxt.rect(0, 0, width, height);
+      buffCxt.fill();
+    }
+  }
 
-                    if (value === undefined) {
-                        return null;
-                    } // can't assign undefined
-                    // the property may be an alias
+  return buffCanvas;
+};
 
+function b64ToBlob(b64, mimeType) {
+  var bytes = atob(b64);
+  var buff = new ArrayBuffer(bytes.length);
+  var buffUint8 = new Uint8Array(buff);
 
-                    if (property.alias) {
-                        property = property.pointsTo;
-                        name = property.name;
-                    }
+  for (var i = 0; i < bytes.length; i++) {
+    buffUint8[i] = bytes.charCodeAt(i);
+  }
 
-                    var valueIsString = string(value);
+  return new Blob([buff], {
+    type: mimeType
+  });
+}
+
+function b64UriToB64(b64uri) {
+  var i = b64uri.indexOf(',');
+  return b64uri.substr(i + 1);
+}
+
+function output(options, canvas, mimeType) {
+  var getB64Uri = function getB64Uri() {
+    return canvas.toDataURL(mimeType, options.quality);
+  };
+
+  switch (options.output) {
+    case 'blob-promise':
+      return new Promise$1(function (resolve, reject) {
+        try {
+          canvas.toBlob(function (blob) {
+            if (blob != null) {
+              resolve(blob);
+            } else {
+              reject(new Error('`canvas.toBlob()` sent a null value in its callback'));
+            }
+          }, mimeType, options.quality);
+        } catch (err) {
+          reject(err);
+        }
+      });
 
-                    if (valueIsString) {
-                        // trim the value to make parsing easier
-                        value = value.trim();
-                    }
+    case 'blob':
+      return b64ToBlob(b64UriToB64(getB64Uri()), mimeType);
 
-                    var type = property.type;
+    case 'base64':
+      return b64UriToB64(getB64Uri());
 
-                    if (!type) {
-                        return null;
-                    } // no type, no luck
-                    // check if bypass is null or empty string (i.e. indication to delete bypass property)
+    case 'base64uri':
+    default:
+      return getB64Uri();
+  }
+}
 
+CRp$8.png = function (options) {
+  return output(options, this.bufferCanvasImage(options), 'image/png');
+};
 
-                    if (propIsBypass && (value === '' || value === null)) {
-                        return {
-                            name: name,
-                            value: value,
-                            bypass: true,
-                            deleteBypass: true
-                        };
-                    } // check if value is a function used as a mapper
+CRp$8.jpg = function (options) {
+  return output(options, this.bufferCanvasImage(options), 'image/jpeg');
+};
 
+var CRp$9 = {};
 
-                    if (fn(value)) {
-                        return {
-                            name: name,
-                            value: value,
-                            strValue: 'fn',
-                            mapped: types.fn,
-                            bypass: propIsBypass
-                        };
-                    } // check if value is mapped
+CRp$9.nodeShapeImpl = function (name, context, centerX, centerY, width, height, points) {
+  switch (name) {
+    case 'ellipse':
+      return this.drawEllipsePath(context, centerX, centerY, width, height);
 
+    case 'polygon':
+      return this.drawPolygonPath(context, centerX, centerY, width, height, points);
 
-                    var data, mapData;
+    case 'round-polygon':
+      return this.drawRoundPolygonPath(context, centerX, centerY, width, height, points);
 
-                    if (!valueIsString || propIsFlat || value.length < 7 || value[1] !== 'a') ; else if (value.length >= 7 && value[0] === 'd' && (data = new RegExp(types.data.regex).exec(value))) {
-                        if (propIsBypass) {
-                            return false;
-                        } // mappers not allowed in bypass
+    case 'roundrectangle':
+    case 'round-rectangle':
+      return this.drawRoundRectanglePath(context, centerX, centerY, width, height);
 
+    case 'cutrectangle':
+    case 'cut-rectangle':
+      return this.drawCutRectanglePath(context, centerX, centerY, width, height);
 
-                        var mapped = types.data;
-                        return {
-                            name: name,
-                            value: data,
-                            strValue: '' + value,
-                            mapped: mapped,
-                            field: data[1],
-                            bypass: propIsBypass
-                        };
-                    } else if (value.length >= 10 && value[0] === 'm' && (mapData = new RegExp(types.mapData.regex).exec(value))) {
-                        if (propIsBypass) {
-                            return false;
-                        } // mappers not allowed in bypass
+    case 'bottomroundrectangle':
+    case 'bottom-round-rectangle':
+      return this.drawBottomRoundRectanglePath(context, centerX, centerY, width, height);
 
+    case 'barrel':
+      return this.drawBarrelPath(context, centerX, centerY, width, height);
+  }
+};
+
+var CR = CanvasRenderer;
+var CRp$a = CanvasRenderer.prototype;
+CRp$a.CANVAS_LAYERS = 3; //
+
+CRp$a.SELECT_BOX = 0;
+CRp$a.DRAG = 1;
+CRp$a.NODE = 2;
+CRp$a.BUFFER_COUNT = 3; //
+
+CRp$a.TEXTURE_BUFFER = 0;
+CRp$a.MOTIONBLUR_BUFFER_NODE = 1;
+CRp$a.MOTIONBLUR_BUFFER_DRAG = 2;
+
+function CanvasRenderer(options) {
+  var r = this;
+  r.data = {
+    canvases: new Array(CRp$a.CANVAS_LAYERS),
+    contexts: new Array(CRp$a.CANVAS_LAYERS),
+    canvasNeedsRedraw: new Array(CRp$a.CANVAS_LAYERS),
+    bufferCanvases: new Array(CRp$a.BUFFER_COUNT),
+    bufferContexts: new Array(CRp$a.CANVAS_LAYERS)
+  };
+  var tapHlOffAttr = '-webkit-tap-highlight-color';
+  var tapHlOffStyle = 'rgba(0,0,0,0)';
+  r.data.canvasContainer = document.createElement('div'); // eslint-disable-line no-undef
+
+  var containerStyle = r.data.canvasContainer.style;
+  r.data.canvasContainer.style[tapHlOffAttr] = tapHlOffStyle;
+  containerStyle.position = 'relative';
+  containerStyle.zIndex = '0';
+  containerStyle.overflow = 'hidden';
+  var container = options.cy.container();
+  container.appendChild(r.data.canvasContainer);
+  container.style[tapHlOffAttr] = tapHlOffStyle;
+  var styleMap = {
+    '-webkit-user-select': 'none',
+    '-moz-user-select': '-moz-none',
+    'user-select': 'none',
+    '-webkit-tap-highlight-color': 'rgba(0,0,0,0)',
+    'outline-style': 'none'
+  };
+
+  if (ms()) {
+    styleMap['-ms-touch-action'] = 'none';
+    styleMap['touch-action'] = 'none';
+  }
 
-                        if (type.multiple) {
-                            return false;
-                        } // impossible to map to num
+  for (var i = 0; i < CRp$a.CANVAS_LAYERS; i++) {
+    var canvas = r.data.canvases[i] = document.createElement('canvas'); // eslint-disable-line no-undef
+
+    r.data.contexts[i] = canvas.getContext('2d');
+    Object.keys(styleMap).forEach(function (k) {
+      canvas.style[k] = styleMap[k];
+    });
+    canvas.style.position = 'absolute';
+    canvas.setAttribute('data-id', 'layer' + i);
+    canvas.style.zIndex = String(CRp$a.CANVAS_LAYERS - i);
+    r.data.canvasContainer.appendChild(canvas);
+    r.data.canvasNeedsRedraw[i] = false;
+  }
 
+  r.data.topCanvas = r.data.canvases[0];
+  r.data.canvases[CRp$a.NODE].setAttribute('data-id', 'layer' + CRp$a.NODE + '-node');
+  r.data.canvases[CRp$a.SELECT_BOX].setAttribute('data-id', 'layer' + CRp$a.SELECT_BOX + '-selectbox');
+  r.data.canvases[CRp$a.DRAG].setAttribute('data-id', 'layer' + CRp$a.DRAG + '-drag');
 
-                        var _mapped = types.mapData; // we can map only if the type is a colour or a number
+  for (var i = 0; i < CRp$a.BUFFER_COUNT; i++) {
+    r.data.bufferCanvases[i] = document.createElement('canvas'); // eslint-disable-line no-undef
 
-                        if (!(type.color || type.number)) {
-                            return false;
-                        }
+    r.data.bufferContexts[i] = r.data.bufferCanvases[i].getContext('2d');
+    r.data.bufferCanvases[i].style.position = 'absolute';
+    r.data.bufferCanvases[i].setAttribute('data-id', 'buffer' + i);
+    r.data.bufferCanvases[i].style.zIndex = String(-i - 1);
+    r.data.bufferCanvases[i].style.visibility = 'hidden'; //r.data.canvasContainer.appendChild(r.data.bufferCanvases[i]);
+  }
 
-                        var valueMin = this.parse(name, mapData[4]); // parse to validate
+  r.pathsEnabled = true;
+  var emptyBb = makeBoundingBox();
+
+  var getBoxCenter = function getBoxCenter(bb) {
+    return {
+      x: (bb.x1 + bb.x2) / 2,
+      y: (bb.y1 + bb.y2) / 2
+    };
+  };
+
+  var getCenterOffset = function getCenterOffset(bb) {
+    return {
+      x: -bb.w / 2,
+      y: -bb.h / 2
+    };
+  };
+
+  var backgroundTimestampHasChanged = function backgroundTimestampHasChanged(ele) {
+    var _p = ele[0]._private;
+    var same = _p.oldBackgroundTimestamp === _p.backgroundTimestamp;
+    return !same;
+  };
+
+  var getStyleKey = function getStyleKey(ele) {
+    return ele[0]._private.nodeKey;
+  };
+
+  var getLabelKey = function getLabelKey(ele) {
+    return ele[0]._private.labelStyleKey;
+  };
+
+  var getSourceLabelKey = function getSourceLabelKey(ele) {
+    return ele[0]._private.sourceLabelStyleKey;
+  };
+
+  var getTargetLabelKey = function getTargetLabelKey(ele) {
+    return ele[0]._private.targetLabelStyleKey;
+  };
+
+  var drawElement = function drawElement(context, ele, bb, scaledLabelShown, useEleOpacity) {
+    return r.drawElement(context, ele, bb, false, false, useEleOpacity);
+  };
+
+  var drawLabel = function drawLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
+    return r.drawElementText(context, ele, bb, scaledLabelShown, 'main', useEleOpacity);
+  };
+
+  var drawSourceLabel = function drawSourceLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
+    return r.drawElementText(context, ele, bb, scaledLabelShown, 'source', useEleOpacity);
+  };
+
+  var drawTargetLabel = function drawTargetLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
+    return r.drawElementText(context, ele, bb, scaledLabelShown, 'target', useEleOpacity);
+  };
+
+  var getElementBox = function getElementBox(ele) {
+    ele.boundingBox();
+    return ele[0]._private.bodyBounds;
+  };
+
+  var getLabelBox = function getLabelBox(ele) {
+    ele.boundingBox();
+    return ele[0]._private.labelBounds.main || emptyBb;
+  };
+
+  var getSourceLabelBox = function getSourceLabelBox(ele) {
+    ele.boundingBox();
+    return ele[0]._private.labelBounds.source || emptyBb;
+  };
+
+  var getTargetLabelBox = function getTargetLabelBox(ele) {
+    ele.boundingBox();
+    return ele[0]._private.labelBounds.target || emptyBb;
+  };
+
+  var isLabelVisibleAtScale = function isLabelVisibleAtScale(ele, scaledLabelShown) {
+    return scaledLabelShown;
+  };
+
+  var getElementRotationPoint = function getElementRotationPoint(ele) {
+    return getBoxCenter(getElementBox(ele));
+  };
+
+  var addTextMargin = function addTextMargin(prefix, pt, ele) {
+    var pre = prefix ? prefix + '-' : '';
+    return {
+      x: pt.x + ele.pstyle(pre + 'text-margin-x').pfValue,
+      y: pt.y + ele.pstyle(pre + 'text-margin-y').pfValue
+    };
+  };
+
+  var getRsPt = function getRsPt(ele, x, y) {
+    var rs = ele[0]._private.rscratch;
+    return {
+      x: rs[x],
+      y: rs[y]
+    };
+  };
+
+  var getLabelRotationPoint = function getLabelRotationPoint(ele) {
+    return addTextMargin('', getRsPt(ele, 'labelX', 'labelY'), ele);
+  };
+
+  var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) {
+    return addTextMargin('source', getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
+  };
+
+  var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) {
+    return addTextMargin('target', getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
+  };
+
+  var getElementRotationOffset = function getElementRotationOffset(ele) {
+    return getCenterOffset(getElementBox(ele));
+  };
+
+  var getSourceLabelRotationOffset = function getSourceLabelRotationOffset(ele) {
+    return getCenterOffset(getSourceLabelBox(ele));
+  };
+
+  var getTargetLabelRotationOffset = function getTargetLabelRotationOffset(ele) {
+    return getCenterOffset(getTargetLabelBox(ele));
+  };
+
+  var getLabelRotationOffset = function getLabelRotationOffset(ele) {
+    var bb = getLabelBox(ele);
+    var p = getCenterOffset(getLabelBox(ele));
+
+    if (ele.isNode()) {
+      switch (ele.pstyle('text-halign').value) {
+        case 'left':
+          p.x = -bb.w;
+          break;
+
+        case 'right':
+          p.x = 0;
+          break;
+      }
+
+      switch (ele.pstyle('text-valign').value) {
+        case 'top':
+          p.y = -bb.h;
+          break;
+
+        case 'bottom':
+          p.y = 0;
+          break;
+      }
+    }
 
-                        if (!valueMin || valueMin.mapped) {
-                            return false;
-                        } // can't be invalid or mapped
+    return p;
+  };
+
+  var eleTxrCache = r.data.eleTxrCache = new ElementTextureCache(r, {
+    getKey: getStyleKey,
+    doesEleInvalidateKey: backgroundTimestampHasChanged,
+    drawElement: drawElement,
+    getBoundingBox: getElementBox,
+    getRotationPoint: getElementRotationPoint,
+    getRotationOffset: getElementRotationOffset,
+    allowEdgeTxrCaching: false,
+    allowParentTxrCaching: false
+  });
+  var lblTxrCache = r.data.lblTxrCache = new ElementTextureCache(r, {
+    getKey: getLabelKey,
+    drawElement: drawLabel,
+    getBoundingBox: getLabelBox,
+    getRotationPoint: getLabelRotationPoint,
+    getRotationOffset: getLabelRotationOffset,
+    isVisible: isLabelVisibleAtScale
+  });
+  var slbTxrCache = r.data.slbTxrCache = new ElementTextureCache(r, {
+    getKey: getSourceLabelKey,
+    drawElement: drawSourceLabel,
+    getBoundingBox: getSourceLabelBox,
+    getRotationPoint: getSourceLabelRotationPoint,
+    getRotationOffset: getSourceLabelRotationOffset,
+    isVisible: isLabelVisibleAtScale
+  });
+  var tlbTxrCache = r.data.tlbTxrCache = new ElementTextureCache(r, {
+    getKey: getTargetLabelKey,
+    drawElement: drawTargetLabel,
+    getBoundingBox: getTargetLabelBox,
+    getRotationPoint: getTargetLabelRotationPoint,
+    getRotationOffset: getTargetLabelRotationOffset,
+    isVisible: isLabelVisibleAtScale
+  });
+  var lyrTxrCache = r.data.lyrTxrCache = new LayeredTextureCache(r);
+  r.onUpdateEleCalcs(function invalidateTextureCaches(willDraw, eles) {
+    // each cache should check for sub-key diff to see that the update affects that cache particularly
+    eleTxrCache.invalidateElements(eles);
+    lblTxrCache.invalidateElements(eles);
+    slbTxrCache.invalidateElements(eles);
+    tlbTxrCache.invalidateElements(eles); // any change invalidates the layers
+
+    lyrTxrCache.invalidateElements(eles); // update the old bg timestamp so diffs can be done in the ele txr caches
+
+    for (var _i = 0; _i < eles.length; _i++) {
+      var _p = eles[_i]._private;
+      _p.oldBackgroundTimestamp = _p.backgroundTimestamp;
+    }
+  });
 
+  var refineInLayers = function refineInLayers(reqs) {
+    for (var i = 0; i < reqs.length; i++) {
+      lyrTxrCache.enqueueElementRefinement(reqs[i].ele);
+    }
+  };
 
-                        var valueMax = this.parse(name, mapData[5]); // parse to validate
+  eleTxrCache.onDequeue(refineInLayers);
+  lblTxrCache.onDequeue(refineInLayers);
+  slbTxrCache.onDequeue(refineInLayers);
+  tlbTxrCache.onDequeue(refineInLayers);
+}
 
-                        if (!valueMax || valueMax.mapped) {
-                            return false;
-                        } // can't be invalid or mapped
-                        // check if valueMin and valueMax are the same
+CRp$a.redrawHint = function (group, bool) {
+  var r = this;
 
+  switch (group) {
+    case 'eles':
+      r.data.canvasNeedsRedraw[CRp$a.NODE] = bool;
+      break;
 
-                        if (valueMin.pfValue === valueMax.pfValue || valueMin.strValue === valueMax.strValue) {
-                            warn('`' + name + ': ' + value + '` is not a valid mapper because the output range is zero; converting to `' + name + ': ' + valueMin.strValue + '`');
-                            return this.parse(name, valueMin.strValue); // can't make much of a mapper without a range
-                        } else if (type.color) {
-                            var c1 = valueMin.value;
-                            var c2 = valueMax.value;
-                            var same = c1[0] === c2[0] // red
-                                && c1[1] === c2[1] // green
-                                && c1[2] === c2[2] // blue
-                                && ( // optional alpha
-                                    c1[3] === c2[3] // same alpha outright
-                                    || (c1[3] == null || c1[3] === 1) && ( // full opacity for colour 1?
-                                        c2[3] == null || c2[3] === 1) // full opacity for colour 2?
-                                );
+    case 'drag':
+      r.data.canvasNeedsRedraw[CRp$a.DRAG] = bool;
+      break;
 
-                            if (same) {
-                                return false;
-                            } // can't make a mapper without a range
+    case 'select':
+      r.data.canvasNeedsRedraw[CRp$a.SELECT_BOX] = bool;
+      break;
+  }
+}; // whether to use Path2D caching for drawing
 
-                        }
 
-                        return {
-                            name: name,
-                            value: mapData,
-                            strValue: '' + value,
-                            mapped: _mapped,
-                            field: mapData[1],
-                            fieldMin: parseFloat(mapData[2]),
-                            // min & max are numeric
-                            fieldMax: parseFloat(mapData[3]),
-                            valueMin: valueMin.value,
-                            valueMax: valueMax.value,
-                            bypass: propIsBypass
-                        };
-                    }
+var pathsImpld = typeof Path2D !== 'undefined';
 
-                    if (type.multiple && propIsFlat !== 'multiple') {
-                        var vals;
+CRp$a.path2dEnabled = function (on) {
+  if (on === undefined) {
+    return this.pathsEnabled;
+  }
 
-                        if (valueIsString) {
-                            vals = value.split(/\s+/);
-                        } else if (array(value)) {
-                            vals = value;
-                        } else {
-                            vals = [value];
-                        }
+  this.pathsEnabled = on ? true : false;
+};
 
-                        if (type.evenMultiple && vals.length % 2 !== 0) {
-                            return null;
-                        }
+CRp$a.usePaths = function () {
+  return pathsImpld && this.pathsEnabled;
+};
 
-                        var valArr = [];
-                        var unitsArr = [];
-                        var pfValArr = [];
-                        var strVal = '';
-                        var hasEnum = false;
-
-                        for (var i = 0; i < vals.length; i++) {
-                            var p = self.parse(name, vals[i], propIsBypass, 'multiple');
-                            hasEnum = hasEnum || string(p.value);
-                            valArr.push(p.value);
-                            pfValArr.push(p.pfValue != null ? p.pfValue : p.value);
-                            unitsArr.push(p.units);
-                            strVal += (i > 0 ? ' ' : '') + p.strValue;
-                        }
+CRp$a.setImgSmoothing = function (context, bool) {
+  if (context.imageSmoothingEnabled != null) {
+    context.imageSmoothingEnabled = bool;
+  } else {
+    context.webkitImageSmoothingEnabled = bool;
+    context.mozImageSmoothingEnabled = bool;
+    context.msImageSmoothingEnabled = bool;
+  }
+};
 
-                        if (type.validate && !type.validate(valArr, unitsArr)) {
-                            return null;
-                        }
+CRp$a.getImgSmoothing = function (context) {
+  if (context.imageSmoothingEnabled != null) {
+    return context.imageSmoothingEnabled;
+  } else {
+    return context.webkitImageSmoothingEnabled || context.mozImageSmoothingEnabled || context.msImageSmoothingEnabled;
+  }
+};
 
-                        if (type.singleEnum && hasEnum) {
-                            if (valArr.length === 1 && string(valArr[0])) {
-                                return {
-                                    name: name,
-                                    value: valArr[0],
-                                    strValue: valArr[0],
-                                    bypass: propIsBypass
-                                };
-                            } else {
-                                return null;
-                            }
-                        }
+CRp$a.makeOffscreenCanvas = function (width, height) {
+  var canvas;
 
-                        return {
-                            name: name,
-                            value: valArr,
-                            pfValue: pfValArr,
-                            strValue: strVal,
-                            bypass: propIsBypass,
-                            units: unitsArr
-                        };
-                    } // several types also allow enums
-
-
-                    var checkEnums = function checkEnums() {
-                        for (var _i = 0; _i < type.enums.length; _i++) {
-                            var en = type.enums[_i];
-
-                            if (en === value) {
-                                return {
-                                    name: name,
-                                    value: value,
-                                    strValue: '' + value,
-                                    bypass: propIsBypass
-                                };
-                            }
-                        }
+  if ((typeof OffscreenCanvas === "undefined" ? "undefined" : _typeof(OffscreenCanvas)) !== ( "undefined" )) {
+    canvas = new OffscreenCanvas(width, height);
+  } else {
+    canvas = document.createElement('canvas'); // eslint-disable-line no-undef
 
-                        return null;
-                    }; // check the type and return the appropriate object
+    canvas.width = width;
+    canvas.height = height;
+  }
 
+  return canvas;
+};
+
+[CRp, CRp$1, CRp$2, CRp$3, CRp$4, CRp$5, CRp$6, CRp$7, CRp$8, CRp$9].forEach(function (props) {
+  extend(CRp$a, props);
+});
+
+var renderer = [{
+  name: 'null',
+  impl: NullRenderer
+}, {
+  name: 'base',
+  impl: BR
+}, {
+  name: 'canvas',
+  impl: CR
+}];
+
+var incExts = [{
+  type: 'layout',
+  extensions: layout
+}, {
+  type: 'renderer',
+  extensions: renderer
+}];
+
+var extensions = {}; // registered modules for extensions, indexed by name
+
+var modules = {};
+
+function setExtension(type, name, registrant) {
+  var ext = registrant;
+
+  var overrideErr = function overrideErr(field) {
+    error('Can not register `' + name + '` for `' + type + '` since `' + field + '` already exists in the prototype and can not be overridden');
+  };
+
+  if (type === 'core') {
+    if (Core.prototype[name]) {
+      return overrideErr(name);
+    } else {
+      Core.prototype[name] = registrant;
+    }
+  } else if (type === 'collection') {
+    if (Collection.prototype[name]) {
+      return overrideErr(name);
+    } else {
+      Collection.prototype[name] = registrant;
+    }
+  } else if (type === 'layout') {
+    // fill in missing layout functions in the prototype
+    var Layout = function Layout(options) {
+      this.options = options;
+      registrant.call(this, options); // make sure layout has _private for use w/ std apis like .on()
+
+      if (!plainObject(this._private)) {
+        this._private = {};
+      }
+
+      this._private.cy = options.cy;
+      this._private.listeners = [];
+      this.createEmitter();
+    };
+
+    var layoutProto = Layout.prototype = Object.create(registrant.prototype);
+    var optLayoutFns = [];
+
+    for (var i = 0; i < optLayoutFns.length; i++) {
+      var fnName = optLayoutFns[i];
+
+      layoutProto[fnName] = layoutProto[fnName] || function () {
+        return this;
+      };
+    } // either .start() or .run() is defined, so autogen the other
+
+
+    if (layoutProto.start && !layoutProto.run) {
+      layoutProto.run = function () {
+        this.start();
+        return this;
+      };
+    } else if (!layoutProto.start && layoutProto.run) {
+      layoutProto.start = function () {
+        this.run();
+        return this;
+      };
+    }
 
-                    if (type.number) {
-                        var units;
-                        var implicitUnits = 'px'; // not set => px
+    var regStop = registrant.prototype.stop;
 
-                        if (type.units) {
-                            // use specified units if set
-                            units = type.units;
-                        }
+    layoutProto.stop = function () {
+      var opts = this.options;
 
-                        if (type.implicitUnits) {
-                            implicitUnits = type.implicitUnits;
-                        }
+      if (opts && opts.animate) {
+        var anis = this.animations;
 
-                        if (!type.unitless) {
-                            if (valueIsString) {
-                                var unitsRegex = 'px|em' + (type.allowPercent ? '|\\%' : '');
+        if (anis) {
+          for (var _i = 0; _i < anis.length; _i++) {
+            anis[_i].stop();
+          }
+        }
+      }
 
-                                if (units) {
-                                    unitsRegex = units;
-                                } // only allow explicit units if so set
+      if (regStop) {
+        regStop.call(this);
+      } else {
+        this.emit('layoutstop');
+      }
 
+      return this;
+    };
 
-                                var match = value.match('^(' + number$1 + ')(' + unitsRegex + ')?' + '$');
+    if (!layoutProto.destroy) {
+      layoutProto.destroy = function () {
+        return this;
+      };
+    }
 
-                                if (match) {
-                                    value = match[1];
-                                    units = match[2] || implicitUnits;
-                                }
-                            } else if (!units || type.implicitUnits) {
-                                units = implicitUnits; // implicitly px if unspecified
-                            }
-                        }
+    layoutProto.cy = function () {
+      return this._private.cy;
+    };
+
+    var getCy = function getCy(layout) {
+      return layout._private.cy;
+    };
+
+    var emitterOpts = {
+      addEventFields: function addEventFields(layout, evt) {
+        evt.layout = layout;
+        evt.cy = getCy(layout);
+        evt.target = layout;
+      },
+      bubble: function bubble() {
+        return true;
+      },
+      parent: function parent(layout) {
+        return getCy(layout);
+      }
+    };
+    extend(layoutProto, {
+      createEmitter: function createEmitter() {
+        this._private.emitter = new Emitter(emitterOpts, this);
+        return this;
+      },
+      emitter: function emitter() {
+        return this._private.emitter;
+      },
+      on: function on(evt, cb) {
+        this.emitter().on(evt, cb);
+        return this;
+      },
+      one: function one(evt, cb) {
+        this.emitter().one(evt, cb);
+        return this;
+      },
+      once: function once(evt, cb) {
+        this.emitter().one(evt, cb);
+        return this;
+      },
+      removeListener: function removeListener(evt, cb) {
+        this.emitter().removeListener(evt, cb);
+        return this;
+      },
+      removeAllListeners: function removeAllListeners() {
+        this.emitter().removeAllListeners();
+        return this;
+      },
+      emit: function emit(evt, params) {
+        this.emitter().emit(evt, params);
+        return this;
+      }
+    });
+    define$3.eventAliasesOn(layoutProto);
+    ext = Layout; // replace with our wrapped layout
+  } else if (type === 'renderer' && name !== 'null' && name !== 'base') {
+    // user registered renderers inherit from base
+    var BaseRenderer = getExtension('renderer', 'base');
+    var bProto = BaseRenderer.prototype;
+    var RegistrantRenderer = registrant;
+    var rProto = registrant.prototype;
+
+    var Renderer = function Renderer() {
+      BaseRenderer.apply(this, arguments);
+      RegistrantRenderer.apply(this, arguments);
+    };
+
+    var proto = Renderer.prototype;
+
+    for (var pName in bProto) {
+      var pVal = bProto[pName];
+      var existsInR = rProto[pName] != null;
+
+      if (existsInR) {
+        return overrideErr(pName);
+      }
+
+      proto[pName] = pVal; // take impl from base
+    }
 
-                        value = parseFloat(value); // if not a number and enums not allowed, then the value is invalid
+    for (var _pName in rProto) {
+      proto[_pName] = rProto[_pName]; // take impl from registrant
+    }
 
-                        if (isNaN(value) && type.enums === undefined) {
-                            return null;
-                        } // check if this number type also accepts special keywords in place of numbers
-                        // (i.e. `left`, `auto`, etc)
+    bProto.clientFunctions.forEach(function (name) {
+      proto[name] = proto[name] || function () {
+        error('Renderer does not implement `renderer.' + name + '()` on its prototype');
+      };
+    });
+    ext = Renderer;
+  }
 
+  return setMap({
+    map: extensions,
+    keys: [type, name],
+    value: ext
+  });
+}
+
+function getExtension(type, name) {
+  return getMap({
+    map: extensions,
+    keys: [type, name]
+  });
+}
+
+function setModule(type, name, moduleType, moduleName, registrant) {
+  return setMap({
+    map: modules,
+    keys: [type, name, moduleType, moduleName],
+    value: registrant
+  });
+}
+
+function getModule(type, name, moduleType, moduleName) {
+  return getMap({
+    map: modules,
+    keys: [type, name, moduleType, moduleName]
+  });
+}
+
+var extension = function extension() {
+  // e.g. extension('renderer', 'svg')
+  if (arguments.length === 2) {
+    return getExtension.apply(null, arguments);
+  } // e.g. extension('renderer', 'svg', { ... })
+  else if (arguments.length === 3) {
+      return setExtension.apply(null, arguments);
+    } // e.g. extension('renderer', 'svg', 'nodeShape', 'ellipse')
+    else if (arguments.length === 4) {
+        return getModule.apply(null, arguments);
+      } // e.g. extension('renderer', 'svg', 'nodeShape', 'ellipse', { ... })
+      else if (arguments.length === 5) {
+          return setModule.apply(null, arguments);
+        } else {
+          error('Invalid extension access syntax');
+        }
+}; // allows a core instance to access extensions internally
 
-                        if (isNaN(value) && type.enums !== undefined) {
-                            value = passedValue;
-                            return checkEnums();
-                        } // check if value must be an integer
 
+Core.prototype.extension = extension; // included extensions
 
-                        if (type.integer && !integer(value)) {
-                            return null;
-                        } // check value is within range
+incExts.forEach(function (group) {
+  group.extensions.forEach(function (ext) {
+    setExtension(group.type, ext.name, ext.impl);
+  });
+});
 
+// (useful for init)
 
-                        if (type.min !== undefined && (value < type.min || type.strictMin && value === type.min) || type.max !== undefined && (value > type.max || type.strictMax && value === type.max)) {
-                            return null;
-                        }
+var Stylesheet = function Stylesheet() {
+  if (!(this instanceof Stylesheet)) {
+    return new Stylesheet();
+  }
 
-                        var ret = {
-                            name: name,
-                            value: value,
-                            strValue: '' + value + (units ? units : ''),
-                            units: units,
-                            bypass: propIsBypass
-                        }; // normalise value in pixels
+  this.length = 0;
+};
 
-                        if (type.unitless || units !== 'px' && units !== 'em') {
-                            ret.pfValue = value;
-                        } else {
-                            ret.pfValue = units === 'px' || !units ? value : this.getEmSizeInPixels() * value;
-                        } // normalise value in ms
+var sheetfn = Stylesheet.prototype;
 
+sheetfn.instanceString = function () {
+  return 'stylesheet';
+}; // just store the selector to be parsed later
 
-                        if (units === 'ms' || units === 's') {
-                            ret.pfValue = units === 'ms' ? value : 1000 * value;
-                        } // normalise value in rad
 
+sheetfn.selector = function (selector) {
+  var i = this.length++;
+  this[i] = {
+    selector: selector,
+    properties: []
+  };
+  return this; // chaining
+}; // just store the property to be parsed later
 
-                        if (units === 'deg' || units === 'rad') {
-                            ret.pfValue = units === 'rad' ? value : deg2rad(value);
-                        } // normalize value in %
 
+sheetfn.css = function (name, value) {
+  var i = this.length - 1;
 
-                        if (units === '%') {
-                            ret.pfValue = value / 100;
-                        }
+  if (string(name)) {
+    this[i].properties.push({
+      name: name,
+      value: value
+    });
+  } else if (plainObject(name)) {
+    var map = name;
+    var propNames = Object.keys(map);
 
-                        return ret;
-                    } else if (type.propList) {
-                        var props = [];
-                        var propsStr = '' + value;
+    for (var j = 0; j < propNames.length; j++) {
+      var key = propNames[j];
+      var mapVal = map[key];
 
-                        if (propsStr === 'none') ; else {
-                            // go over each prop
-                            var propsSplit = propsStr.split(/\s*,\s*|\s+/);
+      if (mapVal == null) {
+        continue;
+      }
 
-                            for (var _i2 = 0; _i2 < propsSplit.length; _i2++) {
-                                var propName = propsSplit[_i2].trim();
+      var prop = Style.properties[key] || Style.properties[dash2camel(key)];
 
-                                if (self.properties[propName]) {
-                                    props.push(propName);
-                                } else {
-                                    warn('`' + propName + '` is not a valid property name');
-                                }
-                            }
+      if (prop == null) {
+        continue;
+      }
 
-                            if (props.length === 0) {
-                                return null;
-                            }
-                        }
+      var _name = prop.name;
+      var _value = mapVal;
+      this[i].properties.push({
+        name: _name,
+        value: _value
+      });
+    }
+  }
 
-                        return {
-                            name: name,
-                            value: props,
-                            strValue: props.length === 0 ? 'none' : props.join(' '),
-                            bypass: propIsBypass
-                        };
-                    } else if (type.color) {
-                        var tuple = color2tuple(value);
-
-                        if (!tuple) {
-                            return null;
-                        }
+  return this; // chaining
+};
 
-                        return {
-                            name: name,
-                            value: tuple,
-                            pfValue: tuple,
-                            strValue: 'rgb(' + tuple[0] + ',' + tuple[1] + ',' + tuple[2] + ')',
-                            // n.b. no spaces b/c of multiple support
-                            bypass: propIsBypass
-                        };
-                    } else if (type.regex || type.regexes) {
-                        // first check enums
-                        if (type.enums) {
-                            var enumProp = checkEnums();
-
-                            if (enumProp) {
-                                return enumProp;
-                            }
-                        }
+sheetfn.style = sheetfn.css; // generate a real style object from the dummy stylesheet
 
-                        var regexes = type.regexes ? type.regexes : [type.regex];
+sheetfn.generateStyle = function (cy) {
+  var style = new Style(cy);
+  return this.appendToStyle(style);
+}; // append a dummy stylesheet object on a real style object
 
-                        for (var _i3 = 0; _i3 < regexes.length; _i3++) {
-                            var regex = new RegExp(regexes[_i3]); // make a regex from the type string
 
-                            var m = regex.exec(value);
+sheetfn.appendToStyle = function (style) {
+  for (var i = 0; i < this.length; i++) {
+    var context = this[i];
+    var selector = context.selector;
+    var props = context.properties;
+    style.selector(selector); // apply selector
 
-                            if (m) {
-                                // regex matches
-                                return {
-                                    name: name,
-                                    value: type.singleRegexMatchValue ? m[1] : m,
-                                    strValue: '' + value,
-                                    bypass: propIsBypass
-                                };
-                            }
-                        }
+    for (var j = 0; j < props.length; j++) {
+      var prop = props[j];
+      style.css(prop.name, prop.value); // apply property
+    }
+  }
 
-                        return null; // didn't match any
-                    } else if (type.string) {
-                        // just return
-                        return {
-                            name: name,
-                            value: '' + value,
-                            strValue: '' + value,
-                            bypass: propIsBypass
-                        };
-                    } else if (type.enums) {
-                        // check enums last because it's a combo type in others
-                        return checkEnums();
-                    } else {
-                        return null; // not a type we can handle
-                    }
-                };
+  return style;
+};
 
-                var Style = function Style(cy) {
-                    if (!(this instanceof Style)) {
-                        return new Style(cy);
-                    }
+var version = "3.16.2";
 
-                    if (!core(cy)) {
-                        error('A style must have a core reference');
-                        return;
-                    }
+var cytoscape = function cytoscape(options) {
+  // if no options specified, use default
+  if (options === undefined) {
+    options = {};
+  } // create instance
 
-                    this._private = {
-                        cy: cy,
-                        coreStyle: {}
-                    };
-                    this.length = 0;
-                    this.resetToDefault();
-                };
 
-                var styfn$8 = Style.prototype;
+  if (plainObject(options)) {
+    return new Core(options);
+  } // allow for registration of extensions
+  else if (string(options)) {
+      return extension.apply(extension, arguments);
+    }
+}; // e.g. cytoscape.use( require('cytoscape-foo'), bar )
 
-                styfn$8.instanceString = function () {
-                    return 'style';
-                }; // remove all contexts
 
+cytoscape.use = function (ext) {
+  var args = Array.prototype.slice.call(arguments, 1); // args to pass to ext
 
-                styfn$8.clear = function () {
-                    var _p = this._private;
-                    var cy = _p.cy;
-                    var eles = cy.elements();
+  args.unshift(cytoscape); // cytoscape is first arg to ext
 
-                    for (var i = 0; i < this.length; i++) {
-                        this[i] = undefined;
-                    }
+  ext.apply(null, args);
+  return this;
+};
 
-                    this.length = 0;
-                    _p.contextStyles = {};
-                    _p.propDiffs = {};
-                    this.cleanElements(eles, true);
-                    eles.forEach(function (ele) {
-                        var ele_p = ele[0]._private;
-                        ele_p.styleDirty = true;
-                        ele_p.appliedInitStyle = false;
-                    });
-                    return this; // chaining
-                };
+cytoscape.warnings = function (bool) {
+  return warnings(bool);
+}; // replaced by build system
 
-                styfn$8.resetToDefault = function () {
-                    this.clear();
-                    this.addDefaultStylesheet();
-                    return this;
-                }; // builds a style object for the 'core' selector
 
+cytoscape.version = version; // expose public apis (mostly for extensions)
 
-                styfn$8.core = function (propName) {
-                    return this._private.coreStyle[propName] || this.getDefaultProperty(propName);
-                }; // create a new context from the specified selector string and switch to that context
+cytoscape.stylesheet = cytoscape.Stylesheet = Stylesheet;
 
+module.exports = cytoscape;
 
-                styfn$8.selector = function (selectorStr) {
-                    // 'core' is a special case and does not need a selector
-                    var selector = selectorStr === 'core' ? null : new Selector(selectorStr);
-                    var i = this.length++; // new context means new index
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate))
 
-                    this[i] = {
-                        selector: selector,
-                        properties: [],
-                        mappedProperties: [],
-                        index: i
-                    };
-                    return this; // chaining
-                }; // add one or many css rules to the current context
+/***/ }),
 
+/***/ "./node_modules/dagre/index.js":
+/*!*************************************!*\
+  !*** ./node_modules/dagre/index.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                styfn$8.css = function () {
-                    var self = this;
-                    var args = arguments;
+/*
+Copyright (c) 2012-2014 Chris Pettitt
 
-                    if (args.length === 1) {
-                        var map = args[0];
-
-                        for (var i = 0; i < self.properties.length; i++) {
-                            var prop = self.properties[i];
-                            var mapVal = map[prop.name];
-
-                            if (mapVal === undefined) {
-                                mapVal = map[dash2camel(prop.name)];
-                            }
-
-                            if (mapVal !== undefined) {
-                                this.cssRule(prop.name, mapVal);
-                            }
-                        }
-                    } else if (args.length === 2) {
-                        this.cssRule(args[0], args[1]);
-                    } // do nothing if args are invalid
-
-
-                    return this; // chaining
-                };
-
-                styfn$8.style = styfn$8.css; // add a single css rule to the current context
-
-                styfn$8.cssRule = function (name, value) {
-                    // name-value pair
-                    var property = this.parse(name, value); // add property to current context if valid
-
-                    if (property) {
-                        var i = this.length - 1;
-                        this[i].properties.push(property);
-                        this[i].properties[property.name] = property; // allow access by name as well
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
-                        if (property.name.match(/pie-(\d+)-background-size/) && property.value) {
-                            this._private.hasPie = true;
-                        }
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
 
-                        if (property.mapped) {
-                            this[i].mappedProperties.push(property);
-                        } // add to core style if necessary
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
 
+module.exports = {
+  graphlib: __webpack_require__(/*! ./lib/graphlib */ "./node_modules/dagre/lib/graphlib.js"),
 
-                        var currentSelectorIsCore = !this[i].selector;
+  layout: __webpack_require__(/*! ./lib/layout */ "./node_modules/dagre/lib/layout.js"),
+  debug: __webpack_require__(/*! ./lib/debug */ "./node_modules/dagre/lib/debug.js"),
+  util: {
+    time: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").time,
+    notime: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").notime
+  },
+  version: __webpack_require__(/*! ./lib/version */ "./node_modules/dagre/lib/version.js")
+};
 
-                        if (currentSelectorIsCore) {
-                            this._private.coreStyle[property.name] = property;
-                        }
-                    }
 
-                    return this; // chaining
-                };
+/***/ }),
 
-                styfn$8.append = function (style) {
-                    if (stylesheet(style)) {
-                        style.appendToStyle(this);
-                    } else if (array(style)) {
-                        this.appendFromJson(style);
-                    } else if (string(style)) {
-                        this.appendFromString(style);
-                    } // you probably wouldn't want to append a Style, since you'd duplicate the default parts
+/***/ "./node_modules/dagre/lib/acyclic.js":
+/*!*******************************************!*\
+  !*** ./node_modules/dagre/lib/acyclic.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var greedyFAS = __webpack_require__(/*! ./greedy-fas */ "./node_modules/dagre/lib/greedy-fas.js");
+
+module.exports = {
+  run: run,
+  undo: undo
+};
+
+function run(g) {
+  var fas = (g.graph().acyclicer === "greedy"
+    ? greedyFAS(g, weightFn(g))
+    : dfsFAS(g));
+  _.forEach(fas, function(e) {
+    var label = g.edge(e);
+    g.removeEdge(e);
+    label.forwardName = e.name;
+    label.reversed = true;
+    g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
+  });
+
+  function weightFn(g) {
+    return function(e) {
+      return g.edge(e).weight;
+    };
+  }
+}
 
+function dfsFAS(g) {
+  var fas = [];
+  var stack = {};
+  var visited = {};
 
-                    return this;
-                }; // static function
+  function dfs(v) {
+    if (_.has(visited, v)) {
+      return;
+    }
+    visited[v] = true;
+    stack[v] = true;
+    _.forEach(g.outEdges(v), function(e) {
+      if (_.has(stack, e.w)) {
+        fas.push(e);
+      } else {
+        dfs(e.w);
+      }
+    });
+    delete stack[v];
+  }
 
+  _.forEach(g.nodes(), dfs);
+  return fas;
+}
 
-                Style.fromJson = function (cy, json) {
-                    var style = new Style(cy);
-                    style.fromJson(json);
-                    return style;
-                };
+function undo(g) {
+  _.forEach(g.edges(), function(e) {
+    var label = g.edge(e);
+    if (label.reversed) {
+      g.removeEdge(e);
 
-                Style.fromString = function (cy, string) {
-                    return new Style(cy).fromString(string);
-                };
+      var forwardName = label.forwardName;
+      delete label.reversed;
+      delete label.forwardName;
+      g.setEdge(e.w, e.v, label, forwardName);
+    }
+  });
+}
 
-                [styfn, styfn$1, styfn$2, styfn$3, styfn$4, styfn$5, styfn$6, styfn$7].forEach(function (props) {
-                    extend(styfn$8, props);
-                });
-                Style.types = styfn$8.types;
-                Style.properties = styfn$8.properties;
-                Style.propertyGroups = styfn$8.propertyGroups;
-                Style.propertyGroupNames = styfn$8.propertyGroupNames;
-                Style.propertyGroupKeys = styfn$8.propertyGroupKeys;
-
-                var corefn$7 = {
-                    style: function style(newStyle) {
-                        if (newStyle) {
-                            var s = this.setStyle(newStyle);
-                            s.update();
-                        }
 
-                        return this._private.style;
-                    },
-                    setStyle: function setStyle(style) {
-                        var _p = this._private;
-
-                        if (stylesheet(style)) {
-                            _p.style = style.generateStyle(this);
-                        } else if (array(style)) {
-                            _p.style = Style.fromJson(this, style);
-                        } else if (string(style)) {
-                            _p.style = Style.fromString(this, style);
-                        } else {
-                            _p.style = Style(this);
-                        }
+/***/ }),
 
-                        return _p.style;
-                    }
-                };
+/***/ "./node_modules/dagre/lib/add-border-segments.js":
+/*!*******************************************************!*\
+  !*** ./node_modules/dagre/lib/add-border-segments.js ***!
+  \*******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var defaultSelectionType = 'single';
-                var corefn$8 = {
-                    autolock: function autolock(bool) {
-                        if (bool !== undefined) {
-                            this._private.autolock = bool ? true : false;
-                        } else {
-                            return this._private.autolock;
-                        }
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
 
-                        return this; // chaining
-                    },
-                    autoungrabify: function autoungrabify(bool) {
-                        if (bool !== undefined) {
-                            this._private.autoungrabify = bool ? true : false;
-                        } else {
-                            return this._private.autoungrabify;
-                        }
+module.exports = addBorderSegments;
 
-                        return this; // chaining
-                    },
-                    autounselectify: function autounselectify(bool) {
-                        if (bool !== undefined) {
-                            this._private.autounselectify = bool ? true : false;
-                        } else {
-                            return this._private.autounselectify;
-                        }
+function addBorderSegments(g) {
+  function dfs(v) {
+    var children = g.children(v);
+    var node = g.node(v);
+    if (children.length) {
+      _.forEach(children, dfs);
+    }
 
-                        return this; // chaining
-                    },
-                    selectionType: function selectionType(selType) {
-                        var _p = this._private;
+    if (_.has(node, "minRank")) {
+      node.borderLeft = [];
+      node.borderRight = [];
+      for (var rank = node.minRank, maxRank = node.maxRank + 1;
+        rank < maxRank;
+        ++rank) {
+        addBorderNode(g, "borderLeft", "_bl", v, node, rank);
+        addBorderNode(g, "borderRight", "_br", v, node, rank);
+      }
+    }
+  }
 
-                        if (_p.selectionType == null) {
-                            _p.selectionType = defaultSelectionType;
-                        }
+  _.forEach(g.children(), dfs);
+}
+
+function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
+  var label = { width: 0, height: 0, rank: rank, borderType: prop };
+  var prev = sgNode[prop][rank - 1];
+  var curr = util.addDummyNode(g, "border", label, prefix);
+  sgNode[prop][rank] = curr;
+  g.setParent(curr, sg);
+  if (prev) {
+    g.setEdge(prev, curr, { weight: 1 });
+  }
+}
 
-                        if (selType !== undefined) {
-                            if (selType === 'additive' || selType === 'single') {
-                                _p.selectionType = selType;
-                            }
-                        } else {
-                            return _p.selectionType;
-                        }
 
-                        return this;
-                    },
-                    panningEnabled: function panningEnabled(bool) {
-                        if (bool !== undefined) {
-                            this._private.panningEnabled = bool ? true : false;
-                        } else {
-                            return this._private.panningEnabled;
-                        }
+/***/ }),
 
-                        return this; // chaining
-                    },
-                    userPanningEnabled: function userPanningEnabled(bool) {
-                        if (bool !== undefined) {
-                            this._private.userPanningEnabled = bool ? true : false;
-                        } else {
-                            return this._private.userPanningEnabled;
-                        }
+/***/ "./node_modules/dagre/lib/coordinate-system.js":
+/*!*****************************************************!*\
+  !*** ./node_modules/dagre/lib/coordinate-system.js ***!
+  \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        return this; // chaining
-                    },
-                    zoomingEnabled: function zoomingEnabled(bool) {
-                        if (bool !== undefined) {
-                            this._private.zoomingEnabled = bool ? true : false;
-                        } else {
-                            return this._private.zoomingEnabled;
-                        }
+"use strict";
 
-                        return this; // chaining
-                    },
-                    userZoomingEnabled: function userZoomingEnabled(bool) {
-                        if (bool !== undefined) {
-                            this._private.userZoomingEnabled = bool ? true : false;
-                        } else {
-                            return this._private.userZoomingEnabled;
-                        }
 
-                        return this; // chaining
-                    },
-                    boxSelectionEnabled: function boxSelectionEnabled(bool) {
-                        if (bool !== undefined) {
-                            this._private.boxSelectionEnabled = bool ? true : false;
-                        } else {
-                            return this._private.boxSelectionEnabled;
-                        }
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
 
-                        return this; // chaining
-                    },
-                    pan: function pan() {
-                        var args = arguments;
-                        var pan = this._private.pan;
-                        var dim, val, dims, x, y;
-
-                        switch (args.length) {
-                            case 0:
-                                // .pan()
-                                return pan;
-
-                            case 1:
-                                if (string(args[0])) {
-                                    // .pan('x')
-                                    dim = args[0];
-                                    return pan[dim];
-                                } else if (plainObject(args[0])) {
-                                    // .pan({ x: 0, y: 100 })
-                                    if (!this._private.panningEnabled) {
-                                        return this;
-                                    }
-
-                                    dims = args[0];
-                                    x = dims.x;
-                                    y = dims.y;
-
-                                    if (number(x)) {
-                                        pan.x = x;
-                                    }
-
-                                    if (number(y)) {
-                                        pan.y = y;
-                                    }
-
-                                    this.emit('pan viewport');
-                                }
-
-                                break;
-
-                            case 2:
-                                // .pan('x', 100)
-                                if (!this._private.panningEnabled) {
-                                    return this;
-                                }
-
-                                dim = args[0];
-                                val = args[1];
-
-                                if ((dim === 'x' || dim === 'y') && number(val)) {
-                                    pan[dim] = val;
-                                }
-
-                                this.emit('pan viewport');
-                                break;
-                            // invalid
-                        }
+module.exports = {
+  adjust: adjust,
+  undo: undo
+};
 
-                        this.notify('viewport');
-                        return this; // chaining
-                    },
-                    panBy: function panBy(arg0, arg1) {
-                        var args = arguments;
-                        var pan = this._private.pan;
-                        var dim, val, dims, x, y;
+function adjust(g) {
+  var rankDir = g.graph().rankdir.toLowerCase();
+  if (rankDir === "lr" || rankDir === "rl") {
+    swapWidthHeight(g);
+  }
+}
 
-                        if (!this._private.panningEnabled) {
-                            return this;
-                        }
+function undo(g) {
+  var rankDir = g.graph().rankdir.toLowerCase();
+  if (rankDir === "bt" || rankDir === "rl") {
+    reverseY(g);
+  }
 
-                        switch (args.length) {
-                            case 1:
-                                if (plainObject(arg0)) {
-                                    // .panBy({ x: 0, y: 100 })
-                                    dims = args[0];
-                                    x = dims.x;
-                                    y = dims.y;
+  if (rankDir === "lr" || rankDir === "rl") {
+    swapXY(g);
+    swapWidthHeight(g);
+  }
+}
+
+function swapWidthHeight(g) {
+  _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
+  _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
+}
+
+function swapWidthHeightOne(attrs) {
+  var w = attrs.width;
+  attrs.width = attrs.height;
+  attrs.height = w;
+}
+
+function reverseY(g) {
+  _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
+
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    _.forEach(edge.points, reverseYOne);
+    if (_.has(edge, "y")) {
+      reverseYOne(edge);
+    }
+  });
+}
 
-                                    if (number(x)) {
-                                        pan.x += x;
-                                    }
+function reverseYOne(attrs) {
+  attrs.y = -attrs.y;
+}
 
-                                    if (number(y)) {
-                                        pan.y += y;
-                                    }
+function swapXY(g) {
+  _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
 
-                                    this.emit('pan viewport');
-                                }
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    _.forEach(edge.points, swapXYOne);
+    if (_.has(edge, "x")) {
+      swapXYOne(edge);
+    }
+  });
+}
 
-                                break;
+function swapXYOne(attrs) {
+  var x = attrs.x;
+  attrs.x = attrs.y;
+  attrs.y = x;
+}
 
-                            case 2:
-                                // .panBy('x', 100)
-                                dim = arg0;
-                                val = arg1;
 
-                                if ((dim === 'x' || dim === 'y') && number(val)) {
-                                    pan[dim] += val;
-                                }
+/***/ }),
 
-                                this.emit('pan viewport');
-                                break;
-                            // invalid
-                        }
+/***/ "./node_modules/dagre/lib/data/list.js":
+/*!*********************************************!*\
+  !*** ./node_modules/dagre/lib/data/list.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                        this.notify('viewport');
-                        return this; // chaining
-                    },
-                    fit: function fit(elements, padding) {
-                        var viewportState = this.getFitViewport(elements, padding);
-
-                        if (viewportState) {
-                            var _p = this._private;
-                            _p.zoom = viewportState.zoom;
-                            _p.pan = viewportState.pan;
-                            this.emit('pan zoom viewport');
-                            this.notify('viewport');
-                        }
+/*
+ * Simple doubly linked list implementation derived from Cormen, et al.,
+ * "Introduction to Algorithms".
+ */
 
-                        return this; // chaining
-                    },
-                    getFitViewport: function getFitViewport(elements, padding) {
-                        if (number(elements) && padding === undefined) {
-                            // elements is optional
-                            padding = elements;
-                            elements = undefined;
-                        }
+module.exports = List;
 
-                        if (!this._private.panningEnabled || !this._private.zoomingEnabled) {
-                            return;
-                        }
+function List() {
+  var sentinel = {};
+  sentinel._next = sentinel._prev = sentinel;
+  this._sentinel = sentinel;
+}
 
-                        var bb;
-
-                        if (string(elements)) {
-                            var sel = elements;
-                            elements = this.$(sel);
-                        } else if (boundingBox(elements)) {
-                            // assume bb
-                            var bbe = elements;
-                            bb = {
-                                x1: bbe.x1,
-                                y1: bbe.y1,
-                                x2: bbe.x2,
-                                y2: bbe.y2
-                            };
-                            bb.w = bb.x2 - bb.x1;
-                            bb.h = bb.y2 - bb.y1;
-                        } else if (!elementOrCollection(elements)) {
-                            elements = this.mutableElements();
-                        }
+List.prototype.dequeue = function() {
+  var sentinel = this._sentinel;
+  var entry = sentinel._prev;
+  if (entry !== sentinel) {
+    unlink(entry);
+    return entry;
+  }
+};
 
-                        if (elementOrCollection(elements) && elements.empty()) {
-                            return;
-                        } // can't fit to nothing
-
-
-                        bb = bb || elements.boundingBox();
-                        var w = this.width();
-                        var h = this.height();
-                        var zoom;
-                        padding = number(padding) ? padding : 0;
-
-                        if (!isNaN(w) && !isNaN(h) && w > 0 && h > 0 && !isNaN(bb.w) && !isNaN(bb.h) && bb.w > 0 && bb.h > 0) {
-                            zoom = Math.min((w - 2 * padding) / bb.w, (h - 2 * padding) / bb.h); // crop zoom
-
-                            zoom = zoom > this._private.maxZoom ? this._private.maxZoom : zoom;
-                            zoom = zoom < this._private.minZoom ? this._private.minZoom : zoom;
-                            var pan = {
-                                // now pan to middle
-                                x: (w - zoom * (bb.x1 + bb.x2)) / 2,
-                                y: (h - zoom * (bb.y1 + bb.y2)) / 2
-                            };
-                            return {
-                                zoom: zoom,
-                                pan: pan
-                            };
-                        }
+List.prototype.enqueue = function(entry) {
+  var sentinel = this._sentinel;
+  if (entry._prev && entry._next) {
+    unlink(entry);
+  }
+  entry._next = sentinel._next;
+  sentinel._next._prev = entry;
+  sentinel._next = entry;
+  entry._prev = sentinel;
+};
+
+List.prototype.toString = function() {
+  var strs = [];
+  var sentinel = this._sentinel;
+  var curr = sentinel._prev;
+  while (curr !== sentinel) {
+    strs.push(JSON.stringify(curr, filterOutLinks));
+    curr = curr._prev;
+  }
+  return "[" + strs.join(", ") + "]";
+};
+
+function unlink(entry) {
+  entry._prev._next = entry._next;
+  entry._next._prev = entry._prev;
+  delete entry._next;
+  delete entry._prev;
+}
+
+function filterOutLinks(k, v) {
+  if (k !== "_next" && k !== "_prev") {
+    return v;
+  }
+}
 
-                        return;
-                    },
-                    zoomRange: function zoomRange(min, max) {
-                        var _p = this._private;
 
-                        if (max == null) {
-                            var opts = min;
-                            min = opts.min;
-                            max = opts.max;
-                        }
+/***/ }),
 
-                        if (number(min) && number(max) && min <= max) {
-                            _p.minZoom = min;
-                            _p.maxZoom = max;
-                        } else if (number(min) && max === undefined && min <= _p.maxZoom) {
-                            _p.minZoom = min;
-                        } else if (number(max) && min === undefined && max >= _p.minZoom) {
-                            _p.maxZoom = max;
-                        }
+/***/ "./node_modules/dagre/lib/debug.js":
+/*!*****************************************!*\
+  !*** ./node_modules/dagre/lib/debug.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        return this;
-                    },
-                    minZoom: function minZoom(zoom) {
-                        if (zoom === undefined) {
-                            return this._private.minZoom;
-                        } else {
-                            return this.zoomRange({
-                                min: zoom
-                            });
-                        }
-                    },
-                    maxZoom: function maxZoom(zoom) {
-                        if (zoom === undefined) {
-                            return this._private.maxZoom;
-                        } else {
-                            return this.zoomRange({
-                                max: zoom
-                            });
-                        }
-                    },
-                    getZoomedViewport: function getZoomedViewport(params) {
-                        var _p = this._private;
-                        var currentPan = _p.pan;
-                        var currentZoom = _p.zoom;
-                        var pos; // in rendered px
-
-                        var zoom;
-                        var bail = false;
-
-                        if (!_p.zoomingEnabled) {
-                            // zooming disabled
-                            bail = true;
-                        }
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
+var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
 
-                        if (number(params)) {
-                            // then set the zoom
-                            zoom = params;
-                        } else if (plainObject(params)) {
-                            // then zoom about a point
-                            zoom = params.level;
-
-                            if (params.position != null) {
-                                pos = modelToRenderedPosition(params.position, currentZoom, currentPan);
-                            } else if (params.renderedPosition != null) {
-                                pos = params.renderedPosition;
-                            }
+module.exports = {
+  debugOrdering: debugOrdering
+};
 
-                            if (pos != null && !_p.panningEnabled) {
-                                // panning disabled
-                                bail = true;
-                            }
-                        } // crop zoom
+/* istanbul ignore next */
+function debugOrdering(g) {
+  var layerMatrix = util.buildLayerMatrix(g);
 
+  var h = new Graph({ compound: true, multigraph: true }).setGraph({});
 
-                        zoom = zoom > _p.maxZoom ? _p.maxZoom : zoom;
-                        zoom = zoom < _p.minZoom ? _p.minZoom : zoom; // can't zoom with invalid params
+  _.forEach(g.nodes(), function(v) {
+    h.setNode(v, { label: v });
+    h.setParent(v, "layer" + g.node(v).rank);
+  });
 
-                        if (bail || !number(zoom) || zoom === currentZoom || pos != null && (!number(pos.x) || !number(pos.y))) {
-                            return null;
-                        }
+  _.forEach(g.edges(), function(e) {
+    h.setEdge(e.v, e.w, {}, e.name);
+  });
 
-                        if (pos != null) {
-                            // set zoom about position
-                            var pan1 = currentPan;
-                            var zoom1 = currentZoom;
-                            var zoom2 = zoom;
-                            var pan2 = {
-                                x: -zoom2 / zoom1 * (pos.x - pan1.x) + pos.x,
-                                y: -zoom2 / zoom1 * (pos.y - pan1.y) + pos.y
-                            };
-                            return {
-                                zoomed: true,
-                                panned: true,
-                                zoom: zoom2,
-                                pan: pan2
-                            };
-                        } else {
-                            // just set the zoom
-                            return {
-                                zoomed: true,
-                                panned: false,
-                                zoom: zoom,
-                                pan: currentPan
-                            };
-                        }
-                    },
-                    zoom: function zoom(params) {
-                        if (params === undefined) {
-                            // get
-                            return this._private.zoom;
-                        } else {
-                            // set
-                            var vp = this.getZoomedViewport(params);
-                            var _p = this._private;
-
-                            if (vp == null || !vp.zoomed) {
-                                return this;
-                            }
+  _.forEach(layerMatrix, function(layer, i) {
+    var layerV = "layer" + i;
+    h.setNode(layerV, { rank: "same" });
+    _.reduce(layer, function(u, v) {
+      h.setEdge(u, v, { style: "invis" });
+      return v;
+    });
+  });
 
-                            _p.zoom = vp.zoom;
+  return h;
+}
 
-                            if (vp.panned) {
-                                _p.pan.x = vp.pan.x;
-                                _p.pan.y = vp.pan.y;
-                            }
 
-                            this.emit('zoom' + (vp.panned ? ' pan' : '') + ' viewport');
-                            this.notify('viewport');
-                            return this; // chaining
-                        }
-                    },
-                    viewport: function viewport(opts) {
-                        var _p = this._private;
-                        var zoomDefd = true;
-                        var panDefd = true;
-                        var events = []; // to trigger
-
-                        var zoomFailed = false;
-                        var panFailed = false;
-
-                        if (!opts) {
-                            return this;
-                        }
+/***/ }),
 
-                        if (!number(opts.zoom)) {
-                            zoomDefd = false;
-                        }
+/***/ "./node_modules/dagre/lib/graphlib.js":
+/*!********************************************!*\
+  !*** ./node_modules/dagre/lib/graphlib.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (!plainObject(opts.pan)) {
-                            panDefd = false;
-                        }
+/* global window */
 
-                        if (!zoomDefd && !panDefd) {
-                            return this;
-                        }
+var graphlib;
 
-                        if (zoomDefd) {
-                            var z = opts.zoom;
+if (true) {
+  try {
+    graphlib = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
+  } catch (e) {
+    // continue regardless of error
+  }
+}
 
-                            if (z < _p.minZoom || z > _p.maxZoom || !_p.zoomingEnabled) {
-                                zoomFailed = true;
-                            } else {
-                                _p.zoom = z;
-                                events.push('zoom');
-                            }
-                        }
+if (!graphlib) {
+  graphlib = window.graphlib;
+}
 
-                        if (panDefd && (!zoomFailed || !opts.cancelOnFailedZoom) && _p.panningEnabled) {
-                            var p = opts.pan;
+module.exports = graphlib;
 
-                            if (number(p.x)) {
-                                _p.pan.x = p.x;
-                                panFailed = false;
-                            }
 
-                            if (number(p.y)) {
-                                _p.pan.y = p.y;
-                                panFailed = false;
-                            }
+/***/ }),
 
-                            if (!panFailed) {
-                                events.push('pan');
-                            }
-                        }
+/***/ "./node_modules/dagre/lib/greedy-fas.js":
+/*!**********************************************!*\
+  !*** ./node_modules/dagre/lib/greedy-fas.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (events.length > 0) {
-                            events.push('viewport');
-                            this.emit(events.join(' '));
-                            this.notify('viewport');
-                        }
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+var List = __webpack_require__(/*! ./data/list */ "./node_modules/dagre/lib/data/list.js");
 
-                        return this; // chaining
-                    },
-                    center: function center(elements) {
-                        var pan = this.getCenterPan(elements);
+/*
+ * A greedy heuristic for finding a feedback arc set for a graph. A feedback
+ * arc set is a set of edges that can be removed to make a graph acyclic.
+ * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
+ * effective heuristic for the feedback arc set problem." This implementation
+ * adjusts that from the paper to allow for weighted edges.
+ */
+module.exports = greedyFAS;
 
-                        if (pan) {
-                            this._private.pan = pan;
-                            this.emit('pan viewport');
-                            this.notify('viewport');
-                        }
+var DEFAULT_WEIGHT_FN = _.constant(1);
 
-                        return this; // chaining
-                    },
-                    getCenterPan: function getCenterPan(elements, zoom) {
-                        if (!this._private.panningEnabled) {
-                            return;
-                        }
+function greedyFAS(g, weightFn) {
+  if (g.nodeCount() <= 1) {
+    return [];
+  }
+  var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
+  var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
+
+  // Expand multi-edges
+  return _.flatten(_.map(results, function(e) {
+    return g.outEdges(e.v, e.w);
+  }), true);
+}
+
+function doGreedyFAS(g, buckets, zeroIdx) {
+  var results = [];
+  var sources = buckets[buckets.length - 1];
+  var sinks = buckets[0];
+
+  var entry;
+  while (g.nodeCount()) {
+    while ((entry = sinks.dequeue()))   { removeNode(g, buckets, zeroIdx, entry); }
+    while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
+    if (g.nodeCount()) {
+      for (var i = buckets.length - 2; i > 0; --i) {
+        entry = buckets[i].dequeue();
+        if (entry) {
+          results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
+          break;
+        }
+      }
+    }
+  }
 
-                        if (string(elements)) {
-                            var selector = elements;
-                            elements = this.mutableElements().filter(selector);
-                        } else if (!elementOrCollection(elements)) {
-                            elements = this.mutableElements();
-                        }
+  return results;
+}
 
-                        if (elements.length === 0) {
-                            return;
-                        } // can't centre pan to nothing
-
-
-                        var bb = elements.boundingBox();
-                        var w = this.width();
-                        var h = this.height();
-                        zoom = zoom === undefined ? this._private.zoom : zoom;
-                        var pan = {
-                            // middle
-                            x: (w - zoom * (bb.x1 + bb.x2)) / 2,
-                            y: (h - zoom * (bb.y1 + bb.y2)) / 2
-                        };
-                        return pan;
-                    },
-                    reset: function reset() {
-                        if (!this._private.panningEnabled || !this._private.zoomingEnabled) {
-                            return this;
-                        }
+function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
+  var results = collectPredecessors ? [] : undefined;
 
-                        this.viewport({
-                            pan: {
-                                x: 0,
-                                y: 0
-                            },
-                            zoom: 1
-                        });
-                        return this; // chaining
-                    },
-                    invalidateSize: function invalidateSize() {
-                        this._private.sizeCache = null;
-                    },
-                    size: function size() {
-                        var _p = this._private;
-                        var container = _p.container;
-                        return _p.sizeCache = _p.sizeCache || (container ? function () {
-                            var style = window$1.getComputedStyle(container);
-
-                            var val = function val(name) {
-                                return parseFloat(style.getPropertyValue(name));
-                            };
-
-                            return {
-                                width: container.clientWidth - val('padding-left') - val('padding-right'),
-                                height: container.clientHeight - val('padding-top') - val('padding-bottom')
-                            };
-                        }() : {
-                            // fallback if no container (not 0 b/c can be used for dividing etc)
-                            width: 1,
-                            height: 1
-                        });
-                    },
-                    width: function width() {
-                        return this.size().width;
-                    },
-                    height: function height() {
-                        return this.size().height;
-                    },
-                    extent: function extent() {
-                        var pan = this._private.pan;
-                        var zoom = this._private.zoom;
-                        var rb = this.renderedExtent();
-                        var b = {
-                            x1: (rb.x1 - pan.x) / zoom,
-                            x2: (rb.x2 - pan.x) / zoom,
-                            y1: (rb.y1 - pan.y) / zoom,
-                            y2: (rb.y2 - pan.y) / zoom
-                        };
-                        b.w = b.x2 - b.x1;
-                        b.h = b.y2 - b.y1;
-                        return b;
-                    },
-                    renderedExtent: function renderedExtent() {
-                        var width = this.width();
-                        var height = this.height();
-                        return {
-                            x1: 0,
-                            y1: 0,
-                            x2: width,
-                            y2: height,
-                            w: width,
-                            h: height
-                        };
-                    }
-                }; // aliases
-
-                corefn$8.centre = corefn$8.center; // backwards compatibility
-
-                corefn$8.autolockNodes = corefn$8.autolock;
-                corefn$8.autoungrabifyNodes = corefn$8.autoungrabify;
-
-                var fn$6 = {
-                    data: define$3.data({
-                        field: 'data',
-                        bindingEvent: 'data',
-                        allowBinding: true,
-                        allowSetting: true,
-                        settingEvent: 'data',
-                        settingTriggersEvent: true,
-                        triggerFnName: 'trigger',
-                        allowGetting: true
-                    }),
-                    removeData: define$3.removeData({
-                        field: 'data',
-                        event: 'data',
-                        triggerFnName: 'trigger',
-                        triggerEvent: true
-                    }),
-                    scratch: define$3.data({
-                        field: 'scratch',
-                        bindingEvent: 'scratch',
-                        allowBinding: true,
-                        allowSetting: true,
-                        settingEvent: 'scratch',
-                        settingTriggersEvent: true,
-                        triggerFnName: 'trigger',
-                        allowGetting: true
-                    }),
-                    removeScratch: define$3.removeData({
-                        field: 'scratch',
-                        event: 'scratch',
-                        triggerFnName: 'trigger',
-                        triggerEvent: true
-                    })
-                }; // aliases
-
-                fn$6.attr = fn$6.data;
-                fn$6.removeAttr = fn$6.removeData;
-
-                var Core = function Core(opts) {
-                    var cy = this;
-                    opts = extend({}, opts);
-                    var container = opts.container; // allow for passing a wrapped jquery object
-                    // e.g. cytoscape({ container: $('#cy') })
-
-                    if (container && !htmlElement(container) && htmlElement(container[0])) {
-                        container = container[0];
-                    }
+  _.forEach(g.inEdges(entry.v), function(edge) {
+    var weight = g.edge(edge);
+    var uEntry = g.node(edge.v);
 
-                    var reg = container ? container._cyreg : null; // e.g. already registered some info (e.g. readies) via jquery
+    if (collectPredecessors) {
+      results.push({ v: edge.v, w: edge.w });
+    }
 
-                    reg = reg || {};
+    uEntry.out -= weight;
+    assignBucket(buckets, zeroIdx, uEntry);
+  });
+
+  _.forEach(g.outEdges(entry.v), function(edge) {
+    var weight = g.edge(edge);
+    var w = edge.w;
+    var wEntry = g.node(w);
+    wEntry["in"] -= weight;
+    assignBucket(buckets, zeroIdx, wEntry);
+  });
+
+  g.removeNode(entry.v);
+
+  return results;
+}
+
+function buildState(g, weightFn) {
+  var fasGraph = new Graph();
+  var maxIn = 0;
+  var maxOut = 0;
+
+  _.forEach(g.nodes(), function(v) {
+    fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
+  });
+
+  // Aggregate weights on nodes, but also sum the weights across multi-edges
+  // into a single edge for the fasGraph.
+  _.forEach(g.edges(), function(e) {
+    var prevWeight = fasGraph.edge(e.v, e.w) || 0;
+    var weight = weightFn(e);
+    var edgeWeight = prevWeight + weight;
+    fasGraph.setEdge(e.v, e.w, edgeWeight);
+    maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
+    maxIn  = Math.max(maxIn,  fasGraph.node(e.w)["in"]  += weight);
+  });
+
+  var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
+  var zeroIdx = maxIn + 1;
+
+  _.forEach(fasGraph.nodes(), function(v) {
+    assignBucket(buckets, zeroIdx, fasGraph.node(v));
+  });
+
+  return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
+}
+
+function assignBucket(buckets, zeroIdx, entry) {
+  if (!entry.out) {
+    buckets[0].enqueue(entry);
+  } else if (!entry["in"]) {
+    buckets[buckets.length - 1].enqueue(entry);
+  } else {
+    buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
+  }
+}
 
-                    if (reg && reg.cy) {
-                        reg.cy.destroy();
-                        reg = {}; // old instance => replace reg completely
-                    }
 
-                    var readies = reg.readies = reg.readies || [];
-
-                    if (container) {
-                        container._cyreg = reg;
-                    } // make sure container assoc'd reg points to this cy
-
-
-                    reg.cy = cy;
-                    var head = window$1 !== undefined && container !== undefined && !opts.headless;
-                    var options = opts;
-                    options.layout = extend({
-                        name: head ? 'grid' : 'null'
-                    }, options.layout);
-                    options.renderer = extend({
-                        name: head ? 'canvas' : 'null'
-                    }, options.renderer);
-
-                    var defVal = function defVal(def, val, altVal) {
-                        if (val !== undefined) {
-                            return val;
-                        } else if (altVal !== undefined) {
-                            return altVal;
-                        } else {
-                            return def;
-                        }
-                    };
-
-                    var _p = this._private = {
-                        container: container,
-                        // html dom ele container
-                        ready: false,
-                        // whether ready has been triggered
-                        options: options,
-                        // cached options
-                        elements: new Collection(this),
-                        // elements in the graph
-                        listeners: [],
-                        // list of listeners
-                        aniEles: new Collection(this),
-                        // elements being animated
-                        data: {},
-                        // data for the core
-                        scratch: {},
-                        // scratch object for core
-                        layout: null,
-                        renderer: null,
-                        destroyed: false,
-                        // whether destroy was called
-                        notificationsEnabled: true,
-                        // whether notifications are sent to the renderer
-                        minZoom: 1e-50,
-                        maxZoom: 1e50,
-                        zoomingEnabled: defVal(true, options.zoomingEnabled),
-                        userZoomingEnabled: defVal(true, options.userZoomingEnabled),
-                        panningEnabled: defVal(true, options.panningEnabled),
-                        userPanningEnabled: defVal(true, options.userPanningEnabled),
-                        boxSelectionEnabled: defVal(true, options.boxSelectionEnabled),
-                        autolock: defVal(false, options.autolock, options.autolockNodes),
-                        autoungrabify: defVal(false, options.autoungrabify, options.autoungrabifyNodes),
-                        autounselectify: defVal(false, options.autounselectify),
-                        styleEnabled: options.styleEnabled === undefined ? head : options.styleEnabled,
-                        zoom: number(options.zoom) ? options.zoom : 1,
-                        pan: {
-                            x: plainObject(options.pan) && number(options.pan.x) ? options.pan.x : 0,
-                            y: plainObject(options.pan) && number(options.pan.y) ? options.pan.y : 0
-                        },
-                        animation: {
-                            // object for currently-running animations
-                            current: [],
-                            queue: []
-                        },
-                        hasCompoundNodes: false
-                    };
-
-                    this.createEmitter(); // set selection type
-
-                    this.selectionType(options.selectionType); // init zoom bounds
-
-                    this.zoomRange({
-                        min: options.minZoom,
-                        max: options.maxZoom
-                    });
-
-                    var loadExtData = function loadExtData(extData, next) {
-                        var anyIsPromise = extData.some(promise);
-
-                        if (anyIsPromise) {
-                            return Promise$1.all(extData).then(next); // load all data asynchronously, then exec rest of init
-                        } else {
-                            next(extData); // exec synchronously for convenience
-                        }
-                    }; // start with the default stylesheet so we have something before loading an external stylesheet
+/***/ }),
 
+/***/ "./node_modules/dagre/lib/layout.js":
+/*!******************************************!*\
+  !*** ./node_modules/dagre/lib/layout.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var acyclic = __webpack_require__(/*! ./acyclic */ "./node_modules/dagre/lib/acyclic.js");
+var normalize = __webpack_require__(/*! ./normalize */ "./node_modules/dagre/lib/normalize.js");
+var rank = __webpack_require__(/*! ./rank */ "./node_modules/dagre/lib/rank/index.js");
+var normalizeRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").normalizeRanks;
+var parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "./node_modules/dagre/lib/parent-dummy-chains.js");
+var removeEmptyRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").removeEmptyRanks;
+var nestingGraph = __webpack_require__(/*! ./nesting-graph */ "./node_modules/dagre/lib/nesting-graph.js");
+var addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "./node_modules/dagre/lib/add-border-segments.js");
+var coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "./node_modules/dagre/lib/coordinate-system.js");
+var order = __webpack_require__(/*! ./order */ "./node_modules/dagre/lib/order/index.js");
+var position = __webpack_require__(/*! ./position */ "./node_modules/dagre/lib/position/index.js");
+var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
+var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+
+module.exports = layout;
+
+function layout(g, opts) {
+  var time = opts && opts.debugTiming ? util.time : util.notime;
+  time("layout", function() {
+    var layoutGraph = 
+      time("  buildLayoutGraph", function() { return buildLayoutGraph(g); });
+    time("  runLayout",        function() { runLayout(layoutGraph, time); });
+    time("  updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
+  });
+}
+
+function runLayout(g, time) {
+  time("    makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
+  time("    removeSelfEdges",        function() { removeSelfEdges(g); });
+  time("    acyclic",                function() { acyclic.run(g); });
+  time("    nestingGraph.run",       function() { nestingGraph.run(g); });
+  time("    rank",                   function() { rank(util.asNonCompoundGraph(g)); });
+  time("    injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
+  time("    removeEmptyRanks",       function() { removeEmptyRanks(g); });
+  time("    nestingGraph.cleanup",   function() { nestingGraph.cleanup(g); });
+  time("    normalizeRanks",         function() { normalizeRanks(g); });
+  time("    assignRankMinMax",       function() { assignRankMinMax(g); });
+  time("    removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
+  time("    normalize.run",          function() { normalize.run(g); });
+  time("    parentDummyChains",      function() { parentDummyChains(g); });
+  time("    addBorderSegments",      function() { addBorderSegments(g); });
+  time("    order",                  function() { order(g); });
+  time("    insertSelfEdges",        function() { insertSelfEdges(g); });
+  time("    adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
+  time("    position",               function() { position(g); });
+  time("    positionSelfEdges",      function() { positionSelfEdges(g); });
+  time("    removeBorderNodes",      function() { removeBorderNodes(g); });
+  time("    normalize.undo",         function() { normalize.undo(g); });
+  time("    fixupEdgeLabelCoords",   function() { fixupEdgeLabelCoords(g); });
+  time("    undoCoordinateSystem",   function() { coordinateSystem.undo(g); });
+  time("    translateGraph",         function() { translateGraph(g); });
+  time("    assignNodeIntersects",   function() { assignNodeIntersects(g); });
+  time("    reversePoints",          function() { reversePointsForReversedEdges(g); });
+  time("    acyclic.undo",           function() { acyclic.undo(g); });
+}
+
+/*
+ * Copies final layout information from the layout graph back to the input
+ * graph. This process only copies whitelisted attributes from the layout graph
+ * to the input graph, so it serves as a good place to determine what
+ * attributes can influence layout.
+ */
+function updateInputGraph(inputGraph, layoutGraph) {
+  _.forEach(inputGraph.nodes(), function(v) {
+    var inputLabel = inputGraph.node(v);
+    var layoutLabel = layoutGraph.node(v);
+
+    if (inputLabel) {
+      inputLabel.x = layoutLabel.x;
+      inputLabel.y = layoutLabel.y;
+
+      if (layoutGraph.children(v).length) {
+        inputLabel.width = layoutLabel.width;
+        inputLabel.height = layoutLabel.height;
+      }
+    }
+  });
 
-                    if (_p.styleEnabled) {
-                        cy.setStyle([]);
-                    } // create the renderer
+  _.forEach(inputGraph.edges(), function(e) {
+    var inputLabel = inputGraph.edge(e);
+    var layoutLabel = layoutGraph.edge(e);
 
+    inputLabel.points = layoutLabel.points;
+    if (_.has(layoutLabel, "x")) {
+      inputLabel.x = layoutLabel.x;
+      inputLabel.y = layoutLabel.y;
+    }
+  });
+
+  inputGraph.graph().width = layoutGraph.graph().width;
+  inputGraph.graph().height = layoutGraph.graph().height;
+}
+
+var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"];
+var graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" };
+var graphAttrs = ["acyclicer", "ranker", "rankdir", "align"];
+var nodeNumAttrs = ["width", "height"];
+var nodeDefaults = { width: 0, height: 0 };
+var edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"];
+var edgeDefaults = {
+  minlen: 1, weight: 1, width: 0, height: 0,
+  labeloffset: 10, labelpos: "r"
+};
+var edgeAttrs = ["labelpos"];
+
+/*
+ * Constructs a new graph from the input graph, which can be used for layout.
+ * This process copies only whitelisted attributes from the input graph to the
+ * layout graph. Thus this function serves as a good place to determine what
+ * attributes can influence layout.
+ */
+function buildLayoutGraph(inputGraph) {
+  var g = new Graph({ multigraph: true, compound: true });
+  var graph = canonicalize(inputGraph.graph());
+
+  g.setGraph(_.merge({},
+    graphDefaults,
+    selectNumberAttrs(graph, graphNumAttrs),
+    _.pick(graph, graphAttrs)));
+
+  _.forEach(inputGraph.nodes(), function(v) {
+    var node = canonicalize(inputGraph.node(v));
+    g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
+    g.setParent(v, inputGraph.parent(v));
+  });
+
+  _.forEach(inputGraph.edges(), function(e) {
+    var edge = canonicalize(inputGraph.edge(e));
+    g.setEdge(e, _.merge({},
+      edgeDefaults,
+      selectNumberAttrs(edge, edgeNumAttrs),
+      _.pick(edge, edgeAttrs)));
+  });
+
+  return g;
+}
+
+/*
+ * This idea comes from the Gansner paper: to account for edge labels in our
+ * layout we split each rank in half by doubling minlen and halving ranksep.
+ * Then we can place labels at these mid-points between nodes.
+ *
+ * We also add some minimal padding to the width to push the label for the edge
+ * away from the edge itself a bit.
+ */
+function makeSpaceForEdgeLabels(g) {
+  var graph = g.graph();
+  graph.ranksep /= 2;
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    edge.minlen *= 2;
+    if (edge.labelpos.toLowerCase() !== "c") {
+      if (graph.rankdir === "TB" || graph.rankdir === "BT") {
+        edge.width += edge.labeloffset;
+      } else {
+        edge.height += edge.labeloffset;
+      }
+    }
+  });
+}
 
-                    var rendererOptions = extend({}, options, options.renderer); // allow rendering hints in top level options
+/*
+ * Creates temporary dummy nodes that capture the rank in which each edge's
+ * label is going to, if it has one of non-zero width and height. We do this
+ * so that we can safely remove empty ranks while preserving balance for the
+ * label's position.
+ */
+function injectEdgeLabelProxies(g) {
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    if (edge.width && edge.height) {
+      var v = g.node(e.v);
+      var w = g.node(e.w);
+      var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
+      util.addDummyNode(g, "edge-proxy", label, "_ep");
+    }
+  });
+}
+
+function assignRankMinMax(g) {
+  var maxRank = 0;
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    if (node.borderTop) {
+      node.minRank = g.node(node.borderTop).rank;
+      node.maxRank = g.node(node.borderBottom).rank;
+      maxRank = _.max(maxRank, node.maxRank);
+    }
+  });
+  g.graph().maxRank = maxRank;
+}
+
+function removeEdgeLabelProxies(g) {
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    if (node.dummy === "edge-proxy") {
+      g.edge(node.e).labelRank = node.rank;
+      g.removeNode(v);
+    }
+  });
+}
+
+function translateGraph(g) {
+  var minX = Number.POSITIVE_INFINITY;
+  var maxX = 0;
+  var minY = Number.POSITIVE_INFINITY;
+  var maxY = 0;
+  var graphLabel = g.graph();
+  var marginX = graphLabel.marginx || 0;
+  var marginY = graphLabel.marginy || 0;
+
+  function getExtremes(attrs) {
+    var x = attrs.x;
+    var y = attrs.y;
+    var w = attrs.width;
+    var h = attrs.height;
+    minX = Math.min(minX, x - w / 2);
+    maxX = Math.max(maxX, x + w / 2);
+    minY = Math.min(minY, y - h / 2);
+    maxY = Math.max(maxY, y + h / 2);
+  }
 
-                    cy.initRenderer(rendererOptions);
+  _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    if (_.has(edge, "x")) {
+      getExtremes(edge);
+    }
+  });
+
+  minX -= marginX;
+  minY -= marginY;
+
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    node.x -= minX;
+    node.y -= minY;
+  });
+
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    _.forEach(edge.points, function(p) {
+      p.x -= minX;
+      p.y -= minY;
+    });
+    if (_.has(edge, "x")) { edge.x -= minX; }
+    if (_.has(edge, "y")) { edge.y -= minY; }
+  });
+
+  graphLabel.width = maxX - minX + marginX;
+  graphLabel.height = maxY - minY + marginY;
+}
+
+function assignNodeIntersects(g) {
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    var nodeV = g.node(e.v);
+    var nodeW = g.node(e.w);
+    var p1, p2;
+    if (!edge.points) {
+      edge.points = [];
+      p1 = nodeW;
+      p2 = nodeV;
+    } else {
+      p1 = edge.points[0];
+      p2 = edge.points[edge.points.length - 1];
+    }
+    edge.points.unshift(util.intersectRect(nodeV, p1));
+    edge.points.push(util.intersectRect(nodeW, p2));
+  });
+}
+
+function fixupEdgeLabelCoords(g) {
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    if (_.has(edge, "x")) {
+      if (edge.labelpos === "l" || edge.labelpos === "r") {
+        edge.width -= edge.labeloffset;
+      }
+      switch (edge.labelpos) {
+      case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
+      case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
+      }
+    }
+  });
+}
+
+function reversePointsForReversedEdges(g) {
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    if (edge.reversed) {
+      edge.points.reverse();
+    }
+  });
+}
+
+function removeBorderNodes(g) {
+  _.forEach(g.nodes(), function(v) {
+    if (g.children(v).length) {
+      var node = g.node(v);
+      var t = g.node(node.borderTop);
+      var b = g.node(node.borderBottom);
+      var l = g.node(_.last(node.borderLeft));
+      var r = g.node(_.last(node.borderRight));
+
+      node.width = Math.abs(r.x - l.x);
+      node.height = Math.abs(b.y - t.y);
+      node.x = l.x + node.width / 2;
+      node.y = t.y + node.height / 2;
+    }
+  });
 
-                    var setElesAndLayout = function setElesAndLayout(elements, onload, ondone) {
-                        cy.notifications(false); // remove old elements
+  _.forEach(g.nodes(), function(v) {
+    if (g.node(v).dummy === "border") {
+      g.removeNode(v);
+    }
+  });
+}
+
+function removeSelfEdges(g) {
+  _.forEach(g.edges(), function(e) {
+    if (e.v === e.w) {
+      var node = g.node(e.v);
+      if (!node.selfEdges) {
+        node.selfEdges = [];
+      }
+      node.selfEdges.push({ e: e, label: g.edge(e) });
+      g.removeEdge(e);
+    }
+  });
+}
+
+function insertSelfEdges(g) {
+  var layers = util.buildLayerMatrix(g);
+  _.forEach(layers, function(layer) {
+    var orderShift = 0;
+    _.forEach(layer, function(v, i) {
+      var node = g.node(v);
+      node.order = i + orderShift;
+      _.forEach(node.selfEdges, function(selfEdge) {
+        util.addDummyNode(g, "selfedge", {
+          width: selfEdge.label.width,
+          height: selfEdge.label.height,
+          rank: node.rank,
+          order: i + (++orderShift),
+          e: selfEdge.e,
+          label: selfEdge.label
+        }, "_se");
+      });
+      delete node.selfEdges;
+    });
+  });
+}
+
+function positionSelfEdges(g) {
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    if (node.dummy === "selfedge") {
+      var selfNode = g.node(node.e.v);
+      var x = selfNode.x + selfNode.width / 2;
+      var y = selfNode.y;
+      var dx = node.x - x;
+      var dy = selfNode.height / 2;
+      g.setEdge(node.e, node.label);
+      g.removeNode(v);
+      node.label.points = [
+        { x: x + 2 * dx / 3, y: y - dy },
+        { x: x + 5 * dx / 6, y: y - dy },
+        { x: x +     dx    , y: y },
+        { x: x + 5 * dx / 6, y: y + dy },
+        { x: x + 2 * dx / 3, y: y + dy }
+      ];
+      node.label.x = node.x;
+      node.label.y = node.y;
+    }
+  });
+}
 
-                        var oldEles = cy.mutableElements();
+function selectNumberAttrs(obj, attrs) {
+  return _.mapValues(_.pick(obj, attrs), Number);
+}
 
-                        if (oldEles.length > 0) {
-                            oldEles.remove();
-                        }
+function canonicalize(attrs) {
+  var newAttrs = {};
+  _.forEach(attrs, function(v, k) {
+    newAttrs[k.toLowerCase()] = v;
+  });
+  return newAttrs;
+}
 
-                        if (elements != null) {
-                            if (plainObject(elements) || array(elements)) {
-                                cy.add(elements);
-                            }
-                        }
 
-                        cy.one('layoutready', function (e) {
-                            cy.notifications(true);
-                            cy.emit(e); // we missed this event by turning notifications off, so pass it on
+/***/ }),
 
-                            cy.one('load', onload);
-                            cy.emitAndNotify('load');
-                        }).one('layoutstop', function () {
-                            cy.one('done', ondone);
-                            cy.emit('done');
-                        });
-                        var layoutOpts = extend({}, cy._private.options.layout);
-                        layoutOpts.eles = cy.elements();
-                        cy.layout(layoutOpts).run();
-                    };
+/***/ "./node_modules/dagre/lib/lodash.js":
+/*!******************************************!*\
+  !*** ./node_modules/dagre/lib/lodash.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* global window */
+
+var lodash;
+
+if (true) {
+  try {
+    lodash = {
+      cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js"),
+      constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
+      defaults: __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js"),
+      each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
+      filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
+      find: __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js"),
+      flatten: __webpack_require__(/*! lodash/flatten */ "./node_modules/lodash/flatten.js"),
+      forEach: __webpack_require__(/*! lodash/forEach */ "./node_modules/lodash/forEach.js"),
+      forIn: __webpack_require__(/*! lodash/forIn */ "./node_modules/lodash/forIn.js"),
+      has:  __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
+      isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
+      last: __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js"),
+      map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
+      mapValues: __webpack_require__(/*! lodash/mapValues */ "./node_modules/lodash/mapValues.js"),
+      max: __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js"),
+      merge: __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js"),
+      min: __webpack_require__(/*! lodash/min */ "./node_modules/lodash/min.js"),
+      minBy: __webpack_require__(/*! lodash/minBy */ "./node_modules/lodash/minBy.js"),
+      now: __webpack_require__(/*! lodash/now */ "./node_modules/lodash/now.js"),
+      pick: __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"),
+      range: __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js"),
+      reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
+      sortBy: __webpack_require__(/*! lodash/sortBy */ "./node_modules/lodash/sortBy.js"),
+      uniqueId: __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js"),
+      values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js"),
+      zipObject: __webpack_require__(/*! lodash/zipObject */ "./node_modules/lodash/zipObject.js"),
+    };
+  } catch (e) {
+    // continue regardless of error
+  }
+}
 
-                    loadExtData([options.style, options.elements], function (thens) {
-                        var initStyle = thens[0];
-                        var initEles = thens[1]; // init style
+if (!lodash) {
+  lodash = window._;
+}
 
-                        if (_p.styleEnabled) {
-                            cy.style().append(initStyle);
-                        } // initial load
+module.exports = lodash;
 
 
-                        setElesAndLayout(initEles, function () {
-                            // onready
-                            cy.startAnimationLoop();
-                            _p.ready = true; // if a ready callback is specified as an option, the bind it
+/***/ }),
 
-                            if (fn(options.ready)) {
-                                cy.on('ready', options.ready);
-                            } // bind all the ready handlers registered before creating this instance
+/***/ "./node_modules/dagre/lib/nesting-graph.js":
+/*!*************************************************!*\
+  !*** ./node_modules/dagre/lib/nesting-graph.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
 
-                            for (var i = 0; i < readies.length; i++) {
-                                var fn$1 = readies[i];
-                                cy.on('ready', fn$1);
-                            }
+module.exports = {
+  run: run,
+  cleanup: cleanup
+};
 
-                            if (reg) {
-                                reg.readies = [];
-                            } // clear b/c we've bound them all and don't want to keep it around in case a new core uses the same div etc
+/*
+ * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
+ * adds appropriate edges to ensure that all cluster nodes are placed between
+ * these boundries, and ensures that the graph is connected.
+ *
+ * In addition we ensure, through the use of the minlen property, that nodes
+ * and subgraph border nodes to not end up on the same rank.
+ *
+ * Preconditions:
+ *
+ *    1. Input graph is a DAG
+ *    2. Nodes in the input graph has a minlen attribute
+ *
+ * Postconditions:
+ *
+ *    1. Input graph is connected.
+ *    2. Dummy nodes are added for the tops and bottoms of subgraphs.
+ *    3. The minlen attribute for nodes is adjusted to ensure nodes do not
+ *       get placed on the same rank as subgraph border nodes.
+ *
+ * The nesting graph idea comes from Sander, "Layout of Compound Directed
+ * Graphs."
+ */
+function run(g) {
+  var root = util.addDummyNode(g, "root", {}, "_root");
+  var depths = treeDepths(g);
+  var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
+  var nodeSep = 2 * height + 1;
+
+  g.graph().nestingRoot = root;
+
+  // Multiply minlen by nodeSep to align nodes on non-border ranks.
+  _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
+
+  // Calculate a weight that is sufficient to keep subgraphs vertically compact
+  var weight = sumWeights(g) + 1;
+
+  // Create border nodes and link them up
+  _.forEach(g.children(), function(child) {
+    dfs(g, root, nodeSep, weight, height, depths, child);
+  });
+
+  // Save the multiplier for node layers for later removal of empty border
+  // layers.
+  g.graph().nodeRankFactor = nodeSep;
+}
+
+function dfs(g, root, nodeSep, weight, height, depths, v) {
+  var children = g.children(v);
+  if (!children.length) {
+    if (v !== root) {
+      g.setEdge(root, v, { weight: 0, minlen: nodeSep });
+    }
+    return;
+  }
 
+  var top = util.addBorderNode(g, "_bt");
+  var bottom = util.addBorderNode(g, "_bb");
+  var label = g.node(v);
+
+  g.setParent(top, v);
+  label.borderTop = top;
+  g.setParent(bottom, v);
+  label.borderBottom = bottom;
+
+  _.forEach(children, function(child) {
+    dfs(g, root, nodeSep, weight, height, depths, child);
+
+    var childNode = g.node(child);
+    var childTop = childNode.borderTop ? childNode.borderTop : child;
+    var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
+    var thisWeight = childNode.borderTop ? weight : 2 * weight;
+    var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
+
+    g.setEdge(top, childTop, {
+      weight: thisWeight,
+      minlen: minlen,
+      nestingEdge: true
+    });
+
+    g.setEdge(childBottom, bottom, {
+      weight: thisWeight,
+      minlen: minlen,
+      nestingEdge: true
+    });
+  });
+
+  if (!g.parent(v)) {
+    g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
+  }
+}
+
+function treeDepths(g) {
+  var depths = {};
+  function dfs(v, depth) {
+    var children = g.children(v);
+    if (children && children.length) {
+      _.forEach(children, function(child) {
+        dfs(child, depth + 1);
+      });
+    }
+    depths[v] = depth;
+  }
+  _.forEach(g.children(), function(v) { dfs(v, 1); });
+  return depths;
+}
+
+function sumWeights(g) {
+  return _.reduce(g.edges(), function(acc, e) {
+    return acc + g.edge(e).weight;
+  }, 0);
+}
+
+function cleanup(g) {
+  var graphLabel = g.graph();
+  g.removeNode(graphLabel.nestingRoot);
+  delete graphLabel.nestingRoot;
+  _.forEach(g.edges(), function(e) {
+    var edge = g.edge(e);
+    if (edge.nestingEdge) {
+      g.removeEdge(e);
+    }
+  });
+}
 
-                            cy.emit('ready');
-                        }, options.done);
-                    });
-                };
 
-                var corefn$9 = Core.prototype; // short alias
-
-                extend(corefn$9, {
-                    instanceString: function instanceString() {
-                        return 'core';
-                    },
-                    isReady: function isReady() {
-                        return this._private.ready;
-                    },
-                    destroyed: function destroyed() {
-                        return this._private.destroyed;
-                    },
-                    ready: function ready(fn) {
-                        if (this.isReady()) {
-                            this.emitter().emit('ready', [], fn); // just calls fn as though triggered via ready event
-                        } else {
-                            this.on('ready', fn);
-                        }
+/***/ }),
 
-                        return this;
-                    },
-                    destroy: function destroy() {
-                        var cy = this;
-                        if (cy.destroyed()) return;
-                        cy.stopAnimationLoop();
-                        cy.destroyRenderer();
-                        this.emit('destroy');
-                        cy._private.destroyed = true;
-                        return cy;
-                    },
-                    hasElementWithId: function hasElementWithId(id) {
-                        return this._private.elements.hasElementWithId(id);
-                    },
-                    getElementById: function getElementById(id) {
-                        return this._private.elements.getElementById(id);
-                    },
-                    hasCompoundNodes: function hasCompoundNodes() {
-                        return this._private.hasCompoundNodes;
-                    },
-                    headless: function headless() {
-                        return this._private.renderer.isHeadless();
-                    },
-                    styleEnabled: function styleEnabled() {
-                        return this._private.styleEnabled;
-                    },
-                    addToPool: function addToPool(eles) {
-                        this._private.elements.merge(eles);
-
-                        return this; // chaining
-                    },
-                    removeFromPool: function removeFromPool(eles) {
-                        this._private.elements.unmerge(eles);
-
-                        return this;
-                    },
-                    container: function container() {
-                        return this._private.container || null;
-                    },
-                    mount: function mount(container) {
-                        if (container == null) {
-                            return;
-                        }
+/***/ "./node_modules/dagre/lib/normalize.js":
+/*!*********************************************!*\
+  !*** ./node_modules/dagre/lib/normalize.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var cy = this;
-                        var _p = cy._private;
-                        var options = _p.options;
+"use strict";
 
-                        if (!htmlElement(container) && htmlElement(container[0])) {
-                            container = container[0];
-                        }
 
-                        cy.stopAnimationLoop();
-                        cy.destroyRenderer();
-                        _p.container = container;
-                        _p.styleEnabled = true;
-                        cy.invalidateSize();
-                        cy.initRenderer(extend({}, options, options.renderer, {
-                            // allow custom renderer name to be re-used, otherwise use canvas
-                            name: options.renderer.name === 'null' ? 'canvas' : options.renderer.name
-                        }));
-                        cy.startAnimationLoop();
-                        cy.style(options.style);
-                        cy.emit('mount');
-                        return cy;
-                    },
-                    unmount: function unmount() {
-                        var cy = this;
-                        cy.stopAnimationLoop();
-                        cy.destroyRenderer();
-                        cy.initRenderer({
-                            name: 'null'
-                        });
-                        cy.emit('unmount');
-                        return cy;
-                    },
-                    options: function options() {
-                        return copy(this._private.options);
-                    },
-                    json: function json(obj) {
-                        var cy = this;
-                        var _p = cy._private;
-                        var eles = cy.mutableElements();
-
-                        var getFreshRef = function getFreshRef(ele) {
-                            return cy.getElementById(ele.id());
-                        };
-
-                        if (plainObject(obj)) {
-                            // set
-                            cy.startBatch();
-
-                            if (obj.elements) {
-                                var idInJson = {};
-
-                                var updateEles = function updateEles(jsons, gr) {
-                                    var toAdd = [];
-                                    var toMod = [];
-
-                                    for (var i = 0; i < jsons.length; i++) {
-                                        var json = jsons[i];
-                                        var id = '' + json.data.id; // id must be string
-
-                                        var ele = cy.getElementById(id);
-                                        idInJson[id] = true;
-
-                                        if (ele.length !== 0) {
-                                            // existing element should be updated
-                                            toMod.push({
-                                                ele: ele,
-                                                json: json
-                                            });
-                                        } else {
-                                            // otherwise should be added
-                                            if (gr) {
-                                                json.group = gr;
-                                                toAdd.push(json);
-                                            } else {
-                                                toAdd.push(json);
-                                            }
-                                        }
-                                    }
-
-                                    cy.add(toAdd);
-
-                                    for (var _i = 0; _i < toMod.length; _i++) {
-                                        var _toMod$_i = toMod[_i],
-                                            _ele = _toMod$_i.ele,
-                                            _json = _toMod$_i.json;
-
-                                        _ele.json(_json);
-                                    }
-                                };
-
-                                if (array(obj.elements)) {
-                                    // elements: []
-                                    updateEles(obj.elements);
-                                } else {
-                                    // elements: { nodes: [], edges: [] }
-                                    var grs = ['nodes', 'edges'];
-
-                                    for (var i = 0; i < grs.length; i++) {
-                                        var gr = grs[i];
-                                        var elements = obj.elements[gr];
-
-                                        if (array(elements)) {
-                                            updateEles(elements, gr);
-                                        }
-                                    }
-                                }
-
-                                var parentsToRemove = cy.collection();
-                                eles.filter(function (ele) {
-                                    return !idInJson[ele.id()];
-                                }).forEach(function (ele) {
-                                    if (ele.isParent()) {
-                                        parentsToRemove.merge(ele);
-                                    } else {
-                                        ele.remove();
-                                    }
-                                }); // so that children are not removed w/parent
-
-                                parentsToRemove.forEach(function (ele) {
-                                    return ele.children().move({
-                                        parent: null
-                                    });
-                                }); // intermediate parents may be moved by prior line, so make sure we remove by fresh refs
-
-                                parentsToRemove.forEach(function (ele) {
-                                    return getFreshRef(ele).remove();
-                                });
-                            }
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
 
-                            if (obj.style) {
-                                cy.style(obj.style);
-                            }
+module.exports = {
+  run: run,
+  undo: undo
+};
 
-                            if (obj.zoom != null && obj.zoom !== _p.zoom) {
-                                cy.zoom(obj.zoom);
-                            }
+/*
+ * Breaks any long edges in the graph into short segments that span 1 layer
+ * each. This operation is undoable with the denormalize function.
+ *
+ * Pre-conditions:
+ *
+ *    1. The input graph is a DAG.
+ *    2. Each node in the graph has a "rank" property.
+ *
+ * Post-condition:
+ *
+ *    1. All edges in the graph have a length of 1.
+ *    2. Dummy nodes are added where edges have been split into segments.
+ *    3. The graph is augmented with a "dummyChains" attribute which contains
+ *       the first dummy in each chain of dummy nodes produced.
+ */
+function run(g) {
+  g.graph().dummyChains = [];
+  _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
+}
+
+function normalizeEdge(g, e) {
+  var v = e.v;
+  var vRank = g.node(v).rank;
+  var w = e.w;
+  var wRank = g.node(w).rank;
+  var name = e.name;
+  var edgeLabel = g.edge(e);
+  var labelRank = edgeLabel.labelRank;
+
+  if (wRank === vRank + 1) return;
+
+  g.removeEdge(e);
+
+  var dummy, attrs, i;
+  for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
+    edgeLabel.points = [];
+    attrs = {
+      width: 0, height: 0,
+      edgeLabel: edgeLabel, edgeObj: e,
+      rank: vRank
+    };
+    dummy = util.addDummyNode(g, "edge", attrs, "_d");
+    if (vRank === labelRank) {
+      attrs.width = edgeLabel.width;
+      attrs.height = edgeLabel.height;
+      attrs.dummy = "edge-label";
+      attrs.labelpos = edgeLabel.labelpos;
+    }
+    g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
+    if (i === 0) {
+      g.graph().dummyChains.push(dummy);
+    }
+    v = dummy;
+  }
 
-                            if (obj.pan) {
-                                if (obj.pan.x !== _p.pan.x || obj.pan.y !== _p.pan.y) {
-                                    cy.pan(obj.pan);
-                                }
-                            }
+  g.setEdge(v, w, { weight: edgeLabel.weight }, name);
+}
+
+function undo(g) {
+  _.forEach(g.graph().dummyChains, function(v) {
+    var node = g.node(v);
+    var origLabel = node.edgeLabel;
+    var w;
+    g.setEdge(node.edgeObj, origLabel);
+    while (node.dummy) {
+      w = g.successors(v)[0];
+      g.removeNode(v);
+      origLabel.points.push({ x: node.x, y: node.y });
+      if (node.dummy === "edge-label") {
+        origLabel.x = node.x;
+        origLabel.y = node.y;
+        origLabel.width = node.width;
+        origLabel.height = node.height;
+      }
+      v = w;
+      node = g.node(v);
+    }
+  });
+}
 
-                            if (obj.data) {
-                                cy.data(obj.data);
-                            }
 
-                            var fields = ['minZoom', 'maxZoom', 'zoomingEnabled', 'userZoomingEnabled', 'panningEnabled', 'userPanningEnabled', 'boxSelectionEnabled', 'autolock', 'autoungrabify', 'autounselectify'];
+/***/ }),
 
-                            for (var _i2 = 0; _i2 < fields.length; _i2++) {
-                                var f = fields[_i2];
+/***/ "./node_modules/dagre/lib/order/add-subgraph-constraints.js":
+/*!******************************************************************!*\
+  !*** ./node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
+  \******************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+
+module.exports = addSubgraphConstraints;
+
+function addSubgraphConstraints(g, cg, vs) {
+  var prev = {},
+    rootPrev;
+
+  _.forEach(vs, function(v) {
+    var child = g.parent(v),
+      parent,
+      prevChild;
+    while (child) {
+      parent = g.parent(child);
+      if (parent) {
+        prevChild = prev[parent];
+        prev[parent] = child;
+      } else {
+        prevChild = rootPrev;
+        rootPrev = child;
+      }
+      if (prevChild && prevChild !== child) {
+        cg.setEdge(prevChild, child);
+        return;
+      }
+      child = parent;
+    }
+  });
 
-                                if (obj[f] != null) {
-                                    cy[f](obj[f]);
-                                }
-                            }
-
-                            cy.endBatch();
-                            return this; // chaining
-                        } else {
-                            // get
-                            var flat = !!obj;
-                            var json = {};
-
-                            if (flat) {
-                                json.elements = this.elements().map(function (ele) {
-                                    return ele.json();
-                                });
-                            } else {
-                                json.elements = {};
-                                eles.forEach(function (ele) {
-                                    var group = ele.group();
-
-                                    if (!json.elements[group]) {
-                                        json.elements[group] = [];
-                                    }
-
-                                    json.elements[group].push(ele.json());
-                                });
-                            }
-
-                            if (this._private.styleEnabled) {
-                                json.style = cy.style().json();
-                            }
-
-                            json.data = copy(cy.data());
-                            var options = _p.options;
-                            json.zoomingEnabled = _p.zoomingEnabled;
-                            json.userZoomingEnabled = _p.userZoomingEnabled;
-                            json.zoom = _p.zoom;
-                            json.minZoom = _p.minZoom;
-                            json.maxZoom = _p.maxZoom;
-                            json.panningEnabled = _p.panningEnabled;
-                            json.userPanningEnabled = _p.userPanningEnabled;
-                            json.pan = copy(_p.pan);
-                            json.boxSelectionEnabled = _p.boxSelectionEnabled;
-                            json.renderer = copy(options.renderer);
-                            json.hideEdgesOnViewport = options.hideEdgesOnViewport;
-                            json.textureOnViewport = options.textureOnViewport;
-                            json.wheelSensitivity = options.wheelSensitivity;
-                            json.motionBlur = options.motionBlur;
-                            return json;
-                        }
-                    }
-                });
-                corefn$9.$id = corefn$9.getElementById;
-                [corefn, corefn$1, elesfn$v, corefn$2, corefn$3, corefn$4, corefn$5, corefn$6, corefn$7, corefn$8, fn$6].forEach(function (props) {
-                    extend(corefn$9, props);
-                });
-
-                /* eslint-disable no-unused-vars */
-
-                var defaults$9 = {
-                    fit: true,
-                    // whether to fit the viewport to the graph
-                    directed: false,
-                    // whether the tree is directed downwards (or edges can point in any direction if false)
-                    padding: 30,
-                    // padding on fit
-                    circle: false,
-                    // put depths in concentric circles if true, put depths top down if false
-                    grid: false,
-                    // whether to create an even grid into which the DAG is placed (circle:false only)
-                    spacingFactor: 1.75,
-                    // positive spacing factor, larger => more space between nodes (N.B. n/a if causes overlap)
-                    boundingBox: undefined,
-                    // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    avoidOverlap: true,
-                    // prevents node overlap, may overflow boundingBox if not enough space
-                    nodeDimensionsIncludeLabels: false,
-                    // Excludes the label when calculating node bounding boxes for the layout algorithm
-                    roots: undefined,
-                    // the roots of the trees
-                    maximal: false,
-                    // whether to shift nodes down their natural BFS depths in order to avoid upwards edges (DAGS only)
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled,
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
-
-                };
-                /* eslint-enable */
+  /*
+  function dfs(v) {
+    var children = v ? g.children(v) : g.children();
+    if (children.length) {
+      var min = Number.POSITIVE_INFINITY,
+          subgraphs = [];
+      _.each(children, function(child) {
+        var childMin = dfs(child);
+        if (g.children(child).length) {
+          subgraphs.push({ v: child, order: childMin });
+        }
+        min = Math.min(min, childMin);
+      });
+      _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
+        cg.setEdge(prev.v, curr.v);
+        return curr;
+      });
+      return min;
+    }
+    return g.node(v).order;
+  }
+  dfs(undefined);
+  */
+}
 
-                var getInfo = function getInfo(ele) {
-                    return ele.scratch('breadthfirst');
-                };
 
-                var setInfo = function setInfo(ele, obj) {
-                    return ele.scratch('breadthfirst', obj);
-                };
+/***/ }),
 
-                function BreadthFirstLayout(options) {
-                    this.options = extend({}, defaults$9, options);
-                }
+/***/ "./node_modules/dagre/lib/order/barycenter.js":
+/*!****************************************************!*\
+  !*** ./node_modules/dagre/lib/order/barycenter.js ***!
+  \****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+
+module.exports = barycenter;
+
+function barycenter(g, movable) {
+  return _.map(movable, function(v) {
+    var inV = g.inEdges(v);
+    if (!inV.length) {
+      return { v: v };
+    } else {
+      var result = _.reduce(inV, function(acc, e) {
+        var edge = g.edge(e),
+          nodeU = g.node(e.v);
+        return {
+          sum: acc.sum + (edge.weight * nodeU.order),
+          weight: acc.weight + edge.weight
+        };
+      }, { sum: 0, weight: 0 });
+
+      return {
+        v: v,
+        barycenter: result.sum / result.weight,
+        weight: result.weight
+      };
+    }
+  });
+}
 
-                BreadthFirstLayout.prototype.run = function () {
-                    var params = this.options;
-                    var options = params;
-                    var cy = params.cy;
-                    var eles = options.eles;
-                    var nodes = eles.nodes().filter(function (n) {
-                        return !n.isParent();
-                    });
-                    var graph = eles;
-                    var directed = options.directed;
-                    var maximal = options.maximal || options.maximalAdjustments > 0; // maximalAdjustments for compat. w/ old code
-
-                    var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                        x1: 0,
-                        y1: 0,
-                        w: cy.width(),
-                        h: cy.height()
-                    });
-                    var roots;
-
-                    if (elementOrCollection(options.roots)) {
-                        roots = options.roots;
-                    } else if (array(options.roots)) {
-                        var rootsArray = [];
-
-                        for (var i = 0; i < options.roots.length; i++) {
-                            var id = options.roots[i];
-                            var ele = cy.getElementById(id);
-                            rootsArray.push(ele);
-                        }
 
-                        roots = cy.collection(rootsArray);
-                    } else if (string(options.roots)) {
-                        roots = cy.$(options.roots);
-                    } else {
-                        if (directed) {
-                            roots = nodes.roots();
-                        } else {
-                            var components = eles.components();
-                            roots = cy.collection();
-
-                            var _loop = function _loop(_i) {
-                                var comp = components[_i];
-                                var maxDegree = comp.maxDegree(false);
-                                var compRoots = comp.filter(function (ele) {
-                                    return ele.degree(false) === maxDegree;
-                                });
-                                roots = roots.add(compRoots);
-                            };
-
-                            for (var _i = 0; _i < components.length; _i++) {
-                                _loop(_i);
-                            }
-                        }
-                    }
 
-                    var depths = [];
-                    var foundByBfs = {};
+/***/ }),
 
-                    var addToDepth = function addToDepth(ele, d) {
-                        if (depths[d] == null) {
-                            depths[d] = [];
-                        }
+/***/ "./node_modules/dagre/lib/order/build-layer-graph.js":
+/*!***********************************************************!*\
+  !*** ./node_modules/dagre/lib/order/build-layer-graph.js ***!
+  \***********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var i = depths[d].length;
-                        depths[d].push(ele);
-                        setInfo(ele, {
-                            index: i,
-                            depth: d
-                        });
-                    };
-
-                    var changeDepth = function changeDepth(ele, newDepth) {
-                        var _getInfo = getInfo(ele),
-                            depth = _getInfo.depth,
-                            index = _getInfo.index;
-
-                        depths[depth][index] = null;
-                        addToDepth(ele, newDepth);
-                    }; // find the depths of the nodes
-
-
-                    graph.bfs({
-                        roots: roots,
-                        directed: options.directed,
-                        visit: function visit(node, edge, pNode, i, depth) {
-                            var ele = node[0];
-                            var id = ele.id();
-                            addToDepth(ele, depth);
-                            foundByBfs[id] = true;
-                        }
-                    }); // check for nodes not found by bfs
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
 
-                    var orphanNodes = [];
+module.exports = buildLayerGraph;
 
-                    for (var _i2 = 0; _i2 < nodes.length; _i2++) {
-                        var _ele = nodes[_i2];
+/*
+ * Constructs a graph that can be used to sort a layer of nodes. The graph will
+ * contain all base and subgraph nodes from the request layer in their original
+ * hierarchy and any edges that are incident on these nodes and are of the type
+ * requested by the "relationship" parameter.
+ *
+ * Nodes from the requested rank that do not have parents are assigned a root
+ * node in the output graph, which is set in the root graph attribute. This
+ * makes it easy to walk the hierarchy of movable nodes during ordering.
+ *
+ * Pre-conditions:
+ *
+ *    1. Input graph is a DAG
+ *    2. Base nodes in the input graph have a rank attribute
+ *    3. Subgraph nodes in the input graph has minRank and maxRank attributes
+ *    4. Edges have an assigned weight
+ *
+ * Post-conditions:
+ *
+ *    1. Output graph has all nodes in the movable rank with preserved
+ *       hierarchy.
+ *    2. Root nodes in the movable layer are made children of the node
+ *       indicated by the root attribute of the graph.
+ *    3. Non-movable nodes incident on movable nodes, selected by the
+ *       relationship parameter, are included in the graph (without hierarchy).
+ *    4. Edges incident on movable nodes, selected by the relationship
+ *       parameter, are added to the output graph.
+ *    5. The weights for copied edges are aggregated as need, since the output
+ *       graph is not a multi-graph.
+ */
+function buildLayerGraph(g, rank, relationship) {
+  var root = createRootNode(g),
+    result = new Graph({ compound: true }).setGraph({ root: root })
+      .setDefaultNodeLabel(function(v) { return g.node(v); });
+
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v),
+      parent = g.parent(v);
+
+    if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
+      result.setNode(v);
+      result.setParent(v, parent || root);
+
+      // This assumes we have only short edges!
+      _.forEach(g[relationship](v), function(e) {
+        var u = e.v === v ? e.w : e.v,
+          edge = result.edge(u, v),
+          weight = !_.isUndefined(edge) ? edge.weight : 0;
+        result.setEdge(u, v, { weight: g.edge(e).weight + weight });
+      });
 
-                        if (foundByBfs[_ele.id()]) {
-                            continue;
-                        } else {
-                            orphanNodes.push(_ele);
-                        }
-                    } // assign the nodes a depth and index
+      if (_.has(node, "minRank")) {
+        result.setNode(v, {
+          borderLeft: node.borderLeft[rank],
+          borderRight: node.borderRight[rank]
+        });
+      }
+    }
+  });
 
+  return result;
+}
 
-                    var assignDepthsAt = function assignDepthsAt(i) {
-                        var eles = depths[i];
+function createRootNode(g) {
+  var v;
+  while (g.hasNode((v = _.uniqueId("_root"))));
+  return v;
+}
 
-                        for (var j = 0; j < eles.length; j++) {
-                            var _ele2 = eles[j];
 
-                            if (_ele2 == null) {
-                                eles.splice(j, 1);
-                                j--;
-                                continue;
-                            }
+/***/ }),
 
-                            setInfo(_ele2, {
-                                depth: i,
-                                index: j
-                            });
-                        }
-                    };
+/***/ "./node_modules/dagre/lib/order/cross-count.js":
+/*!*****************************************************!*\
+  !*** ./node_modules/dagre/lib/order/cross-count.js ***!
+  \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var assignDepths = function assignDepths() {
-                        for (var _i3 = 0; _i3 < depths.length; _i3++) {
-                            assignDepthsAt(_i3);
-                        }
-                    };
+"use strict";
 
-                    var adjustMaximally = function adjustMaximally(ele, shifted) {
-                        var eInfo = getInfo(ele);
-                        var incomers = ele.incomers().filter(function (el) {
-                            return el.isNode() && eles.has(el);
-                        });
-                        var maxDepth = -1;
-                        var id = ele.id();
 
-                        for (var k = 0; k < incomers.length; k++) {
-                            var incmr = incomers[k];
-                            var iInfo = getInfo(incmr);
-                            maxDepth = Math.max(maxDepth, iInfo.depth);
-                        }
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
 
-                        if (eInfo.depth <= maxDepth) {
-                            if (shifted[id]) {
-                                return null;
-                            }
+module.exports = crossCount;
 
-                            changeDepth(ele, maxDepth + 1);
-                            shifted[id] = true;
-                            return true;
-                        }
+/*
+ * A function that takes a layering (an array of layers, each with an array of
+ * ordererd nodes) and a graph and returns a weighted crossing count.
+ *
+ * Pre-conditions:
+ *
+ *    1. Input graph must be simple (not a multigraph), directed, and include
+ *       only simple edges.
+ *    2. Edges in the input graph must have assigned weights.
+ *
+ * Post-conditions:
+ *
+ *    1. The graph and layering matrix are left unchanged.
+ *
+ * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
+ */
+function crossCount(g, layering) {
+  var cc = 0;
+  for (var i = 1; i < layering.length; ++i) {
+    cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
+  }
+  return cc;
+}
+
+function twoLayerCrossCount(g, northLayer, southLayer) {
+  // Sort all of the edges between the north and south layers by their position
+  // in the north layer and then the south. Map these edges to the position of
+  // their head in the south layer.
+  var southPos = _.zipObject(southLayer,
+    _.map(southLayer, function (v, i) { return i; }));
+  var southEntries = _.flatten(_.map(northLayer, function(v) {
+    return _.sortBy(_.map(g.outEdges(v), function(e) {
+      return { pos: southPos[e.w], weight: g.edge(e).weight };
+    }), "pos");
+  }), true);
+
+  // Build the accumulator tree
+  var firstIndex = 1;
+  while (firstIndex < southLayer.length) firstIndex <<= 1;
+  var treeSize = 2 * firstIndex - 1;
+  firstIndex -= 1;
+  var tree = _.map(new Array(treeSize), function() { return 0; });
+
+  // Calculate the weighted crossings
+  var cc = 0;
+  _.forEach(southEntries.forEach(function(entry) {
+    var index = entry.pos + firstIndex;
+    tree[index] += entry.weight;
+    var weightSum = 0;
+    while (index > 0) {
+      if (index % 2) {
+        weightSum += tree[index + 1];
+      }
+      index = (index - 1) >> 1;
+      tree[index] += entry.weight;
+    }
+    cc += entry.weight * weightSum;
+  }));
 
-                        return false;
-                    }; // for the directed case, try to make the edges all go down (i.e. depth i => depth i + 1)
+  return cc;
+}
 
 
-                    if (directed && maximal) {
-                        var Q = [];
-                        var shifted = {};
+/***/ }),
 
-                        var enqueue = function enqueue(n) {
-                            return Q.push(n);
-                        };
+/***/ "./node_modules/dagre/lib/order/index.js":
+/*!***********************************************!*\
+  !*** ./node_modules/dagre/lib/order/index.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var dequeue = function dequeue() {
-                            return Q.shift();
-                        };
+"use strict";
 
-                        nodes.forEach(function (n) {
-                            return Q.push(n);
-                        });
 
-                        while (Q.length > 0) {
-                            var _ele3 = dequeue();
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var initOrder = __webpack_require__(/*! ./init-order */ "./node_modules/dagre/lib/order/init-order.js");
+var crossCount = __webpack_require__(/*! ./cross-count */ "./node_modules/dagre/lib/order/cross-count.js");
+var sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "./node_modules/dagre/lib/order/sort-subgraph.js");
+var buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "./node_modules/dagre/lib/order/build-layer-graph.js");
+var addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "./node_modules/dagre/lib/order/add-subgraph-constraints.js");
+var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
 
-                            var didShift = adjustMaximally(_ele3, shifted);
+module.exports = order;
 
-                            if (didShift) {
-                                _ele3.outgoers().filter(function (el) {
-                                    return el.isNode() && eles.has(el);
-                                }).forEach(enqueue);
-                            } else if (didShift === null) {
-                                warn('Detected double maximal shift for node `' + _ele3.id() + '`.  Bailing maximal adjustment due to cycle.  Use `options.maximal: true` only on DAGs.');
-                                break; // exit on failure
-                            }
-                        }
-                    }
+/*
+ * Applies heuristics to minimize edge crossings in the graph and sets the best
+ * order solution as an order attribute on each node.
+ *
+ * Pre-conditions:
+ *
+ *    1. Graph must be DAG
+ *    2. Graph nodes must be objects with a "rank" attribute
+ *    3. Graph edges must have the "weight" attribute
+ *
+ * Post-conditions:
+ *
+ *    1. Graph nodes will have an "order" attribute based on the results of the
+ *       algorithm.
+ */
+function order(g) {
+  var maxRank = util.maxRank(g),
+    downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
+    upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
+
+  var layering = initOrder(g);
+  assignOrder(g, layering);
+
+  var bestCC = Number.POSITIVE_INFINITY,
+    best;
+
+  for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
+    sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
+
+    layering = util.buildLayerMatrix(g);
+    var cc = crossCount(g, layering);
+    if (cc < bestCC) {
+      lastBest = 0;
+      best = _.cloneDeep(layering);
+      bestCC = cc;
+    }
+  }
 
-                    assignDepths(); // clear holes
-                    // find min distance we need to leave between nodes
+  assignOrder(g, best);
+}
+
+function buildLayerGraphs(g, ranks, relationship) {
+  return _.map(ranks, function(rank) {
+    return buildLayerGraph(g, rank, relationship);
+  });
+}
+
+function sweepLayerGraphs(layerGraphs, biasRight) {
+  var cg = new Graph();
+  _.forEach(layerGraphs, function(lg) {
+    var root = lg.graph().root;
+    var sorted = sortSubgraph(lg, root, cg, biasRight);
+    _.forEach(sorted.vs, function(v, i) {
+      lg.node(v).order = i;
+    });
+    addSubgraphConstraints(lg, cg, sorted.vs);
+  });
+}
+
+function assignOrder(g, layering) {
+  _.forEach(layering, function(layer) {
+    _.forEach(layer, function(v, i) {
+      g.node(v).order = i;
+    });
+  });
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/dagre/lib/order/init-order.js":
+/*!****************************************************!*\
+  !*** ./node_modules/dagre/lib/order/init-order.js ***!
+  \****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var minDistance = 0;
+"use strict";
 
-                    if (options.avoidOverlap) {
-                        for (var _i4 = 0; _i4 < nodes.length; _i4++) {
-                            var n = nodes[_i4];
-                            var nbb = n.layoutDimensions(options);
-                            var w = nbb.w;
-                            var h = nbb.h;
-                            minDistance = Math.max(minDistance, w, h);
-                        }
-                    } // get the weighted percent for an element based on its connectivity to other levels
 
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
 
-                    var cachedWeightedPercent = {};
+module.exports = initOrder;
 
-                    var getWeightedPercent = function getWeightedPercent(ele) {
-                        if (cachedWeightedPercent[ele.id()]) {
-                            return cachedWeightedPercent[ele.id()];
-                        }
+/*
+ * Assigns an initial order value for each node by performing a DFS search
+ * starting from nodes in the first rank. Nodes are assigned an order in their
+ * rank as they are first visited.
+ *
+ * This approach comes from Gansner, et al., "A Technique for Drawing Directed
+ * Graphs."
+ *
+ * Returns a layering matrix with an array per layer and each layer sorted by
+ * the order of its nodes.
+ */
+function initOrder(g) {
+  var visited = {};
+  var simpleNodes = _.filter(g.nodes(), function(v) {
+    return !g.children(v).length;
+  });
+  var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));
+  var layers = _.map(_.range(maxRank + 1), function() { return []; });
 
-                        var eleDepth = getInfo(ele).depth;
-                        var neighbors = ele.neighborhood();
-                        var percent = 0;
-                        var samples = 0;
+  function dfs(v) {
+    if (_.has(visited, v)) return;
+    visited[v] = true;
+    var node = g.node(v);
+    layers[node.rank].push(v);
+    _.forEach(g.successors(v), dfs);
+  }
 
-                        for (var _i5 = 0; _i5 < neighbors.length; _i5++) {
-                            var neighbor = neighbors[_i5];
+  var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
+  _.forEach(orderedVs, dfs);
 
-                            if (neighbor.isEdge() || neighbor.isParent() || !nodes.has(neighbor)) {
-                                continue;
-                            }
+  return layers;
+}
 
-                            var bf = getInfo(neighbor);
-                            var index = bf.index;
-                            var depth = bf.depth; // unassigned neighbours shouldn't affect the ordering
 
-                            if (index == null || depth == null) {
-                                continue;
-                            }
+/***/ }),
 
-                            var nDepth = depths[depth].length;
+/***/ "./node_modules/dagre/lib/order/resolve-conflicts.js":
+/*!***********************************************************!*\
+  !*** ./node_modules/dagre/lib/order/resolve-conflicts.js ***!
+  \***********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            if (depth < eleDepth) {
-                                // only get influenced by elements above
-                                percent += index / nDepth;
-                                samples++;
-                            }
-                        }
+"use strict";
 
-                        samples = Math.max(1, samples);
-                        percent = percent / samples;
 
-                        if (samples === 0) {
-                            // put lone nodes at the start
-                            percent = 0;
-                        }
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
 
-                        cachedWeightedPercent[ele.id()] = percent;
-                        return percent;
-                    }; // rearrange the indices in each depth level based on connectivity
+module.exports = resolveConflicts;
 
+/*
+ * Given a list of entries of the form {v, barycenter, weight} and a
+ * constraint graph this function will resolve any conflicts between the
+ * constraint graph and the barycenters for the entries. If the barycenters for
+ * an entry would violate a constraint in the constraint graph then we coalesce
+ * the nodes in the conflict into a new node that respects the contraint and
+ * aggregates barycenter and weight information.
+ *
+ * This implementation is based on the description in Forster, "A Fast and
+ * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
+ * differs in some specific details.
+ *
+ * Pre-conditions:
+ *
+ *    1. Each entry has the form {v, barycenter, weight}, or if the node has
+ *       no barycenter, then {v}.
+ *
+ * Returns:
+ *
+ *    A new list of entries of the form {vs, i, barycenter, weight}. The list
+ *    `vs` may either be a singleton or it may be an aggregation of nodes
+ *    ordered such that they do not violate constraints from the constraint
+ *    graph. The property `i` is the lowest original index of any of the
+ *    elements in `vs`.
+ */
+function resolveConflicts(entries, cg) {
+  var mappedEntries = {};
+  _.forEach(entries, function(entry, i) {
+    var tmp = mappedEntries[entry.v] = {
+      indegree: 0,
+      "in": [],
+      out: [],
+      vs: [entry.v],
+      i: i
+    };
+    if (!_.isUndefined(entry.barycenter)) {
+      tmp.barycenter = entry.barycenter;
+      tmp.weight = entry.weight;
+    }
+  });
+
+  _.forEach(cg.edges(), function(e) {
+    var entryV = mappedEntries[e.v];
+    var entryW = mappedEntries[e.w];
+    if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
+      entryW.indegree++;
+      entryV.out.push(mappedEntries[e.w]);
+    }
+  });
+
+  var sourceSet = _.filter(mappedEntries, function(entry) {
+    return !entry.indegree;
+  });
+
+  return doResolveConflicts(sourceSet);
+}
+
+function doResolveConflicts(sourceSet) {
+  var entries = [];
+
+  function handleIn(vEntry) {
+    return function(uEntry) {
+      if (uEntry.merged) {
+        return;
+      }
+      if (_.isUndefined(uEntry.barycenter) ||
+          _.isUndefined(vEntry.barycenter) ||
+          uEntry.barycenter >= vEntry.barycenter) {
+        mergeEntries(vEntry, uEntry);
+      }
+    };
+  }
 
-                    var sortFn = function sortFn(a, b) {
-                        var apct = getWeightedPercent(a);
-                        var bpct = getWeightedPercent(b);
-                        var diff = apct - bpct;
+  function handleOut(vEntry) {
+    return function(wEntry) {
+      wEntry["in"].push(vEntry);
+      if (--wEntry.indegree === 0) {
+        sourceSet.push(wEntry);
+      }
+    };
+  }
 
-                        if (diff === 0) {
-                            return ascending(a.id(), b.id()); // make sure sort doesn't have don't-care comparisons
-                        } else {
-                            return diff;
-                        }
-                    }; // sort each level to make connected nodes closer
+  while (sourceSet.length) {
+    var entry = sourceSet.pop();
+    entries.push(entry);
+    _.forEach(entry["in"].reverse(), handleIn(entry));
+    _.forEach(entry.out, handleOut(entry));
+  }
 
+  return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
+    function(entry) {
+      return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
+    });
 
-                    for (var _i6 = 0; _i6 < depths.length; _i6++) {
-                        depths[_i6].sort(sortFn);
+}
 
-                        assignDepthsAt(_i6);
-                    } // assign orphan nodes to a new top-level depth
+function mergeEntries(target, source) {
+  var sum = 0;
+  var weight = 0;
 
+  if (target.weight) {
+    sum += target.barycenter * target.weight;
+    weight += target.weight;
+  }
 
-                    var orphanDepth = [];
+  if (source.weight) {
+    sum += source.barycenter * source.weight;
+    weight += source.weight;
+  }
 
-                    for (var _i7 = 0; _i7 < orphanNodes.length; _i7++) {
-                        orphanDepth.push(orphanNodes[_i7]);
-                    }
+  target.vs = source.vs.concat(target.vs);
+  target.barycenter = sum / weight;
+  target.weight = weight;
+  target.i = Math.min(source.i, target.i);
+  source.merged = true;
+}
 
-                    depths.unshift(orphanDepth);
-                    assignDepths();
-                    var biggestDepthSize = 0;
 
-                    for (var _i8 = 0; _i8 < depths.length; _i8++) {
-                        biggestDepthSize = Math.max(depths[_i8].length, biggestDepthSize);
-                    }
+/***/ }),
 
-                    var center = {
-                        x: bb.x1 + bb.w / 2,
-                        y: bb.x1 + bb.h / 2
-                    };
-                    var maxDepthSize = depths.reduce(function (max, eles) {
-                        return Math.max(max, eles.length);
-                    }, 0);
-
-                    var getPosition = function getPosition(ele) {
-                        var _getInfo2 = getInfo(ele),
-                            depth = _getInfo2.depth,
-                            index = _getInfo2.index;
-
-                        var depthSize = depths[depth].length;
-                        var distanceX = Math.max(bb.w / ((options.grid ? maxDepthSize : depthSize) + 1), minDistance);
-                        var distanceY = Math.max(bb.h / (depths.length + 1), minDistance);
-                        var radiusStepSize = Math.min(bb.w / 2 / depths.length, bb.h / 2 / depths.length);
-                        radiusStepSize = Math.max(radiusStepSize, minDistance);
-
-                        if (!options.circle) {
-                            var epos = {
-                                x: center.x + (index + 1 - (depthSize + 1) / 2) * distanceX,
-                                y: (depth + 1) * distanceY
-                            };
-                            return epos;
-                        } else {
-                            var radius = radiusStepSize * depth + radiusStepSize - (depths.length > 0 && depths[0].length <= 3 ? radiusStepSize / 2 : 0);
-                            var theta = 2 * Math.PI / depths[depth].length * index;
-
-                            if (depth === 0 && depths[0].length === 1) {
-                                radius = 1;
-                            }
+/***/ "./node_modules/dagre/lib/order/sort-subgraph.js":
+/*!*******************************************************!*\
+  !*** ./node_modules/dagre/lib/order/sort-subgraph.js ***!
+  \*******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var barycenter = __webpack_require__(/*! ./barycenter */ "./node_modules/dagre/lib/order/barycenter.js");
+var resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "./node_modules/dagre/lib/order/resolve-conflicts.js");
+var sort = __webpack_require__(/*! ./sort */ "./node_modules/dagre/lib/order/sort.js");
+
+module.exports = sortSubgraph;
+
+function sortSubgraph(g, v, cg, biasRight) {
+  var movable = g.children(v);
+  var node = g.node(v);
+  var bl = node ? node.borderLeft : undefined;
+  var br = node ? node.borderRight: undefined;
+  var subgraphs = {};
+
+  if (bl) {
+    movable = _.filter(movable, function(w) {
+      return w !== bl && w !== br;
+    });
+  }
 
-                            return {
-                                x: center.x + radius * Math.cos(theta),
-                                y: center.y + radius * Math.sin(theta)
-                            };
-                        }
-                    };
+  var barycenters = barycenter(g, movable);
+  _.forEach(barycenters, function(entry) {
+    if (g.children(entry.v).length) {
+      var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
+      subgraphs[entry.v] = subgraphResult;
+      if (_.has(subgraphResult, "barycenter")) {
+        mergeBarycenters(entry, subgraphResult);
+      }
+    }
+  });
+
+  var entries = resolveConflicts(barycenters, cg);
+  expandSubgraphs(entries, subgraphs);
+
+  var result = sort(entries, biasRight);
+
+  if (bl) {
+    result.vs = _.flatten([bl, result.vs, br], true);
+    if (g.predecessors(bl).length) {
+      var blPred = g.node(g.predecessors(bl)[0]),
+        brPred = g.node(g.predecessors(br)[0]);
+      if (!_.has(result, "barycenter")) {
+        result.barycenter = 0;
+        result.weight = 0;
+      }
+      result.barycenter = (result.barycenter * result.weight +
+                           blPred.order + brPred.order) / (result.weight + 2);
+      result.weight += 2;
+    }
+  }
 
-                    nodes.layoutPositions(this, options, getPosition);
-                    return this; // chaining
-                };
+  return result;
+}
+
+function expandSubgraphs(entries, subgraphs) {
+  _.forEach(entries, function(entry) {
+    entry.vs = _.flatten(entry.vs.map(function(v) {
+      if (subgraphs[v]) {
+        return subgraphs[v].vs;
+      }
+      return v;
+    }), true);
+  });
+}
+
+function mergeBarycenters(target, other) {
+  if (!_.isUndefined(target.barycenter)) {
+    target.barycenter = (target.barycenter * target.weight +
+                         other.barycenter * other.weight) /
+                        (target.weight + other.weight);
+    target.weight += other.weight;
+  } else {
+    target.barycenter = other.barycenter;
+    target.weight = other.weight;
+  }
+}
 
-                var defaults$a = {
-                    fit: true,
-                    // whether to fit the viewport to the graph
-                    padding: 30,
-                    // the padding on fit
-                    boundingBox: undefined,
-                    // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    avoidOverlap: true,
-                    // prevents node overlap, may overflow boundingBox and radius if not enough space
-                    nodeDimensionsIncludeLabels: false,
-                    // Excludes the label when calculating node bounding boxes for the layout algorithm
-                    spacingFactor: undefined,
-                    // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
-                    radius: undefined,
-                    // the radius of the circle
-                    startAngle: 3 / 2 * Math.PI,
-                    // where nodes start in radians
-                    sweep: undefined,
-                    // how many radians should be between the first and last node (defaults to full circle)
-                    clockwise: true,
-                    // whether the layout should go clockwise (true) or counterclockwise/anticlockwise (false)
-                    sort: undefined,
-                    // a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
 
-                };
+/***/ }),
 
-                function CircleLayout(options) {
-                    this.options = extend({}, defaults$a, options);
-                }
+/***/ "./node_modules/dagre/lib/order/sort.js":
+/*!**********************************************!*\
+  !*** ./node_modules/dagre/lib/order/sort.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
+
+module.exports = sort;
+
+function sort(entries, biasRight) {
+  var parts = util.partition(entries, function(entry) {
+    return _.has(entry, "barycenter");
+  });
+  var sortable = parts.lhs,
+    unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
+    vs = [],
+    sum = 0,
+    weight = 0,
+    vsIndex = 0;
+
+  sortable.sort(compareWithBias(!!biasRight));
+
+  vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
+
+  _.forEach(sortable, function (entry) {
+    vsIndex += entry.vs.length;
+    vs.push(entry.vs);
+    sum += entry.barycenter * entry.weight;
+    weight += entry.weight;
+    vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
+  });
+
+  var result = { vs: _.flatten(vs, true) };
+  if (weight) {
+    result.barycenter = sum / weight;
+    result.weight = weight;
+  }
+  return result;
+}
+
+function consumeUnsortable(vs, unsortable, index) {
+  var last;
+  while (unsortable.length && (last = _.last(unsortable)).i <= index) {
+    unsortable.pop();
+    vs.push(last.vs);
+    index++;
+  }
+  return index;
+}
+
+function compareWithBias(bias) {
+  return function(entryV, entryW) {
+    if (entryV.barycenter < entryW.barycenter) {
+      return -1;
+    } else if (entryV.barycenter > entryW.barycenter) {
+      return 1;
+    }
 
-                CircleLayout.prototype.run = function () {
-                    var params = this.options;
-                    var options = params;
-                    var cy = params.cy;
-                    var eles = options.eles;
-                    var clockwise = options.counterclockwise !== undefined ? !options.counterclockwise : options.clockwise;
-                    var nodes = eles.nodes().not(':parent');
+    return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
+  };
+}
 
-                    if (options.sort) {
-                        nodes = nodes.sort(options.sort);
-                    }
 
-                    var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                        x1: 0,
-                        y1: 0,
-                        w: cy.width(),
-                        h: cy.height()
-                    });
-                    var center = {
-                        x: bb.x1 + bb.w / 2,
-                        y: bb.y1 + bb.h / 2
-                    };
-                    var sweep = options.sweep === undefined ? 2 * Math.PI - 2 * Math.PI / nodes.length : options.sweep;
-                    var dTheta = sweep / Math.max(1, nodes.length - 1);
-                    var r;
-                    var minDistance = 0;
-
-                    for (var i = 0; i < nodes.length; i++) {
-                        var n = nodes[i];
-                        var nbb = n.layoutDimensions(options);
-                        var w = nbb.w;
-                        var h = nbb.h;
-                        minDistance = Math.max(minDistance, w, h);
-                    }
+/***/ }),
 
-                    if (number(options.radius)) {
-                        r = options.radius;
-                    } else if (nodes.length <= 1) {
-                        r = 0;
-                    } else {
-                        r = Math.min(bb.h, bb.w) / 2 - minDistance;
-                    } // calculate the radius
+/***/ "./node_modules/dagre/lib/parent-dummy-chains.js":
+/*!*******************************************************!*\
+  !*** ./node_modules/dagre/lib/parent-dummy-chains.js ***!
+  \*******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
 
-                    if (nodes.length > 1 && options.avoidOverlap) {
-                        // but only if more than one node (can't overlap)
-                        minDistance *= 1.75; // just to have some nice spacing
+module.exports = parentDummyChains;
 
-                        var dcos = Math.cos(dTheta) - Math.cos(0);
-                        var dsin = Math.sin(dTheta) - Math.sin(0);
-                        var rMin = Math.sqrt(minDistance * minDistance / (dcos * dcos + dsin * dsin)); // s.t. no nodes overlapping
+function parentDummyChains(g) {
+  var postorderNums = postorder(g);
 
-                        r = Math.max(rMin, r);
-                    }
+  _.forEach(g.graph().dummyChains, function(v) {
+    var node = g.node(v);
+    var edgeObj = node.edgeObj;
+    var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
+    var path = pathData.path;
+    var lca = pathData.lca;
+    var pathIdx = 0;
+    var pathV = path[pathIdx];
+    var ascending = true;
 
-                    var getPos = function getPos(ele, i) {
-                        var theta = options.startAngle + i * dTheta * (clockwise ? 1 : -1);
-                        var rx = r * Math.cos(theta);
-                        var ry = r * Math.sin(theta);
-                        var pos = {
-                            x: center.x + rx,
-                            y: center.y + ry
-                        };
-                        return pos;
-                    };
-
-                    nodes.layoutPositions(this, options, getPos);
-                    return this; // chaining
-                };
+    while (v !== edgeObj.w) {
+      node = g.node(v);
 
-                var defaults$b = {
-                    fit: true,
-                    // whether to fit the viewport to the graph
-                    padding: 30,
-                    // the padding on fit
-                    startAngle: 3 / 2 * Math.PI,
-                    // where nodes start in radians
-                    sweep: undefined,
-                    // how many radians should be between the first and last node (defaults to full circle)
-                    clockwise: true,
-                    // whether the layout should go clockwise (true) or counterclockwise/anticlockwise (false)
-                    equidistant: false,
-                    // whether levels have an equal radial distance betwen them, may cause bounding box overflow
-                    minNodeSpacing: 10,
-                    // min spacing between outside of nodes (used for radius adjustment)
-                    boundingBox: undefined,
-                    // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    avoidOverlap: true,
-                    // prevents node overlap, may overflow boundingBox if not enough space
-                    nodeDimensionsIncludeLabels: false,
-                    // Excludes the label when calculating node bounding boxes for the layout algorithm
-                    height: undefined,
-                    // height of layout area (overrides container height)
-                    width: undefined,
-                    // width of layout area (overrides container width)
-                    spacingFactor: undefined,
-                    // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
-                    concentric: function concentric(node) {
-                        // returns numeric value for each node, placing higher nodes in levels towards the centre
-                        return node.degree();
-                    },
-                    levelWidth: function levelWidth(nodes) {
-                        // the variation of concentric values in each level
-                        return nodes.maxDegree() / 4;
-                    },
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
+      if (ascending) {
+        while ((pathV = path[pathIdx]) !== lca &&
+               g.node(pathV).maxRank < node.rank) {
+          pathIdx++;
+        }
 
-                };
+        if (pathV === lca) {
+          ascending = false;
+        }
+      }
 
-                function ConcentricLayout(options) {
-                    this.options = extend({}, defaults$b, options);
-                }
+      if (!ascending) {
+        while (pathIdx < path.length - 1 &&
+               g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
+          pathIdx++;
+        }
+        pathV = path[pathIdx];
+      }
 
-                ConcentricLayout.prototype.run = function () {
-                    var params = this.options;
-                    var options = params;
-                    var clockwise = options.counterclockwise !== undefined ? !options.counterclockwise : options.clockwise;
-                    var cy = params.cy;
-                    var eles = options.eles;
-                    var nodes = eles.nodes().not(':parent');
-                    var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                        x1: 0,
-                        y1: 0,
-                        w: cy.width(),
-                        h: cy.height()
-                    });
-                    var center = {
-                        x: bb.x1 + bb.w / 2,
-                        y: bb.y1 + bb.h / 2
-                    };
-                    var nodeValues = []; // { node, value }
+      g.setParent(v, pathV);
+      v = g.successors(v)[0];
+    }
+  });
+}
 
-                    var maxNodeSize = 0;
+// Find a path from v to w through the lowest common ancestor (LCA). Return the
+// full path and the LCA.
+function findPath(g, postorderNums, v, w) {
+  var vPath = [];
+  var wPath = [];
+  var low = Math.min(postorderNums[v].low, postorderNums[w].low);
+  var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
+  var parent;
+  var lca;
+
+  // Traverse up from v to find the LCA
+  parent = v;
+  do {
+    parent = g.parent(parent);
+    vPath.push(parent);
+  } while (parent &&
+           (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
+  lca = parent;
+
+  // Traverse from w to LCA
+  parent = w;
+  while ((parent = g.parent(parent)) !== lca) {
+    wPath.push(parent);
+  }
 
-                    for (var i = 0; i < nodes.length; i++) {
-                        var node = nodes[i];
-                        var value = void 0; // calculate the node value
+  return { path: vPath.concat(wPath.reverse()), lca: lca };
+}
 
-                        value = options.concentric(node);
-                        nodeValues.push({
-                            value: value,
-                            node: node
-                        }); // for style mapping
+function postorder(g) {
+  var result = {};
+  var lim = 0;
 
-                        node._private.scratch.concentric = value;
-                    } // in case we used the `concentric` in style
+  function dfs(v) {
+    var low = lim;
+    _.forEach(g.children(v), dfs);
+    result[v] = { low: low, lim: lim++ };
+  }
+  _.forEach(g.children(), dfs);
 
+  return result;
+}
 
-                    nodes.updateStyle(); // calculate max size now based on potentially updated mappers
 
-                    for (var _i = 0; _i < nodes.length; _i++) {
-                        var _node = nodes[_i];
+/***/ }),
 
-                        var nbb = _node.layoutDimensions(options);
+/***/ "./node_modules/dagre/lib/position/bk.js":
+/*!***********************************************!*\
+  !*** ./node_modules/dagre/lib/position/bk.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        maxNodeSize = Math.max(maxNodeSize, nbb.w, nbb.h);
-                    } // sort node values in descreasing order
+"use strict";
 
 
-                    nodeValues.sort(function (a, b) {
-                        return b.value - a.value;
-                    });
-                    var levelWidth = options.levelWidth(nodes); // put the values into levels
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
 
-                    var levels = [[]];
-                    var currentLevel = levels[0];
+/*
+ * This module provides coordinate assignment based on Brandes and Köpf, "Fast
+ * and Simple Horizontal Coordinate Assignment."
+ */
 
-                    for (var _i2 = 0; _i2 < nodeValues.length; _i2++) {
-                        var val = nodeValues[_i2];
+module.exports = {
+  positionX: positionX,
+  findType1Conflicts: findType1Conflicts,
+  findType2Conflicts: findType2Conflicts,
+  addConflict: addConflict,
+  hasConflict: hasConflict,
+  verticalAlignment: verticalAlignment,
+  horizontalCompaction: horizontalCompaction,
+  alignCoordinates: alignCoordinates,
+  findSmallestWidthAlignment: findSmallestWidthAlignment,
+  balance: balance
+};
+
+/*
+ * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
+ * property. A type-1 conflict is one where a non-inner segment crosses an
+ * inner segment. An inner segment is an edge with both incident nodes marked
+ * with the "dummy" property.
+ *
+ * This algorithm scans layer by layer, starting with the second, for type-1
+ * conflicts between the current layer and the previous layer. For each layer
+ * it scans the nodes from left to right until it reaches one that is incident
+ * on an inner segment. It then scans predecessors to determine if they have
+ * edges that cross that inner segment. At the end a final scan is done for all
+ * nodes on the current rank to see if they cross the last visited inner
+ * segment.
+ *
+ * This algorithm (safely) assumes that a dummy node will only be incident on a
+ * single node in the layers being scanned.
+ */
+function findType1Conflicts(g, layering) {
+  var conflicts = {};
+
+  function visitLayer(prevLayer, layer) {
+    var
+      // last visited node in the previous layer that is incident on an inner
+      // segment.
+      k0 = 0,
+      // Tracks the last node in this layer scanned for crossings with a type-1
+      // segment.
+      scanPos = 0,
+      prevLayerLength = prevLayer.length,
+      lastNode = _.last(layer);
+
+    _.forEach(layer, function(v, i) {
+      var w = findOtherInnerSegmentNode(g, v),
+        k1 = w ? g.node(w).order : prevLayerLength;
+
+      if (w || v === lastNode) {
+        _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
+          _.forEach(g.predecessors(scanNode), function(u) {
+            var uLabel = g.node(u),
+              uPos = uLabel.order;
+            if ((uPos < k0 || k1 < uPos) &&
+                !(uLabel.dummy && g.node(scanNode).dummy)) {
+              addConflict(conflicts, u, scanNode);
+            }
+          });
+        });
+        scanPos = i + 1;
+        k0 = k1;
+      }
+    });
+
+    return layer;
+  }
 
-                        if (currentLevel.length > 0) {
-                            var diff = Math.abs(currentLevel[0].value - val.value);
+  _.reduce(layering, visitLayer);
+  return conflicts;
+}
+
+function findType2Conflicts(g, layering) {
+  var conflicts = {};
+
+  function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
+    var v;
+    _.forEach(_.range(southPos, southEnd), function(i) {
+      v = south[i];
+      if (g.node(v).dummy) {
+        _.forEach(g.predecessors(v), function(u) {
+          var uNode = g.node(u);
+          if (uNode.dummy &&
+              (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
+            addConflict(conflicts, u, v);
+          }
+        });
+      }
+    });
+  }
 
-                            if (diff >= levelWidth) {
-                                currentLevel = [];
-                                levels.push(currentLevel);
-                            }
-                        }
 
-                        currentLevel.push(val);
-                    } // create positions from levels
+  function visitLayer(north, south) {
+    var prevNorthPos = -1,
+      nextNorthPos,
+      southPos = 0;
 
+    _.forEach(south, function(v, southLookahead) {
+      if (g.node(v).dummy === "border") {
+        var predecessors = g.predecessors(v);
+        if (predecessors.length) {
+          nextNorthPos = g.node(predecessors[0]).order;
+          scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
+          southPos = southLookahead;
+          prevNorthPos = nextNorthPos;
+        }
+      }
+      scan(south, southPos, south.length, nextNorthPos, north.length);
+    });
 
-                    var minDist = maxNodeSize + options.minNodeSpacing; // min dist between nodes
+    return south;
+  }
 
-                    if (!options.avoidOverlap) {
-                        // then strictly constrain to bb
-                        var firstLvlHasMulti = levels.length > 0 && levels[0].length > 1;
-                        var maxR = Math.min(bb.w, bb.h) / 2 - minDist;
-                        var rStep = maxR / (levels.length + firstLvlHasMulti ? 1 : 0);
-                        minDist = Math.min(minDist, rStep);
-                    } // find the metrics for each level
+  _.reduce(layering, visitLayer);
+  return conflicts;
+}
 
+function findOtherInnerSegmentNode(g, v) {
+  if (g.node(v).dummy) {
+    return _.find(g.predecessors(v), function(u) {
+      return g.node(u).dummy;
+    });
+  }
+}
 
-                    var r = 0;
+function addConflict(conflicts, v, w) {
+  if (v > w) {
+    var tmp = v;
+    v = w;
+    w = tmp;
+  }
 
-                    for (var _i3 = 0; _i3 < levels.length; _i3++) {
-                        var level = levels[_i3];
-                        var sweep = options.sweep === undefined ? 2 * Math.PI - 2 * Math.PI / level.length : options.sweep;
-                        var dTheta = level.dTheta = sweep / Math.max(1, level.length - 1); // calculate the radius
+  var conflictsV = conflicts[v];
+  if (!conflictsV) {
+    conflicts[v] = conflictsV = {};
+  }
+  conflictsV[w] = true;
+}
+
+function hasConflict(conflicts, v, w) {
+  if (v > w) {
+    var tmp = v;
+    v = w;
+    w = tmp;
+  }
+  return _.has(conflicts[v], w);
+}
 
-                        if (level.length > 1 && options.avoidOverlap) {
-                            // but only if more than one node (can't overlap)
-                            var dcos = Math.cos(dTheta) - Math.cos(0);
-                            var dsin = Math.sin(dTheta) - Math.sin(0);
-                            var rMin = Math.sqrt(minDist * minDist / (dcos * dcos + dsin * dsin)); // s.t. no nodes overlapping
-
-                            r = Math.max(rMin, r);
-                        }
-
-                        level.r = r;
-                        r += minDist;
-                    }
+/*
+ * Try to align nodes into vertical "blocks" where possible. This algorithm
+ * attempts to align a node with one of its median neighbors. If the edge
+ * connecting a neighbor is a type-1 conflict then we ignore that possibility.
+ * If a previous node has already formed a block with a node after the node
+ * we're trying to form a block with, we also ignore that possibility - our
+ * blocks would be split in that scenario.
+ */
+function verticalAlignment(g, layering, conflicts, neighborFn) {
+  var root = {},
+    align = {},
+    pos = {};
+
+  // We cache the position here based on the layering because the graph and
+  // layering may be out of sync. The layering matrix is manipulated to
+  // generate different extreme alignments.
+  _.forEach(layering, function(layer) {
+    _.forEach(layer, function(v, order) {
+      root[v] = v;
+      align[v] = v;
+      pos[v] = order;
+    });
+  });
+
+  _.forEach(layering, function(layer) {
+    var prevIdx = -1;
+    _.forEach(layer, function(v) {
+      var ws = neighborFn(v);
+      if (ws.length) {
+        ws = _.sortBy(ws, function(w) { return pos[w]; });
+        var mp = (ws.length - 1) / 2;
+        for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
+          var w = ws[i];
+          if (align[v] === v &&
+              prevIdx < pos[w] &&
+              !hasConflict(conflicts, v, w)) {
+            align[w] = v;
+            align[v] = root[v] = root[w];
+            prevIdx = pos[w];
+          }
+        }
+      }
+    });
+  });
+
+  return { root: root, align: align };
+}
+
+function horizontalCompaction(g, layering, root, align, reverseSep) {
+  // This portion of the algorithm differs from BK due to a number of problems.
+  // Instead of their algorithm we construct a new block graph and do two
+  // sweeps. The first sweep places blocks with the smallest possible
+  // coordinates. The second sweep removes unused space by moving blocks to the
+  // greatest coordinates without violating separation.
+  var xs = {},
+    blockG = buildBlockGraph(g, layering, root, reverseSep),
+    borderType = reverseSep ? "borderLeft" : "borderRight";
+
+  function iterate(setXsFunc, nextNodesFunc) {
+    var stack = blockG.nodes();
+    var elem = stack.pop();
+    var visited = {};
+    while (elem) {
+      if (visited[elem]) {
+        setXsFunc(elem);
+      } else {
+        visited[elem] = true;
+        stack.push(elem);
+        stack = stack.concat(nextNodesFunc(elem));
+      }
+
+      elem = stack.pop();
+    }
+  }
 
-                    if (options.equidistant) {
-                        var rDeltaMax = 0;
-                        var _r = 0;
+  // First pass, assign smallest coordinates
+  function pass1(elem) {
+    xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
+      return Math.max(acc, xs[e.v] + blockG.edge(e));
+    }, 0);
+  }
 
-                        for (var _i4 = 0; _i4 < levels.length; _i4++) {
-                            var _level = levels[_i4];
-                            var rDelta = _level.r - _r;
-                            rDeltaMax = Math.max(rDeltaMax, rDelta);
-                        }
+  // Second pass, assign greatest coordinates
+  function pass2(elem) {
+    var min = blockG.outEdges(elem).reduce(function(acc, e) {
+      return Math.min(acc, xs[e.w] - blockG.edge(e));
+    }, Number.POSITIVE_INFINITY);
 
-                        _r = 0;
+    var node = g.node(elem);
+    if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
+      xs[elem] = Math.max(xs[elem], min);
+    }
+  }
 
-                        for (var _i5 = 0; _i5 < levels.length; _i5++) {
-                            var _level2 = levels[_i5];
+  iterate(pass1, blockG.predecessors.bind(blockG));
+  iterate(pass2, blockG.successors.bind(blockG));
+
+  // Assign x coordinates to all nodes
+  _.forEach(align, function(v) {
+    xs[v] = xs[root[v]];
+  });
+
+  return xs;
+}
+
+
+function buildBlockGraph(g, layering, root, reverseSep) {
+  var blockGraph = new Graph(),
+    graphLabel = g.graph(),
+    sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
+
+  _.forEach(layering, function(layer) {
+    var u;
+    _.forEach(layer, function(v) {
+      var vRoot = root[v];
+      blockGraph.setNode(vRoot);
+      if (u) {
+        var uRoot = root[u],
+          prevMax = blockGraph.edge(uRoot, vRoot);
+        blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
+      }
+      u = v;
+    });
+  });
+
+  return blockGraph;
+}
+
+/*
+ * Returns the alignment that has the smallest width of the given alignments.
+ */
+function findSmallestWidthAlignment(g, xss) {
+  return _.minBy(_.values(xss), function (xs) {
+    var max = Number.NEGATIVE_INFINITY;
+    var min = Number.POSITIVE_INFINITY;
 
-                            if (_i5 === 0) {
-                                _r = _level2.r;
-                            }
+    _.forIn(xs, function (x, v) {
+      var halfWidth = width(g, v) / 2;
 
-                            _level2.r = _r;
-                            _r += rDeltaMax;
-                        }
-                    } // calculate the node positions
+      max = Math.max(x + halfWidth, max);
+      min = Math.min(x - halfWidth, min);
+    });
 
+    return max - min;
+  });
+}
 
-                    var pos = {}; // id => position
+/*
+ * Align the coordinates of each of the layout alignments such that
+ * left-biased alignments have their minimum coordinate at the same point as
+ * the minimum coordinate of the smallest width alignment and right-biased
+ * alignments have their maximum coordinate at the same point as the maximum
+ * coordinate of the smallest width alignment.
+ */
+function alignCoordinates(xss, alignTo) {
+  var alignToVals = _.values(alignTo),
+    alignToMin = _.min(alignToVals),
+    alignToMax = _.max(alignToVals);
+
+  _.forEach(["u", "d"], function(vert) {
+    _.forEach(["l", "r"], function(horiz) {
+      var alignment = vert + horiz,
+        xs = xss[alignment],
+        delta;
+      if (xs === alignTo) return;
+
+      var xsVals = _.values(xs);
+      delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
+
+      if (delta) {
+        xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
+      }
+    });
+  });
+}
+
+function balance(xss, align) {
+  return _.mapValues(xss.ul, function(ignore, v) {
+    if (align) {
+      return xss[align.toLowerCase()][v];
+    } else {
+      var xs = _.sortBy(_.map(xss, v));
+      return (xs[1] + xs[2]) / 2;
+    }
+  });
+}
+
+function positionX(g) {
+  var layering = util.buildLayerMatrix(g);
+  var conflicts = _.merge(
+    findType1Conflicts(g, layering),
+    findType2Conflicts(g, layering));
+
+  var xss = {};
+  var adjustedLayering;
+  _.forEach(["u", "d"], function(vert) {
+    adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
+    _.forEach(["l", "r"], function(horiz) {
+      if (horiz === "r") {
+        adjustedLayering = _.map(adjustedLayering, function(inner) {
+          return _.values(inner).reverse();
+        });
+      }
+
+      var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
+      var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
+      var xs = horizontalCompaction(g, adjustedLayering,
+        align.root, align.align, horiz === "r");
+      if (horiz === "r") {
+        xs = _.mapValues(xs, function(x) { return -x; });
+      }
+      xss[vert + horiz] = xs;
+    });
+  });
+
+  var smallestWidth = findSmallestWidthAlignment(g, xss);
+  alignCoordinates(xss, smallestWidth);
+  return balance(xss, g.graph().align);
+}
+
+function sep(nodeSep, edgeSep, reverseSep) {
+  return function(g, v, w) {
+    var vLabel = g.node(v);
+    var wLabel = g.node(w);
+    var sum = 0;
+    var delta;
+
+    sum += vLabel.width / 2;
+    if (_.has(vLabel, "labelpos")) {
+      switch (vLabel.labelpos.toLowerCase()) {
+      case "l": delta = -vLabel.width / 2; break;
+      case "r": delta = vLabel.width / 2; break;
+      }
+    }
+    if (delta) {
+      sum += reverseSep ? delta : -delta;
+    }
+    delta = 0;
 
-                    for (var _i6 = 0; _i6 < levels.length; _i6++) {
-                        var _level3 = levels[_i6];
-                        var _dTheta = _level3.dTheta;
-                        var _r2 = _level3.r;
+    sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
+    sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
 
-                        for (var j = 0; j < _level3.length; j++) {
-                            var _val = _level3[j];
-                            var theta = options.startAngle + (clockwise ? 1 : -1) * _dTheta * j;
-                            var p = {
-                                x: center.x + _r2 * Math.cos(theta),
-                                y: center.y + _r2 * Math.sin(theta)
-                            };
-                            pos[_val.node.id()] = p;
-                        }
-                    } // position the nodes
+    sum += wLabel.width / 2;
+    if (_.has(wLabel, "labelpos")) {
+      switch (wLabel.labelpos.toLowerCase()) {
+      case "l": delta = wLabel.width / 2; break;
+      case "r": delta = -wLabel.width / 2; break;
+      }
+    }
+    if (delta) {
+      sum += reverseSep ? delta : -delta;
+    }
+    delta = 0;
 
+    return sum;
+  };
+}
 
-                    nodes.layoutPositions(this, options, function (ele) {
-                        var id = ele.id();
-                        return pos[id];
-                    });
-                    return this; // chaining
-                };
+function width(g, v) {
+  return g.node(v).width;
+}
 
-                /*
-The CoSE layout was written by Gerardo Huck.
-https://www.linkedin.com/in/gerardohuck/
 
-Based on the following article:
-http://dl.acm.org/citation.cfm?id=1498047
+/***/ }),
 
-Modifications tracked on Github.
-*/
-                var DEBUG;
-                /**
-                 * @brief :  default layout options
-                 */
-
-                var defaults$c = {
-                    // Called on `layoutready`
-                    ready: function ready() {},
-                    // Called on `layoutstop`
-                    stop: function stop() {},
-                    // Whether to animate while running the layout
-                    // true : Animate continuously as the layout is running
-                    // false : Just show the end result
-                    // 'end' : Animate with the end result, from the initial positions to the end positions
-                    animate: true,
-                    // Easing of the animation for animate:'end'
-                    animationEasing: undefined,
-                    // The duration of the animation for animate:'end'
-                    animationDuration: undefined,
-                    // A function that determines whether the node should be animated
-                    // All nodes animated by default on animate enabled
-                    // Non-animated nodes are positioned immediately when the layout starts
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // The layout animates only after this many milliseconds for animate:true
-                    // (prevents flashing on fast runs)
-                    animationThreshold: 250,
-                    // Number of iterations between consecutive screen positions update
-                    refresh: 20,
-                    // Whether to fit the network view after when done
-                    fit: true,
-                    // Padding on fit
-                    padding: 30,
-                    // Constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    boundingBox: undefined,
-                    // Excludes the label when calculating node bounding boxes for the layout algorithm
-                    nodeDimensionsIncludeLabels: false,
-                    // Randomize the initial positions of the nodes (true) or use existing positions (false)
-                    randomize: false,
-                    // Extra spacing between components in non-compound graphs
-                    componentSpacing: 40,
-                    // Node repulsion (non overlapping) multiplier
-                    nodeRepulsion: function nodeRepulsion(node) {
-                        return 2048;
-                    },
-                    // Node repulsion (overlapping) multiplier
-                    nodeOverlap: 4,
-                    // Ideal edge (non nested) length
-                    idealEdgeLength: function idealEdgeLength(edge) {
-                        return 32;
-                    },
-                    // Divisor to compute edge forces
-                    edgeElasticity: function edgeElasticity(edge) {
-                        return 32;
-                    },
-                    // Nesting factor (multiplier) to compute ideal edge length for nested edges
-                    nestingFactor: 1.2,
-                    // Gravity force (constant)
-                    gravity: 1,
-                    // Maximum number of iterations to perform
-                    numIter: 1000,
-                    // Initial temperature (maximum node displacement)
-                    initialTemp: 1000,
-                    // Cooling factor (how the temperature is reduced between consecutive iterations
-                    coolingFactor: 0.99,
-                    // Lower temperature threshold (below this point the layout will end)
-                    minTemp: 1.0
-                };
-                /**
-                 * @brief       : constructor
-                 * @arg options : object containing layout options
-                 */
-
-                function CoseLayout(options) {
-                    this.options = extend({}, defaults$c, options);
-                    this.options.layout = this;
-                }
-                /**
-                 * @brief : runs the layout
-                 */
+/***/ "./node_modules/dagre/lib/position/index.js":
+/*!**************************************************!*\
+  !*** ./node_modules/dagre/lib/position/index.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+"use strict";
 
-                CoseLayout.prototype.run = function () {
-                    var options = this.options;
-                    var cy = options.cy;
-                    var layout = this;
-                    layout.stopped = false;
 
-                    if (options.animate === true || options.animate === false) {
-                        layout.emit({
-                            type: 'layoutstart',
-                            layout: layout
-                        });
-                    } // Set DEBUG - Global variable
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
+var positionX = __webpack_require__(/*! ./bk */ "./node_modules/dagre/lib/position/bk.js").positionX;
 
+module.exports = position;
 
-                    if (true === options.debug) {
-                        DEBUG = true;
-                    } else {
-                        DEBUG = false;
-                    } // Initialize layout info
+function position(g) {
+  g = util.asNonCompoundGraph(g);
 
+  positionY(g);
+  _.forEach(positionX(g), function(x, v) {
+    g.node(v).x = x;
+  });
+}
 
-                    var layoutInfo = createLayoutInfo(cy, layout, options); // Show LayoutInfo contents if debugging
+function positionY(g) {
+  var layering = util.buildLayerMatrix(g);
+  var rankSep = g.graph().ranksep;
+  var prevY = 0;
+  _.forEach(layering, function(layer) {
+    var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
+    _.forEach(layer, function(v) {
+      g.node(v).y = prevY + maxHeight / 2;
+    });
+    prevY += maxHeight + rankSep;
+  });
+}
 
-                    if (DEBUG) {
-                        printLayoutInfo(layoutInfo);
-                    } // If required, randomize node positions
 
 
-                    if (options.randomize) {
-                        randomizePositions(layoutInfo);
-                    }
+/***/ }),
 
-                    var startTime = performanceNow();
+/***/ "./node_modules/dagre/lib/rank/feasible-tree.js":
+/*!******************************************************!*\
+  !*** ./node_modules/dagre/lib/rank/feasible-tree.js ***!
+  \******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var refresh = function refresh() {
-                        refreshPositions(layoutInfo, cy, options); // Fit the graph if necessary
+"use strict";
 
-                        if (true === options.fit) {
-                            cy.fit(options.padding);
-                        }
-                    };
 
-                    var mainLoop = function mainLoop(i) {
-                        if (layout.stopped || i >= options.numIter) {
-                            // logDebug("Layout manually stopped. Stopping computation in step " + i);
-                            return false;
-                        } // Do one step in the phisical simulation
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
 
+module.exports = feasibleTree;
 
-                        step$1(layoutInfo, options); // Update temperature
+/*
+ * Constructs a spanning tree with tight edges and adjusted the input node's
+ * ranks to achieve this. A tight edge is one that is has a length that matches
+ * its "minlen" attribute.
+ *
+ * The basic structure for this function is derived from Gansner, et al., "A
+ * Technique for Drawing Directed Graphs."
+ *
+ * Pre-conditions:
+ *
+ *    1. Graph must be a DAG.
+ *    2. Graph must be connected.
+ *    3. Graph must have at least one node.
+ *    5. Graph nodes must have been previously assigned a "rank" property that
+ *       respects the "minlen" property of incident edges.
+ *    6. Graph edges must have a "minlen" property.
+ *
+ * Post-conditions:
+ *
+ *    - Graph nodes will have their rank adjusted to ensure that all edges are
+ *      tight.
+ *
+ * Returns a tree (undirected graph) that is constructed using only "tight"
+ * edges.
+ */
+function feasibleTree(g) {
+  var t = new Graph({ directed: false });
+
+  // Choose arbitrary node from which to start our tree
+  var start = g.nodes()[0];
+  var size = g.nodeCount();
+  t.setNode(start, {});
+
+  var edge, delta;
+  while (tightTree(t, g) < size) {
+    edge = findMinSlackEdge(t, g);
+    delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
+    shiftRanks(t, g, delta);
+  }
 
-                        layoutInfo.temperature = layoutInfo.temperature * options.coolingFactor; // logDebug("New temperature: " + layoutInfo.temperature);
+  return t;
+}
 
-                        if (layoutInfo.temperature < options.minTemp) {
-                            // logDebug("Temperature drop below minimum threshold. Stopping computation in step " + i);
-                            return false;
-                        }
+/*
+ * Finds a maximal tree of tight edges and returns the number of nodes in the
+ * tree.
+ */
+function tightTree(t, g) {
+  function dfs(v) {
+    _.forEach(g.nodeEdges(v), function(e) {
+      var edgeV = e.v,
+        w = (v === edgeV) ? e.w : edgeV;
+      if (!t.hasNode(w) && !slack(g, e)) {
+        t.setNode(w, {});
+        t.setEdge(v, w, {});
+        dfs(w);
+      }
+    });
+  }
 
-                        return true;
-                    };
-
-                    var done = function done() {
-                        if (options.animate === true || options.animate === false) {
-                            refresh(); // Layout has finished
-
-                            layout.one('layoutstop', options.stop);
-                            layout.emit({
-                                type: 'layoutstop',
-                                layout: layout
-                            });
-                        } else {
-                            var nodes = options.eles.nodes();
-                            var getScaledPos = getScaleInBoundsFn(layoutInfo, options, nodes);
-                            nodes.layoutPositions(layout, options, getScaledPos);
-                        }
-                    };
+  _.forEach(t.nodes(), dfs);
+  return t.nodeCount();
+}
 
-                    var i = 0;
-                    var loopRet = true;
+/*
+ * Finds the edge with the smallest slack that is incident on tree and returns
+ * it.
+ */
+function findMinSlackEdge(t, g) {
+  return _.minBy(g.edges(), function(e) {
+    if (t.hasNode(e.v) !== t.hasNode(e.w)) {
+      return slack(g, e);
+    }
+  });
+}
 
-                    if (options.animate === true) {
-                        var frame = function frame() {
-                            var f = 0;
+function shiftRanks(t, g, delta) {
+  _.forEach(t.nodes(), function(v) {
+    g.node(v).rank += delta;
+  });
+}
 
-                            while (loopRet && f < options.refresh) {
-                                loopRet = mainLoop(i);
-                                i++;
-                                f++;
-                            }
 
-                            if (!loopRet) {
-                                // it's done
-                                separateComponents(layoutInfo, options);
-                                done();
-                            } else {
-                                var now = performanceNow();
+/***/ }),
 
-                                if (now - startTime >= options.animationThreshold) {
-                                    refresh();
-                                }
+/***/ "./node_modules/dagre/lib/rank/index.js":
+/*!**********************************************!*\
+  !*** ./node_modules/dagre/lib/rank/index.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                                requestAnimationFrame(frame);
-                            }
-                        };
+"use strict";
 
-                        frame();
-                    } else {
-                        while (loopRet) {
-                            loopRet = mainLoop(i);
-                            i++;
-                        }
 
-                        separateComponents(layoutInfo, options);
-                        done();
-                    }
+var rankUtil = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js");
+var longestPath = rankUtil.longestPath;
+var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
+var networkSimplex = __webpack_require__(/*! ./network-simplex */ "./node_modules/dagre/lib/rank/network-simplex.js");
 
-                    return this; // chaining
-                };
-                /**
-                 * @brief : called on continuous layouts to stop them before they finish
-                 */
+module.exports = rank;
 
+/*
+ * Assigns a rank to each node in the input graph that respects the "minlen"
+ * constraint specified on edges between nodes.
+ *
+ * This basic structure is derived from Gansner, et al., "A Technique for
+ * Drawing Directed Graphs."
+ *
+ * Pre-conditions:
+ *
+ *    1. Graph must be a connected DAG
+ *    2. Graph nodes must be objects
+ *    3. Graph edges must have "weight" and "minlen" attributes
+ *
+ * Post-conditions:
+ *
+ *    1. Graph nodes will have a "rank" attribute based on the results of the
+ *       algorithm. Ranks can start at any index (including negative), we'll
+ *       fix them up later.
+ */
+function rank(g) {
+  switch(g.graph().ranker) {
+  case "network-simplex": networkSimplexRanker(g); break;
+  case "tight-tree": tightTreeRanker(g); break;
+  case "longest-path": longestPathRanker(g); break;
+  default: networkSimplexRanker(g);
+  }
+}
 
-                CoseLayout.prototype.stop = function () {
-                    this.stopped = true;
+// A fast and simple ranker, but results are far from optimal.
+var longestPathRanker = longestPath;
 
-                    if (this.thread) {
-                        this.thread.stop();
-                    }
+function tightTreeRanker(g) {
+  longestPath(g);
+  feasibleTree(g);
+}
 
-                    this.emit('layoutstop');
-                    return this; // chaining
-                };
+function networkSimplexRanker(g) {
+  networkSimplex(g);
+}
 
-                CoseLayout.prototype.destroy = function () {
-                    if (this.thread) {
-                        this.thread.stop();
-                    }
 
-                    return this; // chaining
-                };
-                /**
-                 * @brief     : Creates an object which is contains all the data
-                 *              used in the layout process
-                 * @arg cy    : cytoscape.js object
-                 * @return    : layoutInfo object initialized
-                 */
-
-
-                var createLayoutInfo = function createLayoutInfo(cy, layout, options) {
-                    // Shortcut
-                    var edges = options.eles.edges();
-                    var nodes = options.eles.nodes();
-                    var layoutInfo = {
-                        isCompound: cy.hasCompoundNodes(),
-                        layoutNodes: [],
-                        idToIndex: {},
-                        nodeSize: nodes.size(),
-                        graphSet: [],
-                        indexToGraph: [],
-                        layoutEdges: [],
-                        edgeSize: edges.size(),
-                        temperature: options.initialTemp,
-                        clientWidth: cy.width(),
-                        clientHeight: cy.width(),
-                        boundingBox: makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                            x1: 0,
-                            y1: 0,
-                            w: cy.width(),
-                            h: cy.height()
-                        })
-                    };
-                    var components = options.eles.components();
-                    var id2cmptId = {};
-
-                    for (var i = 0; i < components.length; i++) {
-                        var component = components[i];
-
-                        for (var j = 0; j < component.length; j++) {
-                            var node = component[j];
-                            id2cmptId[node.id()] = i;
-                        }
-                    } // Iterate over all nodes, creating layout nodes
-
-
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = nodes[i];
-                        var nbb = n.layoutDimensions(options);
-                        var tempNode = {};
-                        tempNode.isLocked = n.locked();
-                        tempNode.id = n.data('id');
-                        tempNode.parentId = n.data('parent');
-                        tempNode.cmptId = id2cmptId[n.id()];
-                        tempNode.children = [];
-                        tempNode.positionX = n.position('x');
-                        tempNode.positionY = n.position('y');
-                        tempNode.offsetX = 0;
-                        tempNode.offsetY = 0;
-                        tempNode.height = nbb.w;
-                        tempNode.width = nbb.h;
-                        tempNode.maxX = tempNode.positionX + tempNode.width / 2;
-                        tempNode.minX = tempNode.positionX - tempNode.width / 2;
-                        tempNode.maxY = tempNode.positionY + tempNode.height / 2;
-                        tempNode.minY = tempNode.positionY - tempNode.height / 2;
-                        tempNode.padLeft = parseFloat(n.style('padding'));
-                        tempNode.padRight = parseFloat(n.style('padding'));
-                        tempNode.padTop = parseFloat(n.style('padding'));
-                        tempNode.padBottom = parseFloat(n.style('padding')); // forces
-
-                        tempNode.nodeRepulsion = fn(options.nodeRepulsion) ? options.nodeRepulsion(n) : options.nodeRepulsion; // Add new node
-
-                        layoutInfo.layoutNodes.push(tempNode); // Add entry to id-index map
-
-                        layoutInfo.idToIndex[tempNode.id] = i;
-                    } // Inline implementation of a queue, used for traversing the graph in BFS order
-
-
-                    var queue = [];
-                    var start = 0; // Points to the start the queue
-
-                    var end = -1; // Points to the end of the queue
-
-                    var tempGraph = []; // Second pass to add child information and
-                    // initialize queue for hierarchical traversal
-
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = layoutInfo.layoutNodes[i];
-                        var p_id = n.parentId; // Check if node n has a parent node
-
-                        if (null != p_id) {
-                            // Add node Id to parent's list of children
-                            layoutInfo.layoutNodes[layoutInfo.idToIndex[p_id]].children.push(n.id);
-                        } else {
-                            // If a node doesn't have a parent, then it's in the root graph
-                            queue[++end] = n.id;
-                            tempGraph.push(n.id);
-                        }
-                    } // Add root graph to graphSet
+/***/ }),
 
+/***/ "./node_modules/dagre/lib/rank/network-simplex.js":
+/*!********************************************************!*\
+  !*** ./node_modules/dagre/lib/rank/network-simplex.js ***!
+  \********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    layoutInfo.graphSet.push(tempGraph); // Traverse the graph, level by level,
+"use strict";
 
-                    while (start <= end) {
-                        // Get the node to visit and remove it from queue
-                        var node_id = queue[start++];
-                        var node_ix = layoutInfo.idToIndex[node_id];
-                        var node = layoutInfo.layoutNodes[node_ix];
-                        var children = node.children;
 
-                        if (children.length > 0) {
-                            // Add children nodes as a new graph to graph set
-                            layoutInfo.graphSet.push(children); // Add children to que queue to be visited
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
+var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
+var initRank = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").longestPath;
+var preorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.preorder;
+var postorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.postorder;
+var simplify = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js").simplify;
 
-                            for (var i = 0; i < children.length; i++) {
-                                queue[++end] = children[i];
-                            }
-                        }
-                    } // Create indexToGraph map
+module.exports = networkSimplex;
 
+// Expose some internals for testing purposes
+networkSimplex.initLowLimValues = initLowLimValues;
+networkSimplex.initCutValues = initCutValues;
+networkSimplex.calcCutValue = calcCutValue;
+networkSimplex.leaveEdge = leaveEdge;
+networkSimplex.enterEdge = enterEdge;
+networkSimplex.exchangeEdges = exchangeEdges;
+
+/*
+ * The network simplex algorithm assigns ranks to each node in the input graph
+ * and iteratively improves the ranking to reduce the length of edges.
+ *
+ * Preconditions:
+ *
+ *    1. The input graph must be a DAG.
+ *    2. All nodes in the graph must have an object value.
+ *    3. All edges in the graph must have "minlen" and "weight" attributes.
+ *
+ * Postconditions:
+ *
+ *    1. All nodes in the graph will have an assigned "rank" attribute that has
+ *       been optimized by the network simplex algorithm. Ranks start at 0.
+ *
+ *
+ * A rough sketch of the algorithm is as follows:
+ *
+ *    1. Assign initial ranks to each node. We use the longest path algorithm,
+ *       which assigns ranks to the lowest position possible. In general this
+ *       leads to very wide bottom ranks and unnecessarily long edges.
+ *    2. Construct a feasible tight tree. A tight tree is one such that all
+ *       edges in the tree have no slack (difference between length of edge
+ *       and minlen for the edge). This by itself greatly improves the assigned
+ *       rankings by shorting edges.
+ *    3. Iteratively find edges that have negative cut values. Generally a
+ *       negative cut value indicates that the edge could be removed and a new
+ *       tree edge could be added to produce a more compact graph.
+ *
+ * Much of the algorithms here are derived from Gansner, et al., "A Technique
+ * for Drawing Directed Graphs." The structure of the file roughly follows the
+ * structure of the overall algorithm.
+ */
+function networkSimplex(g) {
+  g = simplify(g);
+  initRank(g);
+  var t = feasibleTree(g);
+  initLowLimValues(t);
+  initCutValues(t, g);
+
+  var e, f;
+  while ((e = leaveEdge(t))) {
+    f = enterEdge(t, g, e);
+    exchangeEdges(t, g, e, f);
+  }
+}
 
-                    for (var i = 0; i < layoutInfo.graphSet.length; i++) {
-                        var graph = layoutInfo.graphSet[i];
+/*
+ * Initializes cut values for all edges in the tree.
+ */
+function initCutValues(t, g) {
+  var vs = postorder(t, t.nodes());
+  vs = vs.slice(0, vs.length - 1);
+  _.forEach(vs, function(v) {
+    assignCutValue(t, g, v);
+  });
+}
+
+function assignCutValue(t, g, child) {
+  var childLab = t.node(child);
+  var parent = childLab.parent;
+  t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
+}
+
+/*
+ * Given the tight tree, its graph, and a child in the graph calculate and
+ * return the cut value for the edge between the child and its parent.
+ */
+function calcCutValue(t, g, child) {
+  var childLab = t.node(child);
+  var parent = childLab.parent;
+  // True if the child is on the tail end of the edge in the directed graph
+  var childIsTail = true;
+  // The graph's view of the tree edge we're inspecting
+  var graphEdge = g.edge(child, parent);
+  // The accumulated cut value for the edge between this node and its parent
+  var cutValue = 0;
+
+  if (!graphEdge) {
+    childIsTail = false;
+    graphEdge = g.edge(parent, child);
+  }
 
-                        for (var j = 0; j < graph.length; j++) {
-                            var index = layoutInfo.idToIndex[graph[j]];
-                            layoutInfo.indexToGraph[index] = i;
-                        }
-                    } // Iterate over all edges, creating Layout Edges
+  cutValue = graphEdge.weight;
 
+  _.forEach(g.nodeEdges(child), function(e) {
+    var isOutEdge = e.v === child,
+      other = isOutEdge ? e.w : e.v;
 
-                    for (var i = 0; i < layoutInfo.edgeSize; i++) {
-                        var e = edges[i];
-                        var tempEdge = {};
-                        tempEdge.id = e.data('id');
-                        tempEdge.sourceId = e.data('source');
-                        tempEdge.targetId = e.data('target'); // Compute ideal length
+    if (other !== parent) {
+      var pointsToHead = isOutEdge === childIsTail,
+        otherWeight = g.edge(e).weight;
 
-                        var idealLength = fn(options.idealEdgeLength) ? options.idealEdgeLength(e) : options.idealEdgeLength;
-                        var elasticity = fn(options.edgeElasticity) ? options.edgeElasticity(e) : options.edgeElasticity; // Check if it's an inter graph edge
+      cutValue += pointsToHead ? otherWeight : -otherWeight;
+      if (isTreeEdge(t, child, other)) {
+        var otherCutValue = t.edge(child, other).cutvalue;
+        cutValue += pointsToHead ? -otherCutValue : otherCutValue;
+      }
+    }
+  });
 
-                        var sourceIx = layoutInfo.idToIndex[tempEdge.sourceId];
-                        var targetIx = layoutInfo.idToIndex[tempEdge.targetId];
-                        var sourceGraph = layoutInfo.indexToGraph[sourceIx];
-                        var targetGraph = layoutInfo.indexToGraph[targetIx];
+  return cutValue;
+}
 
-                        if (sourceGraph != targetGraph) {
-                            // Find lowest common graph ancestor
-                            var lca = findLCA(tempEdge.sourceId, tempEdge.targetId, layoutInfo); // Compute sum of node depths, relative to lca graph
+function initLowLimValues(tree, root) {
+  if (arguments.length < 2) {
+    root = tree.nodes()[0];
+  }
+  dfsAssignLowLim(tree, {}, 1, root);
+}
 
-                            var lcaGraph = layoutInfo.graphSet[lca];
-                            var depth = 0; // Source depth
+function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
+  var low = nextLim;
+  var label = tree.node(v);
 
-                            var tempNode = layoutInfo.layoutNodes[sourceIx];
+  visited[v] = true;
+  _.forEach(tree.neighbors(v), function(w) {
+    if (!_.has(visited, w)) {
+      nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
+    }
+  });
+
+  label.low = low;
+  label.lim = nextLim++;
+  if (parent) {
+    label.parent = parent;
+  } else {
+    // TODO should be able to remove this when we incrementally update low lim
+    delete label.parent;
+  }
 
-                            while (-1 === lcaGraph.indexOf(tempNode.id)) {
-                                tempNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[tempNode.parentId]];
-                                depth++;
-                            } // Target depth
+  return nextLim;
+}
+
+function leaveEdge(tree) {
+  return _.find(tree.edges(), function(e) {
+    return tree.edge(e).cutvalue < 0;
+  });
+}
+
+function enterEdge(t, g, edge) {
+  var v = edge.v;
+  var w = edge.w;
+
+  // For the rest of this function we assume that v is the tail and w is the
+  // head, so if we don't have this edge in the graph we should flip it to
+  // match the correct orientation.
+  if (!g.hasEdge(v, w)) {
+    v = edge.w;
+    w = edge.v;
+  }
 
+  var vLabel = t.node(v);
+  var wLabel = t.node(w);
+  var tailLabel = vLabel;
+  var flip = false;
 
-                            tempNode = layoutInfo.layoutNodes[targetIx];
+  // If the root is in the tail of the edge then we need to flip the logic that
+  // checks for the head and tail nodes in the candidates function below.
+  if (vLabel.lim > wLabel.lim) {
+    tailLabel = wLabel;
+    flip = true;
+  }
 
-                            while (-1 === lcaGraph.indexOf(tempNode.id)) {
-                                tempNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[tempNode.parentId]];
-                                depth++;
-                            } // logDebug('LCA of nodes ' + tempEdge.sourceId + ' and ' + tempEdge.targetId +
-                            //  ". Index: " + lca + " Contents: " + lcaGraph.toString() +
-                            //  ". Depth: " + depth);
-                            // Update idealLength
+  var candidates = _.filter(g.edges(), function(edge) {
+    return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
+           flip !== isDescendant(t, t.node(edge.w), tailLabel);
+  });
+
+  return _.minBy(candidates, function(edge) { return slack(g, edge); });
+}
+
+function exchangeEdges(t, g, e, f) {
+  var v = e.v;
+  var w = e.w;
+  t.removeEdge(v, w);
+  t.setEdge(f.v, f.w, {});
+  initLowLimValues(t);
+  initCutValues(t, g);
+  updateRanks(t, g);
+}
+
+function updateRanks(t, g) {
+  var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
+  var vs = preorder(t, root);
+  vs = vs.slice(1);
+  _.forEach(vs, function(v) {
+    var parent = t.node(v).parent,
+      edge = g.edge(v, parent),
+      flipped = false;
+
+    if (!edge) {
+      edge = g.edge(parent, v);
+      flipped = true;
+    }
 
+    g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
+  });
+}
 
-                            idealLength *= depth * options.nestingFactor;
-                        }
+/*
+ * Returns true if the edge is in the tree.
+ */
+function isTreeEdge(tree, u, v) {
+  return tree.hasEdge(u, v);
+}
 
-                        tempEdge.idealLength = idealLength;
-                        tempEdge.elasticity = elasticity;
-                        layoutInfo.layoutEdges.push(tempEdge);
-                    } // Finally, return layoutInfo object
+/*
+ * Returns true if the specified node is descendant of the root node per the
+ * assigned low and lim attributes in the tree.
+ */
+function isDescendant(tree, vLabel, rootLabel) {
+  return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
+}
 
 
-                    return layoutInfo;
-                };
-                /**
-                 * @brief : This function finds the index of the lowest common
-                 *          graph ancestor between 2 nodes in the subtree
-                 *          (from the graph hierarchy induced tree) whose
-                 *          root is graphIx
-                 *
-                 * @arg node1: node1's ID
-                 * @arg node2: node2's ID
-                 * @arg layoutInfo: layoutInfo object
-                 *
-                 */
-
-
-                var findLCA = function findLCA(node1, node2, layoutInfo) {
-                    // Find their common ancester, starting from the root graph
-                    var res = findLCA_aux(node1, node2, 0, layoutInfo);
-
-                    if (2 > res.count) {
-                        // If aux function couldn't find the common ancester,
-                        // then it is the root graph
-                        return 0;
-                    } else {
-                        return res.graph;
-                    }
-                };
-                /**
-                 * @brief          : Auxiliary function used for LCA computation
-                 *
-                 * @arg node1      : node1's ID
-                 * @arg node2      : node2's ID
-                 * @arg graphIx    : subgraph index
-                 * @arg layoutInfo : layoutInfo object
-                 *
-                 * @return         : object of the form {count: X, graph: Y}, where:
-                 *                   X is the number of ancesters (max: 2) found in
-                 *                   graphIx (and it's subgraphs),
-                 *                   Y is the graph index of the lowest graph containing
-                 *                   all X nodes
-                 */
-
-
-                var findLCA_aux = function findLCA_aux(node1, node2, graphIx, layoutInfo) {
-                    var graph = layoutInfo.graphSet[graphIx]; // If both nodes belongs to graphIx
-
-                    if (-1 < graph.indexOf(node1) && -1 < graph.indexOf(node2)) {
-                        return {
-                            count: 2,
-                            graph: graphIx
-                        };
-                    } // Make recursive calls for all subgraphs
-
-
-                    var c = 0;
-
-                    for (var i = 0; i < graph.length; i++) {
-                        var nodeId = graph[i];
-                        var nodeIx = layoutInfo.idToIndex[nodeId];
-                        var children = layoutInfo.layoutNodes[nodeIx].children; // If the node has no child, skip it
-
-                        if (0 === children.length) {
-                            continue;
-                        }
+/***/ }),
 
-                        var childGraphIx = layoutInfo.indexToGraph[layoutInfo.idToIndex[children[0]]];
-                        var result = findLCA_aux(node1, node2, childGraphIx, layoutInfo);
+/***/ "./node_modules/dagre/lib/rank/util.js":
+/*!*********************************************!*\
+  !*** ./node_modules/dagre/lib/rank/util.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (0 === result.count) {
-                            // Neither node1 nor node2 are present in this subgraph
-                            continue;
-                        } else if (1 === result.count) {
-                            // One of (node1, node2) is present in this subgraph
-                            c++;
+"use strict";
 
-                            if (2 === c) {
-                                // We've already found both nodes, no need to keep searching
-                                break;
-                            }
-                        } else {
-                            // Both nodes are present in this subgraph
-                            return result;
-                        }
-                    }
 
-                    return {
-                        count: c,
-                        graph: graphIx
-                    };
-                };
-                /**
-                 * @brief: printsLayoutInfo into js console
-                 *         Only used for debbuging
-                 */
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
 
+module.exports = {
+  longestPath: longestPath,
+  slack: slack
+};
 
-                if (false) { var printLayoutInfo; }
-                /**
-                 * @brief : Randomizes the position of all nodes
-                 */
+/*
+ * Initializes ranks for the input graph using the longest path algorithm. This
+ * algorithm scales well and is fast in practice, it yields rather poor
+ * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
+ * ranks wide and leaving edges longer than necessary. However, due to its
+ * speed, this algorithm is good for getting an initial ranking that can be fed
+ * into other algorithms.
+ *
+ * This algorithm does not normalize layers because it will be used by other
+ * algorithms in most cases. If using this algorithm directly, be sure to
+ * run normalize at the end.
+ *
+ * Pre-conditions:
+ *
+ *    1. Input graph is a DAG.
+ *    2. Input graph node labels can be assigned properties.
+ *
+ * Post-conditions:
+ *
+ *    1. Each node will be assign an (unnormalized) "rank" property.
+ */
+function longestPath(g) {
+  var visited = {};
 
+  function dfs(v) {
+    var label = g.node(v);
+    if (_.has(visited, v)) {
+      return label.rank;
+    }
+    visited[v] = true;
 
-                var randomizePositions = function randomizePositions(layoutInfo, cy) {
-                    var width = layoutInfo.clientWidth;
-                    var height = layoutInfo.clientHeight;
+    var rank = _.min(_.map(g.outEdges(v), function(e) {
+      return dfs(e.w) - g.edge(e).minlen;
+    }));
 
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = layoutInfo.layoutNodes[i]; // No need to randomize compound nodes or locked nodes
+    if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
+        rank === undefined || // return value of _.map([]) for Lodash 4
+        rank === null) { // return value of _.map([null])
+      rank = 0;
+    }
 
-                        if (0 === n.children.length && !n.isLocked) {
-                            n.positionX = Math.random() * width;
-                            n.positionY = Math.random() * height;
-                        }
-                    }
-                };
+    return (label.rank = rank);
+  }
 
-                var getScaleInBoundsFn = function getScaleInBoundsFn(layoutInfo, options, nodes) {
-                    var bb = layoutInfo.boundingBox;
-                    var coseBB = {
-                        x1: Infinity,
-                        x2: -Infinity,
-                        y1: Infinity,
-                        y2: -Infinity
-                    };
-
-                    if (options.boundingBox) {
-                        nodes.forEach(function (node) {
-                            var lnode = layoutInfo.layoutNodes[layoutInfo.idToIndex[node.data('id')]];
-                            coseBB.x1 = Math.min(coseBB.x1, lnode.positionX);
-                            coseBB.x2 = Math.max(coseBB.x2, lnode.positionX);
-                            coseBB.y1 = Math.min(coseBB.y1, lnode.positionY);
-                            coseBB.y2 = Math.max(coseBB.y2, lnode.positionY);
-                        });
-                        coseBB.w = coseBB.x2 - coseBB.x1;
-                        coseBB.h = coseBB.y2 - coseBB.y1;
-                    }
+  _.forEach(g.sources(), dfs);
+}
 
-                    return function (ele, i) {
-                        var lnode = layoutInfo.layoutNodes[layoutInfo.idToIndex[ele.data('id')]];
-
-                        if (options.boundingBox) {
-                            // then add extra bounding box constraint
-                            var pctX = (lnode.positionX - coseBB.x1) / coseBB.w;
-                            var pctY = (lnode.positionY - coseBB.y1) / coseBB.h;
-                            return {
-                                x: bb.x1 + pctX * bb.w,
-                                y: bb.y1 + pctY * bb.h
-                            };
-                        } else {
-                            return {
-                                x: lnode.positionX,
-                                y: lnode.positionY
-                            };
-                        }
-                    };
-                };
-                /**
-                 * @brief          : Updates the positions of nodes in the network
-                 * @arg layoutInfo : LayoutInfo object
-                 * @arg cy         : Cytoscape object
-                 * @arg options    : Layout options
-                 */
-
-
-                var refreshPositions = function refreshPositions(layoutInfo, cy, options) {
-                    // var s = 'Refreshing positions';
-                    // logDebug(s);
-                    var layout = options.layout;
-                    var nodes = options.eles.nodes();
-                    var getScaledPos = getScaleInBoundsFn(layoutInfo, options, nodes);
-                    nodes.positions(getScaledPos); // Trigger layoutReady only on first call
-
-                    if (true !== layoutInfo.ready) {
-                        // s = 'Triggering layoutready';
-                        // logDebug(s);
-                        layoutInfo.ready = true;
-                        layout.one('layoutready', options.ready);
-                        layout.emit({
-                            type: 'layoutready',
-                            layout: this
-                        });
-                    }
-                };
-                /**
-                 * @brief : Logs a debug message in JS console, if DEBUG is ON
-                 */
-// var logDebug = function(text) {
-//   if (DEBUG) {
-//     console.debug(text);
-//   }
-// };
+/*
+ * Returns the amount of slack for the given edge. The slack is defined as the
+ * difference between the length of the edge and its minimum length.
+ */
+function slack(g, e) {
+  return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
+}
 
-                /**
-                 * @brief          : Performs one iteration of the physical simulation
-                 * @arg layoutInfo : LayoutInfo object already initialized
-                 * @arg cy         : Cytoscape object
-                 * @arg options    : Layout options
-                 */
 
+/***/ }),
 
-                var step$1 = function step(layoutInfo, options, _step) {
-                    // var s = "\n\n###############################";
-                    // s += "\nSTEP: " + step;
-                    // s += "\n###############################\n";
-                    // logDebug(s);
-                    // Calculate node repulsions
-                    calculateNodeForces(layoutInfo, options); // Calculate edge forces
+/***/ "./node_modules/dagre/lib/util.js":
+/*!****************************************!*\
+  !*** ./node_modules/dagre/lib/util.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/* eslint "no-console": off */
+
+
+
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+
+module.exports = {
+  addDummyNode: addDummyNode,
+  simplify: simplify,
+  asNonCompoundGraph: asNonCompoundGraph,
+  successorWeights: successorWeights,
+  predecessorWeights: predecessorWeights,
+  intersectRect: intersectRect,
+  buildLayerMatrix: buildLayerMatrix,
+  normalizeRanks: normalizeRanks,
+  removeEmptyRanks: removeEmptyRanks,
+  addBorderNode: addBorderNode,
+  maxRank: maxRank,
+  partition: partition,
+  time: time,
+  notime: notime
+};
+
+/*
+ * Adds a dummy node to the graph and return v.
+ */
+function addDummyNode(g, type, attrs, name) {
+  var v;
+  do {
+    v = _.uniqueId(name);
+  } while (g.hasNode(v));
+
+  attrs.dummy = type;
+  g.setNode(v, attrs);
+  return v;
+}
+
+/*
+ * Returns a new graph with only simple edges. Handles aggregation of data
+ * associated with multi-edges.
+ */
+function simplify(g) {
+  var simplified = new Graph().setGraph(g.graph());
+  _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
+  _.forEach(g.edges(), function(e) {
+    var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
+    var label = g.edge(e);
+    simplified.setEdge(e.v, e.w, {
+      weight: simpleLabel.weight + label.weight,
+      minlen: Math.max(simpleLabel.minlen, label.minlen)
+    });
+  });
+  return simplified;
+}
+
+function asNonCompoundGraph(g) {
+  var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
+  _.forEach(g.nodes(), function(v) {
+    if (!g.children(v).length) {
+      simplified.setNode(v, g.node(v));
+    }
+  });
+  _.forEach(g.edges(), function(e) {
+    simplified.setEdge(e, g.edge(e));
+  });
+  return simplified;
+}
+
+function successorWeights(g) {
+  var weightMap = _.map(g.nodes(), function(v) {
+    var sucs = {};
+    _.forEach(g.outEdges(v), function(e) {
+      sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
+    });
+    return sucs;
+  });
+  return _.zipObject(g.nodes(), weightMap);
+}
+
+function predecessorWeights(g) {
+  var weightMap = _.map(g.nodes(), function(v) {
+    var preds = {};
+    _.forEach(g.inEdges(v), function(e) {
+      preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
+    });
+    return preds;
+  });
+  return _.zipObject(g.nodes(), weightMap);
+}
+
+/*
+ * Finds where a line starting at point ({x, y}) would intersect a rectangle
+ * ({x, y, width, height}) if it were pointing at the rectangle's center.
+ */
+function intersectRect(rect, point) {
+  var x = rect.x;
+  var y = rect.y;
+
+  // Rectangle intersection algorithm from:
+  // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
+  var dx = point.x - x;
+  var dy = point.y - y;
+  var w = rect.width / 2;
+  var h = rect.height / 2;
+
+  if (!dx && !dy) {
+    throw new Error("Not possible to find intersection inside of the rectangle");
+  }
 
-                    calculateEdgeForces(layoutInfo); // Calculate gravity forces
+  var sx, sy;
+  if (Math.abs(dy) * w > Math.abs(dx) * h) {
+    // Intersection is top or bottom of rect.
+    if (dy < 0) {
+      h = -h;
+    }
+    sx = h * dx / dy;
+    sy = h;
+  } else {
+    // Intersection is left or right of rect.
+    if (dx < 0) {
+      w = -w;
+    }
+    sx = w;
+    sy = w * dy / dx;
+  }
 
-                    calculateGravityForces(layoutInfo, options); // Propagate forces from parent to child
+  return { x: x + sx, y: y + sy };
+}
 
-                    propagateForces(layoutInfo); // Update positions based on calculated forces
+/*
+ * Given a DAG with each node assigned "rank" and "order" properties, this
+ * function will produce a matrix with the ids of each node.
+ */
+function buildLayerMatrix(g) {
+  var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    var rank = node.rank;
+    if (!_.isUndefined(rank)) {
+      layering[rank][node.order] = v;
+    }
+  });
+  return layering;
+}
 
-                    updatePositions(layoutInfo);
-                };
-                /**
-                 * @brief : Computes the node repulsion forces
-                 */
-
-
-                var calculateNodeForces = function calculateNodeForces(layoutInfo, options) {
-                    // Go through each of the graphs in graphSet
-                    // Nodes only repel each other if they belong to the same graph
-                    // var s = 'calculateNodeForces';
-                    // logDebug(s);
-                    for (var i = 0; i < layoutInfo.graphSet.length; i++) {
-                        var graph = layoutInfo.graphSet[i];
-                        var numNodes = graph.length; // s = "Set: " + graph.toString();
-                        // logDebug(s);
-                        // Now get all the pairs of nodes
-                        // Only get each pair once, (A, B) = (B, A)
-
-                        for (var j = 0; j < numNodes; j++) {
-                            var node1 = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[j]]];
-
-                            for (var k = j + 1; k < numNodes; k++) {
-                                var node2 = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[k]]];
-                                nodeRepulsion(node1, node2, layoutInfo, options);
-                            }
-                        }
-                    }
-                };
+/*
+ * Adjusts the ranks for all nodes in the graph such that all nodes v have
+ * rank(v) >= 0 and at least one node w has rank(w) = 0.
+ */
+function normalizeRanks(g) {
+  var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
+  _.forEach(g.nodes(), function(v) {
+    var node = g.node(v);
+    if (_.has(node, "rank")) {
+      node.rank -= min;
+    }
+  });
+}
+
+function removeEmptyRanks(g) {
+  // Ranks may not start at 0, so we need to offset them
+  var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
+
+  var layers = [];
+  _.forEach(g.nodes(), function(v) {
+    var rank = g.node(v).rank - offset;
+    if (!layers[rank]) {
+      layers[rank] = [];
+    }
+    layers[rank].push(v);
+  });
+
+  var delta = 0;
+  var nodeRankFactor = g.graph().nodeRankFactor;
+  _.forEach(layers, function(vs, i) {
+    if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
+      --delta;
+    } else if (delta) {
+      _.forEach(vs, function(v) { g.node(v).rank += delta; });
+    }
+  });
+}
+
+function addBorderNode(g, prefix, rank, order) {
+  var node = {
+    width: 0,
+    height: 0
+  };
+  if (arguments.length >= 4) {
+    node.rank = rank;
+    node.order = order;
+  }
+  return addDummyNode(g, "border", node, prefix);
+}
+
+function maxRank(g) {
+  return _.max(_.map(g.nodes(), function(v) {
+    var rank = g.node(v).rank;
+    if (!_.isUndefined(rank)) {
+      return rank;
+    }
+  }));
+}
 
-                var randomDistance = function randomDistance(max) {
-                    return -max + 2 * max * Math.random();
-                };
-                /**
-                 * @brief : Compute the node repulsion forces between a pair of nodes
-                 */
+/*
+ * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
+ * function returns true for an entry it goes into `lhs`. Otherwise it goes
+ * into `rhs.
+ */
+function partition(collection, fn) {
+  var result = { lhs: [], rhs: [] };
+  _.forEach(collection, function(value) {
+    if (fn(value)) {
+      result.lhs.push(value);
+    } else {
+      result.rhs.push(value);
+    }
+  });
+  return result;
+}
 
+/*
+ * Returns a new function that wraps `fn` with a timer. The wrapper logs the
+ * time it takes to execute the function.
+ */
+function time(name, fn) {
+  var start = _.now();
+  try {
+    return fn();
+  } finally {
+    console.log(name + " time: " + (_.now() - start) + "ms");
+  }
+}
 
-                var nodeRepulsion = function nodeRepulsion(node1, node2, layoutInfo, options) {
-                    // var s = "Node repulsion. Node1: " + node1.id + " Node2: " + node2.id;
-                    var cmptId1 = node1.cmptId;
-                    var cmptId2 = node2.cmptId;
+function notime(name, fn) {
+  return fn();
+}
 
-                    if (cmptId1 !== cmptId2 && !layoutInfo.isCompound) {
-                        return;
-                    } // Get direction of line connecting both node centers
 
+/***/ }),
 
-                    var directionX = node2.positionX - node1.positionX;
-                    var directionY = node2.positionY - node1.positionY;
-                    var maxRandDist = 1; // s += "\ndirectionX: " + directionX + ", directionY: " + directionY;
-                    // If both centers are the same, apply a random force
+/***/ "./node_modules/dagre/lib/version.js":
+/*!*******************************************!*\
+  !*** ./node_modules/dagre/lib/version.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    if (0 === directionX && 0 === directionY) {
-                        directionX = randomDistance(maxRandDist);
-                        directionY = randomDistance(maxRandDist);
-                    }
+module.exports = "0.8.5";
 
-                    var overlap = nodesOverlap(node1, node2, directionX, directionY);
 
-                    if (overlap > 0) {
-                        // s += "\nNodes DO overlap.";
-                        // s += "\nOverlap: " + overlap;
-                        // If nodes overlap, repulsion force is proportional
-                        // to the overlap
-                        var force = options.nodeOverlap * overlap; // Compute the module and components of the force vector
+/***/ }),
 
-                        var distance = Math.sqrt(directionX * directionX + directionY * directionY); // s += "\nDistance: " + distance;
+/***/ "./node_modules/graphlib/index.js":
+/*!****************************************!*\
+  !*** ./node_modules/graphlib/index.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var forceX = force * directionX / distance;
-                        var forceY = force * directionY / distance;
-                    } else {
-                        // s += "\nNodes do NOT overlap.";
-                        // If there's no overlap, force is inversely proportional
-                        // to squared distance
-                        // Get clipping points for both nodes
-                        var point1 = findClippingPoint(node1, directionX, directionY);
-                        var point2 = findClippingPoint(node2, -1 * directionX, -1 * directionY); // Use clipping points to compute distance
-
-                        var distanceX = point2.x - point1.x;
-                        var distanceY = point2.y - point1.y;
-                        var distanceSqr = distanceX * distanceX + distanceY * distanceY;
-                        var distance = Math.sqrt(distanceSqr); // s += "\nDistance: " + distance;
-                        // Compute the module and components of the force vector
-
-                        var force = (node1.nodeRepulsion + node2.nodeRepulsion) / distanceSqr;
-                        var forceX = force * distanceX / distance;
-                        var forceY = force * distanceY / distance;
-                    } // Apply force
-
-
-                    if (!node1.isLocked) {
-                        node1.offsetX -= forceX;
-                        node1.offsetY -= forceY;
-                    }
+/**
+ * Copyright (c) 2014, Chris Pettitt
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. Neither the name of the copyright holder nor the names of its contributors
+ * may be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
-                    if (!node2.isLocked) {
-                        node2.offsetX += forceX;
-                        node2.offsetY += forceY;
-                    } // s += "\nForceX: " + forceX + " ForceY: " + forceY;
-                    // logDebug(s);
+var lib = __webpack_require__(/*! ./lib */ "./node_modules/graphlib/lib/index.js");
 
+module.exports = {
+  Graph: lib.Graph,
+  json: __webpack_require__(/*! ./lib/json */ "./node_modules/graphlib/lib/json.js"),
+  alg: __webpack_require__(/*! ./lib/alg */ "./node_modules/graphlib/lib/alg/index.js"),
+  version: lib.version
+};
 
-                    return;
-                };
-                /**
-                 * @brief  : Determines whether two nodes overlap or not
-                 * @return : Amount of overlapping (0 => no overlap)
-                 */
 
+/***/ }),
 
-                var nodesOverlap = function nodesOverlap(node1, node2, dX, dY) {
-                    if (dX > 0) {
-                        var overlapX = node1.maxX - node2.minX;
-                    } else {
-                        var overlapX = node2.maxX - node1.minX;
-                    }
+/***/ "./node_modules/graphlib/lib/alg/components.js":
+/*!*****************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/components.js ***!
+  \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (dY > 0) {
-                        var overlapY = node1.maxY - node2.minY;
-                    } else {
-                        var overlapY = node2.maxY - node1.minY;
-                    }
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                    if (overlapX >= 0 && overlapY >= 0) {
-                        return Math.sqrt(overlapX * overlapX + overlapY * overlapY);
-                    } else {
-                        return 0;
-                    }
-                };
-                /**
-                 * @brief : Finds the point in which an edge (direction dX, dY) intersects
-                 *          the rectangular bounding box of it's source/target node
-                 */
+module.exports = components;
 
+function components(g) {
+  var visited = {};
+  var cmpts = [];
+  var cmpt;
 
-                var findClippingPoint = function findClippingPoint(node, dX, dY) {
-                    // Shorcuts
-                    var X = node.positionX;
-                    var Y = node.positionY;
-                    var H = node.height || 1;
-                    var W = node.width || 1;
-                    var dirSlope = dY / dX;
-                    var nodeSlope = H / W; // var s = 'Computing clipping point of node ' + node.id +
-                    //   " . Height:  " + H + ", Width: " + W +
-                    //   "\nDirection " + dX + ", " + dY;
-                    //
-                    // Compute intersection
+  function dfs(v) {
+    if (_.has(visited, v)) return;
+    visited[v] = true;
+    cmpt.push(v);
+    _.each(g.successors(v), dfs);
+    _.each(g.predecessors(v), dfs);
+  }
 
-                    var res = {}; // Case: Vertical direction (up)
+  _.each(g.nodes(), function(v) {
+    cmpt = [];
+    dfs(v);
+    if (cmpt.length) {
+      cmpts.push(cmpt);
+    }
+  });
 
-                    if (0 === dX && 0 < dY) {
-                        res.x = X; // s += "\nUp direction";
+  return cmpts;
+}
 
-                        res.y = Y + H / 2;
-                        return res;
-                    } // Case: Vertical direction (down)
 
+/***/ }),
 
-                    if (0 === dX && 0 > dY) {
-                        res.x = X;
-                        res.y = Y + H / 2; // s += "\nDown direction";
+/***/ "./node_modules/graphlib/lib/alg/dfs.js":
+/*!**********************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/dfs.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        return res;
-                    } // Case: Intersects the right border
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
+module.exports = dfs;
 
-                    if (0 < dX && -1 * nodeSlope <= dirSlope && dirSlope <= nodeSlope) {
-                        res.x = X + W / 2;
-                        res.y = Y + W * dY / 2 / dX; // s += "\nRightborder";
+/*
+ * A helper that preforms a pre- or post-order traversal on the input graph
+ * and returns the nodes in the order they were visited. If the graph is
+ * undirected then this algorithm will navigate using neighbors. If the graph
+ * is directed then this algorithm will navigate using successors.
+ *
+ * Order must be one of "pre" or "post".
+ */
+function dfs(g, vs, order) {
+  if (!_.isArray(vs)) {
+    vs = [vs];
+  }
 
-                        return res;
-                    } // Case: Intersects the left border
+  var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
 
+  var acc = [];
+  var visited = {};
+  _.each(vs, function(v) {
+    if (!g.hasNode(v)) {
+      throw new Error("Graph does not have node: " + v);
+    }
 
-                    if (0 > dX && -1 * nodeSlope <= dirSlope && dirSlope <= nodeSlope) {
-                        res.x = X - W / 2;
-                        res.y = Y - W * dY / 2 / dX; // s += "\nLeftborder";
+    doDfs(g, v, order === "post", visited, navigation, acc);
+  });
+  return acc;
+}
 
-                        return res;
-                    } // Case: Intersects the top border
+function doDfs(g, v, postorder, visited, navigation, acc) {
+  if (!_.has(visited, v)) {
+    visited[v] = true;
 
+    if (!postorder) { acc.push(v); }
+    _.each(navigation(v), function(w) {
+      doDfs(g, w, postorder, visited, navigation, acc);
+    });
+    if (postorder) { acc.push(v); }
+  }
+}
 
-                    if (0 < dY && (dirSlope <= -1 * nodeSlope || dirSlope >= nodeSlope)) {
-                        res.x = X + H * dX / 2 / dY;
-                        res.y = Y + H / 2; // s += "\nTop border";
 
-                        return res;
-                    } // Case: Intersects the bottom border
+/***/ }),
 
+/***/ "./node_modules/graphlib/lib/alg/dijkstra-all.js":
+/*!*******************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/dijkstra-all.js ***!
+  \*******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (0 > dY && (dirSlope <= -1 * nodeSlope || dirSlope >= nodeSlope)) {
-                        res.x = X - H * dX / 2 / dY;
-                        res.y = Y - H / 2; // s += "\nBottom border";
+var dijkstra = __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js");
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                        return res;
-                    } // s += "\nClipping point found at " + res.x + ", " + res.y;
-                    // logDebug(s);
+module.exports = dijkstraAll;
 
+function dijkstraAll(g, weightFunc, edgeFunc) {
+  return _.transform(g.nodes(), function(acc, v) {
+    acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
+  }, {});
+}
 
-                    return res;
-                };
-                /**
-                 * @brief : Calculates all edge forces
-                 */
-
-
-                var calculateEdgeForces = function calculateEdgeForces(layoutInfo, options) {
-                    // Iterate over all edges
-                    for (var i = 0; i < layoutInfo.edgeSize; i++) {
-                        // Get edge, source & target nodes
-                        var edge = layoutInfo.layoutEdges[i];
-                        var sourceIx = layoutInfo.idToIndex[edge.sourceId];
-                        var source = layoutInfo.layoutNodes[sourceIx];
-                        var targetIx = layoutInfo.idToIndex[edge.targetId];
-                        var target = layoutInfo.layoutNodes[targetIx]; // Get direction of line connecting both node centers
-
-                        var directionX = target.positionX - source.positionX;
-                        var directionY = target.positionY - source.positionY; // If both centers are the same, do nothing.
-                        // A random force has already been applied as node repulsion
-
-                        if (0 === directionX && 0 === directionY) {
-                            continue;
-                        } // Get clipping points for both nodes
-
-
-                        var point1 = findClippingPoint(source, directionX, directionY);
-                        var point2 = findClippingPoint(target, -1 * directionX, -1 * directionY);
-                        var lx = point2.x - point1.x;
-                        var ly = point2.y - point1.y;
-                        var l = Math.sqrt(lx * lx + ly * ly);
-                        var force = Math.pow(edge.idealLength - l, 2) / edge.elasticity;
-
-                        if (0 !== l) {
-                            var forceX = force * lx / l;
-                            var forceY = force * ly / l;
-                        } else {
-                            var forceX = 0;
-                            var forceY = 0;
-                        } // Add this force to target and source nodes
-
-
-                        if (!source.isLocked) {
-                            source.offsetX += forceX;
-                            source.offsetY += forceY;
-                        }
 
-                        if (!target.isLocked) {
-                            target.offsetX -= forceX;
-                            target.offsetY -= forceY;
-                        } // var s = 'Edge force between nodes ' + source.id + ' and ' + target.id;
-                        // s += "\nDistance: " + l + " Force: (" + forceX + ", " + forceY + ")";
-                        // logDebug(s);
+/***/ }),
 
-                    }
-                };
-                /**
-                 * @brief : Computes gravity forces for all nodes
-                 */
-
-
-                var calculateGravityForces = function calculateGravityForces(layoutInfo, options) {
-                    var distThreshold = 1; // var s = 'calculateGravityForces';
-                    // logDebug(s);
-
-                    for (var i = 0; i < layoutInfo.graphSet.length; i++) {
-                        var graph = layoutInfo.graphSet[i];
-                        var numNodes = graph.length; // s = "Set: " + graph.toString();
-                        // logDebug(s);
-                        // Compute graph center
-
-                        if (0 === i) {
-                            var centerX = layoutInfo.clientHeight / 2;
-                            var centerY = layoutInfo.clientWidth / 2;
-                        } else {
-                            // Get Parent node for this graph, and use its position as center
-                            var temp = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[0]]];
-                            var parent = layoutInfo.layoutNodes[layoutInfo.idToIndex[temp.parentId]];
-                            var centerX = parent.positionX;
-                            var centerY = parent.positionY;
-                        } // s = "Center found at: " + centerX + ", " + centerY;
-                        // logDebug(s);
-                        // Apply force to all nodes in graph
-
-
-                        for (var j = 0; j < numNodes; j++) {
-                            var node = layoutInfo.layoutNodes[layoutInfo.idToIndex[graph[j]]]; // s = "Node: " + node.id;
-
-                            if (node.isLocked) {
-                                continue;
-                            }
+/***/ "./node_modules/graphlib/lib/alg/dijkstra.js":
+/*!***************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/dijkstra.js ***!
+  \***************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            var dx = centerX - node.positionX;
-                            var dy = centerY - node.positionY;
-                            var d = Math.sqrt(dx * dx + dy * dy);
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
 
-                            if (d > distThreshold) {
-                                var fx = options.gravity * dx / d;
-                                var fy = options.gravity * dy / d;
-                                node.offsetX += fx;
-                                node.offsetY += fy; // s += ": Applied force: " + fx + ", " + fy;
-                            } // s += ": skypped since it's too close to center";
-                              // logDebug(s);
+module.exports = dijkstra;
 
-                        }
-                    }
-                };
-                /**
-                 * @brief          : This function propagates the existing offsets from
-                 *                   parent nodes to its descendents.
-                 * @arg layoutInfo : layoutInfo Object
-                 * @arg cy         : cytoscape Object
-                 * @arg options    : Layout options
-                 */
+var DEFAULT_WEIGHT_FUNC = _.constant(1);
 
+function dijkstra(g, source, weightFn, edgeFn) {
+  return runDijkstra(g, String(source),
+    weightFn || DEFAULT_WEIGHT_FUNC,
+    edgeFn || function(v) { return g.outEdges(v); });
+}
 
-                var propagateForces = function propagateForces(layoutInfo, options) {
-                    // Inline implementation of a queue, used for traversing the graph in BFS order
-                    var queue = [];
-                    var start = 0; // Points to the start the queue
+function runDijkstra(g, source, weightFn, edgeFn) {
+  var results = {};
+  var pq = new PriorityQueue();
+  var v, vEntry;
 
-                    var end = -1; // Points to the end of the queue
-                    // logDebug('propagateForces');
-                    // Start by visiting the nodes in the root graph
+  var updateNeighbors = function(edge) {
+    var w = edge.v !== v ? edge.v : edge.w;
+    var wEntry = results[w];
+    var weight = weightFn(edge);
+    var distance = vEntry.distance + weight;
 
-                    queue.push.apply(queue, layoutInfo.graphSet[0]);
-                    end += layoutInfo.graphSet[0].length; // Traverse the graph, level by level,
+    if (weight < 0) {
+      throw new Error("dijkstra does not allow negative edge weights. " +
+                      "Bad edge: " + edge + " Weight: " + weight);
+    }
 
-                    while (start <= end) {
-                        // Get the node to visit and remove it from queue
-                        var nodeId = queue[start++];
-                        var nodeIndex = layoutInfo.idToIndex[nodeId];
-                        var node = layoutInfo.layoutNodes[nodeIndex];
-                        var children = node.children; // We only need to process the node if it's compound
+    if (distance < wEntry.distance) {
+      wEntry.distance = distance;
+      wEntry.predecessor = v;
+      pq.decrease(w, distance);
+    }
+  };
+
+  g.nodes().forEach(function(v) {
+    var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
+    results[v] = { distance: distance };
+    pq.add(v, distance);
+  });
+
+  while (pq.size() > 0) {
+    v = pq.removeMin();
+    vEntry = results[v];
+    if (vEntry.distance === Number.POSITIVE_INFINITY) {
+      break;
+    }
 
-                        if (0 < children.length && !node.isLocked) {
-                            var offX = node.offsetX;
-                            var offY = node.offsetY; // var s = "Propagating offset from parent node : " + node.id +
-                            //   ". OffsetX: " + offX + ". OffsetY: " + offY;
-                            // s += "\n Children: " + children.toString();
-                            // logDebug(s);
+    edgeFn(v).forEach(updateNeighbors);
+  }
 
-                            for (var i = 0; i < children.length; i++) {
-                                var childNode = layoutInfo.layoutNodes[layoutInfo.idToIndex[children[i]]]; // Propagate offset
+  return results;
+}
 
-                                childNode.offsetX += offX;
-                                childNode.offsetY += offY; // Add children to queue to be visited
 
-                                queue[++end] = children[i];
-                            } // Reset parent offsets
+/***/ }),
 
+/***/ "./node_modules/graphlib/lib/alg/find-cycles.js":
+/*!******************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/find-cycles.js ***!
+  \******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            node.offsetX = 0;
-                            node.offsetY = 0;
-                        }
-                    }
-                };
-                /**
-                 * @brief : Updates the layout model positions, based on
-                 *          the accumulated forces
-                 */
-
-
-                var updatePositions = function updatePositions(layoutInfo, options) {
-                    // var s = 'Updating positions';
-                    // logDebug(s);
-                    // Reset boundaries for compound nodes
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = layoutInfo.layoutNodes[i];
-
-                        if (0 < n.children.length) {
-                            // logDebug("Resetting boundaries of compound node: " + n.id);
-                            n.maxX = undefined;
-                            n.minX = undefined;
-                            n.maxY = undefined;
-                            n.minY = undefined;
-                        }
-                    }
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+var tarjan = __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js");
 
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = layoutInfo.layoutNodes[i];
-
-                        if (0 < n.children.length || n.isLocked) {
-                            // No need to set compound or locked node position
-                            // logDebug("Skipping position update of node: " + n.id);
-                            continue;
-                        } // s = "Node: " + n.id + " Previous position: (" +
-                        // n.positionX + ", " + n.positionY + ").";
-                        // Limit displacement in order to improve stability
-
-
-                        var tempForce = limitForce(n.offsetX, n.offsetY, layoutInfo.temperature);
-                        n.positionX += tempForce.x;
-                        n.positionY += tempForce.y;
-                        n.offsetX = 0;
-                        n.offsetY = 0;
-                        n.minX = n.positionX - n.width;
-                        n.maxX = n.positionX + n.width;
-                        n.minY = n.positionY - n.height;
-                        n.maxY = n.positionY + n.height; // s += " New Position: (" + n.positionX + ", " + n.positionY + ").";
-                        // logDebug(s);
-                        // Update ancestry boudaries
-
-                        updateAncestryBoundaries(n, layoutInfo);
-                    } // Update size, position of compund nodes
-
-
-                    for (var i = 0; i < layoutInfo.nodeSize; i++) {
-                        var n = layoutInfo.layoutNodes[i];
-
-                        if (0 < n.children.length && !n.isLocked) {
-                            n.positionX = (n.maxX + n.minX) / 2;
-                            n.positionY = (n.maxY + n.minY) / 2;
-                            n.width = n.maxX - n.minX;
-                            n.height = n.maxY - n.minY; // s = "Updating position, size of compound node " + n.id;
-                            // s += "\nPositionX: " + n.positionX + ", PositionY: " + n.positionY;
-                            // s += "\nWidth: " + n.width + ", Height: " + n.height;
-                            // logDebug(s);
-                        }
-                    }
-                };
-                /**
-                 * @brief : Limits a force (forceX, forceY) to be not
-                 *          greater (in modulo) than max.
-                 8          Preserves force direction.
-                 */
-
-
-                var limitForce = function limitForce(forceX, forceY, max) {
-                    // var s = "Limiting force: (" + forceX + ", " + forceY + "). Max: " + max;
-                    var force = Math.sqrt(forceX * forceX + forceY * forceY);
-
-                    if (force > max) {
-                        var res = {
-                            x: max * forceX / force,
-                            y: max * forceY / force
-                        };
-                    } else {
-                        var res = {
-                            x: forceX,
-                            y: forceY
-                        };
-                    } // s += ".\nResult: (" + res.x + ", " + res.y + ")";
-                    // logDebug(s);
+module.exports = findCycles;
 
+function findCycles(g) {
+  return _.filter(tarjan(g), function(cmpt) {
+    return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
+  });
+}
 
-                    return res;
-                };
-                /**
-                 * @brief : Function used for keeping track of compound node
-                 *          sizes, since they should bound all their subnodes.
-                 */
 
+/***/ }),
 
-                var updateAncestryBoundaries = function updateAncestryBoundaries(node, layoutInfo) {
-                    // var s = "Propagating new position/size of node " + node.id;
-                    var parentId = node.parentId;
+/***/ "./node_modules/graphlib/lib/alg/floyd-warshall.js":
+/*!*********************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/floyd-warshall.js ***!
+  \*********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+
+module.exports = floydWarshall;
+
+var DEFAULT_WEIGHT_FUNC = _.constant(1);
+
+function floydWarshall(g, weightFn, edgeFn) {
+  return runFloydWarshall(g,
+    weightFn || DEFAULT_WEIGHT_FUNC,
+    edgeFn || function(v) { return g.outEdges(v); });
+}
+
+function runFloydWarshall(g, weightFn, edgeFn) {
+  var results = {};
+  var nodes = g.nodes();
+
+  nodes.forEach(function(v) {
+    results[v] = {};
+    results[v][v] = { distance: 0 };
+    nodes.forEach(function(w) {
+      if (v !== w) {
+        results[v][w] = { distance: Number.POSITIVE_INFINITY };
+      }
+    });
+    edgeFn(v).forEach(function(edge) {
+      var w = edge.v === v ? edge.w : edge.v;
+      var d = weightFn(edge);
+      results[v][w] = { distance: d, predecessor: v };
+    });
+  });
+
+  nodes.forEach(function(k) {
+    var rowK = results[k];
+    nodes.forEach(function(i) {
+      var rowI = results[i];
+      nodes.forEach(function(j) {
+        var ik = rowI[k];
+        var kj = rowK[j];
+        var ij = rowI[j];
+        var altDistance = ik.distance + kj.distance;
+        if (altDistance < ij.distance) {
+          ij.distance = altDistance;
+          ij.predecessor = kj.predecessor;
+        }
+      });
+    });
+  });
 
-                    if (null == parentId) {
-                        // If there's no parent, we are done
-                        // s += ". No parent node.";
-                        // logDebug(s);
-                        return;
-                    } // Get Parent Node
+  return results;
+}
 
 
-                    var p = layoutInfo.layoutNodes[layoutInfo.idToIndex[parentId]];
-                    var flag = false; // MaxX
+/***/ }),
 
-                    if (null == p.maxX || node.maxX + p.padRight > p.maxX) {
-                        p.maxX = node.maxX + p.padRight;
-                        flag = true; // s += "\nNew maxX for parent node " + p.id + ": " + p.maxX;
-                    } // MinX
+/***/ "./node_modules/graphlib/lib/alg/index.js":
+/*!************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/index.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = {
+  components: __webpack_require__(/*! ./components */ "./node_modules/graphlib/lib/alg/components.js"),
+  dijkstra: __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js"),
+  dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "./node_modules/graphlib/lib/alg/dijkstra-all.js"),
+  findCycles: __webpack_require__(/*! ./find-cycles */ "./node_modules/graphlib/lib/alg/find-cycles.js"),
+  floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "./node_modules/graphlib/lib/alg/floyd-warshall.js"),
+  isAcyclic: __webpack_require__(/*! ./is-acyclic */ "./node_modules/graphlib/lib/alg/is-acyclic.js"),
+  postorder: __webpack_require__(/*! ./postorder */ "./node_modules/graphlib/lib/alg/postorder.js"),
+  preorder: __webpack_require__(/*! ./preorder */ "./node_modules/graphlib/lib/alg/preorder.js"),
+  prim: __webpack_require__(/*! ./prim */ "./node_modules/graphlib/lib/alg/prim.js"),
+  tarjan: __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js"),
+  topsort: __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js")
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/graphlib/lib/alg/is-acyclic.js":
+/*!*****************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/is-acyclic.js ***!
+  \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var topsort = __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js");
 
-                    if (null == p.minX || node.minX - p.padLeft < p.minX) {
-                        p.minX = node.minX - p.padLeft;
-                        flag = true; // s += "\nNew minX for parent node " + p.id + ": " + p.minX;
-                    } // MaxY
+module.exports = isAcyclic;
 
+function isAcyclic(g) {
+  try {
+    topsort(g);
+  } catch (e) {
+    if (e instanceof topsort.CycleException) {
+      return false;
+    }
+    throw e;
+  }
+  return true;
+}
 
-                    if (null == p.maxY || node.maxY + p.padBottom > p.maxY) {
-                        p.maxY = node.maxY + p.padBottom;
-                        flag = true; // s += "\nNew maxY for parent node " + p.id + ": " + p.maxY;
-                    } // MinY
 
+/***/ }),
 
-                    if (null == p.minY || node.minY - p.padTop < p.minY) {
-                        p.minY = node.minY - p.padTop;
-                        flag = true; // s += "\nNew minY for parent node " + p.id + ": " + p.minY;
-                    } // If updated boundaries, propagate changes upward
+/***/ "./node_modules/graphlib/lib/alg/postorder.js":
+/*!****************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/postorder.js ***!
+  \****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
 
-                    if (flag) {
-                        // logDebug(s);
-                        return updateAncestryBoundaries(p, layoutInfo);
-                    } // s += ". No changes in boundaries/position of parent node " + p.id;
-                    // logDebug(s);
+module.exports = postorder;
 
+function postorder(g, vs) {
+  return dfs(g, vs, "post");
+}
 
-                    return;
-                };
 
-                var separateComponents = function separateComponents(layoutInfo, options) {
-                    var nodes = layoutInfo.layoutNodes;
-                    var components = [];
+/***/ }),
 
-                    for (var i = 0; i < nodes.length; i++) {
-                        var node = nodes[i];
-                        var cid = node.cmptId;
-                        var component = components[cid] = components[cid] || [];
-                        component.push(node);
-                    }
+/***/ "./node_modules/graphlib/lib/alg/preorder.js":
+/*!***************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/preorder.js ***!
+  \***************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var totalA = 0;
+var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
 
-                    for (var i = 0; i < components.length; i++) {
-                        var c = components[i];
+module.exports = preorder;
 
-                        if (!c) {
-                            continue;
-                        }
+function preorder(g, vs) {
+  return dfs(g, vs, "pre");
+}
 
-                        c.x1 = Infinity;
-                        c.x2 = -Infinity;
-                        c.y1 = Infinity;
-                        c.y2 = -Infinity;
-
-                        for (var j = 0; j < c.length; j++) {
-                            var n = c[j];
-                            c.x1 = Math.min(c.x1, n.positionX - n.width / 2);
-                            c.x2 = Math.max(c.x2, n.positionX + n.width / 2);
-                            c.y1 = Math.min(c.y1, n.positionY - n.height / 2);
-                            c.y2 = Math.max(c.y2, n.positionY + n.height / 2);
-                        }
 
-                        c.w = c.x2 - c.x1;
-                        c.h = c.y2 - c.y1;
-                        totalA += c.w * c.h;
-                    }
+/***/ }),
 
-                    components.sort(function (c1, c2) {
-                        return c2.w * c2.h - c1.w * c1.h;
-                    });
-                    var x = 0;
-                    var y = 0;
-                    var usedW = 0;
-                    var rowH = 0;
-                    var maxRowW = Math.sqrt(totalA) * layoutInfo.clientWidth / layoutInfo.clientHeight;
+/***/ "./node_modules/graphlib/lib/alg/prim.js":
+/*!***********************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/prim.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+var Graph = __webpack_require__(/*! ../graph */ "./node_modules/graphlib/lib/graph.js");
+var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
+
+module.exports = prim;
+
+function prim(g, weightFunc) {
+  var result = new Graph();
+  var parents = {};
+  var pq = new PriorityQueue();
+  var v;
+
+  function updateNeighbors(edge) {
+    var w = edge.v === v ? edge.w : edge.v;
+    var pri = pq.priority(w);
+    if (pri !== undefined) {
+      var edgeWeight = weightFunc(edge);
+      if (edgeWeight < pri) {
+        parents[w] = v;
+        pq.decrease(w, edgeWeight);
+      }
+    }
+  }
 
-                    for (var i = 0; i < components.length; i++) {
-                        var c = components[i];
+  if (g.nodeCount() === 0) {
+    return result;
+  }
 
-                        if (!c) {
-                            continue;
-                        }
+  _.each(g.nodes(), function(v) {
+    pq.add(v, Number.POSITIVE_INFINITY);
+    result.setNode(v);
+  });
+
+  // Start from an arbitrary node
+  pq.decrease(g.nodes()[0], 0);
+
+  var init = false;
+  while (pq.size() > 0) {
+    v = pq.removeMin();
+    if (_.has(parents, v)) {
+      result.setEdge(v, parents[v]);
+    } else if (init) {
+      throw new Error("Input graph is not connected: " + g);
+    } else {
+      init = true;
+    }
 
-                        for (var j = 0; j < c.length; j++) {
-                            var n = c[j];
+    g.nodeEdges(v).forEach(updateNeighbors);
+  }
 
-                            if (!n.isLocked) {
-                                n.positionX += x - c.x1;
-                                n.positionY += y - c.y1;
-                            }
-                        }
+  return result;
+}
 
-                        x += c.w + options.componentSpacing;
-                        usedW += c.w + options.componentSpacing;
-                        rowH = Math.max(rowH, c.h);
 
-                        if (usedW > maxRowW) {
-                            y += rowH + options.componentSpacing;
-                            x = 0;
-                            usedW = 0;
-                            rowH = 0;
-                        }
-                    }
-                };
+/***/ }),
 
-                var defaults$d = {
-                    fit: true,
-                    // whether to fit the viewport to the graph
-                    padding: 30,
-                    // padding used on fit
-                    boundingBox: undefined,
-                    // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    avoidOverlap: true,
-                    // prevents node overlap, may overflow boundingBox if not enough space
-                    avoidOverlapPadding: 10,
-                    // extra spacing around nodes when avoidOverlap: true
-                    nodeDimensionsIncludeLabels: false,
-                    // Excludes the label when calculating node bounding boxes for the layout algorithm
-                    spacingFactor: undefined,
-                    // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
-                    condense: false,
-                    // uses all available space on false, uses minimal space on true
-                    rows: undefined,
-                    // force num of rows in the grid
-                    cols: undefined,
-                    // force num of columns in the grid
-                    position: function position(node) {},
-                    // returns { row, col } for element
-                    sort: undefined,
-                    // a sorting function to order the nodes; e.g. function(a, b){ return a.data('weight') - b.data('weight') }
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
+/***/ "./node_modules/graphlib/lib/alg/tarjan.js":
+/*!*************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/tarjan.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                };
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                function GridLayout(options) {
-                    this.options = extend({}, defaults$d, options);
-                }
+module.exports = tarjan;
 
-                GridLayout.prototype.run = function () {
-                    var params = this.options;
-                    var options = params;
-                    var cy = params.cy;
-                    var eles = options.eles;
-                    var nodes = eles.nodes().not(':parent');
+function tarjan(g) {
+  var index = 0;
+  var stack = [];
+  var visited = {}; // node id -> { onStack, lowlink, index }
+  var results = [];
 
-                    if (options.sort) {
-                        nodes = nodes.sort(options.sort);
-                    }
+  function dfs(v) {
+    var entry = visited[v] = {
+      onStack: true,
+      lowlink: index,
+      index: index++
+    };
+    stack.push(v);
+
+    g.successors(v).forEach(function(w) {
+      if (!_.has(visited, w)) {
+        dfs(w);
+        entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
+      } else if (visited[w].onStack) {
+        entry.lowlink = Math.min(entry.lowlink, visited[w].index);
+      }
+    });
+
+    if (entry.lowlink === entry.index) {
+      var cmpt = [];
+      var w;
+      do {
+        w = stack.pop();
+        visited[w].onStack = false;
+        cmpt.push(w);
+      } while (v !== w);
+      results.push(cmpt);
+    }
+  }
 
-                    var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                        x1: 0,
-                        y1: 0,
-                        w: cy.width(),
-                        h: cy.height()
-                    });
-
-                    if (bb.h === 0 || bb.w === 0) {
-                        nodes.layoutPositions(this, options, function (ele) {
-                            return {
-                                x: bb.x1,
-                                y: bb.y1
-                            };
-                        });
-                    } else {
-                        // width/height * splits^2 = cells where splits is number of times to split width
-                        var cells = nodes.size();
-                        var splits = Math.sqrt(cells * bb.h / bb.w);
-                        var rows = Math.round(splits);
-                        var cols = Math.round(bb.w / bb.h * splits);
-
-                        var small = function small(val) {
-                            if (val == null) {
-                                return Math.min(rows, cols);
-                            } else {
-                                var min = Math.min(rows, cols);
-
-                                if (min == rows) {
-                                    rows = val;
-                                } else {
-                                    cols = val;
-                                }
-                            }
-                        };
-
-                        var large = function large(val) {
-                            if (val == null) {
-                                return Math.max(rows, cols);
-                            } else {
-                                var max = Math.max(rows, cols);
-
-                                if (max == rows) {
-                                    rows = val;
-                                } else {
-                                    cols = val;
-                                }
-                            }
-                        };
-
-                        var oRows = options.rows;
-                        var oCols = options.cols != null ? options.cols : options.columns; // if rows or columns were set in options, use those values
-
-                        if (oRows != null && oCols != null) {
-                            rows = oRows;
-                            cols = oCols;
-                        } else if (oRows != null && oCols == null) {
-                            rows = oRows;
-                            cols = Math.ceil(cells / rows);
-                        } else if (oRows == null && oCols != null) {
-                            cols = oCols;
-                            rows = Math.ceil(cells / cols);
-                        } // otherwise use the automatic values and adjust accordingly
-                        // if rounding was up, see if we can reduce rows or columns
-                        else if (cols * rows > cells) {
-                            var sm = small();
-                            var lg = large(); // reducing the small side takes away the most cells, so try it first
-
-                            if ((sm - 1) * lg >= cells) {
-                                small(sm - 1);
-                            } else if ((lg - 1) * sm >= cells) {
-                                large(lg - 1);
-                            }
-                        } else {
-                            // if rounding was too low, add rows or columns
-                            while (cols * rows < cells) {
-                                var _sm = small();
+  g.nodes().forEach(function(v) {
+    if (!_.has(visited, v)) {
+      dfs(v);
+    }
+  });
 
-                                var _lg = large(); // try to add to larger side first (adds less in multiplication)
+  return results;
+}
 
 
-                                if ((_lg + 1) * _sm >= cells) {
-                                    large(_lg + 1);
-                                } else {
-                                    small(_sm + 1);
-                                }
-                            }
-                        }
+/***/ }),
 
-                        var cellWidth = bb.w / cols;
-                        var cellHeight = bb.h / rows;
+/***/ "./node_modules/graphlib/lib/alg/topsort.js":
+/*!**************************************************!*\
+  !*** ./node_modules/graphlib/lib/alg/topsort.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (options.condense) {
-                            cellWidth = 0;
-                            cellHeight = 0;
-                        }
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                        if (options.avoidOverlap) {
-                            for (var i = 0; i < nodes.length; i++) {
-                                var node = nodes[i];
-                                var pos = node._private.position;
-
-                                if (pos.x == null || pos.y == null) {
-                                    // for bb
-                                    pos.x = 0;
-                                    pos.y = 0;
-                                }
-
-                                var nbb = node.layoutDimensions(options);
-                                var p = options.avoidOverlapPadding;
-                                var w = nbb.w + p;
-                                var h = nbb.h + p;
-                                cellWidth = Math.max(cellWidth, w);
-                                cellHeight = Math.max(cellHeight, h);
-                            }
-                        }
+module.exports = topsort;
+topsort.CycleException = CycleException;
 
-                        var cellUsed = {}; // e.g. 'c-0-2' => true
+function topsort(g) {
+  var visited = {};
+  var stack = {};
+  var results = [];
 
-                        var used = function used(row, col) {
-                            return cellUsed['c-' + row + '-' + col] ? true : false;
-                        };
+  function visit(node) {
+    if (_.has(stack, node)) {
+      throw new CycleException();
+    }
 
-                        var use = function use(row, col) {
-                            cellUsed['c-' + row + '-' + col] = true;
-                        }; // to keep track of current cell position
+    if (!_.has(visited, node)) {
+      stack[node] = true;
+      visited[node] = true;
+      _.each(g.predecessors(node), visit);
+      delete stack[node];
+      results.push(node);
+    }
+  }
 
+  _.each(g.sinks(), visit);
 
-                        var row = 0;
-                        var col = 0;
+  if (_.size(visited) !== g.nodeCount()) {
+    throw new CycleException();
+  }
 
-                        var moveToNextCell = function moveToNextCell() {
-                            col++;
+  return results;
+}
 
-                            if (col >= cols) {
-                                col = 0;
-                                row++;
-                            }
-                        }; // get a cache of all the manual positions
+function CycleException() {}
+CycleException.prototype = new Error(); // must be an instance of Error to pass testing
 
+/***/ }),
 
-                        var id2manPos = {};
+/***/ "./node_modules/graphlib/lib/data/priority-queue.js":
+/*!**********************************************************!*\
+  !*** ./node_modules/graphlib/lib/data/priority-queue.js ***!
+  \**********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        for (var _i = 0; _i < nodes.length; _i++) {
-                            var _node = nodes[_i];
-                            var rcPos = options.position(_node);
+var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                            if (rcPos && (rcPos.row !== undefined || rcPos.col !== undefined)) {
-                                // must have at least row or col def'd
-                                var _pos = {
-                                    row: rcPos.row,
-                                    col: rcPos.col
-                                };
+module.exports = PriorityQueue;
 
-                                if (_pos.col === undefined) {
-                                    // find unused col
-                                    _pos.col = 0;
+/**
+ * A min-priority queue data structure. This algorithm is derived from Cormen,
+ * et al., "Introduction to Algorithms". The basic idea of a min-priority
+ * queue is that you can efficiently (in O(1) time) get the smallest key in
+ * the queue. Adding and removing elements takes O(log n) time. A key can
+ * have its priority decreased in O(log n) time.
+ */
+function PriorityQueue() {
+  this._arr = [];
+  this._keyIndices = {};
+}
 
-                                    while (used(_pos.row, _pos.col)) {
-                                        _pos.col++;
-                                    }
-                                } else if (_pos.row === undefined) {
-                                    // find unused row
-                                    _pos.row = 0;
+/**
+ * Returns the number of elements in the queue. Takes `O(1)` time.
+ */
+PriorityQueue.prototype.size = function() {
+  return this._arr.length;
+};
 
-                                    while (used(_pos.row, _pos.col)) {
-                                        _pos.row++;
-                                    }
-                                }
+/**
+ * Returns the keys that are in the queue. Takes `O(n)` time.
+ */
+PriorityQueue.prototype.keys = function() {
+  return this._arr.map(function(x) { return x.key; });
+};
 
-                                id2manPos[_node.id()] = _pos;
-                                use(_pos.row, _pos.col);
-                            }
-                        }
+/**
+ * Returns `true` if **key** is in the queue and `false` if not.
+ */
+PriorityQueue.prototype.has = function(key) {
+  return _.has(this._keyIndices, key);
+};
 
-                        var getPos = function getPos(element, i) {
-                            var x, y;
+/**
+ * Returns the priority for **key**. If **key** is not present in the queue
+ * then this function returns `undefined`. Takes `O(1)` time.
+ *
+ * @param {Object} key
+ */
+PriorityQueue.prototype.priority = function(key) {
+  var index = this._keyIndices[key];
+  if (index !== undefined) {
+    return this._arr[index].priority;
+  }
+};
 
-                            if (element.locked() || element.isParent()) {
-                                return false;
-                            } // see if we have a manual position set
+/**
+ * Returns the key for the minimum element in this queue. If the queue is
+ * empty this function throws an Error. Takes `O(1)` time.
+ */
+PriorityQueue.prototype.min = function() {
+  if (this.size() === 0) {
+    throw new Error("Queue underflow");
+  }
+  return this._arr[0].key;
+};
 
+/**
+ * Inserts a new key into the priority queue. If the key already exists in
+ * the queue this function returns `false`; otherwise it will return `true`.
+ * Takes `O(n)` time.
+ *
+ * @param {Object} key the key to add
+ * @param {Number} priority the initial priority for the key
+ */
+PriorityQueue.prototype.add = function(key, priority) {
+  var keyIndices = this._keyIndices;
+  key = String(key);
+  if (!_.has(keyIndices, key)) {
+    var arr = this._arr;
+    var index = arr.length;
+    keyIndices[key] = index;
+    arr.push({key: key, priority: priority});
+    this._decrease(index);
+    return true;
+  }
+  return false;
+};
 
-                            var rcPos = id2manPos[element.id()];
+/**
+ * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
+ */
+PriorityQueue.prototype.removeMin = function() {
+  this._swap(0, this._arr.length - 1);
+  var min = this._arr.pop();
+  delete this._keyIndices[min.key];
+  this._heapify(0);
+  return min.key;
+};
+
+/**
+ * Decreases the priority for **key** to **priority**. If the new priority is
+ * greater than the previous priority, this function will throw an Error.
+ *
+ * @param {Object} key the key for which to raise priority
+ * @param {Number} priority the new priority for the key
+ */
+PriorityQueue.prototype.decrease = function(key, priority) {
+  var index = this._keyIndices[key];
+  if (priority > this._arr[index].priority) {
+    throw new Error("New priority is greater than current priority. " +
+        "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
+  }
+  this._arr[index].priority = priority;
+  this._decrease(index);
+};
+
+PriorityQueue.prototype._heapify = function(i) {
+  var arr = this._arr;
+  var l = 2 * i;
+  var r = l + 1;
+  var largest = i;
+  if (l < arr.length) {
+    largest = arr[l].priority < arr[largest].priority ? l : largest;
+    if (r < arr.length) {
+      largest = arr[r].priority < arr[largest].priority ? r : largest;
+    }
+    if (largest !== i) {
+      this._swap(i, largest);
+      this._heapify(largest);
+    }
+  }
+};
+
+PriorityQueue.prototype._decrease = function(index) {
+  var arr = this._arr;
+  var priority = arr[index].priority;
+  var parent;
+  while (index !== 0) {
+    parent = index >> 1;
+    if (arr[parent].priority < priority) {
+      break;
+    }
+    this._swap(index, parent);
+    index = parent;
+  }
+};
 
-                            if (rcPos) {
-                                x = rcPos.col * cellWidth + cellWidth / 2 + bb.x1;
-                                y = rcPos.row * cellHeight + cellHeight / 2 + bb.y1;
-                            } else {
-                                // otherwise set automatically
-                                while (used(row, col)) {
-                                    moveToNextCell();
-                                }
+PriorityQueue.prototype._swap = function(i, j) {
+  var arr = this._arr;
+  var keyIndices = this._keyIndices;
+  var origArrI = arr[i];
+  var origArrJ = arr[j];
+  arr[i] = origArrJ;
+  arr[j] = origArrI;
+  keyIndices[origArrJ.key] = i;
+  keyIndices[origArrI.key] = j;
+};
 
-                                x = col * cellWidth + cellWidth / 2 + bb.x1;
-                                y = row * cellHeight + cellHeight / 2 + bb.y1;
-                                use(row, col);
-                                moveToNextCell();
-                            }
 
-                            return {
-                                x: x,
-                                y: y
-                            };
-                        };
+/***/ }),
 
-                        nodes.layoutPositions(this, options, getPos);
-                    }
+/***/ "./node_modules/graphlib/lib/graph.js":
+/*!********************************************!*\
+  !*** ./node_modules/graphlib/lib/graph.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    return this; // chaining
-                };
+"use strict";
 
-                var defaults$e = {
-                    ready: function ready() {},
-                    // on layoutready
-                    stop: function stop() {} // on layoutstop
 
-                }; // constructor
-// options : object containing layout options
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-                function NullLayout(options) {
-                    this.options = extend({}, defaults$e, options);
-                } // runs the layout
+module.exports = Graph;
 
+var DEFAULT_EDGE_NAME = "\x00";
+var GRAPH_NODE = "\x00";
+var EDGE_KEY_DELIM = "\x01";
 
-                NullLayout.prototype.run = function () {
-                    var options = this.options;
-                    var eles = options.eles; // elements to consider in the layout
+// Implementation notes:
+//
+//  * Node id query functions should return string ids for the nodes
+//  * Edge id query functions should return an "edgeObj", edge object, that is
+//    composed of enough information to uniquely identify an edge: {v, w, name}.
+//  * Internally we use an "edgeId", a stringified form of the edgeObj, to
+//    reference edges. This is because we need a performant way to look these
+//    edges up and, object properties, which have string keys, are the closest
+//    we're going to get to a performant hashtable in JavaScript.
 
-                    var layout = this; // cy is automatically populated for us in the constructor
-                    // (disable eslint for next line as this serves as example layout code to external developers)
-                    // eslint-disable-next-line no-unused-vars
+function Graph(opts) {
+  this._isDirected = _.has(opts, "directed") ? opts.directed : true;
+  this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
+  this._isCompound = _.has(opts, "compound") ? opts.compound : false;
 
-                    var cy = options.cy;
-                    layout.emit('layoutstart'); // puts all nodes at (0, 0)
-                    // n.b. most layouts would use layoutPositions(), instead of positions() and manual events
+  // Label for the graph itself
+  this._label = undefined;
 
-                    eles.nodes().positions(function () {
-                        return {
-                            x: 0,
-                            y: 0
-                        };
-                    }); // trigger layoutready when each node has had its position set at least once
+  // Defaults to be set when creating a new node
+  this._defaultNodeLabelFn = _.constant(undefined);
 
-                    layout.one('layoutready', options.ready);
-                    layout.emit('layoutready'); // trigger layoutstop when the layout stops (e.g. finishes)
+  // Defaults to be set when creating a new edge
+  this._defaultEdgeLabelFn = _.constant(undefined);
 
-                    layout.one('layoutstop', options.stop);
-                    layout.emit('layoutstop');
-                    return this; // chaining
-                }; // called on continuous layouts to stop them before they finish
+  // v -> label
+  this._nodes = {};
 
+  if (this._isCompound) {
+    // v -> parent
+    this._parent = {};
 
-                NullLayout.prototype.stop = function () {
-                    return this; // chaining
-                };
+    // v -> children
+    this._children = {};
+    this._children[GRAPH_NODE] = {};
+  }
 
-                var defaults$f = {
-                    positions: undefined,
-                    // map of (node id) => (position obj); or function(node){ return somPos; }
-                    zoom: undefined,
-                    // the zoom level to set (prob want fit = false if set)
-                    pan: undefined,
-                    // the pan level to set (prob want fit = false if set)
-                    fit: true,
-                    // whether to fit to viewport
-                    padding: 30,
-                    // padding on fit
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
+  // v -> edgeObj
+  this._in = {};
 
-                };
+  // u -> v -> Number
+  this._preds = {};
 
-                function PresetLayout(options) {
-                    this.options = extend({}, defaults$f, options);
-                }
+  // v -> edgeObj
+  this._out = {};
 
-                PresetLayout.prototype.run = function () {
-                    var options = this.options;
-                    var eles = options.eles;
-                    var nodes = eles.nodes();
-                    var posIsFn = fn(options.positions);
+  // v -> w -> Number
+  this._sucs = {};
 
-                    function getPosition(node) {
-                        if (options.positions == null) {
-                            return copyPosition(node.position());
-                        }
+  // e -> edgeObj
+  this._edgeObjs = {};
 
-                        if (posIsFn) {
-                            return options.positions(node);
-                        }
+  // e -> label
+  this._edgeLabels = {};
+}
 
-                        var pos = options.positions[node._private.data.id];
+/* Number of nodes in the graph. Should only be changed by the implementation. */
+Graph.prototype._nodeCount = 0;
 
-                        if (pos == null) {
-                            return null;
-                        }
+/* Number of edges in the graph. Should only be changed by the implementation. */
+Graph.prototype._edgeCount = 0;
 
-                        return pos;
-                    }
 
-                    nodes.layoutPositions(this, options, function (node, i) {
-                        var position = getPosition(node);
+/* === Graph functions ========= */
 
-                        if (node.locked() || position == null) {
-                            return false;
-                        }
+Graph.prototype.isDirected = function() {
+  return this._isDirected;
+};
 
-                        return position;
-                    });
-                    return this; // chaining
-                };
+Graph.prototype.isMultigraph = function() {
+  return this._isMultigraph;
+};
 
-                var defaults$g = {
-                    fit: true,
-                    // whether to fit to viewport
-                    padding: 30,
-                    // fit padding
-                    boundingBox: undefined,
-                    // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
-                    animate: false,
-                    // whether to transition the node positions
-                    animationDuration: 500,
-                    // duration of animation in ms if enabled
-                    animationEasing: undefined,
-                    // easing of animation if enabled
-                    animateFilter: function animateFilter(node, i) {
-                        return true;
-                    },
-                    // a function that determines whether the node should be animated.  All nodes animated by default on animate enabled.  Non-animated nodes are positioned immediately when the layout starts
-                    ready: undefined,
-                    // callback on layoutready
-                    stop: undefined,
-                    // callback on layoutstop
-                    transform: function transform(node, position) {
-                        return position;
-                    } // transform a given node position. Useful for changing flow direction in discrete layouts
+Graph.prototype.isCompound = function() {
+  return this._isCompound;
+};
 
-                };
+Graph.prototype.setGraph = function(label) {
+  this._label = label;
+  return this;
+};
 
-                function RandomLayout(options) {
-                    this.options = extend({}, defaults$g, options);
-                }
+Graph.prototype.graph = function() {
+  return this._label;
+};
 
-                RandomLayout.prototype.run = function () {
-                    var options = this.options;
-                    var cy = options.cy;
-                    var eles = options.eles;
-                    var nodes = eles.nodes().not(':parent');
-                    var bb = makeBoundingBox(options.boundingBox ? options.boundingBox : {
-                        x1: 0,
-                        y1: 0,
-                        w: cy.width(),
-                        h: cy.height()
-                    });
-
-                    var getPos = function getPos(node, i) {
-                        return {
-                            x: bb.x1 + Math.round(Math.random() * bb.w),
-                            y: bb.y1 + Math.round(Math.random() * bb.h)
-                        };
-                    };
-
-                    nodes.layoutPositions(this, options, getPos);
-                    return this; // chaining
-                };
 
-                var layout = [{
-                    name: 'breadthfirst',
-                    impl: BreadthFirstLayout
-                }, {
-                    name: 'circle',
-                    impl: CircleLayout
-                }, {
-                    name: 'concentric',
-                    impl: ConcentricLayout
-                }, {
-                    name: 'cose',
-                    impl: CoseLayout
-                }, {
-                    name: 'grid',
-                    impl: GridLayout
-                }, {
-                    name: 'null',
-                    impl: NullLayout
-                }, {
-                    name: 'preset',
-                    impl: PresetLayout
-                }, {
-                    name: 'random',
-                    impl: RandomLayout
-                }];
-
-                function NullRenderer(options) {
-                    this.options = options;
-                    this.notifications = 0; // for testing
-                }
+/* === Node functions ========== */
 
-                var noop$1 = function noop() {};
+Graph.prototype.setDefaultNodeLabel = function(newDefault) {
+  if (!_.isFunction(newDefault)) {
+    newDefault = _.constant(newDefault);
+  }
+  this._defaultNodeLabelFn = newDefault;
+  return this;
+};
+
+Graph.prototype.nodeCount = function() {
+  return this._nodeCount;
+};
+
+Graph.prototype.nodes = function() {
+  return _.keys(this._nodes);
+};
+
+Graph.prototype.sources = function() {
+  var self = this;
+  return _.filter(this.nodes(), function(v) {
+    return _.isEmpty(self._in[v]);
+  });
+};
+
+Graph.prototype.sinks = function() {
+  var self = this;
+  return _.filter(this.nodes(), function(v) {
+    return _.isEmpty(self._out[v]);
+  });
+};
+
+Graph.prototype.setNodes = function(vs, value) {
+  var args = arguments;
+  var self = this;
+  _.each(vs, function(v) {
+    if (args.length > 1) {
+      self.setNode(v, value);
+    } else {
+      self.setNode(v);
+    }
+  });
+  return this;
+};
+
+Graph.prototype.setNode = function(v, value) {
+  if (_.has(this._nodes, v)) {
+    if (arguments.length > 1) {
+      this._nodes[v] = value;
+    }
+    return this;
+  }
 
-                var throwImgErr = function throwImgErr() {
-                    throw new Error('A headless instance can not render images');
-                };
+  this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
+  if (this._isCompound) {
+    this._parent[v] = GRAPH_NODE;
+    this._children[v] = {};
+    this._children[GRAPH_NODE][v] = true;
+  }
+  this._in[v] = {};
+  this._preds[v] = {};
+  this._out[v] = {};
+  this._sucs[v] = {};
+  ++this._nodeCount;
+  return this;
+};
+
+Graph.prototype.node = function(v) {
+  return this._nodes[v];
+};
+
+Graph.prototype.hasNode = function(v) {
+  return _.has(this._nodes, v);
+};
+
+Graph.prototype.removeNode =  function(v) {
+  var self = this;
+  if (_.has(this._nodes, v)) {
+    var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
+    delete this._nodes[v];
+    if (this._isCompound) {
+      this._removeFromParentsChildList(v);
+      delete this._parent[v];
+      _.each(this.children(v), function(child) {
+        self.setParent(child);
+      });
+      delete this._children[v];
+    }
+    _.each(_.keys(this._in[v]), removeEdge);
+    delete this._in[v];
+    delete this._preds[v];
+    _.each(_.keys(this._out[v]), removeEdge);
+    delete this._out[v];
+    delete this._sucs[v];
+    --this._nodeCount;
+  }
+  return this;
+};
 
-                NullRenderer.prototype = {
-                    recalculateRenderedStyle: noop$1,
-                    notify: function notify() {
-                        this.notifications++;
-                    },
-                    init: noop$1,
-                    isHeadless: function isHeadless() {
-                        return true;
-                    },
-                    png: throwImgErr,
-                    jpg: throwImgErr
-                };
+Graph.prototype.setParent = function(v, parent) {
+  if (!this._isCompound) {
+    throw new Error("Cannot set parent in a non-compound graph");
+  }
 
-                var BRp = {};
-                BRp.arrowShapeWidth = 0.3;
-
-                BRp.registerArrowShapes = function () {
-                    var arrowShapes = this.arrowShapes = {};
-                    var renderer = this; // Contract for arrow shapes:
-                    // 0, 0 is arrow tip
-                    // (0, 1) is direction towards node
-                    // (1, 0) is right
-                    //
-                    // functional api:
-                    // collide: check x, y in shape
-                    // roughCollide: called before collide, no false negatives
-                    // draw: draw
-                    // spacing: dist(arrowTip, nodeBoundary)
-                    // gap: dist(edgeTip, nodeBoundary), edgeTip may != arrowTip
-
-                    var bbCollide = function bbCollide(x, y, size, angle, translation, edgeWidth, padding) {
-                        var x1 = translation.x - size / 2 - padding;
-                        var x2 = translation.x + size / 2 + padding;
-                        var y1 = translation.y - size / 2 - padding;
-                        var y2 = translation.y + size / 2 + padding;
-                        var inside = x1 <= x && x <= x2 && y1 <= y && y <= y2;
-                        return inside;
-                    };
-
-                    var transform = function transform(x, y, size, angle, translation) {
-                        var xRotated = x * Math.cos(angle) - y * Math.sin(angle);
-                        var yRotated = x * Math.sin(angle) + y * Math.cos(angle);
-                        var xScaled = xRotated * size;
-                        var yScaled = yRotated * size;
-                        var xTranslated = xScaled + translation.x;
-                        var yTranslated = yScaled + translation.y;
-                        return {
-                            x: xTranslated,
-                            y: yTranslated
-                        };
-                    };
-
-                    var transformPoints = function transformPoints(pts, size, angle, translation) {
-                        var retPts = [];
-
-                        for (var i = 0; i < pts.length; i += 2) {
-                            var x = pts[i];
-                            var y = pts[i + 1];
-                            retPts.push(transform(x, y, size, angle, translation));
-                        }
+  if (_.isUndefined(parent)) {
+    parent = GRAPH_NODE;
+  } else {
+    // Coerce parent to string
+    parent += "";
+    for (var ancestor = parent;
+      !_.isUndefined(ancestor);
+      ancestor = this.parent(ancestor)) {
+      if (ancestor === v) {
+        throw new Error("Setting " + parent+ " as parent of " + v +
+                        " would create a cycle");
+      }
+    }
 
-                        return retPts;
-                    };
+    this.setNode(parent);
+  }
 
-                    var pointsToArr = function pointsToArr(pts) {
-                        var ret = [];
+  this.setNode(v);
+  this._removeFromParentsChildList(v);
+  this._parent[v] = parent;
+  this._children[parent][v] = true;
+  return this;
+};
+
+Graph.prototype._removeFromParentsChildList = function(v) {
+  delete this._children[this._parent[v]][v];
+};
+
+Graph.prototype.parent = function(v) {
+  if (this._isCompound) {
+    var parent = this._parent[v];
+    if (parent !== GRAPH_NODE) {
+      return parent;
+    }
+  }
+};
 
-                        for (var i = 0; i < pts.length; i++) {
-                            var p = pts[i];
-                            ret.push(p.x, p.y);
-                        }
+Graph.prototype.children = function(v) {
+  if (_.isUndefined(v)) {
+    v = GRAPH_NODE;
+  }
 
-                        return ret;
-                    };
+  if (this._isCompound) {
+    var children = this._children[v];
+    if (children) {
+      return _.keys(children);
+    }
+  } else if (v === GRAPH_NODE) {
+    return this.nodes();
+  } else if (this.hasNode(v)) {
+    return [];
+  }
+};
 
-                    var standardGap = function standardGap(edge) {
-                        return edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').pfValue * 2;
-                    };
+Graph.prototype.predecessors = function(v) {
+  var predsV = this._preds[v];
+  if (predsV) {
+    return _.keys(predsV);
+  }
+};
 
-                    var defineArrowShape = function defineArrowShape(name, defn) {
-                        if (string(defn)) {
-                            defn = arrowShapes[defn];
-                        }
+Graph.prototype.successors = function(v) {
+  var sucsV = this._sucs[v];
+  if (sucsV) {
+    return _.keys(sucsV);
+  }
+};
 
-                        arrowShapes[name] = extend({
-                            name: name,
-                            points: [-0.15, -0.3, 0.15, -0.3, 0.15, 0.3, -0.15, 0.3],
-                            collide: function collide(x, y, size, angle, translation, padding) {
-                                var points = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
-                                var inside = pointInsidePolygonPoints(x, y, points);
-                                return inside;
-                            },
-                            roughCollide: bbCollide,
-                            draw: function draw(context, size, angle, translation) {
-                                var points = transformPoints(this.points, size, angle, translation);
-                                renderer.arrowShapeImpl('polygon')(context, points);
-                            },
-                            spacing: function spacing(edge) {
-                                return 0;
-                            },
-                            gap: standardGap
-                        }, defn);
-                    };
-
-                    defineArrowShape('none', {
-                        collide: falsify,
-                        roughCollide: falsify,
-                        draw: noop,
-                        spacing: zeroify,
-                        gap: zeroify
-                    });
-                    defineArrowShape('triangle', {
-                        points: [-0.15, -0.3, 0, 0, 0.15, -0.3]
-                    });
-                    defineArrowShape('arrow', 'triangle');
-                    defineArrowShape('triangle-backcurve', {
-                        points: arrowShapes['triangle'].points,
-                        controlPoint: [0, -0.15],
-                        roughCollide: bbCollide,
-                        draw: function draw(context, size, angle, translation, edgeWidth) {
-                            var ptsTrans = transformPoints(this.points, size, angle, translation);
-                            var ctrlPt = this.controlPoint;
-                            var ctrlPtTrans = transform(ctrlPt[0], ctrlPt[1], size, angle, translation);
-                            renderer.arrowShapeImpl(this.name)(context, ptsTrans, ctrlPtTrans);
-                        },
-                        gap: function gap(edge) {
-                            return standardGap(edge) * 0.8;
-                        }
-                    });
-                    defineArrowShape('triangle-tee', {
-                        points: [0, 0, 0.15, -0.3, -0.15, -0.3, 0, 0],
-                        pointsTee: [-0.15, -0.4, -0.15, -0.5, 0.15, -0.5, 0.15, -0.4],
-                        collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
-                            var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
-                            var teePts = pointsToArr(transformPoints(this.pointsTee, size + 2 * padding, angle, translation));
-                            var inside = pointInsidePolygonPoints(x, y, triPts) || pointInsidePolygonPoints(x, y, teePts);
-                            return inside;
-                        },
-                        draw: function draw(context, size, angle, translation, edgeWidth) {
-                            var triPts = transformPoints(this.points, size, angle, translation);
-                            var teePts = transformPoints(this.pointsTee, size, angle, translation);
-                            renderer.arrowShapeImpl(this.name)(context, triPts, teePts);
-                        }
-                    });
-                    defineArrowShape('circle-triangle', {
-                        radius: 0.15,
-                        pointsTr: [0, -0.15, 0.15, -0.45, -0.15, -0.45, 0, -0.15],
-                        collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
-                            var t = translation;
-                            var circleInside = Math.pow(t.x - x, 2) + Math.pow(t.y - y, 2) <= Math.pow((size + 2 * padding) * this.radius, 2);
-                            var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
-                            return pointInsidePolygonPoints(x, y, triPts) || circleInside;
-                        },
-                        draw: function draw(context, size, angle, translation, edgeWidth) {
-                            var triPts = transformPoints(this.pointsTr, size, angle, translation);
-                            renderer.arrowShapeImpl(this.name)(context, triPts, translation.x, translation.y, this.radius * size);
-                        },
-                        spacing: function spacing(edge) {
-                            return renderer.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.radius;
-                        }
-                    });
-                    defineArrowShape('triangle-cross', {
-                        points: [0, 0, 0.15, -0.3, -0.15, -0.3, 0, 0],
-                        baseCrossLinePts: [-0.15, -0.4, // first half of the rectangle
-                            -0.15, -0.4, 0.15, -0.4, // second half of the rectangle
-                            0.15, -0.4],
-                        crossLinePts: function crossLinePts(size, edgeWidth) {
-                            // shift points so that the distance between the cross points matches edge width
-                            var p = this.baseCrossLinePts.slice();
-                            var shiftFactor = edgeWidth / size;
-                            var y0 = 3;
-                            var y1 = 5;
-                            p[y0] = p[y0] - shiftFactor;
-                            p[y1] = p[y1] - shiftFactor;
-                            return p;
-                        },
-                        collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
-                            var triPts = pointsToArr(transformPoints(this.points, size + 2 * padding, angle, translation));
-                            var teePts = pointsToArr(transformPoints(this.crossLinePts(size, edgeWidth), size + 2 * padding, angle, translation));
-                            var inside = pointInsidePolygonPoints(x, y, triPts) || pointInsidePolygonPoints(x, y, teePts);
-                            return inside;
-                        },
-                        draw: function draw(context, size, angle, translation, edgeWidth) {
-                            var triPts = transformPoints(this.points, size, angle, translation);
-                            var crossLinePts = transformPoints(this.crossLinePts(size, edgeWidth), size, angle, translation);
-                            renderer.arrowShapeImpl(this.name)(context, triPts, crossLinePts);
-                        }
-                    });
-                    defineArrowShape('vee', {
-                        points: [-0.15, -0.3, 0, 0, 0.15, -0.3, 0, -0.15],
-                        gap: function gap(edge) {
-                            return standardGap(edge) * 0.525;
-                        }
-                    });
-                    defineArrowShape('circle', {
-                        radius: 0.15,
-                        collide: function collide(x, y, size, angle, translation, edgeWidth, padding) {
-                            var t = translation;
-                            var inside = Math.pow(t.x - x, 2) + Math.pow(t.y - y, 2) <= Math.pow((size + 2 * padding) * this.radius, 2);
-                            return inside;
-                        },
-                        draw: function draw(context, size, angle, translation, edgeWidth) {
-                            renderer.arrowShapeImpl(this.name)(context, translation.x, translation.y, this.radius * size);
-                        },
-                        spacing: function spacing(edge) {
-                            return renderer.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.radius;
-                        }
-                    });
-                    defineArrowShape('tee', {
-                        points: [-0.15, 0, -0.15, -0.1, 0.15, -0.1, 0.15, 0],
-                        spacing: function spacing(edge) {
-                            return 1;
-                        },
-                        gap: function gap(edge) {
-                            return 1;
-                        }
-                    });
-                    defineArrowShape('square', {
-                        points: [-0.15, 0.00, 0.15, 0.00, 0.15, -0.3, -0.15, -0.3]
-                    });
-                    defineArrowShape('diamond', {
-                        points: [-0.15, -0.15, 0, -0.3, 0.15, -0.15, 0, 0],
-                        gap: function gap(edge) {
-                            return edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').value;
-                        }
-                    });
-                    defineArrowShape('chevron', {
-                        points: [0, 0, -0.15, -0.15, -0.1, -0.2, 0, -0.1, 0.1, -0.2, 0.15, -0.15],
-                        gap: function gap(edge) {
-                            return 0.95 * edge.pstyle('width').pfValue * edge.pstyle('arrow-scale').value;
-                        }
-                    });
-                };
+Graph.prototype.neighbors = function(v) {
+  var preds = this.predecessors(v);
+  if (preds) {
+    return _.union(preds, this.successors(v));
+  }
+};
+
+Graph.prototype.isLeaf = function (v) {
+  var neighbors;
+  if (this.isDirected()) {
+    neighbors = this.successors(v);
+  } else {
+    neighbors = this.neighbors(v);
+  }
+  return neighbors.length === 0;
+};
+
+Graph.prototype.filterNodes = function(filter) {
+  var copy = new this.constructor({
+    directed: this._isDirected,
+    multigraph: this._isMultigraph,
+    compound: this._isCompound
+  });
+
+  copy.setGraph(this.graph());
+
+  var self = this;
+  _.each(this._nodes, function(value, v) {
+    if (filter(v)) {
+      copy.setNode(v, value);
+    }
+  });
 
-                var BRp$1 = {}; // Project mouse
-
-                BRp$1.projectIntoViewport = function (clientX, clientY) {
-                    var cy = this.cy;
-                    var offsets = this.findContainerClientCoords();
-                    var offsetLeft = offsets[0];
-                    var offsetTop = offsets[1];
-                    var scale = offsets[4];
-                    var pan = cy.pan();
-                    var zoom = cy.zoom();
-                    var x = ((clientX - offsetLeft) / scale - pan.x) / zoom;
-                    var y = ((clientY - offsetTop) / scale - pan.y) / zoom;
-                    return [x, y];
-                };
+  _.each(this._edgeObjs, function(e) {
+    if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
+      copy.setEdge(e, self.edge(e));
+    }
+  });
+
+  var parents = {};
+  function findParent(v) {
+    var parent = self.parent(v);
+    if (parent === undefined || copy.hasNode(parent)) {
+      parents[v] = parent;
+      return parent;
+    } else if (parent in parents) {
+      return parents[parent];
+    } else {
+      return findParent(parent);
+    }
+  }
 
-                BRp$1.findContainerClientCoords = function () {
-                    if (this.containerBB) {
-                        return this.containerBB;
-                    }
+  if (this._isCompound) {
+    _.each(copy.nodes(), function(v) {
+      copy.setParent(v, findParent(v));
+    });
+  }
 
-                    var container = this.container;
-                    var rect = container.getBoundingClientRect();
-                    var style = window$1.getComputedStyle(container);
-
-                    var styleValue = function styleValue(name) {
-                        return parseFloat(style.getPropertyValue(name));
-                    };
-
-                    var padding = {
-                        left: styleValue('padding-left'),
-                        right: styleValue('padding-right'),
-                        top: styleValue('padding-top'),
-                        bottom: styleValue('padding-bottom')
-                    };
-                    var border = {
-                        left: styleValue('border-left-width'),
-                        right: styleValue('border-right-width'),
-                        top: styleValue('border-top-width'),
-                        bottom: styleValue('border-bottom-width')
-                    };
-                    var clientWidth = container.clientWidth;
-                    var clientHeight = container.clientHeight;
-                    var paddingHor = padding.left + padding.right;
-                    var paddingVer = padding.top + padding.bottom;
-                    var borderHor = border.left + border.right;
-                    var scale = rect.width / (clientWidth + borderHor);
-                    var unscaledW = clientWidth - paddingHor;
-                    var unscaledH = clientHeight - paddingVer;
-                    var left = rect.left + padding.left + border.left;
-                    var top = rect.top + padding.top + border.top;
-                    return this.containerBB = [left, top, unscaledW, unscaledH, scale];
-                };
+  return copy;
+};
 
-                BRp$1.invalidateContainerClientCoordsCache = function () {
-                    this.containerBB = null;
-                };
+/* === Edge functions ========== */
 
-                BRp$1.findNearestElement = function (x, y, interactiveElementsOnly, isTouch) {
-                    return this.findNearestElements(x, y, interactiveElementsOnly, isTouch)[0];
-                };
+Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
+  if (!_.isFunction(newDefault)) {
+    newDefault = _.constant(newDefault);
+  }
+  this._defaultEdgeLabelFn = newDefault;
+  return this;
+};
+
+Graph.prototype.edgeCount = function() {
+  return this._edgeCount;
+};
+
+Graph.prototype.edges = function() {
+  return _.values(this._edgeObjs);
+};
+
+Graph.prototype.setPath = function(vs, value) {
+  var self = this;
+  var args = arguments;
+  _.reduce(vs, function(v, w) {
+    if (args.length > 1) {
+      self.setEdge(v, w, value);
+    } else {
+      self.setEdge(v, w);
+    }
+    return w;
+  });
+  return this;
+};
 
-                BRp$1.findNearestElements = function (x, y, interactiveElementsOnly, isTouch) {
-                    var self = this;
-                    var r = this;
-                    var eles = r.getCachedZSortedEles();
-                    var near = []; // 1 node max, 1 edge max
-
-                    var zoom = r.cy.zoom();
-                    var hasCompounds = r.cy.hasCompoundNodes();
-                    var edgeThreshold = (isTouch ? 24 : 8) / zoom;
-                    var nodeThreshold = (isTouch ? 8 : 2) / zoom;
-                    var labelThreshold = (isTouch ? 8 : 2) / zoom;
-                    var minSqDist = Infinity;
-                    var nearEdge;
-                    var nearNode;
-
-                    if (interactiveElementsOnly) {
-                        eles = eles.interactive;
-                    }
+/*
+ * setEdge(v, w, [value, [name]])
+ * setEdge({ v, w, [name] }, [value])
+ */
+Graph.prototype.setEdge = function() {
+  var v, w, name, value;
+  var valueSpecified = false;
+  var arg0 = arguments[0];
+
+  if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
+    v = arg0.v;
+    w = arg0.w;
+    name = arg0.name;
+    if (arguments.length === 2) {
+      value = arguments[1];
+      valueSpecified = true;
+    }
+  } else {
+    v = arg0;
+    w = arguments[1];
+    name = arguments[3];
+    if (arguments.length > 2) {
+      value = arguments[2];
+      valueSpecified = true;
+    }
+  }
 
-                    function addEle(ele, sqDist) {
-                        if (ele.isNode()) {
-                            if (nearNode) {
-                                return; // can't replace node
-                            } else {
-                                nearNode = ele;
-                                near.push(ele);
-                            }
-                        }
+  v = "" + v;
+  w = "" + w;
+  if (!_.isUndefined(name)) {
+    name = "" + name;
+  }
 
-                        if (ele.isEdge() && (sqDist == null || sqDist < minSqDist)) {
-                            if (nearEdge) {
-                                // then replace existing edge
-                                // can replace only if same z-index
-                                if (nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value && nearEdge.pstyle('z-compound-depth').value === ele.pstyle('z-compound-depth').value) {
-                                    for (var i = 0; i < near.length; i++) {
-                                        if (near[i].isEdge()) {
-                                            near[i] = ele;
-                                            nearEdge = ele;
-                                            minSqDist = sqDist != null ? sqDist : minSqDist;
-                                            break;
-                                        }
-                                    }
-                                }
-                            } else {
-                                near.push(ele);
-                                nearEdge = ele;
-                                minSqDist = sqDist != null ? sqDist : minSqDist;
-                            }
-                        }
-                    }
+  var e = edgeArgsToId(this._isDirected, v, w, name);
+  if (_.has(this._edgeLabels, e)) {
+    if (valueSpecified) {
+      this._edgeLabels[e] = value;
+    }
+    return this;
+  }
 
-                    function checkNode(node) {
-                        var width = node.outerWidth() + 2 * nodeThreshold;
-                        var height = node.outerHeight() + 2 * nodeThreshold;
-                        var hw = width / 2;
-                        var hh = height / 2;
-                        var pos = node.position();
-
-                        if (pos.x - hw <= x && x <= pos.x + hw // bb check x
-                            && pos.y - hh <= y && y <= pos.y + hh // bb check y
-                        ) {
-                            var shape = r.nodeShapes[self.getNodeShape(node)];
-
-                            if (shape.checkPoint(x, y, 0, width, height, pos.x, pos.y)) {
-                                addEle(node, 0);
-                                return true;
-                            }
-                        }
-                    }
+  if (!_.isUndefined(name) && !this._isMultigraph) {
+    throw new Error("Cannot set a named edge when isMultigraph = false");
+  }
 
-                    function checkEdge(edge) {
-                        var _p = edge._private;
-                        var rs = _p.rscratch;
-                        var styleWidth = edge.pstyle('width').pfValue;
-                        var scale = edge.pstyle('arrow-scale').value;
-                        var width = styleWidth / 2 + edgeThreshold; // more like a distance radius from centre
-
-                        var widthSq = width * width;
-                        var width2 = width * 2;
-                        var src = _p.source;
-                        var tgt = _p.target;
-                        var sqDist;
-
-                        if (rs.edgeType === 'segments' || rs.edgeType === 'straight' || rs.edgeType === 'haystack') {
-                            var pts = rs.allpts;
-
-                            for (var i = 0; i + 3 < pts.length; i += 2) {
-                                if (inLineVicinity(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], width2) && widthSq > (sqDist = sqdistToFiniteLine(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3]))) {
-                                    addEle(edge, sqDist);
-                                    return true;
-                                }
-                            }
-                        } else if (rs.edgeType === 'bezier' || rs.edgeType === 'multibezier' || rs.edgeType === 'self' || rs.edgeType === 'compound') {
-                            var pts = rs.allpts;
-
-                            for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
-                                if (inBezierVicinity(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], pts[i + 4], pts[i + 5], width2) && widthSq > (sqDist = sqdistToQuadraticBezier(x, y, pts[i], pts[i + 1], pts[i + 2], pts[i + 3], pts[i + 4], pts[i + 5]))) {
-                                    addEle(edge, sqDist);
-                                    return true;
-                                }
-                            }
-                        } // if we're close to the edge but didn't hit it, maybe we hit its arrows
-
-
-                        var src = src || _p.source;
-                        var tgt = tgt || _p.target;
-                        var arSize = self.getArrowWidth(styleWidth, scale);
-                        var arrows = [{
-                            name: 'source',
-                            x: rs.arrowStartX,
-                            y: rs.arrowStartY,
-                            angle: rs.srcArrowAngle
-                        }, {
-                            name: 'target',
-                            x: rs.arrowEndX,
-                            y: rs.arrowEndY,
-                            angle: rs.tgtArrowAngle
-                        }, {
-                            name: 'mid-source',
-                            x: rs.midX,
-                            y: rs.midY,
-                            angle: rs.midsrcArrowAngle
-                        }, {
-                            name: 'mid-target',
-                            x: rs.midX,
-                            y: rs.midY,
-                            angle: rs.midtgtArrowAngle
-                        }];
-
-                        for (var i = 0; i < arrows.length; i++) {
-                            var ar = arrows[i];
-                            var shape = r.arrowShapes[edge.pstyle(ar.name + '-arrow-shape').value];
-                            var edgeWidth = edge.pstyle('width').pfValue;
-
-                            if (shape.roughCollide(x, y, arSize, ar.angle, {
-                                x: ar.x,
-                                y: ar.y
-                            }, edgeWidth, edgeThreshold) && shape.collide(x, y, arSize, ar.angle, {
-                                x: ar.x,
-                                y: ar.y
-                            }, edgeWidth, edgeThreshold)) {
-                                addEle(edge);
-                                return true;
-                            }
-                        } // for compound graphs, hitting edge may actually want a connected node instead (b/c edge may have greater z-index precedence)
+  // It didn't exist, so we need to create it.
+  // First ensure the nodes exist.
+  this.setNode(v);
+  this.setNode(w);
+
+  this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
+
+  var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
+  // Ensure we add undirected edges in a consistent way.
+  v = edgeObj.v;
+  w = edgeObj.w;
+
+  Object.freeze(edgeObj);
+  this._edgeObjs[e] = edgeObj;
+  incrementOrInitEntry(this._preds[w], v);
+  incrementOrInitEntry(this._sucs[v], w);
+  this._in[w][e] = edgeObj;
+  this._out[v][e] = edgeObj;
+  this._edgeCount++;
+  return this;
+};
+
+Graph.prototype.edge = function(v, w, name) {
+  var e = (arguments.length === 1
+    ? edgeObjToId(this._isDirected, arguments[0])
+    : edgeArgsToId(this._isDirected, v, w, name));
+  return this._edgeLabels[e];
+};
+
+Graph.prototype.hasEdge = function(v, w, name) {
+  var e = (arguments.length === 1
+    ? edgeObjToId(this._isDirected, arguments[0])
+    : edgeArgsToId(this._isDirected, v, w, name));
+  return _.has(this._edgeLabels, e);
+};
+
+Graph.prototype.removeEdge = function(v, w, name) {
+  var e = (arguments.length === 1
+    ? edgeObjToId(this._isDirected, arguments[0])
+    : edgeArgsToId(this._isDirected, v, w, name));
+  var edge = this._edgeObjs[e];
+  if (edge) {
+    v = edge.v;
+    w = edge.w;
+    delete this._edgeLabels[e];
+    delete this._edgeObjs[e];
+    decrementOrRemoveEntry(this._preds[w], v);
+    decrementOrRemoveEntry(this._sucs[v], w);
+    delete this._in[w][e];
+    delete this._out[v][e];
+    this._edgeCount--;
+  }
+  return this;
+};
+
+Graph.prototype.inEdges = function(v, u) {
+  var inV = this._in[v];
+  if (inV) {
+    var edges = _.values(inV);
+    if (!u) {
+      return edges;
+    }
+    return _.filter(edges, function(edge) { return edge.v === u; });
+  }
+};
+
+Graph.prototype.outEdges = function(v, w) {
+  var outV = this._out[v];
+  if (outV) {
+    var edges = _.values(outV);
+    if (!w) {
+      return edges;
+    }
+    return _.filter(edges, function(edge) { return edge.w === w; });
+  }
+};
 
+Graph.prototype.nodeEdges = function(v, w) {
+  var inEdges = this.inEdges(v, w);
+  if (inEdges) {
+    return inEdges.concat(this.outEdges(v, w));
+  }
+};
 
-                        if (hasCompounds && near.length > 0) {
-                            checkNode(src);
-                            checkNode(tgt);
-                        }
-                    }
+function incrementOrInitEntry(map, k) {
+  if (map[k]) {
+    map[k]++;
+  } else {
+    map[k] = 1;
+  }
+}
+
+function decrementOrRemoveEntry(map, k) {
+  if (!--map[k]) { delete map[k]; }
+}
+
+function edgeArgsToId(isDirected, v_, w_, name) {
+  var v = "" + v_;
+  var w = "" + w_;
+  if (!isDirected && v > w) {
+    var tmp = v;
+    v = w;
+    w = tmp;
+  }
+  return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
+             (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
+}
+
+function edgeArgsToObj(isDirected, v_, w_, name) {
+  var v = "" + v_;
+  var w = "" + w_;
+  if (!isDirected && v > w) {
+    var tmp = v;
+    v = w;
+    w = tmp;
+  }
+  var edgeObj =  { v: v, w: w };
+  if (name) {
+    edgeObj.name = name;
+  }
+  return edgeObj;
+}
 
-                    function preprop(obj, name, pre) {
-                        return getPrefixedProperty(obj, name, pre);
-                    }
+function edgeObjToId(isDirected, edgeObj) {
+  return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
+}
 
-                    function checkLabel(ele, prefix) {
-                        var _p = ele._private;
-                        var th = labelThreshold;
-                        var prefixDash;
 
-                        if (prefix) {
-                            prefixDash = prefix + '-';
-                        } else {
-                            prefixDash = '';
-                        }
+/***/ }),
 
-                        ele.boundingBox();
-                        var bb = _p.labelBounds[prefix || 'main'];
-                        var text = ele.pstyle(prefixDash + 'label').value;
-                        var eventsEnabled = ele.pstyle('text-events').strValue === 'yes';
+/***/ "./node_modules/graphlib/lib/index.js":
+/*!********************************************!*\
+  !*** ./node_modules/graphlib/lib/index.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (!eventsEnabled || !text) {
-                            return;
-                        }
+// Includes only the "core" of graphlib
+module.exports = {
+  Graph: __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js"),
+  version: __webpack_require__(/*! ./version */ "./node_modules/graphlib/lib/version.js")
+};
 
-                        var rstyle = _p.rstyle;
-                        var lx = preprop(rstyle, 'labelX', prefix);
-                        var ly = preprop(rstyle, 'labelY', prefix);
-                        var theta = preprop(_p.rscratch, 'labelAngle', prefix);
-                        var lx1 = bb.x1 - th;
-                        var lx2 = bb.x2 + th;
-                        var ly1 = bb.y1 - th;
-                        var ly2 = bb.y2 + th;
-
-                        if (theta) {
-                            var cos = Math.cos(theta);
-                            var sin = Math.sin(theta);
-
-                            var rotate = function rotate(x, y) {
-                                x = x - lx;
-                                y = y - ly;
-                                return {
-                                    x: x * cos - y * sin + lx,
-                                    y: x * sin + y * cos + ly
-                                };
-                            };
-
-                            var px1y1 = rotate(lx1, ly1);
-                            var px1y2 = rotate(lx1, ly2);
-                            var px2y1 = rotate(lx2, ly1);
-                            var px2y2 = rotate(lx2, ly2);
-                            var points = [px1y1.x, px1y1.y, px2y1.x, px2y1.y, px2y2.x, px2y2.y, px1y2.x, px1y2.y];
-
-                            if (pointInsidePolygonPoints(x, y, points)) {
-                                addEle(ele);
-                                return true;
-                            }
-                        } else {
-                            // do a cheaper bb check
-                            if (inBoundingBox(bb, x, y)) {
-                                addEle(ele);
-                                return true;
-                            }
-                        }
-                    }
 
-                    for (var i = eles.length - 1; i >= 0; i--) {
-                        // reverse order for precedence
-                        var ele = eles[i];
+/***/ }),
 
-                        if (ele.isNode()) {
-                            checkNode(ele) || checkLabel(ele);
-                        } else {
-                            // then edge
-                            checkEdge(ele) || checkLabel(ele) || checkLabel(ele, 'source') || checkLabel(ele, 'target');
-                        }
-                    }
+/***/ "./node_modules/graphlib/lib/json.js":
+/*!*******************************************!*\
+  !*** ./node_modules/graphlib/lib/json.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
+var Graph = __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js");
+
+module.exports = {
+  write: write,
+  read: read
+};
+
+function write(g) {
+  var json = {
+    options: {
+      directed: g.isDirected(),
+      multigraph: g.isMultigraph(),
+      compound: g.isCompound()
+    },
+    nodes: writeNodes(g),
+    edges: writeEdges(g)
+  };
+  if (!_.isUndefined(g.graph())) {
+    json.value = _.clone(g.graph());
+  }
+  return json;
+}
+
+function writeNodes(g) {
+  return _.map(g.nodes(), function(v) {
+    var nodeValue = g.node(v);
+    var parent = g.parent(v);
+    var node = { v: v };
+    if (!_.isUndefined(nodeValue)) {
+      node.value = nodeValue;
+    }
+    if (!_.isUndefined(parent)) {
+      node.parent = parent;
+    }
+    return node;
+  });
+}
+
+function writeEdges(g) {
+  return _.map(g.edges(), function(e) {
+    var edgeValue = g.edge(e);
+    var edge = { v: e.v, w: e.w };
+    if (!_.isUndefined(e.name)) {
+      edge.name = e.name;
+    }
+    if (!_.isUndefined(edgeValue)) {
+      edge.value = edgeValue;
+    }
+    return edge;
+  });
+}
+
+function read(json) {
+  var g = new Graph(json.options).setGraph(json.value);
+  _.each(json.nodes, function(entry) {
+    g.setNode(entry.v, entry.value);
+    if (entry.parent) {
+      g.setParent(entry.v, entry.parent);
+    }
+  });
+  _.each(json.edges, function(entry) {
+    g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
+  });
+  return g;
+}
 
-                    return near;
-                }; // 'Give me everything from this box'
-
-
-                BRp$1.getAllInBox = function (x1, y1, x2, y2) {
-                    var eles = this.getCachedZSortedEles().interactive;
-                    var box = [];
-                    var x1c = Math.min(x1, x2);
-                    var x2c = Math.max(x1, x2);
-                    var y1c = Math.min(y1, y2);
-                    var y2c = Math.max(y1, y2);
-                    x1 = x1c;
-                    x2 = x2c;
-                    y1 = y1c;
-                    y2 = y2c;
-                    var boxBb = makeBoundingBox({
-                        x1: x1,
-                        y1: y1,
-                        x2: x2,
-                        y2: y2
-                    });
-
-                    for (var e = 0; e < eles.length; e++) {
-                        var ele = eles[e];
-
-                        if (ele.isNode()) {
-                            var node = ele;
-                            var nodeBb = node.boundingBox({
-                                includeNodes: true,
-                                includeEdges: false,
-                                includeLabels: false
-                            });
-
-                            if (boundingBoxesIntersect(boxBb, nodeBb) && !boundingBoxInBoundingBox(nodeBb, boxBb)) {
-                                box.push(node);
-                            }
-                        } else {
-                            var edge = ele;
-                            var _p = edge._private;
-                            var rs = _p.rscratch;
 
-                            if (rs.startX != null && rs.startY != null && !inBoundingBox(boxBb, rs.startX, rs.startY)) {
-                                continue;
-                            }
+/***/ }),
 
-                            if (rs.endX != null && rs.endY != null && !inBoundingBox(boxBb, rs.endX, rs.endY)) {
-                                continue;
-                            }
+/***/ "./node_modules/graphlib/lib/lodash.js":
+/*!*********************************************!*\
+  !*** ./node_modules/graphlib/lib/lodash.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* global window */
+
+var lodash;
+
+if (true) {
+  try {
+    lodash = {
+      clone: __webpack_require__(/*! lodash/clone */ "./node_modules/lodash/clone.js"),
+      constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
+      each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
+      filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
+      has:  __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
+      isArray: __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js"),
+      isEmpty: __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js"),
+      isFunction: __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"),
+      isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
+      keys: __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js"),
+      map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
+      reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
+      size: __webpack_require__(/*! lodash/size */ "./node_modules/lodash/size.js"),
+      transform: __webpack_require__(/*! lodash/transform */ "./node_modules/lodash/transform.js"),
+      union: __webpack_require__(/*! lodash/union */ "./node_modules/lodash/union.js"),
+      values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js")
+    };
+  } catch (e) {
+    // continue regardless of error
+  }
+}
 
-                            if (rs.edgeType === 'bezier' || rs.edgeType === 'multibezier' || rs.edgeType === 'self' || rs.edgeType === 'compound' || rs.edgeType === 'segments' || rs.edgeType === 'haystack') {
-                                var pts = _p.rstyle.bezierPts || _p.rstyle.linePts || _p.rstyle.haystackPts;
-                                var allInside = true;
-
-                                for (var i = 0; i < pts.length; i++) {
-                                    if (!pointInBoundingBox(boxBb, pts[i])) {
-                                        allInside = false;
-                                        break;
-                                    }
-                                }
-
-                                if (allInside) {
-                                    box.push(edge);
-                                }
-                            } else if (rs.edgeType === 'haystack' || rs.edgeType === 'straight') {
-                                box.push(edge);
-                            }
-                        }
-                    }
+if (!lodash) {
+  lodash = window._;
+}
 
-                    return box;
-                };
+module.exports = lodash;
 
-                var BRp$2 = {};
-
-                BRp$2.calculateArrowAngles = function (edge) {
-                    var rs = edge._private.rscratch;
-                    var isHaystack = rs.edgeType === 'haystack';
-                    var isBezier = rs.edgeType === 'bezier';
-                    var isMultibezier = rs.edgeType === 'multibezier';
-                    var isSegments = rs.edgeType === 'segments';
-                    var isCompound = rs.edgeType === 'compound';
-                    var isSelf = rs.edgeType === 'self'; // Displacement gives direction for arrowhead orientation
-
-                    var dispX, dispY;
-                    var startX, startY, endX, endY, midX, midY;
-
-                    if (isHaystack) {
-                        startX = rs.haystackPts[0];
-                        startY = rs.haystackPts[1];
-                        endX = rs.haystackPts[2];
-                        endY = rs.haystackPts[3];
-                    } else {
-                        startX = rs.arrowStartX;
-                        startY = rs.arrowStartY;
-                        endX = rs.arrowEndX;
-                        endY = rs.arrowEndY;
-                    }
 
-                    midX = rs.midX;
-                    midY = rs.midY; // source
-                    //
-
-                    if (isSegments) {
-                        dispX = startX - rs.segpts[0];
-                        dispY = startY - rs.segpts[1];
-                    } else if (isMultibezier || isCompound || isSelf || isBezier) {
-                        var pts = rs.allpts;
-                        var bX = qbezierAt(pts[0], pts[2], pts[4], 0.1);
-                        var bY = qbezierAt(pts[1], pts[3], pts[5], 0.1);
-                        dispX = startX - bX;
-                        dispY = startY - bY;
-                    } else {
-                        dispX = startX - midX;
-                        dispY = startY - midY;
-                    }
+/***/ }),
 
-                    rs.srcArrowAngle = getAngleFromDisp(dispX, dispY); // mid target
-                    //
+/***/ "./node_modules/graphlib/lib/version.js":
+/*!**********************************************!*\
+  !*** ./node_modules/graphlib/lib/version.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var midX = rs.midX;
-                    var midY = rs.midY;
+module.exports = '2.1.8';
 
-                    if (isHaystack) {
-                        midX = (startX + endX) / 2;
-                        midY = (startY + endY) / 2;
-                    }
 
-                    dispX = endX - startX;
-                    dispY = endY - startY;
-
-                    if (isSegments) {
-                        var pts = rs.allpts;
-
-                        if (pts.length / 2 % 2 === 0) {
-                            var i2 = pts.length / 2;
-                            var i1 = i2 - 2;
-                            dispX = pts[i2] - pts[i1];
-                            dispY = pts[i2 + 1] - pts[i1 + 1];
-                        } else {
-                            var i2 = pts.length / 2 - 1;
-                            var i1 = i2 - 2;
-                            var i3 = i2 + 2;
-                            dispX = pts[i2] - pts[i1];
-                            dispY = pts[i2 + 1] - pts[i1 + 1];
-                        }
-                    } else if (isMultibezier || isCompound || isSelf) {
-                        var pts = rs.allpts;
-                        var cpts = rs.ctrlpts;
-                        var bp0x, bp0y;
-                        var bp1x, bp1y;
-
-                        if (cpts.length / 2 % 2 === 0) {
-                            var p0 = pts.length / 2 - 1; // startpt
-
-                            var ic = p0 + 2;
-                            var p1 = ic + 2;
-                            bp0x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.0);
-                            bp0y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.0);
-                            bp1x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.0001);
-                            bp1y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.0001);
-                        } else {
-                            var ic = pts.length / 2 - 1; // ctrpt
-
-                            var p0 = ic - 2; // startpt
-
-                            var p1 = ic + 2; // endpt
-
-                            bp0x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.4999);
-                            bp0y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.4999);
-                            bp1x = qbezierAt(pts[p0], pts[ic], pts[p1], 0.5);
-                            bp1y = qbezierAt(pts[p0 + 1], pts[ic + 1], pts[p1 + 1], 0.5);
-                        }
+/***/ }),
 
-                        dispX = bp1x - bp0x;
-                        dispY = bp1y - bp0y;
-                    }
+/***/ "./node_modules/heap/index.js":
+/*!************************************!*\
+  !*** ./node_modules/heap/index.js ***!
+  \************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    rs.midtgtArrowAngle = getAngleFromDisp(dispX, dispY);
-                    rs.midDispX = dispX;
-                    rs.midDispY = dispY; // mid source
-                    //
+module.exports = __webpack_require__(/*! ./lib/heap */ "./node_modules/heap/lib/heap.js");
 
-                    dispX *= -1;
-                    dispY *= -1;
 
-                    if (isSegments) {
-                        var pts = rs.allpts;
+/***/ }),
 
-                        if (pts.length / 2 % 2 === 0) ; else {
-                            var i2 = pts.length / 2 - 1;
-                            var i3 = i2 + 2;
-                            dispX = -(pts[i3] - pts[i2]);
-                            dispY = -(pts[i3 + 1] - pts[i2 + 1]);
-                        }
-                    }
+/***/ "./node_modules/heap/lib/heap.js":
+/*!***************************************!*\
+  !*** ./node_modules/heap/lib/heap.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    rs.midsrcArrowAngle = getAngleFromDisp(dispX, dispY); // target
-                    //
-
-                    if (isSegments) {
-                        dispX = endX - rs.segpts[rs.segpts.length - 2];
-                        dispY = endY - rs.segpts[rs.segpts.length - 1];
-                    } else if (isMultibezier || isCompound || isSelf || isBezier) {
-                        var pts = rs.allpts;
-                        var l = pts.length;
-                        var bX = qbezierAt(pts[l - 6], pts[l - 4], pts[l - 2], 0.9);
-                        var bY = qbezierAt(pts[l - 5], pts[l - 3], pts[l - 1], 0.9);
-                        dispX = endX - bX;
-                        dispY = endY - bY;
-                    } else {
-                        dispX = endX - midX;
-                        dispY = endY - midY;
-                    }
+var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Generated by CoffeeScript 1.8.0
+(function() {
+  var Heap, defaultCmp, floor, heapify, heappop, heappush, heappushpop, heapreplace, insort, min, nlargest, nsmallest, updateItem, _siftdown, _siftup;
 
-                    rs.tgtArrowAngle = getAngleFromDisp(dispX, dispY);
-                };
+  floor = Math.floor, min = Math.min;
 
-                BRp$2.getArrowWidth = BRp$2.getArrowHeight = function (edgeWidth, scale) {
-                    var cache = this.arrowWidthCache = this.arrowWidthCache || {};
-                    var cachedVal = cache[edgeWidth + ', ' + scale];
 
-                    if (cachedVal) {
-                        return cachedVal;
-                    }
+  /*
+  Default comparison function to be used
+   */
 
-                    cachedVal = Math.max(Math.pow(edgeWidth * 13.37, 0.9), 29) * scale;
-                    cache[edgeWidth + ', ' + scale] = cachedVal;
-                    return cachedVal;
-                };
+  defaultCmp = function(x, y) {
+    if (x < y) {
+      return -1;
+    }
+    if (x > y) {
+      return 1;
+    }
+    return 0;
+  };
 
-                var BRp$3 = {};
-
-                BRp$3.findHaystackPoints = function (edges) {
-                    for (var i = 0; i < edges.length; i++) {
-                        var edge = edges[i];
-                        var _p = edge._private;
-                        var rs = _p.rscratch;
-
-                        if (!rs.haystack) {
-                            var angle = Math.random() * 2 * Math.PI;
-                            rs.source = {
-                                x: Math.cos(angle),
-                                y: Math.sin(angle)
-                            };
-                            angle = Math.random() * 2 * Math.PI;
-                            rs.target = {
-                                x: Math.cos(angle),
-                                y: Math.sin(angle)
-                            };
-                        }
 
-                        var src = _p.source;
-                        var tgt = _p.target;
-                        var srcPos = src.position();
-                        var tgtPos = tgt.position();
-                        var srcW = src.width();
-                        var tgtW = tgt.width();
-                        var srcH = src.height();
-                        var tgtH = tgt.height();
-                        var radius = edge.pstyle('haystack-radius').value;
-                        var halfRadius = radius / 2; // b/c have to half width/height
-
-                        rs.haystackPts = rs.allpts = [rs.source.x * srcW * halfRadius + srcPos.x, rs.source.y * srcH * halfRadius + srcPos.y, rs.target.x * tgtW * halfRadius + tgtPos.x, rs.target.y * tgtH * halfRadius + tgtPos.y];
-                        rs.midX = (rs.allpts[0] + rs.allpts[2]) / 2;
-                        rs.midY = (rs.allpts[1] + rs.allpts[3]) / 2; // always override as haystack in case set to different type previously
-
-                        rs.edgeType = 'haystack';
-                        rs.haystack = true;
-                        this.storeEdgeProjections(edge);
-                        this.calculateArrowAngles(edge);
-                        this.recalculateEdgeLabelProjections(edge);
-                        this.calculateLabelAngles(edge);
-                    }
-                };
+  /*
+  Insert item x in list a, and keep it sorted assuming a is sorted.
+  
+  If x is already in a, insert it to the right of the rightmost x.
+  
+  Optional args lo (default 0) and hi (default a.length) bound the slice
+  of a to be searched.
+   */
 
-                BRp$3.findSegmentsPoints = function (edge, pairInfo) {
-                    // Segments (multiple straight lines)
-                    var rs = edge._private.rscratch;
-                    var posPts = pairInfo.posPts,
-                        intersectionPts = pairInfo.intersectionPts,
-                        vectorNormInverse = pairInfo.vectorNormInverse;
-                    var edgeDistances = edge.pstyle('edge-distances').value;
-                    var segmentWs = edge.pstyle('segment-weights');
-                    var segmentDs = edge.pstyle('segment-distances');
-                    var segmentsN = Math.min(segmentWs.pfValue.length, segmentDs.pfValue.length);
-                    rs.edgeType = 'segments';
-                    rs.segpts = [];
-
-                    for (var s = 0; s < segmentsN; s++) {
-                        var w = segmentWs.pfValue[s];
-                        var d = segmentDs.pfValue[s];
-                        var w1 = 1 - w;
-                        var w2 = w;
-                        var midptPts = edgeDistances === 'node-position' ? posPts : intersectionPts;
-                        var adjustedMidpt = {
-                            x: midptPts.x1 * w1 + midptPts.x2 * w2,
-                            y: midptPts.y1 * w1 + midptPts.y2 * w2
-                        };
-                        rs.segpts.push(adjustedMidpt.x + vectorNormInverse.x * d, adjustedMidpt.y + vectorNormInverse.y * d);
-                    }
-                };
+  insort = function(a, x, lo, hi, cmp) {
+    var mid;
+    if (lo == null) {
+      lo = 0;
+    }
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    if (lo < 0) {
+      throw new Error('lo must be non-negative');
+    }
+    if (hi == null) {
+      hi = a.length;
+    }
+    while (lo < hi) {
+      mid = floor((lo + hi) / 2);
+      if (cmp(x, a[mid]) < 0) {
+        hi = mid;
+      } else {
+        lo = mid + 1;
+      }
+    }
+    return ([].splice.apply(a, [lo, lo - lo].concat(x)), x);
+  };
 
-                BRp$3.findLoopPoints = function (edge, pairInfo, i, edgeIsUnbundled) {
-                    // Self-edge
-                    var rs = edge._private.rscratch;
-                    var dirCounts = pairInfo.dirCounts,
-                        srcPos = pairInfo.srcPos;
-                    var ctrlptDists = edge.pstyle('control-point-distances');
-                    var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
-                    var loopDir = edge.pstyle('loop-direction').pfValue;
-                    var loopSwp = edge.pstyle('loop-sweep').pfValue;
-                    var stepSize = edge.pstyle('control-point-step-size').pfValue;
-                    rs.edgeType = 'self';
-                    var j = i;
-                    var loopDist = stepSize;
-
-                    if (edgeIsUnbundled) {
-                        j = 0;
-                        loopDist = ctrlptDist;
-                    }
 
-                    var loopAngle = loopDir - Math.PI / 2;
-                    var outAngle = loopAngle - loopSwp / 2;
-                    var inAngle = loopAngle + loopSwp / 2; // increase by step size for overlapping loops, keyed on direction and sweep values
+  /*
+  Push item onto heap, maintaining the heap invariant.
+   */
 
-                    var dc = String(loopDir + '_' + loopSwp);
-                    j = dirCounts[dc] === undefined ? dirCounts[dc] = 0 : ++dirCounts[dc];
-                    rs.ctrlpts = [srcPos.x + Math.cos(outAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.y + Math.sin(outAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.x + Math.cos(inAngle) * 1.4 * loopDist * (j / 3 + 1), srcPos.y + Math.sin(inAngle) * 1.4 * loopDist * (j / 3 + 1)];
-                };
+  heappush = function(array, item, cmp) {
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    array.push(item);
+    return _siftdown(array, 0, array.length - 1, cmp);
+  };
 
-                BRp$3.findCompoundLoopPoints = function (edge, pairInfo, i, edgeIsUnbundled) {
-                    // Compound edge
-                    var rs = edge._private.rscratch;
-                    rs.edgeType = 'compound';
-                    var srcPos = pairInfo.srcPos,
-                        tgtPos = pairInfo.tgtPos,
-                        srcW = pairInfo.srcW,
-                        srcH = pairInfo.srcH,
-                        tgtW = pairInfo.tgtW,
-                        tgtH = pairInfo.tgtH;
-                    var stepSize = edge.pstyle('control-point-step-size').pfValue;
-                    var ctrlptDists = edge.pstyle('control-point-distances');
-                    var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
-                    var j = i;
-                    var loopDist = stepSize;
-
-                    if (edgeIsUnbundled) {
-                        j = 0;
-                        loopDist = ctrlptDist;
-                    }
 
-                    var loopW = 50;
-                    var loopaPos = {
-                        x: srcPos.x - srcW / 2,
-                        y: srcPos.y - srcH / 2
-                    };
-                    var loopbPos = {
-                        x: tgtPos.x - tgtW / 2,
-                        y: tgtPos.y - tgtH / 2
-                    };
-                    var loopPos = {
-                        x: Math.min(loopaPos.x, loopbPos.x),
-                        y: Math.min(loopaPos.y, loopbPos.y)
-                    }; // avoids cases with impossible beziers
-
-                    var minCompoundStretch = 0.5;
-                    var compoundStretchA = Math.max(minCompoundStretch, Math.log(srcW * 0.01));
-                    var compoundStretchB = Math.max(minCompoundStretch, Math.log(tgtW * 0.01));
-                    rs.ctrlpts = [loopPos.x, loopPos.y - (1 + Math.pow(loopW, 1.12) / 100) * loopDist * (j / 3 + 1) * compoundStretchA, loopPos.x - (1 + Math.pow(loopW, 1.12) / 100) * loopDist * (j / 3 + 1) * compoundStretchB, loopPos.y];
-                };
+  /*
+  Pop the smallest item off the heap, maintaining the heap invariant.
+   */
 
-                BRp$3.findStraightEdgePoints = function (edge) {
-                    // Straight edge within bundle
-                    edge._private.rscratch.edgeType = 'straight';
-                };
+  heappop = function(array, cmp) {
+    var lastelt, returnitem;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    lastelt = array.pop();
+    if (array.length) {
+      returnitem = array[0];
+      array[0] = lastelt;
+      _siftup(array, 0, cmp);
+    } else {
+      returnitem = lastelt;
+    }
+    return returnitem;
+  };
 
-                BRp$3.findBezierPoints = function (edge, pairInfo, i, edgeIsUnbundled, edgeIsSwapped) {
-                    var rs = edge._private.rscratch;
-                    var vectorNormInverse = pairInfo.vectorNormInverse,
-                        posPts = pairInfo.posPts,
-                        intersectionPts = pairInfo.intersectionPts;
-                    var edgeDistances = edge.pstyle('edge-distances').value;
-                    var stepSize = edge.pstyle('control-point-step-size').pfValue;
-                    var ctrlptDists = edge.pstyle('control-point-distances');
-                    var ctrlptWs = edge.pstyle('control-point-weights');
-                    var bezierN = ctrlptDists && ctrlptWs ? Math.min(ctrlptDists.value.length, ctrlptWs.value.length) : 1;
-                    var ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[0] : undefined;
-                    var ctrlptWeight = ctrlptWs.value[0]; // (Multi)bezier
-
-                    var multi = edgeIsUnbundled;
-                    rs.edgeType = multi ? 'multibezier' : 'bezier';
-                    rs.ctrlpts = [];
-
-                    for (var b = 0; b < bezierN; b++) {
-                        var normctrlptDist = (0.5 - pairInfo.eles.length / 2 + i) * stepSize * (edgeIsSwapped ? -1 : 1);
-                        var manctrlptDist = void 0;
-                        var sign = signum(normctrlptDist);
-
-                        if (multi) {
-                            ctrlptDist = ctrlptDists ? ctrlptDists.pfValue[b] : stepSize; // fall back on step size
-
-                            ctrlptWeight = ctrlptWs.value[b];
-                        }
 
-                        if (edgeIsUnbundled) {
-                            // multi or single unbundled
-                            manctrlptDist = ctrlptDist;
-                        } else {
-                            manctrlptDist = ctrlptDist !== undefined ? sign * ctrlptDist : undefined;
-                        }
+  /*
+  Pop and return the current smallest value, and add the new item.
+  
+  This is more efficient than heappop() followed by heappush(), and can be
+  more appropriate when using a fixed size heap. Note that the value
+  returned may be larger than item! That constrains reasonable use of
+  this routine unless written as part of a conditional replacement:
+      if item > array[0]
+        item = heapreplace(array, item)
+   */
 
-                        var distanceFromMidpoint = manctrlptDist !== undefined ? manctrlptDist : normctrlptDist;
-                        var w1 = 1 - ctrlptWeight;
-                        var w2 = ctrlptWeight;
-                        var midptPts = edgeDistances === 'node-position' ? posPts : intersectionPts;
-                        var adjustedMidpt = {
-                            x: midptPts.x1 * w1 + midptPts.x2 * w2,
-                            y: midptPts.y1 * w1 + midptPts.y2 * w2
-                        };
-                        rs.ctrlpts.push(adjustedMidpt.x + vectorNormInverse.x * distanceFromMidpoint, adjustedMidpt.y + vectorNormInverse.y * distanceFromMidpoint);
-                    }
-                };
+  heapreplace = function(array, item, cmp) {
+    var returnitem;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    returnitem = array[0];
+    array[0] = item;
+    _siftup(array, 0, cmp);
+    return returnitem;
+  };
 
-                BRp$3.findTaxiPoints = function (edge, pairInfo) {
-                    // Taxicab geometry with two turns maximum
-                    var rs = edge._private.rscratch;
-                    rs.edgeType = 'segments';
-                    var VERTICAL = 'vertical';
-                    var HORIZONTAL = 'horizontal';
-                    var LEFTWARD = 'leftward';
-                    var RIGHTWARD = 'rightward';
-                    var DOWNWARD = 'downward';
-                    var UPWARD = 'upward';
-                    var AUTO = 'auto';
-                    var posPts = pairInfo.posPts,
-                        srcW = pairInfo.srcW,
-                        srcH = pairInfo.srcH,
-                        tgtW = pairInfo.tgtW,
-                        tgtH = pairInfo.tgtH;
-                    var edgeDistances = edge.pstyle('edge-distances').value;
-                    var dIncludesNodeBody = edgeDistances !== 'node-position';
-                    var taxiDir = edge.pstyle('taxi-direction').value;
-                    var rawTaxiDir = taxiDir; // unprocessed value
-
-                    var taxiTurn = edge.pstyle('taxi-turn');
-                    var turnIsPercent = taxiTurn.units === '%';
-                    var taxiTurnPfVal = taxiTurn.pfValue;
-                    var turnIsNegative = taxiTurnPfVal < 0; // i.e. from target side
-
-                    var minD = edge.pstyle('taxi-turn-min-distance').pfValue;
-                    var dw = dIncludesNodeBody ? (srcW + tgtW) / 2 : 0;
-                    var dh = dIncludesNodeBody ? (srcH + tgtH) / 2 : 0;
-                    var pdx = posPts.x2 - posPts.x1;
-                    var pdy = posPts.y2 - posPts.y1; // take away the effective w/h from the magnitude of the delta value
-
-                    var subDWH = function subDWH(dxy, dwh) {
-                        if (dxy > 0) {
-                            return Math.max(dxy - dwh, 0);
-                        } else {
-                            return Math.min(dxy + dwh, 0);
-                        }
-                    };
-
-                    var dx = subDWH(pdx, dw);
-                    var dy = subDWH(pdy, dh);
-                    var isExplicitDir = false;
-
-                    if (rawTaxiDir === AUTO) {
-                        taxiDir = Math.abs(dx) > Math.abs(dy) ? HORIZONTAL : VERTICAL;
-                    } else if (rawTaxiDir === UPWARD || rawTaxiDir === DOWNWARD) {
-                        taxiDir = VERTICAL;
-                        isExplicitDir = true;
-                    } else if (rawTaxiDir === LEFTWARD || rawTaxiDir === RIGHTWARD) {
-                        taxiDir = HORIZONTAL;
-                        isExplicitDir = true;
-                    }
 
-                    var isVert = taxiDir === VERTICAL;
-                    var l = isVert ? dy : dx;
-                    var pl = isVert ? pdy : pdx;
-                    var sgnL = signum(pl);
-                    var forcedDir = false;
-
-                    if (!(isExplicitDir && (turnIsPercent || turnIsNegative)) // forcing in this case would cause weird growing in the opposite direction
-                        && (rawTaxiDir === DOWNWARD && pl < 0 || rawTaxiDir === UPWARD && pl > 0 || rawTaxiDir === LEFTWARD && pl > 0 || rawTaxiDir === RIGHTWARD && pl < 0)) {
-                        sgnL *= -1;
-                        l = sgnL * Math.abs(l);
-                        forcedDir = true;
-                    }
+  /*
+  Fast version of a heappush followed by a heappop.
+   */
 
-                    var d;
+  heappushpop = function(array, item, cmp) {
+    var _ref;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    if (array.length && cmp(array[0], item) < 0) {
+      _ref = [array[0], item], item = _ref[0], array[0] = _ref[1];
+      _siftup(array, 0, cmp);
+    }
+    return item;
+  };
 
-                    if (turnIsPercent) {
-                        var p = taxiTurnPfVal < 0 ? 1 + taxiTurnPfVal : taxiTurnPfVal;
-                        d = p * l;
-                    } else {
-                        var k = taxiTurnPfVal < 0 ? l : 0;
-                        d = k + taxiTurnPfVal * sgnL;
-                    }
 
-                    var getIsTooClose = function getIsTooClose(d) {
-                        return Math.abs(d) < minD || Math.abs(d) >= Math.abs(l);
-                    };
-
-                    var isTooCloseSrc = getIsTooClose(d);
-                    var isTooCloseTgt = getIsTooClose(Math.abs(l) - Math.abs(d));
-                    var isTooClose = isTooCloseSrc || isTooCloseTgt;
-
-                    if (isTooClose && !forcedDir) {
-                        // non-ideal routing
-                        if (isVert) {
-                            // vertical fallbacks
-                            var lShapeInsideSrc = Math.abs(pl) <= srcH / 2;
-                            var lShapeInsideTgt = Math.abs(pdx) <= tgtW / 2;
-
-                            if (lShapeInsideSrc) {
-                                // horizontal Z-shape (direction not respected)
-                                var x = (posPts.x1 + posPts.x2) / 2;
-                                var y1 = posPts.y1,
-                                    y2 = posPts.y2;
-                                rs.segpts = [x, y1, x, y2];
-                            } else if (lShapeInsideTgt) {
-                                // vertical Z-shape (distance not respected)
-                                var y = (posPts.y1 + posPts.y2) / 2;
-                                var x1 = posPts.x1,
-                                    x2 = posPts.x2;
-                                rs.segpts = [x1, y, x2, y];
-                            } else {
-                                // L-shape fallback (turn distance not respected, but works well with tree siblings)
-                                rs.segpts = [posPts.x1, posPts.y2];
-                            }
-                        } else {
-                            // horizontal fallbacks
-                            var _lShapeInsideSrc = Math.abs(pl) <= srcW / 2;
-
-                            var _lShapeInsideTgt = Math.abs(pdy) <= tgtH / 2;
-
-                            if (_lShapeInsideSrc) {
-                                // vertical Z-shape (direction not respected)
-                                var _y = (posPts.y1 + posPts.y2) / 2;
-
-                                var _x = posPts.x1,
-                                    _x2 = posPts.x2;
-                                rs.segpts = [_x, _y, _x2, _y];
-                            } else if (_lShapeInsideTgt) {
-                                // horizontal Z-shape (turn distance not respected)
-                                var _x3 = (posPts.x1 + posPts.x2) / 2;
-
-                                var _y2 = posPts.y1,
-                                    _y3 = posPts.y2;
-                                rs.segpts = [_x3, _y2, _x3, _y3];
-                            } else {
-                                // L-shape (turn distance not respected, but works well for tree siblings)
-                                rs.segpts = [posPts.x2, posPts.y1];
-                            }
-                        }
-                    } else {
-                        // ideal routing
-                        if (isVert) {
-                            var _y4 = posPts.y1 + d + (dIncludesNodeBody ? srcH / 2 * sgnL : 0);
-
-                            var _x4 = posPts.x1,
-                                _x5 = posPts.x2;
-                            rs.segpts = [_x4, _y4, _x5, _y4];
-                        } else {
-                            // horizontal
-                            var _x6 = posPts.x1 + d + (dIncludesNodeBody ? srcW / 2 * sgnL : 0);
-
-                            var _y5 = posPts.y1,
-                                _y6 = posPts.y2;
-                            rs.segpts = [_x6, _y5, _x6, _y6];
-                        }
-                    }
-                };
+  /*
+  Transform list into a heap, in-place, in O(array.length) time.
+   */
 
-                BRp$3.tryToCorrectInvalidPoints = function (edge, pairInfo) {
-                    var rs = edge._private.rscratch; // can only correct beziers for now...
-
-                    if (rs.edgeType === 'bezier') {
-                        var srcPos = pairInfo.srcPos,
-                            tgtPos = pairInfo.tgtPos,
-                            srcW = pairInfo.srcW,
-                            srcH = pairInfo.srcH,
-                            tgtW = pairInfo.tgtW,
-                            tgtH = pairInfo.tgtH,
-                            srcShape = pairInfo.srcShape,
-                            tgtShape = pairInfo.tgtShape;
-                        var badStart = !number(rs.startX) || !number(rs.startY);
-                        var badAStart = !number(rs.arrowStartX) || !number(rs.arrowStartY);
-                        var badEnd = !number(rs.endX) || !number(rs.endY);
-                        var badAEnd = !number(rs.arrowEndX) || !number(rs.arrowEndY);
-                        var minCpADistFactor = 3;
-                        var arrowW = this.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.arrowShapeWidth;
-                        var minCpADist = minCpADistFactor * arrowW;
-                        var startACpDist = dist({
-                            x: rs.ctrlpts[0],
-                            y: rs.ctrlpts[1]
-                        }, {
-                            x: rs.startX,
-                            y: rs.startY
-                        });
-                        var closeStartACp = startACpDist < minCpADist;
-                        var endACpDist = dist({
-                            x: rs.ctrlpts[0],
-                            y: rs.ctrlpts[1]
-                        }, {
-                            x: rs.endX,
-                            y: rs.endY
-                        });
-                        var closeEndACp = endACpDist < minCpADist;
-                        var overlapping = false;
-
-                        if (badStart || badAStart || closeStartACp) {
-                            overlapping = true; // project control point along line from src centre to outside the src shape
-                            // (otherwise intersection will yield nothing)
-
-                            var cpD = {
-                                // delta
-                                x: rs.ctrlpts[0] - srcPos.x,
-                                y: rs.ctrlpts[1] - srcPos.y
-                            };
-                            var cpL = Math.sqrt(cpD.x * cpD.x + cpD.y * cpD.y); // length of line
-
-                            var cpM = {
-                                // normalised delta
-                                x: cpD.x / cpL,
-                                y: cpD.y / cpL
-                            };
-                            var radius = Math.max(srcW, srcH);
-                            var cpProj = {
-                                // *2 radius guarantees outside shape
-                                x: rs.ctrlpts[0] + cpM.x * 2 * radius,
-                                y: rs.ctrlpts[1] + cpM.y * 2 * radius
-                            };
-                            var srcCtrlPtIntn = srcShape.intersectLine(srcPos.x, srcPos.y, srcW, srcH, cpProj.x, cpProj.y, 0);
-
-                            if (closeStartACp) {
-                                rs.ctrlpts[0] = rs.ctrlpts[0] + cpM.x * (minCpADist - startACpDist);
-                                rs.ctrlpts[1] = rs.ctrlpts[1] + cpM.y * (minCpADist - startACpDist);
-                            } else {
-                                rs.ctrlpts[0] = srcCtrlPtIntn[0] + cpM.x * minCpADist;
-                                rs.ctrlpts[1] = srcCtrlPtIntn[1] + cpM.y * minCpADist;
-                            }
-                        }
+  heapify = function(array, cmp) {
+    var i, _i, _j, _len, _ref, _ref1, _results, _results1;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    _ref1 = (function() {
+      _results1 = [];
+      for (var _j = 0, _ref = floor(array.length / 2); 0 <= _ref ? _j < _ref : _j > _ref; 0 <= _ref ? _j++ : _j--){ _results1.push(_j); }
+      return _results1;
+    }).apply(this).reverse();
+    _results = [];
+    for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
+      i = _ref1[_i];
+      _results.push(_siftup(array, i, cmp));
+    }
+    return _results;
+  };
 
-                        if (badEnd || badAEnd || closeEndACp) {
-                            overlapping = true; // project control point along line from tgt centre to outside the tgt shape
-                            // (otherwise intersection will yield nothing)
 
-                            var _cpD = {
-                                // delta
-                                x: rs.ctrlpts[0] - tgtPos.x,
-                                y: rs.ctrlpts[1] - tgtPos.y
-                            };
+  /*
+  Update the position of the given item in the heap.
+  This function should be called every time the item is being modified.
+   */
 
-                            var _cpL = Math.sqrt(_cpD.x * _cpD.x + _cpD.y * _cpD.y); // length of line
+  updateItem = function(array, item, cmp) {
+    var pos;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    pos = array.indexOf(item);
+    if (pos === -1) {
+      return;
+    }
+    _siftdown(array, 0, pos, cmp);
+    return _siftup(array, pos, cmp);
+  };
 
 
-                            var _cpM = {
-                                // normalised delta
-                                x: _cpD.x / _cpL,
-                                y: _cpD.y / _cpL
-                            };
+  /*
+  Find the n largest elements in a dataset.
+   */
 
-                            var _radius = Math.max(srcW, srcH);
+  nlargest = function(array, n, cmp) {
+    var elem, result, _i, _len, _ref;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    result = array.slice(0, n);
+    if (!result.length) {
+      return result;
+    }
+    heapify(result, cmp);
+    _ref = array.slice(n);
+    for (_i = 0, _len = _ref.length; _i < _len; _i++) {
+      elem = _ref[_i];
+      heappushpop(result, elem, cmp);
+    }
+    return result.sort(cmp).reverse();
+  };
 
-                            var _cpProj = {
-                                // *2 radius guarantees outside shape
-                                x: rs.ctrlpts[0] + _cpM.x * 2 * _radius,
-                                y: rs.ctrlpts[1] + _cpM.y * 2 * _radius
-                            };
-                            var tgtCtrlPtIntn = tgtShape.intersectLine(tgtPos.x, tgtPos.y, tgtW, tgtH, _cpProj.x, _cpProj.y, 0);
 
-                            if (closeEndACp) {
-                                rs.ctrlpts[0] = rs.ctrlpts[0] + _cpM.x * (minCpADist - endACpDist);
-                                rs.ctrlpts[1] = rs.ctrlpts[1] + _cpM.y * (minCpADist - endACpDist);
-                            } else {
-                                rs.ctrlpts[0] = tgtCtrlPtIntn[0] + _cpM.x * minCpADist;
-                                rs.ctrlpts[1] = tgtCtrlPtIntn[1] + _cpM.y * minCpADist;
-                            }
-                        }
+  /*
+  Find the n smallest elements in a dataset.
+   */
 
-                        if (overlapping) {
-                            // recalc endpts
-                            this.findEndpoints(edge);
-                        }
-                    }
-                };
+  nsmallest = function(array, n, cmp) {
+    var elem, i, los, result, _i, _j, _len, _ref, _ref1, _results;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    if (n * 10 <= array.length) {
+      result = array.slice(0, n).sort(cmp);
+      if (!result.length) {
+        return result;
+      }
+      los = result[result.length - 1];
+      _ref = array.slice(n);
+      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
+        elem = _ref[_i];
+        if (cmp(elem, los) < 0) {
+          insort(result, elem, 0, null, cmp);
+          result.pop();
+          los = result[result.length - 1];
+        }
+      }
+      return result;
+    }
+    heapify(array, cmp);
+    _results = [];
+    for (i = _j = 0, _ref1 = min(n, array.length); 0 <= _ref1 ? _j < _ref1 : _j > _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
+      _results.push(heappop(array, cmp));
+    }
+    return _results;
+  };
 
-                BRp$3.storeAllpts = function (edge) {
-                    var rs = edge._private.rscratch;
+  _siftdown = function(array, startpos, pos, cmp) {
+    var newitem, parent, parentpos;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    newitem = array[pos];
+    while (pos > startpos) {
+      parentpos = (pos - 1) >> 1;
+      parent = array[parentpos];
+      if (cmp(newitem, parent) < 0) {
+        array[pos] = parent;
+        pos = parentpos;
+        continue;
+      }
+      break;
+    }
+    return array[pos] = newitem;
+  };
 
-                    if (rs.edgeType === 'multibezier' || rs.edgeType === 'bezier' || rs.edgeType === 'self' || rs.edgeType === 'compound') {
-                        rs.allpts = [];
-                        rs.allpts.push(rs.startX, rs.startY);
+  _siftup = function(array, pos, cmp) {
+    var childpos, endpos, newitem, rightpos, startpos;
+    if (cmp == null) {
+      cmp = defaultCmp;
+    }
+    endpos = array.length;
+    startpos = pos;
+    newitem = array[pos];
+    childpos = 2 * pos + 1;
+    while (childpos < endpos) {
+      rightpos = childpos + 1;
+      if (rightpos < endpos && !(cmp(array[childpos], array[rightpos]) < 0)) {
+        childpos = rightpos;
+      }
+      array[pos] = array[childpos];
+      pos = childpos;
+      childpos = 2 * pos + 1;
+    }
+    array[pos] = newitem;
+    return _siftdown(array, startpos, pos, cmp);
+  };
 
-                        for (var b = 0; b + 1 < rs.ctrlpts.length; b += 2) {
-                            // ctrl pt itself
-                            rs.allpts.push(rs.ctrlpts[b], rs.ctrlpts[b + 1]); // the midpt between ctrlpts as intermediate destination pts
+  Heap = (function() {
+    Heap.push = heappush;
 
-                            if (b + 3 < rs.ctrlpts.length) {
-                                rs.allpts.push((rs.ctrlpts[b] + rs.ctrlpts[b + 2]) / 2, (rs.ctrlpts[b + 1] + rs.ctrlpts[b + 3]) / 2);
-                            }
-                        }
+    Heap.pop = heappop;
 
-                        rs.allpts.push(rs.endX, rs.endY);
-                        var m, mt;
-
-                        if (rs.ctrlpts.length / 2 % 2 === 0) {
-                            m = rs.allpts.length / 2 - 1;
-                            rs.midX = rs.allpts[m];
-                            rs.midY = rs.allpts[m + 1];
-                        } else {
-                            m = rs.allpts.length / 2 - 3;
-                            mt = 0.5;
-                            rs.midX = qbezierAt(rs.allpts[m], rs.allpts[m + 2], rs.allpts[m + 4], mt);
-                            rs.midY = qbezierAt(rs.allpts[m + 1], rs.allpts[m + 3], rs.allpts[m + 5], mt);
-                        }
-                    } else if (rs.edgeType === 'straight') {
-                        // need to calc these after endpts
-                        rs.allpts = [rs.startX, rs.startY, rs.endX, rs.endY]; // default midpt for labels etc
-
-                        rs.midX = (rs.startX + rs.endX + rs.arrowStartX + rs.arrowEndX) / 4;
-                        rs.midY = (rs.startY + rs.endY + rs.arrowStartY + rs.arrowEndY) / 4;
-                    } else if (rs.edgeType === 'segments') {
-                        rs.allpts = [];
-                        rs.allpts.push(rs.startX, rs.startY);
-                        rs.allpts.push.apply(rs.allpts, rs.segpts);
-                        rs.allpts.push(rs.endX, rs.endY);
-
-                        if (rs.segpts.length % 4 === 0) {
-                            var i2 = rs.segpts.length / 2;
-                            var i1 = i2 - 2;
-                            rs.midX = (rs.segpts[i1] + rs.segpts[i2]) / 2;
-                            rs.midY = (rs.segpts[i1 + 1] + rs.segpts[i2 + 1]) / 2;
-                        } else {
-                            var _i = rs.segpts.length / 2 - 1;
-
-                            rs.midX = rs.segpts[_i];
-                            rs.midY = rs.segpts[_i + 1];
-                        }
-                    }
-                };
+    Heap.replace = heapreplace;
 
-                BRp$3.checkForInvalidEdgeWarning = function (edge) {
-                    var rs = edge[0]._private.rscratch;
+    Heap.pushpop = heappushpop;
 
-                    if (rs.nodesOverlap || number(rs.startX) && number(rs.startY) && number(rs.endX) && number(rs.endY)) {
-                        rs.loggedErr = false;
-                    } else {
-                        if (!rs.loggedErr) {
-                            rs.loggedErr = true;
-                            warn('Edge `' + edge.id() + '` has invalid endpoints and so it is impossible to draw.  Adjust your edge style (e.g. control points) accordingly or use an alternative edge type.  This is expected behaviour when the source node and the target node overlap.');
-                        }
-                    }
-                };
+    Heap.heapify = heapify;
 
-                BRp$3.findEdgeControlPoints = function (edges) {
-                    var _this = this;
+    Heap.updateItem = updateItem;
 
-                    if (!edges || edges.length === 0) {
-                        return;
-                    }
+    Heap.nlargest = nlargest;
 
-                    var r = this;
-                    var cy = r.cy;
-                    var hasCompounds = cy.hasCompoundNodes();
-                    var hashTable = {
-                        map: new Map$1(),
-                        get: function get(pairId) {
-                            var map2 = this.map.get(pairId[0]);
-
-                            if (map2 != null) {
-                                return map2.get(pairId[1]);
-                            } else {
-                                return null;
-                            }
-                        },
-                        set: function set(pairId, val) {
-                            var map2 = this.map.get(pairId[0]);
+    Heap.nsmallest = nsmallest;
 
-                            if (map2 == null) {
-                                map2 = new Map$1();
-                                this.map.set(pairId[0], map2);
-                            }
+    function Heap(cmp) {
+      this.cmp = cmp != null ? cmp : defaultCmp;
+      this.nodes = [];
+    }
 
-                            map2.set(pairId[1], val);
-                        }
-                    };
-                    var pairIds = [];
-                    var haystackEdges = []; // create a table of edge (src, tgt) => list of edges between them
-
-                    for (var i = 0; i < edges.length; i++) {
-                        var edge = edges[i];
-                        var _p = edge._private;
-                        var curveStyle = edge.pstyle('curve-style').value; // ignore edges who are not to be displayed
-                        // they shouldn't take up space
-
-                        if (edge.removed() || !edge.takesUpSpace()) {
-                            continue;
-                        }
+    Heap.prototype.push = function(x) {
+      return heappush(this.nodes, x, this.cmp);
+    };
 
-                        if (curveStyle === 'haystack') {
-                            haystackEdges.push(edge);
-                            continue;
-                        }
+    Heap.prototype.pop = function() {
+      return heappop(this.nodes, this.cmp);
+    };
 
-                        var edgeIsUnbundled = curveStyle === 'unbundled-bezier' || curveStyle === 'segments' || curveStyle === 'straight' || curveStyle === 'taxi';
-                        var edgeIsBezier = curveStyle === 'unbundled-bezier' || curveStyle === 'bezier';
-                        var src = _p.source;
-                        var tgt = _p.target;
-                        var srcIndex = src.poolIndex();
-                        var tgtIndex = tgt.poolIndex();
-                        var pairId = [srcIndex, tgtIndex].sort();
-                        var tableEntry = hashTable.get(pairId);
-
-                        if (tableEntry == null) {
-                            tableEntry = {
-                                eles: []
-                            };
-                            hashTable.set(pairId, tableEntry);
-                            pairIds.push(pairId);
-                        }
+    Heap.prototype.peek = function() {
+      return this.nodes[0];
+    };
 
-                        tableEntry.eles.push(edge);
+    Heap.prototype.contains = function(x) {
+      return this.nodes.indexOf(x) !== -1;
+    };
 
-                        if (edgeIsUnbundled) {
-                            tableEntry.hasUnbundled = true;
-                        }
+    Heap.prototype.replace = function(x) {
+      return heapreplace(this.nodes, x, this.cmp);
+    };
 
-                        if (edgeIsBezier) {
-                            tableEntry.hasBezier = true;
-                        }
-                    } // for each pair (src, tgt), create the ctrl pts
-                    // Nested for loop is OK; total number of iterations for both loops = edgeCount
-
-
-                    var _loop = function _loop(p) {
-                        var pairId = pairIds[p];
-                        var pairInfo = hashTable.get(pairId);
-                        var swappedpairInfo = void 0;
-
-                        if (!pairInfo.hasUnbundled) {
-                            var pllEdges = pairInfo.eles[0].parallelEdges().filter(function (e) {
-                                return e.isBundledBezier();
-                            });
-                            clearArray(pairInfo.eles);
-                            pllEdges.forEach(function (edge) {
-                                return pairInfo.eles.push(edge);
-                            }); // for each pair id, the edges should be sorted by index
-
-                            pairInfo.eles.sort(function (edge1, edge2) {
-                                return edge1.poolIndex() - edge2.poolIndex();
-                            });
-                        }
+    Heap.prototype.pushpop = function(x) {
+      return heappushpop(this.nodes, x, this.cmp);
+    };
 
-                        var firstEdge = pairInfo.eles[0];
-                        var src = firstEdge.source();
-                        var tgt = firstEdge.target(); // make sure src/tgt distinction is consistent w.r.t. pairId
+    Heap.prototype.heapify = function() {
+      return heapify(this.nodes, this.cmp);
+    };
 
-                        if (src.poolIndex() > tgt.poolIndex()) {
-                            var temp = src;
-                            src = tgt;
-                            tgt = temp;
-                        }
+    Heap.prototype.updateItem = function(x) {
+      return updateItem(this.nodes, x, this.cmp);
+    };
 
-                        var srcPos = pairInfo.srcPos = src.position();
-                        var tgtPos = pairInfo.tgtPos = tgt.position();
-                        var srcW = pairInfo.srcW = src.outerWidth();
-                        var srcH = pairInfo.srcH = src.outerHeight();
-                        var tgtW = pairInfo.tgtW = tgt.outerWidth();
-                        var tgtH = pairInfo.tgtH = tgt.outerHeight();
-
-                        var srcShape = pairInfo.srcShape = r.nodeShapes[_this.getNodeShape(src)];
-
-                        var tgtShape = pairInfo.tgtShape = r.nodeShapes[_this.getNodeShape(tgt)];
-
-                        pairInfo.dirCounts = {
-                            'north': 0,
-                            'west': 0,
-                            'south': 0,
-                            'east': 0,
-                            'northwest': 0,
-                            'southwest': 0,
-                            'northeast': 0,
-                            'southeast': 0
-                        };
-
-                        for (var _i2 = 0; _i2 < pairInfo.eles.length; _i2++) {
-                            var _edge = pairInfo.eles[_i2];
-                            var rs = _edge[0]._private.rscratch;
-
-                            var _curveStyle = _edge.pstyle('curve-style').value;
-
-                            var _edgeIsUnbundled = _curveStyle === 'unbundled-bezier' || _curveStyle === 'segments' || _curveStyle === 'taxi'; // whether the normalised pair order is the reverse of the edge's src-tgt order
-
-
-                            var edgeIsSwapped = !src.same(_edge.source());
-
-                            if (!pairInfo.calculatedIntersection && src !== tgt && (pairInfo.hasBezier || pairInfo.hasUnbundled)) {
-                                pairInfo.calculatedIntersection = true; // pt outside src shape to calc distance/displacement from src to tgt
-
-                                var srcOutside = srcShape.intersectLine(srcPos.x, srcPos.y, srcW, srcH, tgtPos.x, tgtPos.y, 0);
-                                var srcIntn = pairInfo.srcIntn = srcOutside; // pt outside tgt shape to calc distance/displacement from src to tgt
-
-                                var tgtOutside = tgtShape.intersectLine(tgtPos.x, tgtPos.y, tgtW, tgtH, srcPos.x, srcPos.y, 0);
-                                var tgtIntn = pairInfo.tgtIntn = tgtOutside;
-                                var intersectionPts = pairInfo.intersectionPts = {
-                                    x1: srcOutside[0],
-                                    x2: tgtOutside[0],
-                                    y1: srcOutside[1],
-                                    y2: tgtOutside[1]
-                                };
-                                var posPts = pairInfo.posPts = {
-                                    x1: srcPos.x,
-                                    x2: tgtPos.x,
-                                    y1: srcPos.y,
-                                    y2: tgtPos.y
-                                };
-                                var dy = tgtOutside[1] - srcOutside[1];
-                                var dx = tgtOutside[0] - srcOutside[0];
-                                var l = Math.sqrt(dx * dx + dy * dy);
-                                var vector = pairInfo.vector = {
-                                    x: dx,
-                                    y: dy
-                                };
-                                var vectorNorm = pairInfo.vectorNorm = {
-                                    x: vector.x / l,
-                                    y: vector.y / l
-                                };
-                                var vectorNormInverse = {
-                                    x: -vectorNorm.y,
-                                    y: vectorNorm.x
-                                }; // if node shapes overlap, then no ctrl pts to draw
-
-                                pairInfo.nodesOverlap = !number(l) || tgtShape.checkPoint(srcOutside[0], srcOutside[1], 0, tgtW, tgtH, tgtPos.x, tgtPos.y) || srcShape.checkPoint(tgtOutside[0], tgtOutside[1], 0, srcW, srcH, srcPos.x, srcPos.y);
-                                pairInfo.vectorNormInverse = vectorNormInverse;
-                                swappedpairInfo = {
-                                    nodesOverlap: pairInfo.nodesOverlap,
-                                    dirCounts: pairInfo.dirCounts,
-                                    calculatedIntersection: true,
-                                    hasBezier: pairInfo.hasBezier,
-                                    hasUnbundled: pairInfo.hasUnbundled,
-                                    eles: pairInfo.eles,
-                                    srcPos: tgtPos,
-                                    tgtPos: srcPos,
-                                    srcW: tgtW,
-                                    srcH: tgtH,
-                                    tgtW: srcW,
-                                    tgtH: srcH,
-                                    srcIntn: tgtIntn,
-                                    tgtIntn: srcIntn,
-                                    srcShape: tgtShape,
-                                    tgtShape: srcShape,
-                                    posPts: {
-                                        x1: posPts.x2,
-                                        y1: posPts.y2,
-                                        x2: posPts.x1,
-                                        y2: posPts.y1
-                                    },
-                                    intersectionPts: {
-                                        x1: intersectionPts.x2,
-                                        y1: intersectionPts.y2,
-                                        x2: intersectionPts.x1,
-                                        y2: intersectionPts.y1
-                                    },
-                                    vector: {
-                                        x: -vector.x,
-                                        y: -vector.y
-                                    },
-                                    vectorNorm: {
-                                        x: -vectorNorm.x,
-                                        y: -vectorNorm.y
-                                    },
-                                    vectorNormInverse: {
-                                        x: -vectorNormInverse.x,
-                                        y: -vectorNormInverse.y
-                                    }
-                                };
-                            }
+    Heap.prototype.clear = function() {
+      return this.nodes = [];
+    };
 
-                            var passedPairInfo = edgeIsSwapped ? swappedpairInfo : pairInfo;
-                            rs.nodesOverlap = passedPairInfo.nodesOverlap;
-                            rs.srcIntn = passedPairInfo.srcIntn;
-                            rs.tgtIntn = passedPairInfo.tgtIntn;
-
-                            if (hasCompounds && (src.isParent() || src.isChild() || tgt.isParent() || tgt.isChild()) && (src.parents().anySame(tgt) || tgt.parents().anySame(src) || src.same(tgt) && src.isParent())) {
-                                _this.findCompoundLoopPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled);
-                            } else if (src === tgt) {
-                                _this.findLoopPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled);
-                            } else if (_curveStyle === 'segments') {
-                                _this.findSegmentsPoints(_edge, passedPairInfo);
-                            } else if (_curveStyle === 'taxi') {
-                                _this.findTaxiPoints(_edge, passedPairInfo);
-                            } else if (_curveStyle === 'straight' || !_edgeIsUnbundled && pairInfo.eles.length % 2 === 1 && _i2 === Math.floor(pairInfo.eles.length / 2)) {
-                                _this.findStraightEdgePoints(_edge);
-                            } else {
-                                _this.findBezierPoints(_edge, passedPairInfo, _i2, _edgeIsUnbundled, edgeIsSwapped);
-                            }
+    Heap.prototype.empty = function() {
+      return this.nodes.length === 0;
+    };
 
-                            _this.findEndpoints(_edge);
+    Heap.prototype.size = function() {
+      return this.nodes.length;
+    };
 
-                            _this.tryToCorrectInvalidPoints(_edge, passedPairInfo);
+    Heap.prototype.clone = function() {
+      var heap;
+      heap = new Heap();
+      heap.nodes = this.nodes.slice(0);
+      return heap;
+    };
 
-                            _this.checkForInvalidEdgeWarning(_edge);
+    Heap.prototype.toArray = function() {
+      return this.nodes.slice(0);
+    };
 
-                            _this.storeAllpts(_edge);
+    Heap.prototype.insert = Heap.prototype.push;
 
-                            _this.storeEdgeProjections(_edge);
+    Heap.prototype.top = Heap.prototype.peek;
 
-                            _this.calculateArrowAngles(_edge);
+    Heap.prototype.front = Heap.prototype.peek;
 
-                            _this.recalculateEdgeLabelProjections(_edge);
+    Heap.prototype.has = Heap.prototype.contains;
 
-                            _this.calculateLabelAngles(_edge);
-                        } // for pair edges
+    Heap.prototype.copy = Heap.prototype.clone;
 
-                    };
+    return Heap;
 
-                    for (var p = 0; p < pairIds.length; p++) {
-                        _loop(p);
-                    } // for pair ids
-                    // haystacks avoid the expense of pairInfo stuff (intersections etc.)
+  })();
 
+  (function(root, factory) {
+    if (true) {
+      return !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
+				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
+				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
+				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+    } else {}
+  })(this, function() {
+    return Heap;
+  });
 
-                    this.findHaystackPoints(haystackEdges);
-                };
+}).call(this);
 
-                function getPts(pts) {
-                    var retPts = [];
 
-                    if (pts == null) {
-                        return;
-                    }
+/***/ }),
 
-                    for (var i = 0; i < pts.length; i += 2) {
-                        var x = pts[i];
-                        var y = pts[i + 1];
-                        retPts.push({
-                            x: x,
-                            y: y
-                        });
-                    }
+/***/ "./node_modules/jquery/dist/jquery.js":
+/*!********************************************!*\
+  !*** ./node_modules/jquery/dist/jquery.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    return retPts;
-                }
+var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
+ * jQuery JavaScript Library v3.5.1
+ * https://jquery.com/
+ *
+ * Includes Sizzle.js
+ * https://sizzlejs.com/
+ *
+ * Copyright JS Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2020-05-04T22:49Z
+ */
+( function( global, factory ) {
+
+	"use strict";
+
+	if (  true && typeof module.exports === "object" ) {
+
+		// For CommonJS and CommonJS-like environments where a proper `window`
+		// is present, execute the factory and get jQuery.
+		// For environments that do not have a `window` with a `document`
+		// (such as Node.js), expose a factory as module.exports.
+		// This accentuates the need for the creation of a real `window`.
+		// e.g. var jQuery = require("jquery")(window);
+		// See ticket #14549 for more info.
+		module.exports = global.document ?
+			factory( global, true ) :
+			function( w ) {
+				if ( !w.document ) {
+					throw new Error( "jQuery requires a window with a document" );
+				}
+				return factory( w );
+			};
+	} else {
+		factory( global );
+	}
 
-                BRp$3.getSegmentPoints = function (edge) {
-                    var rs = edge[0]._private.rscratch;
-                    var type = rs.edgeType;
+// Pass this if window is not defined yet
+} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
 
-                    if (type === 'segments') {
-                        this.recalculateRenderedStyle(edge);
-                        return getPts(rs.segpts);
-                    }
-                };
+// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
+// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
+// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
+// enough that all such attempts are guarded in a try block.
+"use strict";
 
-                BRp$3.getControlPoints = function (edge) {
-                    var rs = edge[0]._private.rscratch;
-                    var type = rs.edgeType;
+var arr = [];
 
-                    if (type === 'bezier' || type === 'multibezier' || type === 'self' || type === 'compound') {
-                        this.recalculateRenderedStyle(edge);
-                        return getPts(rs.ctrlpts);
-                    }
-                };
+var getProto = Object.getPrototypeOf;
 
-                BRp$3.getEdgeMidpoint = function (edge) {
-                    var rs = edge[0]._private.rscratch;
-                    this.recalculateRenderedStyle(edge);
-                    return {
-                        x: rs.midX,
-                        y: rs.midY
-                    };
-                };
+var slice = arr.slice;
 
-                var BRp$4 = {};
+var flat = arr.flat ? function( array ) {
+	return arr.flat.call( array );
+} : function( array ) {
+	return arr.concat.apply( [], array );
+};
 
-                BRp$4.manualEndptToPx = function (node, prop) {
-                    var r = this;
-                    var npos = node.position();
-                    var w = node.outerWidth();
-                    var h = node.outerHeight();
 
-                    if (prop.value.length === 2) {
-                        var p = [prop.pfValue[0], prop.pfValue[1]];
+var push = arr.push;
 
-                        if (prop.units[0] === '%') {
-                            p[0] = p[0] * w;
-                        }
+var indexOf = arr.indexOf;
 
-                        if (prop.units[1] === '%') {
-                            p[1] = p[1] * h;
-                        }
+var class2type = {};
 
-                        p[0] += npos.x;
-                        p[1] += npos.y;
-                        return p;
-                    } else {
-                        var angle = prop.pfValue[0];
-                        angle = -Math.PI / 2 + angle; // start at 12 o'clock
+var toString = class2type.toString;
 
-                        var l = 2 * Math.max(w, h);
-                        var _p = [npos.x + Math.cos(angle) * l, npos.y + Math.sin(angle) * l];
-                        return r.nodeShapes[this.getNodeShape(node)].intersectLine(npos.x, npos.y, w, h, _p[0], _p[1], 0);
-                    }
-                };
+var hasOwn = class2type.hasOwnProperty;
 
-                BRp$4.findEndpoints = function (edge) {
-                    var r = this;
-                    var intersect;
-                    var source = edge.source()[0];
-                    var target = edge.target()[0];
-                    var srcPos = source.position();
-                    var tgtPos = target.position();
-                    var tgtArShape = edge.pstyle('target-arrow-shape').value;
-                    var srcArShape = edge.pstyle('source-arrow-shape').value;
-                    var tgtDist = edge.pstyle('target-distance-from-node').pfValue;
-                    var srcDist = edge.pstyle('source-distance-from-node').pfValue;
-                    var curveStyle = edge.pstyle('curve-style').value;
-                    var rs = edge._private.rscratch;
-                    var et = rs.edgeType;
-                    var taxi = curveStyle === 'taxi';
-                    var self = et === 'self' || et === 'compound';
-                    var bezier = et === 'bezier' || et === 'multibezier' || self;
-                    var multi = et !== 'bezier';
-                    var lines = et === 'straight' || et === 'segments';
-                    var segments = et === 'segments';
-                    var hasEndpts = bezier || multi || lines;
-                    var overrideEndpts = self || taxi;
-                    var srcManEndpt = edge.pstyle('source-endpoint');
-                    var srcManEndptVal = overrideEndpts ? 'outside-to-node' : srcManEndpt.value;
-                    var tgtManEndpt = edge.pstyle('target-endpoint');
-                    var tgtManEndptVal = overrideEndpts ? 'outside-to-node' : tgtManEndpt.value;
-                    rs.srcManEndpt = srcManEndpt;
-                    rs.tgtManEndpt = tgtManEndpt;
-                    var p1; // last known point of edge on target side
-
-                    var p2; // last known point of edge on source side
-
-                    var p1_i; // point to intersect with target shape
-
-                    var p2_i; // point to intersect with source shape
-
-                    if (bezier) {
-                        var cpStart = [rs.ctrlpts[0], rs.ctrlpts[1]];
-                        var cpEnd = multi ? [rs.ctrlpts[rs.ctrlpts.length - 2], rs.ctrlpts[rs.ctrlpts.length - 1]] : cpStart;
-                        p1 = cpEnd;
-                        p2 = cpStart;
-                    } else if (lines) {
-                        var srcArrowFromPt = !segments ? [tgtPos.x, tgtPos.y] : rs.segpts.slice(0, 2);
-                        var tgtArrowFromPt = !segments ? [srcPos.x, srcPos.y] : rs.segpts.slice(rs.segpts.length - 2);
-                        p1 = tgtArrowFromPt;
-                        p2 = srcArrowFromPt;
-                    }
+var fnToString = hasOwn.toString;
 
-                    if (tgtManEndptVal === 'inside-to-node') {
-                        intersect = [tgtPos.x, tgtPos.y];
-                    } else if (tgtManEndpt.units) {
-                        intersect = this.manualEndptToPx(target, tgtManEndpt);
-                    } else if (tgtManEndptVal === 'outside-to-line') {
-                        intersect = rs.tgtIntn; // use cached value from ctrlpt calc
-                    } else {
-                        if (tgtManEndptVal === 'outside-to-node' || tgtManEndptVal === 'outside-to-node-or-label') {
-                            p1_i = p1;
-                        } else if (tgtManEndptVal === 'outside-to-line' || tgtManEndptVal === 'outside-to-line-or-label') {
-                            p1_i = [srcPos.x, srcPos.y];
-                        }
+var ObjectFunctionString = fnToString.call( Object );
 
-                        intersect = r.nodeShapes[this.getNodeShape(target)].intersectLine(tgtPos.x, tgtPos.y, target.outerWidth(), target.outerHeight(), p1_i[0], p1_i[1], 0);
-
-                        if (tgtManEndptVal === 'outside-to-node-or-label' || tgtManEndptVal === 'outside-to-line-or-label') {
-                            var trs = target._private.rscratch;
-                            var lw = trs.labelWidth;
-                            var lh = trs.labelHeight;
-                            var lx = trs.labelX;
-                            var ly = trs.labelY;
-                            var lw2 = lw / 2;
-                            var lh2 = lh / 2;
-                            var va = target.pstyle('text-valign').value;
-
-                            if (va === 'top') {
-                                ly -= lh2;
-                            } else if (va === 'bottom') {
-                                ly += lh2;
-                            }
+var support = {};
 
-                            var ha = target.pstyle('text-halign').value;
+var isFunction = function isFunction( obj ) {
 
-                            if (ha === 'left') {
-                                lx -= lw2;
-                            } else if (ha === 'right') {
-                                lx += lw2;
-                            }
+      // Support: Chrome <=57, Firefox <=52
+      // In some browsers, typeof returns "function" for HTML <object> elements
+      // (i.e., `typeof document.createElement( "object" ) === "function"`).
+      // We don't want to classify *any* DOM node as a function.
+      return typeof obj === "function" && typeof obj.nodeType !== "number";
+  };
 
-                            var labelIntersect = polygonIntersectLine(p1_i[0], p1_i[1], [lx - lw2, ly - lh2, lx + lw2, ly - lh2, lx + lw2, ly + lh2, lx - lw2, ly + lh2], tgtPos.x, tgtPos.y);
-
-                            if (labelIntersect.length > 0) {
-                                var refPt = srcPos;
-                                var intSqdist = sqdist(refPt, array2point(intersect));
-                                var labIntSqdist = sqdist(refPt, array2point(labelIntersect));
-                                var minSqDist = intSqdist;
-
-                                if (labIntSqdist < intSqdist) {
-                                    intersect = labelIntersect;
-                                    minSqDist = labIntSqdist;
-                                }
-
-                                if (labelIntersect.length > 2) {
-                                    var labInt2SqDist = sqdist(refPt, {
-                                        x: labelIntersect[2],
-                                        y: labelIntersect[3]
-                                    });
-
-                                    if (labInt2SqDist < minSqDist) {
-                                        intersect = [labelIntersect[2], labelIntersect[3]];
-                                    }
-                                }
-                            }
-                        }
-                    }
 
-                    var arrowEnd = shortenIntersection(intersect, p1, r.arrowShapes[tgtArShape].spacing(edge) + tgtDist);
-                    var edgeEnd = shortenIntersection(intersect, p1, r.arrowShapes[tgtArShape].gap(edge) + tgtDist);
-                    rs.endX = edgeEnd[0];
-                    rs.endY = edgeEnd[1];
-                    rs.arrowEndX = arrowEnd[0];
-                    rs.arrowEndY = arrowEnd[1];
-
-                    if (srcManEndptVal === 'inside-to-node') {
-                        intersect = [srcPos.x, srcPos.y];
-                    } else if (srcManEndpt.units) {
-                        intersect = this.manualEndptToPx(source, srcManEndpt);
-                    } else if (srcManEndptVal === 'outside-to-line') {
-                        intersect = rs.srcIntn; // use cached value from ctrlpt calc
-                    } else {
-                        if (srcManEndptVal === 'outside-to-node' || srcManEndptVal === 'outside-to-node-or-label') {
-                            p2_i = p2;
-                        } else if (srcManEndptVal === 'outside-to-line' || srcManEndptVal === 'outside-to-line-or-label') {
-                            p2_i = [tgtPos.x, tgtPos.y];
-                        }
+var isWindow = function isWindow( obj ) {
+		return obj != null && obj === obj.window;
+	};
 
-                        intersect = r.nodeShapes[this.getNodeShape(source)].intersectLine(srcPos.x, srcPos.y, source.outerWidth(), source.outerHeight(), p2_i[0], p2_i[1], 0);
 
-                        if (srcManEndptVal === 'outside-to-node-or-label' || srcManEndptVal === 'outside-to-line-or-label') {
-                            var srs = source._private.rscratch;
-                            var _lw = srs.labelWidth;
-                            var _lh = srs.labelHeight;
-                            var _lx = srs.labelX;
-                            var _ly = srs.labelY;
+var document = window.document;
 
-                            var _lw2 = _lw / 2;
 
-                            var _lh2 = _lh / 2;
 
-                            var _va = source.pstyle('text-valign').value;
+	var preservedScriptAttributes = {
+		type: true,
+		src: true,
+		nonce: true,
+		noModule: true
+	};
 
-                            if (_va === 'top') {
-                                _ly -= _lh2;
-                            } else if (_va === 'bottom') {
-                                _ly += _lh2;
-                            }
+	function DOMEval( code, node, doc ) {
+		doc = doc || document;
 
-                            var _ha = source.pstyle('text-halign').value;
+		var i, val,
+			script = doc.createElement( "script" );
 
-                            if (_ha === 'left') {
-                                _lx -= _lw2;
-                            } else if (_ha === 'right') {
-                                _lx += _lw2;
-                            }
+		script.text = code;
+		if ( node ) {
+			for ( i in preservedScriptAttributes ) {
 
-                            var _labelIntersect = polygonIntersectLine(p2_i[0], p2_i[1], [_lx - _lw2, _ly - _lh2, _lx + _lw2, _ly - _lh2, _lx + _lw2, _ly + _lh2, _lx - _lw2, _ly + _lh2], srcPos.x, srcPos.y);
+				// Support: Firefox 64+, Edge 18+
+				// Some browsers don't support the "nonce" property on scripts.
+				// On the other hand, just using `getAttribute` is not enough as
+				// the `nonce` attribute is reset to an empty string whenever it
+				// becomes browsing-context connected.
+				// See https://github.com/whatwg/html/issues/2369
+				// See https://html.spec.whatwg.org/#nonce-attributes
+				// The `node.getAttribute` check was added for the sake of
+				// `jQuery.globalEval` so that it can fake a nonce-containing node
+				// via an object.
+				val = node[ i ] || node.getAttribute && node.getAttribute( i );
+				if ( val ) {
+					script.setAttribute( i, val );
+				}
+			}
+		}
+		doc.head.appendChild( script ).parentNode.removeChild( script );
+	}
 
-                            if (_labelIntersect.length > 0) {
-                                var _refPt = tgtPos;
 
-                                var _intSqdist = sqdist(_refPt, array2point(intersect));
+function toType( obj ) {
+	if ( obj == null ) {
+		return obj + "";
+	}
 
-                                var _labIntSqdist = sqdist(_refPt, array2point(_labelIntersect));
+	// Support: Android <=2.3 only (functionish RegExp)
+	return typeof obj === "object" || typeof obj === "function" ?
+		class2type[ toString.call( obj ) ] || "object" :
+		typeof obj;
+}
+/* global Symbol */
+// Defining this global in .eslintrc.json would create a danger of using the global
+// unguarded in another place, it seems safer to define global only for this module
 
-                                var _minSqDist = _intSqdist;
 
-                                if (_labIntSqdist < _intSqdist) {
-                                    intersect = [_labelIntersect[0], _labelIntersect[1]];
-                                    _minSqDist = _labIntSqdist;
-                                }
 
-                                if (_labelIntersect.length > 2) {
-                                    var _labInt2SqDist = sqdist(_refPt, {
-                                        x: _labelIntersect[2],
-                                        y: _labelIntersect[3]
-                                    });
+var
+	version = "3.5.1",
 
-                                    if (_labInt2SqDist < _minSqDist) {
-                                        intersect = [_labelIntersect[2], _labelIntersect[3]];
-                                    }
-                                }
-                            }
-                        }
-                    }
+	// Define a local copy of jQuery
+	jQuery = function( selector, context ) {
 
-                    var arrowStart = shortenIntersection(intersect, p2, r.arrowShapes[srcArShape].spacing(edge) + srcDist);
-                    var edgeStart = shortenIntersection(intersect, p2, r.arrowShapes[srcArShape].gap(edge) + srcDist);
-                    rs.startX = edgeStart[0];
-                    rs.startY = edgeStart[1];
-                    rs.arrowStartX = arrowStart[0];
-                    rs.arrowStartY = arrowStart[1];
-
-                    if (hasEndpts) {
-                        if (!number(rs.startX) || !number(rs.startY) || !number(rs.endX) || !number(rs.endY)) {
-                            rs.badLine = true;
-                        } else {
-                            rs.badLine = false;
-                        }
-                    }
-                };
+		// The jQuery object is actually just the init constructor 'enhanced'
+		// Need init if jQuery is called (just allow error to be thrown if not included)
+		return new jQuery.fn.init( selector, context );
+	};
 
-                BRp$4.getSourceEndpoint = function (edge) {
-                    var rs = edge[0]._private.rscratch;
-                    this.recalculateRenderedStyle(edge);
-
-                    switch (rs.edgeType) {
-                        case 'haystack':
-                            return {
-                                x: rs.haystackPts[0],
-                                y: rs.haystackPts[1]
-                            };
-
-                        default:
-                            return {
-                                x: rs.arrowStartX,
-                                y: rs.arrowStartY
-                            };
-                    }
-                };
+jQuery.fn = jQuery.prototype = {
 
-                BRp$4.getTargetEndpoint = function (edge) {
-                    var rs = edge[0]._private.rscratch;
-                    this.recalculateRenderedStyle(edge);
-
-                    switch (rs.edgeType) {
-                        case 'haystack':
-                            return {
-                                x: rs.haystackPts[2],
-                                y: rs.haystackPts[3]
-                            };
-
-                        default:
-                            return {
-                                x: rs.arrowEndX,
-                                y: rs.arrowEndY
-                            };
-                    }
-                };
+	// The current version of jQuery being used
+	jquery: version,
 
-                var BRp$5 = {};
+	constructor: jQuery,
 
-                function pushBezierPts(r, edge, pts) {
-                    var qbezierAt$1 = function qbezierAt$1(p1, p2, p3, t) {
-                        return qbezierAt(p1, p2, p3, t);
-                    };
+	// The default length of a jQuery object is 0
+	length: 0,
 
-                    var _p = edge._private;
-                    var bpts = _p.rstyle.bezierPts;
+	toArray: function() {
+		return slice.call( this );
+	},
 
-                    for (var i = 0; i < r.bezierProjPcts.length; i++) {
-                        var p = r.bezierProjPcts[i];
-                        bpts.push({
-                            x: qbezierAt$1(pts[0], pts[2], pts[4], p),
-                            y: qbezierAt$1(pts[1], pts[3], pts[5], p)
-                        });
-                    }
-                }
+	// Get the Nth element in the matched element set OR
+	// Get the whole matched element set as a clean array
+	get: function( num ) {
+
+		// Return all the elements in a clean array
+		if ( num == null ) {
+			return slice.call( this );
+		}
 
-                BRp$5.storeEdgeProjections = function (edge) {
-                    var _p = edge._private;
-                    var rs = _p.rscratch;
-                    var et = rs.edgeType; // clear the cached points state
+		// Return just the one element from the set
+		return num < 0 ? this[ num + this.length ] : this[ num ];
+	},
 
-                    _p.rstyle.bezierPts = null;
-                    _p.rstyle.linePts = null;
-                    _p.rstyle.haystackPts = null;
+	// Take an array of elements and push it onto the stack
+	// (returning the new matched element set)
+	pushStack: function( elems ) {
 
-                    if (et === 'multibezier' || et === 'bezier' || et === 'self' || et === 'compound') {
-                        _p.rstyle.bezierPts = [];
+		// Build a new jQuery matched element set
+		var ret = jQuery.merge( this.constructor(), elems );
+
+		// Add the old object onto the stack (as a reference)
+		ret.prevObject = this;
 
-                        for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
-                            pushBezierPts(this, edge, rs.allpts.slice(i, i + 6));
-                        }
-                    } else if (et === 'segments') {
-                        var lpts = _p.rstyle.linePts = [];
-
-                        for (var i = 0; i + 1 < rs.allpts.length; i += 2) {
-                            lpts.push({
-                                x: rs.allpts[i],
-                                y: rs.allpts[i + 1]
-                            });
-                        }
-                    } else if (et === 'haystack') {
-                        var hpts = rs.haystackPts;
-                        _p.rstyle.haystackPts = [{
-                            x: hpts[0],
-                            y: hpts[1]
-                        }, {
-                            x: hpts[2],
-                            y: hpts[3]
-                        }];
-                    }
+		// Return the newly-formed element set
+		return ret;
+	},
 
-                    _p.rstyle.arrowWidth = this.getArrowWidth(edge.pstyle('width').pfValue, edge.pstyle('arrow-scale').value) * this.arrowShapeWidth;
-                };
+	// Execute a callback for every element in the matched set.
+	each: function( callback ) {
+		return jQuery.each( this, callback );
+	},
+
+	map: function( callback ) {
+		return this.pushStack( jQuery.map( this, function( elem, i ) {
+			return callback.call( elem, i, elem );
+		} ) );
+	},
+
+	slice: function() {
+		return this.pushStack( slice.apply( this, arguments ) );
+	},
+
+	first: function() {
+		return this.eq( 0 );
+	},
+
+	last: function() {
+		return this.eq( -1 );
+	},
+
+	even: function() {
+		return this.pushStack( jQuery.grep( this, function( _elem, i ) {
+			return ( i + 1 ) % 2;
+		} ) );
+	},
+
+	odd: function() {
+		return this.pushStack( jQuery.grep( this, function( _elem, i ) {
+			return i % 2;
+		} ) );
+	},
+
+	eq: function( i ) {
+		var len = this.length,
+			j = +i + ( i < 0 ? len : 0 );
+		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
+	},
+
+	end: function() {
+		return this.prevObject || this.constructor();
+	},
+
+	// For internal use only.
+	// Behaves like an Array's method, not like a jQuery method.
+	push: push,
+	sort: arr.sort,
+	splice: arr.splice
+};
+
+jQuery.extend = jQuery.fn.extend = function() {
+	var options, name, src, copy, copyIsArray, clone,
+		target = arguments[ 0 ] || {},
+		i = 1,
+		length = arguments.length,
+		deep = false;
+
+	// Handle a deep copy situation
+	if ( typeof target === "boolean" ) {
+		deep = target;
+
+		// Skip the boolean and the target
+		target = arguments[ i ] || {};
+		i++;
+	}
+
+	// Handle case when target is a string or something (possible in deep copy)
+	if ( typeof target !== "object" && !isFunction( target ) ) {
+		target = {};
+	}
+
+	// Extend jQuery itself if only one argument is passed
+	if ( i === length ) {
+		target = this;
+		i--;
+	}
+
+	for ( ; i < length; i++ ) {
+
+		// Only deal with non-null/undefined values
+		if ( ( options = arguments[ i ] ) != null ) {
+
+			// Extend the base object
+			for ( name in options ) {
+				copy = options[ name ];
+
+				// Prevent Object.prototype pollution
+				// Prevent never-ending loop
+				if ( name === "__proto__" || target === copy ) {
+					continue;
+				}
+
+				// Recurse if we're merging plain objects or arrays
+				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
+					( copyIsArray = Array.isArray( copy ) ) ) ) {
+					src = target[ name ];
+
+					// Ensure proper type for the source value
+					if ( copyIsArray && !Array.isArray( src ) ) {
+						clone = [];
+					} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
+						clone = {};
+					} else {
+						clone = src;
+					}
+					copyIsArray = false;
+
+					// Never move original objects, clone them
+					target[ name ] = jQuery.extend( deep, clone, copy );
+
+				// Don't bring in undefined values
+				} else if ( copy !== undefined ) {
+					target[ name ] = copy;
+				}
+			}
+		}
+	}
+
+	// Return the modified object
+	return target;
+};
+
+jQuery.extend( {
+
+	// Unique for each copy of jQuery on the page
+	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
+
+	// Assume jQuery is ready without the ready module
+	isReady: true,
+
+	error: function( msg ) {
+		throw new Error( msg );
+	},
+
+	noop: function() {},
+
+	isPlainObject: function( obj ) {
+		var proto, Ctor;
+
+		// Detect obvious negatives
+		// Use toString instead of jQuery.type to catch host objects
+		if ( !obj || toString.call( obj ) !== "[object Object]" ) {
+			return false;
+		}
+
+		proto = getProto( obj );
+
+		// Objects with no prototype (e.g., `Object.create( null )`) are plain
+		if ( !proto ) {
+			return true;
+		}
+
+		// Objects with prototype are plain iff they were constructed by a global Object function
+		Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
+		return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
+	},
+
+	isEmptyObject: function( obj ) {
+		var name;
+
+		for ( name in obj ) {
+			return false;
+		}
+		return true;
+	},
+
+	// Evaluates a script in a provided context; falls back to the global one
+	// if not specified.
+	globalEval: function( code, options, doc ) {
+		DOMEval( code, { nonce: options && options.nonce }, doc );
+	},
+
+	each: function( obj, callback ) {
+		var length, i = 0;
+
+		if ( isArrayLike( obj ) ) {
+			length = obj.length;
+			for ( ; i < length; i++ ) {
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+					break;
+				}
+			}
+		} else {
+			for ( i in obj ) {
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+					break;
+				}
+			}
+		}
+
+		return obj;
+	},
+
+	// results is for internal usage only
+	makeArray: function( arr, results ) {
+		var ret = results || [];
+
+		if ( arr != null ) {
+			if ( isArrayLike( Object( arr ) ) ) {
+				jQuery.merge( ret,
+					typeof arr === "string" ?
+					[ arr ] : arr
+				);
+			} else {
+				push.call( ret, arr );
+			}
+		}
+
+		return ret;
+	},
+
+	inArray: function( elem, arr, i ) {
+		return arr == null ? -1 : indexOf.call( arr, elem, i );
+	},
+
+	// Support: Android <=4.0 only, PhantomJS 1 only
+	// push.apply(_, arraylike) throws on ancient WebKit
+	merge: function( first, second ) {
+		var len = +second.length,
+			j = 0,
+			i = first.length;
+
+		for ( ; j < len; j++ ) {
+			first[ i++ ] = second[ j ];
+		}
+
+		first.length = i;
+
+		return first;
+	},
+
+	grep: function( elems, callback, invert ) {
+		var callbackInverse,
+			matches = [],
+			i = 0,
+			length = elems.length,
+			callbackExpect = !invert;
+
+		// Go through the array, only saving the items
+		// that pass the validator function
+		for ( ; i < length; i++ ) {
+			callbackInverse = !callback( elems[ i ], i );
+			if ( callbackInverse !== callbackExpect ) {
+				matches.push( elems[ i ] );
+			}
+		}
+
+		return matches;
+	},
+
+	// arg is for internal usage only
+	map: function( elems, callback, arg ) {
+		var length, value,
+			i = 0,
+			ret = [];
+
+		// Go through the array, translating each of the items to their new values
+		if ( isArrayLike( elems ) ) {
+			length = elems.length;
+			for ( ; i < length; i++ ) {
+				value = callback( elems[ i ], i, arg );
+
+				if ( value != null ) {
+					ret.push( value );
+				}
+			}
+
+		// Go through every key on the object,
+		} else {
+			for ( i in elems ) {
+				value = callback( elems[ i ], i, arg );
+
+				if ( value != null ) {
+					ret.push( value );
+				}
+			}
+		}
+
+		// Flatten any nested arrays
+		return flat( ret );
+	},
+
+	// A global GUID counter for objects
+	guid: 1,
+
+	// jQuery.support is not used in Core but other projects attach their
+	// properties to it so it needs to exist.
+	support: support
+} );
+
+if ( typeof Symbol === "function" ) {
+	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
+}
 
-                BRp$5.recalculateEdgeProjections = function (edges) {
-                    this.findEdgeControlPoints(edges);
-                };
+// Populate the class2type map
+jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
+function( _i, name ) {
+	class2type[ "[object " + name + "]" ] = name.toLowerCase();
+} );
+
+function isArrayLike( obj ) {
+
+	// Support: real iOS 8.2 only (not reproducible in simulator)
+	// `in` check used to prevent JIT error (gh-2145)
+	// hasOwn isn't used here due to false negatives
+	// regarding Nodelist length in IE
+	var length = !!obj && "length" in obj && obj.length,
+		type = toType( obj );
+
+	if ( isFunction( obj ) || isWindow( obj ) ) {
+		return false;
+	}
+
+	return type === "array" || length === 0 ||
+		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
+}
+var Sizzle =
+/*!
+ * Sizzle CSS Selector Engine v2.3.5
+ * https://sizzlejs.com/
+ *
+ * Copyright JS Foundation and other contributors
+ * Released under the MIT license
+ * https://js.foundation/
+ *
+ * Date: 2020-03-14
+ */
+( function( window ) {
+var i,
+	support,
+	Expr,
+	getText,
+	isXML,
+	tokenize,
+	compile,
+	select,
+	outermostContext,
+	sortInput,
+	hasDuplicate,
+
+	// Local document vars
+	setDocument,
+	document,
+	docElem,
+	documentIsHTML,
+	rbuggyQSA,
+	rbuggyMatches,
+	matches,
+	contains,
+
+	// Instance-specific data
+	expando = "sizzle" + 1 * new Date(),
+	preferredDoc = window.document,
+	dirruns = 0,
+	done = 0,
+	classCache = createCache(),
+	tokenCache = createCache(),
+	compilerCache = createCache(),
+	nonnativeSelectorCache = createCache(),
+	sortOrder = function( a, b ) {
+		if ( a === b ) {
+			hasDuplicate = true;
+		}
+		return 0;
+	},
+
+	// Instance methods
+	hasOwn = ( {} ).hasOwnProperty,
+	arr = [],
+	pop = arr.pop,
+	pushNative = arr.push,
+	push = arr.push,
+	slice = arr.slice,
+
+	// Use a stripped-down indexOf as it's faster than native
+	// https://jsperf.com/thor-indexof-vs-for/5
+	indexOf = function( list, elem ) {
+		var i = 0,
+			len = list.length;
+		for ( ; i < len; i++ ) {
+			if ( list[ i ] === elem ) {
+				return i;
+			}
+		}
+		return -1;
+	},
+
+	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
+		"ismap|loop|multiple|open|readonly|required|scoped",
+
+	// Regular expressions
+
+	// http://www.w3.org/TR/css3-selectors/#whitespace
+	whitespace = "[\\x20\\t\\r\\n\\f]",
+
+	// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
+	identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
+		"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
+
+	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
+	attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
+
+		// Operator (capture 2)
+		"*([*^$|!~]?=)" + whitespace +
+
+		// "Attribute values must be CSS identifiers [capture 5]
+		// or strings [capture 3 or capture 4]"
+		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
+		whitespace + "*\\]",
+
+	pseudos = ":(" + identifier + ")(?:\\((" +
+
+		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
+		// 1. quoted (capture 3; capture 4 or capture 5)
+		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
+
+		// 2. simple (capture 6)
+		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
+
+		// 3. anything else (capture 2)
+		".*" +
+		")\\)|)",
+
+	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
+	rwhitespace = new RegExp( whitespace + "+", "g" ),
+	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
+		whitespace + "+$", "g" ),
+
+	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
+	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
+		"*" ),
+	rdescend = new RegExp( whitespace + "|>" ),
+
+	rpseudo = new RegExp( pseudos ),
+	ridentifier = new RegExp( "^" + identifier + "$" ),
+
+	matchExpr = {
+		"ID": new RegExp( "^#(" + identifier + ")" ),
+		"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
+		"TAG": new RegExp( "^(" + identifier + "|[*])" ),
+		"ATTR": new RegExp( "^" + attributes ),
+		"PSEUDO": new RegExp( "^" + pseudos ),
+		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
+			whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
+			whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
+
+		// For use in libraries implementing .is()
+		// We use this for POS matching in `select`
+		"needsContext": new RegExp( "^" + whitespace +
+			"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
+			"*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
+	},
+
+	rhtml = /HTML$/i,
+	rinputs = /^(?:input|select|textarea|button)$/i,
+	rheader = /^h\d$/i,
+
+	rnative = /^[^{]+\{\s*\[native \w/,
+
+	// Easily-parseable/retrievable ID or TAG or CLASS selectors
+	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
+
+	rsibling = /[+~]/,
+
+	// CSS escapes
+	// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
+	runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
+	funescape = function( escape, nonHex ) {
+		var high = "0x" + escape.slice( 1 ) - 0x10000;
+
+		return nonHex ?
+
+			// Strip the backslash prefix from a non-hex escape sequence
+			nonHex :
+
+			// Replace a hexadecimal escape sequence with the encoded Unicode code point
+			// Support: IE <=11+
+			// For values outside the Basic Multilingual Plane (BMP), manually construct a
+			// surrogate pair
+			high < 0 ?
+				String.fromCharCode( high + 0x10000 ) :
+				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
+	},
+
+	// CSS string/identifier serialization
+	// https://drafts.csswg.org/cssom/#common-serializing-idioms
+	rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
+	fcssescape = function( ch, asCodePoint ) {
+		if ( asCodePoint ) {
+
+			// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
+			if ( ch === "\0" ) {
+				return "\uFFFD";
+			}
+
+			// Control characters and (dependent upon position) numbers get escaped as code points
+			return ch.slice( 0, -1 ) + "\\" +
+				ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
+		}
+
+		// Other potentially-special ASCII characters get backslash-escaped
+		return "\\" + ch;
+	},
+
+	// Used for iframes
+	// See setDocument()
+	// Removing the function wrapper causes a "Permission Denied"
+	// error in IE
+	unloadHandler = function() {
+		setDocument();
+	},
+
+	inDisabledFieldset = addCombinator(
+		function( elem ) {
+			return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
+		},
+		{ dir: "parentNode", next: "legend" }
+	);
 
-                /* global document */
+// Optimize for push.apply( _, NodeList )
+try {
+	push.apply(
+		( arr = slice.call( preferredDoc.childNodes ) ),
+		preferredDoc.childNodes
+	);
+
+	// Support: Android<4.0
+	// Detect silently failing push.apply
+	// eslint-disable-next-line no-unused-expressions
+	arr[ preferredDoc.childNodes.length ].nodeType;
+} catch ( e ) {
+	push = { apply: arr.length ?
+
+		// Leverage slice if possible
+		function( target, els ) {
+			pushNative.apply( target, slice.call( els ) );
+		} :
+
+		// Support: IE<9
+		// Otherwise append directly
+		function( target, els ) {
+			var j = target.length,
+				i = 0;
+
+			// Can't trust NodeList.length
+			while ( ( target[ j++ ] = els[ i++ ] ) ) {}
+			target.length = j - 1;
+		}
+	};
+}
+
+function Sizzle( selector, context, results, seed ) {
+	var m, i, elem, nid, match, groups, newSelector,
+		newContext = context && context.ownerDocument,
+
+		// nodeType defaults to 9, since context defaults to document
+		nodeType = context ? context.nodeType : 9;
+
+	results = results || [];
+
+	// Return early from calls with invalid selector or context
+	if ( typeof selector !== "string" || !selector ||
+		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
+
+		return results;
+	}
+
+	// Try to shortcut find operations (as opposed to filters) in HTML documents
+	if ( !seed ) {
+		setDocument( context );
+		context = context || document;
+
+		if ( documentIsHTML ) {
+
+			// If the selector is sufficiently simple, try using a "get*By*" DOM method
+			// (excepting DocumentFragment context, where the methods don't exist)
+			if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
+
+				// ID selector
+				if ( ( m = match[ 1 ] ) ) {
+
+					// Document context
+					if ( nodeType === 9 ) {
+						if ( ( elem = context.getElementById( m ) ) ) {
+
+							// Support: IE, Opera, Webkit
+							// TODO: identify versions
+							// getElementById can match elements by name instead of ID
+							if ( elem.id === m ) {
+								results.push( elem );
+								return results;
+							}
+						} else {
+							return results;
+						}
+
+					// Element context
+					} else {
+
+						// Support: IE, Opera, Webkit
+						// TODO: identify versions
+						// getElementById can match elements by name instead of ID
+						if ( newContext && ( elem = newContext.getElementById( m ) ) &&
+							contains( context, elem ) &&
+							elem.id === m ) {
+
+							results.push( elem );
+							return results;
+						}
+					}
+
+				// Type selector
+				} else if ( match[ 2 ] ) {
+					push.apply( results, context.getElementsByTagName( selector ) );
+					return results;
+
+				// Class selector
+				} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
+					context.getElementsByClassName ) {
+
+					push.apply( results, context.getElementsByClassName( m ) );
+					return results;
+				}
+			}
+
+			// Take advantage of querySelectorAll
+			if ( support.qsa &&
+				!nonnativeSelectorCache[ selector + " " ] &&
+				( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
+
+				// Support: IE 8 only
+				// Exclude object elements
+				( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
+
+				newSelector = selector;
+				newContext = context;
+
+				// qSA considers elements outside a scoping root when evaluating child or
+				// descendant combinators, which is not what we want.
+				// In such cases, we work around the behavior by prefixing every selector in the
+				// list with an ID selector referencing the scope context.
+				// The technique has to be used as well when a leading combinator is used
+				// as such selectors are not recognized by querySelectorAll.
+				// Thanks to Andrew Dupont for this technique.
+				if ( nodeType === 1 &&
+					( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
+
+					// Expand context for sibling selectors
+					newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
+						context;
+
+					// We can use :scope instead of the ID hack if the browser
+					// supports it & if we're not changing the context.
+					if ( newContext !== context || !support.scope ) {
+
+						// Capture the context ID, setting it first if necessary
+						if ( ( nid = context.getAttribute( "id" ) ) ) {
+							nid = nid.replace( rcssescape, fcssescape );
+						} else {
+							context.setAttribute( "id", ( nid = expando ) );
+						}
+					}
+
+					// Prefix every selector in the list
+					groups = tokenize( selector );
+					i = groups.length;
+					while ( i-- ) {
+						groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
+							toSelector( groups[ i ] );
+					}
+					newSelector = groups.join( "," );
+				}
+
+				try {
+					push.apply( results,
+						newContext.querySelectorAll( newSelector )
+					);
+					return results;
+				} catch ( qsaError ) {
+					nonnativeSelectorCache( selector, true );
+				} finally {
+					if ( nid === expando ) {
+						context.removeAttribute( "id" );
+					}
+				}
+			}
+		}
+	}
+
+	// All others
+	return select( selector.replace( rtrim, "$1" ), context, results, seed );
+}
+
+/**
+ * Create key-value caches of limited size
+ * @returns {function(string, object)} Returns the Object data after storing it on itself with
+ *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
+ *	deleting the oldest entry
+ */
+function createCache() {
+	var keys = [];
 
-                var BRp$6 = {};
+	function cache( key, value ) {
 
-                BRp$6.recalculateNodeLabelProjection = function (node) {
-                    var content = node.pstyle('label').strValue;
+		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+		if ( keys.push( key + " " ) > Expr.cacheLength ) {
 
-                    if (emptyString(content)) {
-                        return;
-                    }
+			// Only keep the most recent entries
+			delete cache[ keys.shift() ];
+		}
+		return ( cache[ key + " " ] = value );
+	}
+	return cache;
+}
 
-                    var textX, textY;
-                    var _p = node._private;
-                    var nodeWidth = node.width();
-                    var nodeHeight = node.height();
-                    var padding = node.padding();
-                    var nodePos = node.position();
-                    var textHalign = node.pstyle('text-halign').strValue;
-                    var textValign = node.pstyle('text-valign').strValue;
-                    var rs = _p.rscratch;
-                    var rstyle = _p.rstyle;
-
-                    switch (textHalign) {
-                        case 'left':
-                            textX = nodePos.x - nodeWidth / 2 - padding;
-                            break;
-
-                        case 'right':
-                            textX = nodePos.x + nodeWidth / 2 + padding;
-                            break;
-
-                        default:
-                            // e.g. center
-                            textX = nodePos.x;
-                    }
+/**
+ * Mark a function for special use by Sizzle
+ * @param {Function} fn The function to mark
+ */
+function markFunction( fn ) {
+	fn[ expando ] = true;
+	return fn;
+}
+
+/**
+ * Support testing using an element
+ * @param {Function} fn Passed the created element and returns a boolean result
+ */
+function assert( fn ) {
+	var el = document.createElement( "fieldset" );
+
+	try {
+		return !!fn( el );
+	} catch ( e ) {
+		return false;
+	} finally {
+
+		// Remove from its parent by default
+		if ( el.parentNode ) {
+			el.parentNode.removeChild( el );
+		}
+
+		// release memory in IE
+		el = null;
+	}
+}
+
+/**
+ * Adds the same handler for all of the specified attrs
+ * @param {String} attrs Pipe-separated list of attributes
+ * @param {Function} handler The method that will be applied
+ */
+function addHandle( attrs, handler ) {
+	var arr = attrs.split( "|" ),
+		i = arr.length;
+
+	while ( i-- ) {
+		Expr.attrHandle[ arr[ i ] ] = handler;
+	}
+}
+
+/**
+ * Checks document order of two siblings
+ * @param {Element} a
+ * @param {Element} b
+ * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
+ */
+function siblingCheck( a, b ) {
+	var cur = b && a,
+		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
+			a.sourceIndex - b.sourceIndex;
+
+	// Use IE sourceIndex if available on both nodes
+	if ( diff ) {
+		return diff;
+	}
+
+	// Check if b follows a
+	if ( cur ) {
+		while ( ( cur = cur.nextSibling ) ) {
+			if ( cur === b ) {
+				return -1;
+			}
+		}
+	}
+
+	return a ? 1 : -1;
+}
+
+/**
+ * Returns a function to use in pseudos for input types
+ * @param {String} type
+ */
+function createInputPseudo( type ) {
+	return function( elem ) {
+		var name = elem.nodeName.toLowerCase();
+		return name === "input" && elem.type === type;
+	};
+}
+
+/**
+ * Returns a function to use in pseudos for buttons
+ * @param {String} type
+ */
+function createButtonPseudo( type ) {
+	return function( elem ) {
+		var name = elem.nodeName.toLowerCase();
+		return ( name === "input" || name === "button" ) && elem.type === type;
+	};
+}
+
+/**
+ * Returns a function to use in pseudos for :enabled/:disabled
+ * @param {Boolean} disabled true for :disabled; false for :enabled
+ */
+function createDisabledPseudo( disabled ) {
+
+	// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
+	return function( elem ) {
+
+		// Only certain elements can match :enabled or :disabled
+		// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
+		// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
+		if ( "form" in elem ) {
+
+			// Check for inherited disabledness on relevant non-disabled elements:
+			// * listed form-associated elements in a disabled fieldset
+			//   https://html.spec.whatwg.org/multipage/forms.html#category-listed
+			//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
+			// * option elements in a disabled optgroup
+			//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
+			// All such elements have a "form" property.
+			if ( elem.parentNode && elem.disabled === false ) {
+
+				// Option elements defer to a parent optgroup if present
+				if ( "label" in elem ) {
+					if ( "label" in elem.parentNode ) {
+						return elem.parentNode.disabled === disabled;
+					} else {
+						return elem.disabled === disabled;
+					}
+				}
+
+				// Support: IE 6 - 11
+				// Use the isDisabled shortcut property to check for disabled fieldset ancestors
+				return elem.isDisabled === disabled ||
+
+					// Where there is no isDisabled, check manually
+					/* jshint -W018 */
+					elem.isDisabled !== !disabled &&
+					inDisabledFieldset( elem ) === disabled;
+			}
+
+			return elem.disabled === disabled;
+
+		// Try to winnow out elements that can't be disabled before trusting the disabled property.
+		// Some victims get caught in our net (label, legend, menu, track), but it shouldn't
+		// even exist on them, let alone have a boolean value.
+		} else if ( "label" in elem ) {
+			return elem.disabled === disabled;
+		}
+
+		// Remaining elements are neither :enabled nor :disabled
+		return false;
+	};
+}
+
+/**
+ * Returns a function to use in pseudos for positionals
+ * @param {Function} fn
+ */
+function createPositionalPseudo( fn ) {
+	return markFunction( function( argument ) {
+		argument = +argument;
+		return markFunction( function( seed, matches ) {
+			var j,
+				matchIndexes = fn( [], seed.length, argument ),
+				i = matchIndexes.length;
+
+			// Match elements found at the specified indexes
+			while ( i-- ) {
+				if ( seed[ ( j = matchIndexes[ i ] ) ] ) {
+					seed[ j ] = !( matches[ j ] = seed[ j ] );
+				}
+			}
+		} );
+	} );
+}
+
+/**
+ * Checks a node for validity as a Sizzle context
+ * @param {Element|Object=} context
+ * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
+ */
+function testContext( context ) {
+	return context && typeof context.getElementsByTagName !== "undefined" && context;
+}
 
-                    switch (textValign) {
-                        case 'top':
-                            textY = nodePos.y - nodeHeight / 2 - padding;
-                            break;
+// Expose support vars for convenience
+support = Sizzle.support = {};
 
-                        case 'bottom':
-                            textY = nodePos.y + nodeHeight / 2 + padding;
-                            break;
+/**
+ * Detects XML nodes
+ * @param {Element|Object} elem An element or a document
+ * @returns {Boolean} True iff elem is a non-HTML XML node
+ */
+isXML = Sizzle.isXML = function( elem ) {
+	var namespace = elem.namespaceURI,
+		docElem = ( elem.ownerDocument || elem ).documentElement;
+
+	// Support: IE <=8
+	// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes
+	// https://bugs.jquery.com/ticket/4833
+	return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" );
+};
+
+/**
+ * Sets document-related variables once based on the current document
+ * @param {Element|Object} [doc] An element or document object to use to set the document
+ * @returns {Object} Returns the current document
+ */
+setDocument = Sizzle.setDocument = function( node ) {
+	var hasCompare, subWindow,
+		doc = node ? node.ownerDocument || node : preferredDoc;
+
+	// Return early if doc is invalid or already selected
+	// Support: IE 11+, Edge 17 - 18+
+	// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+	// two documents; shallow comparisons work.
+	// eslint-disable-next-line eqeqeq
+	if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {
+		return document;
+	}
+
+	// Update global variables
+	document = doc;
+	docElem = document.documentElement;
+	documentIsHTML = !isXML( document );
+
+	// Support: IE 9 - 11+, Edge 12 - 18+
+	// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
+	// Support: IE 11+, Edge 17 - 18+
+	// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+	// two documents; shallow comparisons work.
+	// eslint-disable-next-line eqeqeq
+	if ( preferredDoc != document &&
+		( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
+
+		// Support: IE 11, Edge
+		if ( subWindow.addEventListener ) {
+			subWindow.addEventListener( "unload", unloadHandler, false );
+
+		// Support: IE 9 - 10 only
+		} else if ( subWindow.attachEvent ) {
+			subWindow.attachEvent( "onunload", unloadHandler );
+		}
+	}
+
+	// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,
+	// Safari 4 - 5 only, Opera <=11.6 - 12.x only
+	// IE/Edge & older browsers don't support the :scope pseudo-class.
+	// Support: Safari 6.0 only
+	// Safari 6.0 supports :scope but it's an alias of :root there.
+	support.scope = assert( function( el ) {
+		docElem.appendChild( el ).appendChild( document.createElement( "div" ) );
+		return typeof el.querySelectorAll !== "undefined" &&
+			!el.querySelectorAll( ":scope fieldset div" ).length;
+	} );
+
+	/* Attributes
+	---------------------------------------------------------------------- */
 
-                        default:
-                            // e.g. middle
-                            textY = nodePos.y;
-                    }
+	// Support: IE<8
+	// Verify that getAttribute really returns attributes and not properties
+	// (excepting IE8 booleans)
+	support.attributes = assert( function( el ) {
+		el.className = "i";
+		return !el.getAttribute( "className" );
+	} );
 
-                    rs.labelX = textX;
-                    rs.labelY = textY;
-                    rstyle.labelX = textX;
-                    rstyle.labelY = textY;
-                    this.applyLabelDimensions(node);
-                };
+	/* getElement(s)By*
+	---------------------------------------------------------------------- */
 
-                var lineAngleFromDelta = function lineAngleFromDelta(dx, dy) {
-                    var angle = Math.atan(dy / dx);
+	// Check if getElementsByTagName("*") returns only elements
+	support.getElementsByTagName = assert( function( el ) {
+		el.appendChild( document.createComment( "" ) );
+		return !el.getElementsByTagName( "*" ).length;
+	} );
+
+	// Support: IE<9
+	support.getElementsByClassName = rnative.test( document.getElementsByClassName );
+
+	// Support: IE<10
+	// Check if getElementById returns elements by name
+	// The broken getElementById methods don't pick up programmatically-set names,
+	// so use a roundabout getElementsByName test
+	support.getById = assert( function( el ) {
+		docElem.appendChild( el ).id = expando;
+		return !document.getElementsByName || !document.getElementsByName( expando ).length;
+	} );
+
+	// ID filter and find
+	if ( support.getById ) {
+		Expr.filter[ "ID" ] = function( id ) {
+			var attrId = id.replace( runescape, funescape );
+			return function( elem ) {
+				return elem.getAttribute( "id" ) === attrId;
+			};
+		};
+		Expr.find[ "ID" ] = function( id, context ) {
+			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
+				var elem = context.getElementById( id );
+				return elem ? [ elem ] : [];
+			}
+		};
+	} else {
+		Expr.filter[ "ID" ] =  function( id ) {
+			var attrId = id.replace( runescape, funescape );
+			return function( elem ) {
+				var node = typeof elem.getAttributeNode !== "undefined" &&
+					elem.getAttributeNode( "id" );
+				return node && node.value === attrId;
+			};
+		};
+
+		// Support: IE 6 - 7 only
+		// getElementById is not reliable as a find shortcut
+		Expr.find[ "ID" ] = function( id, context ) {
+			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
+				var node, i, elems,
+					elem = context.getElementById( id );
+
+				if ( elem ) {
+
+					// Verify the id attribute
+					node = elem.getAttributeNode( "id" );
+					if ( node && node.value === id ) {
+						return [ elem ];
+					}
+
+					// Fall back on getElementsByName
+					elems = context.getElementsByName( id );
+					i = 0;
+					while ( ( elem = elems[ i++ ] ) ) {
+						node = elem.getAttributeNode( "id" );
+						if ( node && node.value === id ) {
+							return [ elem ];
+						}
+					}
+				}
+
+				return [];
+			}
+		};
+	}
+
+	// Tag
+	Expr.find[ "TAG" ] = support.getElementsByTagName ?
+		function( tag, context ) {
+			if ( typeof context.getElementsByTagName !== "undefined" ) {
+				return context.getElementsByTagName( tag );
+
+			// DocumentFragment nodes don't have gEBTN
+			} else if ( support.qsa ) {
+				return context.querySelectorAll( tag );
+			}
+		} :
+
+		function( tag, context ) {
+			var elem,
+				tmp = [],
+				i = 0,
+
+				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
+				results = context.getElementsByTagName( tag );
+
+			// Filter out possible comments
+			if ( tag === "*" ) {
+				while ( ( elem = results[ i++ ] ) ) {
+					if ( elem.nodeType === 1 ) {
+						tmp.push( elem );
+					}
+				}
+
+				return tmp;
+			}
+			return results;
+		};
+
+	// Class
+	Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) {
+		if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
+			return context.getElementsByClassName( className );
+		}
+	};
+
+	/* QSA/matchesSelector
+	---------------------------------------------------------------------- */
 
-                    if (dx === 0 && angle < 0) {
-                        angle = angle * -1;
-                    }
+	// QSA and matchesSelector support
+
+	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+	rbuggyMatches = [];
+
+	// qSa(:focus) reports false when true (Chrome 21)
+	// We allow this because of a bug in IE8/9 that throws an error
+	// whenever `document.activeElement` is accessed on an iframe
+	// So, we allow :focus to pass through QSA all the time to avoid the IE error
+	// See https://bugs.jquery.com/ticket/13378
+	rbuggyQSA = [];
+
+	if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {
+
+		// Build QSA regex
+		// Regex strategy adopted from Diego Perini
+		assert( function( el ) {
+
+			var input;
+
+			// Select is set to empty string on purpose
+			// This is to test IE's treatment of not explicitly
+			// setting a boolean content attribute,
+			// since its presence should be enough
+			// https://bugs.jquery.com/ticket/12359
+			docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
+				"<select id='" + expando + "-\r\\' msallowcapture=''>" +
+				"<option selected=''></option></select>";
+
+			// Support: IE8, Opera 11-12.16
+			// Nothing should be selected when empty strings follow ^= or $= or *=
+			// The test attribute must be unknown in Opera but "safe" for WinRT
+			// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
+			if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) {
+				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
+			}
+
+			// Support: IE8
+			// Boolean attributes and "value" are not treated correctly
+			if ( !el.querySelectorAll( "[selected]" ).length ) {
+				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
+			}
+
+			// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
+			if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
+				rbuggyQSA.push( "~=" );
+			}
+
+			// Support: IE 11+, Edge 15 - 18+
+			// IE 11/Edge don't find elements on a `[name='']` query in some cases.
+			// Adding a temporary attribute to the document before the selection works
+			// around the issue.
+			// Interestingly, IE 10 & older don't seem to have the issue.
+			input = document.createElement( "input" );
+			input.setAttribute( "name", "" );
+			el.appendChild( input );
+			if ( !el.querySelectorAll( "[name='']" ).length ) {
+				rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" +
+					whitespace + "*(?:''|\"\")" );
+			}
+
+			// Webkit/Opera - :checked should return selected option elements
+			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+			// IE8 throws error here and will not see later tests
+			if ( !el.querySelectorAll( ":checked" ).length ) {
+				rbuggyQSA.push( ":checked" );
+			}
+
+			// Support: Safari 8+, iOS 8+
+			// https://bugs.webkit.org/show_bug.cgi?id=136851
+			// In-page `selector#id sibling-combinator selector` fails
+			if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
+				rbuggyQSA.push( ".#.+[+~]" );
+			}
+
+			// Support: Firefox <=3.6 - 5 only
+			// Old Firefox doesn't throw on a badly-escaped identifier.
+			el.querySelectorAll( "\\\f" );
+			rbuggyQSA.push( "[\\r\\n\\f]" );
+		} );
+
+		assert( function( el ) {
+			el.innerHTML = "<a href='' disabled='disabled'></a>" +
+				"<select disabled='disabled'><option/></select>";
+
+			// Support: Windows 8 Native Apps
+			// The type and name attributes are restricted during .innerHTML assignment
+			var input = document.createElement( "input" );
+			input.setAttribute( "type", "hidden" );
+			el.appendChild( input ).setAttribute( "name", "D" );
+
+			// Support: IE8
+			// Enforce case-sensitivity of name attribute
+			if ( el.querySelectorAll( "[name=d]" ).length ) {
+				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
+			}
+
+			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+			// IE8 throws error here and will not see later tests
+			if ( el.querySelectorAll( ":enabled" ).length !== 2 ) {
+				rbuggyQSA.push( ":enabled", ":disabled" );
+			}
+
+			// Support: IE9-11+
+			// IE's :disabled selector does not pick up the children of disabled fieldsets
+			docElem.appendChild( el ).disabled = true;
+			if ( el.querySelectorAll( ":disabled" ).length !== 2 ) {
+				rbuggyQSA.push( ":enabled", ":disabled" );
+			}
+
+			// Support: Opera 10 - 11 only
+			// Opera 10-11 does not throw on post-comma invalid pseudos
+			el.querySelectorAll( "*,:x" );
+			rbuggyQSA.push( ",.*:" );
+		} );
+	}
+
+	if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||
+		docElem.webkitMatchesSelector ||
+		docElem.mozMatchesSelector ||
+		docElem.oMatchesSelector ||
+		docElem.msMatchesSelector ) ) ) ) {
+
+		assert( function( el ) {
+
+			// Check to see if it's possible to do matchesSelector
+			// on a disconnected node (IE 9)
+			support.disconnectedMatch = matches.call( el, "*" );
+
+			// This should fail with an exception
+			// Gecko does not error, returns false instead
+			matches.call( el, "[s!='']:x" );
+			rbuggyMatches.push( "!=", pseudos );
+		} );
+	}
+
+	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
+	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) );
+
+	/* Contains
+	---------------------------------------------------------------------- */
+	hasCompare = rnative.test( docElem.compareDocumentPosition );
+
+	// Element contains another
+	// Purposefully self-exclusive
+	// As in, an element does not contain itself
+	contains = hasCompare || rnative.test( docElem.contains ) ?
+		function( a, b ) {
+			var adown = a.nodeType === 9 ? a.documentElement : a,
+				bup = b && b.parentNode;
+			return a === bup || !!( bup && bup.nodeType === 1 && (
+				adown.contains ?
+					adown.contains( bup ) :
+					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
+			) );
+		} :
+		function( a, b ) {
+			if ( b ) {
+				while ( ( b = b.parentNode ) ) {
+					if ( b === a ) {
+						return true;
+					}
+				}
+			}
+			return false;
+		};
+
+	/* Sorting
+	---------------------------------------------------------------------- */
 
-                    return angle;
-                };
+	// Document order sorting
+	sortOrder = hasCompare ?
+	function( a, b ) {
+
+		// Flag for duplicate removal
+		if ( a === b ) {
+			hasDuplicate = true;
+			return 0;
+		}
+
+		// Sort on method existence if only one input has compareDocumentPosition
+		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
+		if ( compare ) {
+			return compare;
+		}
+
+		// Calculate position if both inputs belong to the same document
+		// Support: IE 11+, Edge 17 - 18+
+		// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+		// two documents; shallow comparisons work.
+		// eslint-disable-next-line eqeqeq
+		compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?
+			a.compareDocumentPosition( b ) :
+
+			// Otherwise we know they are disconnected
+			1;
+
+		// Disconnected nodes
+		if ( compare & 1 ||
+			( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {
+
+			// Choose the first element that is related to our preferred document
+			// Support: IE 11+, Edge 17 - 18+
+			// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+			// two documents; shallow comparisons work.
+			// eslint-disable-next-line eqeqeq
+			if ( a == document || a.ownerDocument == preferredDoc &&
+				contains( preferredDoc, a ) ) {
+				return -1;
+			}
+
+			// Support: IE 11+, Edge 17 - 18+
+			// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+			// two documents; shallow comparisons work.
+			// eslint-disable-next-line eqeqeq
+			if ( b == document || b.ownerDocument == preferredDoc &&
+				contains( preferredDoc, b ) ) {
+				return 1;
+			}
+
+			// Maintain original order
+			return sortInput ?
+				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+				0;
+		}
+
+		return compare & 4 ? -1 : 1;
+	} :
+	function( a, b ) {
+
+		// Exit early if the nodes are identical
+		if ( a === b ) {
+			hasDuplicate = true;
+			return 0;
+		}
+
+		var cur,
+			i = 0,
+			aup = a.parentNode,
+			bup = b.parentNode,
+			ap = [ a ],
+			bp = [ b ];
+
+		// Parentless nodes are either documents or disconnected
+		if ( !aup || !bup ) {
+
+			// Support: IE 11+, Edge 17 - 18+
+			// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+			// two documents; shallow comparisons work.
+			/* eslint-disable eqeqeq */
+			return a == document ? -1 :
+				b == document ? 1 :
+				/* eslint-enable eqeqeq */
+				aup ? -1 :
+				bup ? 1 :
+				sortInput ?
+				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+				0;
+
+		// If the nodes are siblings, we can do a quick check
+		} else if ( aup === bup ) {
+			return siblingCheck( a, b );
+		}
+
+		// Otherwise we need full lists of their ancestors for comparison
+		cur = a;
+		while ( ( cur = cur.parentNode ) ) {
+			ap.unshift( cur );
+		}
+		cur = b;
+		while ( ( cur = cur.parentNode ) ) {
+			bp.unshift( cur );
+		}
+
+		// Walk down the tree looking for a discrepancy
+		while ( ap[ i ] === bp[ i ] ) {
+			i++;
+		}
+
+		return i ?
+
+			// Do a sibling check if the nodes have a common ancestor
+			siblingCheck( ap[ i ], bp[ i ] ) :
+
+			// Otherwise nodes in our document sort first
+			// Support: IE 11+, Edge 17 - 18+
+			// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+			// two documents; shallow comparisons work.
+			/* eslint-disable eqeqeq */
+			ap[ i ] == preferredDoc ? -1 :
+			bp[ i ] == preferredDoc ? 1 :
+			/* eslint-enable eqeqeq */
+			0;
+	};
+
+	return document;
+};
+
+Sizzle.matches = function( expr, elements ) {
+	return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+	setDocument( elem );
+
+	if ( support.matchesSelector && documentIsHTML &&
+		!nonnativeSelectorCache[ expr + " " ] &&
+		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
+		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
+
+		try {
+			var ret = matches.call( elem, expr );
+
+			// IE 9's matchesSelector returns false on disconnected nodes
+			if ( ret || support.disconnectedMatch ||
+
+				// As well, disconnected nodes are said to be in a document
+				// fragment in IE 9
+				elem.document && elem.document.nodeType !== 11 ) {
+				return ret;
+			}
+		} catch ( e ) {
+			nonnativeSelectorCache( expr, true );
+		}
+	}
+
+	return Sizzle( expr, document, null, [ elem ] ).length > 0;
+};
+
+Sizzle.contains = function( context, elem ) {
+
+	// Set document vars if needed
+	// Support: IE 11+, Edge 17 - 18+
+	// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+	// two documents; shallow comparisons work.
+	// eslint-disable-next-line eqeqeq
+	if ( ( context.ownerDocument || context ) != document ) {
+		setDocument( context );
+	}
+	return contains( context, elem );
+};
+
+Sizzle.attr = function( elem, name ) {
+
+	// Set document vars if needed
+	// Support: IE 11+, Edge 17 - 18+
+	// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+	// two documents; shallow comparisons work.
+	// eslint-disable-next-line eqeqeq
+	if ( ( elem.ownerDocument || elem ) != document ) {
+		setDocument( elem );
+	}
+
+	var fn = Expr.attrHandle[ name.toLowerCase() ],
+
+		// Don't get fooled by Object.prototype properties (jQuery #13807)
+		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
+			fn( elem, name, !documentIsHTML ) :
+			undefined;
+
+	return val !== undefined ?
+		val :
+		support.attributes || !documentIsHTML ?
+			elem.getAttribute( name ) :
+			( val = elem.getAttributeNode( name ) ) && val.specified ?
+				val.value :
+				null;
+};
+
+Sizzle.escape = function( sel ) {
+	return ( sel + "" ).replace( rcssescape, fcssescape );
+};
+
+Sizzle.error = function( msg ) {
+	throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Document sorting and removing duplicates
+ * @param {ArrayLike} results
+ */
+Sizzle.uniqueSort = function( results ) {
+	var elem,
+		duplicates = [],
+		j = 0,
+		i = 0;
+
+	// Unless we *know* we can detect duplicates, assume their presence
+	hasDuplicate = !support.detectDuplicates;
+	sortInput = !support.sortStable && results.slice( 0 );
+	results.sort( sortOrder );
+
+	if ( hasDuplicate ) {
+		while ( ( elem = results[ i++ ] ) ) {
+			if ( elem === results[ i ] ) {
+				j = duplicates.push( i );
+			}
+		}
+		while ( j-- ) {
+			results.splice( duplicates[ j ], 1 );
+		}
+	}
+
+	// Clear input after sorting to release objects
+	// See https://github.com/jquery/sizzle/pull/225
+	sortInput = null;
+
+	return results;
+};
+
+/**
+ * Utility function for retrieving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+getText = Sizzle.getText = function( elem ) {
+	var node,
+		ret = "",
+		i = 0,
+		nodeType = elem.nodeType;
 
-                var lineAngle = function lineAngle(p0, p1) {
-                    var dx = p1.x - p0.x;
-                    var dy = p1.y - p0.y;
-                    return lineAngleFromDelta(dx, dy);
-                };
+	if ( !nodeType ) {
 
-                var bezierAngle = function bezierAngle(p0, p1, p2, t) {
-                    var t0 = bound(0, t - 0.001, 1);
-                    var t1 = bound(0, t + 0.001, 1);
-                    var lp0 = qbezierPtAt(p0, p1, p2, t0);
-                    var lp1 = qbezierPtAt(p0, p1, p2, t1);
-                    return lineAngle(lp0, lp1);
-                };
+		// If no nodeType, this is expected to be an array
+		while ( ( node = elem[ i++ ] ) ) {
 
-                BRp$6.recalculateEdgeLabelProjections = function (edge) {
-                    var p;
-                    var _p = edge._private;
-                    var rs = _p.rscratch;
-                    var r = this;
-                    var content = {
-                        mid: edge.pstyle('label').strValue,
-                        source: edge.pstyle('source-label').strValue,
-                        target: edge.pstyle('target-label').strValue
-                    };
-
-                    if (content.mid || content.source || content.target) ; else {
-                        return; // no labels => no calcs
-                    } // add center point to style so bounding box calculations can use it
-                    //
-
-
-                    p = {
-                        x: rs.midX,
-                        y: rs.midY
-                    };
-
-                    var setRs = function setRs(propName, prefix, value) {
-                        setPrefixedProperty(_p.rscratch, propName, prefix, value);
-                        setPrefixedProperty(_p.rstyle, propName, prefix, value);
-                    };
-
-                    setRs('labelX', null, p.x);
-                    setRs('labelY', null, p.y);
-                    var midAngle = lineAngleFromDelta(rs.midDispX, rs.midDispY);
-                    setRs('labelAutoAngle', null, midAngle);
-
-                    var createControlPointInfo = function createControlPointInfo() {
-                        if (createControlPointInfo.cache) {
-                            return createControlPointInfo.cache;
-                        } // use cache so only 1x per edge
-
-
-                        var ctrlpts = []; // store each ctrlpt info init
-
-                        for (var i = 0; i + 5 < rs.allpts.length; i += 4) {
-                            var p0 = {
-                                x: rs.allpts[i],
-                                y: rs.allpts[i + 1]
-                            };
-                            var p1 = {
-                                x: rs.allpts[i + 2],
-                                y: rs.allpts[i + 3]
-                            }; // ctrlpt
-
-                            var p2 = {
-                                x: rs.allpts[i + 4],
-                                y: rs.allpts[i + 5]
-                            };
-                            ctrlpts.push({
-                                p0: p0,
-                                p1: p1,
-                                p2: p2,
-                                startDist: 0,
-                                length: 0,
-                                segments: []
-                            });
-                        }
+			// Do not traverse comment nodes
+			ret += getText( node );
+		}
+	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
 
-                        var bpts = _p.rstyle.bezierPts;
-                        var nProjs = r.bezierProjPcts.length;
-
-                        function addSegment(cp, p0, p1, t0, t1) {
-                            var length = dist(p0, p1);
-                            var prevSegment = cp.segments[cp.segments.length - 1];
-                            var segment = {
-                                p0: p0,
-                                p1: p1,
-                                t0: t0,
-                                t1: t1,
-                                startDist: prevSegment ? prevSegment.startDist + prevSegment.length : 0,
-                                length: length
-                            };
-                            cp.segments.push(segment);
-                            cp.length += length;
-                        } // update each ctrlpt with segment info
-
-
-                        for (var _i = 0; _i < ctrlpts.length; _i++) {
-                            var cp = ctrlpts[_i];
-                            var prevCp = ctrlpts[_i - 1];
-
-                            if (prevCp) {
-                                cp.startDist = prevCp.startDist + prevCp.length;
-                            }
+		// Use textContent for elements
+		// innerText usage removed for consistency of new lines (jQuery #11153)
+		if ( typeof elem.textContent === "string" ) {
+			return elem.textContent;
+		} else {
 
-                            addSegment(cp, cp.p0, bpts[_i * nProjs], 0, r.bezierProjPcts[0]); // first
+			// Traverse its children
+			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+				ret += getText( elem );
+			}
+		}
+	} else if ( nodeType === 3 || nodeType === 4 ) {
+		return elem.nodeValue;
+	}
 
-                            for (var j = 0; j < nProjs - 1; j++) {
-                                addSegment(cp, bpts[_i * nProjs + j], bpts[_i * nProjs + j + 1], r.bezierProjPcts[j], r.bezierProjPcts[j + 1]);
-                            }
+	// Do not include comment or processing instruction nodes
 
-                            addSegment(cp, bpts[_i * nProjs + nProjs - 1], cp.p2, r.bezierProjPcts[nProjs - 1], 1); // last
-                        }
+	return ret;
+};
 
-                        return createControlPointInfo.cache = ctrlpts;
-                    };
+Expr = Sizzle.selectors = {
 
-                    var calculateEndProjection = function calculateEndProjection(prefix) {
-                        var angle;
-                        var isSrc = prefix === 'source';
+	// Can be adjusted by the user
+	cacheLength: 50,
 
-                        if (!content[prefix]) {
-                            return;
-                        }
+	createPseudo: markFunction,
 
-                        var offset = edge.pstyle(prefix + '-text-offset').pfValue;
-
-                        switch (rs.edgeType) {
-                            case 'self':
-                            case 'compound':
-                            case 'bezier':
-                            case 'multibezier':
-                            {
-                                var cps = createControlPointInfo();
-                                var selected;
-                                var startDist = 0;
-                                var totalDist = 0; // find the segment we're on
-
-                                for (var i = 0; i < cps.length; i++) {
-                                    var _cp = cps[isSrc ? i : cps.length - 1 - i];
-
-                                    for (var j = 0; j < _cp.segments.length; j++) {
-                                        var _seg = _cp.segments[isSrc ? j : _cp.segments.length - 1 - j];
-                                        var lastSeg = i === cps.length - 1 && j === _cp.segments.length - 1;
-                                        startDist = totalDist;
-                                        totalDist += _seg.length;
-
-                                        if (totalDist >= offset || lastSeg) {
-                                            selected = {
-                                                cp: _cp,
-                                                segment: _seg
-                                            };
-                                            break;
-                                        }
-                                    }
-
-                                    if (selected) {
-                                        break;
-                                    }
-                                }
-
-                                var cp = selected.cp;
-                                var seg = selected.segment;
-                                var tSegment = (offset - startDist) / seg.length;
-                                var segDt = seg.t1 - seg.t0;
-                                var t = isSrc ? seg.t0 + segDt * tSegment : seg.t1 - segDt * tSegment;
-                                t = bound(0, t, 1);
-                                p = qbezierPtAt(cp.p0, cp.p1, cp.p2, t);
-                                angle = bezierAngle(cp.p0, cp.p1, cp.p2, t);
-                                break;
-                            }
+	match: matchExpr,
 
-                            case 'straight':
-                            case 'segments':
-                            case 'haystack':
-                            {
-                                var d = 0,
-                                    di,
-                                    d0;
-                                var p0, p1;
-                                var l = rs.allpts.length;
-
-                                for (var _i2 = 0; _i2 + 3 < l; _i2 += 2) {
-                                    if (isSrc) {
-                                        p0 = {
-                                            x: rs.allpts[_i2],
-                                            y: rs.allpts[_i2 + 1]
-                                        };
-                                        p1 = {
-                                            x: rs.allpts[_i2 + 2],
-                                            y: rs.allpts[_i2 + 3]
-                                        };
-                                    } else {
-                                        p0 = {
-                                            x: rs.allpts[l - 2 - _i2],
-                                            y: rs.allpts[l - 1 - _i2]
-                                        };
-                                        p1 = {
-                                            x: rs.allpts[l - 4 - _i2],
-                                            y: rs.allpts[l - 3 - _i2]
-                                        };
-                                    }
-
-                                    di = dist(p0, p1);
-                                    d0 = d;
-                                    d += di;
-
-                                    if (d >= offset) {
-                                        break;
-                                    }
-                                }
-
-                                var pD = offset - d0;
-
-                                var _t = pD / di;
-
-                                _t = bound(0, _t, 1);
-                                p = lineAt(p0, p1, _t);
-                                angle = lineAngle(p0, p1);
-                                break;
-                            }
-                        }
+	attrHandle: {},
 
-                        setRs('labelX', prefix, p.x);
-                        setRs('labelY', prefix, p.y);
-                        setRs('labelAutoAngle', prefix, angle);
-                    };
+	find: {},
 
-                    calculateEndProjection('source');
-                    calculateEndProjection('target');
-                    this.applyLabelDimensions(edge);
-                };
+	relative: {
+		">": { dir: "parentNode", first: true },
+		" ": { dir: "parentNode" },
+		"+": { dir: "previousSibling", first: true },
+		"~": { dir: "previousSibling" }
+	},
 
-                BRp$6.applyLabelDimensions = function (ele) {
-                    this.applyPrefixedLabelDimensions(ele);
+	preFilter: {
+		"ATTR": function( match ) {
+			match[ 1 ] = match[ 1 ].replace( runescape, funescape );
 
-                    if (ele.isEdge()) {
-                        this.applyPrefixedLabelDimensions(ele, 'source');
-                        this.applyPrefixedLabelDimensions(ele, 'target');
-                    }
-                };
+			// Move the given value to match[3] whether quoted or unquoted
+			match[ 3 ] = ( match[ 3 ] || match[ 4 ] ||
+				match[ 5 ] || "" ).replace( runescape, funescape );
 
-                BRp$6.applyPrefixedLabelDimensions = function (ele, prefix) {
-                    var _p = ele._private;
-                    var text = this.getLabelText(ele, prefix);
-                    var labelDims = this.calculateLabelDimensions(ele, text);
-                    var lineHeight = ele.pstyle('line-height').pfValue;
-                    var textWrap = ele.pstyle('text-wrap').strValue;
-                    var lines = getPrefixedProperty(_p.rscratch, 'labelWrapCachedLines', prefix) || [];
-                    var numLines = textWrap !== 'wrap' ? 1 : Math.max(lines.length, 1);
-                    var normPerLineHeight = labelDims.height / numLines;
-                    var labelLineHeight = normPerLineHeight * lineHeight;
-                    var width = labelDims.width;
-                    var height = labelDims.height + (numLines - 1) * (lineHeight - 1) * normPerLineHeight;
-                    setPrefixedProperty(_p.rstyle, 'labelWidth', prefix, width);
-                    setPrefixedProperty(_p.rscratch, 'labelWidth', prefix, width);
-                    setPrefixedProperty(_p.rstyle, 'labelHeight', prefix, height);
-                    setPrefixedProperty(_p.rscratch, 'labelHeight', prefix, height);
-                    setPrefixedProperty(_p.rscratch, 'labelLineHeight', prefix, labelLineHeight);
-                };
+			if ( match[ 2 ] === "~=" ) {
+				match[ 3 ] = " " + match[ 3 ] + " ";
+			}
 
-                BRp$6.getLabelText = function (ele, prefix) {
-                    var _p = ele._private;
-                    var pfd = prefix ? prefix + '-' : '';
-                    var text = ele.pstyle(pfd + 'label').strValue;
-                    var textTransform = ele.pstyle('text-transform').value;
-
-                    var rscratch = function rscratch(propName, value) {
-                        if (value) {
-                            setPrefixedProperty(_p.rscratch, propName, prefix, value);
-                            return value;
-                        } else {
-                            return getPrefixedProperty(_p.rscratch, propName, prefix);
-                        }
-                    }; // for empty text, skip all processing
+			return match.slice( 0, 4 );
+		},
 
+		"CHILD": function( match ) {
 
-                    if (!text) {
-                        return '';
-                    }
+			/* matches from matchExpr["CHILD"]
+				1 type (only|nth|...)
+				2 what (child|of-type)
+				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+				4 xn-component of xn+y argument ([+-]?\d*n|)
+				5 sign of xn-component
+				6 x of xn-component
+				7 sign of y-component
+				8 y of y-component
+			*/
+			match[ 1 ] = match[ 1 ].toLowerCase();
+
+			if ( match[ 1 ].slice( 0, 3 ) === "nth" ) {
+
+				// nth-* requires argument
+				if ( !match[ 3 ] ) {
+					Sizzle.error( match[ 0 ] );
+				}
+
+				// numeric x and y parameters for Expr.filter.CHILD
+				// remember that false/true cast respectively to 0/1
+				match[ 4 ] = +( match[ 4 ] ?
+					match[ 5 ] + ( match[ 6 ] || 1 ) :
+					2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) );
+				match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" );
+
+				// other types prohibit arguments
+			} else if ( match[ 3 ] ) {
+				Sizzle.error( match[ 0 ] );
+			}
+
+			return match;
+		},
+
+		"PSEUDO": function( match ) {
+			var excess,
+				unquoted = !match[ 6 ] && match[ 2 ];
+
+			if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) {
+				return null;
+			}
+
+			// Accept quoted arguments as-is
+			if ( match[ 3 ] ) {
+				match[ 2 ] = match[ 4 ] || match[ 5 ] || "";
+
+			// Strip excess characters from unquoted arguments
+			} else if ( unquoted && rpseudo.test( unquoted ) &&
+
+				// Get excess from tokenize (recursively)
+				( excess = tokenize( unquoted, true ) ) &&
+
+				// advance to the next closing parenthesis
+				( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) {
+
+				// excess is a negative index
+				match[ 0 ] = match[ 0 ].slice( 0, excess );
+				match[ 2 ] = unquoted.slice( 0, excess );
+			}
+
+			// Return only captures needed by the pseudo filter method (type and argument)
+			return match.slice( 0, 3 );
+		}
+	},
+
+	filter: {
+
+		"TAG": function( nodeNameSelector ) {
+			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
+			return nodeNameSelector === "*" ?
+				function() {
+					return true;
+				} :
+				function( elem ) {
+					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+				};
+		},
+
+		"CLASS": function( className ) {
+			var pattern = classCache[ className + " " ];
+
+			return pattern ||
+				( pattern = new RegExp( "(^|" + whitespace +
+					")" + className + "(" + whitespace + "|$)" ) ) && classCache(
+						className, function( elem ) {
+							return pattern.test(
+								typeof elem.className === "string" && elem.className ||
+								typeof elem.getAttribute !== "undefined" &&
+									elem.getAttribute( "class" ) ||
+								""
+							);
+				} );
+		},
+
+		"ATTR": function( name, operator, check ) {
+			return function( elem ) {
+				var result = Sizzle.attr( elem, name );
+
+				if ( result == null ) {
+					return operator === "!=";
+				}
+				if ( !operator ) {
+					return true;
+				}
+
+				result += "";
+
+				/* eslint-disable max-len */
+
+				return operator === "=" ? result === check :
+					operator === "!=" ? result !== check :
+					operator === "^=" ? check && result.indexOf( check ) === 0 :
+					operator === "*=" ? check && result.indexOf( check ) > -1 :
+					operator === "$=" ? check && result.slice( -check.length ) === check :
+					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
+					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
+					false;
+				/* eslint-enable max-len */
+
+			};
+		},
+
+		"CHILD": function( type, what, _argument, first, last ) {
+			var simple = type.slice( 0, 3 ) !== "nth",
+				forward = type.slice( -4 ) !== "last",
+				ofType = what === "of-type";
+
+			return first === 1 && last === 0 ?
+
+				// Shortcut for :nth-*(n)
+				function( elem ) {
+					return !!elem.parentNode;
+				} :
+
+				function( elem, _context, xml ) {
+					var cache, uniqueCache, outerCache, node, nodeIndex, start,
+						dir = simple !== forward ? "nextSibling" : "previousSibling",
+						parent = elem.parentNode,
+						name = ofType && elem.nodeName.toLowerCase(),
+						useCache = !xml && !ofType,
+						diff = false;
+
+					if ( parent ) {
+
+						// :(first|last|only)-(child|of-type)
+						if ( simple ) {
+							while ( dir ) {
+								node = elem;
+								while ( ( node = node[ dir ] ) ) {
+									if ( ofType ?
+										node.nodeName.toLowerCase() === name :
+										node.nodeType === 1 ) {
+
+										return false;
+									}
+								}
+
+								// Reverse direction for :only-* (if we haven't yet done so)
+								start = dir = type === "only" && !start && "nextSibling";
+							}
+							return true;
+						}
+
+						start = [ forward ? parent.firstChild : parent.lastChild ];
+
+						// non-xml :nth-child(...) stores cache data on `parent`
+						if ( forward && useCache ) {
+
+							// Seek `elem` from a previously-cached index
+
+							// ...in a gzip-friendly way
+							node = parent;
+							outerCache = node[ expando ] || ( node[ expando ] = {} );
+
+							// Support: IE <9 only
+							// Defend against cloned attroperties (jQuery gh-1709)
+							uniqueCache = outerCache[ node.uniqueID ] ||
+								( outerCache[ node.uniqueID ] = {} );
+
+							cache = uniqueCache[ type ] || [];
+							nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+							diff = nodeIndex && cache[ 2 ];
+							node = nodeIndex && parent.childNodes[ nodeIndex ];
+
+							while ( ( node = ++nodeIndex && node && node[ dir ] ||
+
+								// Fallback to seeking `elem` from the start
+								( diff = nodeIndex = 0 ) || start.pop() ) ) {
+
+								// When found, cache indexes on `parent` and break
+								if ( node.nodeType === 1 && ++diff && node === elem ) {
+									uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
+									break;
+								}
+							}
+
+						} else {
+
+							// Use previously-cached element index if available
+							if ( useCache ) {
+
+								// ...in a gzip-friendly way
+								node = elem;
+								outerCache = node[ expando ] || ( node[ expando ] = {} );
+
+								// Support: IE <9 only
+								// Defend against cloned attroperties (jQuery gh-1709)
+								uniqueCache = outerCache[ node.uniqueID ] ||
+									( outerCache[ node.uniqueID ] = {} );
+
+								cache = uniqueCache[ type ] || [];
+								nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+								diff = nodeIndex;
+							}
+
+							// xml :nth-child(...)
+							// or :nth-last-child(...) or :nth(-last)?-of-type(...)
+							if ( diff === false ) {
+
+								// Use the same loop as above to seek `elem` from the start
+								while ( ( node = ++nodeIndex && node && node[ dir ] ||
+									( diff = nodeIndex = 0 ) || start.pop() ) ) {
+
+									if ( ( ofType ?
+										node.nodeName.toLowerCase() === name :
+										node.nodeType === 1 ) &&
+										++diff ) {
+
+										// Cache the index of each encountered element
+										if ( useCache ) {
+											outerCache = node[ expando ] ||
+												( node[ expando ] = {} );
+
+											// Support: IE <9 only
+											// Defend against cloned attroperties (jQuery gh-1709)
+											uniqueCache = outerCache[ node.uniqueID ] ||
+												( outerCache[ node.uniqueID ] = {} );
+
+											uniqueCache[ type ] = [ dirruns, diff ];
+										}
+
+										if ( node === elem ) {
+											break;
+										}
+									}
+								}
+							}
+						}
+
+						// Incorporate the offset, then check against cycle size
+						diff -= last;
+						return diff === first || ( diff % first === 0 && diff / first >= 0 );
+					}
+				};
+		},
+
+		"PSEUDO": function( pseudo, argument ) {
+
+			// pseudo-class names are case-insensitive
+			// http://www.w3.org/TR/selectors/#pseudo-classes
+			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
+			// Remember that setFilters inherits from pseudos
+			var args,
+				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
+					Sizzle.error( "unsupported pseudo: " + pseudo );
+
+			// The user may use createPseudo to indicate that
+			// arguments are needed to create the filter function
+			// just as Sizzle does
+			if ( fn[ expando ] ) {
+				return fn( argument );
+			}
+
+			// But maintain support for old signatures
+			if ( fn.length > 1 ) {
+				args = [ pseudo, pseudo, "", argument ];
+				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
+					markFunction( function( seed, matches ) {
+						var idx,
+							matched = fn( seed, argument ),
+							i = matched.length;
+						while ( i-- ) {
+							idx = indexOf( seed, matched[ i ] );
+							seed[ idx ] = !( matches[ idx ] = matched[ i ] );
+						}
+					} ) :
+					function( elem ) {
+						return fn( elem, 0, args );
+					};
+			}
+
+			return fn;
+		}
+	},
+
+	pseudos: {
+
+		// Potentially complex pseudos
+		"not": markFunction( function( selector ) {
+
+			// Trim the selector passed to compile
+			// to avoid treating leading and trailing
+			// spaces as combinators
+			var input = [],
+				results = [],
+				matcher = compile( selector.replace( rtrim, "$1" ) );
+
+			return matcher[ expando ] ?
+				markFunction( function( seed, matches, _context, xml ) {
+					var elem,
+						unmatched = matcher( seed, null, xml, [] ),
+						i = seed.length;
+
+					// Match elements unmatched by `matcher`
+					while ( i-- ) {
+						if ( ( elem = unmatched[ i ] ) ) {
+							seed[ i ] = !( matches[ i ] = elem );
+						}
+					}
+				} ) :
+				function( elem, _context, xml ) {
+					input[ 0 ] = elem;
+					matcher( input, null, xml, results );
+
+					// Don't keep the element (issue #299)
+					input[ 0 ] = null;
+					return !results.pop();
+				};
+		} ),
+
+		"has": markFunction( function( selector ) {
+			return function( elem ) {
+				return Sizzle( selector, elem ).length > 0;
+			};
+		} ),
+
+		"contains": markFunction( function( text ) {
+			text = text.replace( runescape, funescape );
+			return function( elem ) {
+				return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;
+			};
+		} ),
+
+		// "Whether an element is represented by a :lang() selector
+		// is based solely on the element's language value
+		// being equal to the identifier C,
+		// or beginning with the identifier C immediately followed by "-".
+		// The matching of C against the element's language value is performed case-insensitively.
+		// The identifier C does not have to be a valid language name."
+		// http://www.w3.org/TR/selectors/#lang-pseudo
+		"lang": markFunction( function( lang ) {
+
+			// lang value must be a valid identifier
+			if ( !ridentifier.test( lang || "" ) ) {
+				Sizzle.error( "unsupported lang: " + lang );
+			}
+			lang = lang.replace( runescape, funescape ).toLowerCase();
+			return function( elem ) {
+				var elemLang;
+				do {
+					if ( ( elemLang = documentIsHTML ?
+						elem.lang :
+						elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) {
+
+						elemLang = elemLang.toLowerCase();
+						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
+					}
+				} while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );
+				return false;
+			};
+		} ),
+
+		// Miscellaneous
+		"target": function( elem ) {
+			var hash = window.location && window.location.hash;
+			return hash && hash.slice( 1 ) === elem.id;
+		},
+
+		"root": function( elem ) {
+			return elem === docElem;
+		},
+
+		"focus": function( elem ) {
+			return elem === document.activeElement &&
+				( !document.hasFocus || document.hasFocus() ) &&
+				!!( elem.type || elem.href || ~elem.tabIndex );
+		},
+
+		// Boolean properties
+		"enabled": createDisabledPseudo( false ),
+		"disabled": createDisabledPseudo( true ),
+
+		"checked": function( elem ) {
+
+			// In CSS3, :checked should return both checked and selected elements
+			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+			var nodeName = elem.nodeName.toLowerCase();
+			return ( nodeName === "input" && !!elem.checked ) ||
+				( nodeName === "option" && !!elem.selected );
+		},
+
+		"selected": function( elem ) {
+
+			// Accessing this property makes selected-by-default
+			// options in Safari work properly
+			if ( elem.parentNode ) {
+				// eslint-disable-next-line no-unused-expressions
+				elem.parentNode.selectedIndex;
+			}
+
+			return elem.selected === true;
+		},
+
+		// Contents
+		"empty": function( elem ) {
+
+			// http://www.w3.org/TR/selectors/#empty-pseudo
+			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
+			//   but not by others (comment: 8; processing instruction: 7; etc.)
+			// nodeType < 6 works because attributes (2) do not appear as children
+			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+				if ( elem.nodeType < 6 ) {
+					return false;
+				}
+			}
+			return true;
+		},
+
+		"parent": function( elem ) {
+			return !Expr.pseudos[ "empty" ]( elem );
+		},
+
+		// Element/input types
+		"header": function( elem ) {
+			return rheader.test( elem.nodeName );
+		},
+
+		"input": function( elem ) {
+			return rinputs.test( elem.nodeName );
+		},
+
+		"button": function( elem ) {
+			var name = elem.nodeName.toLowerCase();
+			return name === "input" && elem.type === "button" || name === "button";
+		},
+
+		"text": function( elem ) {
+			var attr;
+			return elem.nodeName.toLowerCase() === "input" &&
+				elem.type === "text" &&
+
+				// Support: IE<8
+				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
+				( ( attr = elem.getAttribute( "type" ) ) == null ||
+					attr.toLowerCase() === "text" );
+		},
+
+		// Position-in-collection
+		"first": createPositionalPseudo( function() {
+			return [ 0 ];
+		} ),
+
+		"last": createPositionalPseudo( function( _matchIndexes, length ) {
+			return [ length - 1 ];
+		} ),
+
+		"eq": createPositionalPseudo( function( _matchIndexes, length, argument ) {
+			return [ argument < 0 ? argument + length : argument ];
+		} ),
+
+		"even": createPositionalPseudo( function( matchIndexes, length ) {
+			var i = 0;
+			for ( ; i < length; i += 2 ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		} ),
+
+		"odd": createPositionalPseudo( function( matchIndexes, length ) {
+			var i = 1;
+			for ( ; i < length; i += 2 ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		} ),
+
+		"lt": createPositionalPseudo( function( matchIndexes, length, argument ) {
+			var i = argument < 0 ?
+				argument + length :
+				argument > length ?
+					length :
+					argument;
+			for ( ; --i >= 0; ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		} ),
+
+		"gt": createPositionalPseudo( function( matchIndexes, length, argument ) {
+			var i = argument < 0 ? argument + length : argument;
+			for ( ; ++i < length; ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		} )
+	}
+};
+
+Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ];
 
-                    if (textTransform == 'none') ; else if (textTransform == 'uppercase') {
-                        text = text.toUpperCase();
-                    } else if (textTransform == 'lowercase') {
-                        text = text.toLowerCase();
-                    }
+// Add button/input type pseudos
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
+	Expr.pseudos[ i ] = createInputPseudo( i );
+}
+for ( i in { submit: true, reset: true } ) {
+	Expr.pseudos[ i ] = createButtonPseudo( i );
+}
 
-                    var wrapStyle = ele.pstyle('text-wrap').value;
+// Easy API for creating new setFilters
+function setFilters() {}
+setFilters.prototype = Expr.filters = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
+	var matched, match, tokens, type,
+		soFar, groups, preFilters,
+		cached = tokenCache[ selector + " " ];
+
+	if ( cached ) {
+		return parseOnly ? 0 : cached.slice( 0 );
+	}
+
+	soFar = selector;
+	groups = [];
+	preFilters = Expr.preFilter;
+
+	while ( soFar ) {
+
+		// Comma and first run
+		if ( !matched || ( match = rcomma.exec( soFar ) ) ) {
+			if ( match ) {
+
+				// Don't consume trailing commas as valid
+				soFar = soFar.slice( match[ 0 ].length ) || soFar;
+			}
+			groups.push( ( tokens = [] ) );
+		}
+
+		matched = false;
+
+		// Combinators
+		if ( ( match = rcombinators.exec( soFar ) ) ) {
+			matched = match.shift();
+			tokens.push( {
+				value: matched,
+
+				// Cast descendant combinators to space
+				type: match[ 0 ].replace( rtrim, " " )
+			} );
+			soFar = soFar.slice( matched.length );
+		}
+
+		// Filters
+		for ( type in Expr.filter ) {
+			if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||
+				( match = preFilters[ type ]( match ) ) ) ) {
+				matched = match.shift();
+				tokens.push( {
+					value: matched,
+					type: type,
+					matches: match
+				} );
+				soFar = soFar.slice( matched.length );
+			}
+		}
+
+		if ( !matched ) {
+			break;
+		}
+	}
+
+	// Return the length of the invalid excess
+	// if we're just parsing
+	// Otherwise, throw an error or return tokens
+	return parseOnly ?
+		soFar.length :
+		soFar ?
+			Sizzle.error( selector ) :
+
+			// Cache the tokens
+			tokenCache( selector, groups ).slice( 0 );
+};
+
+function toSelector( tokens ) {
+	var i = 0,
+		len = tokens.length,
+		selector = "";
+	for ( ; i < len; i++ ) {
+		selector += tokens[ i ].value;
+	}
+	return selector;
+}
+
+function addCombinator( matcher, combinator, base ) {
+	var dir = combinator.dir,
+		skip = combinator.next,
+		key = skip || dir,
+		checkNonElements = base && key === "parentNode",
+		doneName = done++;
+
+	return combinator.first ?
+
+		// Check against closest ancestor/preceding element
+		function( elem, context, xml ) {
+			while ( ( elem = elem[ dir ] ) ) {
+				if ( elem.nodeType === 1 || checkNonElements ) {
+					return matcher( elem, context, xml );
+				}
+			}
+			return false;
+		} :
+
+		// Check against all ancestor/preceding elements
+		function( elem, context, xml ) {
+			var oldCache, uniqueCache, outerCache,
+				newCache = [ dirruns, doneName ];
+
+			// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
+			if ( xml ) {
+				while ( ( elem = elem[ dir ] ) ) {
+					if ( elem.nodeType === 1 || checkNonElements ) {
+						if ( matcher( elem, context, xml ) ) {
+							return true;
+						}
+					}
+				}
+			} else {
+				while ( ( elem = elem[ dir ] ) ) {
+					if ( elem.nodeType === 1 || checkNonElements ) {
+						outerCache = elem[ expando ] || ( elem[ expando ] = {} );
+
+						// Support: IE <9 only
+						// Defend against cloned attroperties (jQuery gh-1709)
+						uniqueCache = outerCache[ elem.uniqueID ] ||
+							( outerCache[ elem.uniqueID ] = {} );
+
+						if ( skip && skip === elem.nodeName.toLowerCase() ) {
+							elem = elem[ dir ] || elem;
+						} else if ( ( oldCache = uniqueCache[ key ] ) &&
+							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
+
+							// Assign to newCache so results back-propagate to previous elements
+							return ( newCache[ 2 ] = oldCache[ 2 ] );
+						} else {
+
+							// Reuse newcache so results back-propagate to previous elements
+							uniqueCache[ key ] = newCache;
+
+							// A match means we're done; a fail means we have to keep checking
+							if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
+								return true;
+							}
+						}
+					}
+				}
+			}
+			return false;
+		};
+}
+
+function elementMatcher( matchers ) {
+	return matchers.length > 1 ?
+		function( elem, context, xml ) {
+			var i = matchers.length;
+			while ( i-- ) {
+				if ( !matchers[ i ]( elem, context, xml ) ) {
+					return false;
+				}
+			}
+			return true;
+		} :
+		matchers[ 0 ];
+}
+
+function multipleContexts( selector, contexts, results ) {
+	var i = 0,
+		len = contexts.length;
+	for ( ; i < len; i++ ) {
+		Sizzle( selector, contexts[ i ], results );
+	}
+	return results;
+}
+
+function condense( unmatched, map, filter, context, xml ) {
+	var elem,
+		newUnmatched = [],
+		i = 0,
+		len = unmatched.length,
+		mapped = map != null;
+
+	for ( ; i < len; i++ ) {
+		if ( ( elem = unmatched[ i ] ) ) {
+			if ( !filter || filter( elem, context, xml ) ) {
+				newUnmatched.push( elem );
+				if ( mapped ) {
+					map.push( i );
+				}
+			}
+		}
+	}
+
+	return newUnmatched;
+}
+
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
+	if ( postFilter && !postFilter[ expando ] ) {
+		postFilter = setMatcher( postFilter );
+	}
+	if ( postFinder && !postFinder[ expando ] ) {
+		postFinder = setMatcher( postFinder, postSelector );
+	}
+	return markFunction( function( seed, results, context, xml ) {
+		var temp, i, elem,
+			preMap = [],
+			postMap = [],
+			preexisting = results.length,
+
+			// Get initial elements from seed or context
+			elems = seed || multipleContexts(
+				selector || "*",
+				context.nodeType ? [ context ] : context,
+				[]
+			),
+
+			// Prefilter to get matcher input, preserving a map for seed-results synchronization
+			matcherIn = preFilter && ( seed || !selector ) ?
+				condense( elems, preMap, preFilter, context, xml ) :
+				elems,
+
+			matcherOut = matcher ?
+
+				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
+				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
+
+					// ...intermediate processing is necessary
+					[] :
+
+					// ...otherwise use results directly
+					results :
+				matcherIn;
+
+		// Find primary matches
+		if ( matcher ) {
+			matcher( matcherIn, matcherOut, context, xml );
+		}
+
+		// Apply postFilter
+		if ( postFilter ) {
+			temp = condense( matcherOut, postMap );
+			postFilter( temp, [], context, xml );
+
+			// Un-match failing elements by moving them back to matcherIn
+			i = temp.length;
+			while ( i-- ) {
+				if ( ( elem = temp[ i ] ) ) {
+					matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );
+				}
+			}
+		}
+
+		if ( seed ) {
+			if ( postFinder || preFilter ) {
+				if ( postFinder ) {
+
+					// Get the final matcherOut by condensing this intermediate into postFinder contexts
+					temp = [];
+					i = matcherOut.length;
+					while ( i-- ) {
+						if ( ( elem = matcherOut[ i ] ) ) {
+
+							// Restore matcherIn since elem is not yet a final match
+							temp.push( ( matcherIn[ i ] = elem ) );
+						}
+					}
+					postFinder( null, ( matcherOut = [] ), temp, xml );
+				}
+
+				// Move matched elements from seed to results to keep them synchronized
+				i = matcherOut.length;
+				while ( i-- ) {
+					if ( ( elem = matcherOut[ i ] ) &&
+						( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {
+
+						seed[ temp ] = !( results[ temp ] = elem );
+					}
+				}
+			}
+
+		// Add elements to results, through postFinder if defined
+		} else {
+			matcherOut = condense(
+				matcherOut === results ?
+					matcherOut.splice( preexisting, matcherOut.length ) :
+					matcherOut
+			);
+			if ( postFinder ) {
+				postFinder( null, results, matcherOut, xml );
+			} else {
+				push.apply( results, matcherOut );
+			}
+		}
+	} );
+}
+
+function matcherFromTokens( tokens ) {
+	var checkContext, matcher, j,
+		len = tokens.length,
+		leadingRelative = Expr.relative[ tokens[ 0 ].type ],
+		implicitRelative = leadingRelative || Expr.relative[ " " ],
+		i = leadingRelative ? 1 : 0,
+
+		// The foundational matcher ensures that elements are reachable from top-level context(s)
+		matchContext = addCombinator( function( elem ) {
+			return elem === checkContext;
+		}, implicitRelative, true ),
+		matchAnyContext = addCombinator( function( elem ) {
+			return indexOf( checkContext, elem ) > -1;
+		}, implicitRelative, true ),
+		matchers = [ function( elem, context, xml ) {
+			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
+				( checkContext = context ).nodeType ?
+					matchContext( elem, context, xml ) :
+					matchAnyContext( elem, context, xml ) );
+
+			// Avoid hanging onto element (issue #299)
+			checkContext = null;
+			return ret;
+		} ];
+
+	for ( ; i < len; i++ ) {
+		if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {
+			matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];
+		} else {
+			matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
+
+			// Return special upon seeing a positional matcher
+			if ( matcher[ expando ] ) {
+
+				// Find the next relative operator (if any) for proper handling
+				j = ++i;
+				for ( ; j < len; j++ ) {
+					if ( Expr.relative[ tokens[ j ].type ] ) {
+						break;
+					}
+				}
+				return setMatcher(
+					i > 1 && elementMatcher( matchers ),
+					i > 1 && toSelector(
+
+					// If the preceding token was a descendant combinator, insert an implicit any-element `*`
+					tokens
+						.slice( 0, i - 1 )
+						.concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } )
+					).replace( rtrim, "$1" ),
+					matcher,
+					i < j && matcherFromTokens( tokens.slice( i, j ) ),
+					j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),
+					j < len && toSelector( tokens )
+				);
+			}
+			matchers.push( matcher );
+		}
+	}
+
+	return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+	var bySet = setMatchers.length > 0,
+		byElement = elementMatchers.length > 0,
+		superMatcher = function( seed, context, xml, results, outermost ) {
+			var elem, j, matcher,
+				matchedCount = 0,
+				i = "0",
+				unmatched = seed && [],
+				setMatched = [],
+				contextBackup = outermostContext,
+
+				// We must always have either seed elements or outermost context
+				elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ),
+
+				// Use integer dirruns iff this is the outermost matcher
+				dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),
+				len = elems.length;
+
+			if ( outermost ) {
+
+				// Support: IE 11+, Edge 17 - 18+
+				// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+				// two documents; shallow comparisons work.
+				// eslint-disable-next-line eqeqeq
+				outermostContext = context == document || context || outermost;
+			}
+
+			// Add elements passing elementMatchers directly to results
+			// Support: IE<9, Safari
+			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
+			for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {
+				if ( byElement && elem ) {
+					j = 0;
+
+					// Support: IE 11+, Edge 17 - 18+
+					// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
+					// two documents; shallow comparisons work.
+					// eslint-disable-next-line eqeqeq
+					if ( !context && elem.ownerDocument != document ) {
+						setDocument( elem );
+						xml = !documentIsHTML;
+					}
+					while ( ( matcher = elementMatchers[ j++ ] ) ) {
+						if ( matcher( elem, context || document, xml ) ) {
+							results.push( elem );
+							break;
+						}
+					}
+					if ( outermost ) {
+						dirruns = dirrunsUnique;
+					}
+				}
+
+				// Track unmatched elements for set filters
+				if ( bySet ) {
+
+					// They will have gone through all possible matchers
+					if ( ( elem = !matcher && elem ) ) {
+						matchedCount--;
+					}
+
+					// Lengthen the array for every element, matched or not
+					if ( seed ) {
+						unmatched.push( elem );
+					}
+				}
+			}
+
+			// `i` is now the count of elements visited above, and adding it to `matchedCount`
+			// makes the latter nonnegative.
+			matchedCount += i;
+
+			// Apply set filters to unmatched elements
+			// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
+			// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
+			// no element matchers and no seed.
+			// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
+			// case, which will result in a "00" `matchedCount` that differs from `i` but is also
+			// numerically zero.
+			if ( bySet && i !== matchedCount ) {
+				j = 0;
+				while ( ( matcher = setMatchers[ j++ ] ) ) {
+					matcher( unmatched, setMatched, context, xml );
+				}
+
+				if ( seed ) {
+
+					// Reintegrate element matches to eliminate the need for sorting
+					if ( matchedCount > 0 ) {
+						while ( i-- ) {
+							if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
+								setMatched[ i ] = pop.call( results );
+							}
+						}
+					}
+
+					// Discard index placeholder values to get only actual matches
+					setMatched = condense( setMatched );
+				}
+
+				// Add matches to results
+				push.apply( results, setMatched );
+
+				// Seedless set matches succeeding multiple successful matchers stipulate sorting
+				if ( outermost && !seed && setMatched.length > 0 &&
+					( matchedCount + setMatchers.length ) > 1 ) {
+
+					Sizzle.uniqueSort( results );
+				}
+			}
+
+			// Override manipulation of globals by nested matchers
+			if ( outermost ) {
+				dirruns = dirrunsUnique;
+				outermostContext = contextBackup;
+			}
+
+			return unmatched;
+		};
+
+	return bySet ?
+		markFunction( superMatcher ) :
+		superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
+	var i,
+		setMatchers = [],
+		elementMatchers = [],
+		cached = compilerCache[ selector + " " ];
+
+	if ( !cached ) {
+
+		// Generate a function of recursive functions that can be used to check each element
+		if ( !match ) {
+			match = tokenize( selector );
+		}
+		i = match.length;
+		while ( i-- ) {
+			cached = matcherFromTokens( match[ i ] );
+			if ( cached[ expando ] ) {
+				setMatchers.push( cached );
+			} else {
+				elementMatchers.push( cached );
+			}
+		}
+
+		// Cache the compiled function
+		cached = compilerCache(
+			selector,
+			matcherFromGroupMatchers( elementMatchers, setMatchers )
+		);
+
+		// Save selector and tokenization
+		cached.selector = selector;
+	}
+	return cached;
+};
+
+/**
+ * A low-level selection function that works with Sizzle's compiled
+ *  selector functions
+ * @param {String|Function} selector A selector or a pre-compiled
+ *  selector function built with Sizzle.compile
+ * @param {Element} context
+ * @param {Array} [results]
+ * @param {Array} [seed] A set of elements to match against
+ */
+select = Sizzle.select = function( selector, context, results, seed ) {
+	var i, tokens, token, type, find,
+		compiled = typeof selector === "function" && selector,
+		match = !seed && tokenize( ( selector = compiled.selector || selector ) );
+
+	results = results || [];
+
+	// Try to minimize operations if there is only one selector in the list and no seed
+	// (the latter of which guarantees us context)
+	if ( match.length === 1 ) {
+
+		// Reduce context if the leading compound selector is an ID
+		tokens = match[ 0 ] = match[ 0 ].slice( 0 );
+		if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
+			context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
+
+			context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
+				.replace( runescape, funescape ), context ) || [] )[ 0 ];
+			if ( !context ) {
+				return results;
+
+			// Precompiled matchers will still verify ancestry, so step up a level
+			} else if ( compiled ) {
+				context = context.parentNode;
+			}
+
+			selector = selector.slice( tokens.shift().value.length );
+		}
+
+		// Fetch a seed set for right-to-left matching
+		i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length;
+		while ( i-- ) {
+			token = tokens[ i ];
+
+			// Abort if we hit a combinator
+			if ( Expr.relative[ ( type = token.type ) ] ) {
+				break;
+			}
+			if ( ( find = Expr.find[ type ] ) ) {
+
+				// Search, expanding context for leading sibling combinators
+				if ( ( seed = find(
+					token.matches[ 0 ].replace( runescape, funescape ),
+					rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||
+						context
+				) ) ) {
+
+					// If seed is empty or no tokens remain, we can return early
+					tokens.splice( i, 1 );
+					selector = seed.length && toSelector( tokens );
+					if ( !selector ) {
+						push.apply( results, seed );
+						return results;
+					}
+
+					break;
+				}
+			}
+		}
+	}
+
+	// Compile and execute a filtering function if one is not provided
+	// Provide `match` to avoid retokenization if we modified the selector above
+	( compiled || compile( selector, match ) )(
+		seed,
+		context,
+		!documentIsHTML,
+		results,
+		!context || rsibling.test( selector ) && testContext( context.parentNode ) || context
+	);
+	return results;
+};
 
-                    if (wrapStyle === 'wrap') {
-                        var labelKey = rscratch('labelKey'); // save recalc if the label is the same as before
+// One-time assignments
 
-                        if (labelKey != null && rscratch('labelWrapKey') === labelKey) {
-                            return rscratch('labelWrapCachedText');
-                        }
+// Sort stability
+support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando;
 
-                        var zwsp = "\u200B";
-                        var lines = text.split('\n');
-                        var maxW = ele.pstyle('text-max-width').pfValue;
-                        var overflow = ele.pstyle('text-overflow-wrap').value;
-                        var overflowAny = overflow === 'anywhere';
-                        var wrappedLines = [];
-                        var wordsRegex = /[\s\u200b]+/;
-                        var wordSeparator = overflowAny ? '' : ' ';
-
-                        for (var l = 0; l < lines.length; l++) {
-                            var line = lines[l];
-                            var lineDims = this.calculateLabelDimensions(ele, line);
-                            var lineW = lineDims.width;
-
-                            if (overflowAny) {
-                                var processedLine = line.split('').join(zwsp);
-                                line = processedLine;
-                            }
+// Support: Chrome 14-35+
+// Always assume duplicates if they aren't passed to the comparison function
+support.detectDuplicates = !!hasDuplicate;
 
-                            if (lineW > maxW) {
-                                // line is too long
-                                var words = line.split(wordsRegex);
-                                var subline = '';
-
-                                for (var w = 0; w < words.length; w++) {
-                                    var word = words[w];
-                                    var testLine = subline.length === 0 ? word : subline + wordSeparator + word;
-                                    var testDims = this.calculateLabelDimensions(ele, testLine);
-                                    var testW = testDims.width;
-
-                                    if (testW <= maxW) {
-                                        // word fits on current line
-                                        subline += word + wordSeparator;
-                                    } else {
-                                        // word starts new line
-                                        if (subline) {
-                                            wrappedLines.push(subline);
-                                        }
-
-                                        subline = word + wordSeparator;
-                                    }
-                                } // if there's remaining text, put it in a wrapped line
-
-
-                                if (!subline.match(/^[\s\u200b]+$/)) {
-                                    wrappedLines.push(subline);
-                                }
-                            } else {
-                                // line is already short enough
-                                wrappedLines.push(line);
-                            }
-                        } // for
+// Initialize against the default document
+setDocument();
 
+// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
+// Detached nodes confoundingly follow *each other*
+support.sortDetached = assert( function( el ) {
 
-                        rscratch('labelWrapCachedLines', wrappedLines);
-                        text = rscratch('labelWrapCachedText', wrappedLines.join('\n'));
-                        rscratch('labelWrapKey', labelKey);
-                    } else if (wrapStyle === 'ellipsis') {
-                        var _maxW = ele.pstyle('text-max-width').pfValue;
-                        var ellipsized = '';
-                        var ellipsis = "\u2026";
-                        var incLastCh = false;
+	// Should return 1, but returns 4 (following)
+	return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1;
+} );
 
-                        for (var i = 0; i < text.length; i++) {
-                            var widthWithNextCh = this.calculateLabelDimensions(ele, ellipsized + text[i] + ellipsis).width;
+// Support: IE<8
+// Prevent attribute/property "interpolation"
+// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
+if ( !assert( function( el ) {
+	el.innerHTML = "<a href='#'></a>";
+	return el.firstChild.getAttribute( "href" ) === "#";
+} ) ) {
+	addHandle( "type|href|height|width", function( elem, name, isXML ) {
+		if ( !isXML ) {
+			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
+		}
+	} );
+}
 
-                            if (widthWithNextCh > _maxW) {
-                                break;
-                            }
+// Support: IE<9
+// Use defaultValue in place of getAttribute("value")
+if ( !support.attributes || !assert( function( el ) {
+	el.innerHTML = "<input/>";
+	el.firstChild.setAttribute( "value", "" );
+	return el.firstChild.getAttribute( "value" ) === "";
+} ) ) {
+	addHandle( "value", function( elem, _name, isXML ) {
+		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
+			return elem.defaultValue;
+		}
+	} );
+}
 
-                            ellipsized += text[i];
+// Support: IE<9
+// Use getAttributeNode to fetch booleans when getAttribute lies
+if ( !assert( function( el ) {
+	return el.getAttribute( "disabled" ) == null;
+} ) ) {
+	addHandle( booleans, function( elem, name, isXML ) {
+		var val;
+		if ( !isXML ) {
+			return elem[ name ] === true ? name.toLowerCase() :
+				( val = elem.getAttributeNode( name ) ) && val.specified ?
+					val.value :
+					null;
+		}
+	} );
+}
 
-                            if (i === text.length - 1) {
-                                incLastCh = true;
-                            }
-                        }
+return Sizzle;
 
-                        if (!incLastCh) {
-                            ellipsized += ellipsis;
-                        }
+} )( window );
 
-                        return ellipsized;
-                    } // if ellipsize
 
 
-                    return text;
-                };
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
 
-                BRp$6.getLabelJustification = function (ele) {
-                    var justification = ele.pstyle('text-justification').strValue;
-                    var textHalign = ele.pstyle('text-halign').strValue;
+// Deprecated
+jQuery.expr[ ":" ] = jQuery.expr.pseudos;
+jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+jQuery.escapeSelector = Sizzle.escape;
 
-                    if (justification === 'auto') {
-                        if (ele.isNode()) {
-                            switch (textHalign) {
-                                case 'left':
-                                    return 'right';
 
-                                case 'right':
-                                    return 'left';
 
-                                default:
-                                    return 'center';
-                            }
-                        } else {
-                            return 'center';
-                        }
-                    } else {
-                        return justification;
-                    }
-                };
 
-                BRp$6.calculateLabelDimensions = function (ele, text) {
-                    var r = this;
-                    var cacheKey = hashString(text, ele._private.labelDimsKey);
-                    var cache = r.labelDimCache || (r.labelDimCache = []);
-                    var existingVal = cache[cacheKey];
+var dir = function( elem, dir, until ) {
+	var matched = [],
+		truncate = until !== undefined;
 
-                    if (existingVal != null) {
-                        return existingVal;
-                    }
+	while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
+		if ( elem.nodeType === 1 ) {
+			if ( truncate && jQuery( elem ).is( until ) ) {
+				break;
+			}
+			matched.push( elem );
+		}
+	}
+	return matched;
+};
 
-                    var padding = 0; // add padding around text dims, as the measurement isn't that accurate
-
-                    var fStyle = ele.pstyle('font-style').strValue;
-                    var size = ele.pstyle('font-size').pfValue;
-                    var family = ele.pstyle('font-family').strValue;
-                    var weight = ele.pstyle('font-weight').strValue;
-                    var canvas = this.labelCalcCanvas;
-                    var c2d = this.labelCalcCanvasContext;
-
-                    if (!canvas) {
-                        canvas = this.labelCalcCanvas = document.createElement('canvas');
-                        c2d = this.labelCalcCanvasContext = canvas.getContext('2d');
-                        var ds = canvas.style;
-                        ds.position = 'absolute';
-                        ds.left = '-9999px';
-                        ds.top = '-9999px';
-                        ds.zIndex = '-1';
-                        ds.visibility = 'hidden';
-                        ds.pointerEvents = 'none';
-                    }
 
-                    c2d.font = "".concat(fStyle, " ").concat(weight, " ").concat(size, "px ").concat(family);
-                    var width = 0;
-                    var height = 0;
-                    var lines = text.split('\n');
-
-                    for (var i = 0; i < lines.length; i++) {
-                        var line = lines[i];
-                        var metrics = c2d.measureText(line);
-                        var w = Math.ceil(metrics.width);
-                        var h = size;
-                        width = Math.max(w, width);
-                        height += h;
-                    }
+var siblings = function( n, elem ) {
+	var matched = [];
 
-                    width += padding;
-                    height += padding;
-                    return cache[cacheKey] = {
-                        width: width,
-                        height: height
-                    };
-                };
+	for ( ; n; n = n.nextSibling ) {
+		if ( n.nodeType === 1 && n !== elem ) {
+			matched.push( n );
+		}
+	}
 
-                BRp$6.calculateLabelAngle = function (ele, prefix) {
-                    var _p = ele._private;
-                    var rs = _p.rscratch;
-                    var isEdge = ele.isEdge();
-                    var prefixDash = prefix ? prefix + '-' : '';
-                    var rot = ele.pstyle(prefixDash + 'text-rotation');
-                    var rotStr = rot.strValue;
-
-                    if (rotStr === 'none') {
-                        return 0;
-                    } else if (isEdge && rotStr === 'autorotate') {
-                        return rs.labelAutoAngle;
-                    } else if (rotStr === 'autorotate') {
-                        return 0;
-                    } else {
-                        return rot.pfValue;
-                    }
-                };
+	return matched;
+};
 
-                BRp$6.calculateLabelAngles = function (ele) {
-                    var r = this;
-                    var isEdge = ele.isEdge();
-                    var _p = ele._private;
-                    var rs = _p.rscratch;
-                    rs.labelAngle = r.calculateLabelAngle(ele);
 
-                    if (isEdge) {
-                        rs.sourceLabelAngle = r.calculateLabelAngle(ele, 'source');
-                        rs.targetLabelAngle = r.calculateLabelAngle(ele, 'target');
-                    }
-                };
+var rneedsContext = jQuery.expr.match.needsContext;
 
-                var BRp$7 = {};
-                var TOO_SMALL_CUT_RECT = 28;
-                var warnedCutRect = false;
 
-                BRp$7.getNodeShape = function (node) {
-                    var r = this;
-                    var shape = node.pstyle('shape').value;
 
-                    if (shape === 'cutrectangle' && (node.width() < TOO_SMALL_CUT_RECT || node.height() < TOO_SMALL_CUT_RECT)) {
-                        if (!warnedCutRect) {
-                            warn('The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead');
-                            warnedCutRect = true;
-                        }
+function nodeName( elem, name ) {
 
-                        return 'rectangle';
-                    }
+  return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
 
-                    if (node.isParent()) {
-                        if (shape === 'rectangle' || shape === 'roundrectangle' || shape === 'round-rectangle' || shape === 'cutrectangle' || shape === 'cut-rectangle' || shape === 'barrel') {
-                            return shape;
-                        } else {
-                            return 'rectangle';
-                        }
-                    }
+};
+var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
 
-                    if (shape === 'polygon') {
-                        var points = node.pstyle('shape-polygon-points').value;
-                        return r.nodeShapes.makePolygon(points).name;
-                    }
 
-                    return shape;
-                };
 
-                var BRp$8 = {};
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, not ) {
+	if ( isFunction( qualifier ) ) {
+		return jQuery.grep( elements, function( elem, i ) {
+			return !!qualifier.call( elem, i, elem ) !== not;
+		} );
+	}
+
+	// Single element
+	if ( qualifier.nodeType ) {
+		return jQuery.grep( elements, function( elem ) {
+			return ( elem === qualifier ) !== not;
+		} );
+	}
+
+	// Arraylike of elements (jQuery, arguments, Array)
+	if ( typeof qualifier !== "string" ) {
+		return jQuery.grep( elements, function( elem ) {
+			return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
+		} );
+	}
+
+	// Filtered directly for both simple and complex selectors
+	return jQuery.filter( qualifier, elements, not );
+}
+
+jQuery.filter = function( expr, elems, not ) {
+	var elem = elems[ 0 ];
+
+	if ( not ) {
+		expr = ":not(" + expr + ")";
+	}
+
+	if ( elems.length === 1 && elem.nodeType === 1 ) {
+		return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
+	}
+
+	return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
+		return elem.nodeType === 1;
+	} ) );
+};
+
+jQuery.fn.extend( {
+	find: function( selector ) {
+		var i, ret,
+			len = this.length,
+			self = this;
+
+		if ( typeof selector !== "string" ) {
+			return this.pushStack( jQuery( selector ).filter( function() {
+				for ( i = 0; i < len; i++ ) {
+					if ( jQuery.contains( self[ i ], this ) ) {
+						return true;
+					}
+				}
+			} ) );
+		}
+
+		ret = this.pushStack( [] );
+
+		for ( i = 0; i < len; i++ ) {
+			jQuery.find( selector, self[ i ], ret );
+		}
+
+		return len > 1 ? jQuery.uniqueSort( ret ) : ret;
+	},
+	filter: function( selector ) {
+		return this.pushStack( winnow( this, selector || [], false ) );
+	},
+	not: function( selector ) {
+		return this.pushStack( winnow( this, selector || [], true ) );
+	},
+	is: function( selector ) {
+		return !!winnow(
+			this,
+
+			// If this is a positional/relative selector, check membership in the returned set
+			// so $("p:first").is("p:last") won't return true for a doc with two "p".
+			typeof selector === "string" && rneedsContext.test( selector ) ?
+				jQuery( selector ) :
+				selector || [],
+			false
+		).length;
+	}
+} );
 
-                BRp$8.registerCalculationListeners = function () {
-                    var cy = this.cy;
-                    var elesToUpdate = cy.collection();
-                    var r = this;
 
-                    var enqueue = function enqueue(eles) {
-                        var dirtyStyleCaches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-                        elesToUpdate.merge(eles);
+// Initialize a jQuery object
 
-                        if (dirtyStyleCaches) {
-                            for (var i = 0; i < eles.length; i++) {
-                                var ele = eles[i];
-                                var _p = ele._private;
-                                var rstyle = _p.rstyle;
-                                rstyle.clean = false;
-                                rstyle.cleanConnected = false;
-                            }
-                        }
-                    };
-
-                    r.binder(cy).on('bounds.* dirty.*', function onDirtyBounds(e) {
-                        var ele = e.target;
-                        enqueue(ele);
-                    }).on('style.* background.*', function onDirtyStyle(e) {
-                        var ele = e.target;
-                        enqueue(ele, false);
-                    });
-
-                    var updateEleCalcs = function updateEleCalcs(willDraw) {
-                        if (willDraw) {
-                            var fns = r.onUpdateEleCalcsFns;
-
-                            for (var i = 0; i < elesToUpdate.length; i++) {
-                                var ele = elesToUpdate[i];
-                                var rstyle = ele._private.rstyle;
-
-                                if (ele.isNode() && !rstyle.cleanConnected) {
-                                    enqueue(ele.connectedEdges());
-                                    rstyle.cleanConnected = true;
-                                }
-                            }
 
-                            if (fns) {
-                                for (var _i = 0; _i < fns.length; _i++) {
-                                    var fn = fns[_i];
-                                    fn(willDraw, elesToUpdate);
-                                }
-                            }
+// A central reference to the root jQuery(document)
+var rootjQuery,
+
+	// A simple way to check for HTML strings
+	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+	// Strict HTML recognition (#11290: must start with <)
+	// Shortcut simple #id case for speed
+	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
+
+	init = jQuery.fn.init = function( selector, context, root ) {
+		var match, elem;
+
+		// HANDLE: $(""), $(null), $(undefined), $(false)
+		if ( !selector ) {
+			return this;
+		}
+
+		// Method init() accepts an alternate rootjQuery
+		// so migrate can support jQuery.sub (gh-2101)
+		root = root || rootjQuery;
+
+		// Handle HTML strings
+		if ( typeof selector === "string" ) {
+			if ( selector[ 0 ] === "<" &&
+				selector[ selector.length - 1 ] === ">" &&
+				selector.length >= 3 ) {
+
+				// Assume that strings that start and end with <> are HTML and skip the regex check
+				match = [ null, selector, null ];
+
+			} else {
+				match = rquickExpr.exec( selector );
+			}
+
+			// Match html or make sure no context is specified for #id
+			if ( match && ( match[ 1 ] || !context ) ) {
+
+				// HANDLE: $(html) -> $(array)
+				if ( match[ 1 ] ) {
+					context = context instanceof jQuery ? context[ 0 ] : context;
+
+					// Option to run scripts is true for back-compat
+					// Intentionally let the error be thrown if parseHTML is not present
+					jQuery.merge( this, jQuery.parseHTML(
+						match[ 1 ],
+						context && context.nodeType ? context.ownerDocument || context : document,
+						true
+					) );
+
+					// HANDLE: $(html, props)
+					if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
+						for ( match in context ) {
+
+							// Properties of context are called as methods if possible
+							if ( isFunction( this[ match ] ) ) {
+								this[ match ]( context[ match ] );
+
+							// ...and otherwise set as attributes
+							} else {
+								this.attr( match, context[ match ] );
+							}
+						}
+					}
+
+					return this;
+
+				// HANDLE: $(#id)
+				} else {
+					elem = document.getElementById( match[ 2 ] );
+
+					if ( elem ) {
+
+						// Inject the element directly into the jQuery object
+						this[ 0 ] = elem;
+						this.length = 1;
+					}
+					return this;
+				}
+
+			// HANDLE: $(expr, $(...))
+			} else if ( !context || context.jquery ) {
+				return ( context || root ).find( selector );
+
+			// HANDLE: $(expr, context)
+			// (which is just equivalent to: $(context).find(expr)
+			} else {
+				return this.constructor( context ).find( selector );
+			}
+
+		// HANDLE: $(DOMElement)
+		} else if ( selector.nodeType ) {
+			this[ 0 ] = selector;
+			this.length = 1;
+			return this;
+
+		// HANDLE: $(function)
+		// Shortcut for document ready
+		} else if ( isFunction( selector ) ) {
+			return root.ready !== undefined ?
+				root.ready( selector ) :
+
+				// Execute immediately if ready is not present
+				selector( jQuery );
+		}
+
+		return jQuery.makeArray( selector, this );
+	};
 
-                            r.recalculateRenderedStyle(elesToUpdate);
-                            elesToUpdate = cy.collection();
-                        }
-                    };
+// Give the init function the jQuery prototype for later instantiation
+init.prototype = jQuery.fn;
 
-                    r.flushRenderedStyleQueue = function () {
-                        updateEleCalcs(true);
-                    };
+// Initialize central reference
+rootjQuery = jQuery( document );
+
+
+var rparentsprev = /^(?:parents|prev(?:Until|All))/,
+
+	// Methods guaranteed to produce a unique set when starting from a unique set
+	guaranteedUnique = {
+		children: true,
+		contents: true,
+		next: true,
+		prev: true
+	};
+
+jQuery.fn.extend( {
+	has: function( target ) {
+		var targets = jQuery( target, this ),
+			l = targets.length;
+
+		return this.filter( function() {
+			var i = 0;
+			for ( ; i < l; i++ ) {
+				if ( jQuery.contains( this, targets[ i ] ) ) {
+					return true;
+				}
+			}
+		} );
+	},
+
+	closest: function( selectors, context ) {
+		var cur,
+			i = 0,
+			l = this.length,
+			matched = [],
+			targets = typeof selectors !== "string" && jQuery( selectors );
+
+		// Positional selectors never match, since there's no _selection_ context
+		if ( !rneedsContext.test( selectors ) ) {
+			for ( ; i < l; i++ ) {
+				for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
+
+					// Always skip document fragments
+					if ( cur.nodeType < 11 && ( targets ?
+						targets.index( cur ) > -1 :
+
+						// Don't pass non-elements to Sizzle
+						cur.nodeType === 1 &&
+							jQuery.find.matchesSelector( cur, selectors ) ) ) {
+
+						matched.push( cur );
+						break;
+					}
+				}
+			}
+		}
+
+		return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
+	},
+
+	// Determine the position of an element within the set
+	index: function( elem ) {
+
+		// No argument, return index in parent
+		if ( !elem ) {
+			return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
+		}
+
+		// Index in selector
+		if ( typeof elem === "string" ) {
+			return indexOf.call( jQuery( elem ), this[ 0 ] );
+		}
+
+		// Locate the position of the desired element
+		return indexOf.call( this,
+
+			// If it receives a jQuery object, the first element is used
+			elem.jquery ? elem[ 0 ] : elem
+		);
+	},
+
+	add: function( selector, context ) {
+		return this.pushStack(
+			jQuery.uniqueSort(
+				jQuery.merge( this.get(), jQuery( selector, context ) )
+			)
+		);
+	},
+
+	addBack: function( selector ) {
+		return this.add( selector == null ?
+			this.prevObject : this.prevObject.filter( selector )
+		);
+	}
+} );
+
+function sibling( cur, dir ) {
+	while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
+	return cur;
+}
+
+jQuery.each( {
+	parent: function( elem ) {
+		var parent = elem.parentNode;
+		return parent && parent.nodeType !== 11 ? parent : null;
+	},
+	parents: function( elem ) {
+		return dir( elem, "parentNode" );
+	},
+	parentsUntil: function( elem, _i, until ) {
+		return dir( elem, "parentNode", until );
+	},
+	next: function( elem ) {
+		return sibling( elem, "nextSibling" );
+	},
+	prev: function( elem ) {
+		return sibling( elem, "previousSibling" );
+	},
+	nextAll: function( elem ) {
+		return dir( elem, "nextSibling" );
+	},
+	prevAll: function( elem ) {
+		return dir( elem, "previousSibling" );
+	},
+	nextUntil: function( elem, _i, until ) {
+		return dir( elem, "nextSibling", until );
+	},
+	prevUntil: function( elem, _i, until ) {
+		return dir( elem, "previousSibling", until );
+	},
+	siblings: function( elem ) {
+		return siblings( ( elem.parentNode || {} ).firstChild, elem );
+	},
+	children: function( elem ) {
+		return siblings( elem.firstChild );
+	},
+	contents: function( elem ) {
+		if ( elem.contentDocument != null &&
+
+			// Support: IE 11+
+			// <object> elements with no `data` attribute has an object
+			// `contentDocument` with a `null` prototype.
+			getProto( elem.contentDocument ) ) {
+
+			return elem.contentDocument;
+		}
+
+		// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
+		// Treat the template element as a regular one in browsers that
+		// don't support it.
+		if ( nodeName( elem, "template" ) ) {
+			elem = elem.content || elem;
+		}
+
+		return jQuery.merge( [], elem.childNodes );
+	}
+}, function( name, fn ) {
+	jQuery.fn[ name ] = function( until, selector ) {
+		var matched = jQuery.map( this, fn, until );
+
+		if ( name.slice( -5 ) !== "Until" ) {
+			selector = until;
+		}
+
+		if ( selector && typeof selector === "string" ) {
+			matched = jQuery.filter( selector, matched );
+		}
+
+		if ( this.length > 1 ) {
+
+			// Remove duplicates
+			if ( !guaranteedUnique[ name ] ) {
+				jQuery.uniqueSort( matched );
+			}
+
+			// Reverse order for parents* and prev-derivatives
+			if ( rparentsprev.test( name ) ) {
+				matched.reverse();
+			}
+		}
+
+		return this.pushStack( matched );
+	};
+} );
+var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
 
-                    r.beforeRender(updateEleCalcs, r.beforeRenderPriorities.eleCalcs);
-                };
 
-                BRp$8.onUpdateEleCalcs = function (fn) {
-                    var fns = this.onUpdateEleCalcsFns = this.onUpdateEleCalcsFns || [];
-                    fns.push(fn);
-                };
 
-                BRp$8.recalculateRenderedStyle = function (eles, useCache) {
-                    var isCleanConnected = function isCleanConnected(ele) {
-                        return ele._private.rstyle.cleanConnected;
-                    };
+// Convert String-formatted options into Object-formatted ones
+function createOptions( options ) {
+	var object = {};
+	jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
+		object[ flag ] = true;
+	} );
+	return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *	options: an optional list of space-separated options that will change how
+ *			the callback list behaves or a more traditional option object
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible options:
+ *
+ *	once:			will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *	memory:			will keep track of previous values and will call any callback added
+ *					after the list has been fired right away with the latest "memorized"
+ *					values (like a Deferred)
+ *
+ *	unique:			will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *	stopOnFalse:	interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( options ) {
+
+	// Convert options from String-formatted to Object-formatted if needed
+	// (we check in cache first)
+	options = typeof options === "string" ?
+		createOptions( options ) :
+		jQuery.extend( {}, options );
+
+	var // Flag to know if list is currently firing
+		firing,
+
+		// Last fire value for non-forgettable lists
+		memory,
+
+		// Flag to know if list was already fired
+		fired,
+
+		// Flag to prevent firing
+		locked,
+
+		// Actual callback list
+		list = [],
+
+		// Queue of execution data for repeatable lists
+		queue = [],
+
+		// Index of currently firing callback (modified by add/remove as needed)
+		firingIndex = -1,
+
+		// Fire callbacks
+		fire = function() {
+
+			// Enforce single-firing
+			locked = locked || options.once;
+
+			// Execute callbacks for all pending executions,
+			// respecting firingIndex overrides and runtime changes
+			fired = firing = true;
+			for ( ; queue.length; firingIndex = -1 ) {
+				memory = queue.shift();
+				while ( ++firingIndex < list.length ) {
+
+					// Run callback and check for early termination
+					if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
+						options.stopOnFalse ) {
+
+						// Jump to end and forget the data so .add doesn't re-fire
+						firingIndex = list.length;
+						memory = false;
+					}
+				}
+			}
+
+			// Forget the data if we're done with it
+			if ( !options.memory ) {
+				memory = false;
+			}
+
+			firing = false;
+
+			// Clean up if we're done firing for good
+			if ( locked ) {
+
+				// Keep an empty list if we have data for future add calls
+				if ( memory ) {
+					list = [];
+
+				// Otherwise, this object is spent
+				} else {
+					list = "";
+				}
+			}
+		},
+
+		// Actual Callbacks object
+		self = {
+
+			// Add a callback or a collection of callbacks to the list
+			add: function() {
+				if ( list ) {
+
+					// If we have memory from a past run, we should fire after adding
+					if ( memory && !firing ) {
+						firingIndex = list.length - 1;
+						queue.push( memory );
+					}
+
+					( function add( args ) {
+						jQuery.each( args, function( _, arg ) {
+							if ( isFunction( arg ) ) {
+								if ( !options.unique || !self.has( arg ) ) {
+									list.push( arg );
+								}
+							} else if ( arg && arg.length && toType( arg ) !== "string" ) {
+
+								// Inspect recursively
+								add( arg );
+							}
+						} );
+					} )( arguments );
+
+					if ( memory && !firing ) {
+						fire();
+					}
+				}
+				return this;
+			},
+
+			// Remove a callback from the list
+			remove: function() {
+				jQuery.each( arguments, function( _, arg ) {
+					var index;
+					while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
+						list.splice( index, 1 );
+
+						// Handle firing indexes
+						if ( index <= firingIndex ) {
+							firingIndex--;
+						}
+					}
+				} );
+				return this;
+			},
+
+			// Check if a given callback is in the list.
+			// If no argument is given, return whether or not list has callbacks attached.
+			has: function( fn ) {
+				return fn ?
+					jQuery.inArray( fn, list ) > -1 :
+					list.length > 0;
+			},
+
+			// Remove all callbacks from the list
+			empty: function() {
+				if ( list ) {
+					list = [];
+				}
+				return this;
+			},
+
+			// Disable .fire and .add
+			// Abort any current/pending executions
+			// Clear all callbacks and values
+			disable: function() {
+				locked = queue = [];
+				list = memory = "";
+				return this;
+			},
+			disabled: function() {
+				return !list;
+			},
+
+			// Disable .fire
+			// Also disable .add unless we have memory (since it would have no effect)
+			// Abort any pending executions
+			lock: function() {
+				locked = queue = [];
+				if ( !memory && !firing ) {
+					list = memory = "";
+				}
+				return this;
+			},
+			locked: function() {
+				return !!locked;
+			},
+
+			// Call all callbacks with the given context and arguments
+			fireWith: function( context, args ) {
+				if ( !locked ) {
+					args = args || [];
+					args = [ context, args.slice ? args.slice() : args ];
+					queue.push( args );
+					if ( !firing ) {
+						fire();
+					}
+				}
+				return this;
+			},
+
+			// Call all the callbacks with the given arguments
+			fire: function() {
+				self.fireWith( this, arguments );
+				return this;
+			},
+
+			// To know if the callbacks have already been called at least once
+			fired: function() {
+				return !!fired;
+			}
+		};
+
+	return self;
+};
+
+
+function Identity( v ) {
+	return v;
+}
+function Thrower( ex ) {
+	throw ex;
+}
+
+function adoptValue( value, resolve, reject, noValue ) {
+	var method;
+
+	try {
+
+		// Check for promise aspect first to privilege synchronous behavior
+		if ( value && isFunction( ( method = value.promise ) ) ) {
+			method.call( value ).done( resolve ).fail( reject );
+
+		// Other thenables
+		} else if ( value && isFunction( ( method = value.then ) ) ) {
+			method.call( value, resolve, reject );
+
+		// Other non-thenables
+		} else {
+
+			// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
+			// * false: [ value ].slice( 0 ) => resolve( value )
+			// * true: [ value ].slice( 1 ) => resolve()
+			resolve.apply( undefined, [ value ].slice( noValue ) );
+		}
+
+	// For Promises/A+, convert exceptions into rejections
+	// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
+	// Deferred#then to conditionally suppress rejection.
+	} catch ( value ) {
+
+		// Support: Android 4.0 only
+		// Strict mode functions invoked without .call/.apply get global-object context
+		reject.apply( undefined, [ value ] );
+	}
+}
+
+jQuery.extend( {
+
+	Deferred: function( func ) {
+		var tuples = [
+
+				// action, add listener, callbacks,
+				// ... .then handlers, argument index, [final state]
+				[ "notify", "progress", jQuery.Callbacks( "memory" ),
+					jQuery.Callbacks( "memory" ), 2 ],
+				[ "resolve", "done", jQuery.Callbacks( "once memory" ),
+					jQuery.Callbacks( "once memory" ), 0, "resolved" ],
+				[ "reject", "fail", jQuery.Callbacks( "once memory" ),
+					jQuery.Callbacks( "once memory" ), 1, "rejected" ]
+			],
+			state = "pending",
+			promise = {
+				state: function() {
+					return state;
+				},
+				always: function() {
+					deferred.done( arguments ).fail( arguments );
+					return this;
+				},
+				"catch": function( fn ) {
+					return promise.then( null, fn );
+				},
+
+				// Keep pipe for back-compat
+				pipe: function( /* fnDone, fnFail, fnProgress */ ) {
+					var fns = arguments;
+
+					return jQuery.Deferred( function( newDefer ) {
+						jQuery.each( tuples, function( _i, tuple ) {
+
+							// Map tuples (progress, done, fail) to arguments (done, fail, progress)
+							var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
+
+							// deferred.progress(function() { bind to newDefer or newDefer.notify })
+							// deferred.done(function() { bind to newDefer or newDefer.resolve })
+							// deferred.fail(function() { bind to newDefer or newDefer.reject })
+							deferred[ tuple[ 1 ] ]( function() {
+								var returned = fn && fn.apply( this, arguments );
+								if ( returned && isFunction( returned.promise ) ) {
+									returned.promise()
+										.progress( newDefer.notify )
+										.done( newDefer.resolve )
+										.fail( newDefer.reject );
+								} else {
+									newDefer[ tuple[ 0 ] + "With" ](
+										this,
+										fn ? [ returned ] : arguments
+									);
+								}
+							} );
+						} );
+						fns = null;
+					} ).promise();
+				},
+				then: function( onFulfilled, onRejected, onProgress ) {
+					var maxDepth = 0;
+					function resolve( depth, deferred, handler, special ) {
+						return function() {
+							var that = this,
+								args = arguments,
+								mightThrow = function() {
+									var returned, then;
+
+									// Support: Promises/A+ section 2.3.3.3.3
+									// https://promisesaplus.com/#point-59
+									// Ignore double-resolution attempts
+									if ( depth < maxDepth ) {
+										return;
+									}
+
+									returned = handler.apply( that, args );
+
+									// Support: Promises/A+ section 2.3.1
+									// https://promisesaplus.com/#point-48
+									if ( returned === deferred.promise() ) {
+										throw new TypeError( "Thenable self-resolution" );
+									}
+
+									// Support: Promises/A+ sections 2.3.3.1, 3.5
+									// https://promisesaplus.com/#point-54
+									// https://promisesaplus.com/#point-75
+									// Retrieve `then` only once
+									then = returned &&
+
+										// Support: Promises/A+ section 2.3.4
+										// https://promisesaplus.com/#point-64
+										// Only check objects and functions for thenability
+										( typeof returned === "object" ||
+											typeof returned === "function" ) &&
+										returned.then;
+
+									// Handle a returned thenable
+									if ( isFunction( then ) ) {
+
+										// Special processors (notify) just wait for resolution
+										if ( special ) {
+											then.call(
+												returned,
+												resolve( maxDepth, deferred, Identity, special ),
+												resolve( maxDepth, deferred, Thrower, special )
+											);
+
+										// Normal processors (resolve) also hook into progress
+										} else {
+
+											// ...and disregard older resolution values
+											maxDepth++;
+
+											then.call(
+												returned,
+												resolve( maxDepth, deferred, Identity, special ),
+												resolve( maxDepth, deferred, Thrower, special ),
+												resolve( maxDepth, deferred, Identity,
+													deferred.notifyWith )
+											);
+										}
+
+									// Handle all other returned values
+									} else {
+
+										// Only substitute handlers pass on context
+										// and multiple values (non-spec behavior)
+										if ( handler !== Identity ) {
+											that = undefined;
+											args = [ returned ];
+										}
+
+										// Process the value(s)
+										// Default process is resolve
+										( special || deferred.resolveWith )( that, args );
+									}
+								},
+
+								// Only normal processors (resolve) catch and reject exceptions
+								process = special ?
+									mightThrow :
+									function() {
+										try {
+											mightThrow();
+										} catch ( e ) {
+
+											if ( jQuery.Deferred.exceptionHook ) {
+												jQuery.Deferred.exceptionHook( e,
+													process.stackTrace );
+											}
+
+											// Support: Promises/A+ section 2.3.3.3.4.1
+											// https://promisesaplus.com/#point-61
+											// Ignore post-resolution exceptions
+											if ( depth + 1 >= maxDepth ) {
+
+												// Only substitute handlers pass on context
+												// and multiple values (non-spec behavior)
+												if ( handler !== Thrower ) {
+													that = undefined;
+													args = [ e ];
+												}
+
+												deferred.rejectWith( that, args );
+											}
+										}
+									};
+
+							// Support: Promises/A+ section 2.3.3.3.1
+							// https://promisesaplus.com/#point-57
+							// Re-resolve promises immediately to dodge false rejection from
+							// subsequent errors
+							if ( depth ) {
+								process();
+							} else {
+
+								// Call an optional hook to record the stack, in case of exception
+								// since it's otherwise lost when execution goes async
+								if ( jQuery.Deferred.getStackHook ) {
+									process.stackTrace = jQuery.Deferred.getStackHook();
+								}
+								window.setTimeout( process );
+							}
+						};
+					}
+
+					return jQuery.Deferred( function( newDefer ) {
+
+						// progress_handlers.add( ... )
+						tuples[ 0 ][ 3 ].add(
+							resolve(
+								0,
+								newDefer,
+								isFunction( onProgress ) ?
+									onProgress :
+									Identity,
+								newDefer.notifyWith
+							)
+						);
+
+						// fulfilled_handlers.add( ... )
+						tuples[ 1 ][ 3 ].add(
+							resolve(
+								0,
+								newDefer,
+								isFunction( onFulfilled ) ?
+									onFulfilled :
+									Identity
+							)
+						);
+
+						// rejected_handlers.add( ... )
+						tuples[ 2 ][ 3 ].add(
+							resolve(
+								0,
+								newDefer,
+								isFunction( onRejected ) ?
+									onRejected :
+									Thrower
+							)
+						);
+					} ).promise();
+				},
+
+				// Get a promise for this deferred
+				// If obj is provided, the promise aspect is added to the object
+				promise: function( obj ) {
+					return obj != null ? jQuery.extend( obj, promise ) : promise;
+				}
+			},
+			deferred = {};
+
+		// Add list-specific methods
+		jQuery.each( tuples, function( i, tuple ) {
+			var list = tuple[ 2 ],
+				stateString = tuple[ 5 ];
+
+			// promise.progress = list.add
+			// promise.done = list.add
+			// promise.fail = list.add
+			promise[ tuple[ 1 ] ] = list.add;
+
+			// Handle state
+			if ( stateString ) {
+				list.add(
+					function() {
+
+						// state = "resolved" (i.e., fulfilled)
+						// state = "rejected"
+						state = stateString;
+					},
+
+					// rejected_callbacks.disable
+					// fulfilled_callbacks.disable
+					tuples[ 3 - i ][ 2 ].disable,
+
+					// rejected_handlers.disable
+					// fulfilled_handlers.disable
+					tuples[ 3 - i ][ 3 ].disable,
+
+					// progress_callbacks.lock
+					tuples[ 0 ][ 2 ].lock,
+
+					// progress_handlers.lock
+					tuples[ 0 ][ 3 ].lock
+				);
+			}
+
+			// progress_handlers.fire
+			// fulfilled_handlers.fire
+			// rejected_handlers.fire
+			list.add( tuple[ 3 ].fire );
+
+			// deferred.notify = function() { deferred.notifyWith(...) }
+			// deferred.resolve = function() { deferred.resolveWith(...) }
+			// deferred.reject = function() { deferred.rejectWith(...) }
+			deferred[ tuple[ 0 ] ] = function() {
+				deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
+				return this;
+			};
+
+			// deferred.notifyWith = list.fireWith
+			// deferred.resolveWith = list.fireWith
+			// deferred.rejectWith = list.fireWith
+			deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
+		} );
+
+		// Make the deferred a promise
+		promise.promise( deferred );
+
+		// Call given func if any
+		if ( func ) {
+			func.call( deferred, deferred );
+		}
+
+		// All done!
+		return deferred;
+	},
+
+	// Deferred helper
+	when: function( singleValue ) {
+		var
+
+			// count of uncompleted subordinates
+			remaining = arguments.length,
+
+			// count of unprocessed arguments
+			i = remaining,
+
+			// subordinate fulfillment data
+			resolveContexts = Array( i ),
+			resolveValues = slice.call( arguments ),
+
+			// the master Deferred
+			master = jQuery.Deferred(),
+
+			// subordinate callback factory
+			updateFunc = function( i ) {
+				return function( value ) {
+					resolveContexts[ i ] = this;
+					resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
+					if ( !( --remaining ) ) {
+						master.resolveWith( resolveContexts, resolveValues );
+					}
+				};
+			};
+
+		// Single- and empty arguments are adopted like Promise.resolve
+		if ( remaining <= 1 ) {
+			adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
+				!remaining );
+
+			// Use .then() to unwrap secondary thenables (cf. gh-3000)
+			if ( master.state() === "pending" ||
+				isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
+
+				return master.then();
+			}
+		}
+
+		// Multiple arguments are aggregated like Promise.all array elements
+		while ( i-- ) {
+			adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
+		}
+
+		return master.promise();
+	}
+} );
 
-                    var edges = [];
-                    var nodes = []; // the renderer can't be used for calcs when destroyed, e.g. ele.boundingBox()
 
-                    if (this.destroyed) {
-                        return;
-                    } // use cache by default for perf
+// These usually indicate a programmer mistake during development,
+// warn about them ASAP rather than swallowing them by default.
+var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
 
+jQuery.Deferred.exceptionHook = function( error, stack ) {
 
-                    if (useCache === undefined) {
-                        useCache = true;
-                    }
+	// Support: IE 8 - 9 only
+	// Console exists when dev tools are open, which can happen at any time
+	if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
+		window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
+	}
+};
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        var _p = ele._private;
-                        var rstyle = _p.rstyle; // an edge may be implicitly dirty b/c of one of its connected nodes
-                        // (and a request for recalc may come in between frames)
 
-                        if (ele.isEdge() && (!isCleanConnected(ele.source()) || !isCleanConnected(ele.target()))) {
-                            rstyle.clean = false;
-                        } // only update if dirty and in graph
 
 
-                        if (useCache && rstyle.clean || ele.removed()) {
-                            continue;
-                        } // only update if not display: none
+jQuery.readyException = function( error ) {
+	window.setTimeout( function() {
+		throw error;
+	} );
+};
 
 
-                        if (ele.pstyle('display').value === 'none') {
-                            continue;
-                        }
 
-                        if (_p.group === 'nodes') {
-                            nodes.push(ele);
-                        } else {
-                            // edges
-                            edges.push(ele);
-                        }
 
-                        rstyle.clean = true;
-                    } // update node data from projections
+// The deferred used on DOM ready
+var readyList = jQuery.Deferred();
 
+jQuery.fn.ready = function( fn ) {
 
-                    for (var _i2 = 0; _i2 < nodes.length; _i2++) {
-                        var _ele = nodes[_i2];
-                        var _p2 = _ele._private;
-                        var _rstyle = _p2.rstyle;
+	readyList
+		.then( fn )
 
-                        var pos = _ele.position();
+		// Wrap jQuery.readyException in a function so that the lookup
+		// happens at the time of error handling instead of callback
+		// registration.
+		.catch( function( error ) {
+			jQuery.readyException( error );
+		} );
 
-                        this.recalculateNodeLabelProjection(_ele);
-                        _rstyle.nodeX = pos.x;
-                        _rstyle.nodeY = pos.y;
-                        _rstyle.nodeW = _ele.pstyle('width').pfValue;
-                        _rstyle.nodeH = _ele.pstyle('height').pfValue;
-                    }
+	return this;
+};
 
-                    this.recalculateEdgeProjections(edges); // update edge data from projections
-
-                    for (var _i3 = 0; _i3 < edges.length; _i3++) {
-                        var _ele2 = edges[_i3];
-                        var _p3 = _ele2._private;
-                        var _rstyle2 = _p3.rstyle;
-                        var rs = _p3.rscratch; // update rstyle positions
-
-                        _rstyle2.srcX = rs.arrowStartX;
-                        _rstyle2.srcY = rs.arrowStartY;
-                        _rstyle2.tgtX = rs.arrowEndX;
-                        _rstyle2.tgtY = rs.arrowEndY;
-                        _rstyle2.midX = rs.midX;
-                        _rstyle2.midY = rs.midY;
-                        _rstyle2.labelAngle = rs.labelAngle;
-                        _rstyle2.sourceLabelAngle = rs.sourceLabelAngle;
-                        _rstyle2.targetLabelAngle = rs.targetLabelAngle;
-                    }
-                };
+jQuery.extend( {
 
-                var BRp$9 = {};
+	// Is the DOM ready to be used? Set to true once it occurs.
+	isReady: false,
 
-                BRp$9.updateCachedGrabbedEles = function () {
-                    var eles = this.cachedZSortedEles;
+	// A counter to track how many items to wait for before
+	// the ready event fires. See #6781
+	readyWait: 1,
 
-                    if (!eles) {
-                        // just let this be recalculated on the next z sort tick
-                        return;
-                    }
+	// Handle when the DOM is ready
+	ready: function( wait ) {
 
-                    eles.drag = [];
-                    eles.nondrag = [];
-                    var grabTargets = [];
+		// Abort if there are pending holds or we're already ready
+		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
+			return;
+		}
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        var rs = ele._private.rscratch;
+		// Remember that the DOM is ready
+		jQuery.isReady = true;
 
-                        if (ele.grabbed() && !ele.isParent()) {
-                            grabTargets.push(ele);
-                        } else if (rs.inDragLayer) {
-                            eles.drag.push(ele);
-                        } else {
-                            eles.nondrag.push(ele);
-                        }
-                    } // put the grab target nodes last so it's on top of its neighbourhood
+		// If a normal DOM Ready event fired, decrement, and wait if need be
+		if ( wait !== true && --jQuery.readyWait > 0 ) {
+			return;
+		}
 
+		// If there are functions bound, to execute
+		readyList.resolveWith( document, [ jQuery ] );
+	}
+} );
 
-                    for (var i = 0; i < grabTargets.length; i++) {
-                        var ele = grabTargets[i];
-                        eles.drag.push(ele);
-                    }
-                };
+jQuery.ready.then = readyList.then;
 
-                BRp$9.invalidateCachedZSortedEles = function () {
-                    this.cachedZSortedEles = null;
-                };
+// The ready event handler and self cleanup method
+function completed() {
+	document.removeEventListener( "DOMContentLoaded", completed );
+	window.removeEventListener( "load", completed );
+	jQuery.ready();
+}
 
-                BRp$9.getCachedZSortedEles = function (forceRecalc) {
-                    if (forceRecalc || !this.cachedZSortedEles) {
-                        var eles = this.cy.mutableElements().toArray();
-                        eles.sort(zIndexSort);
-                        eles.interactive = eles.filter(function (ele) {
-                            return ele.interactive();
-                        });
-                        this.cachedZSortedEles = eles;
-                        this.updateCachedGrabbedEles();
-                    } else {
-                        eles = this.cachedZSortedEles;
-                    }
+// Catch cases where $(document).ready() is called
+// after the browser event has already occurred.
+// Support: IE <=9 - 10 only
+// Older IE sometimes signals "interactive" too soon
+if ( document.readyState === "complete" ||
+	( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
 
-                    return eles;
-                };
+	// Handle it asynchronously to allow scripts the opportunity to delay ready
+	window.setTimeout( jQuery.ready );
 
-                var BRp$a = {};
-                [BRp$1, BRp$2, BRp$3, BRp$4, BRp$5, BRp$6, BRp$7, BRp$8, BRp$9].forEach(function (props) {
-                    extend(BRp$a, props);
-                });
+} else {
 
-                var BRp$b = {};
+	// Use the handy event callback
+	document.addEventListener( "DOMContentLoaded", completed );
 
-                BRp$b.getCachedImage = function (url, crossOrigin, onLoad) {
-                    var r = this;
-                    var imageCache = r.imageCache = r.imageCache || {};
-                    var cache = imageCache[url];
+	// A fallback to window.onload, that will always work
+	window.addEventListener( "load", completed );
+}
 
-                    if (cache) {
-                        if (!cache.image.complete) {
-                            cache.image.addEventListener('load', onLoad);
-                        }
 
-                        return cache.image;
-                    } else {
-                        cache = imageCache[url] = imageCache[url] || {};
-                        var image = cache.image = new Image(); // eslint-disable-line no-undef
 
-                        image.addEventListener('load', onLoad);
-                        image.addEventListener('error', function () {
-                            image.error = true;
-                        }); // #1582 safari doesn't load data uris with crossOrigin properly
-                        // https://bugs.webkit.org/show_bug.cgi?id=123978
 
-                        var dataUriPrefix = 'data:';
-                        var isDataUri = url.substring(0, dataUriPrefix.length).toLowerCase() === dataUriPrefix;
+// Multifunctional method to get and set values of a collection
+// The value/s can optionally be executed if it's a function
+var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
+	var i = 0,
+		len = elems.length,
+		bulk = key == null;
+
+	// Sets many values
+	if ( toType( key ) === "object" ) {
+		chainable = true;
+		for ( i in key ) {
+			access( elems, fn, i, key[ i ], true, emptyGet, raw );
+		}
+
+	// Sets one value
+	} else if ( value !== undefined ) {
+		chainable = true;
+
+		if ( !isFunction( value ) ) {
+			raw = true;
+		}
+
+		if ( bulk ) {
+
+			// Bulk operations run against the entire set
+			if ( raw ) {
+				fn.call( elems, value );
+				fn = null;
+
+			// ...except when executing function values
+			} else {
+				bulk = fn;
+				fn = function( elem, _key, value ) {
+					return bulk.call( jQuery( elem ), value );
+				};
+			}
+		}
+
+		if ( fn ) {
+			for ( ; i < len; i++ ) {
+				fn(
+					elems[ i ], key, raw ?
+					value :
+					value.call( elems[ i ], i, fn( elems[ i ], key ) )
+				);
+			}
+		}
+	}
+
+	if ( chainable ) {
+		return elems;
+	}
+
+	// Gets
+	if ( bulk ) {
+		return fn.call( elems );
+	}
+
+	return len ? fn( elems[ 0 ], key ) : emptyGet;
+};
 
-                        if (!isDataUri) {
-                            image.crossOrigin = crossOrigin; // prevent tainted canvas
-                        }
 
-                        image.src = url;
-                        return image;
-                    }
-                };
+// Matches dashed string for camelizing
+var rmsPrefix = /^-ms-/,
+	rdashAlpha = /-([a-z])/g;
 
-                var BRp$c = {};
-                /* global document, window, ResizeObserver, MutationObserver */
+// Used by camelCase as callback to replace()
+function fcamelCase( _all, letter ) {
+	return letter.toUpperCase();
+}
 
-                BRp$c.registerBinding = function (target, event, handler, useCapture) {
-                    // eslint-disable-line no-unused-vars
-                    var args = Array.prototype.slice.apply(arguments, [1]); // copy
+// Convert dashed to camelCase; used by the css and data modules
+// Support: IE <=9 - 11, Edge 12 - 15
+// Microsoft forgot to hump their vendor prefix (#9572)
+function camelCase( string ) {
+	return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+}
+var acceptData = function( owner ) {
+
+	// Accepts only:
+	//  - Node
+	//    - Node.ELEMENT_NODE
+	//    - Node.DOCUMENT_NODE
+	//  - Object
+	//    - Any
+	return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
+};
+
+
+
+
+function Data() {
+	this.expando = jQuery.expando + Data.uid++;
+}
+
+Data.uid = 1;
+
+Data.prototype = {
+
+	cache: function( owner ) {
+
+		// Check if the owner object already has a cache
+		var value = owner[ this.expando ];
+
+		// If not, create one
+		if ( !value ) {
+			value = {};
+
+			// We can accept data for non-element nodes in modern browsers,
+			// but we should not, see #8335.
+			// Always return an empty object.
+			if ( acceptData( owner ) ) {
+
+				// If it is a node unlikely to be stringify-ed or looped over
+				// use plain assignment
+				if ( owner.nodeType ) {
+					owner[ this.expando ] = value;
+
+				// Otherwise secure it in a non-enumerable property
+				// configurable must be true to allow the property to be
+				// deleted when data is removed
+				} else {
+					Object.defineProperty( owner, this.expando, {
+						value: value,
+						configurable: true
+					} );
+				}
+			}
+		}
+
+		return value;
+	},
+	set: function( owner, data, value ) {
+		var prop,
+			cache = this.cache( owner );
+
+		// Handle: [ owner, key, value ] args
+		// Always use camelCase key (gh-2257)
+		if ( typeof data === "string" ) {
+			cache[ camelCase( data ) ] = value;
+
+		// Handle: [ owner, { properties } ] args
+		} else {
+
+			// Copy the properties one-by-one to the cache object
+			for ( prop in data ) {
+				cache[ camelCase( prop ) ] = data[ prop ];
+			}
+		}
+		return cache;
+	},
+	get: function( owner, key ) {
+		return key === undefined ?
+			this.cache( owner ) :
+
+			// Always use camelCase key (gh-2257)
+			owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
+	},
+	access: function( owner, key, value ) {
+
+		// In cases where either:
+		//
+		//   1. No key was specified
+		//   2. A string key was specified, but no value provided
+		//
+		// Take the "read" path and allow the get method to determine
+		// which value to return, respectively either:
+		//
+		//   1. The entire cache object
+		//   2. The data stored at the key
+		//
+		if ( key === undefined ||
+				( ( key && typeof key === "string" ) && value === undefined ) ) {
+
+			return this.get( owner, key );
+		}
+
+		// When the key is not a string, or both a key and value
+		// are specified, set or extend (existing objects) with either:
+		//
+		//   1. An object of properties
+		//   2. A key and value
+		//
+		this.set( owner, key, value );
+
+		// Since the "set" path can have two possible entry points
+		// return the expected data based on which path was taken[*]
+		return value !== undefined ? value : key;
+	},
+	remove: function( owner, key ) {
+		var i,
+			cache = owner[ this.expando ];
+
+		if ( cache === undefined ) {
+			return;
+		}
+
+		if ( key !== undefined ) {
+
+			// Support array or space separated string of keys
+			if ( Array.isArray( key ) ) {
+
+				// If key is an array of keys...
+				// We always set camelCase keys, so remove that.
+				key = key.map( camelCase );
+			} else {
+				key = camelCase( key );
+
+				// If a key with the spaces exists, use it.
+				// Otherwise, create an array by matching non-whitespace
+				key = key in cache ?
+					[ key ] :
+					( key.match( rnothtmlwhite ) || [] );
+			}
+
+			i = key.length;
+
+			while ( i-- ) {
+				delete cache[ key[ i ] ];
+			}
+		}
+
+		// Remove the expando if there's no more data
+		if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
+
+			// Support: Chrome <=35 - 45
+			// Webkit & Blink performance suffers when deleting properties
+			// from DOM nodes, so set to undefined instead
+			// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
+			if ( owner.nodeType ) {
+				owner[ this.expando ] = undefined;
+			} else {
+				delete owner[ this.expando ];
+			}
+		}
+	},
+	hasData: function( owner ) {
+		var cache = owner[ this.expando ];
+		return cache !== undefined && !jQuery.isEmptyObject( cache );
+	}
+};
+var dataPriv = new Data();
+
+var dataUser = new Data();
 
-                    var b = this.binder(target);
-                    return b.on.apply(b, args);
-                };
 
-                BRp$c.binder = function (tgt) {
-                    var r = this;
-                    var tgtIsDom = tgt === window || tgt === document || tgt === document.body || domElement(tgt);
-
-                    if (r.supportsPassiveEvents == null) {
-                        // from https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
-                        var supportsPassive = false;
-
-                        try {
-                            var opts = Object.defineProperty({}, 'passive', {
-                                get: function get() {
-                                    supportsPassive = true;
-                                    return true;
-                                }
-                            });
-                            window.addEventListener('test', null, opts);
-                        } catch (err) {// not supported
-                        }
 
-                        r.supportsPassiveEvents = supportsPassive;
-                    }
+//	Implementation Summary
+//
+//	1. Enforce API surface and semantic compatibility with 1.9.x branch
+//	2. Improve the module's maintainability by reducing the storage
+//		paths to a single mechanism.
+//	3. Use the same single mechanism to support "private" and "user" data.
+//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
+//	5. Avoid exposing implementation details on user objects (eg. expando properties)
+//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
 
-                    var on = function on(event, handler, useCapture) {
-                        var args = Array.prototype.slice.call(arguments);
+var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
+	rmultiDash = /[A-Z]/g;
+
+function getData( data ) {
+	if ( data === "true" ) {
+		return true;
+	}
+
+	if ( data === "false" ) {
+		return false;
+	}
+
+	if ( data === "null" ) {
+		return null;
+	}
+
+	// Only convert to a number if it doesn't change the string
+	if ( data === +data + "" ) {
+		return +data;
+	}
+
+	if ( rbrace.test( data ) ) {
+		return JSON.parse( data );
+	}
+
+	return data;
+}
+
+function dataAttr( elem, key, data ) {
+	var name;
+
+	// If nothing was found internally, try to fetch any
+	// data from the HTML5 data-* attribute
+	if ( data === undefined && elem.nodeType === 1 ) {
+		name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
+		data = elem.getAttribute( name );
+
+		if ( typeof data === "string" ) {
+			try {
+				data = getData( data );
+			} catch ( e ) {}
+
+			// Make sure we set the data so it isn't changed later
+			dataUser.set( elem, key, data );
+		} else {
+			data = undefined;
+		}
+	}
+	return data;
+}
+
+jQuery.extend( {
+	hasData: function( elem ) {
+		return dataUser.hasData( elem ) || dataPriv.hasData( elem );
+	},
+
+	data: function( elem, name, data ) {
+		return dataUser.access( elem, name, data );
+	},
+
+	removeData: function( elem, name ) {
+		dataUser.remove( elem, name );
+	},
+
+	// TODO: Now that all calls to _data and _removeData have been replaced
+	// with direct calls to dataPriv methods, these can be deprecated.
+	_data: function( elem, name, data ) {
+		return dataPriv.access( elem, name, data );
+	},
+
+	_removeData: function( elem, name ) {
+		dataPriv.remove( elem, name );
+	}
+} );
+
+jQuery.fn.extend( {
+	data: function( key, value ) {
+		var i, name, data,
+			elem = this[ 0 ],
+			attrs = elem && elem.attributes;
+
+		// Gets all values
+		if ( key === undefined ) {
+			if ( this.length ) {
+				data = dataUser.get( elem );
+
+				if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
+					i = attrs.length;
+					while ( i-- ) {
+
+						// Support: IE 11 only
+						// The attrs elements can be null (#14894)
+						if ( attrs[ i ] ) {
+							name = attrs[ i ].name;
+							if ( name.indexOf( "data-" ) === 0 ) {
+								name = camelCase( name.slice( 5 ) );
+								dataAttr( elem, name, data[ name ] );
+							}
+						}
+					}
+					dataPriv.set( elem, "hasDataAttrs", true );
+				}
+			}
+
+			return data;
+		}
+
+		// Sets multiple values
+		if ( typeof key === "object" ) {
+			return this.each( function() {
+				dataUser.set( this, key );
+			} );
+		}
+
+		return access( this, function( value ) {
+			var data;
+
+			// The calling jQuery object (element matches) is not empty
+			// (and therefore has an element appears at this[ 0 ]) and the
+			// `value` parameter was not undefined. An empty jQuery object
+			// will result in `undefined` for elem = this[ 0 ] which will
+			// throw an exception if an attempt to read a data cache is made.
+			if ( elem && value === undefined ) {
+
+				// Attempt to get data from the cache
+				// The key will always be camelCased in Data
+				data = dataUser.get( elem, key );
+				if ( data !== undefined ) {
+					return data;
+				}
+
+				// Attempt to "discover" the data in
+				// HTML5 custom data-* attrs
+				data = dataAttr( elem, key );
+				if ( data !== undefined ) {
+					return data;
+				}
+
+				// We tried really hard, but the data doesn't exist.
+				return;
+			}
+
+			// Set the data...
+			this.each( function() {
+
+				// We always store the camelCased key
+				dataUser.set( this, key, value );
+			} );
+		}, null, value, arguments.length > 1, null, true );
+	},
+
+	removeData: function( key ) {
+		return this.each( function() {
+			dataUser.remove( this, key );
+		} );
+	}
+} );
+
+
+jQuery.extend( {
+	queue: function( elem, type, data ) {
+		var queue;
+
+		if ( elem ) {
+			type = ( type || "fx" ) + "queue";
+			queue = dataPriv.get( elem, type );
+
+			// Speed up dequeue by getting out quickly if this is just a lookup
+			if ( data ) {
+				if ( !queue || Array.isArray( data ) ) {
+					queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
+				} else {
+					queue.push( data );
+				}
+			}
+			return queue || [];
+		}
+	},
+
+	dequeue: function( elem, type ) {
+		type = type || "fx";
+
+		var queue = jQuery.queue( elem, type ),
+			startLength = queue.length,
+			fn = queue.shift(),
+			hooks = jQuery._queueHooks( elem, type ),
+			next = function() {
+				jQuery.dequeue( elem, type );
+			};
+
+		// If the fx queue is dequeued, always remove the progress sentinel
+		if ( fn === "inprogress" ) {
+			fn = queue.shift();
+			startLength--;
+		}
+
+		if ( fn ) {
+
+			// Add a progress sentinel to prevent the fx queue from being
+			// automatically dequeued
+			if ( type === "fx" ) {
+				queue.unshift( "inprogress" );
+			}
+
+			// Clear up the last queue stop function
+			delete hooks.stop;
+			fn.call( elem, next, hooks );
+		}
+
+		if ( !startLength && hooks ) {
+			hooks.empty.fire();
+		}
+	},
+
+	// Not public - generate a queueHooks object, or return the current one
+	_queueHooks: function( elem, type ) {
+		var key = type + "queueHooks";
+		return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
+			empty: jQuery.Callbacks( "once memory" ).add( function() {
+				dataPriv.remove( elem, [ type + "queue", key ] );
+			} )
+		} );
+	}
+} );
+
+jQuery.fn.extend( {
+	queue: function( type, data ) {
+		var setter = 2;
+
+		if ( typeof type !== "string" ) {
+			data = type;
+			type = "fx";
+			setter--;
+		}
+
+		if ( arguments.length < setter ) {
+			return jQuery.queue( this[ 0 ], type );
+		}
+
+		return data === undefined ?
+			this :
+			this.each( function() {
+				var queue = jQuery.queue( this, type, data );
+
+				// Ensure a hooks for this queue
+				jQuery._queueHooks( this, type );
+
+				if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
+					jQuery.dequeue( this, type );
+				}
+			} );
+	},
+	dequeue: function( type ) {
+		return this.each( function() {
+			jQuery.dequeue( this, type );
+		} );
+	},
+	clearQueue: function( type ) {
+		return this.queue( type || "fx", [] );
+	},
+
+	// Get a promise resolved when queues of a certain type
+	// are emptied (fx is the type by default)
+	promise: function( type, obj ) {
+		var tmp,
+			count = 1,
+			defer = jQuery.Deferred(),
+			elements = this,
+			i = this.length,
+			resolve = function() {
+				if ( !( --count ) ) {
+					defer.resolveWith( elements, [ elements ] );
+				}
+			};
+
+		if ( typeof type !== "string" ) {
+			obj = type;
+			type = undefined;
+		}
+		type = type || "fx";
+
+		while ( i-- ) {
+			tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
+			if ( tmp && tmp.empty ) {
+				count++;
+				tmp.empty.add( resolve );
+			}
+		}
+		resolve();
+		return defer.promise( obj );
+	}
+} );
+var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
+
+var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
+
+
+var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
+
+var documentElement = document.documentElement;
+
+
+
+	var isAttached = function( elem ) {
+			return jQuery.contains( elem.ownerDocument, elem );
+		},
+		composed = { composed: true };
+
+	// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
+	// Check attachment across shadow DOM boundaries when possible (gh-3504)
+	// Support: iOS 10.0-10.2 only
+	// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
+	// leading to errors. We need to check for `getRootNode`.
+	if ( documentElement.getRootNode ) {
+		isAttached = function( elem ) {
+			return jQuery.contains( elem.ownerDocument, elem ) ||
+				elem.getRootNode( composed ) === elem.ownerDocument;
+		};
+	}
+var isHiddenWithinTree = function( elem, el ) {
+
+		// isHiddenWithinTree might be called from jQuery#filter function;
+		// in that case, element will be second argument
+		elem = el || elem;
+
+		// Inline style trumps all
+		return elem.style.display === "none" ||
+			elem.style.display === "" &&
+
+			// Otherwise, check computed style
+			// Support: Firefox <=43 - 45
+			// Disconnected elements can have computed display: none, so first confirm that elem is
+			// in the document.
+			isAttached( elem ) &&
+
+			jQuery.css( elem, "display" ) === "none";
+	};
+
+
+
+function adjustCSS( elem, prop, valueParts, tween ) {
+	var adjusted, scale,
+		maxIterations = 20,
+		currentValue = tween ?
+			function() {
+				return tween.cur();
+			} :
+			function() {
+				return jQuery.css( elem, prop, "" );
+			},
+		initial = currentValue(),
+		unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
+
+		// Starting value computation is required for potential unit mismatches
+		initialInUnit = elem.nodeType &&
+			( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
+			rcssNum.exec( jQuery.css( elem, prop ) );
+
+	if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
+
+		// Support: Firefox <=54
+		// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
+		initial = initial / 2;
+
+		// Trust units reported by jQuery.css
+		unit = unit || initialInUnit[ 3 ];
+
+		// Iteratively approximate from a nonzero starting point
+		initialInUnit = +initial || 1;
+
+		while ( maxIterations-- ) {
+
+			// Evaluate and update our best guess (doubling guesses that zero out).
+			// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
+			jQuery.style( elem, prop, initialInUnit + unit );
+			if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
+				maxIterations = 0;
+			}
+			initialInUnit = initialInUnit / scale;
+
+		}
+
+		initialInUnit = initialInUnit * 2;
+		jQuery.style( elem, prop, initialInUnit + unit );
+
+		// Make sure we update the tween properties later on
+		valueParts = valueParts || [];
+	}
+
+	if ( valueParts ) {
+		initialInUnit = +initialInUnit || +initial || 0;
+
+		// Apply relative offset (+=/-=) if specified
+		adjusted = valueParts[ 1 ] ?
+			initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
+			+valueParts[ 2 ];
+		if ( tween ) {
+			tween.unit = unit;
+			tween.start = initialInUnit;
+			tween.end = adjusted;
+		}
+	}
+	return adjusted;
+}
+
+
+var defaultDisplayMap = {};
+
+function getDefaultDisplay( elem ) {
+	var temp,
+		doc = elem.ownerDocument,
+		nodeName = elem.nodeName,
+		display = defaultDisplayMap[ nodeName ];
+
+	if ( display ) {
+		return display;
+	}
+
+	temp = doc.body.appendChild( doc.createElement( nodeName ) );
+	display = jQuery.css( temp, "display" );
+
+	temp.parentNode.removeChild( temp );
+
+	if ( display === "none" ) {
+		display = "block";
+	}
+	defaultDisplayMap[ nodeName ] = display;
+
+	return display;
+}
+
+function showHide( elements, show ) {
+	var display, elem,
+		values = [],
+		index = 0,
+		length = elements.length;
+
+	// Determine new display value for elements that need to change
+	for ( ; index < length; index++ ) {
+		elem = elements[ index ];
+		if ( !elem.style ) {
+			continue;
+		}
+
+		display = elem.style.display;
+		if ( show ) {
+
+			// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
+			// check is required in this first loop unless we have a nonempty display value (either
+			// inline or about-to-be-restored)
+			if ( display === "none" ) {
+				values[ index ] = dataPriv.get( elem, "display" ) || null;
+				if ( !values[ index ] ) {
+					elem.style.display = "";
+				}
+			}
+			if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
+				values[ index ] = getDefaultDisplay( elem );
+			}
+		} else {
+			if ( display !== "none" ) {
+				values[ index ] = "none";
+
+				// Remember what we're overwriting
+				dataPriv.set( elem, "display", display );
+			}
+		}
+	}
+
+	// Set the display of the elements in a second loop to avoid constant reflow
+	for ( index = 0; index < length; index++ ) {
+		if ( values[ index ] != null ) {
+			elements[ index ].style.display = values[ index ];
+		}
+	}
+
+	return elements;
+}
+
+jQuery.fn.extend( {
+	show: function() {
+		return showHide( this, true );
+	},
+	hide: function() {
+		return showHide( this );
+	},
+	toggle: function( state ) {
+		if ( typeof state === "boolean" ) {
+			return state ? this.show() : this.hide();
+		}
+
+		return this.each( function() {
+			if ( isHiddenWithinTree( this ) ) {
+				jQuery( this ).show();
+			} else {
+				jQuery( this ).hide();
+			}
+		} );
+	}
+} );
+var rcheckableType = ( /^(?:checkbox|radio)$/i );
+
+var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
+
+var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
+
+
+
+( function() {
+	var fragment = document.createDocumentFragment(),
+		div = fragment.appendChild( document.createElement( "div" ) ),
+		input = document.createElement( "input" );
+
+	// Support: Android 4.0 - 4.3 only
+	// Check state lost if the name is set (#11217)
+	// Support: Windows Web Apps (WWA)
+	// `name` and `type` must use .setAttribute for WWA (#14901)
+	input.setAttribute( "type", "radio" );
+	input.setAttribute( "checked", "checked" );
+	input.setAttribute( "name", "t" );
+
+	div.appendChild( input );
+
+	// Support: Android <=4.1 only
+	// Older WebKit doesn't clone checked state correctly in fragments
+	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+	// Support: IE <=11 only
+	// Make sure textarea (and checkbox) defaultValue is properly cloned
+	div.innerHTML = "<textarea>x</textarea>";
+	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
+
+	// Support: IE <=9 only
+	// IE <=9 replaces <option> tags with their contents when inserted outside of
+	// the select element.
+	div.innerHTML = "<option></option>";
+	support.option = !!div.lastChild;
+} )();
 
-                        if (tgtIsDom && r.supportsPassiveEvents) {
-                            // replace useCapture w/ opts obj
-                            args[2] = {
-                                capture: useCapture != null ? useCapture : false,
-                                passive: false,
-                                once: false
-                            };
-                        }
 
-                        r.bindings.push({
-                            target: tgt,
-                            args: args
-                        });
-                        (tgt.addEventListener || tgt.on).apply(tgt, args);
-                        return this;
-                    };
-
-                    return {
-                        on: on,
-                        addEventListener: on,
-                        addListener: on,
-                        bind: on
-                    };
-                };
+// We have to close these tags to support XHTML (#13200)
+var wrapMap = {
 
-                BRp$c.nodeIsDraggable = function (node) {
-                    return node && node.isNode() && !node.locked() && node.grabbable();
-                };
+	// XHTML parsers do not magically insert elements in the
+	// same way that tag soup parsers do. So we cannot shorten
+	// this by omitting <tbody> or other required elements.
+	thead: [ 1, "<table>", "</table>" ],
+	col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
+	tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+	td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
 
-                BRp$c.nodeIsGrabbable = function (node) {
-                    return this.nodeIsDraggable(node) && node.interactive();
-                };
+	_default: [ 0, "", "" ]
+};
 
-                BRp$c.load = function () {
-                    var r = this;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
 
-                    var isSelected = function isSelected(ele) {
-                        return ele.selected();
-                    };
+// Support: IE <=9 only
+if ( !support.option ) {
+	wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
+}
 
-                    var triggerEvents = function triggerEvents(target, names, e, position) {
-                        if (target == null) {
-                            target = r.cy;
-                        }
 
-                        for (var i = 0; i < names.length; i++) {
-                            var name = names[i];
-                            target.emit({
-                                originalEvent: e,
-                                type: name,
-                                position: position
-                            });
-                        }
-                    };
+function getAll( context, tag ) {
 
-                    var isMultSelKeyDown = function isMultSelKeyDown(e) {
-                        return e.shiftKey || e.metaKey || e.ctrlKey; // maybe e.altKey
-                    };
+	// Support: IE <=9 - 11 only
+	// Use typeof to avoid zero-argument method invocation on host objects (#15151)
+	var ret;
 
-                    var allowPanningPassthrough = function allowPanningPassthrough(down, downs) {
-                        var allowPassthrough = true;
+	if ( typeof context.getElementsByTagName !== "undefined" ) {
+		ret = context.getElementsByTagName( tag || "*" );
 
-                        if (r.cy.hasCompoundNodes() && down && down.pannable()) {
-                            // a grabbable compound node below the ele => no passthrough panning
-                            for (var i = 0; downs && i < downs.length; i++) {
-                                var down = downs[i];
+	} else if ( typeof context.querySelectorAll !== "undefined" ) {
+		ret = context.querySelectorAll( tag || "*" );
 
-                                if (down.isNode() && down.isParent()) {
-                                    allowPassthrough = false;
-                                    break;
-                                }
-                            }
-                        } else {
-                            allowPassthrough = true;
-                        }
+	} else {
+		ret = [];
+	}
 
-                        return allowPassthrough;
-                    };
+	if ( tag === undefined || tag && nodeName( context, tag ) ) {
+		return jQuery.merge( [ context ], ret );
+	}
 
-                    var setGrabbed = function setGrabbed(ele) {
-                        ele[0]._private.grabbed = true;
-                    };
+	return ret;
+}
 
-                    var setFreed = function setFreed(ele) {
-                        ele[0]._private.grabbed = false;
-                    };
 
-                    var setInDragLayer = function setInDragLayer(ele) {
-                        ele[0]._private.rscratch.inDragLayer = true;
-                    };
+// Mark scripts as having already been evaluated
+function setGlobalEval( elems, refElements ) {
+	var i = 0,
+		l = elems.length;
+
+	for ( ; i < l; i++ ) {
+		dataPriv.set(
+			elems[ i ],
+			"globalEval",
+			!refElements || dataPriv.get( refElements[ i ], "globalEval" )
+		);
+	}
+}
+
+
+var rhtml = /<|&#?\w+;/;
+
+function buildFragment( elems, context, scripts, selection, ignored ) {
+	var elem, tmp, tag, wrap, attached, j,
+		fragment = context.createDocumentFragment(),
+		nodes = [],
+		i = 0,
+		l = elems.length;
+
+	for ( ; i < l; i++ ) {
+		elem = elems[ i ];
+
+		if ( elem || elem === 0 ) {
+
+			// Add nodes directly
+			if ( toType( elem ) === "object" ) {
+
+				// Support: Android <=4.0 only, PhantomJS 1 only
+				// push.apply(_, arraylike) throws on ancient WebKit
+				jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
+
+			// Convert non-html into a text node
+			} else if ( !rhtml.test( elem ) ) {
+				nodes.push( context.createTextNode( elem ) );
+
+			// Convert html into DOM nodes
+			} else {
+				tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
+
+				// Deserialize a standard representation
+				tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
+				wrap = wrapMap[ tag ] || wrapMap._default;
+				tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
+
+				// Descend through wrappers to the right content
+				j = wrap[ 0 ];
+				while ( j-- ) {
+					tmp = tmp.lastChild;
+				}
+
+				// Support: Android <=4.0 only, PhantomJS 1 only
+				// push.apply(_, arraylike) throws on ancient WebKit
+				jQuery.merge( nodes, tmp.childNodes );
+
+				// Remember the top-level container
+				tmp = fragment.firstChild;
+
+				// Ensure the created nodes are orphaned (#12392)
+				tmp.textContent = "";
+			}
+		}
+	}
+
+	// Remove wrapper from fragment
+	fragment.textContent = "";
+
+	i = 0;
+	while ( ( elem = nodes[ i++ ] ) ) {
+
+		// Skip elements already in the context collection (trac-4087)
+		if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
+			if ( ignored ) {
+				ignored.push( elem );
+			}
+			continue;
+		}
+
+		attached = isAttached( elem );
+
+		// Append to fragment
+		tmp = getAll( fragment.appendChild( elem ), "script" );
+
+		// Preserve script evaluation history
+		if ( attached ) {
+			setGlobalEval( tmp );
+		}
+
+		// Capture executables
+		if ( scripts ) {
+			j = 0;
+			while ( ( elem = tmp[ j++ ] ) ) {
+				if ( rscriptType.test( elem.type || "" ) ) {
+					scripts.push( elem );
+				}
+			}
+		}
+	}
+
+	return fragment;
+}
+
+
+var
+	rkeyEvent = /^key/,
+	rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
+	rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
 
-                    var setOutDragLayer = function setOutDragLayer(ele) {
-                        ele[0]._private.rscratch.inDragLayer = false;
-                    };
+function returnTrue() {
+	return true;
+}
+
+function returnFalse() {
+	return false;
+}
 
-                    var setGrabTarget = function setGrabTarget(ele) {
-                        ele[0]._private.rscratch.isGrabTarget = true;
-                    };
+// Support: IE <=9 - 11+
+// focus() and blur() are asynchronous, except when they are no-op.
+// So expect focus to be synchronous when the element is already active,
+// and blur to be synchronous when the element is not already active.
+// (focus and blur are always synchronous in other supported browsers,
+// this just defines when we can count on it).
+function expectSync( elem, type ) {
+	return ( elem === safeActiveElement() ) === ( type === "focus" );
+}
 
-                    var removeGrabTarget = function removeGrabTarget(ele) {
-                        ele[0]._private.rscratch.isGrabTarget = false;
-                    };
+// Support: IE <=9 only
+// Accessing document.activeElement can throw unexpectedly
+// https://bugs.jquery.com/ticket/13393
+function safeActiveElement() {
+	try {
+		return document.activeElement;
+	} catch ( err ) { }
+}
+
+function on( elem, types, selector, data, fn, one ) {
+	var origFn, type;
+
+	// Types can be a map of types/handlers
+	if ( typeof types === "object" ) {
+
+		// ( types-Object, selector, data )
+		if ( typeof selector !== "string" ) {
+
+			// ( types-Object, data )
+			data = data || selector;
+			selector = undefined;
+		}
+		for ( type in types ) {
+			on( elem, type, selector, data, types[ type ], one );
+		}
+		return elem;
+	}
+
+	if ( data == null && fn == null ) {
+
+		// ( types, fn )
+		fn = selector;
+		data = selector = undefined;
+	} else if ( fn == null ) {
+		if ( typeof selector === "string" ) {
+
+			// ( types, selector, fn )
+			fn = data;
+			data = undefined;
+		} else {
+
+			// ( types, data, fn )
+			fn = data;
+			data = selector;
+			selector = undefined;
+		}
+	}
+	if ( fn === false ) {
+		fn = returnFalse;
+	} else if ( !fn ) {
+		return elem;
+	}
+
+	if ( one === 1 ) {
+		origFn = fn;
+		fn = function( event ) {
+
+			// Can use an empty set, since event contains the info
+			jQuery().off( event );
+			return origFn.apply( this, arguments );
+		};
+
+		// Use same guid so caller can remove using origFn
+		fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+	}
+	return elem.each( function() {
+		jQuery.event.add( this, types, fn, data, selector );
+	} );
+}
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+	global: {},
+
+	add: function( elem, types, handler, data, selector ) {
+
+		var handleObjIn, eventHandle, tmp,
+			events, t, handleObj,
+			special, handlers, type, namespaces, origType,
+			elemData = dataPriv.get( elem );
+
+		// Only attach events to objects that accept data
+		if ( !acceptData( elem ) ) {
+			return;
+		}
+
+		// Caller can pass in an object of custom data in lieu of the handler
+		if ( handler.handler ) {
+			handleObjIn = handler;
+			handler = handleObjIn.handler;
+			selector = handleObjIn.selector;
+		}
+
+		// Ensure that invalid selectors throw exceptions at attach time
+		// Evaluate against documentElement in case elem is a non-element node (e.g., document)
+		if ( selector ) {
+			jQuery.find.matchesSelector( documentElement, selector );
+		}
+
+		// Make sure that the handler has a unique ID, used to find/remove it later
+		if ( !handler.guid ) {
+			handler.guid = jQuery.guid++;
+		}
+
+		// Init the element's event structure and main handler, if this is the first
+		if ( !( events = elemData.events ) ) {
+			events = elemData.events = Object.create( null );
+		}
+		if ( !( eventHandle = elemData.handle ) ) {
+			eventHandle = elemData.handle = function( e ) {
+
+				// Discard the second event of a jQuery.event.trigger() and
+				// when an event is called after a page has unloaded
+				return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
+					jQuery.event.dispatch.apply( elem, arguments ) : undefined;
+			};
+		}
+
+		// Handle multiple events separated by a space
+		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
+		t = types.length;
+		while ( t-- ) {
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
+			type = origType = tmp[ 1 ];
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+			// There *must* be a type, no attaching namespace-only handlers
+			if ( !type ) {
+				continue;
+			}
+
+			// If event changes its type, use the special event handlers for the changed type
+			special = jQuery.event.special[ type ] || {};
+
+			// If selector defined, determine special event api type, otherwise given type
+			type = ( selector ? special.delegateType : special.bindType ) || type;
+
+			// Update special based on newly reset type
+			special = jQuery.event.special[ type ] || {};
+
+			// handleObj is passed to all event handlers
+			handleObj = jQuery.extend( {
+				type: type,
+				origType: origType,
+				data: data,
+				handler: handler,
+				guid: handler.guid,
+				selector: selector,
+				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
+				namespace: namespaces.join( "." )
+			}, handleObjIn );
+
+			// Init the event handler queue if we're the first
+			if ( !( handlers = events[ type ] ) ) {
+				handlers = events[ type ] = [];
+				handlers.delegateCount = 0;
+
+				// Only use addEventListener if the special events handler returns false
+				if ( !special.setup ||
+					special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+
+					if ( elem.addEventListener ) {
+						elem.addEventListener( type, eventHandle );
+					}
+				}
+			}
+
+			if ( special.add ) {
+				special.add.call( elem, handleObj );
+
+				if ( !handleObj.handler.guid ) {
+					handleObj.handler.guid = handler.guid;
+				}
+			}
+
+			// Add to the element's handler list, delegates in front
+			if ( selector ) {
+				handlers.splice( handlers.delegateCount++, 0, handleObj );
+			} else {
+				handlers.push( handleObj );
+			}
+
+			// Keep track of which events have ever been used, for event optimization
+			jQuery.event.global[ type ] = true;
+		}
+
+	},
+
+	// Detach an event or set of events from an element
+	remove: function( elem, types, handler, selector, mappedTypes ) {
+
+		var j, origCount, tmp,
+			events, t, handleObj,
+			special, handlers, type, namespaces, origType,
+			elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
+
+		if ( !elemData || !( events = elemData.events ) ) {
+			return;
+		}
+
+		// Once for each type.namespace in types; type may be omitted
+		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
+		t = types.length;
+		while ( t-- ) {
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
+			type = origType = tmp[ 1 ];
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+			// Unbind all events (on this namespace, if provided) for the element
+			if ( !type ) {
+				for ( type in events ) {
+					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+				}
+				continue;
+			}
+
+			special = jQuery.event.special[ type ] || {};
+			type = ( selector ? special.delegateType : special.bindType ) || type;
+			handlers = events[ type ] || [];
+			tmp = tmp[ 2 ] &&
+				new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
+
+			// Remove matching events
+			origCount = j = handlers.length;
+			while ( j-- ) {
+				handleObj = handlers[ j ];
+
+				if ( ( mappedTypes || origType === handleObj.origType ) &&
+					( !handler || handler.guid === handleObj.guid ) &&
+					( !tmp || tmp.test( handleObj.namespace ) ) &&
+					( !selector || selector === handleObj.selector ||
+						selector === "**" && handleObj.selector ) ) {
+					handlers.splice( j, 1 );
+
+					if ( handleObj.selector ) {
+						handlers.delegateCount--;
+					}
+					if ( special.remove ) {
+						special.remove.call( elem, handleObj );
+					}
+				}
+			}
+
+			// Remove generic event handler if we removed something and no more handlers exist
+			// (avoids potential for endless recursion during removal of special event handlers)
+			if ( origCount && !handlers.length ) {
+				if ( !special.teardown ||
+					special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
+
+					jQuery.removeEvent( elem, type, elemData.handle );
+				}
+
+				delete events[ type ];
+			}
+		}
+
+		// Remove data and the expando if it's no longer used
+		if ( jQuery.isEmptyObject( events ) ) {
+			dataPriv.remove( elem, "handle events" );
+		}
+	},
+
+	dispatch: function( nativeEvent ) {
+
+		var i, j, ret, matched, handleObj, handlerQueue,
+			args = new Array( arguments.length ),
+
+			// Make a writable jQuery.Event from the native event object
+			event = jQuery.event.fix( nativeEvent ),
+
+			handlers = (
+					dataPriv.get( this, "events" ) || Object.create( null )
+				)[ event.type ] || [],
+			special = jQuery.event.special[ event.type ] || {};
+
+		// Use the fix-ed jQuery.Event rather than the (read-only) native event
+		args[ 0 ] = event;
+
+		for ( i = 1; i < arguments.length; i++ ) {
+			args[ i ] = arguments[ i ];
+		}
+
+		event.delegateTarget = this;
+
+		// Call the preDispatch hook for the mapped type, and let it bail if desired
+		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
+			return;
+		}
+
+		// Determine handlers
+		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
+
+		// Run delegates first; they may want to stop propagation beneath us
+		i = 0;
+		while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
+			event.currentTarget = matched.elem;
+
+			j = 0;
+			while ( ( handleObj = matched.handlers[ j++ ] ) &&
+				!event.isImmediatePropagationStopped() ) {
+
+				// If the event is namespaced, then each handler is only invoked if it is
+				// specially universal or its namespaces are a superset of the event's.
+				if ( !event.rnamespace || handleObj.namespace === false ||
+					event.rnamespace.test( handleObj.namespace ) ) {
+
+					event.handleObj = handleObj;
+					event.data = handleObj.data;
+
+					ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
+						handleObj.handler ).apply( matched.elem, args );
+
+					if ( ret !== undefined ) {
+						if ( ( event.result = ret ) === false ) {
+							event.preventDefault();
+							event.stopPropagation();
+						}
+					}
+				}
+			}
+		}
+
+		// Call the postDispatch hook for the mapped type
+		if ( special.postDispatch ) {
+			special.postDispatch.call( this, event );
+		}
+
+		return event.result;
+	},
+
+	handlers: function( event, handlers ) {
+		var i, handleObj, sel, matchedHandlers, matchedSelectors,
+			handlerQueue = [],
+			delegateCount = handlers.delegateCount,
+			cur = event.target;
+
+		// Find delegate handlers
+		if ( delegateCount &&
+
+			// Support: IE <=9
+			// Black-hole SVG <use> instance trees (trac-13180)
+			cur.nodeType &&
+
+			// Support: Firefox <=42
+			// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
+			// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
+			// Support: IE 11 only
+			// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
+			!( event.type === "click" && event.button >= 1 ) ) {
+
+			for ( ; cur !== this; cur = cur.parentNode || this ) {
+
+				// Don't check non-elements (#13208)
+				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
+				if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
+					matchedHandlers = [];
+					matchedSelectors = {};
+					for ( i = 0; i < delegateCount; i++ ) {
+						handleObj = handlers[ i ];
+
+						// Don't conflict with Object.prototype properties (#13203)
+						sel = handleObj.selector + " ";
+
+						if ( matchedSelectors[ sel ] === undefined ) {
+							matchedSelectors[ sel ] = handleObj.needsContext ?
+								jQuery( sel, this ).index( cur ) > -1 :
+								jQuery.find( sel, this, null, [ cur ] ).length;
+						}
+						if ( matchedSelectors[ sel ] ) {
+							matchedHandlers.push( handleObj );
+						}
+					}
+					if ( matchedHandlers.length ) {
+						handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
+					}
+				}
+			}
+		}
+
+		// Add the remaining (directly-bound) handlers
+		cur = this;
+		if ( delegateCount < handlers.length ) {
+			handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
+		}
+
+		return handlerQueue;
+	},
+
+	addProp: function( name, hook ) {
+		Object.defineProperty( jQuery.Event.prototype, name, {
+			enumerable: true,
+			configurable: true,
+
+			get: isFunction( hook ) ?
+				function() {
+					if ( this.originalEvent ) {
+							return hook( this.originalEvent );
+					}
+				} :
+				function() {
+					if ( this.originalEvent ) {
+							return this.originalEvent[ name ];
+					}
+				},
+
+			set: function( value ) {
+				Object.defineProperty( this, name, {
+					enumerable: true,
+					configurable: true,
+					writable: true,
+					value: value
+				} );
+			}
+		} );
+	},
+
+	fix: function( originalEvent ) {
+		return originalEvent[ jQuery.expando ] ?
+			originalEvent :
+			new jQuery.Event( originalEvent );
+	},
+
+	special: {
+		load: {
+
+			// Prevent triggered image.load events from bubbling to window.load
+			noBubble: true
+		},
+		click: {
+
+			// Utilize native event to ensure correct state for checkable inputs
+			setup: function( data ) {
+
+				// For mutual compressibility with _default, replace `this` access with a local var.
+				// `|| data` is dead code meant only to preserve the variable through minification.
+				var el = this || data;
+
+				// Claim the first handler
+				if ( rcheckableType.test( el.type ) &&
+					el.click && nodeName( el, "input" ) ) {
+
+					// dataPriv.set( el, "click", ... )
+					leverageNative( el, "click", returnTrue );
+				}
+
+				// Return false to allow normal processing in the caller
+				return false;
+			},
+			trigger: function( data ) {
+
+				// For mutual compressibility with _default, replace `this` access with a local var.
+				// `|| data` is dead code meant only to preserve the variable through minification.
+				var el = this || data;
+
+				// Force setup before triggering a click
+				if ( rcheckableType.test( el.type ) &&
+					el.click && nodeName( el, "input" ) ) {
+
+					leverageNative( el, "click" );
+				}
+
+				// Return non-false to allow normal event-path propagation
+				return true;
+			},
+
+			// For cross-browser consistency, suppress native .click() on links
+			// Also prevent it if we're currently inside a leveraged native-event stack
+			_default: function( event ) {
+				var target = event.target;
+				return rcheckableType.test( target.type ) &&
+					target.click && nodeName( target, "input" ) &&
+					dataPriv.get( target, "click" ) ||
+					nodeName( target, "a" );
+			}
+		},
+
+		beforeunload: {
+			postDispatch: function( event ) {
+
+				// Support: Firefox 20+
+				// Firefox doesn't alert if the returnValue field is not set.
+				if ( event.result !== undefined && event.originalEvent ) {
+					event.originalEvent.returnValue = event.result;
+				}
+			}
+		}
+	}
+};
 
-                    var addToDragList = function addToDragList(ele, opts) {
-                        var list = opts.addToList;
-                        var listHasEle = list.has(ele);
+// Ensure the presence of an event listener that handles manually-triggered
+// synthetic events by interrupting progress until reinvoked in response to
+// *native* events that it fires directly, ensuring that state changes have
+// already occurred before other listeners are invoked.
+function leverageNative( el, type, expectSync ) {
+
+	// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
+	if ( !expectSync ) {
+		if ( dataPriv.get( el, type ) === undefined ) {
+			jQuery.event.add( el, type, returnTrue );
+		}
+		return;
+	}
+
+	// Register the controller as a special universal handler for all event namespaces
+	dataPriv.set( el, type, false );
+	jQuery.event.add( el, type, {
+		namespace: false,
+		handler: function( event ) {
+			var notAsync, result,
+				saved = dataPriv.get( this, type );
+
+			if ( ( event.isTrigger & 1 ) && this[ type ] ) {
+
+				// Interrupt processing of the outer synthetic .trigger()ed event
+				// Saved data should be false in such cases, but might be a leftover capture object
+				// from an async native handler (gh-4350)
+				if ( !saved.length ) {
+
+					// Store arguments for use when handling the inner native event
+					// There will always be at least one argument (an event object), so this array
+					// will not be confused with a leftover capture object.
+					saved = slice.call( arguments );
+					dataPriv.set( this, type, saved );
+
+					// Trigger the native event and capture its result
+					// Support: IE <=9 - 11+
+					// focus() and blur() are asynchronous
+					notAsync = expectSync( this, type );
+					this[ type ]();
+					result = dataPriv.get( this, type );
+					if ( saved !== result || notAsync ) {
+						dataPriv.set( this, type, false );
+					} else {
+						result = {};
+					}
+					if ( saved !== result ) {
+
+						// Cancel the outer synthetic event
+						event.stopImmediatePropagation();
+						event.preventDefault();
+						return result.value;
+					}
+
+				// If this is an inner synthetic event for an event with a bubbling surrogate
+				// (focus or blur), assume that the surrogate already propagated from triggering the
+				// native event and prevent that from happening again here.
+				// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
+				// bubbling surrogate propagates *after* the non-bubbling base), but that seems
+				// less bad than duplication.
+				} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
+					event.stopPropagation();
+				}
+
+			// If this is a native event triggered above, everything is now in order
+			// Fire an inner synthetic event with the original arguments
+			} else if ( saved.length ) {
+
+				// ...and capture the result
+				dataPriv.set( this, type, {
+					value: jQuery.event.trigger(
+
+						// Support: IE <=9 - 11+
+						// Extend with the prototype to reset the above stopImmediatePropagation()
+						jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
+						saved.slice( 1 ),
+						this
+					)
+				} );
+
+				// Abort handling of the native event
+				event.stopImmediatePropagation();
+			}
+		}
+	} );
+}
+
+jQuery.removeEvent = function( elem, type, handle ) {
+
+	// This "if" is needed for plain objects
+	if ( elem.removeEventListener ) {
+		elem.removeEventListener( type, handle );
+	}
+};
+
+jQuery.Event = function( src, props ) {
+
+	// Allow instantiation without the 'new' keyword
+	if ( !( this instanceof jQuery.Event ) ) {
+		return new jQuery.Event( src, props );
+	}
+
+	// Event object
+	if ( src && src.type ) {
+		this.originalEvent = src;
+		this.type = src.type;
+
+		// Events bubbling up the document may have been marked as prevented
+		// by a handler lower down the tree; reflect the correct value.
+		this.isDefaultPrevented = src.defaultPrevented ||
+				src.defaultPrevented === undefined &&
+
+				// Support: Android <=2.3 only
+				src.returnValue === false ?
+			returnTrue :
+			returnFalse;
+
+		// Create target properties
+		// Support: Safari <=6 - 7 only
+		// Target should not be a text node (#504, #13143)
+		this.target = ( src.target && src.target.nodeType === 3 ) ?
+			src.target.parentNode :
+			src.target;
+
+		this.currentTarget = src.currentTarget;
+		this.relatedTarget = src.relatedTarget;
+
+	// Event type
+	} else {
+		this.type = src;
+	}
+
+	// Put explicitly provided properties onto the event object
+	if ( props ) {
+		jQuery.extend( this, props );
+	}
+
+	// Create a timestamp if incoming event doesn't have one
+	this.timeStamp = src && src.timeStamp || Date.now();
+
+	// Mark it as fixed
+	this[ jQuery.expando ] = true;
+};
 
-                        if (!listHasEle) {
-                            list.merge(ele);
-                            setGrabbed(ele);
-                        }
-                    }; // helper function to determine which child nodes and inner edges
-                    // of a compound node to be dragged as well as the grabbed and selected nodes
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+	constructor: jQuery.Event,
+	isDefaultPrevented: returnFalse,
+	isPropagationStopped: returnFalse,
+	isImmediatePropagationStopped: returnFalse,
+	isSimulated: false,
 
+	preventDefault: function() {
+		var e = this.originalEvent;
 
-                    var addDescendantsToDrag = function addDescendantsToDrag(node, opts) {
-                        if (!node.cy().hasCompoundNodes()) {
-                            return;
-                        }
+		this.isDefaultPrevented = returnTrue;
 
-                        if (opts.inDragLayer == null && opts.addToList == null) {
-                            return;
-                        } // nothing to do
+		if ( e && !this.isSimulated ) {
+			e.preventDefault();
+		}
+	},
+	stopPropagation: function() {
+		var e = this.originalEvent;
 
+		this.isPropagationStopped = returnTrue;
 
-                        var innerNodes = node.descendants();
+		if ( e && !this.isSimulated ) {
+			e.stopPropagation();
+		}
+	},
+	stopImmediatePropagation: function() {
+		var e = this.originalEvent;
 
-                        if (opts.inDragLayer) {
-                            innerNodes.forEach(setInDragLayer);
-                            innerNodes.connectedEdges().forEach(setInDragLayer);
-                        }
+		this.isImmediatePropagationStopped = returnTrue;
 
-                        if (opts.addToList) {
-                            opts.addToList.unmerge(innerNodes);
-                        }
-                    }; // adds the given nodes and its neighbourhood to the drag layer
+		if ( e && !this.isSimulated ) {
+			e.stopImmediatePropagation();
+		}
 
+		this.stopPropagation();
+	}
+};
 
-                    var addNodesToDrag = function addNodesToDrag(nodes, opts) {
-                        opts = opts || {};
-                        var hasCompoundNodes = nodes.cy().hasCompoundNodes();
+// Includes all common event props including KeyEvent and MouseEvent specific props
+jQuery.each( {
+	altKey: true,
+	bubbles: true,
+	cancelable: true,
+	changedTouches: true,
+	ctrlKey: true,
+	detail: true,
+	eventPhase: true,
+	metaKey: true,
+	pageX: true,
+	pageY: true,
+	shiftKey: true,
+	view: true,
+	"char": true,
+	code: true,
+	charCode: true,
+	key: true,
+	keyCode: true,
+	button: true,
+	buttons: true,
+	clientX: true,
+	clientY: true,
+	offsetX: true,
+	offsetY: true,
+	pointerId: true,
+	pointerType: true,
+	screenX: true,
+	screenY: true,
+	targetTouches: true,
+	toElement: true,
+	touches: true,
+
+	which: function( event ) {
+		var button = event.button;
+
+		// Add which for key events
+		if ( event.which == null && rkeyEvent.test( event.type ) ) {
+			return event.charCode != null ? event.charCode : event.keyCode;
+		}
+
+		// Add which for click: 1 === left; 2 === middle; 3 === right
+		if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
+			if ( button & 1 ) {
+				return 1;
+			}
+
+			if ( button & 2 ) {
+				return 3;
+			}
+
+			if ( button & 4 ) {
+				return 2;
+			}
+
+			return 0;
+		}
+
+		return event.which;
+	}
+}, jQuery.event.addProp );
+
+jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
+	jQuery.event.special[ type ] = {
+
+		// Utilize native event if possible so blur/focus sequence is correct
+		setup: function() {
+
+			// Claim the first handler
+			// dataPriv.set( this, "focus", ... )
+			// dataPriv.set( this, "blur", ... )
+			leverageNative( this, type, expectSync );
+
+			// Return false to allow normal processing in the caller
+			return false;
+		},
+		trigger: function() {
+
+			// Force setup before trigger
+			leverageNative( this, type );
+
+			// Return non-false to allow normal event-path propagation
+			return true;
+		},
+
+		delegateType: delegateType
+	};
+} );
 
-                        if (opts.inDragLayer) {
-                            nodes.forEach(setInDragLayer);
-                            nodes.neighborhood().stdFilter(function (ele) {
-                                return !hasCompoundNodes || ele.isEdge();
-                            }).forEach(setInDragLayer);
-                        }
+// Create mouseenter/leave events using mouseover/out and event-time checks
+// so that event delegation works in jQuery.
+// Do the same for pointerenter/pointerleave and pointerover/pointerout
+//
+// Support: Safari 7 only
+// Safari sends mouseenter too often; see:
+// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
+// for the description of the bug (it existed in older Chrome versions as well).
+jQuery.each( {
+	mouseenter: "mouseover",
+	mouseleave: "mouseout",
+	pointerenter: "pointerover",
+	pointerleave: "pointerout"
+}, function( orig, fix ) {
+	jQuery.event.special[ orig ] = {
+		delegateType: fix,
+		bindType: fix,
+
+		handle: function( event ) {
+			var ret,
+				target = this,
+				related = event.relatedTarget,
+				handleObj = event.handleObj;
+
+			// For mouseenter/leave call the handler if related is outside the target.
+			// NB: No relatedTarget if the mouse left/entered the browser window
+			if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
+				event.type = handleObj.origType;
+				ret = handleObj.handler.apply( this, arguments );
+				event.type = fix;
+			}
+			return ret;
+		}
+	};
+} );
+
+jQuery.fn.extend( {
+
+	on: function( types, selector, data, fn ) {
+		return on( this, types, selector, data, fn );
+	},
+	one: function( types, selector, data, fn ) {
+		return on( this, types, selector, data, fn, 1 );
+	},
+	off: function( types, selector, fn ) {
+		var handleObj, type;
+		if ( types && types.preventDefault && types.handleObj ) {
+
+			// ( event )  dispatched jQuery.Event
+			handleObj = types.handleObj;
+			jQuery( types.delegateTarget ).off(
+				handleObj.namespace ?
+					handleObj.origType + "." + handleObj.namespace :
+					handleObj.origType,
+				handleObj.selector,
+				handleObj.handler
+			);
+			return this;
+		}
+		if ( typeof types === "object" ) {
+
+			// ( types-object [, selector] )
+			for ( type in types ) {
+				this.off( type, selector, types[ type ] );
+			}
+			return this;
+		}
+		if ( selector === false || typeof selector === "function" ) {
+
+			// ( types [, fn] )
+			fn = selector;
+			selector = undefined;
+		}
+		if ( fn === false ) {
+			fn = returnFalse;
+		}
+		return this.each( function() {
+			jQuery.event.remove( this, types, fn, selector );
+		} );
+	}
+} );
+
+
+var
+
+	// Support: IE <=10 - 11, Edge 12 - 13 only
+	// In IE/Edge using regex groups here causes severe slowdowns.
+	// See https://connect.microsoft.com/IE/feedback/details/1736512/
+	rnoInnerhtml = /<script|<style|<link/i,
+
+	// checked="checked" or checked
+	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
 
-                        if (opts.addToList) {
-                            nodes.forEach(function (ele) {
-                                addToDragList(ele, opts);
-                            });
-                        }
+// Prefer a tbody over its parent table for containing new rows
+function manipulationTarget( elem, content ) {
+	if ( nodeName( elem, "table" ) &&
+		nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
 
-                        addDescendantsToDrag(nodes, opts); // always add to drag
-                        // also add nodes and edges related to the topmost ancestor
+		return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
+	}
 
-                        updateAncestorsInDragLayer(nodes, {
-                            inDragLayer: opts.inDragLayer
-                        });
-                        r.updateCachedGrabbedEles();
-                    };
+	return elem;
+}
 
-                    var addNodeToDrag = addNodesToDrag;
+// Replace/restore the type attribute of script elements for safe DOM manipulation
+function disableScript( elem ) {
+	elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
+	return elem;
+}
+function restoreScript( elem ) {
+	if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
+		elem.type = elem.type.slice( 5 );
+	} else {
+		elem.removeAttribute( "type" );
+	}
+
+	return elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+	var i, l, type, pdataOld, udataOld, udataCur, events;
+
+	if ( dest.nodeType !== 1 ) {
+		return;
+	}
+
+	// 1. Copy private data: events, handlers, etc.
+	if ( dataPriv.hasData( src ) ) {
+		pdataOld = dataPriv.get( src );
+		events = pdataOld.events;
+
+		if ( events ) {
+			dataPriv.remove( dest, "handle events" );
+
+			for ( type in events ) {
+				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+					jQuery.event.add( dest, type, events[ type ][ i ] );
+				}
+			}
+		}
+	}
+
+	// 2. Copy user data
+	if ( dataUser.hasData( src ) ) {
+		udataOld = dataUser.access( src );
+		udataCur = jQuery.extend( {}, udataOld );
+
+		dataUser.set( dest, udataCur );
+	}
+}
 
-                    var freeDraggedElements = function freeDraggedElements(grabbedEles) {
-                        if (!grabbedEles) {
-                            return;
-                        } // just go over all elements rather than doing a bunch of (possibly expensive) traversals
+// Fix IE bugs, see support tests
+function fixInput( src, dest ) {
+	var nodeName = dest.nodeName.toLowerCase();
+
+	// Fails to persist the checked state of a cloned checkbox or radio button.
+	if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
+		dest.checked = src.checked;
+
+	// Fails to return the selected option to the default selected state when cloning options
+	} else if ( nodeName === "input" || nodeName === "textarea" ) {
+		dest.defaultValue = src.defaultValue;
+	}
+}
+
+function domManip( collection, args, callback, ignored ) {
+
+	// Flatten any nested arrays
+	args = flat( args );
+
+	var fragment, first, scripts, hasScripts, node, doc,
+		i = 0,
+		l = collection.length,
+		iNoClone = l - 1,
+		value = args[ 0 ],
+		valueIsFunction = isFunction( value );
+
+	// We can't cloneNode fragments that contain checked, in WebKit
+	if ( valueIsFunction ||
+			( l > 1 && typeof value === "string" &&
+				!support.checkClone && rchecked.test( value ) ) ) {
+		return collection.each( function( index ) {
+			var self = collection.eq( index );
+			if ( valueIsFunction ) {
+				args[ 0 ] = value.call( this, index, self.html() );
+			}
+			domManip( self, args, callback, ignored );
+		} );
+	}
+
+	if ( l ) {
+		fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
+		first = fragment.firstChild;
+
+		if ( fragment.childNodes.length === 1 ) {
+			fragment = first;
+		}
+
+		// Require either new content or an interest in ignored elements to invoke the callback
+		if ( first || ignored ) {
+			scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
+			hasScripts = scripts.length;
+
+			// Use the original fragment for the last item
+			// instead of the first because it can end up
+			// being emptied incorrectly in certain situations (#8070).
+			for ( ; i < l; i++ ) {
+				node = fragment;
+
+				if ( i !== iNoClone ) {
+					node = jQuery.clone( node, true, true );
+
+					// Keep references to cloned scripts for later restoration
+					if ( hasScripts ) {
+
+						// Support: Android <=4.0 only, PhantomJS 1 only
+						// push.apply(_, arraylike) throws on ancient WebKit
+						jQuery.merge( scripts, getAll( node, "script" ) );
+					}
+				}
+
+				callback.call( collection[ i ], node, i );
+			}
+
+			if ( hasScripts ) {
+				doc = scripts[ scripts.length - 1 ].ownerDocument;
+
+				// Reenable scripts
+				jQuery.map( scripts, restoreScript );
+
+				// Evaluate executable scripts on first document insertion
+				for ( i = 0; i < hasScripts; i++ ) {
+					node = scripts[ i ];
+					if ( rscriptType.test( node.type || "" ) &&
+						!dataPriv.access( node, "globalEval" ) &&
+						jQuery.contains( doc, node ) ) {
+
+						if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
+
+							// Optional AJAX dependency, but won't run scripts if not present
+							if ( jQuery._evalUrl && !node.noModule ) {
+								jQuery._evalUrl( node.src, {
+									nonce: node.nonce || node.getAttribute( "nonce" )
+								}, doc );
+							}
+						} else {
+							DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
+						}
+					}
+				}
+			}
+		}
+	}
+
+	return collection;
+}
+
+function remove( elem, selector, keepData ) {
+	var node,
+		nodes = selector ? jQuery.filter( selector, elem ) : elem,
+		i = 0;
+
+	for ( ; ( node = nodes[ i ] ) != null; i++ ) {
+		if ( !keepData && node.nodeType === 1 ) {
+			jQuery.cleanData( getAll( node ) );
+		}
+
+		if ( node.parentNode ) {
+			if ( keepData && isAttached( node ) ) {
+				setGlobalEval( getAll( node, "script" ) );
+			}
+			node.parentNode.removeChild( node );
+		}
+	}
+
+	return elem;
+}
+
+jQuery.extend( {
+	htmlPrefilter: function( html ) {
+		return html;
+	},
+
+	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+		var i, l, srcElements, destElements,
+			clone = elem.cloneNode( true ),
+			inPage = isAttached( elem );
+
+		// Fix IE cloning issues
+		if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
+				!jQuery.isXMLDoc( elem ) ) {
+
+			// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
+			destElements = getAll( clone );
+			srcElements = getAll( elem );
+
+			for ( i = 0, l = srcElements.length; i < l; i++ ) {
+				fixInput( srcElements[ i ], destElements[ i ] );
+			}
+		}
+
+		// Copy the events from the original to the clone
+		if ( dataAndEvents ) {
+			if ( deepDataAndEvents ) {
+				srcElements = srcElements || getAll( elem );
+				destElements = destElements || getAll( clone );
+
+				for ( i = 0, l = srcElements.length; i < l; i++ ) {
+					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
+				}
+			} else {
+				cloneCopyEvent( elem, clone );
+			}
+		}
+
+		// Preserve script evaluation history
+		destElements = getAll( clone, "script" );
+		if ( destElements.length > 0 ) {
+			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
+		}
+
+		// Return the cloned set
+		return clone;
+	},
+
+	cleanData: function( elems ) {
+		var data, elem, type,
+			special = jQuery.event.special,
+			i = 0;
+
+		for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
+			if ( acceptData( elem ) ) {
+				if ( ( data = elem[ dataPriv.expando ] ) ) {
+					if ( data.events ) {
+						for ( type in data.events ) {
+							if ( special[ type ] ) {
+								jQuery.event.remove( elem, type );
+
+							// This is a shortcut to avoid jQuery.event.remove's overhead
+							} else {
+								jQuery.removeEvent( elem, type, data.handle );
+							}
+						}
+					}
+
+					// Support: Chrome <=35 - 45+
+					// Assign undefined instead of using delete, see Data#remove
+					elem[ dataPriv.expando ] = undefined;
+				}
+				if ( elem[ dataUser.expando ] ) {
+
+					// Support: Chrome <=35 - 45+
+					// Assign undefined instead of using delete, see Data#remove
+					elem[ dataUser.expando ] = undefined;
+				}
+			}
+		}
+	}
+} );
+
+jQuery.fn.extend( {
+	detach: function( selector ) {
+		return remove( this, selector, true );
+	},
+
+	remove: function( selector ) {
+		return remove( this, selector );
+	},
+
+	text: function( value ) {
+		return access( this, function( value ) {
+			return value === undefined ?
+				jQuery.text( this ) :
+				this.empty().each( function() {
+					if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+						this.textContent = value;
+					}
+				} );
+		}, null, value, arguments.length );
+	},
+
+	append: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+				var target = manipulationTarget( this, elem );
+				target.appendChild( elem );
+			}
+		} );
+	},
+
+	prepend: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+				var target = manipulationTarget( this, elem );
+				target.insertBefore( elem, target.firstChild );
+			}
+		} );
+	},
+
+	before: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.parentNode ) {
+				this.parentNode.insertBefore( elem, this );
+			}
+		} );
+	},
+
+	after: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.parentNode ) {
+				this.parentNode.insertBefore( elem, this.nextSibling );
+			}
+		} );
+	},
+
+	empty: function() {
+		var elem,
+			i = 0;
+
+		for ( ; ( elem = this[ i ] ) != null; i++ ) {
+			if ( elem.nodeType === 1 ) {
+
+				// Prevent memory leaks
+				jQuery.cleanData( getAll( elem, false ) );
+
+				// Remove any remaining nodes
+				elem.textContent = "";
+			}
+		}
+
+		return this;
+	},
+
+	clone: function( dataAndEvents, deepDataAndEvents ) {
+		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+		return this.map( function() {
+			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+		} );
+	},
+
+	html: function( value ) {
+		return access( this, function( value ) {
+			var elem = this[ 0 ] || {},
+				i = 0,
+				l = this.length;
+
+			if ( value === undefined && elem.nodeType === 1 ) {
+				return elem.innerHTML;
+			}
+
+			// See if we can take a shortcut and just use innerHTML
+			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
+
+				value = jQuery.htmlPrefilter( value );
+
+				try {
+					for ( ; i < l; i++ ) {
+						elem = this[ i ] || {};
+
+						// Remove element nodes and prevent memory leaks
+						if ( elem.nodeType === 1 ) {
+							jQuery.cleanData( getAll( elem, false ) );
+							elem.innerHTML = value;
+						}
+					}
+
+					elem = 0;
+
+				// If using innerHTML throws an exception, use the fallback method
+				} catch ( e ) {}
+			}
+
+			if ( elem ) {
+				this.empty().append( value );
+			}
+		}, null, value, arguments.length );
+	},
+
+	replaceWith: function() {
+		var ignored = [];
+
+		// Make the changes, replacing each non-ignored context element with the new content
+		return domManip( this, arguments, function( elem ) {
+			var parent = this.parentNode;
+
+			if ( jQuery.inArray( this, ignored ) < 0 ) {
+				jQuery.cleanData( getAll( this ) );
+				if ( parent ) {
+					parent.replaceChild( elem, this );
+				}
+			}
+
+		// Force callback invocation
+		}, ignored );
+	}
+} );
+
+jQuery.each( {
+	appendTo: "append",
+	prependTo: "prepend",
+	insertBefore: "before",
+	insertAfter: "after",
+	replaceAll: "replaceWith"
+}, function( name, original ) {
+	jQuery.fn[ name ] = function( selector ) {
+		var elems,
+			ret = [],
+			insert = jQuery( selector ),
+			last = insert.length - 1,
+			i = 0;
+
+		for ( ; i <= last; i++ ) {
+			elems = i === last ? this : this.clone( true );
+			jQuery( insert[ i ] )[ original ]( elems );
+
+			// Support: Android <=4.0 only, PhantomJS 1 only
+			// .get() because push.apply(_, arraylike) throws on ancient WebKit
+			push.apply( ret, elems.get() );
+		}
+
+		return this.pushStack( ret );
+	};
+} );
+var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
+
+var getStyles = function( elem ) {
+
+		// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
+		// IE throws on elements created in popups
+		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
+		var view = elem.ownerDocument.defaultView;
+
+		if ( !view || !view.opener ) {
+			view = window;
+		}
+
+		return view.getComputedStyle( elem );
+	};
+
+var swap = function( elem, options, callback ) {
+	var ret, name,
+		old = {};
+
+	// Remember the old values, and insert the new ones
+	for ( name in options ) {
+		old[ name ] = elem.style[ name ];
+		elem.style[ name ] = options[ name ];
+	}
+
+	ret = callback.call( elem );
+
+	// Revert the old values
+	for ( name in options ) {
+		elem.style[ name ] = old[ name ];
+	}
+
+	return ret;
+};
+
+
+var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
+
+
+
+( function() {
+
+	// Executing both pixelPosition & boxSizingReliable tests require only one layout
+	// so they're executed at the same time to save the second computation.
+	function computeStyleTests() {
+
+		// This is a singleton, we need to execute it only once
+		if ( !div ) {
+			return;
+		}
+
+		container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
+			"margin-top:1px;padding:0;border:0";
+		div.style.cssText =
+			"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
+			"margin:auto;border:1px;padding:1px;" +
+			"width:60%;top:1%";
+		documentElement.appendChild( container ).appendChild( div );
+
+		var divStyle = window.getComputedStyle( div );
+		pixelPositionVal = divStyle.top !== "1%";
+
+		// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
+		reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
+
+		// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
+		// Some styles come back with percentage values, even though they shouldn't
+		div.style.right = "60%";
+		pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
+
+		// Support: IE 9 - 11 only
+		// Detect misreporting of content dimensions for box-sizing:border-box elements
+		boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
+
+		// Support: IE 9 only
+		// Detect overflow:scroll screwiness (gh-3699)
+		// Support: Chrome <=64
+		// Don't get tricked when zoom affects offsetWidth (gh-4029)
+		div.style.position = "absolute";
+		scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;
+
+		documentElement.removeChild( container );
+
+		// Nullify the div so it wouldn't be stored in the memory and
+		// it will also be a sign that checks already performed
+		div = null;
+	}
+
+	function roundPixelMeasures( measure ) {
+		return Math.round( parseFloat( measure ) );
+	}
+
+	var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
+		reliableTrDimensionsVal, reliableMarginLeftVal,
+		container = document.createElement( "div" ),
+		div = document.createElement( "div" );
+
+	// Finish early in limited (non-browser) environments
+	if ( !div.style ) {
+		return;
+	}
+
+	// Support: IE <=9 - 11 only
+	// Style of cloned element affects source element cloned (#8908)
+	div.style.backgroundClip = "content-box";
+	div.cloneNode( true ).style.backgroundClip = "";
+	support.clearCloneStyle = div.style.backgroundClip === "content-box";
+
+	jQuery.extend( support, {
+		boxSizingReliable: function() {
+			computeStyleTests();
+			return boxSizingReliableVal;
+		},
+		pixelBoxStyles: function() {
+			computeStyleTests();
+			return pixelBoxStylesVal;
+		},
+		pixelPosition: function() {
+			computeStyleTests();
+			return pixelPositionVal;
+		},
+		reliableMarginLeft: function() {
+			computeStyleTests();
+			return reliableMarginLeftVal;
+		},
+		scrollboxSize: function() {
+			computeStyleTests();
+			return scrollboxSizeVal;
+		},
+
+		// Support: IE 9 - 11+, Edge 15 - 18+
+		// IE/Edge misreport `getComputedStyle` of table rows with width/height
+		// set in CSS while `offset*` properties report correct values.
+		// Behavior in IE 9 is more subtle than in newer versions & it passes
+		// some versions of this test; make sure not to make it pass there!
+		reliableTrDimensions: function() {
+			var table, tr, trChild, trStyle;
+			if ( reliableTrDimensionsVal == null ) {
+				table = document.createElement( "table" );
+				tr = document.createElement( "tr" );
+				trChild = document.createElement( "div" );
+
+				table.style.cssText = "position:absolute;left:-11111px";
+				tr.style.height = "1px";
+				trChild.style.height = "9px";
+
+				documentElement
+					.appendChild( table )
+					.appendChild( tr )
+					.appendChild( trChild );
+
+				trStyle = window.getComputedStyle( tr );
+				reliableTrDimensionsVal = parseInt( trStyle.height ) > 3;
+
+				documentElement.removeChild( table );
+			}
+			return reliableTrDimensionsVal;
+		}
+	} );
+} )();
+
+
+function curCSS( elem, name, computed ) {
+	var width, minWidth, maxWidth, ret,
+
+		// Support: Firefox 51+
+		// Retrieving style before computed somehow
+		// fixes an issue with getting wrong values
+		// on detached elements
+		style = elem.style;
+
+	computed = computed || getStyles( elem );
+
+	// getPropertyValue is needed for:
+	//   .css('filter') (IE 9 only, #12537)
+	//   .css('--customProperty) (#3144)
+	if ( computed ) {
+		ret = computed.getPropertyValue( name ) || computed[ name ];
+
+		if ( ret === "" && !isAttached( elem ) ) {
+			ret = jQuery.style( elem, name );
+		}
+
+		// A tribute to the "awesome hack by Dean Edwards"
+		// Android Browser returns percentage for some values,
+		// but width seems to be reliably pixels.
+		// This is against the CSSOM draft spec:
+		// https://drafts.csswg.org/cssom/#resolved-values
+		if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
+
+			// Remember the original values
+			width = style.width;
+			minWidth = style.minWidth;
+			maxWidth = style.maxWidth;
+
+			// Put in the new values to get a computed value out
+			style.minWidth = style.maxWidth = style.width = ret;
+			ret = computed.width;
+
+			// Revert the changed values
+			style.width = width;
+			style.minWidth = minWidth;
+			style.maxWidth = maxWidth;
+		}
+	}
+
+	return ret !== undefined ?
+
+		// Support: IE <=9 - 11 only
+		// IE returns zIndex value as an integer.
+		ret + "" :
+		ret;
+}
+
+
+function addGetHookIf( conditionFn, hookFn ) {
+
+	// Define the hook, we'll check on the first run if it's really needed.
+	return {
+		get: function() {
+			if ( conditionFn() ) {
+
+				// Hook not needed (or it's not possible to use it due
+				// to missing dependency), remove it.
+				delete this.get;
+				return;
+			}
+
+			// Hook needed; redefine it so that the support test is not executed again.
+			return ( this.get = hookFn ).apply( this, arguments );
+		}
+	};
+}
+
+
+var cssPrefixes = [ "Webkit", "Moz", "ms" ],
+	emptyStyle = document.createElement( "div" ).style,
+	vendorProps = {};
 
+// Return a vendor-prefixed property or undefined
+function vendorPropName( name ) {
 
-                        r.getCachedZSortedEles().forEach(function (ele) {
-                            setFreed(ele);
-                            setOutDragLayer(ele);
-                            removeGrabTarget(ele);
-                        });
-                        r.updateCachedGrabbedEles();
-                    }; // helper function to determine which ancestor nodes and edges should go
-                    // to the drag layer (or should be removed from drag layer).
+	// Check for vendor prefixed names
+	var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
+		i = cssPrefixes.length;
 
+	while ( i-- ) {
+		name = cssPrefixes[ i ] + capName;
+		if ( name in emptyStyle ) {
+			return name;
+		}
+	}
+}
 
-                    var updateAncestorsInDragLayer = function updateAncestorsInDragLayer(node, opts) {
-                        if (opts.inDragLayer == null && opts.addToList == null) {
-                            return;
-                        } // nothing to do
+// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
+function finalPropName( name ) {
+	var final = jQuery.cssProps[ name ] || vendorProps[ name ];
+
+	if ( final ) {
+		return final;
+	}
+	if ( name in emptyStyle ) {
+		return name;
+	}
+	return vendorProps[ name ] = vendorPropName( name ) || name;
+}
+
+
+var
+
+	// Swappable if display is none or starts with table
+	// except "table", "table-cell", or "table-caption"
+	// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
+	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
+	rcustomProp = /^--/,
+	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+	cssNormalTransform = {
+		letterSpacing: "0",
+		fontWeight: "400"
+	};
+
+function setPositiveNumber( _elem, value, subtract ) {
+
+	// Any relative (+/-) values have already been
+	// normalized at this point
+	var matches = rcssNum.exec( value );
+	return matches ?
+
+		// Guard against undefined "subtract", e.g., when used as in cssHooks
+		Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
+		value;
+}
+
+function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
+	var i = dimension === "width" ? 1 : 0,
+		extra = 0,
+		delta = 0;
+
+	// Adjustment may not be necessary
+	if ( box === ( isBorderBox ? "border" : "content" ) ) {
+		return 0;
+	}
+
+	for ( ; i < 4; i += 2 ) {
+
+		// Both box models exclude margin
+		if ( box === "margin" ) {
+			delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
+		}
+
+		// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
+		if ( !isBorderBox ) {
+
+			// Add padding
+			delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+
+			// For "border" or "margin", add border
+			if ( box !== "padding" ) {
+				delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+
+			// But still keep track of it otherwise
+			} else {
+				extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+			}
+
+		// If we get here with a border-box (content + padding + border), we're seeking "content" or
+		// "padding" or "margin"
+		} else {
+
+			// For "content", subtract padding
+			if ( box === "content" ) {
+				delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+			}
+
+			// For "content" or "padding", subtract border
+			if ( box !== "margin" ) {
+				delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+			}
+		}
+	}
+
+	// Account for positive content-box scroll gutter when requested by providing computedVal
+	if ( !isBorderBox && computedVal >= 0 ) {
+
+		// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
+		// Assuming integer scroll gutter, subtract the rest and round down
+		delta += Math.max( 0, Math.ceil(
+			elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
+			computedVal -
+			delta -
+			extra -
+			0.5
+
+		// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
+		// Use an explicit zero to avoid NaN (gh-3964)
+		) ) || 0;
+	}
+
+	return delta;
+}
+
+function getWidthOrHeight( elem, dimension, extra ) {
+
+	// Start with computed style
+	var styles = getStyles( elem ),
+
+		// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).
+		// Fake content-box until we know it's needed to know the true value.
+		boxSizingNeeded = !support.boxSizingReliable() || extra,
+		isBorderBox = boxSizingNeeded &&
+			jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
+		valueIsBorderBox = isBorderBox,
+
+		val = curCSS( elem, dimension, styles ),
+		offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );
+
+	// Support: Firefox <=54
+	// Return a confounding non-pixel value or feign ignorance, as appropriate.
+	if ( rnumnonpx.test( val ) ) {
+		if ( !extra ) {
+			return val;
+		}
+		val = "auto";
+	}
+
+
+	// Support: IE 9 - 11 only
+	// Use offsetWidth/offsetHeight for when box sizing is unreliable.
+	// In those cases, the computed value can be trusted to be border-box.
+	if ( ( !support.boxSizingReliable() && isBorderBox ||
+
+		// Support: IE 10 - 11+, Edge 15 - 18+
+		// IE/Edge misreport `getComputedStyle` of table rows with width/height
+		// set in CSS while `offset*` properties report correct values.
+		// Interestingly, in some cases IE 9 doesn't suffer from this issue.
+		!support.reliableTrDimensions() && nodeName( elem, "tr" ) ||
+
+		// Fall back to offsetWidth/offsetHeight when value is "auto"
+		// This happens for inline elements with no explicit setting (gh-3571)
+		val === "auto" ||
+
+		// Support: Android <=4.1 - 4.3 only
+		// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
+		!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
+
+		// Make sure the element is visible & connected
+		elem.getClientRects().length ) {
+
+		isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
+
+		// Where available, offsetWidth/offsetHeight approximate border box dimensions.
+		// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
+		// retrieved value as a content box dimension.
+		valueIsBorderBox = offsetProp in elem;
+		if ( valueIsBorderBox ) {
+			val = elem[ offsetProp ];
+		}
+	}
+
+	// Normalize "" and auto
+	val = parseFloat( val ) || 0;
+
+	// Adjust for the element's box model
+	return ( val +
+		boxModelAdjustment(
+			elem,
+			dimension,
+			extra || ( isBorderBox ? "border" : "content" ),
+			valueIsBorderBox,
+			styles,
+
+			// Provide the current computed size to request scroll gutter calculation (gh-3589)
+			val
+		)
+	) + "px";
+}
+
+jQuery.extend( {
+
+	// Add in style property hooks for overriding the default
+	// behavior of getting and setting a style property
+	cssHooks: {
+		opacity: {
+			get: function( elem, computed ) {
+				if ( computed ) {
+
+					// We should always get a number back from opacity
+					var ret = curCSS( elem, "opacity" );
+					return ret === "" ? "1" : ret;
+				}
+			}
+		}
+	},
+
+	// Don't automatically add "px" to these possibly-unitless properties
+	cssNumber: {
+		"animationIterationCount": true,
+		"columnCount": true,
+		"fillOpacity": true,
+		"flexGrow": true,
+		"flexShrink": true,
+		"fontWeight": true,
+		"gridArea": true,
+		"gridColumn": true,
+		"gridColumnEnd": true,
+		"gridColumnStart": true,
+		"gridRow": true,
+		"gridRowEnd": true,
+		"gridRowStart": true,
+		"lineHeight": true,
+		"opacity": true,
+		"order": true,
+		"orphans": true,
+		"widows": true,
+		"zIndex": true,
+		"zoom": true
+	},
+
+	// Add in properties whose names you wish to fix before
+	// setting or getting the value
+	cssProps: {},
+
+	// Get and set the style property on a DOM Node
+	style: function( elem, name, value, extra ) {
+
+		// Don't set styles on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+			return;
+		}
+
+		// Make sure that we're working with the right name
+		var ret, type, hooks,
+			origName = camelCase( name ),
+			isCustomProp = rcustomProp.test( name ),
+			style = elem.style;
+
+		// Make sure that we're working with the right name. We don't
+		// want to query the value if it is a CSS custom property
+		// since they are user-defined.
+		if ( !isCustomProp ) {
+			name = finalPropName( origName );
+		}
+
+		// Gets hook for the prefixed version, then unprefixed version
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+		// Check if we're setting a value
+		if ( value !== undefined ) {
+			type = typeof value;
+
+			// Convert "+=" or "-=" to relative numbers (#7345)
+			if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
+				value = adjustCSS( elem, name, ret );
+
+				// Fixes bug #9237
+				type = "number";
+			}
+
+			// Make sure that null and NaN values aren't set (#7116)
+			if ( value == null || value !== value ) {
+				return;
+			}
+
+			// If a number was passed in, add the unit (except for certain CSS properties)
+			// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
+			// "px" to a few hardcoded values.
+			if ( type === "number" && !isCustomProp ) {
+				value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
+			}
+
+			// background-* props affect original clone's values
+			if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
+				style[ name ] = "inherit";
+			}
+
+			// If a hook was provided, use that value, otherwise just set the specified value
+			if ( !hooks || !( "set" in hooks ) ||
+				( value = hooks.set( elem, value, extra ) ) !== undefined ) {
+
+				if ( isCustomProp ) {
+					style.setProperty( name, value );
+				} else {
+					style[ name ] = value;
+				}
+			}
+
+		} else {
+
+			// If a hook was provided get the non-computed value from there
+			if ( hooks && "get" in hooks &&
+				( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
+
+				return ret;
+			}
+
+			// Otherwise just get the value from the style object
+			return style[ name ];
+		}
+	},
+
+	css: function( elem, name, extra, styles ) {
+		var val, num, hooks,
+			origName = camelCase( name ),
+			isCustomProp = rcustomProp.test( name );
+
+		// Make sure that we're working with the right name. We don't
+		// want to modify the value if it is a CSS custom property
+		// since they are user-defined.
+		if ( !isCustomProp ) {
+			name = finalPropName( origName );
+		}
+
+		// Try prefixed name followed by the unprefixed name
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+		// If a hook was provided get the computed value from there
+		if ( hooks && "get" in hooks ) {
+			val = hooks.get( elem, true, extra );
+		}
+
+		// Otherwise, if a way to get the computed value exists, use that
+		if ( val === undefined ) {
+			val = curCSS( elem, name, styles );
+		}
+
+		// Convert "normal" to computed value
+		if ( val === "normal" && name in cssNormalTransform ) {
+			val = cssNormalTransform[ name ];
+		}
+
+		// Make numeric if forced or a qualifier was provided and val looks numeric
+		if ( extra === "" || extra ) {
+			num = parseFloat( val );
+			return extra === true || isFinite( num ) ? num || 0 : val;
+		}
+
+		return val;
+	}
+} );
+
+jQuery.each( [ "height", "width" ], function( _i, dimension ) {
+	jQuery.cssHooks[ dimension ] = {
+		get: function( elem, computed, extra ) {
+			if ( computed ) {
+
+				// Certain elements can have dimension info if we invisibly show them
+				// but it must have a current display style that would benefit
+				return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
+
+					// Support: Safari 8+
+					// Table columns in Safari have non-zero offsetWidth & zero
+					// getBoundingClientRect().width unless display is changed.
+					// Support: IE <=11 only
+					// Running getBoundingClientRect on a disconnected node
+					// in IE throws an error.
+					( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
+						swap( elem, cssShow, function() {
+							return getWidthOrHeight( elem, dimension, extra );
+						} ) :
+						getWidthOrHeight( elem, dimension, extra );
+			}
+		},
+
+		set: function( elem, value, extra ) {
+			var matches,
+				styles = getStyles( elem ),
+
+				// Only read styles.position if the test has a chance to fail
+				// to avoid forcing a reflow.
+				scrollboxSizeBuggy = !support.scrollboxSize() &&
+					styles.position === "absolute",
+
+				// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
+				boxSizingNeeded = scrollboxSizeBuggy || extra,
+				isBorderBox = boxSizingNeeded &&
+					jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
+				subtract = extra ?
+					boxModelAdjustment(
+						elem,
+						dimension,
+						extra,
+						isBorderBox,
+						styles
+					) :
+					0;
+
+			// Account for unreliable border-box dimensions by comparing offset* to computed and
+			// faking a content-box to get border and padding (gh-3699)
+			if ( isBorderBox && scrollboxSizeBuggy ) {
+				subtract -= Math.ceil(
+					elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
+					parseFloat( styles[ dimension ] ) -
+					boxModelAdjustment( elem, dimension, "border", false, styles ) -
+					0.5
+				);
+			}
+
+			// Convert to pixels if value adjustment is needed
+			if ( subtract && ( matches = rcssNum.exec( value ) ) &&
+				( matches[ 3 ] || "px" ) !== "px" ) {
+
+				elem.style[ dimension ] = value;
+				value = jQuery.css( elem, dimension );
+			}
+
+			return setPositiveNumber( elem, value, subtract );
+		}
+	};
+} );
+
+jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
+	function( elem, computed ) {
+		if ( computed ) {
+			return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
+				elem.getBoundingClientRect().left -
+					swap( elem, { marginLeft: 0 }, function() {
+						return elem.getBoundingClientRect().left;
+					} )
+				) + "px";
+		}
+	}
+);
 
+// These hooks are used by animate to expand properties
+jQuery.each( {
+	margin: "",
+	padding: "",
+	border: "Width"
+}, function( prefix, suffix ) {
+	jQuery.cssHooks[ prefix + suffix ] = {
+		expand: function( value ) {
+			var i = 0,
+				expanded = {},
+
+				// Assumes a single number if not a string
+				parts = typeof value === "string" ? value.split( " " ) : [ value ];
+
+			for ( ; i < 4; i++ ) {
+				expanded[ prefix + cssExpand[ i ] + suffix ] =
+					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
+			}
+
+			return expanded;
+		}
+	};
+
+	if ( prefix !== "margin" ) {
+		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
+	}
+} );
+
+jQuery.fn.extend( {
+	css: function( name, value ) {
+		return access( this, function( elem, name, value ) {
+			var styles, len,
+				map = {},
+				i = 0;
+
+			if ( Array.isArray( name ) ) {
+				styles = getStyles( elem );
+				len = name.length;
+
+				for ( ; i < len; i++ ) {
+					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
+				}
+
+				return map;
+			}
+
+			return value !== undefined ?
+				jQuery.style( elem, name, value ) :
+				jQuery.css( elem, name );
+		}, name, value, arguments.length > 1 );
+	}
+} );
+
+
+function Tween( elem, options, prop, end, easing ) {
+	return new Tween.prototype.init( elem, options, prop, end, easing );
+}
+jQuery.Tween = Tween;
+
+Tween.prototype = {
+	constructor: Tween,
+	init: function( elem, options, prop, end, easing, unit ) {
+		this.elem = elem;
+		this.prop = prop;
+		this.easing = easing || jQuery.easing._default;
+		this.options = options;
+		this.start = this.now = this.cur();
+		this.end = end;
+		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
+	},
+	cur: function() {
+		var hooks = Tween.propHooks[ this.prop ];
+
+		return hooks && hooks.get ?
+			hooks.get( this ) :
+			Tween.propHooks._default.get( this );
+	},
+	run: function( percent ) {
+		var eased,
+			hooks = Tween.propHooks[ this.prop ];
+
+		if ( this.options.duration ) {
+			this.pos = eased = jQuery.easing[ this.easing ](
+				percent, this.options.duration * percent, 0, 1, this.options.duration
+			);
+		} else {
+			this.pos = eased = percent;
+		}
+		this.now = ( this.end - this.start ) * eased + this.start;
+
+		if ( this.options.step ) {
+			this.options.step.call( this.elem, this.now, this );
+		}
+
+		if ( hooks && hooks.set ) {
+			hooks.set( this );
+		} else {
+			Tween.propHooks._default.set( this );
+		}
+		return this;
+	}
+};
+
+Tween.prototype.init.prototype = Tween.prototype;
+
+Tween.propHooks = {
+	_default: {
+		get: function( tween ) {
+			var result;
+
+			// Use a property on the element directly when it is not a DOM element,
+			// or when there is no matching style property that exists.
+			if ( tween.elem.nodeType !== 1 ||
+				tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
+				return tween.elem[ tween.prop ];
+			}
+
+			// Passing an empty string as a 3rd parameter to .css will automatically
+			// attempt a parseFloat and fallback to a string if the parse fails.
+			// Simple values such as "10px" are parsed to Float;
+			// complex values such as "rotate(1rad)" are returned as-is.
+			result = jQuery.css( tween.elem, tween.prop, "" );
+
+			// Empty strings, null, undefined and "auto" are converted to 0.
+			return !result || result === "auto" ? 0 : result;
+		},
+		set: function( tween ) {
+
+			// Use step hook for back compat.
+			// Use cssHook if its there.
+			// Use .style if available and use plain properties where available.
+			if ( jQuery.fx.step[ tween.prop ] ) {
+				jQuery.fx.step[ tween.prop ]( tween );
+			} else if ( tween.elem.nodeType === 1 && (
+					jQuery.cssHooks[ tween.prop ] ||
+					tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {
+				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
+			} else {
+				tween.elem[ tween.prop ] = tween.now;
+			}
+		}
+	}
+};
 
-                        if (!node.cy().hasCompoundNodes()) {
-                            return;
-                        } // find top-level parent
+// Support: IE <=9 only
+// Panic based approach to setting things on disconnected nodes
+Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
+	set: function( tween ) {
+		if ( tween.elem.nodeType && tween.elem.parentNode ) {
+			tween.elem[ tween.prop ] = tween.now;
+		}
+	}
+};
+
+jQuery.easing = {
+	linear: function( p ) {
+		return p;
+	},
+	swing: function( p ) {
+		return 0.5 - Math.cos( p * Math.PI ) / 2;
+	},
+	_default: "swing"
+};
+
+jQuery.fx = Tween.prototype.init;
 
+// Back compat <1.8 extension point
+jQuery.fx.step = {};
 
-                        var parent = node.ancestors().orphans(); // no parent node: no nodes to add to the drag layer
 
-                        if (parent.same(node)) {
-                            return;
-                        }
 
-                        var nodes = parent.descendants().spawnSelf().merge(parent).unmerge(node).unmerge(node.descendants());
-                        var edges = nodes.connectedEdges();
 
-                        if (opts.inDragLayer) {
-                            edges.forEach(setInDragLayer);
-                            nodes.forEach(setInDragLayer);
-                        }
+var
+	fxNow, inProgress,
+	rfxtypes = /^(?:toggle|show|hide)$/,
+	rrun = /queueHooks$/;
 
-                        if (opts.addToList) {
-                            nodes.forEach(function (ele) {
-                                addToDragList(ele, opts);
-                            });
-                        }
-                    };
+function schedule() {
+	if ( inProgress ) {
+		if ( document.hidden === false && window.requestAnimationFrame ) {
+			window.requestAnimationFrame( schedule );
+		} else {
+			window.setTimeout( schedule, jQuery.fx.interval );
+		}
 
-                    var blurActiveDomElement = function blurActiveDomElement() {
-                        if (document.activeElement != null && document.activeElement.blur != null) {
-                            document.activeElement.blur();
-                        }
-                    };
-
-                    var haveMutationsApi = typeof MutationObserver !== 'undefined';
-                    var haveResizeObserverApi = typeof ResizeObserver !== 'undefined'; // watch for when the cy container is removed from the dom
-
-                    if (haveMutationsApi) {
-                        r.removeObserver = new MutationObserver(function (mutns) {
-                            // eslint-disable-line no-undef
-                            for (var i = 0; i < mutns.length; i++) {
-                                var mutn = mutns[i];
-                                var rNodes = mutn.removedNodes;
-
-                                if (rNodes) {
-                                    for (var j = 0; j < rNodes.length; j++) {
-                                        var rNode = rNodes[j];
-
-                                        if (rNode === r.container) {
-                                            r.destroy();
-                                            break;
-                                        }
-                                    }
-                                }
-                            }
-                        });
+		jQuery.fx.tick();
+	}
+}
 
-                        if (r.container.parentNode) {
-                            r.removeObserver.observe(r.container.parentNode, {
-                                childList: true
-                            });
-                        }
-                    } else {
-                        r.registerBinding(r.container, 'DOMNodeRemoved', function (e) {
-                            // eslint-disable-line no-unused-vars
-                            r.destroy();
-                        });
-                    }
+// Animations created synchronously will run synchronously
+function createFxNow() {
+	window.setTimeout( function() {
+		fxNow = undefined;
+	} );
+	return ( fxNow = Date.now() );
+}
 
-                    var onResize = util(function () {
-                        r.cy.resize();
-                    }, 100);
+// Generate parameters to create a standard animation
+function genFx( type, includeWidth ) {
+	var which,
+		i = 0,
+		attrs = { height: type };
+
+	// If we include width, step value is 1 to do all cssExpand values,
+	// otherwise step value is 2 to skip over Left and Right
+	includeWidth = includeWidth ? 1 : 0;
+	for ( ; i < 4; i += 2 - includeWidth ) {
+		which = cssExpand[ i ];
+		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
+	}
+
+	if ( includeWidth ) {
+		attrs.opacity = attrs.width = type;
+	}
+
+	return attrs;
+}
+
+function createTween( value, prop, animation ) {
+	var tween,
+		collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
+		index = 0,
+		length = collection.length;
+	for ( ; index < length; index++ ) {
+		if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
+
+			// We're done with this property
+			return tween;
+		}
+	}
+}
+
+function defaultPrefilter( elem, props, opts ) {
+	var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
+		isBox = "width" in props || "height" in props,
+		anim = this,
+		orig = {},
+		style = elem.style,
+		hidden = elem.nodeType && isHiddenWithinTree( elem ),
+		dataShow = dataPriv.get( elem, "fxshow" );
+
+	// Queue-skipping animations hijack the fx hooks
+	if ( !opts.queue ) {
+		hooks = jQuery._queueHooks( elem, "fx" );
+		if ( hooks.unqueued == null ) {
+			hooks.unqueued = 0;
+			oldfire = hooks.empty.fire;
+			hooks.empty.fire = function() {
+				if ( !hooks.unqueued ) {
+					oldfire();
+				}
+			};
+		}
+		hooks.unqueued++;
+
+		anim.always( function() {
+
+			// Ensure the complete handler is called before this completes
+			anim.always( function() {
+				hooks.unqueued--;
+				if ( !jQuery.queue( elem, "fx" ).length ) {
+					hooks.empty.fire();
+				}
+			} );
+		} );
+	}
+
+	// Detect show/hide animations
+	for ( prop in props ) {
+		value = props[ prop ];
+		if ( rfxtypes.test( value ) ) {
+			delete props[ prop ];
+			toggle = toggle || value === "toggle";
+			if ( value === ( hidden ? "hide" : "show" ) ) {
+
+				// Pretend to be hidden if this is a "show" and
+				// there is still data from a stopped show/hide
+				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
+					hidden = true;
+
+				// Ignore all other no-op show/hide data
+				} else {
+					continue;
+				}
+			}
+			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
+		}
+	}
+
+	// Bail out if this is a no-op like .hide().hide()
+	propTween = !jQuery.isEmptyObject( props );
+	if ( !propTween && jQuery.isEmptyObject( orig ) ) {
+		return;
+	}
+
+	// Restrict "overflow" and "display" styles during box animations
+	if ( isBox && elem.nodeType === 1 ) {
+
+		// Support: IE <=9 - 11, Edge 12 - 15
+		// Record all 3 overflow attributes because IE does not infer the shorthand
+		// from identically-valued overflowX and overflowY and Edge just mirrors
+		// the overflowX value there.
+		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
+
+		// Identify a display type, preferring old show/hide data over the CSS cascade
+		restoreDisplay = dataShow && dataShow.display;
+		if ( restoreDisplay == null ) {
+			restoreDisplay = dataPriv.get( elem, "display" );
+		}
+		display = jQuery.css( elem, "display" );
+		if ( display === "none" ) {
+			if ( restoreDisplay ) {
+				display = restoreDisplay;
+			} else {
+
+				// Get nonempty value(s) by temporarily forcing visibility
+				showHide( [ elem ], true );
+				restoreDisplay = elem.style.display || restoreDisplay;
+				display = jQuery.css( elem, "display" );
+				showHide( [ elem ] );
+			}
+		}
+
+		// Animate inline elements as inline-block
+		if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
+			if ( jQuery.css( elem, "float" ) === "none" ) {
+
+				// Restore the original display value at the end of pure show/hide animations
+				if ( !propTween ) {
+					anim.done( function() {
+						style.display = restoreDisplay;
+					} );
+					if ( restoreDisplay == null ) {
+						display = style.display;
+						restoreDisplay = display === "none" ? "" : display;
+					}
+				}
+				style.display = "inline-block";
+			}
+		}
+	}
+
+	if ( opts.overflow ) {
+		style.overflow = "hidden";
+		anim.always( function() {
+			style.overflow = opts.overflow[ 0 ];
+			style.overflowX = opts.overflow[ 1 ];
+			style.overflowY = opts.overflow[ 2 ];
+		} );
+	}
+
+	// Implement show/hide animations
+	propTween = false;
+	for ( prop in orig ) {
+
+		// General show/hide setup for this element animation
+		if ( !propTween ) {
+			if ( dataShow ) {
+				if ( "hidden" in dataShow ) {
+					hidden = dataShow.hidden;
+				}
+			} else {
+				dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
+			}
+
+			// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
+			if ( toggle ) {
+				dataShow.hidden = !hidden;
+			}
+
+			// Show elements before animating them
+			if ( hidden ) {
+				showHide( [ elem ], true );
+			}
+
+			/* eslint-disable no-loop-func */
+
+			anim.done( function() {
+
+			/* eslint-enable no-loop-func */
+
+				// The final step of a "hide" animation is actually hiding the element
+				if ( !hidden ) {
+					showHide( [ elem ] );
+				}
+				dataPriv.remove( elem, "fxshow" );
+				for ( prop in orig ) {
+					jQuery.style( elem, prop, orig[ prop ] );
+				}
+			} );
+		}
+
+		// Per-property setup
+		propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
+		if ( !( prop in dataShow ) ) {
+			dataShow[ prop ] = propTween.start;
+			if ( hidden ) {
+				propTween.end = propTween.start;
+				propTween.start = 0;
+			}
+		}
+	}
+}
+
+function propFilter( props, specialEasing ) {
+	var index, name, easing, value, hooks;
+
+	// camelCase, specialEasing and expand cssHook pass
+	for ( index in props ) {
+		name = camelCase( index );
+		easing = specialEasing[ name ];
+		value = props[ index ];
+		if ( Array.isArray( value ) ) {
+			easing = value[ 1 ];
+			value = props[ index ] = value[ 0 ];
+		}
+
+		if ( index !== name ) {
+			props[ name ] = value;
+			delete props[ index ];
+		}
+
+		hooks = jQuery.cssHooks[ name ];
+		if ( hooks && "expand" in hooks ) {
+			value = hooks.expand( value );
+			delete props[ name ];
+
+			// Not quite $.extend, this won't overwrite existing keys.
+			// Reusing 'index' because we have the correct "name"
+			for ( index in value ) {
+				if ( !( index in props ) ) {
+					props[ index ] = value[ index ];
+					specialEasing[ index ] = easing;
+				}
+			}
+		} else {
+			specialEasing[ name ] = easing;
+		}
+	}
+}
+
+function Animation( elem, properties, options ) {
+	var result,
+		stopped,
+		index = 0,
+		length = Animation.prefilters.length,
+		deferred = jQuery.Deferred().always( function() {
+
+			// Don't match elem in the :animated selector
+			delete tick.elem;
+		} ),
+		tick = function() {
+			if ( stopped ) {
+				return false;
+			}
+			var currentTime = fxNow || createFxNow(),
+				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
+
+				// Support: Android 2.3 only
+				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
+				temp = remaining / animation.duration || 0,
+				percent = 1 - temp,
+				index = 0,
+				length = animation.tweens.length;
+
+			for ( ; index < length; index++ ) {
+				animation.tweens[ index ].run( percent );
+			}
+
+			deferred.notifyWith( elem, [ animation, percent, remaining ] );
+
+			// If there's more to do, yield
+			if ( percent < 1 && length ) {
+				return remaining;
+			}
+
+			// If this was an empty animation, synthesize a final progress notification
+			if ( !length ) {
+				deferred.notifyWith( elem, [ animation, 1, 0 ] );
+			}
+
+			// Resolve the animation and report its conclusion
+			deferred.resolveWith( elem, [ animation ] );
+			return false;
+		},
+		animation = deferred.promise( {
+			elem: elem,
+			props: jQuery.extend( {}, properties ),
+			opts: jQuery.extend( true, {
+				specialEasing: {},
+				easing: jQuery.easing._default
+			}, options ),
+			originalProperties: properties,
+			originalOptions: options,
+			startTime: fxNow || createFxNow(),
+			duration: options.duration,
+			tweens: [],
+			createTween: function( prop, end ) {
+				var tween = jQuery.Tween( elem, animation.opts, prop, end,
+						animation.opts.specialEasing[ prop ] || animation.opts.easing );
+				animation.tweens.push( tween );
+				return tween;
+			},
+			stop: function( gotoEnd ) {
+				var index = 0,
+
+					// If we are going to the end, we want to run all the tweens
+					// otherwise we skip this part
+					length = gotoEnd ? animation.tweens.length : 0;
+				if ( stopped ) {
+					return this;
+				}
+				stopped = true;
+				for ( ; index < length; index++ ) {
+					animation.tweens[ index ].run( 1 );
+				}
+
+				// Resolve when we played the last frame; otherwise, reject
+				if ( gotoEnd ) {
+					deferred.notifyWith( elem, [ animation, 1, 0 ] );
+					deferred.resolveWith( elem, [ animation, gotoEnd ] );
+				} else {
+					deferred.rejectWith( elem, [ animation, gotoEnd ] );
+				}
+				return this;
+			}
+		} ),
+		props = animation.props;
+
+	propFilter( props, animation.opts.specialEasing );
+
+	for ( ; index < length; index++ ) {
+		result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
+		if ( result ) {
+			if ( isFunction( result.stop ) ) {
+				jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
+					result.stop.bind( result );
+			}
+			return result;
+		}
+	}
+
+	jQuery.map( props, createTween, animation );
+
+	if ( isFunction( animation.opts.start ) ) {
+		animation.opts.start.call( elem, animation );
+	}
+
+	// Attach callbacks from options
+	animation
+		.progress( animation.opts.progress )
+		.done( animation.opts.done, animation.opts.complete )
+		.fail( animation.opts.fail )
+		.always( animation.opts.always );
+
+	jQuery.fx.timer(
+		jQuery.extend( tick, {
+			elem: elem,
+			anim: animation,
+			queue: animation.opts.queue
+		} )
+	);
+
+	return animation;
+}
+
+jQuery.Animation = jQuery.extend( Animation, {
+
+	tweeners: {
+		"*": [ function( prop, value ) {
+			var tween = this.createTween( prop, value );
+			adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
+			return tween;
+		} ]
+	},
+
+	tweener: function( props, callback ) {
+		if ( isFunction( props ) ) {
+			callback = props;
+			props = [ "*" ];
+		} else {
+			props = props.match( rnothtmlwhite );
+		}
+
+		var prop,
+			index = 0,
+			length = props.length;
+
+		for ( ; index < length; index++ ) {
+			prop = props[ index ];
+			Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
+			Animation.tweeners[ prop ].unshift( callback );
+		}
+	},
+
+	prefilters: [ defaultPrefilter ],
+
+	prefilter: function( callback, prepend ) {
+		if ( prepend ) {
+			Animation.prefilters.unshift( callback );
+		} else {
+			Animation.prefilters.push( callback );
+		}
+	}
+} );
+
+jQuery.speed = function( speed, easing, fn ) {
+	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+		complete: fn || !fn && easing ||
+			isFunction( speed ) && speed,
+		duration: speed,
+		easing: fn && easing || easing && !isFunction( easing ) && easing
+	};
+
+	// Go to the end state if fx are off
+	if ( jQuery.fx.off ) {
+		opt.duration = 0;
+
+	} else {
+		if ( typeof opt.duration !== "number" ) {
+			if ( opt.duration in jQuery.fx.speeds ) {
+				opt.duration = jQuery.fx.speeds[ opt.duration ];
+
+			} else {
+				opt.duration = jQuery.fx.speeds._default;
+			}
+		}
+	}
+
+	// Normalize opt.queue - true/undefined/null -> "fx"
+	if ( opt.queue == null || opt.queue === true ) {
+		opt.queue = "fx";
+	}
+
+	// Queueing
+	opt.old = opt.complete;
+
+	opt.complete = function() {
+		if ( isFunction( opt.old ) ) {
+			opt.old.call( this );
+		}
+
+		if ( opt.queue ) {
+			jQuery.dequeue( this, opt.queue );
+		}
+	};
+
+	return opt;
+};
+
+jQuery.fn.extend( {
+	fadeTo: function( speed, to, easing, callback ) {
+
+		// Show any hidden elements after setting opacity to 0
+		return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
+
+			// Animate to the value specified
+			.end().animate( { opacity: to }, speed, easing, callback );
+	},
+	animate: function( prop, speed, easing, callback ) {
+		var empty = jQuery.isEmptyObject( prop ),
+			optall = jQuery.speed( speed, easing, callback ),
+			doAnimation = function() {
+
+				// Operate on a copy of prop so per-property easing won't be lost
+				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
+
+				// Empty animations, or finishing resolves immediately
+				if ( empty || dataPriv.get( this, "finish" ) ) {
+					anim.stop( true );
+				}
+			};
+			doAnimation.finish = doAnimation;
+
+		return empty || optall.queue === false ?
+			this.each( doAnimation ) :
+			this.queue( optall.queue, doAnimation );
+	},
+	stop: function( type, clearQueue, gotoEnd ) {
+		var stopQueue = function( hooks ) {
+			var stop = hooks.stop;
+			delete hooks.stop;
+			stop( gotoEnd );
+		};
+
+		if ( typeof type !== "string" ) {
+			gotoEnd = clearQueue;
+			clearQueue = type;
+			type = undefined;
+		}
+		if ( clearQueue ) {
+			this.queue( type || "fx", [] );
+		}
+
+		return this.each( function() {
+			var dequeue = true,
+				index = type != null && type + "queueHooks",
+				timers = jQuery.timers,
+				data = dataPriv.get( this );
+
+			if ( index ) {
+				if ( data[ index ] && data[ index ].stop ) {
+					stopQueue( data[ index ] );
+				}
+			} else {
+				for ( index in data ) {
+					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
+						stopQueue( data[ index ] );
+					}
+				}
+			}
+
+			for ( index = timers.length; index--; ) {
+				if ( timers[ index ].elem === this &&
+					( type == null || timers[ index ].queue === type ) ) {
+
+					timers[ index ].anim.stop( gotoEnd );
+					dequeue = false;
+					timers.splice( index, 1 );
+				}
+			}
+
+			// Start the next in the queue if the last step wasn't forced.
+			// Timers currently will call their complete callbacks, which
+			// will dequeue but only if they were gotoEnd.
+			if ( dequeue || !gotoEnd ) {
+				jQuery.dequeue( this, type );
+			}
+		} );
+	},
+	finish: function( type ) {
+		if ( type !== false ) {
+			type = type || "fx";
+		}
+		return this.each( function() {
+			var index,
+				data = dataPriv.get( this ),
+				queue = data[ type + "queue" ],
+				hooks = data[ type + "queueHooks" ],
+				timers = jQuery.timers,
+				length = queue ? queue.length : 0;
+
+			// Enable finishing flag on private data
+			data.finish = true;
+
+			// Empty the queue first
+			jQuery.queue( this, type, [] );
+
+			if ( hooks && hooks.stop ) {
+				hooks.stop.call( this, true );
+			}
+
+			// Look for any active animations, and finish them
+			for ( index = timers.length; index--; ) {
+				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
+					timers[ index ].anim.stop( true );
+					timers.splice( index, 1 );
+				}
+			}
+
+			// Look for any animations in the old queue and finish them
+			for ( index = 0; index < length; index++ ) {
+				if ( queue[ index ] && queue[ index ].finish ) {
+					queue[ index ].finish.call( this );
+				}
+			}
+
+			// Turn off finishing flag
+			delete data.finish;
+		} );
+	}
+} );
+
+jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) {
+	var cssFn = jQuery.fn[ name ];
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
+		return speed == null || typeof speed === "boolean" ?
+			cssFn.apply( this, arguments ) :
+			this.animate( genFx( name, true ), speed, easing, callback );
+	};
+} );
 
-                    if (haveMutationsApi) {
-                        r.styleObserver = new MutationObserver(onResize); // eslint-disable-line no-undef
+// Generate shortcuts for custom animations
+jQuery.each( {
+	slideDown: genFx( "show" ),
+	slideUp: genFx( "hide" ),
+	slideToggle: genFx( "toggle" ),
+	fadeIn: { opacity: "show" },
+	fadeOut: { opacity: "hide" },
+	fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
+		return this.animate( props, speed, easing, callback );
+	};
+} );
+
+jQuery.timers = [];
+jQuery.fx.tick = function() {
+	var timer,
+		i = 0,
+		timers = jQuery.timers;
+
+	fxNow = Date.now();
+
+	for ( ; i < timers.length; i++ ) {
+		timer = timers[ i ];
+
+		// Run the timer and safely remove it when done (allowing for external removal)
+		if ( !timer() && timers[ i ] === timer ) {
+			timers.splice( i--, 1 );
+		}
+	}
+
+	if ( !timers.length ) {
+		jQuery.fx.stop();
+	}
+	fxNow = undefined;
+};
+
+jQuery.fx.timer = function( timer ) {
+	jQuery.timers.push( timer );
+	jQuery.fx.start();
+};
+
+jQuery.fx.interval = 13;
+jQuery.fx.start = function() {
+	if ( inProgress ) {
+		return;
+	}
+
+	inProgress = true;
+	schedule();
+};
+
+jQuery.fx.stop = function() {
+	inProgress = null;
+};
+
+jQuery.fx.speeds = {
+	slow: 600,
+	fast: 200,
+
+	// Default speed
+	_default: 400
+};
 
-                        r.styleObserver.observe(r.container, {
-                            attributes: true
-                        });
-                    } // auto resize
 
+// Based off of the plugin by Clint Helfers, with permission.
+// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
+jQuery.fn.delay = function( time, type ) {
+	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+	type = type || "fx";
+
+	return this.queue( type, function( next, hooks ) {
+		var timeout = window.setTimeout( next, time );
+		hooks.stop = function() {
+			window.clearTimeout( timeout );
+		};
+	} );
+};
+
+
+( function() {
+	var input = document.createElement( "input" ),
+		select = document.createElement( "select" ),
+		opt = select.appendChild( document.createElement( "option" ) );
+
+	input.type = "checkbox";
+
+	// Support: Android <=4.3 only
+	// Default value for a checkbox should be "on"
+	support.checkOn = input.value !== "";
+
+	// Support: IE <=11 only
+	// Must access selectedIndex to make default options select
+	support.optSelected = opt.selected;
+
+	// Support: IE <=11 only
+	// An input loses its value after becoming a radio
+	input = document.createElement( "input" );
+	input.value = "t";
+	input.type = "radio";
+	support.radioValue = input.value === "t";
+} )();
+
+
+var boolHook,
+	attrHandle = jQuery.expr.attrHandle;
+
+jQuery.fn.extend( {
+	attr: function( name, value ) {
+		return access( this, jQuery.attr, name, value, arguments.length > 1 );
+	},
+
+	removeAttr: function( name ) {
+		return this.each( function() {
+			jQuery.removeAttr( this, name );
+		} );
+	}
+} );
+
+jQuery.extend( {
+	attr: function( elem, name, value ) {
+		var ret, hooks,
+			nType = elem.nodeType;
+
+		// Don't get/set attributes on text, comment and attribute nodes
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
+			return;
+		}
+
+		// Fallback to prop when attributes are not supported
+		if ( typeof elem.getAttribute === "undefined" ) {
+			return jQuery.prop( elem, name, value );
+		}
+
+		// Attribute hooks are determined by the lowercase version
+		// Grab necessary hook if one is defined
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
+			hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
+				( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
+		}
+
+		if ( value !== undefined ) {
+			if ( value === null ) {
+				jQuery.removeAttr( elem, name );
+				return;
+			}
+
+			if ( hooks && "set" in hooks &&
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
+				return ret;
+			}
+
+			elem.setAttribute( name, value + "" );
+			return value;
+		}
+
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
+			return ret;
+		}
+
+		ret = jQuery.find.attr( elem, name );
+
+		// Non-existent attributes return null, we normalize to undefined
+		return ret == null ? undefined : ret;
+	},
+
+	attrHooks: {
+		type: {
+			set: function( elem, value ) {
+				if ( !support.radioValue && value === "radio" &&
+					nodeName( elem, "input" ) ) {
+					var val = elem.value;
+					elem.setAttribute( "type", value );
+					if ( val ) {
+						elem.value = val;
+					}
+					return value;
+				}
+			}
+		}
+	},
+
+	removeAttr: function( elem, value ) {
+		var name,
+			i = 0,
+
+			// Attribute names can contain non-HTML whitespace characters
+			// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
+			attrNames = value && value.match( rnothtmlwhite );
+
+		if ( attrNames && elem.nodeType === 1 ) {
+			while ( ( name = attrNames[ i++ ] ) ) {
+				elem.removeAttribute( name );
+			}
+		}
+	}
+} );
 
-                    r.registerBinding(window, 'resize', onResize); // eslint-disable-line no-undef
+// Hooks for boolean attributes
+boolHook = {
+	set: function( elem, value, name ) {
+		if ( value === false ) {
+
+			// Remove boolean attributes when set to false
+			jQuery.removeAttr( elem, name );
+		} else {
+			elem.setAttribute( name, name );
+		}
+		return name;
+	}
+};
+
+jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {
+	var getter = attrHandle[ name ] || jQuery.find.attr;
+
+	attrHandle[ name ] = function( elem, name, isXML ) {
+		var ret, handle,
+			lowercaseName = name.toLowerCase();
+
+		if ( !isXML ) {
+
+			// Avoid an infinite loop by temporarily removing this function from the getter
+			handle = attrHandle[ lowercaseName ];
+			attrHandle[ lowercaseName ] = ret;
+			ret = getter( elem, name, isXML ) != null ?
+				lowercaseName :
+				null;
+			attrHandle[ lowercaseName ] = handle;
+		}
+		return ret;
+	};
+} );
+
+
+
+
+var rfocusable = /^(?:input|select|textarea|button)$/i,
+	rclickable = /^(?:a|area)$/i;
+
+jQuery.fn.extend( {
+	prop: function( name, value ) {
+		return access( this, jQuery.prop, name, value, arguments.length > 1 );
+	},
+
+	removeProp: function( name ) {
+		return this.each( function() {
+			delete this[ jQuery.propFix[ name ] || name ];
+		} );
+	}
+} );
+
+jQuery.extend( {
+	prop: function( elem, name, value ) {
+		var ret, hooks,
+			nType = elem.nodeType;
+
+		// Don't get/set properties on text, comment and attribute nodes
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
+			return;
+		}
+
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
+
+			// Fix name and attach hooks
+			name = jQuery.propFix[ name ] || name;
+			hooks = jQuery.propHooks[ name ];
+		}
+
+		if ( value !== undefined ) {
+			if ( hooks && "set" in hooks &&
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
+				return ret;
+			}
+
+			return ( elem[ name ] = value );
+		}
+
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
+			return ret;
+		}
+
+		return elem[ name ];
+	},
+
+	propHooks: {
+		tabIndex: {
+			get: function( elem ) {
+
+				// Support: IE <=9 - 11 only
+				// elem.tabIndex doesn't always return the
+				// correct value when it hasn't been explicitly set
+				// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+				// Use proper attribute retrieval(#12072)
+				var tabindex = jQuery.find.attr( elem, "tabindex" );
+
+				if ( tabindex ) {
+					return parseInt( tabindex, 10 );
+				}
+
+				if (
+					rfocusable.test( elem.nodeName ) ||
+					rclickable.test( elem.nodeName ) &&
+					elem.href
+				) {
+					return 0;
+				}
+
+				return -1;
+			}
+		}
+	},
+
+	propFix: {
+		"for": "htmlFor",
+		"class": "className"
+	}
+} );
 
-                    if (haveResizeObserverApi) {
-                        r.resizeObserver = new ResizeObserver(onResize); // eslint-disable-line no-undef
+// Support: IE <=11 only
+// Accessing the selectedIndex property
+// forces the browser to respect setting selected
+// on the option
+// The getter ensures a default option is selected
+// when in an optgroup
+// eslint rule "no-unused-expressions" is disabled for this code
+// since it considers such accessions noop
+if ( !support.optSelected ) {
+	jQuery.propHooks.selected = {
+		get: function( elem ) {
+
+			/* eslint no-unused-expressions: "off" */
+
+			var parent = elem.parentNode;
+			if ( parent && parent.parentNode ) {
+				parent.parentNode.selectedIndex;
+			}
+			return null;
+		},
+		set: function( elem ) {
+
+			/* eslint no-unused-expressions: "off" */
+
+			var parent = elem.parentNode;
+			if ( parent ) {
+				parent.selectedIndex;
+
+				if ( parent.parentNode ) {
+					parent.parentNode.selectedIndex;
+				}
+			}
+		}
+	};
+}
+
+jQuery.each( [
+	"tabIndex",
+	"readOnly",
+	"maxLength",
+	"cellSpacing",
+	"cellPadding",
+	"rowSpan",
+	"colSpan",
+	"useMap",
+	"frameBorder",
+	"contentEditable"
+], function() {
+	jQuery.propFix[ this.toLowerCase() ] = this;
+} );
+
+
+
+
+	// Strip and collapse whitespace according to HTML spec
+	// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
+	function stripAndCollapse( value ) {
+		var tokens = value.match( rnothtmlwhite ) || [];
+		return tokens.join( " " );
+	}
+
+
+function getClass( elem ) {
+	return elem.getAttribute && elem.getAttribute( "class" ) || "";
+}
+
+function classesToArray( value ) {
+	if ( Array.isArray( value ) ) {
+		return value;
+	}
+	if ( typeof value === "string" ) {
+		return value.match( rnothtmlwhite ) || [];
+	}
+	return [];
+}
+
+jQuery.fn.extend( {
+	addClass: function( value ) {
+		var classes, elem, cur, curValue, clazz, j, finalValue,
+			i = 0;
+
+		if ( isFunction( value ) ) {
+			return this.each( function( j ) {
+				jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
+			} );
+		}
+
+		classes = classesToArray( value );
+
+		if ( classes.length ) {
+			while ( ( elem = this[ i++ ] ) ) {
+				curValue = getClass( elem );
+				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
+
+				if ( cur ) {
+					j = 0;
+					while ( ( clazz = classes[ j++ ] ) ) {
+						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
+							cur += clazz + " ";
+						}
+					}
+
+					// Only assign if different to avoid unneeded rendering.
+					finalValue = stripAndCollapse( cur );
+					if ( curValue !== finalValue ) {
+						elem.setAttribute( "class", finalValue );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	removeClass: function( value ) {
+		var classes, elem, cur, curValue, clazz, j, finalValue,
+			i = 0;
+
+		if ( isFunction( value ) ) {
+			return this.each( function( j ) {
+				jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
+			} );
+		}
+
+		if ( !arguments.length ) {
+			return this.attr( "class", "" );
+		}
+
+		classes = classesToArray( value );
+
+		if ( classes.length ) {
+			while ( ( elem = this[ i++ ] ) ) {
+				curValue = getClass( elem );
+
+				// This expression is here for better compressibility (see addClass)
+				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
+
+				if ( cur ) {
+					j = 0;
+					while ( ( clazz = classes[ j++ ] ) ) {
+
+						// Remove *all* instances
+						while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
+							cur = cur.replace( " " + clazz + " ", " " );
+						}
+					}
+
+					// Only assign if different to avoid unneeded rendering.
+					finalValue = stripAndCollapse( cur );
+					if ( curValue !== finalValue ) {
+						elem.setAttribute( "class", finalValue );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	toggleClass: function( value, stateVal ) {
+		var type = typeof value,
+			isValidValue = type === "string" || Array.isArray( value );
+
+		if ( typeof stateVal === "boolean" && isValidValue ) {
+			return stateVal ? this.addClass( value ) : this.removeClass( value );
+		}
+
+		if ( isFunction( value ) ) {
+			return this.each( function( i ) {
+				jQuery( this ).toggleClass(
+					value.call( this, i, getClass( this ), stateVal ),
+					stateVal
+				);
+			} );
+		}
+
+		return this.each( function() {
+			var className, i, self, classNames;
+
+			if ( isValidValue ) {
+
+				// Toggle individual class names
+				i = 0;
+				self = jQuery( this );
+				classNames = classesToArray( value );
+
+				while ( ( className = classNames[ i++ ] ) ) {
+
+					// Check each className given, space separated list
+					if ( self.hasClass( className ) ) {
+						self.removeClass( className );
+					} else {
+						self.addClass( className );
+					}
+				}
+
+			// Toggle whole class name
+			} else if ( value === undefined || type === "boolean" ) {
+				className = getClass( this );
+				if ( className ) {
+
+					// Store className if set
+					dataPriv.set( this, "__className__", className );
+				}
+
+				// If the element has a class name or if we're passed `false`,
+				// then remove the whole classname (if there was one, the above saved it).
+				// Otherwise bring back whatever was previously saved (if anything),
+				// falling back to the empty string if nothing was stored.
+				if ( this.setAttribute ) {
+					this.setAttribute( "class",
+						className || value === false ?
+						"" :
+						dataPriv.get( this, "__className__" ) || ""
+					);
+				}
+			}
+		} );
+	},
+
+	hasClass: function( selector ) {
+		var className, elem,
+			i = 0;
+
+		className = " " + selector + " ";
+		while ( ( elem = this[ i++ ] ) ) {
+			if ( elem.nodeType === 1 &&
+				( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
+					return true;
+			}
+		}
+
+		return false;
+	}
+} );
+
+
+
+
+var rreturn = /\r/g;
+
+jQuery.fn.extend( {
+	val: function( value ) {
+		var hooks, ret, valueIsFunction,
+			elem = this[ 0 ];
+
+		if ( !arguments.length ) {
+			if ( elem ) {
+				hooks = jQuery.valHooks[ elem.type ] ||
+					jQuery.valHooks[ elem.nodeName.toLowerCase() ];
+
+				if ( hooks &&
+					"get" in hooks &&
+					( ret = hooks.get( elem, "value" ) ) !== undefined
+				) {
+					return ret;
+				}
+
+				ret = elem.value;
+
+				// Handle most common string cases
+				if ( typeof ret === "string" ) {
+					return ret.replace( rreturn, "" );
+				}
+
+				// Handle cases where value is null/undef or number
+				return ret == null ? "" : ret;
+			}
+
+			return;
+		}
+
+		valueIsFunction = isFunction( value );
+
+		return this.each( function( i ) {
+			var val;
+
+			if ( this.nodeType !== 1 ) {
+				return;
+			}
+
+			if ( valueIsFunction ) {
+				val = value.call( this, i, jQuery( this ).val() );
+			} else {
+				val = value;
+			}
+
+			// Treat null/undefined as ""; convert numbers to string
+			if ( val == null ) {
+				val = "";
+
+			} else if ( typeof val === "number" ) {
+				val += "";
+
+			} else if ( Array.isArray( val ) ) {
+				val = jQuery.map( val, function( value ) {
+					return value == null ? "" : value + "";
+				} );
+			}
+
+			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
+
+			// If set returns undefined, fall back to normal setting
+			if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
+				this.value = val;
+			}
+		} );
+	}
+} );
+
+jQuery.extend( {
+	valHooks: {
+		option: {
+			get: function( elem ) {
+
+				var val = jQuery.find.attr( elem, "value" );
+				return val != null ?
+					val :
+
+					// Support: IE <=10 - 11 only
+					// option.text throws exceptions (#14686, #14858)
+					// Strip and collapse whitespace
+					// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
+					stripAndCollapse( jQuery.text( elem ) );
+			}
+		},
+		select: {
+			get: function( elem ) {
+				var value, option, i,
+					options = elem.options,
+					index = elem.selectedIndex,
+					one = elem.type === "select-one",
+					values = one ? null : [],
+					max = one ? index + 1 : options.length;
+
+				if ( index < 0 ) {
+					i = max;
+
+				} else {
+					i = one ? index : 0;
+				}
+
+				// Loop through all the selected options
+				for ( ; i < max; i++ ) {
+					option = options[ i ];
+
+					// Support: IE <=9 only
+					// IE8-9 doesn't update selected after form reset (#2551)
+					if ( ( option.selected || i === index ) &&
+
+							// Don't return options that are disabled or in a disabled optgroup
+							!option.disabled &&
+							( !option.parentNode.disabled ||
+								!nodeName( option.parentNode, "optgroup" ) ) ) {
+
+						// Get the specific value for the option
+						value = jQuery( option ).val();
+
+						// We don't need an array for one selects
+						if ( one ) {
+							return value;
+						}
+
+						// Multi-Selects return an array
+						values.push( value );
+					}
+				}
+
+				return values;
+			},
+
+			set: function( elem, value ) {
+				var optionSet, option,
+					options = elem.options,
+					values = jQuery.makeArray( value ),
+					i = options.length;
+
+				while ( i-- ) {
+					option = options[ i ];
+
+					/* eslint-disable no-cond-assign */
+
+					if ( option.selected =
+						jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
+					) {
+						optionSet = true;
+					}
+
+					/* eslint-enable no-cond-assign */
+				}
+
+				// Force browsers to behave consistently when non-matching value is set
+				if ( !optionSet ) {
+					elem.selectedIndex = -1;
+				}
+				return values;
+			}
+		}
+	}
+} );
 
-                        r.resizeObserver.observe(r.container);
-                    }
+// Radios and checkboxes getter/setter
+jQuery.each( [ "radio", "checkbox" ], function() {
+	jQuery.valHooks[ this ] = {
+		set: function( elem, value ) {
+			if ( Array.isArray( value ) ) {
+				return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
+			}
+		}
+	};
+	if ( !support.checkOn ) {
+		jQuery.valHooks[ this ].get = function( elem ) {
+			return elem.getAttribute( "value" ) === null ? "on" : elem.value;
+		};
+	}
+} );
 
-                    var forEachUp = function forEachUp(domEle, fn) {
-                        while (domEle != null) {
-                            fn(domEle);
-                            domEle = domEle.parentNode;
-                        }
-                    };
-
-                    var invalidateCoords = function invalidateCoords() {
-                        r.invalidateContainerClientCoordsCache();
-                    };
-
-                    forEachUp(r.container, function (domEle) {
-                        r.registerBinding(domEle, 'transitionend', invalidateCoords);
-                        r.registerBinding(domEle, 'animationend', invalidateCoords);
-                        r.registerBinding(domEle, 'scroll', invalidateCoords);
-                    }); // stop right click menu from appearing on cy
-
-                    r.registerBinding(r.container, 'contextmenu', function (e) {
-                        e.preventDefault();
-                    });
-
-                    var inBoxSelection = function inBoxSelection() {
-                        return r.selection[4] !== 0;
-                    };
-
-                    var eventInContainer = function eventInContainer(e) {
-                        // save cycles if mouse events aren't to be captured
-                        var containerPageCoords = r.findContainerClientCoords();
-                        var x = containerPageCoords[0];
-                        var y = containerPageCoords[1];
-                        var width = containerPageCoords[2];
-                        var height = containerPageCoords[3];
-                        var positions = e.touches ? e.touches : [e];
-                        var atLeastOnePosInside = false;
-
-                        for (var i = 0; i < positions.length; i++) {
-                            var p = positions[i];
-
-                            if (x <= p.clientX && p.clientX <= x + width && y <= p.clientY && p.clientY <= y + height) {
-                                atLeastOnePosInside = true;
-                                break;
-                            }
-                        }
 
-                        if (!atLeastOnePosInside) {
-                            return false;
-                        }
 
-                        var container = r.container;
-                        var target = e.target;
-                        var tParent = target.parentNode;
-                        var containerIsTarget = false;
 
-                        while (tParent) {
-                            if (tParent === container) {
-                                containerIsTarget = true;
-                                break;
-                            }
+// Return jQuery for attributes-only inclusion
 
-                            tParent = tParent.parentNode;
-                        }
 
-                        if (!containerIsTarget) {
-                            return false;
-                        } // if target is outisde cy container, then this event is not for us
+support.focusin = "onfocusin" in window;
+
+
+var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+	stopPropagationCallback = function( e ) {
+		e.stopPropagation();
+	};
+
+jQuery.extend( jQuery.event, {
+
+	trigger: function( event, data, elem, onlyHandlers ) {
+
+		var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
+			eventPath = [ elem || document ],
+			type = hasOwn.call( event, "type" ) ? event.type : event,
+			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
+
+		cur = lastElement = tmp = elem = elem || document;
+
+		// Don't do events on text and comment nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		// focus/blur morphs to focusin/out; ensure we're not firing them right now
+		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+			return;
+		}
+
+		if ( type.indexOf( "." ) > -1 ) {
+
+			// Namespaced trigger; create a regexp to match event type in handle()
+			namespaces = type.split( "." );
+			type = namespaces.shift();
+			namespaces.sort();
+		}
+		ontype = type.indexOf( ":" ) < 0 && "on" + type;
+
+		// Caller can pass in a jQuery.Event object, Object, or just an event type string
+		event = event[ jQuery.expando ] ?
+			event :
+			new jQuery.Event( type, typeof event === "object" && event );
+
+		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
+		event.isTrigger = onlyHandlers ? 2 : 3;
+		event.namespace = namespaces.join( "." );
+		event.rnamespace = event.namespace ?
+			new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
+			null;
+
+		// Clean up the event in case it is being reused
+		event.result = undefined;
+		if ( !event.target ) {
+			event.target = elem;
+		}
+
+		// Clone any incoming data and prepend the event, creating the handler arg list
+		data = data == null ?
+			[ event ] :
+			jQuery.makeArray( data, [ event ] );
+
+		// Allow special events to draw outside the lines
+		special = jQuery.event.special[ type ] || {};
+		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
+			return;
+		}
+
+		// Determine event propagation path in advance, per W3C events spec (#9951)
+		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+		if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
+
+			bubbleType = special.delegateType || type;
+			if ( !rfocusMorph.test( bubbleType + type ) ) {
+				cur = cur.parentNode;
+			}
+			for ( ; cur; cur = cur.parentNode ) {
+				eventPath.push( cur );
+				tmp = cur;
+			}
+
+			// Only add window if we got to document (e.g., not plain obj or detached DOM)
+			if ( tmp === ( elem.ownerDocument || document ) ) {
+				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
+			}
+		}
+
+		// Fire handlers on the event path
+		i = 0;
+		while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
+			lastElement = cur;
+			event.type = i > 1 ?
+				bubbleType :
+				special.bindType || type;
+
+			// jQuery handler
+			handle = (
+					dataPriv.get( cur, "events" ) || Object.create( null )
+				)[ event.type ] &&
+				dataPriv.get( cur, "handle" );
+			if ( handle ) {
+				handle.apply( cur, data );
+			}
+
+			// Native handler
+			handle = ontype && cur[ ontype ];
+			if ( handle && handle.apply && acceptData( cur ) ) {
+				event.result = handle.apply( cur, data );
+				if ( event.result === false ) {
+					event.preventDefault();
+				}
+			}
+		}
+		event.type = type;
+
+		// If nobody prevented the default action, do it now
+		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+			if ( ( !special._default ||
+				special._default.apply( eventPath.pop(), data ) === false ) &&
+				acceptData( elem ) ) {
+
+				// Call a native DOM method on the target with the same name as the event.
+				// Don't do default actions on window, that's where global variables be (#6170)
+				if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
+
+					// Don't re-trigger an onFOO event when we call its FOO() method
+					tmp = elem[ ontype ];
+
+					if ( tmp ) {
+						elem[ ontype ] = null;
+					}
+
+					// Prevent re-triggering of the same event, since we already bubbled it above
+					jQuery.event.triggered = type;
+
+					if ( event.isPropagationStopped() ) {
+						lastElement.addEventListener( type, stopPropagationCallback );
+					}
+
+					elem[ type ]();
+
+					if ( event.isPropagationStopped() ) {
+						lastElement.removeEventListener( type, stopPropagationCallback );
+					}
+
+					jQuery.event.triggered = undefined;
+
+					if ( tmp ) {
+						elem[ ontype ] = tmp;
+					}
+				}
+			}
+		}
+
+		return event.result;
+	},
+
+	// Piggyback on a donor event to simulate a different one
+	// Used only for `focus(in | out)` events
+	simulate: function( type, elem, event ) {
+		var e = jQuery.extend(
+			new jQuery.Event(),
+			event,
+			{
+				type: type,
+				isSimulated: true
+			}
+		);
+
+		jQuery.event.trigger( e, null, elem );
+	}
+
+} );
+
+jQuery.fn.extend( {
+
+	trigger: function( type, data ) {
+		return this.each( function() {
+			jQuery.event.trigger( type, data, this );
+		} );
+	},
+	triggerHandler: function( type, data ) {
+		var elem = this[ 0 ];
+		if ( elem ) {
+			return jQuery.event.trigger( type, data, elem, true );
+		}
+	}
+} );
 
 
-                        return true;
-                    }; // Primary key
+// Support: Firefox <=44
+// Firefox doesn't have focus(in | out) events
+// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
+//
+// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
+// focus(in | out) events fire after focus & blur events,
+// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
+// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
+if ( !support.focusin ) {
+	jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
 
+		// Attach a single capturing handler on the document while someone wants focusin/focusout
+		var handler = function( event ) {
+			jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
+		};
 
-                    r.registerBinding(r.container, 'mousedown', function mousedownHandler(e) {
-                        if (!eventInContainer(e)) {
-                            return;
-                        }
+		jQuery.event.special[ fix ] = {
+			setup: function() {
 
-                        e.preventDefault();
-                        blurActiveDomElement();
-                        r.hoverData.capture = true;
-                        r.hoverData.which = e.which;
-                        var cy = r.cy;
-                        var gpos = [e.clientX, e.clientY];
-                        var pos = r.projectIntoViewport(gpos[0], gpos[1]);
-                        var select = r.selection;
-                        var nears = r.findNearestElements(pos[0], pos[1], true, false);
-                        var near = nears[0];
-                        var draggedElements = r.dragData.possibleDragElements;
-                        r.hoverData.mdownPos = pos;
-                        r.hoverData.mdownGPos = gpos;
-
-                        var checkForTaphold = function checkForTaphold() {
-                            r.hoverData.tapholdCancelled = false;
-                            clearTimeout(r.hoverData.tapholdTimeout);
-                            r.hoverData.tapholdTimeout = setTimeout(function () {
-                                if (r.hoverData.tapholdCancelled) {
-                                    return;
-                                } else {
-                                    var ele = r.hoverData.down;
-
-                                    if (ele) {
-                                        ele.emit({
-                                            originalEvent: e,
-                                            type: 'taphold',
-                                            position: {
-                                                x: pos[0],
-                                                y: pos[1]
-                                            }
-                                        });
-                                    } else {
-                                        cy.emit({
-                                            originalEvent: e,
-                                            type: 'taphold',
-                                            position: {
-                                                x: pos[0],
-                                                y: pos[1]
-                                            }
-                                        });
-                                    }
-                                }
-                            }, r.tapholdDuration);
-                        }; // Right click button
-
-
-                        if (e.which == 3) {
-                            r.hoverData.cxtStarted = true;
-                            var cxtEvt = {
-                                originalEvent: e,
-                                type: 'cxttapstart',
-                                position: {
-                                    x: pos[0],
-                                    y: pos[1]
-                                }
-                            };
-
-                            if (near) {
-                                near.activate();
-                                near.emit(cxtEvt);
-                                r.hoverData.down = near;
-                            } else {
-                                cy.emit(cxtEvt);
-                            }
+				// Handle: regular nodes (via `this.ownerDocument`), window
+				// (via `this.document`) & document (via `this`).
+				var doc = this.ownerDocument || this.document || this,
+					attaches = dataPriv.access( doc, fix );
 
-                            r.hoverData.downTime = new Date().getTime();
-                            r.hoverData.cxtDragged = false; // Primary button
-                        } else if (e.which == 1) {
-                            if (near) {
-                                near.activate();
-                            } // Element dragging
-
-
-                            {
-                                // If something is under the cursor and it is draggable, prepare to grab it
-                                if (near != null) {
-                                    if (r.nodeIsGrabbable(near)) {
-                                        var makeEvent = function makeEvent(type) {
-                                            return {
-                                                originalEvent: e,
-                                                type: type,
-                                                position: {
-                                                    x: pos[0],
-                                                    y: pos[1]
-                                                }
-                                            };
-                                        };
-
-                                        var triggerGrab = function triggerGrab(ele) {
-                                            ele.emit(makeEvent('grab'));
-                                        };
-
-                                        setGrabTarget(near);
-
-                                        if (!near.selected()) {
-                                            draggedElements = r.dragData.possibleDragElements = cy.collection();
-                                            addNodeToDrag(near, {
-                                                addToList: draggedElements
-                                            });
-                                            near.emit(makeEvent('grabon')).emit(makeEvent('grab'));
-                                        } else {
-                                            draggedElements = r.dragData.possibleDragElements = cy.collection();
-                                            var selectedNodes = cy.$(function (ele) {
-                                                return ele.isNode() && ele.selected() && r.nodeIsGrabbable(ele);
-                                            });
-                                            addNodesToDrag(selectedNodes, {
-                                                addToList: draggedElements
-                                            });
-                                            near.emit(makeEvent('grabon'));
-                                            selectedNodes.forEach(triggerGrab);
-                                        }
-
-                                        r.redrawHint('eles', true);
-                                        r.redrawHint('drag', true);
-                                    }
-                                }
-
-                                r.hoverData.down = near;
-                                r.hoverData.downs = nears;
-                                r.hoverData.downTime = new Date().getTime();
-                            }
-                            triggerEvents(near, ['mousedown', 'tapstart', 'vmousedown'], e, {
-                                x: pos[0],
-                                y: pos[1]
-                            });
-
-                            if (near == null) {
-                                select[4] = 1;
-                                r.data.bgActivePosistion = {
-                                    x: pos[0],
-                                    y: pos[1]
-                                };
-                                r.redrawHint('select', true);
-                                r.redraw();
-                            } else if (near.pannable()) {
-                                select[4] = 1; // for future pan
-                            }
+				if ( !attaches ) {
+					doc.addEventListener( orig, handler, true );
+				}
+				dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
+			},
+			teardown: function() {
+				var doc = this.ownerDocument || this.document || this,
+					attaches = dataPriv.access( doc, fix ) - 1;
 
-                            checkForTaphold();
-                        } // Initialize selection box coordinates
+				if ( !attaches ) {
+					doc.removeEventListener( orig, handler, true );
+					dataPriv.remove( doc, fix );
 
+				} else {
+					dataPriv.access( doc, fix, attaches );
+				}
+			}
+		};
+	} );
+}
+var location = window.location;
 
-                        select[0] = select[2] = pos[0];
-                        select[1] = select[3] = pos[1];
-                    }, false);
-                    r.registerBinding(window, 'mousemove', function mousemoveHandler(e) {
-                        // eslint-disable-line no-undef
-                        var capture = r.hoverData.capture;
+var nonce = { guid: Date.now() };
 
-                        if (!capture && !eventInContainer(e)) {
-                            return;
-                        }
+var rquery = ( /\?/ );
 
-                        var preventDefault = false;
-                        var cy = r.cy;
-                        var zoom = cy.zoom();
-                        var gpos = [e.clientX, e.clientY];
-                        var pos = r.projectIntoViewport(gpos[0], gpos[1]);
-                        var mdownPos = r.hoverData.mdownPos;
-                        var mdownGPos = r.hoverData.mdownGPos;
-                        var select = r.selection;
-                        var near = null;
-
-                        if (!r.hoverData.draggingEles && !r.hoverData.dragging && !r.hoverData.selecting) {
-                            near = r.findNearestElement(pos[0], pos[1], true, false);
-                        }
 
-                        var last = r.hoverData.last;
-                        var down = r.hoverData.down;
-                        var disp = [pos[0] - select[2], pos[1] - select[3]];
-                        var draggedElements = r.dragData.possibleDragElements;
-                        var isOverThresholdDrag;
-
-                        if (mdownGPos) {
-                            var dx = gpos[0] - mdownGPos[0];
-                            var dx2 = dx * dx;
-                            var dy = gpos[1] - mdownGPos[1];
-                            var dy2 = dy * dy;
-                            var dist2 = dx2 + dy2;
-                            r.hoverData.isOverThresholdDrag = isOverThresholdDrag = dist2 >= r.desktopTapThreshold2;
-                        }
 
-                        var multSelKeyDown = isMultSelKeyDown(e);
+// Cross-browser xml parsing
+jQuery.parseXML = function( data ) {
+	var xml;
+	if ( !data || typeof data !== "string" ) {
+		return null;
+	}
+
+	// Support: IE 9 - 11 only
+	// IE throws on parseFromString with invalid input.
+	try {
+		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
+	} catch ( e ) {
+		xml = undefined;
+	}
+
+	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
+		jQuery.error( "Invalid XML: " + data );
+	}
+	return xml;
+};
+
+
+var
+	rbracket = /\[\]$/,
+	rCRLF = /\r?\n/g,
+	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
+	rsubmittable = /^(?:input|select|textarea|keygen)/i;
+
+function buildParams( prefix, obj, traditional, add ) {
+	var name;
+
+	if ( Array.isArray( obj ) ) {
+
+		// Serialize array item.
+		jQuery.each( obj, function( i, v ) {
+			if ( traditional || rbracket.test( prefix ) ) {
+
+				// Treat each array item as a scalar.
+				add( prefix, v );
+
+			} else {
+
+				// Item is non-scalar (array or object), encode its numeric index.
+				buildParams(
+					prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
+					v,
+					traditional,
+					add
+				);
+			}
+		} );
+
+	} else if ( !traditional && toType( obj ) === "object" ) {
+
+		// Serialize object item.
+		for ( name in obj ) {
+			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+		}
+
+	} else {
+
+		// Serialize scalar item.
+		add( prefix, obj );
+	}
+}
 
-                        if (isOverThresholdDrag) {
-                            r.hoverData.tapholdCancelled = true;
-                        }
+// Serialize an array of form elements or a set of
+// key/values into a query string
+jQuery.param = function( a, traditional ) {
+	var prefix,
+		s = [],
+		add = function( key, valueOrFunction ) {
+
+			// If value is a function, invoke it and use its return value
+			var value = isFunction( valueOrFunction ) ?
+				valueOrFunction() :
+				valueOrFunction;
+
+			s[ s.length ] = encodeURIComponent( key ) + "=" +
+				encodeURIComponent( value == null ? "" : value );
+		};
+
+	if ( a == null ) {
+		return "";
+	}
+
+	// If an array was passed in, assume that it is an array of form elements.
+	if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+
+		// Serialize the form elements
+		jQuery.each( a, function() {
+			add( this.name, this.value );
+		} );
+
+	} else {
+
+		// If traditional, encode the "old" way (the way 1.3.2 or older
+		// did it), otherwise encode params recursively.
+		for ( prefix in a ) {
+			buildParams( prefix, a[ prefix ], traditional, add );
+		}
+	}
+
+	// Return the resulting serialization
+	return s.join( "&" );
+};
+
+jQuery.fn.extend( {
+	serialize: function() {
+		return jQuery.param( this.serializeArray() );
+	},
+	serializeArray: function() {
+		return this.map( function() {
+
+			// Can add propHook for "elements" to filter or add form elements
+			var elements = jQuery.prop( this, "elements" );
+			return elements ? jQuery.makeArray( elements ) : this;
+		} )
+		.filter( function() {
+			var type = this.type;
+
+			// Use .is( ":disabled" ) so that fieldset[disabled] works
+			return this.name && !jQuery( this ).is( ":disabled" ) &&
+				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
+				( this.checked || !rcheckableType.test( type ) );
+		} )
+		.map( function( _i, elem ) {
+			var val = jQuery( this ).val();
+
+			if ( val == null ) {
+				return null;
+			}
+
+			if ( Array.isArray( val ) ) {
+				return jQuery.map( val, function( val ) {
+					return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+				} );
+			}
+
+			return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+		} ).get();
+	}
+} );
+
+
+var
+	r20 = /%20/g,
+	rhash = /#.*$/,
+	rantiCache = /([?&])_=[^&]*/,
+	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
+
+	// #7653, #8125, #8152: local protocol detection
+	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
+	rnoContent = /^(?:GET|HEAD)$/,
+	rprotocol = /^\/\//,
+
+	/* Prefilters
+	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+	 * 2) These are called:
+	 *    - BEFORE asking for a transport
+	 *    - AFTER param serialization (s.data is a string if s.processData is true)
+	 * 3) key is the dataType
+	 * 4) the catchall symbol "*" can be used
+	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+	 */
+	prefilters = {},
 
-                        var updateDragDelta = function updateDragDelta() {
-                            var dragDelta = r.hoverData.dragDelta = r.hoverData.dragDelta || [];
+	/* Transports bindings
+	 * 1) key is the dataType
+	 * 2) the catchall symbol "*" can be used
+	 * 3) selection will start with transport dataType and THEN go to "*" if needed
+	 */
+	transports = {},
 
-                            if (dragDelta.length === 0) {
-                                dragDelta.push(disp[0]);
-                                dragDelta.push(disp[1]);
-                            } else {
-                                dragDelta[0] += disp[0];
-                                dragDelta[1] += disp[1];
-                            }
-                        };
+	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+	allTypes = "*/".concat( "*" ),
 
-                        preventDefault = true;
-                        triggerEvents(near, ['mousemove', 'vmousemove', 'tapdrag'], e, {
-                            x: pos[0],
-                            y: pos[1]
-                        });
+	// Anchor tag for parsing the document origin
+	originAnchor = document.createElement( "a" );
+	originAnchor.href = location.href;
 
-                        var goIntoBoxMode = function goIntoBoxMode() {
-                            r.data.bgActivePosistion = undefined;
-
-                            if (!r.hoverData.selecting) {
-                                cy.emit({
-                                    originalEvent: e,
-                                    type: 'boxstart',
-                                    position: {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    }
-                                });
-                            }
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
 
-                            select[4] = 1;
-                            r.hoverData.selecting = true;
-                            r.redrawHint('select', true);
-                            r.redraw();
-                        }; // trigger context drag if rmouse down
-
-
-                        if (r.hoverData.which === 3) {
-                            // but only if over threshold
-                            if (isOverThresholdDrag) {
-                                var cxtEvt = {
-                                    originalEvent: e,
-                                    type: 'cxtdrag',
-                                    position: {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    }
-                                };
-
-                                if (down) {
-                                    down.emit(cxtEvt);
-                                } else {
-                                    cy.emit(cxtEvt);
-                                }
-
-                                r.hoverData.cxtDragged = true;
-
-                                if (!r.hoverData.cxtOver || near !== r.hoverData.cxtOver) {
-                                    if (r.hoverData.cxtOver) {
-                                        r.hoverData.cxtOver.emit({
-                                            originalEvent: e,
-                                            type: 'cxtdragout',
-                                            position: {
-                                                x: pos[0],
-                                                y: pos[1]
-                                            }
-                                        });
-                                    }
-
-                                    r.hoverData.cxtOver = near;
-
-                                    if (near) {
-                                        near.emit({
-                                            originalEvent: e,
-                                            type: 'cxtdragover',
-                                            position: {
-                                                x: pos[0],
-                                                y: pos[1]
-                                            }
-                                        });
-                                    }
-                                }
-                            } // Check if we are drag panning the entire graph
-
-                        } else if (r.hoverData.dragging) {
-                            preventDefault = true;
-
-                            if (cy.panningEnabled() && cy.userPanningEnabled()) {
-                                var deltaP;
-
-                                if (r.hoverData.justStartedPan) {
-                                    var mdPos = r.hoverData.mdownPos;
-                                    deltaP = {
-                                        x: (pos[0] - mdPos[0]) * zoom,
-                                        y: (pos[1] - mdPos[1]) * zoom
-                                    };
-                                    r.hoverData.justStartedPan = false;
-                                } else {
-                                    deltaP = {
-                                        x: disp[0] * zoom,
-                                        y: disp[1] * zoom
-                                    };
-                                }
-
-                                cy.panBy(deltaP);
-                                r.hoverData.dragged = true;
-                            } // Needs reproject due to pan changing viewport
-
-
-                            pos = r.projectIntoViewport(e.clientX, e.clientY); // Checks primary button down & out of time & mouse not moved much
-                        } else if (select[4] == 1 && (down == null || down.pannable())) {
-                            if (isOverThresholdDrag) {
-                                if (!r.hoverData.dragging && cy.boxSelectionEnabled() && (multSelKeyDown || !cy.panningEnabled() || !cy.userPanningEnabled())) {
-                                    goIntoBoxMode();
-                                } else if (!r.hoverData.selecting && cy.panningEnabled() && cy.userPanningEnabled()) {
-                                    var allowPassthrough = allowPanningPassthrough(down, r.hoverData.downs);
-
-                                    if (allowPassthrough) {
-                                        r.hoverData.dragging = true;
-                                        r.hoverData.justStartedPan = true;
-                                        select[4] = 0;
-                                        r.data.bgActivePosistion = array2point(mdownPos);
-                                        r.redrawHint('select', true);
-                                        r.redraw();
-                                    }
-                                }
-
-                                if (down && down.pannable() && down.active()) {
-                                    down.unactivate();
-                                }
-                            }
-                        } else {
-                            if (down && down.pannable() && down.active()) {
-                                down.unactivate();
-                            }
+	// dataTypeExpression is optional and defaults to "*"
+	return function( dataTypeExpression, func ) {
 
-                            if ((!down || !down.grabbed()) && near != last) {
-                                if (last) {
-                                    triggerEvents(last, ['mouseout', 'tapdragout'], e, {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    });
-                                }
-
-                                if (near) {
-                                    triggerEvents(near, ['mouseover', 'tapdragover'], e, {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    });
-                                }
-
-                                r.hoverData.last = near;
-                            }
+		if ( typeof dataTypeExpression !== "string" ) {
+			func = dataTypeExpression;
+			dataTypeExpression = "*";
+		}
 
-                            if (down) {
-                                if (isOverThresholdDrag) {
-                                    // then we can take action
-                                    if (cy.boxSelectionEnabled() && multSelKeyDown) {
-                                        // then selection overrides
-                                        if (down && down.grabbed()) {
-                                            freeDraggedElements(draggedElements);
-                                            down.emit('freeon');
-                                            draggedElements.emit('free');
-
-                                            if (r.dragData.didDrag) {
-                                                down.emit('dragfreeon');
-                                                draggedElements.emit('dragfree');
-                                            }
-                                        }
-
-                                        goIntoBoxMode();
-                                    } else if (down && down.grabbed() && r.nodeIsDraggable(down)) {
-                                        // drag node
-                                        var justStartedDrag = !r.dragData.didDrag;
-
-                                        if (justStartedDrag) {
-                                            r.redrawHint('eles', true);
-                                        }
-
-                                        r.dragData.didDrag = true; // indicate that we actually did drag the node
-
-                                        var toTrigger = cy.collection(); // now, add the elements to the drag layer if not done already
-
-                                        if (!r.hoverData.draggingEles) {
-                                            addNodesToDrag(draggedElements, {
-                                                inDragLayer: true
-                                            });
-                                        }
-
-                                        var totalShift = {
-                                            x: 0,
-                                            y: 0
-                                        };
-
-                                        if (number(disp[0]) && number(disp[1])) {
-                                            totalShift.x += disp[0];
-                                            totalShift.y += disp[1];
-
-                                            if (justStartedDrag) {
-                                                var dragDelta = r.hoverData.dragDelta;
-
-                                                if (dragDelta && number(dragDelta[0]) && number(dragDelta[1])) {
-                                                    totalShift.x += dragDelta[0];
-                                                    totalShift.y += dragDelta[1];
-                                                }
-                                            }
-                                        }
-
-                                        for (var i = 0; i < draggedElements.length; i++) {
-                                            var dEle = draggedElements[i];
-
-                                            if (r.nodeIsDraggable(dEle) && dEle.grabbed()) {
-                                                toTrigger.push(dEle);
-                                            }
-                                        }
-
-                                        r.hoverData.draggingEles = true;
-                                        toTrigger.silentShift(totalShift).emit('position drag');
-                                        r.redrawHint('drag', true);
-                                        r.redraw();
-                                    }
-                                } else {
-                                    // otherwise save drag delta for when we actually start dragging so the relative grab pos is constant
-                                    updateDragDelta();
-                                }
-                            } // prevent the dragging from triggering text selection on the page
-
-
-                            preventDefault = true;
-                        }
+		var dataType,
+			i = 0,
+			dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
 
-                        select[2] = pos[0];
-                        select[3] = pos[1];
+		if ( isFunction( func ) ) {
 
-                        if (preventDefault) {
-                            if (e.stopPropagation) e.stopPropagation();
-                            if (e.preventDefault) e.preventDefault();
-                            return false;
-                        }
-                    }, false);
-                    r.registerBinding(window, 'mouseup', function mouseupHandler(e) {
-                        // eslint-disable-line no-undef
-                        var capture = r.hoverData.capture;
+			// For each dataType in the dataTypeExpression
+			while ( ( dataType = dataTypes[ i++ ] ) ) {
 
-                        if (!capture) {
-                            return;
-                        }
+				// Prepend if requested
+				if ( dataType[ 0 ] === "+" ) {
+					dataType = dataType.slice( 1 ) || "*";
+					( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
 
-                        r.hoverData.capture = false;
-                        var cy = r.cy;
-                        var pos = r.projectIntoViewport(e.clientX, e.clientY);
-                        var select = r.selection;
-                        var near = r.findNearestElement(pos[0], pos[1], true, false);
-                        var draggedElements = r.dragData.possibleDragElements;
-                        var down = r.hoverData.down;
-                        var multSelKeyDown = isMultSelKeyDown(e);
-
-                        if (r.data.bgActivePosistion) {
-                            r.redrawHint('select', true);
-                            r.redraw();
-                        }
+				// Otherwise append
+				} else {
+					( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
+				}
+			}
+		}
+	};
+}
 
-                        r.hoverData.tapholdCancelled = true;
-                        r.data.bgActivePosistion = undefined; // not active bg now
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
+
+	var inspected = {},
+		seekingTransport = ( structure === transports );
+
+	function inspect( dataType ) {
+		var selected;
+		inspected[ dataType ] = true;
+		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
+			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
+			if ( typeof dataTypeOrTransport === "string" &&
+				!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
+
+				options.dataTypes.unshift( dataTypeOrTransport );
+				inspect( dataTypeOrTransport );
+				return false;
+			} else if ( seekingTransport ) {
+				return !( selected = dataTypeOrTransport );
+			}
+		} );
+		return selected;
+	}
+
+	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
+}
 
-                        if (down) {
-                            down.unactivate();
-                        }
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+	var key, deep,
+		flatOptions = jQuery.ajaxSettings.flatOptions || {};
+
+	for ( key in src ) {
+		if ( src[ key ] !== undefined ) {
+			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+		}
+	}
+	if ( deep ) {
+		jQuery.extend( true, target, deep );
+	}
+
+	return target;
+}
+
+/* Handles responses to an ajax request:
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+	var ct, type, finalDataType, firstDataType,
+		contents = s.contents,
+		dataTypes = s.dataTypes;
+
+	// Remove auto dataType and get content-type in the process
+	while ( dataTypes[ 0 ] === "*" ) {
+		dataTypes.shift();
+		if ( ct === undefined ) {
+			ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
+		}
+	}
+
+	// Check if we're dealing with a known content-type
+	if ( ct ) {
+		for ( type in contents ) {
+			if ( contents[ type ] && contents[ type ].test( ct ) ) {
+				dataTypes.unshift( type );
+				break;
+			}
+		}
+	}
+
+	// Check to see if we have a response for the expected dataType
+	if ( dataTypes[ 0 ] in responses ) {
+		finalDataType = dataTypes[ 0 ];
+	} else {
+
+		// Try convertible dataTypes
+		for ( type in responses ) {
+			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
+				finalDataType = type;
+				break;
+			}
+			if ( !firstDataType ) {
+				firstDataType = type;
+			}
+		}
+
+		// Or just use first one
+		finalDataType = finalDataType || firstDataType;
+	}
+
+	// If we found a dataType
+	// We add the dataType to the list if needed
+	// and return the corresponding response
+	if ( finalDataType ) {
+		if ( finalDataType !== dataTypes[ 0 ] ) {
+			dataTypes.unshift( finalDataType );
+		}
+		return responses[ finalDataType ];
+	}
+}
+
+/* Chain conversions given the request and the original response
+ * Also sets the responseXXX fields on the jqXHR instance
+ */
+function ajaxConvert( s, response, jqXHR, isSuccess ) {
+	var conv2, current, conv, tmp, prev,
+		converters = {},
+
+		// Work with a copy of dataTypes in case we need to modify it for conversion
+		dataTypes = s.dataTypes.slice();
+
+	// Create converters map with lowercased keys
+	if ( dataTypes[ 1 ] ) {
+		for ( conv in s.converters ) {
+			converters[ conv.toLowerCase() ] = s.converters[ conv ];
+		}
+	}
+
+	current = dataTypes.shift();
+
+	// Convert to each sequential dataType
+	while ( current ) {
+
+		if ( s.responseFields[ current ] ) {
+			jqXHR[ s.responseFields[ current ] ] = response;
+		}
+
+		// Apply the dataFilter if provided
+		if ( !prev && isSuccess && s.dataFilter ) {
+			response = s.dataFilter( response, s.dataType );
+		}
+
+		prev = current;
+		current = dataTypes.shift();
+
+		if ( current ) {
+
+			// There's only work to do if current dataType is non-auto
+			if ( current === "*" ) {
+
+				current = prev;
+
+			// Convert response if prev dataType is non-auto and differs from current
+			} else if ( prev !== "*" && prev !== current ) {
+
+				// Seek a direct converter
+				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
+
+				// If none found, seek a pair
+				if ( !conv ) {
+					for ( conv2 in converters ) {
+
+						// If conv2 outputs current
+						tmp = conv2.split( " " );
+						if ( tmp[ 1 ] === current ) {
+
+							// If prev can be converted to accepted input
+							conv = converters[ prev + " " + tmp[ 0 ] ] ||
+								converters[ "* " + tmp[ 0 ] ];
+							if ( conv ) {
+
+								// Condense equivalence converters
+								if ( conv === true ) {
+									conv = converters[ conv2 ];
+
+								// Otherwise, insert the intermediate dataType
+								} else if ( converters[ conv2 ] !== true ) {
+									current = tmp[ 0 ];
+									dataTypes.unshift( tmp[ 1 ] );
+								}
+								break;
+							}
+						}
+					}
+				}
+
+				// Apply converter (if not an equivalence)
+				if ( conv !== true ) {
+
+					// Unless errors are allowed to bubble, catch and return them
+					if ( conv && s.throws ) {
+						response = conv( response );
+					} else {
+						try {
+							response = conv( response );
+						} catch ( e ) {
+							return {
+								state: "parsererror",
+								error: conv ? e : "No conversion from " + prev + " to " + current
+							};
+						}
+					}
+				}
+			}
+		}
+	}
+
+	return { state: "success", data: response };
+}
+
+jQuery.extend( {
+
+	// Counter for holding the number of active queries
+	active: 0,
+
+	// Last-Modified header cache for next request
+	lastModified: {},
+	etag: {},
+
+	ajaxSettings: {
+		url: location.href,
+		type: "GET",
+		isLocal: rlocalProtocol.test( location.protocol ),
+		global: true,
+		processData: true,
+		async: true,
+		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+
+		/*
+		timeout: 0,
+		data: null,
+		dataType: null,
+		username: null,
+		password: null,
+		cache: null,
+		throws: false,
+		traditional: false,
+		headers: {},
+		*/
 
-                        if (r.hoverData.which === 3) {
-                            var cxtEvt = {
-                                originalEvent: e,
-                                type: 'cxttapend',
-                                position: {
-                                    x: pos[0],
-                                    y: pos[1]
-                                }
-                            };
-
-                            if (down) {
-                                down.emit(cxtEvt);
-                            } else {
-                                cy.emit(cxtEvt);
-                            }
+		accepts: {
+			"*": allTypes,
+			text: "text/plain",
+			html: "text/html",
+			xml: "application/xml, text/xml",
+			json: "application/json, text/javascript"
+		},
 
-                            if (!r.hoverData.cxtDragged) {
-                                var cxtTap = {
-                                    originalEvent: e,
-                                    type: 'cxttap',
-                                    position: {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    }
-                                };
-
-                                if (down) {
-                                    down.emit(cxtTap);
-                                } else {
-                                    cy.emit(cxtTap);
-                                }
-                            }
+		contents: {
+			xml: /\bxml\b/,
+			html: /\bhtml/,
+			json: /\bjson\b/
+		},
 
-                            r.hoverData.cxtDragged = false;
-                            r.hoverData.which = null;
-                        } else if (r.hoverData.which === 1) {
-                            triggerEvents(near, ['mouseup', 'tapend', 'vmouseup'], e, {
-                                x: pos[0],
-                                y: pos[1]
-                            });
-
-                            if (!r.dragData.didDrag // didn't move a node around
-                                && !r.hoverData.dragged // didn't pan
-                                && !r.hoverData.selecting // not box selection
-                                && !r.hoverData.isOverThresholdDrag // didn't move too much
-                            ) {
-                                triggerEvents(down, ['click', 'tap', 'vclick'], e, {
-                                    x: pos[0],
-                                    y: pos[1]
-                                });
-                            } // Deselect all elements if nothing is currently under the mouse cursor and we aren't dragging something
-
-
-                            if (down == null && // not mousedown on node
-                                !r.dragData.didDrag // didn't move the node around
-                                && !r.hoverData.selecting // not box selection
-                                && !r.hoverData.dragged // didn't pan
-                                && !isMultSelKeyDown(e)) {
-                                cy.$(isSelected).unselect(['tapunselect']);
-
-                                if (draggedElements.length > 0) {
-                                    r.redrawHint('eles', true);
-                                }
-
-                                r.dragData.possibleDragElements = draggedElements = cy.collection();
-                            } // Single selection
-
-
-                            if (near == down && !r.dragData.didDrag && !r.hoverData.selecting) {
-                                if (near != null && near._private.selectable) {
-                                    if (r.hoverData.dragging) ; else if (cy.selectionType() === 'additive' || multSelKeyDown) {
-                                        if (near.selected()) {
-                                            near.unselect(['tapunselect']);
-                                        } else {
-                                            near.select(['tapselect']);
-                                        }
-                                    } else {
-                                        if (!multSelKeyDown) {
-                                            cy.$(isSelected).unmerge(near).unselect(['tapunselect']);
-                                            near.select(['tapselect']);
-                                        }
-                                    }
-
-                                    r.redrawHint('eles', true);
-                                }
-                            }
+		responseFields: {
+			xml: "responseXML",
+			text: "responseText",
+			json: "responseJSON"
+		},
 
-                            if (r.hoverData.selecting) {
-                                var box = cy.collection(r.getAllInBox(select[0], select[1], select[2], select[3]));
-                                r.redrawHint('select', true);
+		// Data converters
+		// Keys separate source (or catchall "*") and destination types with a single space
+		converters: {
 
-                                if (box.length > 0) {
-                                    r.redrawHint('eles', true);
-                                }
+			// Convert anything to text
+			"* text": String,
 
-                                cy.emit({
-                                    type: 'boxend',
-                                    originalEvent: e,
-                                    position: {
-                                        x: pos[0],
-                                        y: pos[1]
-                                    }
-                                });
+			// Text to html (true = no transformation)
+			"text html": true,
 
-                                var eleWouldBeSelected = function eleWouldBeSelected(ele) {
-                                    return ele.selectable() && !ele.selected();
-                                };
+			// Evaluate text as a json expression
+			"text json": JSON.parse,
 
-                                if (cy.selectionType() === 'additive') {
-                                    box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
-                                } else {
-                                    if (!multSelKeyDown) {
-                                        cy.$(isSelected).unmerge(box).unselect();
-                                    }
+			// Parse text as xml
+			"text xml": jQuery.parseXML
+		},
 
-                                    box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
-                                } // always need redraw in case eles unselectable
+		// For options that shouldn't be deep extended:
+		// you can add your own custom options here if
+		// and when you create one that shouldn't be
+		// deep extended (see ajaxExtend)
+		flatOptions: {
+			url: true,
+			context: true
+		}
+	},
+
+	// Creates a full fledged settings object into target
+	// with both ajaxSettings and settings fields.
+	// If target is omitted, writes into ajaxSettings.
+	ajaxSetup: function( target, settings ) {
+		return settings ?
+
+			// Building a settings object
+			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
+
+			// Extending ajaxSettings
+			ajaxExtend( jQuery.ajaxSettings, target );
+	},
+
+	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+	ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+	// Main method
+	ajax: function( url, options ) {
+
+		// If url is an object, simulate pre-1.5 signature
+		if ( typeof url === "object" ) {
+			options = url;
+			url = undefined;
+		}
+
+		// Force options to be an object
+		options = options || {};
+
+		var transport,
+
+			// URL without anti-cache param
+			cacheURL,
+
+			// Response headers
+			responseHeadersString,
+			responseHeaders,
+
+			// timeout handle
+			timeoutTimer,
+
+			// Url cleanup var
+			urlAnchor,
+
+			// Request state (becomes false upon send and true upon completion)
+			completed,
+
+			// To know if global events are to be dispatched
+			fireGlobals,
+
+			// Loop variable
+			i,
+
+			// uncached part of the url
+			uncached,
+
+			// Create the final options object
+			s = jQuery.ajaxSetup( {}, options ),
+
+			// Callbacks context
+			callbackContext = s.context || s,
+
+			// Context for global events is callbackContext if it is a DOM node or jQuery collection
+			globalEventContext = s.context &&
+				( callbackContext.nodeType || callbackContext.jquery ) ?
+					jQuery( callbackContext ) :
+					jQuery.event,
+
+			// Deferreds
+			deferred = jQuery.Deferred(),
+			completeDeferred = jQuery.Callbacks( "once memory" ),
+
+			// Status-dependent callbacks
+			statusCode = s.statusCode || {},
+
+			// Headers (they are sent all at once)
+			requestHeaders = {},
+			requestHeadersNames = {},
+
+			// Default abort message
+			strAbort = "canceled",
+
+			// Fake xhr
+			jqXHR = {
+				readyState: 0,
+
+				// Builds headers hashtable if needed
+				getResponseHeader: function( key ) {
+					var match;
+					if ( completed ) {
+						if ( !responseHeaders ) {
+							responseHeaders = {};
+							while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
+								responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
+									( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
+										.concat( match[ 2 ] );
+							}
+						}
+						match = responseHeaders[ key.toLowerCase() + " " ];
+					}
+					return match == null ? null : match.join( ", " );
+				},
+
+				// Raw string
+				getAllResponseHeaders: function() {
+					return completed ? responseHeadersString : null;
+				},
+
+				// Caches the header
+				setRequestHeader: function( name, value ) {
+					if ( completed == null ) {
+						name = requestHeadersNames[ name.toLowerCase() ] =
+							requestHeadersNames[ name.toLowerCase() ] || name;
+						requestHeaders[ name ] = value;
+					}
+					return this;
+				},
+
+				// Overrides response content-type header
+				overrideMimeType: function( type ) {
+					if ( completed == null ) {
+						s.mimeType = type;
+					}
+					return this;
+				},
+
+				// Status-dependent callbacks
+				statusCode: function( map ) {
+					var code;
+					if ( map ) {
+						if ( completed ) {
+
+							// Execute the appropriate callbacks
+							jqXHR.always( map[ jqXHR.status ] );
+						} else {
+
+							// Lazy-add the new callbacks in a way that preserves old ones
+							for ( code in map ) {
+								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
+							}
+						}
+					}
+					return this;
+				},
+
+				// Cancel the request
+				abort: function( statusText ) {
+					var finalText = statusText || strAbort;
+					if ( transport ) {
+						transport.abort( finalText );
+					}
+					done( 0, finalText );
+					return this;
+				}
+			};
+
+		// Attach deferreds
+		deferred.promise( jqXHR );
+
+		// Add protocol if not provided (prefilters might expect it)
+		// Handle falsy url in the settings object (#10093: consistency with old signature)
+		// We also use the url parameter if available
+		s.url = ( ( url || s.url || location.href ) + "" )
+			.replace( rprotocol, location.protocol + "//" );
+
+		// Alias method option to type as per ticket #12004
+		s.type = options.method || options.type || s.method || s.type;
+
+		// Extract dataTypes list
+		s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
+
+		// A cross-domain request is in order when the origin doesn't match the current origin.
+		if ( s.crossDomain == null ) {
+			urlAnchor = document.createElement( "a" );
+
+			// Support: IE <=8 - 11, Edge 12 - 15
+			// IE throws exception on accessing the href property if url is malformed,
+			// e.g. http://example.com:80x/
+			try {
+				urlAnchor.href = s.url;
+
+				// Support: IE <=8 - 11 only
+				// Anchor's host property isn't correctly set when s.url is relative
+				urlAnchor.href = urlAnchor.href;
+				s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
+					urlAnchor.protocol + "//" + urlAnchor.host;
+			} catch ( e ) {
+
+				// If there is an error parsing the URL, assume it is crossDomain,
+				// it can be rejected by the transport if it is invalid
+				s.crossDomain = true;
+			}
+		}
+
+		// Convert data if not already a string
+		if ( s.data && s.processData && typeof s.data !== "string" ) {
+			s.data = jQuery.param( s.data, s.traditional );
+		}
+
+		// Apply prefilters
+		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+		// If request was aborted inside a prefilter, stop there
+		if ( completed ) {
+			return jqXHR;
+		}
+
+		// We can fire global events as of now if asked to
+		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
+		fireGlobals = jQuery.event && s.global;
+
+		// Watch for a new set of requests
+		if ( fireGlobals && jQuery.active++ === 0 ) {
+			jQuery.event.trigger( "ajaxStart" );
+		}
+
+		// Uppercase the type
+		s.type = s.type.toUpperCase();
+
+		// Determine if request has content
+		s.hasContent = !rnoContent.test( s.type );
+
+		// Save the URL in case we're toying with the If-Modified-Since
+		// and/or If-None-Match header later on
+		// Remove hash to simplify url manipulation
+		cacheURL = s.url.replace( rhash, "" );
+
+		// More options handling for requests with no content
+		if ( !s.hasContent ) {
+
+			// Remember the hash so we can put it back
+			uncached = s.url.slice( cacheURL.length );
+
+			// If data is available and should be processed, append data to url
+			if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
+				cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
+
+				// #9682: remove data so that it's not used in an eventual retry
+				delete s.data;
+			}
+
+			// Add or update anti-cache param if needed
+			if ( s.cache === false ) {
+				cacheURL = cacheURL.replace( rantiCache, "$1" );
+				uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) +
+					uncached;
+			}
+
+			// Put hash and anti-cache on the URL that will be requested (gh-1732)
+			s.url = cacheURL + uncached;
+
+		// Change '%20' to '+' if this is encoded form body content (gh-2658)
+		} else if ( s.data && s.processData &&
+			( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
+			s.data = s.data.replace( r20, "+" );
+		}
+
+		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+		if ( s.ifModified ) {
+			if ( jQuery.lastModified[ cacheURL ] ) {
+				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
+			}
+			if ( jQuery.etag[ cacheURL ] ) {
+				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
+			}
+		}
+
+		// Set the correct header, if data is being sent
+		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+			jqXHR.setRequestHeader( "Content-Type", s.contentType );
+		}
+
+		// Set the Accepts header for the server, depending on the dataType
+		jqXHR.setRequestHeader(
+			"Accept",
+			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
+				s.accepts[ s.dataTypes[ 0 ] ] +
+					( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+				s.accepts[ "*" ]
+		);
+
+		// Check for headers option
+		for ( i in s.headers ) {
+			jqXHR.setRequestHeader( i, s.headers[ i ] );
+		}
+
+		// Allow custom headers/mimetypes and early abort
+		if ( s.beforeSend &&
+			( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
+
+			// Abort if not done already and return
+			return jqXHR.abort();
+		}
+
+		// Aborting is no longer a cancellation
+		strAbort = "abort";
+
+		// Install callbacks on deferreds
+		completeDeferred.add( s.complete );
+		jqXHR.done( s.success );
+		jqXHR.fail( s.error );
+
+		// Get transport
+		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+		// If no transport, we auto-abort
+		if ( !transport ) {
+			done( -1, "No Transport" );
+		} else {
+			jqXHR.readyState = 1;
+
+			// Send global event
+			if ( fireGlobals ) {
+				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+			}
+
+			// If request was aborted inside ajaxSend, stop there
+			if ( completed ) {
+				return jqXHR;
+			}
+
+			// Timeout
+			if ( s.async && s.timeout > 0 ) {
+				timeoutTimer = window.setTimeout( function() {
+					jqXHR.abort( "timeout" );
+				}, s.timeout );
+			}
+
+			try {
+				completed = false;
+				transport.send( requestHeaders, done );
+			} catch ( e ) {
+
+				// Rethrow post-completion exceptions
+				if ( completed ) {
+					throw e;
+				}
+
+				// Propagate others as results
+				done( -1, e );
+			}
+		}
+
+		// Callback for when everything is done
+		function done( status, nativeStatusText, responses, headers ) {
+			var isSuccess, success, error, response, modified,
+				statusText = nativeStatusText;
+
+			// Ignore repeat invocations
+			if ( completed ) {
+				return;
+			}
+
+			completed = true;
+
+			// Clear timeout if it exists
+			if ( timeoutTimer ) {
+				window.clearTimeout( timeoutTimer );
+			}
+
+			// Dereference transport for early garbage collection
+			// (no matter how long the jqXHR object will be used)
+			transport = undefined;
+
+			// Cache response headers
+			responseHeadersString = headers || "";
+
+			// Set readyState
+			jqXHR.readyState = status > 0 ? 4 : 0;
+
+			// Determine if successful
+			isSuccess = status >= 200 && status < 300 || status === 304;
+
+			// Get response data
+			if ( responses ) {
+				response = ajaxHandleResponses( s, jqXHR, responses );
+			}
+
+			// Use a noop converter for missing script
+			if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) {
+				s.converters[ "text script" ] = function() {};
+			}
+
+			// Convert no matter what (that way responseXXX fields are always set)
+			response = ajaxConvert( s, response, jqXHR, isSuccess );
+
+			// If successful, handle type chaining
+			if ( isSuccess ) {
+
+				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+				if ( s.ifModified ) {
+					modified = jqXHR.getResponseHeader( "Last-Modified" );
+					if ( modified ) {
+						jQuery.lastModified[ cacheURL ] = modified;
+					}
+					modified = jqXHR.getResponseHeader( "etag" );
+					if ( modified ) {
+						jQuery.etag[ cacheURL ] = modified;
+					}
+				}
+
+				// if no content
+				if ( status === 204 || s.type === "HEAD" ) {
+					statusText = "nocontent";
+
+				// if not modified
+				} else if ( status === 304 ) {
+					statusText = "notmodified";
+
+				// If we have data, let's convert it
+				} else {
+					statusText = response.state;
+					success = response.data;
+					error = response.error;
+					isSuccess = !error;
+				}
+			} else {
+
+				// Extract error from statusText and normalize for non-aborts
+				error = statusText;
+				if ( status || !statusText ) {
+					statusText = "error";
+					if ( status < 0 ) {
+						status = 0;
+					}
+				}
+			}
+
+			// Set data for the fake xhr object
+			jqXHR.status = status;
+			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
+
+			// Success/Error
+			if ( isSuccess ) {
+				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+			} else {
+				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+			}
+
+			// Status-dependent callbacks
+			jqXHR.statusCode( statusCode );
+			statusCode = undefined;
+
+			if ( fireGlobals ) {
+				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
+					[ jqXHR, s, isSuccess ? success : error ] );
+			}
+
+			// Complete
+			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+			if ( fireGlobals ) {
+				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+
+				// Handle the global AJAX counter
+				if ( !( --jQuery.active ) ) {
+					jQuery.event.trigger( "ajaxStop" );
+				}
+			}
+		}
+
+		return jqXHR;
+	},
+
+	getJSON: function( url, data, callback ) {
+		return jQuery.get( url, data, callback, "json" );
+	},
+
+	getScript: function( url, callback ) {
+		return jQuery.get( url, undefined, callback, "script" );
+	}
+} );
+
+jQuery.each( [ "get", "post" ], function( _i, method ) {
+	jQuery[ method ] = function( url, data, callback, type ) {
+
+		// Shift arguments if data argument was omitted
+		if ( isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = undefined;
+		}
+
+		// The url can be an options object (which then must have .url)
+		return jQuery.ajax( jQuery.extend( {
+			url: url,
+			type: method,
+			dataType: type,
+			data: data,
+			success: callback
+		}, jQuery.isPlainObject( url ) && url ) );
+	};
+} );
+
+jQuery.ajaxPrefilter( function( s ) {
+	var i;
+	for ( i in s.headers ) {
+		if ( i.toLowerCase() === "content-type" ) {
+			s.contentType = s.headers[ i ] || "";
+		}
+	}
+} );
+
+
+jQuery._evalUrl = function( url, options, doc ) {
+	return jQuery.ajax( {
+		url: url,
+
+		// Make this explicit, since user can override this through ajaxSetup (#11264)
+		type: "GET",
+		dataType: "script",
+		cache: true,
+		async: false,
+		global: false,
+
+		// Only evaluate the response if it is successful (gh-4126)
+		// dataFilter is not invoked for failure responses, so using it instead
+		// of the default converter is kludgy but it works.
+		converters: {
+			"text script": function() {}
+		},
+		dataFilter: function( response ) {
+			jQuery.globalEval( response, options, doc );
+		}
+	} );
+};
+
+
+jQuery.fn.extend( {
+	wrapAll: function( html ) {
+		var wrap;
+
+		if ( this[ 0 ] ) {
+			if ( isFunction( html ) ) {
+				html = html.call( this[ 0 ] );
+			}
+
+			// The elements to wrap the target around
+			wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
+
+			if ( this[ 0 ].parentNode ) {
+				wrap.insertBefore( this[ 0 ] );
+			}
+
+			wrap.map( function() {
+				var elem = this;
+
+				while ( elem.firstElementChild ) {
+					elem = elem.firstElementChild;
+				}
+
+				return elem;
+			} ).append( this );
+		}
+
+		return this;
+	},
+
+	wrapInner: function( html ) {
+		if ( isFunction( html ) ) {
+			return this.each( function( i ) {
+				jQuery( this ).wrapInner( html.call( this, i ) );
+			} );
+		}
+
+		return this.each( function() {
+			var self = jQuery( this ),
+				contents = self.contents();
+
+			if ( contents.length ) {
+				contents.wrapAll( html );
+
+			} else {
+				self.append( html );
+			}
+		} );
+	},
+
+	wrap: function( html ) {
+		var htmlIsFunction = isFunction( html );
+
+		return this.each( function( i ) {
+			jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
+		} );
+	},
+
+	unwrap: function( selector ) {
+		this.parent( selector ).not( "body" ).each( function() {
+			jQuery( this ).replaceWith( this.childNodes );
+		} );
+		return this;
+	}
+} );
+
+
+jQuery.expr.pseudos.hidden = function( elem ) {
+	return !jQuery.expr.pseudos.visible( elem );
+};
+jQuery.expr.pseudos.visible = function( elem ) {
+	return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
+};
+
+
+
+
+jQuery.ajaxSettings.xhr = function() {
+	try {
+		return new window.XMLHttpRequest();
+	} catch ( e ) {}
+};
+
+var xhrSuccessStatus = {
+
+		// File protocol always yields status code 0, assume 200
+		0: 200,
+
+		// Support: IE <=9 only
+		// #1450: sometimes IE returns 1223 when it should be 204
+		1223: 204
+	},
+	xhrSupported = jQuery.ajaxSettings.xhr();
+
+support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
+support.ajax = xhrSupported = !!xhrSupported;
+
+jQuery.ajaxTransport( function( options ) {
+	var callback, errorCallback;
+
+	// Cross domain only allowed if supported through XMLHttpRequest
+	if ( support.cors || xhrSupported && !options.crossDomain ) {
+		return {
+			send: function( headers, complete ) {
+				var i,
+					xhr = options.xhr();
+
+				xhr.open(
+					options.type,
+					options.url,
+					options.async,
+					options.username,
+					options.password
+				);
+
+				// Apply custom fields if provided
+				if ( options.xhrFields ) {
+					for ( i in options.xhrFields ) {
+						xhr[ i ] = options.xhrFields[ i ];
+					}
+				}
+
+				// Override mime type if needed
+				if ( options.mimeType && xhr.overrideMimeType ) {
+					xhr.overrideMimeType( options.mimeType );
+				}
+
+				// X-Requested-With header
+				// For cross-domain requests, seeing as conditions for a preflight are
+				// akin to a jigsaw puzzle, we simply never set it to be sure.
+				// (it can always be set on a per-request basis or even using ajaxSetup)
+				// For same-domain requests, won't change header if already provided.
+				if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
+					headers[ "X-Requested-With" ] = "XMLHttpRequest";
+				}
+
+				// Set headers
+				for ( i in headers ) {
+					xhr.setRequestHeader( i, headers[ i ] );
+				}
+
+				// Callback
+				callback = function( type ) {
+					return function() {
+						if ( callback ) {
+							callback = errorCallback = xhr.onload =
+								xhr.onerror = xhr.onabort = xhr.ontimeout =
+									xhr.onreadystatechange = null;
+
+							if ( type === "abort" ) {
+								xhr.abort();
+							} else if ( type === "error" ) {
+
+								// Support: IE <=9 only
+								// On a manual native abort, IE9 throws
+								// errors on any property access that is not readyState
+								if ( typeof xhr.status !== "number" ) {
+									complete( 0, "error" );
+								} else {
+									complete(
+
+										// File: protocol always yields status 0; see #8605, #14207
+										xhr.status,
+										xhr.statusText
+									);
+								}
+							} else {
+								complete(
+									xhrSuccessStatus[ xhr.status ] || xhr.status,
+									xhr.statusText,
+
+									// Support: IE <=9 only
+									// IE9 has no XHR2 but throws on binary (trac-11426)
+									// For XHR2 non-text, let the caller handle it (gh-2498)
+									( xhr.responseType || "text" ) !== "text"  ||
+									typeof xhr.responseText !== "string" ?
+										{ binary: xhr.response } :
+										{ text: xhr.responseText },
+									xhr.getAllResponseHeaders()
+								);
+							}
+						}
+					};
+				};
+
+				// Listen to events
+				xhr.onload = callback();
+				errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
+
+				// Support: IE 9 only
+				// Use onreadystatechange to replace onabort
+				// to handle uncaught aborts
+				if ( xhr.onabort !== undefined ) {
+					xhr.onabort = errorCallback;
+				} else {
+					xhr.onreadystatechange = function() {
+
+						// Check readyState before timeout as it changes
+						if ( xhr.readyState === 4 ) {
+
+							// Allow onerror to be called first,
+							// but that will not handle a native abort
+							// Also, save errorCallback to a variable
+							// as xhr.onerror cannot be accessed
+							window.setTimeout( function() {
+								if ( callback ) {
+									errorCallback();
+								}
+							} );
+						}
+					};
+				}
+
+				// Create the abort callback
+				callback = callback( "abort" );
+
+				try {
+
+					// Do send the request (this may raise an exception)
+					xhr.send( options.hasContent && options.data || null );
+				} catch ( e ) {
+
+					// #14683: Only rethrow if this hasn't been notified as an error yet
+					if ( callback ) {
+						throw e;
+					}
+				}
+			},
+
+			abort: function() {
+				if ( callback ) {
+					callback();
+				}
+			}
+		};
+	}
+} );
 
 
-                                r.redraw();
-                            } // Cancel drag pan
 
 
-                            if (r.hoverData.dragging) {
-                                r.hoverData.dragging = false;
-                                r.redrawHint('select', true);
-                                r.redrawHint('eles', true);
-                                r.redraw();
-                            }
+// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
+jQuery.ajaxPrefilter( function( s ) {
+	if ( s.crossDomain ) {
+		s.contents.script = false;
+	}
+} );
 
-                            if (!select[4]) {
-                                r.redrawHint('drag', true);
-                                r.redrawHint('eles', true);
-                                var downWasGrabbed = down && down.grabbed();
-                                freeDraggedElements(draggedElements);
-
-                                if (downWasGrabbed) {
-                                    down.emit('freeon');
-                                    draggedElements.emit('free');
-
-                                    if (r.dragData.didDrag) {
-                                        down.emit('dragfreeon');
-                                        draggedElements.emit('dragfree');
-                                    }
-                                }
-                            }
-                        } // else not right mouse
-
-
-                        select[4] = 0;
-                        r.hoverData.down = null;
-                        r.hoverData.cxtStarted = false;
-                        r.hoverData.draggingEles = false;
-                        r.hoverData.selecting = false;
-                        r.hoverData.isOverThresholdDrag = false;
-                        r.dragData.didDrag = false;
-                        r.hoverData.dragged = false;
-                        r.hoverData.dragDelta = [];
-                        r.hoverData.mdownPos = null;
-                        r.hoverData.mdownGPos = null;
-                    }, false);
-
-                    var wheelHandler = function wheelHandler(e) {
-                        if (r.scrollingPage) {
-                            return;
-                        } // while scrolling, ignore wheel-to-zoom
-
-
-                        var cy = r.cy;
-                        var zoom = cy.zoom();
-                        var pan = cy.pan();
-                        var pos = r.projectIntoViewport(e.clientX, e.clientY);
-                        var rpos = [pos[0] * zoom + pan.x, pos[1] * zoom + pan.y];
-
-                        if (r.hoverData.draggingEles || r.hoverData.dragging || r.hoverData.cxtStarted || inBoxSelection()) {
-                            // if pan dragging or cxt dragging, wheel movements make no zoom
-                            e.preventDefault();
-                            return;
-                        }
+// Install script dataType
+jQuery.ajaxSetup( {
+	accepts: {
+		script: "text/javascript, application/javascript, " +
+			"application/ecmascript, application/x-ecmascript"
+	},
+	contents: {
+		script: /\b(?:java|ecma)script\b/
+	},
+	converters: {
+		"text script": function( text ) {
+			jQuery.globalEval( text );
+			return text;
+		}
+	}
+} );
 
-                        if (cy.panningEnabled() && cy.userPanningEnabled() && cy.zoomingEnabled() && cy.userZoomingEnabled()) {
-                            e.preventDefault();
-                            r.data.wheelZooming = true;
-                            clearTimeout(r.data.wheelTimeout);
-                            r.data.wheelTimeout = setTimeout(function () {
-                                r.data.wheelZooming = false;
-                                r.redrawHint('eles', true);
-                                r.redraw();
-                            }, 150);
-                            var diff;
-
-                            if (e.deltaY != null) {
-                                diff = e.deltaY / -250;
-                            } else if (e.wheelDeltaY != null) {
-                                diff = e.wheelDeltaY / 1000;
-                            } else {
-                                diff = e.wheelDelta / 1000;
-                            }
+// Handle cache's special case and crossDomain
+jQuery.ajaxPrefilter( "script", function( s ) {
+	if ( s.cache === undefined ) {
+		s.cache = false;
+	}
+	if ( s.crossDomain ) {
+		s.type = "GET";
+	}
+} );
 
-                            diff = diff * r.wheelSensitivity;
-                            var needsWheelFix = e.deltaMode === 1;
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function( s ) {
+
+	// This transport only deals with cross domain or forced-by-attrs requests
+	if ( s.crossDomain || s.scriptAttrs ) {
+		var script, callback;
+		return {
+			send: function( _, complete ) {
+				script = jQuery( "<script>" )
+					.attr( s.scriptAttrs || {} )
+					.prop( { charset: s.scriptCharset, src: s.url } )
+					.on( "load error", callback = function( evt ) {
+						script.remove();
+						callback = null;
+						if ( evt ) {
+							complete( evt.type === "error" ? 404 : 200, evt.type );
+						}
+					} );
+
+				// Use native DOM manipulation to avoid our domManip AJAX trickery
+				document.head.appendChild( script[ 0 ] );
+			},
+			abort: function() {
+				if ( callback ) {
+					callback();
+				}
+			}
+		};
+	}
+} );
+
+
+
+
+var oldCallbacks = [],
+	rjsonp = /(=)\?(?=&|$)|\?\?/;
 
-                            if (needsWheelFix) {
-                                // fixes slow wheel events on ff/linux and ff/windows
-                                diff *= 33;
-                            }
+// Default jsonp settings
+jQuery.ajaxSetup( {
+	jsonp: "callback",
+	jsonpCallback: function() {
+		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce.guid++ ) );
+		this[ callback ] = true;
+		return callback;
+	}
+} );
 
-                            var newZoom = cy.zoom() * Math.pow(10, diff);
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
 
-                            if (e.type === 'gesturechange') {
-                                newZoom = r.gestureStartZoom * e.scale;
-                            }
+	var callbackName, overwritten, responseContainer,
+		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
+			"url" :
+			typeof s.data === "string" &&
+				( s.contentType || "" )
+					.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
+				rjsonp.test( s.data ) && "data"
+		);
 
-                            cy.zoom({
-                                level: newZoom,
-                                renderedPosition: {
-                                    x: rpos[0],
-                                    y: rpos[1]
-                                }
-                            });
-                        }
-                    }; // Functions to help with whether mouse wheel should trigger zooming
-                    // --
-
-
-                    r.registerBinding(r.container, 'wheel', wheelHandler, true); // disable nonstandard wheel events
-                    // r.registerBinding(r.container, 'mousewheel', wheelHandler, true);
-                    // r.registerBinding(r.container, 'DOMMouseScroll', wheelHandler, true);
-                    // r.registerBinding(r.container, 'MozMousePixelScroll', wheelHandler, true); // older firefox
-
-                    r.registerBinding(window, 'scroll', function scrollHandler(e) {
-                        // eslint-disable-line no-unused-vars
-                        r.scrollingPage = true;
-                        clearTimeout(r.scrollingPageTimeout);
-                        r.scrollingPageTimeout = setTimeout(function () {
-                            r.scrollingPage = false;
-                        }, 250);
-                    }, true); // desktop safari pinch to zoom start
-
-                    r.registerBinding(r.container, 'gesturestart', function gestureStartHandler(e) {
-                        r.gestureStartZoom = r.cy.zoom();
-
-                        if (!r.hasTouchStarted) {
-                            // don't affect touch devices like iphone
-                            e.preventDefault();
-                        }
-                    }, true);
-                    r.registerBinding(r.container, 'gesturechange', function (e) {
-                        if (!r.hasTouchStarted) {
-                            // don't affect touch devices like iphone
-                            wheelHandler(e);
-                        }
-                    }, true); // Functions to help with handling mouseout/mouseover on the Cytoscape container
-                    // Handle mouseout on Cytoscape container
-
-                    r.registerBinding(r.container, 'mouseout', function mouseOutHandler(e) {
-                        var pos = r.projectIntoViewport(e.clientX, e.clientY);
-                        r.cy.emit({
-                            originalEvent: e,
-                            type: 'mouseout',
-                            position: {
-                                x: pos[0],
-                                y: pos[1]
-                            }
-                        });
-                    }, false);
-                    r.registerBinding(r.container, 'mouseover', function mouseOverHandler(e) {
-                        var pos = r.projectIntoViewport(e.clientX, e.clientY);
-                        r.cy.emit({
-                            originalEvent: e,
-                            type: 'mouseover',
-                            position: {
-                                x: pos[0],
-                                y: pos[1]
-                            }
-                        });
-                    }, false);
-                    var f1x1, f1y1, f2x1, f2y1; // starting points for pinch-to-zoom
+	// Handle iff the expected data type is "jsonp" or we have a parameter to set
+	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
 
-                    var distance1, distance1Sq; // initial distance between finger 1 and finger 2 for pinch-to-zoom
+		// Get callback name, remembering preexisting value associated with it
+		callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
+			s.jsonpCallback() :
+			s.jsonpCallback;
 
-                    var center1, modelCenter1; // center point on start pinch to zoom
+		// Insert callback into url or form data
+		if ( jsonProp ) {
+			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
+		} else if ( s.jsonp !== false ) {
+			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
+		}
 
-                    var offsetLeft, offsetTop;
-                    var containerWidth, containerHeight;
-                    var twoFingersStartInside;
+		// Use data converter to retrieve json after script execution
+		s.converters[ "script json" ] = function() {
+			if ( !responseContainer ) {
+				jQuery.error( callbackName + " was not called" );
+			}
+			return responseContainer[ 0 ];
+		};
 
-                    var distance = function distance(x1, y1, x2, y2) {
-                        return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
-                    };
+		// Force json dataType
+		s.dataTypes[ 0 ] = "json";
 
-                    var distanceSq = function distanceSq(x1, y1, x2, y2) {
-                        return (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1);
-                    };
+		// Install callback
+		overwritten = window[ callbackName ];
+		window[ callbackName ] = function() {
+			responseContainer = arguments;
+		};
 
-                    var touchstartHandler;
-                    r.registerBinding(r.container, 'touchstart', touchstartHandler = function touchstartHandler(e) {
-                        r.hasTouchStarted = true;
+		// Clean-up function (fires after converters)
+		jqXHR.always( function() {
 
-                        if (!eventInContainer(e)) {
-                            return;
-                        }
+			// If previous value didn't exist - remove it
+			if ( overwritten === undefined ) {
+				jQuery( window ).removeProp( callbackName );
 
-                        blurActiveDomElement();
-                        r.touchData.capture = true;
-                        r.data.bgActivePosistion = undefined;
-                        var cy = r.cy;
-                        var now = r.touchData.now;
-                        var earlier = r.touchData.earlier;
-
-                        if (e.touches[0]) {
-                            var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
-                            now[0] = pos[0];
-                            now[1] = pos[1];
-                        }
+			// Otherwise restore preexisting value
+			} else {
+				window[ callbackName ] = overwritten;
+			}
 
-                        if (e.touches[1]) {
-                            var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
-                            now[2] = pos[0];
-                            now[3] = pos[1];
-                        }
+			// Save back as free
+			if ( s[ callbackName ] ) {
 
-                        if (e.touches[2]) {
-                            var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
-                            now[4] = pos[0];
-                            now[5] = pos[1];
-                        } // record starting points for pinch-to-zoom
-
-
-                        if (e.touches[1]) {
-                            r.touchData.singleTouchMoved = true;
-                            freeDraggedElements(r.dragData.touchDragEles);
-                            var offsets = r.findContainerClientCoords();
-                            offsetLeft = offsets[0];
-                            offsetTop = offsets[1];
-                            containerWidth = offsets[2];
-                            containerHeight = offsets[3];
-                            f1x1 = e.touches[0].clientX - offsetLeft;
-                            f1y1 = e.touches[0].clientY - offsetTop;
-                            f2x1 = e.touches[1].clientX - offsetLeft;
-                            f2y1 = e.touches[1].clientY - offsetTop;
-                            twoFingersStartInside = 0 <= f1x1 && f1x1 <= containerWidth && 0 <= f2x1 && f2x1 <= containerWidth && 0 <= f1y1 && f1y1 <= containerHeight && 0 <= f2y1 && f2y1 <= containerHeight;
-                            var pan = cy.pan();
-                            var zoom = cy.zoom();
-                            distance1 = distance(f1x1, f1y1, f2x1, f2y1);
-                            distance1Sq = distanceSq(f1x1, f1y1, f2x1, f2y1);
-                            center1 = [(f1x1 + f2x1) / 2, (f1y1 + f2y1) / 2];
-                            modelCenter1 = [(center1[0] - pan.x) / zoom, (center1[1] - pan.y) / zoom]; // consider context tap
-
-                            var cxtDistThreshold = 200;
-                            var cxtDistThresholdSq = cxtDistThreshold * cxtDistThreshold;
-
-                            if (distance1Sq < cxtDistThresholdSq && !e.touches[2]) {
-                                var near1 = r.findNearestElement(now[0], now[1], true, true);
-                                var near2 = r.findNearestElement(now[2], now[3], true, true);
-
-                                if (near1 && near1.isNode()) {
-                                    near1.activate().emit({
-                                        originalEvent: e,
-                                        type: 'cxttapstart',
-                                        position: {
-                                            x: now[0],
-                                            y: now[1]
-                                        }
-                                    });
-                                    r.touchData.start = near1;
-                                } else if (near2 && near2.isNode()) {
-                                    near2.activate().emit({
-                                        originalEvent: e,
-                                        type: 'cxttapstart',
-                                        position: {
-                                            x: now[0],
-                                            y: now[1]
-                                        }
-                                    });
-                                    r.touchData.start = near2;
-                                } else {
-                                    cy.emit({
-                                        originalEvent: e,
-                                        type: 'cxttapstart',
-                                        position: {
-                                            x: now[0],
-                                            y: now[1]
-                                        }
-                                    });
-                                }
-
-                                if (r.touchData.start) {
-                                    r.touchData.start._private.grabbed = false;
-                                }
-
-                                r.touchData.cxt = true;
-                                r.touchData.cxtDragged = false;
-                                r.data.bgActivePosistion = undefined;
-                                r.redraw();
-                                return;
-                            }
-                        }
+				// Make sure that re-using the options doesn't screw things around
+				s.jsonpCallback = originalSettings.jsonpCallback;
 
-                        if (e.touches[2]) {
-                            // ignore
-                            // safari on ios pans the page otherwise (normally you should be able to preventdefault on touchmove...)
-                            if (cy.boxSelectionEnabled()) {
-                                e.preventDefault();
-                            }
-                        } else if (e.touches[1]) ; else if (e.touches[0]) {
-                            var nears = r.findNearestElements(now[0], now[1], true, true);
-                            var near = nears[0];
-
-                            if (near != null) {
-                                near.activate();
-                                r.touchData.start = near;
-                                r.touchData.starts = nears;
-
-                                if (r.nodeIsGrabbable(near)) {
-                                    var draggedEles = r.dragData.touchDragEles = cy.collection();
-                                    var selectedNodes = null;
-                                    r.redrawHint('eles', true);
-                                    r.redrawHint('drag', true);
-
-                                    if (near.selected()) {
-                                        // reset drag elements, since near will be added again
-                                        selectedNodes = cy.$(function (ele) {
-                                            return ele.selected() && r.nodeIsGrabbable(ele);
-                                        });
-                                        addNodesToDrag(selectedNodes, {
-                                            addToList: draggedEles
-                                        });
-                                    } else {
-                                        addNodeToDrag(near, {
-                                            addToList: draggedEles
-                                        });
-                                    }
-
-                                    setGrabTarget(near);
-
-                                    var makeEvent = function makeEvent(type) {
-                                        return {
-                                            originalEvent: e,
-                                            type: type,
-                                            position: {
-                                                x: now[0],
-                                                y: now[1]
-                                            }
-                                        };
-                                    };
-
-                                    near.emit(makeEvent('grabon'));
-
-                                    if (selectedNodes) {
-                                        selectedNodes.forEach(function (n) {
-                                            n.emit(makeEvent('grab'));
-                                        });
-                                    } else {
-                                        near.emit(makeEvent('grab'));
-                                    }
-                                }
-                            }
+				// Save the callback name for future use
+				oldCallbacks.push( callbackName );
+			}
 
-                            triggerEvents(near, ['touchstart', 'tapstart', 'vmousedown'], e, {
-                                x: now[0],
-                                y: now[1]
-                            });
-
-                            if (near == null) {
-                                r.data.bgActivePosistion = {
-                                    x: pos[0],
-                                    y: pos[1]
-                                };
-                                r.redrawHint('select', true);
-                                r.redraw();
-                            } // Tap, taphold
-                            // -----
-
-
-                            r.touchData.singleTouchMoved = false;
-                            r.touchData.singleTouchStartTime = +new Date();
-                            clearTimeout(r.touchData.tapholdTimeout);
-                            r.touchData.tapholdTimeout = setTimeout(function () {
-                                if (r.touchData.singleTouchMoved === false && !r.pinching // if pinching, then taphold unselect shouldn't take effect
-                                    && !r.touchData.selecting // box selection shouldn't allow taphold through
-                                ) {
-                                    triggerEvents(r.touchData.start, ['taphold'], e, {
-                                        x: now[0],
-                                        y: now[1]
-                                    });
-                                }
-                            }, r.tapholdDuration);
-                        }
+			// Call if it was a function and we have a response
+			if ( responseContainer && isFunction( overwritten ) ) {
+				overwritten( responseContainer[ 0 ] );
+			}
 
-                        if (e.touches.length >= 1) {
-                            var sPos = r.touchData.startPosition = [];
+			responseContainer = overwritten = undefined;
+		} );
 
-                            for (var i = 0; i < now.length; i++) {
-                                sPos[i] = earlier[i] = now[i];
-                            }
+		// Delegate to script
+		return "script";
+	}
+} );
 
-                            var touch0 = e.touches[0];
-                            r.touchData.startGPosition = [touch0.clientX, touch0.clientY];
-                        }
-                    }, false);
-                    var touchmoveHandler;
-                    r.registerBinding(window, 'touchmove', touchmoveHandler = function touchmoveHandler(e) {
-                        // eslint-disable-line no-undef
-                        var capture = r.touchData.capture;
-
-                        if (!capture && !eventInContainer(e)) {
-                            return;
-                        }
 
-                        var select = r.selection;
-                        var cy = r.cy;
-                        var now = r.touchData.now;
-                        var earlier = r.touchData.earlier;
-                        var zoom = cy.zoom();
 
-                        if (e.touches[0]) {
-                            var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
-                            now[0] = pos[0];
-                            now[1] = pos[1];
-                        }
 
-                        if (e.touches[1]) {
-                            var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
-                            now[2] = pos[0];
-                            now[3] = pos[1];
-                        }
+// Support: Safari 8 only
+// In Safari 8 documents created via document.implementation.createHTMLDocument
+// collapse sibling forms: the second one becomes a child of the first one.
+// Because of that, this security measure has to be disabled in Safari 8.
+// https://bugs.webkit.org/show_bug.cgi?id=137337
+support.createHTMLDocument = ( function() {
+	var body = document.implementation.createHTMLDocument( "" ).body;
+	body.innerHTML = "<form></form><form></form>";
+	return body.childNodes.length === 2;
+} )();
 
-                        if (e.touches[2]) {
-                            var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
-                            now[4] = pos[0];
-                            now[5] = pos[1];
-                        }
 
-                        var startGPos = r.touchData.startGPosition;
-                        var isOverThresholdDrag;
+// Argument "data" should be string of html
+// context (optional): If specified, the fragment will be created in this context,
+// defaults to document
+// keepScripts (optional): If true, will include scripts passed in the html string
+jQuery.parseHTML = function( data, context, keepScripts ) {
+	if ( typeof data !== "string" ) {
+		return [];
+	}
+	if ( typeof context === "boolean" ) {
+		keepScripts = context;
+		context = false;
+	}
+
+	var base, parsed, scripts;
+
+	if ( !context ) {
+
+		// Stop scripts or inline event handlers from being executed immediately
+		// by using document.implementation
+		if ( support.createHTMLDocument ) {
+			context = document.implementation.createHTMLDocument( "" );
+
+			// Set the base href for the created document
+			// so any parsed elements with URLs
+			// are based on the document's URL (gh-2965)
+			base = context.createElement( "base" );
+			base.href = document.location.href;
+			context.head.appendChild( base );
+		} else {
+			context = document;
+		}
+	}
+
+	parsed = rsingleTag.exec( data );
+	scripts = !keepScripts && [];
+
+	// Single tag
+	if ( parsed ) {
+		return [ context.createElement( parsed[ 1 ] ) ];
+	}
+
+	parsed = buildFragment( [ data ], context, scripts );
+
+	if ( scripts && scripts.length ) {
+		jQuery( scripts ).remove();
+	}
+
+	return jQuery.merge( [], parsed.childNodes );
+};
+
+
+/**
+ * Load a url into a page
+ */
+jQuery.fn.load = function( url, params, callback ) {
+	var selector, type, response,
+		self = this,
+		off = url.indexOf( " " );
 
-                        if (capture && e.touches[0] && startGPos) {
-                            var disp = [];
+	if ( off > -1 ) {
+		selector = stripAndCollapse( url.slice( off ) );
+		url = url.slice( 0, off );
+	}
 
-                            for (var j = 0; j < now.length; j++) {
-                                disp[j] = now[j] - earlier[j];
-                            }
+	// If it's a function
+	if ( isFunction( params ) ) {
+
+		// We assume that it's the callback
+		callback = params;
+		params = undefined;
+
+	// Otherwise, build a param string
+	} else if ( params && typeof params === "object" ) {
+		type = "POST";
+	}
+
+	// If we have elements to modify, make the request
+	if ( self.length > 0 ) {
+		jQuery.ajax( {
+			url: url,
+
+			// If "type" variable is undefined, then "GET" method will be used.
+			// Make value of this field explicit since
+			// user can override it through ajaxSetup method
+			type: type || "GET",
+			dataType: "html",
+			data: params
+		} ).done( function( responseText ) {
+
+			// Save response for use in complete callback
+			response = arguments;
+
+			self.html( selector ?
+
+				// If a selector was specified, locate the right elements in a dummy div
+				// Exclude scripts to avoid IE 'Permission Denied' errors
+				jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
+
+				// Otherwise use the full result
+				responseText );
+
+		// If the request succeeds, this function gets "data", "status", "jqXHR"
+		// but they are ignored because response was set above.
+		// If it fails, this function gets "jqXHR", "status", "error"
+		} ).always( callback && function( jqXHR, status ) {
+			self.each( function() {
+				callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
+			} );
+		} );
+	}
+
+	return this;
+};
+
+
+
+
+jQuery.expr.pseudos.animated = function( elem ) {
+	return jQuery.grep( jQuery.timers, function( fn ) {
+		return elem === fn.elem;
+	} ).length;
+};
+
+
+
+
+jQuery.offset = {
+	setOffset: function( elem, options, i ) {
+		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
+			position = jQuery.css( elem, "position" ),
+			curElem = jQuery( elem ),
+			props = {};
+
+		// Set position first, in-case top/left are set even on static elem
+		if ( position === "static" ) {
+			elem.style.position = "relative";
+		}
+
+		curOffset = curElem.offset();
+		curCSSTop = jQuery.css( elem, "top" );
+		curCSSLeft = jQuery.css( elem, "left" );
+		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
+			( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
+
+		// Need to be able to calculate position if either
+		// top or left is auto and position is either absolute or fixed
+		if ( calculatePosition ) {
+			curPosition = curElem.position();
+			curTop = curPosition.top;
+			curLeft = curPosition.left;
+
+		} else {
+			curTop = parseFloat( curCSSTop ) || 0;
+			curLeft = parseFloat( curCSSLeft ) || 0;
+		}
+
+		if ( isFunction( options ) ) {
+
+			// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
+			options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
+		}
+
+		if ( options.top != null ) {
+			props.top = ( options.top - curOffset.top ) + curTop;
+		}
+		if ( options.left != null ) {
+			props.left = ( options.left - curOffset.left ) + curLeft;
+		}
+
+		if ( "using" in options ) {
+			options.using.call( elem, props );
+
+		} else {
+			if ( typeof props.top === "number" ) {
+				props.top += "px";
+			}
+			if ( typeof props.left === "number" ) {
+				props.left += "px";
+			}
+			curElem.css( props );
+		}
+	}
+};
+
+jQuery.fn.extend( {
+
+	// offset() relates an element's border box to the document origin
+	offset: function( options ) {
+
+		// Preserve chaining for setter
+		if ( arguments.length ) {
+			return options === undefined ?
+				this :
+				this.each( function( i ) {
+					jQuery.offset.setOffset( this, options, i );
+				} );
+		}
+
+		var rect, win,
+			elem = this[ 0 ];
+
+		if ( !elem ) {
+			return;
+		}
+
+		// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
+		// Support: IE <=11 only
+		// Running getBoundingClientRect on a
+		// disconnected node in IE throws an error
+		if ( !elem.getClientRects().length ) {
+			return { top: 0, left: 0 };
+		}
+
+		// Get document-relative position by adding viewport scroll to viewport-relative gBCR
+		rect = elem.getBoundingClientRect();
+		win = elem.ownerDocument.defaultView;
+		return {
+			top: rect.top + win.pageYOffset,
+			left: rect.left + win.pageXOffset
+		};
+	},
+
+	// position() relates an element's margin box to its offset parent's padding box
+	// This corresponds to the behavior of CSS absolute positioning
+	position: function() {
+		if ( !this[ 0 ] ) {
+			return;
+		}
+
+		var offsetParent, offset, doc,
+			elem = this[ 0 ],
+			parentOffset = { top: 0, left: 0 };
+
+		// position:fixed elements are offset from the viewport, which itself always has zero offset
+		if ( jQuery.css( elem, "position" ) === "fixed" ) {
+
+			// Assume position:fixed implies availability of getBoundingClientRect
+			offset = elem.getBoundingClientRect();
+
+		} else {
+			offset = this.offset();
+
+			// Account for the *real* offset parent, which can be the document or its root element
+			// when a statically positioned element is identified
+			doc = elem.ownerDocument;
+			offsetParent = elem.offsetParent || doc.documentElement;
+			while ( offsetParent &&
+				( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
+				jQuery.css( offsetParent, "position" ) === "static" ) {
+
+				offsetParent = offsetParent.parentNode;
+			}
+			if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
+
+				// Incorporate borders into its offset, since they are outside its content origin
+				parentOffset = jQuery( offsetParent ).offset();
+				parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
+				parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
+			}
+		}
+
+		// Subtract parent offsets and element margins
+		return {
+			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
+			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
+		};
+	},
+
+	// This method will return documentElement in the following cases:
+	// 1) For the element inside the iframe without offsetParent, this method will return
+	//    documentElement of the parent window
+	// 2) For the hidden or detached element
+	// 3) For body or html element, i.e. in case of the html node - it will return itself
+	//
+	// but those exceptions were never presented as a real life use-cases
+	// and might be considered as more preferable results.
+	//
+	// This logic, however, is not guaranteed and can change at any point in the future
+	offsetParent: function() {
+		return this.map( function() {
+			var offsetParent = this.offsetParent;
+
+			while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
+				offsetParent = offsetParent.offsetParent;
+			}
+
+			return offsetParent || documentElement;
+		} );
+	}
+} );
 
-                            var dx = e.touches[0].clientX - startGPos[0];
-                            var dx2 = dx * dx;
-                            var dy = e.touches[0].clientY - startGPos[1];
-                            var dy2 = dy * dy;
-                            var dist2 = dx2 + dy2;
-                            isOverThresholdDrag = dist2 >= r.touchTapThreshold2;
-                        } // context swipe cancelling
-
-
-                        if (capture && r.touchData.cxt) {
-                            e.preventDefault();
-                            var f1x2 = e.touches[0].clientX - offsetLeft,
-                                f1y2 = e.touches[0].clientY - offsetTop;
-                            var f2x2 = e.touches[1].clientX - offsetLeft,
-                                f2y2 = e.touches[1].clientY - offsetTop; // var distance2 = distance( f1x2, f1y2, f2x2, f2y2 );
-
-                            var distance2Sq = distanceSq(f1x2, f1y2, f2x2, f2y2);
-                            var factorSq = distance2Sq / distance1Sq;
-                            var distThreshold = 150;
-                            var distThresholdSq = distThreshold * distThreshold;
-                            var factorThreshold = 1.5;
-                            var factorThresholdSq = factorThreshold * factorThreshold; // cancel ctx gestures if the distance b/t the fingers increases
-
-                            if (factorSq >= factorThresholdSq || distance2Sq >= distThresholdSq) {
-                                r.touchData.cxt = false;
-                                r.data.bgActivePosistion = undefined;
-                                r.redrawHint('select', true);
-                                var cxtEvt = {
-                                    originalEvent: e,
-                                    type: 'cxttapend',
-                                    position: {
-                                        x: now[0],
-                                        y: now[1]
-                                    }
-                                };
-
-                                if (r.touchData.start) {
-                                    r.touchData.start.unactivate().emit(cxtEvt);
-                                    r.touchData.start = null;
-                                } else {
-                                    cy.emit(cxtEvt);
-                                }
-                            }
-                        } // context swipe
-
-
-                        if (capture && r.touchData.cxt) {
-                            var cxtEvt = {
-                                originalEvent: e,
-                                type: 'cxtdrag',
-                                position: {
-                                    x: now[0],
-                                    y: now[1]
-                                }
-                            };
-                            r.data.bgActivePosistion = undefined;
-                            r.redrawHint('select', true);
-
-                            if (r.touchData.start) {
-                                r.touchData.start.emit(cxtEvt);
-                            } else {
-                                cy.emit(cxtEvt);
-                            }
+// Create scrollLeft and scrollTop methods
+jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
+	var top = "pageYOffset" === prop;
+
+	jQuery.fn[ method ] = function( val ) {
+		return access( this, function( elem, method, val ) {
+
+			// Coalesce documents and windows
+			var win;
+			if ( isWindow( elem ) ) {
+				win = elem;
+			} else if ( elem.nodeType === 9 ) {
+				win = elem.defaultView;
+			}
+
+			if ( val === undefined ) {
+				return win ? win[ prop ] : elem[ method ];
+			}
+
+			if ( win ) {
+				win.scrollTo(
+					!top ? val : win.pageXOffset,
+					top ? val : win.pageYOffset
+				);
+
+			} else {
+				elem[ method ] = val;
+			}
+		}, method, val, arguments.length );
+	};
+} );
 
-                            if (r.touchData.start) {
-                                r.touchData.start._private.grabbed = false;
-                            }
+// Support: Safari <=7 - 9.1, Chrome <=37 - 49
+// Add the top/left cssHooks using jQuery.fn.position
+// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
+// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
+// getComputedStyle returns percent when specified for top/left/bottom/right;
+// rather than make the css module depend on the offset module, just check for it here
+jQuery.each( [ "top", "left" ], function( _i, prop ) {
+	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
+		function( elem, computed ) {
+			if ( computed ) {
+				computed = curCSS( elem, prop );
+
+				// If curCSS returns percentage, fallback to offset
+				return rnumnonpx.test( computed ) ?
+					jQuery( elem ).position()[ prop ] + "px" :
+					computed;
+			}
+		}
+	);
+} );
 
-                            r.touchData.cxtDragged = true;
-                            var near = r.findNearestElement(now[0], now[1], true, true);
-
-                            if (!r.touchData.cxtOver || near !== r.touchData.cxtOver) {
-                                if (r.touchData.cxtOver) {
-                                    r.touchData.cxtOver.emit({
-                                        originalEvent: e,
-                                        type: 'cxtdragout',
-                                        position: {
-                                            x: now[0],
-                                            y: now[1]
-                                        }
-                                    });
-                                }
-
-                                r.touchData.cxtOver = near;
-
-                                if (near) {
-                                    near.emit({
-                                        originalEvent: e,
-                                        type: 'cxtdragover',
-                                        position: {
-                                            x: now[0],
-                                            y: now[1]
-                                        }
-                                    });
-                                }
-                            } // box selection
-
-                        } else if (capture && e.touches[2] && cy.boxSelectionEnabled()) {
-                            e.preventDefault();
-                            r.data.bgActivePosistion = undefined;
-                            this.lastThreeTouch = +new Date();
-
-                            if (!r.touchData.selecting) {
-                                cy.emit({
-                                    originalEvent: e,
-                                    type: 'boxstart',
-                                    position: {
-                                        x: now[0],
-                                        y: now[1]
-                                    }
-                                });
-                            }
 
-                            r.touchData.selecting = true;
-                            r.touchData.didSelect = true;
-                            select[4] = 1;
-
-                            if (!select || select.length === 0 || select[0] === undefined) {
-                                select[0] = (now[0] + now[2] + now[4]) / 3;
-                                select[1] = (now[1] + now[3] + now[5]) / 3;
-                                select[2] = (now[0] + now[2] + now[4]) / 3 + 1;
-                                select[3] = (now[1] + now[3] + now[5]) / 3 + 1;
-                            } else {
-                                select[2] = (now[0] + now[2] + now[4]) / 3;
-                                select[3] = (now[1] + now[3] + now[5]) / 3;
-                            }
+// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
+jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
+	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
+		function( defaultExtra, funcName ) {
 
-                            r.redrawHint('select', true);
-                            r.redraw(); // pinch to zoom
-                        } else if (capture && e.touches[1] && !r.touchData.didSelect // don't allow box selection to degrade to pinch-to-zoom
-                            && cy.zoomingEnabled() && cy.panningEnabled() && cy.userZoomingEnabled() && cy.userPanningEnabled()) {
-                            // two fingers => pinch to zoom
-                            e.preventDefault();
-                            r.data.bgActivePosistion = undefined;
-                            r.redrawHint('select', true);
-                            var draggedEles = r.dragData.touchDragEles;
-
-                            if (draggedEles) {
-                                r.redrawHint('drag', true);
-
-                                for (var i = 0; i < draggedEles.length; i++) {
-                                    var de_p = draggedEles[i]._private;
-                                    de_p.grabbed = false;
-                                    de_p.rscratch.inDragLayer = false;
-                                }
-                            }
+		// Margin is only for outerHeight, outerWidth
+		jQuery.fn[ funcName ] = function( margin, value ) {
+			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
+				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
 
-                            var _start = r.touchData.start; // (x2, y2) for fingers 1 and 2
-
-                            var f1x2 = e.touches[0].clientX - offsetLeft,
-                                f1y2 = e.touches[0].clientY - offsetTop;
-                            var f2x2 = e.touches[1].clientX - offsetLeft,
-                                f2y2 = e.touches[1].clientY - offsetTop;
-                            var distance2 = distance(f1x2, f1y2, f2x2, f2y2); // var distance2Sq = distanceSq( f1x2, f1y2, f2x2, f2y2 );
-                            // var factor = Math.sqrt( distance2Sq ) / Math.sqrt( distance1Sq );
-
-                            var factor = distance2 / distance1;
-
-                            if (twoFingersStartInside) {
-                                // delta finger1
-                                var df1x = f1x2 - f1x1;
-                                var df1y = f1y2 - f1y1; // delta finger 2
-
-                                var df2x = f2x2 - f2x1;
-                                var df2y = f2y2 - f2y1; // translation is the normalised vector of the two fingers movement
-                                // i.e. so pinching cancels out and moving together pans
-
-                                var tx = (df1x + df2x) / 2;
-                                var ty = (df1y + df2y) / 2; // now calculate the zoom
-
-                                var zoom1 = cy.zoom();
-                                var zoom2 = zoom1 * factor;
-                                var pan1 = cy.pan(); // the model center point converted to the current rendered pos
-
-                                var ctrx = modelCenter1[0] * zoom1 + pan1.x;
-                                var ctry = modelCenter1[1] * zoom1 + pan1.y;
-                                var pan2 = {
-                                    x: -zoom2 / zoom1 * (ctrx - pan1.x - tx) + ctrx,
-                                    y: -zoom2 / zoom1 * (ctry - pan1.y - ty) + ctry
-                                }; // remove dragged eles
-
-                                if (_start && _start.active()) {
-                                    var draggedEles = r.dragData.touchDragEles;
-                                    freeDraggedElements(draggedEles);
-                                    r.redrawHint('drag', true);
-                                    r.redrawHint('eles', true);
-
-                                    _start.unactivate().emit('freeon');
-
-                                    draggedEles.emit('free');
-
-                                    if (r.dragData.didDrag) {
-                                        _start.emit('dragfreeon');
-
-                                        draggedEles.emit('dragfree');
-                                    }
-                                }
-
-                                cy.viewport({
-                                    zoom: zoom2,
-                                    pan: pan2,
-                                    cancelOnFailedZoom: true
-                                });
-                                distance1 = distance2;
-                                f1x1 = f1x2;
-                                f1y1 = f1y2;
-                                f2x1 = f2x2;
-                                f2y1 = f2y2;
-                                r.pinching = true;
-                            } // Re-project
-
-
-                            if (e.touches[0]) {
-                                var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
-                                now[0] = pos[0];
-                                now[1] = pos[1];
-                            }
+			return access( this, function( elem, type, value ) {
+				var doc;
 
-                            if (e.touches[1]) {
-                                var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
-                                now[2] = pos[0];
-                                now[3] = pos[1];
-                            }
+				if ( isWindow( elem ) ) {
 
-                            if (e.touches[2]) {
-                                var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
-                                now[4] = pos[0];
-                                now[5] = pos[1];
-                            }
-                        } else if (e.touches[0] && !r.touchData.didSelect // don't allow box selection to degrade to single finger events like panning
-                        ) {
-                            var start = r.touchData.start;
-                            var last = r.touchData.last;
-                            var near;
-
-                            if (!r.hoverData.draggingEles && !r.swipePanning) {
-                                near = r.findNearestElement(now[0], now[1], true, true);
-                            }
+					// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
+					return funcName.indexOf( "outer" ) === 0 ?
+						elem[ "inner" + name ] :
+						elem.document.documentElement[ "client" + name ];
+				}
 
-                            if (capture && start != null) {
-                                e.preventDefault();
-                            } // dragging nodes
-
-
-                            if (capture && start != null && r.nodeIsDraggable(start)) {
-                                if (isOverThresholdDrag) {
-                                    // then dragging can happen
-                                    var draggedEles = r.dragData.touchDragEles;
-                                    var justStartedDrag = !r.dragData.didDrag;
-
-                                    if (justStartedDrag) {
-                                        addNodesToDrag(draggedEles, {
-                                            inDragLayer: true
-                                        });
-                                    }
-
-                                    r.dragData.didDrag = true;
-                                    var totalShift = {
-                                        x: 0,
-                                        y: 0
-                                    };
-
-                                    if (number(disp[0]) && number(disp[1])) {
-                                        totalShift.x += disp[0];
-                                        totalShift.y += disp[1];
-
-                                        if (justStartedDrag) {
-                                            r.redrawHint('eles', true);
-                                            var dragDelta = r.touchData.dragDelta;
-
-                                            if (dragDelta && number(dragDelta[0]) && number(dragDelta[1])) {
-                                                totalShift.x += dragDelta[0];
-                                                totalShift.y += dragDelta[1];
-                                            }
-                                        }
-                                    }
-
-                                    r.hoverData.draggingEles = true;
-                                    draggedEles.silentShift(totalShift).emit('position drag');
-                                    r.redrawHint('drag', true);
-
-                                    if (r.touchData.startPosition[0] == earlier[0] && r.touchData.startPosition[1] == earlier[1]) {
-                                        r.redrawHint('eles', true);
-                                    }
-
-                                    r.redraw();
-                                } else {
-                                    // otherise keep track of drag delta for later
-                                    var dragDelta = r.touchData.dragDelta = r.touchData.dragDelta || [];
-
-                                    if (dragDelta.length === 0) {
-                                        dragDelta.push(disp[0]);
-                                        dragDelta.push(disp[1]);
-                                    } else {
-                                        dragDelta[0] += disp[0];
-                                        dragDelta[1] += disp[1];
-                                    }
-                                }
-                            } // touchmove
-
-
-                            {
-                                triggerEvents(start || near, ['touchmove', 'tapdrag', 'vmousemove'], e, {
-                                    x: now[0],
-                                    y: now[1]
-                                });
-
-                                if ((!start || !start.grabbed()) && near != last) {
-                                    if (last) {
-                                        last.emit({
-                                            originalEvent: e,
-                                            type: 'tapdragout',
-                                            position: {
-                                                x: now[0],
-                                                y: now[1]
-                                            }
-                                        });
-                                    }
-
-                                    if (near) {
-                                        near.emit({
-                                            originalEvent: e,
-                                            type: 'tapdragover',
-                                            position: {
-                                                x: now[0],
-                                                y: now[1]
-                                            }
-                                        });
-                                    }
-                                }
-
-                                r.touchData.last = near;
-                            } // check to cancel taphold
-
-                            if (capture) {
-                                for (var i = 0; i < now.length; i++) {
-                                    if (now[i] && r.touchData.startPosition[i] && isOverThresholdDrag) {
-                                        r.touchData.singleTouchMoved = true;
-                                    }
-                                }
-                            } // panning
-
-
-                            if (capture && (start == null || start.pannable()) && cy.panningEnabled() && cy.userPanningEnabled()) {
-                                var allowPassthrough = allowPanningPassthrough(start, r.touchData.starts);
-
-                                if (allowPassthrough) {
-                                    e.preventDefault();
-
-                                    if (!r.data.bgActivePosistion) {
-                                        r.data.bgActivePosistion = array2point(r.touchData.startPosition);
-                                    }
-
-                                    if (r.swipePanning) {
-                                        cy.panBy({
-                                            x: disp[0] * zoom,
-                                            y: disp[1] * zoom
-                                        });
-                                    } else if (isOverThresholdDrag) {
-                                        r.swipePanning = true;
-                                        cy.panBy({
-                                            x: dx * zoom,
-                                            y: dy * zoom
-                                        });
-
-                                        if (start) {
-                                            start.unactivate();
-                                            r.redrawHint('select', true);
-                                            r.touchData.start = null;
-                                        }
-                                    }
-                                } // Re-project
-
-
-                                var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
-                                now[0] = pos[0];
-                                now[1] = pos[1];
-                            }
-                        }
+				// Get document width or height
+				if ( elem.nodeType === 9 ) {
+					doc = elem.documentElement;
 
-                        for (var j = 0; j < now.length; j++) {
-                            earlier[j] = now[j];
-                        } // the active bg indicator should be removed when making a swipe that is neither for dragging nodes or panning
+					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
+					// whichever is greatest
+					return Math.max(
+						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
+						elem.body[ "offset" + name ], doc[ "offset" + name ],
+						doc[ "client" + name ]
+					);
+				}
 
+				return value === undefined ?
 
-                        if (capture && e.touches.length > 0 && !r.hoverData.draggingEles && !r.swipePanning && r.data.bgActivePosistion != null) {
-                            r.data.bgActivePosistion = undefined;
-                            r.redrawHint('select', true);
-                            r.redraw();
-                        }
-                    }, false);
-                    var touchcancelHandler;
-                    r.registerBinding(window, 'touchcancel', touchcancelHandler = function touchcancelHandler(e) {
-                        // eslint-disable-line no-unused-vars
-                        var start = r.touchData.start;
-                        r.touchData.capture = false;
-
-                        if (start) {
-                            start.unactivate();
-                        }
-                    });
-                    var touchendHandler;
-                    r.registerBinding(window, 'touchend', touchendHandler = function touchendHandler(e) {
-                        // eslint-disable-line no-unused-vars
-                        var start = r.touchData.start;
-                        var capture = r.touchData.capture;
-
-                        if (capture) {
-                            if (e.touches.length === 0) {
-                                r.touchData.capture = false;
-                            }
+					// Get width or height on the element, requesting but not forcing parseFloat
+					jQuery.css( elem, type, extra ) :
 
-                            e.preventDefault();
-                        } else {
-                            return;
-                        }
+					// Set width or height on the element
+					jQuery.style( elem, type, value, extra );
+			}, type, chainable ? margin : undefined, chainable );
+		};
+	} );
+} );
 
-                        var select = r.selection;
-                        r.swipePanning = false;
-                        r.hoverData.draggingEles = false;
-                        var cy = r.cy;
-                        var zoom = cy.zoom();
-                        var now = r.touchData.now;
-                        var earlier = r.touchData.earlier;
-
-                        if (e.touches[0]) {
-                            var pos = r.projectIntoViewport(e.touches[0].clientX, e.touches[0].clientY);
-                            now[0] = pos[0];
-                            now[1] = pos[1];
-                        }
 
-                        if (e.touches[1]) {
-                            var pos = r.projectIntoViewport(e.touches[1].clientX, e.touches[1].clientY);
-                            now[2] = pos[0];
-                            now[3] = pos[1];
-                        }
+jQuery.each( [
+	"ajaxStart",
+	"ajaxStop",
+	"ajaxComplete",
+	"ajaxError",
+	"ajaxSuccess",
+	"ajaxSend"
+], function( _i, type ) {
+	jQuery.fn[ type ] = function( fn ) {
+		return this.on( type, fn );
+	};
+} );
 
-                        if (e.touches[2]) {
-                            var pos = r.projectIntoViewport(e.touches[2].clientX, e.touches[2].clientY);
-                            now[4] = pos[0];
-                            now[5] = pos[1];
-                        }
 
-                        if (start) {
-                            start.unactivate();
-                        }
 
-                        var ctxTapend;
-
-                        if (r.touchData.cxt) {
-                            ctxTapend = {
-                                originalEvent: e,
-                                type: 'cxttapend',
-                                position: {
-                                    x: now[0],
-                                    y: now[1]
-                                }
-                            };
-
-                            if (start) {
-                                start.emit(ctxTapend);
-                            } else {
-                                cy.emit(ctxTapend);
-                            }
 
-                            if (!r.touchData.cxtDragged) {
-                                var ctxTap = {
-                                    originalEvent: e,
-                                    type: 'cxttap',
-                                    position: {
-                                        x: now[0],
-                                        y: now[1]
-                                    }
-                                };
-
-                                if (start) {
-                                    start.emit(ctxTap);
-                                } else {
-                                    cy.emit(ctxTap);
-                                }
-                            }
+jQuery.fn.extend( {
 
-                            if (r.touchData.start) {
-                                r.touchData.start._private.grabbed = false;
-                            }
+	bind: function( types, data, fn ) {
+		return this.on( types, null, data, fn );
+	},
+	unbind: function( types, fn ) {
+		return this.off( types, null, fn );
+	},
 
-                            r.touchData.cxt = false;
-                            r.touchData.start = null;
-                            r.redraw();
-                            return;
-                        } // no more box selection if we don't have three fingers
-
-
-                        if (!e.touches[2] && cy.boxSelectionEnabled() && r.touchData.selecting) {
-                            r.touchData.selecting = false;
-                            var box = cy.collection(r.getAllInBox(select[0], select[1], select[2], select[3]));
-                            select[0] = undefined;
-                            select[1] = undefined;
-                            select[2] = undefined;
-                            select[3] = undefined;
-                            select[4] = 0;
-                            r.redrawHint('select', true);
-                            cy.emit({
-                                type: 'boxend',
-                                originalEvent: e,
-                                position: {
-                                    x: now[0],
-                                    y: now[1]
-                                }
-                            });
-
-                            var eleWouldBeSelected = function eleWouldBeSelected(ele) {
-                                return ele.selectable() && !ele.selected();
-                            };
-
-                            box.emit('box').stdFilter(eleWouldBeSelected).select().emit('boxselect');
-
-                            if (box.nonempty()) {
-                                r.redrawHint('eles', true);
-                            }
+	delegate: function( selector, types, data, fn ) {
+		return this.on( types, selector, data, fn );
+	},
+	undelegate: function( selector, types, fn ) {
 
-                            r.redraw();
-                        }
+		// ( namespace ) or ( selector, types [, fn] )
+		return arguments.length === 1 ?
+			this.off( selector, "**" ) :
+			this.off( types, selector || "**", fn );
+	},
 
-                        if (start != null) {
-                            start.unactivate();
-                        }
+	hover: function( fnOver, fnOut ) {
+		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+	}
+} );
 
-                        if (e.touches[2]) {
-                            r.data.bgActivePosistion = undefined;
-                            r.redrawHint('select', true);
-                        } else if (e.touches[1]) ; else if (e.touches[0]) ; else if (!e.touches[0]) {
-                            r.data.bgActivePosistion = undefined;
-                            r.redrawHint('select', true);
-                            var draggedEles = r.dragData.touchDragEles;
-
-                            if (start != null) {
-                                var startWasGrabbed = start._private.grabbed;
-                                freeDraggedElements(draggedEles);
-                                r.redrawHint('drag', true);
-                                r.redrawHint('eles', true);
-
-                                if (startWasGrabbed) {
-                                    start.emit('freeon');
-                                    draggedEles.emit('free');
-
-                                    if (r.dragData.didDrag) {
-                                        start.emit('dragfreeon');
-                                        draggedEles.emit('dragfree');
-                                    }
-                                }
-
-                                triggerEvents(start, ['touchend', 'tapend', 'vmouseup', 'tapdragout'], e, {
-                                    x: now[0],
-                                    y: now[1]
-                                });
-                                start.unactivate();
-                                r.touchData.start = null;
-                            } else {
-                                var near = r.findNearestElement(now[0], now[1], true, true);
-                                triggerEvents(near, ['touchend', 'tapend', 'vmouseup', 'tapdragout'], e, {
-                                    x: now[0],
-                                    y: now[1]
-                                });
-                            }
+jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
+	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+	"change select submit keydown keypress keyup contextmenu" ).split( " " ),
+	function( _i, name ) {
 
-                            var dx = r.touchData.startPosition[0] - now[0];
-                            var dx2 = dx * dx;
-                            var dy = r.touchData.startPosition[1] - now[1];
-                            var dy2 = dy * dy;
-                            var dist2 = dx2 + dy2;
-                            var rdist2 = dist2 * zoom * zoom; // Tap event, roughly same as mouse click event for touch
-
-                            if (!r.touchData.singleTouchMoved) {
-                                if (!start) {
-                                    cy.$(':selected').unselect(['tapunselect']);
-                                }
-
-                                triggerEvents(start, ['tap', 'vclick'], e, {
-                                    x: now[0],
-                                    y: now[1]
-                                });
-                            } // Prepare to select the currently touched node, only if it hasn't been dragged past a certain distance
-
-
-                            if (start != null && !r.dragData.didDrag // didn't drag nodes around
-                                && start._private.selectable && rdist2 < r.touchTapThreshold2 && !r.pinching // pinch to zoom should not affect selection
-                            ) {
-                                if (cy.selectionType() === 'single') {
-                                    cy.$(isSelected).unmerge(start).unselect(['tapunselect']);
-                                    start.select(['tapselect']);
-                                } else {
-                                    if (start.selected()) {
-                                        start.unselect(['tapunselect']);
-                                    } else {
-                                        start.select(['tapselect']);
-                                    }
-                                }
-
-                                r.redrawHint('eles', true);
-                            }
+		// Handle event binding
+		jQuery.fn[ name ] = function( data, fn ) {
+			return arguments.length > 0 ?
+				this.on( name, null, data, fn ) :
+				this.trigger( name );
+		};
+	} );
 
-                            r.touchData.singleTouchMoved = true;
-                        }
 
-                        for (var j = 0; j < now.length; j++) {
-                            earlier[j] = now[j];
-                        }
 
-                        r.dragData.didDrag = false; // reset for next touchstart
 
-                        if (e.touches.length === 0) {
-                            r.touchData.dragDelta = [];
-                            r.touchData.startPosition = null;
-                            r.touchData.startGPosition = null;
-                            r.touchData.didSelect = false;
-                        }
+// Support: Android <=4.0 only
+// Make sure we trim BOM and NBSP
+var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
 
-                        if (e.touches.length < 2) {
-                            if (e.touches.length === 1) {
-                                // the old start global pos'n may not be the same finger that remains
-                                r.touchData.startGPosition = [e.touches[0].clientX, e.touches[0].clientY];
-                            }
+// Bind a function to a context, optionally partially applying any
+// arguments.
+// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
+// However, it is not slated for removal any time soon
+jQuery.proxy = function( fn, context ) {
+	var tmp, args, proxy;
+
+	if ( typeof context === "string" ) {
+		tmp = fn[ context ];
+		context = fn;
+		fn = tmp;
+	}
+
+	// Quick check to determine if target is callable, in the spec
+	// this throws a TypeError, but we will just return undefined.
+	if ( !isFunction( fn ) ) {
+		return undefined;
+	}
+
+	// Simulated bind
+	args = slice.call( arguments, 2 );
+	proxy = function() {
+		return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
+	};
+
+	// Set the guid of unique handler to the same of original handler, so it can be removed
+	proxy.guid = fn.guid = fn.guid || jQuery.guid++;
+
+	return proxy;
+};
+
+jQuery.holdReady = function( hold ) {
+	if ( hold ) {
+		jQuery.readyWait++;
+	} else {
+		jQuery.ready( true );
+	}
+};
+jQuery.isArray = Array.isArray;
+jQuery.parseJSON = JSON.parse;
+jQuery.nodeName = nodeName;
+jQuery.isFunction = isFunction;
+jQuery.isWindow = isWindow;
+jQuery.camelCase = camelCase;
+jQuery.type = toType;
+
+jQuery.now = Date.now;
+
+jQuery.isNumeric = function( obj ) {
+
+	// As of jQuery 3.0, isNumeric is limited to
+	// strings and numbers (primitives or objects)
+	// that can be coerced to finite numbers (gh-2662)
+	var type = jQuery.type( obj );
+	return ( type === "number" || type === "string" ) &&
+
+		// parseFloat NaNs numeric-cast false positives ("")
+		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
+		// subtraction forces infinities to NaN
+		!isNaN( obj - parseFloat( obj ) );
+};
+
+jQuery.trim = function( text ) {
+	return text == null ?
+		"" :
+		( text + "" ).replace( rtrim, "" );
+};
 
-                            r.pinching = false;
-                            r.redrawHint('eles', true);
-                            r.redraw();
-                        } //r.redraw();
-
-                    }, false); // fallback compatibility layer for ms pointer events
-
-                    if (typeof TouchEvent === 'undefined') {
-                        var pointers = [];
-
-                        var makeTouch = function makeTouch(e) {
-                            return {
-                                clientX: e.clientX,
-                                clientY: e.clientY,
-                                force: 1,
-                                identifier: e.pointerId,
-                                pageX: e.pageX,
-                                pageY: e.pageY,
-                                radiusX: e.width / 2,
-                                radiusY: e.height / 2,
-                                screenX: e.screenX,
-                                screenY: e.screenY,
-                                target: e.target
-                            };
-                        };
-
-                        var makePointer = function makePointer(e) {
-                            return {
-                                event: e,
-                                touch: makeTouch(e)
-                            };
-                        };
-
-                        var addPointer = function addPointer(e) {
-                            pointers.push(makePointer(e));
-                        };
-
-                        var removePointer = function removePointer(e) {
-                            for (var i = 0; i < pointers.length; i++) {
-                                var p = pointers[i];
-
-                                if (p.event.pointerId === e.pointerId) {
-                                    pointers.splice(i, 1);
-                                    return;
-                                }
-                            }
-                        };
-
-                        var updatePointer = function updatePointer(e) {
-                            var p = pointers.filter(function (p) {
-                                return p.event.pointerId === e.pointerId;
-                            })[0];
-                            p.event = e;
-                            p.touch = makeTouch(e);
-                        };
-
-                        var addTouchesToEvent = function addTouchesToEvent(e) {
-                            e.touches = pointers.map(function (p) {
-                                return p.touch;
-                            });
-                        };
-
-                        var pointerIsMouse = function pointerIsMouse(e) {
-                            return e.pointerType === 'mouse' || e.pointerType === 4;
-                        };
-
-                        r.registerBinding(r.container, 'pointerdown', function (e) {
-                            if (pointerIsMouse(e)) {
-                                return;
-                            } // mouse already handled
-
-
-                            e.preventDefault();
-                            addPointer(e);
-                            addTouchesToEvent(e);
-                            touchstartHandler(e);
-                        });
-                        r.registerBinding(r.container, 'pointerup', function (e) {
-                            if (pointerIsMouse(e)) {
-                                return;
-                            } // mouse already handled
 
 
-                            removePointer(e);
-                            addTouchesToEvent(e);
-                            touchendHandler(e);
-                        });
-                        r.registerBinding(r.container, 'pointercancel', function (e) {
-                            if (pointerIsMouse(e)) {
-                                return;
-                            } // mouse already handled
+// Register as a named AMD module, since jQuery can be concatenated with other
+// files that may use define, but not via a proper concatenation script that
+// understands anonymous AMD modules. A named AMD is safest and most robust
+// way to register. Lowercase jquery is used because AMD module names are
+// derived from file names, and jQuery is normally delivered in a lowercase
+// file name. Do this after creating the global so that if an AMD module wants
+// to call noConflict to hide this version of jQuery, it will work.
 
+// Note that for maximum portability, libraries that are not jQuery should
+// declare themselves as anonymous modules, and avoid setting a global if an
+// AMD loader is present. jQuery is a special case. For more information, see
+// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
 
-                            removePointer(e);
-                            addTouchesToEvent(e);
-                            touchcancelHandler(e);
-                        });
-                        r.registerBinding(r.container, 'pointermove', function (e) {
-                            if (pointerIsMouse(e)) {
-                                return;
-                            } // mouse already handled
+if ( true ) {
+	!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() {
+		return jQuery;
+	}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+}
 
 
-                            e.preventDefault();
-                            updatePointer(e);
-                            addTouchesToEvent(e);
-                            touchmoveHandler(e);
-                        });
-                    }
-                };
 
-                var BRp$d = {};
-
-                BRp$d.generatePolygon = function (name, points) {
-                    return this.nodeShapes[name] = {
-                        renderer: this,
-                        name: name,
-                        points: points,
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl('polygon', context, centerX, centerY, width, height, this.points);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            return polygonIntersectLine(x, y, this.points, nodeX, nodeY, width / 2, height / 2, padding);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            return pointInsidePolygon(x, y, this.points, centerX, centerY, width, height, [0, -1], padding);
-                        }
-                    };
-                };
 
-                BRp$d.generateEllipse = function () {
-                    return this.nodeShapes['ellipse'] = {
-                        renderer: this,
-                        name: 'ellipse',
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            return intersectLineEllipse(x, y, nodeX, nodeY, width / 2 + padding, height / 2 + padding);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            return checkInEllipse(x, y, width, height, centerX, centerY, padding);
-                        }
-                    };
-                };
+var
 
-                BRp$d.generateRoundPolygon = function (name, points) {
-                    // Pre-compute control points
-                    // Since these points depend on the radius length (which in turns depend on the width/height of the node) we will only pre-compute
-                    // the unit vectors.
-                    // For simplicity the layout will be:
-                    // [ p0, UnitVectorP0P1, p1, UniVectorP1P2, ..., pn, UnitVectorPnP0 ]
-                    var allPoints = new Array(points.length * 2);
-
-                    for (var i = 0; i < points.length / 2; i++) {
-                        var sourceIndex = i * 2;
-                        var destIndex = void 0;
-
-                        if (i < points.length / 2 - 1) {
-                            destIndex = (i + 1) * 2;
-                        } else {
-                            destIndex = 0;
-                        }
+	// Map over jQuery in case of overwrite
+	_jQuery = window.jQuery,
 
-                        allPoints[i * 4] = points[sourceIndex];
-                        allPoints[i * 4 + 1] = points[sourceIndex + 1];
-                        var xDest = points[destIndex] - points[sourceIndex];
-                        var yDest = points[destIndex + 1] - points[sourceIndex + 1];
-                        var norm = Math.sqrt(xDest * xDest + yDest * yDest);
-                        allPoints[i * 4 + 2] = xDest / norm;
-                        allPoints[i * 4 + 3] = yDest / norm;
-                    }
+	// Map over the $ in case of overwrite
+	_$ = window.$;
 
-                    return this.nodeShapes[name] = {
-                        renderer: this,
-                        name: name,
-                        points: allPoints,
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl('round-polygon', context, centerX, centerY, width, height, this.points);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            return roundPolygonIntersectLine(x, y, this.points, nodeX, nodeY, width, height);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            return pointInsideRoundPolygon(x, y, this.points, centerX, centerY, width, height);
-                        }
-                    };
-                };
+jQuery.noConflict = function( deep ) {
+	if ( window.$ === jQuery ) {
+		window.$ = _$;
+	}
 
-                BRp$d.generateRoundRectangle = function () {
-                    return this.nodeShapes['round-rectangle'] = this.nodeShapes['roundrectangle'] = {
-                        renderer: this,
-                        name: 'round-rectangle',
-                        points: generateUnitNgonPointsFitToSquare(4, 0),
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            return roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            var cornerRadius = getRoundRectangleRadius(width, height);
-                            var diam = cornerRadius * 2; // Check hBox
+	if ( deep && window.jQuery === jQuery ) {
+		window.jQuery = _jQuery;
+	}
 
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - diam, [0, -1], padding)) {
-                                return true;
-                            } // Check vBox
+	return jQuery;
+};
 
+// Expose jQuery and $ identifiers, even in AMD
+// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
+// and CommonJS for browser emulators (#13566)
+if ( typeof noGlobal === "undefined" ) {
+	window.jQuery = window.$ = jQuery;
+}
 
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - diam, height, [0, -1], padding)) {
-                                return true;
-                            } // Check top left quarter circle
 
 
-                            if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY - height / 2 + cornerRadius, padding)) {
-                                return true;
-                            } // Check top right quarter circle
 
+return jQuery;
+} );
 
-                            if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY - height / 2 + cornerRadius, padding)) {
-                                return true;
-                            } // Check bottom right quarter circle
 
+/***/ }),
 
-                            if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
-                                return true;
-                            } // Check bottom left quarter circle
+/***/ "./node_modules/lodash.debounce/index.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash.debounce/index.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* WEBPACK VAR INJECTION */(function(global) {/**
+ * lodash (Custom Build) <https://lodash.com/>
+ * Build: `lodash modularize exports="npm" -o ./`
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
+ * Released under MIT license <https://lodash.com/license>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
 
+/** Used as the `TypeError` message for "Functions" methods. */
+var FUNC_ERROR_TEXT = 'Expected a function';
 
-                            if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
-                                return true;
-                            }
+/** Used as references for various `Number` constants. */
+var NAN = 0 / 0;
 
-                            return false;
-                        }
-                    };
-                };
+/** `Object#toString` result references. */
+var symbolTag = '[object Symbol]';
 
-                BRp$d.generateCutRectangle = function () {
-                    return this.nodeShapes['cut-rectangle'] = this.nodeShapes['cutrectangle'] = {
-                        renderer: this,
-                        name: 'cut-rectangle',
-                        cornerLength: getCutRectangleCornerLength(),
-                        points: generateUnitNgonPointsFitToSquare(4, 0),
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
-                        },
-                        generateCutTrianglePts: function generateCutTrianglePts(width, height, centerX, centerY) {
-                            var cl = this.cornerLength;
-                            var hh = height / 2;
-                            var hw = width / 2;
-                            var xBegin = centerX - hw;
-                            var xEnd = centerX + hw;
-                            var yBegin = centerY - hh;
-                            var yEnd = centerY + hh; // points are in clockwise order, inner (imaginary) triangle pt on [4, 5]
-
-                            return {
-                                topLeft: [xBegin, yBegin + cl, xBegin + cl, yBegin, xBegin + cl, yBegin + cl],
-                                topRight: [xEnd - cl, yBegin, xEnd, yBegin + cl, xEnd - cl, yBegin + cl],
-                                bottomRight: [xEnd, yEnd - cl, xEnd - cl, yEnd, xEnd - cl, yEnd - cl],
-                                bottomLeft: [xBegin + cl, yEnd, xBegin, yEnd - cl, xBegin + cl, yEnd - cl]
-                            };
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            var cPts = this.generateCutTrianglePts(width + 2 * padding, height + 2 * padding, nodeX, nodeY);
-                            var pts = [].concat.apply([], [cPts.topLeft.splice(0, 4), cPts.topRight.splice(0, 4), cPts.bottomRight.splice(0, 4), cPts.bottomLeft.splice(0, 4)]);
-                            return polygonIntersectLine(x, y, pts, nodeX, nodeY);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            // Check hBox
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - 2 * this.cornerLength, [0, -1], padding)) {
-                                return true;
-                            } // Check vBox
-
-
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - 2 * this.cornerLength, height, [0, -1], padding)) {
-                                return true;
-                            }
+/** Used to match leading and trailing whitespace. */
+var reTrim = /^\s+|\s+$/g;
 
-                            var cutTrianglePts = this.generateCutTrianglePts(width, height, centerX, centerY);
-                            return pointInsidePolygonPoints(x, y, cutTrianglePts.topLeft) || pointInsidePolygonPoints(x, y, cutTrianglePts.topRight) || pointInsidePolygonPoints(x, y, cutTrianglePts.bottomRight) || pointInsidePolygonPoints(x, y, cutTrianglePts.bottomLeft);
-                        }
-                    };
-                };
+/** Used to detect bad signed hexadecimal string values. */
+var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
 
-                BRp$d.generateBarrel = function () {
-                    return this.nodeShapes['barrel'] = {
-                        renderer: this,
-                        name: 'barrel',
-                        points: generateUnitNgonPointsFitToSquare(4, 0),
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            // use two fixed t values for the bezier curve approximation
-                            var t0 = 0.15;
-                            var t1 = 0.5;
-                            var t2 = 0.85;
-                            var bPts = this.generateBarrelBezierPts(width + 2 * padding, height + 2 * padding, nodeX, nodeY);
-
-                            var approximateBarrelCurvePts = function approximateBarrelCurvePts(pts) {
-                                // approximate curve pts based on the two t values
-                                var m0 = qbezierPtAt({
-                                    x: pts[0],
-                                    y: pts[1]
-                                }, {
-                                    x: pts[2],
-                                    y: pts[3]
-                                }, {
-                                    x: pts[4],
-                                    y: pts[5]
-                                }, t0);
-                                var m1 = qbezierPtAt({
-                                    x: pts[0],
-                                    y: pts[1]
-                                }, {
-                                    x: pts[2],
-                                    y: pts[3]
-                                }, {
-                                    x: pts[4],
-                                    y: pts[5]
-                                }, t1);
-                                var m2 = qbezierPtAt({
-                                    x: pts[0],
-                                    y: pts[1]
-                                }, {
-                                    x: pts[2],
-                                    y: pts[3]
-                                }, {
-                                    x: pts[4],
-                                    y: pts[5]
-                                }, t2);
-                                return [pts[0], pts[1], m0.x, m0.y, m1.x, m1.y, m2.x, m2.y, pts[4], pts[5]];
-                            };
-
-                            var pts = [].concat(approximateBarrelCurvePts(bPts.topLeft), approximateBarrelCurvePts(bPts.topRight), approximateBarrelCurvePts(bPts.bottomRight), approximateBarrelCurvePts(bPts.bottomLeft));
-                            return polygonIntersectLine(x, y, pts, nodeX, nodeY);
-                        },
-                        generateBarrelBezierPts: function generateBarrelBezierPts(width, height, centerX, centerY) {
-                            var hh = height / 2;
-                            var hw = width / 2;
-                            var xBegin = centerX - hw;
-                            var xEnd = centerX + hw;
-                            var yBegin = centerY - hh;
-                            var yEnd = centerY + hh;
-                            var curveConstants = getBarrelCurveConstants(width, height);
-                            var hOffset = curveConstants.heightOffset;
-                            var wOffset = curveConstants.widthOffset;
-                            var ctrlPtXOffset = curveConstants.ctrlPtOffsetPct * width; // points are in clockwise order, inner (imaginary) control pt on [4, 5]
-
-                            var pts = {
-                                topLeft: [xBegin, yBegin + hOffset, xBegin + ctrlPtXOffset, yBegin, xBegin + wOffset, yBegin],
-                                topRight: [xEnd - wOffset, yBegin, xEnd - ctrlPtXOffset, yBegin, xEnd, yBegin + hOffset],
-                                bottomRight: [xEnd, yEnd - hOffset, xEnd - ctrlPtXOffset, yEnd, xEnd - wOffset, yEnd],
-                                bottomLeft: [xBegin + wOffset, yEnd, xBegin + ctrlPtXOffset, yEnd, xBegin, yEnd - hOffset]
-                            };
-                            pts.topLeft.isTop = true;
-                            pts.topRight.isTop = true;
-                            pts.bottomLeft.isBottom = true;
-                            pts.bottomRight.isBottom = true;
-                            return pts;
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            var curveConstants = getBarrelCurveConstants(width, height);
-                            var hOffset = curveConstants.heightOffset;
-                            var wOffset = curveConstants.widthOffset; // Check hBox
-
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - 2 * hOffset, [0, -1], padding)) {
-                                return true;
-                            } // Check vBox
-
-
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - 2 * wOffset, height, [0, -1], padding)) {
-                                return true;
-                            }
+/** Used to detect binary string values. */
+var reIsBinary = /^0b[01]+$/i;
 
-                            var barrelCurvePts = this.generateBarrelBezierPts(width, height, centerX, centerY);
-
-                            var getCurveT = function getCurveT(x, y, curvePts) {
-                                var x0 = curvePts[4];
-                                var x1 = curvePts[2];
-                                var x2 = curvePts[0];
-                                var y0 = curvePts[5]; // var y1 = curvePts[ 3 ];
-
-                                var y2 = curvePts[1];
-                                var xMin = Math.min(x0, x2);
-                                var xMax = Math.max(x0, x2);
-                                var yMin = Math.min(y0, y2);
-                                var yMax = Math.max(y0, y2);
-
-                                if (xMin <= x && x <= xMax && yMin <= y && y <= yMax) {
-                                    var coeff = bezierPtsToQuadCoeff(x0, x1, x2);
-                                    var roots = solveQuadratic(coeff[0], coeff[1], coeff[2], x);
-                                    var validRoots = roots.filter(function (r) {
-                                        return 0 <= r && r <= 1;
-                                    });
-
-                                    if (validRoots.length > 0) {
-                                        return validRoots[0];
-                                    }
-                                }
-
-                                return null;
-                            };
-
-                            var curveRegions = Object.keys(barrelCurvePts);
-
-                            for (var i = 0; i < curveRegions.length; i++) {
-                                var corner = curveRegions[i];
-                                var cornerPts = barrelCurvePts[corner];
-                                var t = getCurveT(x, y, cornerPts);
-
-                                if (t == null) {
-                                    continue;
-                                }
-
-                                var y0 = cornerPts[5];
-                                var y1 = cornerPts[3];
-                                var y2 = cornerPts[1];
-                                var bezY = qbezierAt(y0, y1, y2, t);
-
-                                if (cornerPts.isTop && bezY <= y) {
-                                    return true;
-                                }
-
-                                if (cornerPts.isBottom && y <= bezY) {
-                                    return true;
-                                }
-                            }
+/** Used to detect octal string values. */
+var reIsOctal = /^0o[0-7]+$/i;
 
-                            return false;
-                        }
-                    };
-                };
+/** Built-in method references without a dependency on `root`. */
+var freeParseInt = parseInt;
 
-                BRp$d.generateBottomRoundrectangle = function () {
-                    return this.nodeShapes['bottom-round-rectangle'] = this.nodeShapes['bottomroundrectangle'] = {
-                        renderer: this,
-                        name: 'bottom-round-rectangle',
-                        points: generateUnitNgonPointsFitToSquare(4, 0),
-                        draw: function draw(context, centerX, centerY, width, height) {
-                            this.renderer.nodeShapeImpl(this.name, context, centerX, centerY, width, height);
-                        },
-                        intersectLine: function intersectLine(nodeX, nodeY, width, height, x, y, padding) {
-                            var topStartX = nodeX - (width / 2 + padding);
-                            var topStartY = nodeY - (height / 2 + padding);
-                            var topEndY = topStartY;
-                            var topEndX = nodeX + (width / 2 + padding);
-                            var topIntersections = finiteLinesIntersect(x, y, nodeX, nodeY, topStartX, topStartY, topEndX, topEndY, false);
-
-                            if (topIntersections.length > 0) {
-                                return topIntersections;
-                            }
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
 
-                            return roundRectangleIntersectLine(x, y, nodeX, nodeY, width, height, padding);
-                        },
-                        checkPoint: function checkPoint(x, y, padding, width, height, centerX, centerY) {
-                            var cornerRadius = getRoundRectangleRadius(width, height);
-                            var diam = 2 * cornerRadius; // Check hBox
+/** Detect free variable `self`. */
+var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
 
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width, height - diam, [0, -1], padding)) {
-                                return true;
-                            } // Check vBox
+/** Used as a reference to the global object. */
+var root = freeGlobal || freeSelf || Function('return this')();
 
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                            if (pointInsidePolygon(x, y, this.points, centerX, centerY, width - diam, height, [0, -1], padding)) {
-                                return true;
-                            } // check non-rounded top side
+/**
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+var objectToString = objectProto.toString;
 
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeMax = Math.max,
+    nativeMin = Math.min;
 
-                            var outerWidth = width / 2 + 2 * padding;
-                            var outerHeight = height / 2 + 2 * padding;
-                            var points = [centerX - outerWidth, centerY - outerHeight, centerX - outerWidth, centerY, centerX + outerWidth, centerY, centerX + outerWidth, centerY - outerHeight];
+/**
+ * Gets the timestamp of the number of milliseconds that have elapsed since
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Date
+ * @returns {number} Returns the timestamp.
+ * @example
+ *
+ * _.defer(function(stamp) {
+ *   console.log(_.now() - stamp);
+ * }, _.now());
+ * // => Logs the number of milliseconds it took for the deferred invocation.
+ */
+var now = function() {
+  return root.Date.now();
+};
+
+/**
+ * Creates a debounced function that delays invoking `func` until after `wait`
+ * milliseconds have elapsed since the last time the debounced function was
+ * invoked. The debounced function comes with a `cancel` method to cancel
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
+ * Provide `options` to indicate whether `func` should be invoked on the
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
+ * with the last arguments provided to the debounced function. Subsequent
+ * calls to the debounced function return the result of the last `func`
+ * invocation.
+ *
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
+ * invoked on the trailing edge of the timeout only if the debounced function
+ * is invoked more than once during the `wait` timeout.
+ *
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
+ *
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
+ * for details over the differences between `_.debounce` and `_.throttle`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to debounce.
+ * @param {number} [wait=0] The number of milliseconds to delay.
+ * @param {Object} [options={}] The options object.
+ * @param {boolean} [options.leading=false]
+ *  Specify invoking on the leading edge of the timeout.
+ * @param {number} [options.maxWait]
+ *  The maximum time `func` is allowed to be delayed before it's invoked.
+ * @param {boolean} [options.trailing=true]
+ *  Specify invoking on the trailing edge of the timeout.
+ * @returns {Function} Returns the new debounced function.
+ * @example
+ *
+ * // Avoid costly calculations while the window size is in flux.
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
+ *
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
+ *   'leading': true,
+ *   'trailing': false
+ * }));
+ *
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
+ * var source = new EventSource('/stream');
+ * jQuery(source).on('message', debounced);
+ *
+ * // Cancel the trailing debounced invocation.
+ * jQuery(window).on('popstate', debounced.cancel);
+ */
+function debounce(func, wait, options) {
+  var lastArgs,
+      lastThis,
+      maxWait,
+      result,
+      timerId,
+      lastCallTime,
+      lastInvokeTime = 0,
+      leading = false,
+      maxing = false,
+      trailing = true;
+
+  if (typeof func != 'function') {
+    throw new TypeError(FUNC_ERROR_TEXT);
+  }
+  wait = toNumber(wait) || 0;
+  if (isObject(options)) {
+    leading = !!options.leading;
+    maxing = 'maxWait' in options;
+    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
+    trailing = 'trailing' in options ? !!options.trailing : trailing;
+  }
 
-                            if (pointInsidePolygonPoints(x, y, points)) {
-                                return true;
-                            } // Check bottom right quarter circle
+  function invokeFunc(time) {
+    var args = lastArgs,
+        thisArg = lastThis;
 
+    lastArgs = lastThis = undefined;
+    lastInvokeTime = time;
+    result = func.apply(thisArg, args);
+    return result;
+  }
 
-                            if (checkInEllipse(x, y, diam, diam, centerX + width / 2 - cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
-                                return true;
-                            } // Check bottom left quarter circle
+  function leadingEdge(time) {
+    // Reset any `maxWait` timer.
+    lastInvokeTime = time;
+    // Start the timer for the trailing edge.
+    timerId = setTimeout(timerExpired, wait);
+    // Invoke the leading edge.
+    return leading ? invokeFunc(time) : result;
+  }
 
+  function remainingWait(time) {
+    var timeSinceLastCall = time - lastCallTime,
+        timeSinceLastInvoke = time - lastInvokeTime,
+        result = wait - timeSinceLastCall;
 
-                            if (checkInEllipse(x, y, diam, diam, centerX - width / 2 + cornerRadius, centerY + height / 2 - cornerRadius, padding)) {
-                                return true;
-                            }
+    return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
+  }
 
-                            return false;
-                        }
-                    };
-                };
+  function shouldInvoke(time) {
+    var timeSinceLastCall = time - lastCallTime,
+        timeSinceLastInvoke = time - lastInvokeTime;
 
-                BRp$d.registerNodeShapes = function () {
-                    var nodeShapes = this.nodeShapes = {};
-                    var renderer = this;
-                    this.generateEllipse();
-                    this.generatePolygon('triangle', generateUnitNgonPointsFitToSquare(3, 0));
-                    this.generateRoundPolygon('round-triangle', generateUnitNgonPointsFitToSquare(3, 0));
-                    this.generatePolygon('rectangle', generateUnitNgonPointsFitToSquare(4, 0));
-                    nodeShapes['square'] = nodeShapes['rectangle'];
-                    this.generateRoundRectangle();
-                    this.generateCutRectangle();
-                    this.generateBarrel();
-                    this.generateBottomRoundrectangle();
-                    {
-                        var diamondPoints = [0, 1, 1, 0, 0, -1, -1, 0];
-                        this.generatePolygon('diamond', diamondPoints);
-                        this.generateRoundPolygon('round-diamond', diamondPoints);
-                    }
-                    this.generatePolygon('pentagon', generateUnitNgonPointsFitToSquare(5, 0));
-                    this.generateRoundPolygon('round-pentagon', generateUnitNgonPointsFitToSquare(5, 0));
-                    this.generatePolygon('hexagon', generateUnitNgonPointsFitToSquare(6, 0));
-                    this.generateRoundPolygon('round-hexagon', generateUnitNgonPointsFitToSquare(6, 0));
-                    this.generatePolygon('heptagon', generateUnitNgonPointsFitToSquare(7, 0));
-                    this.generateRoundPolygon('round-heptagon', generateUnitNgonPointsFitToSquare(7, 0));
-                    this.generatePolygon('octagon', generateUnitNgonPointsFitToSquare(8, 0));
-                    this.generateRoundPolygon('round-octagon', generateUnitNgonPointsFitToSquare(8, 0));
-                    var star5Points = new Array(20);
-                    {
-                        var outerPoints = generateUnitNgonPoints(5, 0);
-                        var innerPoints = generateUnitNgonPoints(5, Math.PI / 5); // Outer radius is 1; inner radius of star is smaller
-
-                        var innerRadius = 0.5 * (3 - Math.sqrt(5));
-                        innerRadius *= 1.57;
-
-                        for (var i = 0; i < innerPoints.length / 2; i++) {
-                            innerPoints[i * 2] *= innerRadius;
-                            innerPoints[i * 2 + 1] *= innerRadius;
-                        }
+    // Either this is the first call, activity has stopped and we're at the
+    // trailing edge, the system time has gone backwards and we're treating
+    // it as the trailing edge, or we've hit the `maxWait` limit.
+    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
+      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
+  }
 
-                        for (var i = 0; i < 20 / 4; i++) {
-                            star5Points[i * 4] = outerPoints[i * 2];
-                            star5Points[i * 4 + 1] = outerPoints[i * 2 + 1];
-                            star5Points[i * 4 + 2] = innerPoints[i * 2];
-                            star5Points[i * 4 + 3] = innerPoints[i * 2 + 1];
-                        }
-                    }
-                    star5Points = fitPolygonToSquare(star5Points);
-                    this.generatePolygon('star', star5Points);
-                    this.generatePolygon('vee', [-1, -1, 0, -0.333, 1, -1, 0, 1]);
-                    this.generatePolygon('rhomboid', [-1, -1, 0.333, -1, 1, 1, -0.333, 1]);
-                    this.nodeShapes['concavehexagon'] = this.generatePolygon('concave-hexagon', [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]);
-                    {
-                        var tagPoints = [-1, -1, 0.25, -1, 1, 0, 0.25, 1, -1, 1];
-                        this.generatePolygon('tag', tagPoints);
-                        this.generateRoundPolygon('round-tag', tagPoints);
-                    }
+  function timerExpired() {
+    var time = now();
+    if (shouldInvoke(time)) {
+      return trailingEdge(time);
+    }
+    // Restart the timer.
+    timerId = setTimeout(timerExpired, remainingWait(time));
+  }
 
-                    nodeShapes.makePolygon = function (points) {
-                        // use caching on user-specified polygons so they are as fast as native shapes
-                        var key = points.join('$');
-                        var name = 'polygon-' + key;
-                        var shape;
+  function trailingEdge(time) {
+    timerId = undefined;
 
-                        if (shape = this[name]) {
-                            // got cached shape
-                            return shape;
-                        } // create and cache new shape
+    // Only invoke if we have `lastArgs` which means `func` has been
+    // debounced at least once.
+    if (trailing && lastArgs) {
+      return invokeFunc(time);
+    }
+    lastArgs = lastThis = undefined;
+    return result;
+  }
 
+  function cancel() {
+    if (timerId !== undefined) {
+      clearTimeout(timerId);
+    }
+    lastInvokeTime = 0;
+    lastArgs = lastCallTime = lastThis = timerId = undefined;
+  }
 
-                        return renderer.generatePolygon(name, points);
-                    };
-                };
+  function flush() {
+    return timerId === undefined ? result : trailingEdge(now());
+  }
 
-                var BRp$e = {};
+  function debounced() {
+    var time = now(),
+        isInvoking = shouldInvoke(time);
+
+    lastArgs = arguments;
+    lastThis = this;
+    lastCallTime = time;
+
+    if (isInvoking) {
+      if (timerId === undefined) {
+        return leadingEdge(lastCallTime);
+      }
+      if (maxing) {
+        // Handle invocations in a tight loop.
+        timerId = setTimeout(timerExpired, wait);
+        return invokeFunc(lastCallTime);
+      }
+    }
+    if (timerId === undefined) {
+      timerId = setTimeout(timerExpired, wait);
+    }
+    return result;
+  }
+  debounced.cancel = cancel;
+  debounced.flush = flush;
+  return debounced;
+}
+
+/**
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+ * @example
+ *
+ * _.isObject({});
+ * // => true
+ *
+ * _.isObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isObject(_.noop);
+ * // => true
+ *
+ * _.isObject(null);
+ * // => false
+ */
+function isObject(value) {
+  var type = typeof value;
+  return !!value && (type == 'object' || type == 'function');
+}
+
+/**
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
+ * and has a `typeof` result of "object".
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
+ * @example
+ *
+ * _.isObjectLike({});
+ * // => true
+ *
+ * _.isObjectLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isObjectLike(_.noop);
+ * // => false
+ *
+ * _.isObjectLike(null);
+ * // => false
+ */
+function isObjectLike(value) {
+  return !!value && typeof value == 'object';
+}
 
-                BRp$e.timeToRender = function () {
-                    return this.redrawTotalTime / this.redrawCount;
-                };
+/**
+ * Checks if `value` is classified as a `Symbol` primitive or object.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
+ * @example
+ *
+ * _.isSymbol(Symbol.iterator);
+ * // => true
+ *
+ * _.isSymbol('abc');
+ * // => false
+ */
+function isSymbol(value) {
+  return typeof value == 'symbol' ||
+    (isObjectLike(value) && objectToString.call(value) == symbolTag);
+}
 
-                BRp$e.redraw = function (options) {
-                    options = options || staticEmptyObject();
-                    var r = this;
+/**
+ * Converts `value` to a number.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to process.
+ * @returns {number} Returns the number.
+ * @example
+ *
+ * _.toNumber(3.2);
+ * // => 3.2
+ *
+ * _.toNumber(Number.MIN_VALUE);
+ * // => 5e-324
+ *
+ * _.toNumber(Infinity);
+ * // => Infinity
+ *
+ * _.toNumber('3.2');
+ * // => 3.2
+ */
+function toNumber(value) {
+  if (typeof value == 'number') {
+    return value;
+  }
+  if (isSymbol(value)) {
+    return NAN;
+  }
+  if (isObject(value)) {
+    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
+    value = isObject(other) ? (other + '') : other;
+  }
+  if (typeof value != 'string') {
+    return value === 0 ? value : +value;
+  }
+  value = value.replace(reTrim, '');
+  var isBinary = reIsBinary.test(value);
+  return (isBinary || reIsOctal.test(value))
+    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
+    : (reIsBadHex.test(value) ? NAN : +value);
+}
 
-                    if (r.averageRedrawTime === undefined) {
-                        r.averageRedrawTime = 0;
-                    }
+module.exports = debounce;
 
-                    if (r.lastRedrawTime === undefined) {
-                        r.lastRedrawTime = 0;
-                    }
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
 
-                    if (r.lastDrawTime === undefined) {
-                        r.lastDrawTime = 0;
-                    }
+/***/ }),
 
-                    r.requestedFrame = true;
-                    r.renderOptions = options;
-                };
+/***/ "./node_modules/lodash/_DataView.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_DataView.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                BRp$e.beforeRender = function (fn, priority) {
-                    // the renderer can't add tick callbacks when destroyed
-                    if (this.destroyed) {
-                        return;
-                    }
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
+    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                    if (priority == null) {
-                        error('Priority is not optional for beforeRender');
-                    }
+/* Built-in method references that are verified to be native. */
+var DataView = getNative(root, 'DataView');
 
-                    var cbs = this.beforeRenderCallbacks;
-                    cbs.push({
-                        fn: fn,
-                        priority: priority
-                    }); // higher priority callbacks executed first
+module.exports = DataView;
 
-                    cbs.sort(function (a, b) {
-                        return b.priority - a.priority;
-                    });
-                };
 
-                var beforeRenderCallbacks = function beforeRenderCallbacks(r, willDraw, startTime) {
-                    var cbs = r.beforeRenderCallbacks;
+/***/ }),
 
-                    for (var i = 0; i < cbs.length; i++) {
-                        cbs[i].fn(willDraw, startTime);
-                    }
-                };
+/***/ "./node_modules/lodash/_Hash.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/_Hash.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                BRp$e.startRenderLoop = function () {
-                    var r = this;
-                    var cy = r.cy;
+var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
+    hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
+    hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
+    hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
+    hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
 
-                    if (r.renderLoopStarted) {
-                        return;
-                    } else {
-                        r.renderLoopStarted = true;
-                    }
+/**
+ * Creates a hash object.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function Hash(entries) {
+  var index = -1,
+      length = entries == null ? 0 : entries.length;
+
+  this.clear();
+  while (++index < length) {
+    var entry = entries[index];
+    this.set(entry[0], entry[1]);
+  }
+}
 
-                    var renderFn = function renderFn(requestTime) {
-                        if (r.destroyed) {
-                            return;
-                        }
+// Add methods to `Hash`.
+Hash.prototype.clear = hashClear;
+Hash.prototype['delete'] = hashDelete;
+Hash.prototype.get = hashGet;
+Hash.prototype.has = hashHas;
+Hash.prototype.set = hashSet;
 
-                        if (cy.batching()) ; else if (r.requestedFrame && !r.skipFrame) {
-                            beforeRenderCallbacks(r, true, requestTime);
-                            var startTime = performanceNow();
-                            r.render(r.renderOptions);
-                            var endTime = r.lastDrawTime = performanceNow();
+module.exports = Hash;
 
-                            if (r.averageRedrawTime === undefined) {
-                                r.averageRedrawTime = endTime - startTime;
-                            }
 
-                            if (r.redrawCount === undefined) {
-                                r.redrawCount = 0;
-                            }
+/***/ }),
 
-                            r.redrawCount++;
+/***/ "./node_modules/lodash/_ListCache.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_ListCache.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            if (r.redrawTotalTime === undefined) {
-                                r.redrawTotalTime = 0;
-                            }
+var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
+    listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
+    listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
+    listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
+    listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
 
-                            var duration = endTime - startTime;
-                            r.redrawTotalTime += duration;
-                            r.lastRedrawTime = duration; // use a weighted average with a bias from the previous average so we don't spike so easily
+/**
+ * Creates an list cache object.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function ListCache(entries) {
+  var index = -1,
+      length = entries == null ? 0 : entries.length;
+
+  this.clear();
+  while (++index < length) {
+    var entry = entries[index];
+    this.set(entry[0], entry[1]);
+  }
+}
 
-                            r.averageRedrawTime = r.averageRedrawTime / 2 + duration / 2;
-                            r.requestedFrame = false;
-                        } else {
-                            beforeRenderCallbacks(r, false, requestTime);
-                        }
+// Add methods to `ListCache`.
+ListCache.prototype.clear = listCacheClear;
+ListCache.prototype['delete'] = listCacheDelete;
+ListCache.prototype.get = listCacheGet;
+ListCache.prototype.has = listCacheHas;
+ListCache.prototype.set = listCacheSet;
 
-                        r.skipFrame = false;
-                        requestAnimationFrame(renderFn);
-                    };
+module.exports = ListCache;
 
-                    requestAnimationFrame(renderFn);
-                };
 
-                var BaseRenderer = function BaseRenderer(options) {
-                    this.init(options);
-                };
+/***/ }),
 
-                var BR = BaseRenderer;
-                var BRp$f = BR.prototype;
-                BRp$f.clientFunctions = ['redrawHint', 'render', 'renderTo', 'matchCanvasSize', 'nodeShapeImpl', 'arrowShapeImpl'];
-
-                BRp$f.init = function (options) {
-                    var r = this;
-                    r.options = options;
-                    r.cy = options.cy;
-                    var ctr = r.container = options.cy.container(); // prepend a stylesheet in the head such that
-
-                    if (window$1) {
-                        var document = window$1.document;
-                        var head = document.head;
-                        var stylesheetId = '__________cytoscape_stylesheet';
-                        var className = '__________cytoscape_container';
-                        var stylesheetAlreadyExists = document.getElementById(stylesheetId) != null;
-
-                        if (ctr.className.indexOf(className) < 0) {
-                            ctr.className = (ctr.className || '') + ' ' + className;
-                        }
+/***/ "./node_modules/lodash/_Map.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/_Map.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (!stylesheetAlreadyExists) {
-                            var stylesheet = document.createElement('style');
-                            stylesheet.id = stylesheetId;
-                            stylesheet.innerHTML = '.' + className + ' { position: relative; }';
-                            head.insertBefore(stylesheet, head.children[0]); // first so lowest priority
-                        }
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
+    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                        var computedStyle = window$1.getComputedStyle(ctr);
-                        var position = computedStyle.getPropertyValue('position');
+/* Built-in method references that are verified to be native. */
+var Map = getNative(root, 'Map');
 
-                        if (position === 'static') {
-                            warn('A Cytoscape container has style position:static and so can not use UI extensions properly');
-                        }
-                    }
+module.exports = Map;
 
-                    r.selection = [undefined, undefined, undefined, undefined, 0]; // Coordinates for selection box, plus enabled flag
-
-                    r.bezierProjPcts = [0.05, 0.225, 0.4, 0.5, 0.6, 0.775, 0.95]; //--Pointer-related data
-
-                    r.hoverData = {
-                        down: null,
-                        last: null,
-                        downTime: null,
-                        triggerMode: null,
-                        dragging: false,
-                        initialPan: [null, null],
-                        capture: false
-                    };
-                    r.dragData = {
-                        possibleDragElements: []
-                    };
-                    r.touchData = {
-                        start: null,
-                        capture: false,
-                        // These 3 fields related to tap, taphold events
-                        startPosition: [null, null, null, null, null, null],
-                        singleTouchStartTime: null,
-                        singleTouchMoved: true,
-                        now: [null, null, null, null, null, null],
-                        earlier: [null, null, null, null, null, null]
-                    };
-                    r.redraws = 0;
-                    r.showFps = options.showFps;
-                    r.debug = options.debug;
-                    r.hideEdgesOnViewport = options.hideEdgesOnViewport;
-                    r.textureOnViewport = options.textureOnViewport;
-                    r.wheelSensitivity = options.wheelSensitivity;
-                    r.motionBlurEnabled = options.motionBlur; // on by default
-
-                    r.forcedPixelRatio = number(options.pixelRatio) ? options.pixelRatio : null;
-                    r.motionBlur = options.motionBlur; // for initial kick off
-
-                    r.motionBlurOpacity = options.motionBlurOpacity;
-                    r.motionBlurTransparency = 1 - r.motionBlurOpacity;
-                    r.motionBlurPxRatio = 1;
-                    r.mbPxRBlurry = 1; //0.8;
-
-                    r.minMbLowQualFrames = 4;
-                    r.fullQualityMb = false;
-                    r.clearedForMotionBlur = [];
-                    r.desktopTapThreshold = options.desktopTapThreshold;
-                    r.desktopTapThreshold2 = options.desktopTapThreshold * options.desktopTapThreshold;
-                    r.touchTapThreshold = options.touchTapThreshold;
-                    r.touchTapThreshold2 = options.touchTapThreshold * options.touchTapThreshold;
-                    r.tapholdDuration = 500;
-                    r.bindings = [];
-                    r.beforeRenderCallbacks = [];
-                    r.beforeRenderPriorities = {
-                        // higher priority execs before lower one
-                        animations: 400,
-                        eleCalcs: 300,
-                        eleTxrDeq: 200,
-                        lyrTxrDeq: 150,
-                        lyrTxrSkip: 100
-                    };
-                    r.registerNodeShapes();
-                    r.registerArrowShapes();
-                    r.registerCalculationListeners();
-                };
 
-                BRp$f.notify = function (eventName, eles) {
-                    var r = this;
-                    var cy = r.cy; // the renderer can't be notified after it's destroyed
+/***/ }),
 
-                    if (this.destroyed) {
-                        return;
-                    }
+/***/ "./node_modules/lodash/_MapCache.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_MapCache.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (eventName === 'init') {
-                        r.load();
-                        return;
-                    }
+var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
+    mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
+    mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
+    mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
+    mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
 
-                    if (eventName === 'destroy') {
-                        r.destroy();
-                        return;
-                    }
+/**
+ * Creates a map cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function MapCache(entries) {
+  var index = -1,
+      length = entries == null ? 0 : entries.length;
+
+  this.clear();
+  while (++index < length) {
+    var entry = entries[index];
+    this.set(entry[0], entry[1]);
+  }
+}
 
-                    if (eventName === 'add' || eventName === 'remove' || eventName === 'move' && cy.hasCompoundNodes() || eventName === 'load' || eventName === 'zorder' || eventName === 'mount') {
-                        r.invalidateCachedZSortedEles();
-                    }
+// Add methods to `MapCache`.
+MapCache.prototype.clear = mapCacheClear;
+MapCache.prototype['delete'] = mapCacheDelete;
+MapCache.prototype.get = mapCacheGet;
+MapCache.prototype.has = mapCacheHas;
+MapCache.prototype.set = mapCacheSet;
 
-                    if (eventName === 'viewport') {
-                        r.redrawHint('select', true);
-                    }
+module.exports = MapCache;
 
-                    if (eventName === 'load' || eventName === 'resize' || eventName === 'mount') {
-                        r.invalidateContainerClientCoordsCache();
-                        r.matchCanvasSize(r.container);
-                    }
 
-                    r.redrawHint('eles', true);
-                    r.redrawHint('drag', true);
-                    this.startRenderLoop();
-                    this.redraw();
-                };
+/***/ }),
 
-                BRp$f.destroy = function () {
-                    var r = this;
-                    r.destroyed = true;
-                    r.cy.stopAnimationLoop();
+/***/ "./node_modules/lodash/_Promise.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_Promise.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    for (var i = 0; i < r.bindings.length; i++) {
-                        var binding = r.bindings[i];
-                        var b = binding;
-                        var tgt = b.target;
-                        (tgt.off || tgt.removeEventListener).apply(tgt, b.args);
-                    }
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
+    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                    r.bindings = [];
-                    r.beforeRenderCallbacks = [];
-                    r.onUpdateEleCalcsFns = [];
+/* Built-in method references that are verified to be native. */
+var Promise = getNative(root, 'Promise');
 
-                    if (r.removeObserver) {
-                        r.removeObserver.disconnect();
-                    }
+module.exports = Promise;
 
-                    if (r.styleObserver) {
-                        r.styleObserver.disconnect();
-                    }
 
-                    if (r.resizeObserver) {
-                        r.resizeObserver.disconnect();
-                    }
+/***/ }),
 
-                    if (r.labelCalcDiv) {
-                        try {
-                            document.body.removeChild(r.labelCalcDiv); // eslint-disable-line no-undef
-                        } catch (e) {// ie10 issue #1014
-                        }
-                    }
-                };
+/***/ "./node_modules/lodash/_Set.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/_Set.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                BRp$f.isHeadless = function () {
-                    return false;
-                };
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
+    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                [BRp, BRp$a, BRp$b, BRp$c, BRp$d, BRp$e].forEach(function (props) {
-                    extend(BRp$f, props);
-                });
+/* Built-in method references that are verified to be native. */
+var Set = getNative(root, 'Set');
 
-                var fullFpsTime = 1000 / 60; // assume 60 frames per second
+module.exports = Set;
 
-                var defs = {
-                    setupDequeueing: function setupDequeueing(opts) {
-                        return function setupDequeueingImpl() {
-                            var self = this;
-                            var r = this.renderer;
 
-                            if (self.dequeueingSetup) {
-                                return;
-                            } else {
-                                self.dequeueingSetup = true;
-                            }
+/***/ }),
 
-                            var queueRedraw = util(function () {
-                                r.redrawHint('eles', true);
-                                r.redrawHint('drag', true);
-                                r.redraw();
-                            }, opts.deqRedrawThreshold);
-
-                            var dequeue = function dequeue(willDraw, frameStartTime) {
-                                var startTime = performanceNow();
-                                var avgRenderTime = r.averageRedrawTime;
-                                var renderTime = r.lastRedrawTime;
-                                var deqd = [];
-                                var extent = r.cy.extent();
-                                var pixelRatio = r.getPixelRatio(); // if we aren't in a tick that causes a draw, then the rendered style
-                                // queue won't automatically be flushed before dequeueing starts
-
-                                if (!willDraw) {
-                                    r.flushRenderedStyleQueue();
-                                }
-
-                                while (true) {
-                                    // eslint-disable-line no-constant-condition
-                                    var now = performanceNow();
-                                    var duration = now - startTime;
-                                    var frameDuration = now - frameStartTime;
-
-                                    if (renderTime < fullFpsTime) {
-                                        // if we're rendering faster than the ideal fps, then do dequeueing
-                                        // during all of the remaining frame time
-                                        var timeAvailable = fullFpsTime - (willDraw ? avgRenderTime : 0);
-
-                                        if (frameDuration >= opts.deqFastCost * timeAvailable) {
-                                            break;
-                                        }
-                                    } else {
-                                        if (willDraw) {
-                                            if (duration >= opts.deqCost * renderTime || duration >= opts.deqAvgCost * avgRenderTime) {
-                                                break;
-                                            }
-                                        } else if (frameDuration >= opts.deqNoDrawCost * fullFpsTime) {
-                                            break;
-                                        }
-                                    }
-
-                                    var thisDeqd = opts.deq(self, pixelRatio, extent);
-
-                                    if (thisDeqd.length > 0) {
-                                        for (var i = 0; i < thisDeqd.length; i++) {
-                                            deqd.push(thisDeqd[i]);
-                                        }
-                                    } else {
-                                        break;
-                                    }
-                                } // callbacks on dequeue
-
-
-                                if (deqd.length > 0) {
-                                    opts.onDeqd(self, deqd);
-
-                                    if (!willDraw && opts.shouldRedraw(self, deqd, pixelRatio, extent)) {
-                                        queueRedraw();
-                                    }
-                                }
-                            };
-
-                            var priority = opts.priority || noop;
-                            r.beforeRender(dequeue, priority(self));
-                        };
-                    }
-                };
+/***/ "./node_modules/lodash/_SetCache.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_SetCache.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-// Uses keys so elements may share the same cache.
+var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
+    setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
+    setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
 
-                var ElementTextureCacheLookup =
-                    /*#__PURE__*/
-                    function () {
-                        function ElementTextureCacheLookup(getKey) {
-                            var doesEleInvalidateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : falsify;
+/**
+ *
+ * Creates an array cache object to store unique values.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [values] The values to cache.
+ */
+function SetCache(values) {
+  var index = -1,
+      length = values == null ? 0 : values.length;
 
-                            _classCallCheck(this, ElementTextureCacheLookup);
+  this.__data__ = new MapCache;
+  while (++index < length) {
+    this.add(values[index]);
+  }
+}
 
-                            this.idsByKey = new Map$1();
-                            this.keyForId = new Map$1();
-                            this.cachesByLvl = new Map$1();
-                            this.lvls = [];
-                            this.getKey = getKey;
-                            this.doesEleInvalidateKey = doesEleInvalidateKey;
-                        }
+// Add methods to `SetCache`.
+SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
+SetCache.prototype.has = setCacheHas;
 
-                        _createClass(ElementTextureCacheLookup, [{
-                            key: "getIdsFor",
-                            value: function getIdsFor(key) {
-                                if (key == null) {
-                                    error("Can not get id list for null key");
-                                }
+module.exports = SetCache;
 
-                                var idsByKey = this.idsByKey;
-                                var ids = this.idsByKey.get(key);
 
-                                if (!ids) {
-                                    ids = new Set$1();
-                                    idsByKey.set(key, ids);
-                                }
+/***/ }),
 
-                                return ids;
-                            }
-                        }, {
-                            key: "addIdForKey",
-                            value: function addIdForKey(key, id) {
-                                if (key != null) {
-                                    this.getIdsFor(key).add(id);
-                                }
-                            }
-                        }, {
-                            key: "deleteIdForKey",
-                            value: function deleteIdForKey(key, id) {
-                                if (key != null) {
-                                    this.getIdsFor(key)["delete"](id);
-                                }
-                            }
-                        }, {
-                            key: "getNumberOfIdsForKey",
-                            value: function getNumberOfIdsForKey(key) {
-                                if (key == null) {
-                                    return 0;
-                                } else {
-                                    return this.getIdsFor(key).size;
-                                }
-                            }
-                        }, {
-                            key: "updateKeyMappingFor",
-                            value: function updateKeyMappingFor(ele) {
-                                var id = ele.id();
-                                var prevKey = this.keyForId.get(id);
-                                var currKey = this.getKey(ele);
-                                this.deleteIdForKey(prevKey, id);
-                                this.addIdForKey(currKey, id);
-                                this.keyForId.set(id, currKey);
-                            }
-                        }, {
-                            key: "deleteKeyMappingFor",
-                            value: function deleteKeyMappingFor(ele) {
-                                var id = ele.id();
-                                var prevKey = this.keyForId.get(id);
-                                this.deleteIdForKey(prevKey, id);
-                                this.keyForId["delete"](id);
-                            }
-                        }, {
-                            key: "keyHasChangedFor",
-                            value: function keyHasChangedFor(ele) {
-                                var id = ele.id();
-                                var prevKey = this.keyForId.get(id);
-                                var newKey = this.getKey(ele);
-                                return prevKey !== newKey;
-                            }
-                        }, {
-                            key: "isInvalid",
-                            value: function isInvalid(ele) {
-                                return this.keyHasChangedFor(ele) || this.doesEleInvalidateKey(ele);
-                            }
-                        }, {
-                            key: "getCachesAt",
-                            value: function getCachesAt(lvl) {
-                                var cachesByLvl = this.cachesByLvl,
-                                    lvls = this.lvls;
-                                var caches = cachesByLvl.get(lvl);
-
-                                if (!caches) {
-                                    caches = new Map$1();
-                                    cachesByLvl.set(lvl, caches);
-                                    lvls.push(lvl);
-                                }
-
-                                return caches;
-                            }
-                        }, {
-                            key: "getCache",
-                            value: function getCache(key, lvl) {
-                                return this.getCachesAt(lvl).get(key);
-                            }
-                        }, {
-                            key: "get",
-                            value: function get(ele, lvl) {
-                                var key = this.getKey(ele);
-                                var cache = this.getCache(key, lvl); // getting for an element may need to add to the id list b/c eles can share keys
+/***/ "./node_modules/lodash/_Stack.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/_Stack.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
+    stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
+    stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
+    stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
+    stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
+    stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
+
+/**
+ * Creates a stack cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+function Stack(entries) {
+  var data = this.__data__ = new ListCache(entries);
+  this.size = data.size;
+}
 
-                                if (cache != null) {
-                                    this.updateKeyMappingFor(ele);
-                                }
+// Add methods to `Stack`.
+Stack.prototype.clear = stackClear;
+Stack.prototype['delete'] = stackDelete;
+Stack.prototype.get = stackGet;
+Stack.prototype.has = stackHas;
+Stack.prototype.set = stackSet;
 
-                                return cache;
-                            }
-                        }, {
-                            key: "getForCachedKey",
-                            value: function getForCachedKey(ele, lvl) {
-                                var key = this.keyForId.get(ele.id()); // n.b. use cached key, not newly computed key
+module.exports = Stack;
 
-                                var cache = this.getCache(key, lvl);
-                                return cache;
-                            }
-                        }, {
-                            key: "hasCache",
-                            value: function hasCache(key, lvl) {
-                                return this.getCachesAt(lvl).has(key);
-                            }
-                        }, {
-                            key: "has",
-                            value: function has(ele, lvl) {
-                                var key = this.getKey(ele);
-                                return this.hasCache(key, lvl);
-                            }
-                        }, {
-                            key: "setCache",
-                            value: function setCache(key, lvl, cache) {
-                                cache.key = key;
-                                this.getCachesAt(lvl).set(key, cache);
-                            }
-                        }, {
-                            key: "set",
-                            value: function set(ele, lvl, cache) {
-                                var key = this.getKey(ele);
-                                this.setCache(key, lvl, cache);
-                                this.updateKeyMappingFor(ele);
-                            }
-                        }, {
-                            key: "deleteCache",
-                            value: function deleteCache(key, lvl) {
-                                this.getCachesAt(lvl)["delete"](key);
-                            }
-                        }, {
-                            key: "delete",
-                            value: function _delete(ele, lvl) {
-                                var key = this.getKey(ele);
-                                this.deleteCache(key, lvl);
-                            }
-                        }, {
-                            key: "invalidateKey",
-                            value: function invalidateKey(key) {
-                                var _this = this;
-
-                                this.lvls.forEach(function (lvl) {
-                                    return _this.deleteCache(key, lvl);
-                                });
-                            } // returns true if no other eles reference the invalidated cache (n.b. other eles may need the cache with the same key)
-
-                        }, {
-                            key: "invalidate",
-                            value: function invalidate(ele) {
-                                var id = ele.id();
-                                var key = this.keyForId.get(id); // n.b. use stored key rather than current (potential key)
-
-                                this.deleteKeyMappingFor(ele);
-                                var entireKeyInvalidated = this.doesEleInvalidateKey(ele);
-
-                                if (entireKeyInvalidated) {
-                                    // clear mapping for current key
-                                    this.invalidateKey(key);
-                                }
-
-                                return entireKeyInvalidated || this.getNumberOfIdsForKey(key) === 0;
-                            }
-                        }]);
 
-                        return ElementTextureCacheLookup;
-                    }();
+/***/ }),
 
-                var minTxrH = 25; // the size of the texture cache for small height eles (special case)
+/***/ "./node_modules/lodash/_Symbol.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/_Symbol.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var txrStepH = 50; // the min size of the regular cache, and the size it increases with each step up
+var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                var minLvl = -4; // when scaling smaller than that we don't need to re-render
+/** Built-in value references. */
+var Symbol = root.Symbol;
 
-                var maxLvl = 3; // when larger than this scale just render directly (caching is not helpful)
+module.exports = Symbol;
 
-                var maxZoom = 7.99; // beyond this zoom level, layered textures are not used
 
-                var eleTxrSpacing = 8; // spacing between elements on textures to avoid blitting overlaps
+/***/ }),
 
-                var defTxrWidth = 1024; // default/minimum texture width
+/***/ "./node_modules/lodash/_Uint8Array.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_Uint8Array.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var maxTxrW = 1024; // the maximum width of a texture
+var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                var maxTxrH = 1024; // the maximum height of a texture
+/** Built-in value references. */
+var Uint8Array = root.Uint8Array;
 
-                var minUtility = 0.2; // if usage of texture is less than this, it is retired
+module.exports = Uint8Array;
 
-                var maxFullness = 0.8; // fullness of texture after which queue removal is checked
 
-                var maxFullnessChecks = 10; // dequeued after this many checks
+/***/ }),
 
-                var deqCost = 0.15; // % of add'l rendering cost allowed for dequeuing ele caches each frame
+/***/ "./node_modules/lodash/_WeakMap.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_WeakMap.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var deqAvgCost = 0.1; // % of add'l rendering cost compared to average overall redraw time
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
+    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                var deqNoDrawCost = 0.9; // % of avg frame time that can be used for dequeueing when not drawing
+/* Built-in method references that are verified to be native. */
+var WeakMap = getNative(root, 'WeakMap');
 
-                var deqFastCost = 0.9; // % of frame time to be used when >60fps
+module.exports = WeakMap;
 
-                var deqRedrawThreshold = 100; // time to batch redraws together from dequeueing to allow more dequeueing calcs to happen in the meanwhile
 
-                var maxDeqSize = 1; // number of eles to dequeue and render at higher texture in each batch
+/***/ }),
 
-                var getTxrReasons = {
-                    dequeue: 'dequeue',
-                    downscale: 'downscale',
-                    highQuality: 'highQuality'
-                };
-                var initDefaults = defaults({
-                    getKey: null,
-                    doesEleInvalidateKey: falsify,
-                    drawElement: null,
-                    getBoundingBox: null,
-                    getRotationPoint: null,
-                    getRotationOffset: null,
-                    isVisible: trueify,
-                    allowEdgeTxrCaching: true,
-                    allowParentTxrCaching: true
-                });
+/***/ "./node_modules/lodash/_apply.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/_apply.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                var ElementTextureCache = function ElementTextureCache(renderer, initOptions) {
-                    var self = this;
-                    self.renderer = renderer;
-                    self.onDequeues = [];
-                    var opts = initDefaults(initOptions);
-                    extend(self, opts);
-                    self.lookup = new ElementTextureCacheLookup(opts.getKey, opts.doesEleInvalidateKey);
-                    self.setupDequeueing();
-                };
+/**
+ * A faster alternative to `Function#apply`, this function invokes `func`
+ * with the `this` binding of `thisArg` and the arguments of `args`.
+ *
+ * @private
+ * @param {Function} func The function to invoke.
+ * @param {*} thisArg The `this` binding of `func`.
+ * @param {Array} args The arguments to invoke `func` with.
+ * @returns {*} Returns the result of `func`.
+ */
+function apply(func, thisArg, args) {
+  switch (args.length) {
+    case 0: return func.call(thisArg);
+    case 1: return func.call(thisArg, args[0]);
+    case 2: return func.call(thisArg, args[0], args[1]);
+    case 3: return func.call(thisArg, args[0], args[1], args[2]);
+  }
+  return func.apply(thisArg, args);
+}
 
-                var ETCp = ElementTextureCache.prototype;
-                ETCp.reasons = getTxrReasons; // the list of textures in which new subtextures for elements can be placed
+module.exports = apply;
 
-                ETCp.getTextureQueue = function (txrH) {
-                    var self = this;
-                    self.eleImgCaches = self.eleImgCaches || {};
-                    return self.eleImgCaches[txrH] = self.eleImgCaches[txrH] || [];
-                }; // the list of usused textures which can be recycled (in use in texture queue)
 
+/***/ }),
 
-                ETCp.getRetiredTextureQueue = function (txrH) {
-                    var self = this;
-                    var rtxtrQs = self.eleImgCaches.retired = self.eleImgCaches.retired || {};
-                    var rtxtrQ = rtxtrQs[txrH] = rtxtrQs[txrH] || [];
-                    return rtxtrQ;
-                }; // queue of element draw requests at different scale levels
+/***/ "./node_modules/lodash/_arrayEach.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_arrayEach.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/**
+ * A specialized version of `_.forEach` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns `array`.
+ */
+function arrayEach(array, iteratee) {
+  var index = -1,
+      length = array == null ? 0 : array.length;
 
-                ETCp.getElementQueue = function () {
-                    var self = this;
-                    var q = self.eleCacheQueue = self.eleCacheQueue || new Heap(function (a, b) {
-                        return b.reqs - a.reqs;
-                    });
-                    return q;
-                }; // queue of element draw requests at different scale levels (element id lookup)
+  while (++index < length) {
+    if (iteratee(array[index], index, array) === false) {
+      break;
+    }
+  }
+  return array;
+}
 
+module.exports = arrayEach;
 
-                ETCp.getElementKeyToQueue = function () {
-                    var self = this;
-                    var k2q = self.eleKeyToCacheQueue = self.eleKeyToCacheQueue || {};
-                    return k2q;
-                };
 
-                ETCp.getElement = function (ele, bb, pxRatio, lvl, reason) {
-                    var self = this;
-                    var r = this.renderer;
-                    var zoom = r.cy.zoom();
-                    var lookup = this.lookup;
+/***/ }),
 
-                    if (bb.w === 0 || bb.h === 0 || isNaN(bb.w) || isNaN(bb.h) || !ele.visible()) {
-                        return null;
-                    }
+/***/ "./node_modules/lodash/_arrayFilter.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_arrayFilter.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    if (!self.allowEdgeTxrCaching && ele.isEdge() || !self.allowParentTxrCaching && ele.isParent()) {
-                        return null;
-                    }
+/**
+ * A specialized version of `_.filter` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
+ */
+function arrayFilter(array, predicate) {
+  var index = -1,
+      length = array == null ? 0 : array.length,
+      resIndex = 0,
+      result = [];
+
+  while (++index < length) {
+    var value = array[index];
+    if (predicate(value, index, array)) {
+      result[resIndex++] = value;
+    }
+  }
+  return result;
+}
 
-                    if (lvl == null) {
-                        lvl = Math.ceil(log2(zoom * pxRatio));
-                    }
+module.exports = arrayFilter;
 
-                    if (lvl < minLvl) {
-                        lvl = minLvl;
-                    } else if (zoom >= maxZoom || lvl > maxLvl) {
-                        return null;
-                    }
 
-                    var scale = Math.pow(2, lvl);
-                    var eleScaledH = bb.h * scale;
-                    var eleScaledW = bb.w * scale;
-                    var scaledLabelShown = r.eleTextBiggerThanMin(ele, scale);
+/***/ }),
 
-                    if (!this.isVisible(ele, scaledLabelShown)) {
-                        return null;
-                    }
+/***/ "./node_modules/lodash/_arrayIncludes.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_arrayIncludes.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var eleCache = lookup.get(ele, lvl); // if this get was on an unused/invalidated cache, then restore the texture usage metric
+var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
 
-                    if (eleCache && eleCache.invalidated) {
-                        eleCache.invalidated = false;
-                        eleCache.texture.invalidatedWidth -= eleCache.width;
-                    }
+/**
+ * A specialized version of `_.includes` for arrays without support for
+ * specifying an index to search from.
+ *
+ * @private
+ * @param {Array} [array] The array to inspect.
+ * @param {*} target The value to search for.
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
+ */
+function arrayIncludes(array, value) {
+  var length = array == null ? 0 : array.length;
+  return !!length && baseIndexOf(array, value, 0) > -1;
+}
 
-                    if (eleCache) {
-                        return eleCache;
-                    }
+module.exports = arrayIncludes;
 
-                    var txrH; // which texture height this ele belongs to
 
-                    if (eleScaledH <= minTxrH) {
-                        txrH = minTxrH;
-                    } else if (eleScaledH <= txrStepH) {
-                        txrH = txrStepH;
-                    } else {
-                        txrH = Math.ceil(eleScaledH / txrStepH) * txrStepH;
-                    }
+/***/ }),
 
-                    if (eleScaledH > maxTxrH || eleScaledW > maxTxrW) {
-                        return null; // caching large elements is not efficient
-                    }
+/***/ "./node_modules/lodash/_arrayIncludesWith.js":
+/*!***************************************************!*\
+  !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
+  \***************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var txrQ = self.getTextureQueue(txrH); // first try the second last one in case it has space at the end
+/**
+ * This function is like `arrayIncludes` except that it accepts a comparator.
+ *
+ * @private
+ * @param {Array} [array] The array to inspect.
+ * @param {*} target The value to search for.
+ * @param {Function} comparator The comparator invoked per element.
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
+ */
+function arrayIncludesWith(array, value, comparator) {
+  var index = -1,
+      length = array == null ? 0 : array.length;
 
-                    var txr = txrQ[txrQ.length - 2];
+  while (++index < length) {
+    if (comparator(value, array[index])) {
+      return true;
+    }
+  }
+  return false;
+}
 
-                    var addNewTxr = function addNewTxr() {
-                        return self.recycleTexture(txrH, eleScaledW) || self.addTexture(txrH, eleScaledW);
-                    }; // try the last one if there is no second last one
+module.exports = arrayIncludesWith;
 
 
-                    if (!txr) {
-                        txr = txrQ[txrQ.length - 1];
-                    } // if the last one doesn't exist, we need a first one
+/***/ }),
 
+/***/ "./node_modules/lodash/_arrayLikeKeys.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (!txr) {
-                        txr = addNewTxr();
-                    } // if there's no room in the current texture, we need a new one
+var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
+    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
+    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
 
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                    if (txr.width - txr.usedWidth < eleScaledW) {
-                        txr = addNewTxr();
-                    }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                    var scalableFrom = function scalableFrom(otherCache) {
-                        return otherCache && otherCache.scaledLabelShown === scaledLabelShown;
-                    };
+/**
+ * Creates an array of the enumerable property names of the array-like `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @param {boolean} inherited Specify returning inherited property names.
+ * @returns {Array} Returns the array of property names.
+ */
+function arrayLikeKeys(value, inherited) {
+  var isArr = isArray(value),
+      isArg = !isArr && isArguments(value),
+      isBuff = !isArr && !isArg && isBuffer(value),
+      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
+      skipIndexes = isArr || isArg || isBuff || isType,
+      result = skipIndexes ? baseTimes(value.length, String) : [],
+      length = result.length;
+
+  for (var key in value) {
+    if ((inherited || hasOwnProperty.call(value, key)) &&
+        !(skipIndexes && (
+           // Safari 9 has enumerable `arguments.length` in strict mode.
+           key == 'length' ||
+           // Node.js 0.10 has enumerable non-index properties on buffers.
+           (isBuff && (key == 'offset' || key == 'parent')) ||
+           // PhantomJS 2 has enumerable non-index properties on typed arrays.
+           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
+           // Skip index properties.
+           isIndex(key, length)
+        ))) {
+      result.push(key);
+    }
+  }
+  return result;
+}
 
-                    var deqing = reason && reason === getTxrReasons.dequeue;
-                    var highQualityReq = reason && reason === getTxrReasons.highQuality;
-                    var downscaleReq = reason && reason === getTxrReasons.downscale;
-                    var higherCache; // the nearest cache with a higher level
+module.exports = arrayLikeKeys;
 
-                    for (var l = lvl + 1; l <= maxLvl; l++) {
-                        var c = lookup.get(ele, l);
 
-                        if (c) {
-                            higherCache = c;
-                            break;
-                        }
-                    }
+/***/ }),
 
-                    var oneUpCache = higherCache && higherCache.level === lvl + 1 ? higherCache : null;
+/***/ "./node_modules/lodash/_arrayMap.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_arrayMap.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var downscale = function downscale() {
-                        txr.context.drawImage(oneUpCache.texture.canvas, oneUpCache.x, 0, oneUpCache.width, oneUpCache.height, txr.usedWidth, 0, eleScaledW, eleScaledH);
-                    }; // reset ele area in texture
+/**
+ * A specialized version of `_.map` for arrays without support for iteratee
+ * shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
+ */
+function arrayMap(array, iteratee) {
+  var index = -1,
+      length = array == null ? 0 : array.length,
+      result = Array(length);
 
+  while (++index < length) {
+    result[index] = iteratee(array[index], index, array);
+  }
+  return result;
+}
 
-                    txr.context.setTransform(1, 0, 0, 1, 0, 0);
-                    txr.context.clearRect(txr.usedWidth, 0, eleScaledW, txrH);
+module.exports = arrayMap;
 
-                    if (scalableFrom(oneUpCache)) {
-                        // then we can relatively cheaply rescale the existing image w/o rerendering
-                        downscale();
-                    } else if (scalableFrom(higherCache)) {
-                        // then use the higher cache for now and queue the next level down
-                        // to cheaply scale towards the smaller level
-                        if (highQualityReq) {
-                            for (var _l = higherCache.level; _l > lvl; _l--) {
-                                oneUpCache = self.getElement(ele, bb, pxRatio, _l, getTxrReasons.downscale);
-                            }
 
-                            downscale();
-                        } else {
-                            self.queueElement(ele, higherCache.level - 1);
-                            return higherCache;
-                        }
-                    } else {
-                        var lowerCache; // the nearest cache with a lower level
+/***/ }),
 
-                        if (!deqing && !highQualityReq && !downscaleReq) {
-                            for (var _l2 = lvl - 1; _l2 >= minLvl; _l2--) {
-                                var _c = lookup.get(ele, _l2);
+/***/ "./node_modules/lodash/_arrayPush.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_arrayPush.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                                if (_c) {
-                                    lowerCache = _c;
-                                    break;
-                                }
-                            }
-                        }
+/**
+ * Appends the elements of `values` to `array`.
+ *
+ * @private
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to append.
+ * @returns {Array} Returns `array`.
+ */
+function arrayPush(array, values) {
+  var index = -1,
+      length = values.length,
+      offset = array.length;
 
-                        if (scalableFrom(lowerCache)) {
-                            // then use the lower quality cache for now and queue the better one for later
-                            self.queueElement(ele, lvl);
-                            return lowerCache;
-                        }
+  while (++index < length) {
+    array[offset + index] = values[index];
+  }
+  return array;
+}
 
-                        txr.context.translate(txr.usedWidth, 0);
-                        txr.context.scale(scale, scale);
-                        this.drawElement(txr.context, ele, bb, scaledLabelShown, false);
-                        txr.context.scale(1 / scale, 1 / scale);
-                        txr.context.translate(-txr.usedWidth, 0);
-                    }
+module.exports = arrayPush;
 
-                    eleCache = {
-                        x: txr.usedWidth,
-                        texture: txr,
-                        level: lvl,
-                        scale: scale,
-                        width: eleScaledW,
-                        height: eleScaledH,
-                        scaledLabelShown: scaledLabelShown
-                    };
-                    txr.usedWidth += Math.ceil(eleScaledW + eleTxrSpacing);
-                    txr.eleCaches.push(eleCache);
-                    lookup.set(ele, lvl, eleCache);
-                    self.checkTextureFullness(txr);
-                    return eleCache;
-                };
 
-                ETCp.invalidateElements = function (eles) {
-                    for (var i = 0; i < eles.length; i++) {
-                        this.invalidateElement(eles[i]);
-                    }
-                };
+/***/ }),
 
-                ETCp.invalidateElement = function (ele) {
-                    var self = this;
-                    var lookup = self.lookup;
-                    var caches = [];
-                    var invalid = lookup.isInvalid(ele);
+/***/ "./node_modules/lodash/_arrayReduce.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_arrayReduce.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    if (!invalid) {
-                        return; // override the invalidation request if the element key has not changed
-                    }
+/**
+ * A specialized version of `_.reduce` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {*} [accumulator] The initial value.
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
+ *  the initial value.
+ * @returns {*} Returns the accumulated value.
+ */
+function arrayReduce(array, iteratee, accumulator, initAccum) {
+  var index = -1,
+      length = array == null ? 0 : array.length;
 
-                    for (var lvl = minLvl; lvl <= maxLvl; lvl++) {
-                        var cache = lookup.getForCachedKey(ele, lvl);
+  if (initAccum && length) {
+    accumulator = array[++index];
+  }
+  while (++index < length) {
+    accumulator = iteratee(accumulator, array[index], index, array);
+  }
+  return accumulator;
+}
 
-                        if (cache) {
-                            caches.push(cache);
-                        }
-                    }
+module.exports = arrayReduce;
 
-                    var noOtherElesUseCache = lookup.invalidate(ele);
 
-                    if (noOtherElesUseCache) {
-                        for (var i = 0; i < caches.length; i++) {
-                            var _cache = caches[i];
-                            var txr = _cache.texture; // remove space from the texture it belongs to
+/***/ }),
 
-                            txr.invalidatedWidth += _cache.width; // mark the cache as invalidated
+/***/ "./node_modules/lodash/_arraySome.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_arraySome.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                            _cache.invalidated = true; // retire the texture if its utility is low
+/**
+ * A specialized version of `_.some` for arrays without support for iteratee
+ * shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ *  else `false`.
+ */
+function arraySome(array, predicate) {
+  var index = -1,
+      length = array == null ? 0 : array.length;
 
-                            self.checkTextureUtility(txr);
-                        }
-                    } // remove from queue since the old req was for the old state
+  while (++index < length) {
+    if (predicate(array[index], index, array)) {
+      return true;
+    }
+  }
+  return false;
+}
 
+module.exports = arraySome;
 
-                    self.removeFromQueue(ele);
-                };
 
-                ETCp.checkTextureUtility = function (txr) {
-                    // invalidate all entries in the cache if the cache size is small
-                    if (txr.invalidatedWidth >= minUtility * txr.width) {
-                        this.retireTexture(txr);
-                    }
-                };
+/***/ }),
 
-                ETCp.checkTextureFullness = function (txr) {
-                    // if texture has been mostly filled and passed over several times, remove
-                    // it from the queue so we don't need to waste time looking at it to put new things
-                    var self = this;
-                    var txrQ = self.getTextureQueue(txr.height);
+/***/ "./node_modules/lodash/_asciiSize.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_asciiSize.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (txr.usedWidth / txr.width > maxFullness && txr.fullnessChecks >= maxFullnessChecks) {
-                        removeFromArray(txrQ, txr);
-                    } else {
-                        txr.fullnessChecks++;
-                    }
-                };
+var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
 
-                ETCp.retireTexture = function (txr) {
-                    var self = this;
-                    var txrH = txr.height;
-                    var txrQ = self.getTextureQueue(txrH);
-                    var lookup = this.lookup; // retire the texture from the active / searchable queue:
+/**
+ * Gets the size of an ASCII `string`.
+ *
+ * @private
+ * @param {string} string The string inspect.
+ * @returns {number} Returns the string size.
+ */
+var asciiSize = baseProperty('length');
 
-                    removeFromArray(txrQ, txr);
-                    txr.retired = true; // remove the refs from the eles to the caches:
+module.exports = asciiSize;
 
-                    var eleCaches = txr.eleCaches;
 
-                    for (var i = 0; i < eleCaches.length; i++) {
-                        var eleCache = eleCaches[i];
-                        lookup.deleteCache(eleCache.key, eleCache.level);
-                    }
+/***/ }),
 
-                    clearArray(eleCaches); // add the texture to a retired queue so it can be recycled in future:
+/***/ "./node_modules/lodash/_assignMergeValue.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/_assignMergeValue.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var rtxtrQ = self.getRetiredTextureQueue(txrH);
-                    rtxtrQ.push(txr);
-                };
+var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
+    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
 
-                ETCp.addTexture = function (txrH, minW) {
-                    var self = this;
-                    var txrQ = self.getTextureQueue(txrH);
-                    var txr = {};
-                    txrQ.push(txr);
-                    txr.eleCaches = [];
-                    txr.height = txrH;
-                    txr.width = Math.max(defTxrWidth, minW);
-                    txr.usedWidth = 0;
-                    txr.invalidatedWidth = 0;
-                    txr.fullnessChecks = 0;
-                    txr.canvas = self.renderer.makeOffscreenCanvas(txr.width, txr.height);
-                    txr.context = txr.canvas.getContext('2d');
-                    return txr;
-                };
+/**
+ * This function is like `assignValue` except that it doesn't assign
+ * `undefined` values.
+ *
+ * @private
+ * @param {Object} object The object to modify.
+ * @param {string} key The key of the property to assign.
+ * @param {*} value The value to assign.
+ */
+function assignMergeValue(object, key, value) {
+  if ((value !== undefined && !eq(object[key], value)) ||
+      (value === undefined && !(key in object))) {
+    baseAssignValue(object, key, value);
+  }
+}
 
-                ETCp.recycleTexture = function (txrH, minW) {
-                    var self = this;
-                    var txrQ = self.getTextureQueue(txrH);
-                    var rtxtrQ = self.getRetiredTextureQueue(txrH);
-
-                    for (var i = 0; i < rtxtrQ.length; i++) {
-                        var txr = rtxtrQ[i];
-
-                        if (txr.width >= minW) {
-                            txr.retired = false;
-                            txr.usedWidth = 0;
-                            txr.invalidatedWidth = 0;
-                            txr.fullnessChecks = 0;
-                            clearArray(txr.eleCaches);
-                            txr.context.setTransform(1, 0, 0, 1, 0, 0);
-                            txr.context.clearRect(0, 0, txr.width, txr.height);
-                            removeFromArray(rtxtrQ, txr);
-                            txrQ.push(txr);
-                            return txr;
-                        }
-                    }
-                };
+module.exports = assignMergeValue;
 
-                ETCp.queueElement = function (ele, lvl) {
-                    var self = this;
-                    var q = self.getElementQueue();
-                    var k2q = self.getElementKeyToQueue();
-                    var key = this.getKey(ele);
-                    var existingReq = k2q[key];
-
-                    if (existingReq) {
-                        // use the max lvl b/c in between lvls are cheap to make
-                        existingReq.level = Math.max(existingReq.level, lvl);
-                        existingReq.eles.merge(ele);
-                        existingReq.reqs++;
-                        q.updateItem(existingReq);
-                    } else {
-                        var req = {
-                            eles: ele.spawn().merge(ele),
-                            level: lvl,
-                            reqs: 1,
-                            key: key
-                        };
-                        q.push(req);
-                        k2q[key] = req;
-                    }
-                };
 
-                ETCp.dequeue = function (pxRatio
-                                         /*, extent*/
-                ) {
-                    var self = this;
-                    var q = self.getElementQueue();
-                    var k2q = self.getElementKeyToQueue();
-                    var dequeued = [];
-                    var lookup = self.lookup;
+/***/ }),
 
-                    for (var i = 0; i < maxDeqSize; i++) {
-                        if (q.size() > 0) {
-                            var req = q.pop();
-                            var key = req.key;
-                            var ele = req.eles[0]; // all eles have the same key
+/***/ "./node_modules/lodash/_assignValue.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_assignValue.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            var cacheExists = lookup.hasCache(ele, req.level); // clear out the key to req lookup
+var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
+    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
 
-                            k2q[key] = null; // dequeueing isn't necessary with an existing cache
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                            if (cacheExists) {
-                                continue;
-                            }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                            dequeued.push(req);
-                            var bb = self.getBoundingBox(ele);
-                            self.getElement(ele, bb, pxRatio, req.level, getTxrReasons.dequeue);
-                        } else {
-                            break;
-                        }
-                    }
+/**
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @private
+ * @param {Object} object The object to modify.
+ * @param {string} key The key of the property to assign.
+ * @param {*} value The value to assign.
+ */
+function assignValue(object, key, value) {
+  var objValue = object[key];
+  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
+      (value === undefined && !(key in object))) {
+    baseAssignValue(object, key, value);
+  }
+}
 
-                    return dequeued;
-                };
+module.exports = assignValue;
 
-                ETCp.removeFromQueue = function (ele) {
-                    var self = this;
-                    var q = self.getElementQueue();
-                    var k2q = self.getElementKeyToQueue();
-                    var key = this.getKey(ele);
-                    var req = k2q[key];
-
-                    if (req != null) {
-                        if (req.eles.length === 1) {
-                            // remove if last ele in the req
-                            // bring to front of queue
-                            req.reqs = MAX_INT;
-                            q.updateItem(req);
-                            q.pop(); // remove from queue
-
-                            k2q[key] = null; // remove from lookup map
-                        } else {
-                            // otherwise just remove ele from req
-                            req.eles.unmerge(ele);
-                        }
-                    }
-                };
 
-                ETCp.onDequeue = function (fn) {
-                    this.onDequeues.push(fn);
-                };
+/***/ }),
 
-                ETCp.offDequeue = function (fn) {
-                    removeFromArray(this.onDequeues, fn);
-                };
+/***/ "./node_modules/lodash/_assocIndexOf.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_assocIndexOf.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                ETCp.setupDequeueing = defs.setupDequeueing({
-                    deqRedrawThreshold: deqRedrawThreshold,
-                    deqCost: deqCost,
-                    deqAvgCost: deqAvgCost,
-                    deqNoDrawCost: deqNoDrawCost,
-                    deqFastCost: deqFastCost,
-                    deq: function deq(self, pxRatio, extent) {
-                        return self.dequeue(pxRatio, extent);
-                    },
-                    onDeqd: function onDeqd(self, deqd) {
-                        for (var i = 0; i < self.onDequeues.length; i++) {
-                            var fn = self.onDequeues[i];
-                            fn(deqd);
-                        }
-                    },
-                    shouldRedraw: function shouldRedraw(self, deqd, pxRatio, extent) {
-                        for (var i = 0; i < deqd.length; i++) {
-                            var eles = deqd[i].eles;
+var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
 
-                            for (var j = 0; j < eles.length; j++) {
-                                var bb = eles[j].boundingBox();
+/**
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} key The key to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+function assocIndexOf(array, key) {
+  var length = array.length;
+  while (length--) {
+    if (eq(array[length][0], key)) {
+      return length;
+    }
+  }
+  return -1;
+}
 
-                                if (boundingBoxesIntersect(bb, extent)) {
-                                    return true;
-                                }
-                            }
-                        }
+module.exports = assocIndexOf;
 
-                        return false;
-                    },
-                    priority: function priority(self) {
-                        return self.renderer.beforeRenderPriorities.eleTxrDeq;
-                    }
-                });
 
-                var defNumLayers = 1; // default number of layers to use
+/***/ }),
 
-                var minLvl$1 = -4; // when scaling smaller than that we don't need to re-render
+/***/ "./node_modules/lodash/_baseAssign.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseAssign.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var maxLvl$1 = 2; // when larger than this scale just render directly (caching is not helpful)
+var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
 
-                var maxZoom$1 = 3.99; // beyond this zoom level, layered textures are not used
+/**
+ * The base implementation of `_.assign` without support for multiple sources
+ * or `customizer` functions.
+ *
+ * @private
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @returns {Object} Returns `object`.
+ */
+function baseAssign(object, source) {
+  return object && copyObject(source, keys(source), object);
+}
 
-                var deqRedrawThreshold$1 = 50; // time to batch redraws together from dequeueing to allow more dequeueing calcs to happen in the meanwhile
+module.exports = baseAssign;
 
-                var refineEleDebounceTime = 50; // time to debounce sharper ele texture updates
 
-                var deqCost$1 = 0.15; // % of add'l rendering cost allowed for dequeuing ele caches each frame
+/***/ }),
 
-                var deqAvgCost$1 = 0.1; // % of add'l rendering cost compared to average overall redraw time
+/***/ "./node_modules/lodash/_baseAssignIn.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseAssignIn.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var deqNoDrawCost$1 = 0.9; // % of avg frame time that can be used for dequeueing when not drawing
+var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
 
-                var deqFastCost$1 = 0.9; // % of frame time to be used when >60fps
+/**
+ * The base implementation of `_.assignIn` without support for multiple sources
+ * or `customizer` functions.
+ *
+ * @private
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @returns {Object} Returns `object`.
+ */
+function baseAssignIn(object, source) {
+  return object && copyObject(source, keysIn(source), object);
+}
 
-                var maxDeqSize$1 = 1; // number of eles to dequeue and render at higher texture in each batch
+module.exports = baseAssignIn;
 
-                var invalidThreshold = 250; // time threshold for disabling b/c of invalidations
 
-                var maxLayerArea = 4000 * 4000; // layers can't be bigger than this
+/***/ }),
 
-                var useHighQualityEleTxrReqs = true; // whether to use high quality ele txr requests (generally faster and cheaper in the longterm)
-// var log = function(){ console.log.apply( console, arguments ); };
+/***/ "./node_modules/lodash/_baseAssignValue.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_baseAssignValue.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var LayeredTextureCache = function LayeredTextureCache(renderer) {
-                    var self = this;
-                    var r = self.renderer = renderer;
-                    var cy = r.cy;
-                    self.layersByLevel = {}; // e.g. 2 => [ layer1, layer2, ..., layerN ]
-
-                    self.firstGet = true;
-                    self.lastInvalidationTime = performanceNow() - 2 * invalidThreshold;
-                    self.skipping = false;
-                    self.eleTxrDeqs = cy.collection();
-                    self.scheduleElementRefinement = util(function () {
-                        self.refineElementTextures(self.eleTxrDeqs);
-                        self.eleTxrDeqs.unmerge(self.eleTxrDeqs);
-                    }, refineEleDebounceTime);
-                    r.beforeRender(function (willDraw, now) {
-                        if (now - self.lastInvalidationTime <= invalidThreshold) {
-                            self.skipping = true;
-                        } else {
-                            self.skipping = false;
-                        }
-                    }, r.beforeRenderPriorities.lyrTxrSkip);
+var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
 
-                    var qSort = function qSort(a, b) {
-                        return b.reqs - a.reqs;
-                    };
+/**
+ * The base implementation of `assignValue` and `assignMergeValue` without
+ * value checks.
+ *
+ * @private
+ * @param {Object} object The object to modify.
+ * @param {string} key The key of the property to assign.
+ * @param {*} value The value to assign.
+ */
+function baseAssignValue(object, key, value) {
+  if (key == '__proto__' && defineProperty) {
+    defineProperty(object, key, {
+      'configurable': true,
+      'enumerable': true,
+      'value': value,
+      'writable': true
+    });
+  } else {
+    object[key] = value;
+  }
+}
 
-                    self.layersQueue = new Heap(qSort);
-                    self.setupDequeueing();
-                };
+module.exports = baseAssignValue;
 
-                var LTCp = LayeredTextureCache.prototype;
-                var layerIdPool = 0;
-                var MAX_INT$1 = Math.pow(2, 53) - 1;
-
-                LTCp.makeLayer = function (bb, lvl) {
-                    var scale = Math.pow(2, lvl);
-                    var w = Math.ceil(bb.w * scale);
-                    var h = Math.ceil(bb.h * scale);
-                    var canvas = this.renderer.makeOffscreenCanvas(w, h);
-                    var layer = {
-                        id: layerIdPool = ++layerIdPool % MAX_INT$1,
-                        bb: bb,
-                        level: lvl,
-                        width: w,
-                        height: h,
-                        canvas: canvas,
-                        context: canvas.getContext('2d'),
-                        eles: [],
-                        elesQueue: [],
-                        reqs: 0
-                    }; // log('make layer %s with w %s and h %s and lvl %s', layer.id, layer.width, layer.height, layer.level);
-
-                    var cxt = layer.context;
-                    var dx = -layer.bb.x1;
-                    var dy = -layer.bb.y1; // do the transform on creation to save cycles (it's the same for all eles)
-
-                    cxt.scale(scale, scale);
-                    cxt.translate(dx, dy);
-                    return layer;
-                };
 
-                LTCp.getLayers = function (eles, pxRatio, lvl) {
-                    var self = this;
-                    var r = self.renderer;
-                    var cy = r.cy;
-                    var zoom = cy.zoom();
-                    var firstGet = self.firstGet;
-                    self.firstGet = false; // log('--\nget layers with %s eles', eles.length);
-                    //log eles.map(function(ele){ return ele.id() }) );
-
-                    if (lvl == null) {
-                        lvl = Math.ceil(log2(zoom * pxRatio));
-
-                        if (lvl < minLvl$1) {
-                            lvl = minLvl$1;
-                        } else if (zoom >= maxZoom$1 || lvl > maxLvl$1) {
-                            return null;
-                        }
-                    }
+/***/ }),
 
-                    self.validateLayersElesOrdering(lvl, eles);
-                    var layersByLvl = self.layersByLevel;
-                    var scale = Math.pow(2, lvl);
-                    var layers = layersByLvl[lvl] = layersByLvl[lvl] || [];
-                    var bb;
-                    var lvlComplete = self.levelIsComplete(lvl, eles);
-                    var tmpLayers;
-
-                    var checkTempLevels = function checkTempLevels() {
-                        var canUseAsTmpLvl = function canUseAsTmpLvl(l) {
-                            self.validateLayersElesOrdering(l, eles);
-
-                            if (self.levelIsComplete(l, eles)) {
-                                tmpLayers = layersByLvl[l];
-                                return true;
-                            }
-                        };
+/***/ "./node_modules/lodash/_baseClone.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseClone.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
+    arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
+    assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
+    baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
+    baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
+    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
+    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
+    copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
+    copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
+    getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
+    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
+    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
+    initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
+    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
+
+/** Used to compose bitmasks for cloning. */
+var CLONE_DEEP_FLAG = 1,
+    CLONE_FLAT_FLAG = 2,
+    CLONE_SYMBOLS_FLAG = 4;
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]',
+    arrayTag = '[object Array]',
+    boolTag = '[object Boolean]',
+    dateTag = '[object Date]',
+    errorTag = '[object Error]',
+    funcTag = '[object Function]',
+    genTag = '[object GeneratorFunction]',
+    mapTag = '[object Map]',
+    numberTag = '[object Number]',
+    objectTag = '[object Object]',
+    regexpTag = '[object RegExp]',
+    setTag = '[object Set]',
+    stringTag = '[object String]',
+    symbolTag = '[object Symbol]',
+    weakMapTag = '[object WeakMap]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+    dataViewTag = '[object DataView]',
+    float32Tag = '[object Float32Array]',
+    float64Tag = '[object Float64Array]',
+    int8Tag = '[object Int8Array]',
+    int16Tag = '[object Int16Array]',
+    int32Tag = '[object Int32Array]',
+    uint8Tag = '[object Uint8Array]',
+    uint8ClampedTag = '[object Uint8ClampedArray]',
+    uint16Tag = '[object Uint16Array]',
+    uint32Tag = '[object Uint32Array]';
+
+/** Used to identify `toStringTag` values supported by `_.clone`. */
+var cloneableTags = {};
+cloneableTags[argsTag] = cloneableTags[arrayTag] =
+cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
+cloneableTags[boolTag] = cloneableTags[dateTag] =
+cloneableTags[float32Tag] = cloneableTags[float64Tag] =
+cloneableTags[int8Tag] = cloneableTags[int16Tag] =
+cloneableTags[int32Tag] = cloneableTags[mapTag] =
+cloneableTags[numberTag] = cloneableTags[objectTag] =
+cloneableTags[regexpTag] = cloneableTags[setTag] =
+cloneableTags[stringTag] = cloneableTags[symbolTag] =
+cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
+cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
+cloneableTags[errorTag] = cloneableTags[funcTag] =
+cloneableTags[weakMapTag] = false;
+
+/**
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
+ * traversed objects.
+ *
+ * @private
+ * @param {*} value The value to clone.
+ * @param {boolean} bitmask The bitmask flags.
+ *  1 - Deep clone
+ *  2 - Flatten inherited properties
+ *  4 - Clone symbols
+ * @param {Function} [customizer] The function to customize cloning.
+ * @param {string} [key] The key of `value`.
+ * @param {Object} [object] The parent object of `value`.
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
+ * @returns {*} Returns the cloned value.
+ */
+function baseClone(value, bitmask, customizer, key, object, stack) {
+  var result,
+      isDeep = bitmask & CLONE_DEEP_FLAG,
+      isFlat = bitmask & CLONE_FLAT_FLAG,
+      isFull = bitmask & CLONE_SYMBOLS_FLAG;
+
+  if (customizer) {
+    result = object ? customizer(value, key, object, stack) : customizer(value);
+  }
+  if (result !== undefined) {
+    return result;
+  }
+  if (!isObject(value)) {
+    return value;
+  }
+  var isArr = isArray(value);
+  if (isArr) {
+    result = initCloneArray(value);
+    if (!isDeep) {
+      return copyArray(value, result);
+    }
+  } else {
+    var tag = getTag(value),
+        isFunc = tag == funcTag || tag == genTag;
 
-                        var checkLvls = function checkLvls(dir) {
-                            if (tmpLayers) {
-                                return;
-                            }
+    if (isBuffer(value)) {
+      return cloneBuffer(value, isDeep);
+    }
+    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
+      result = (isFlat || isFunc) ? {} : initCloneObject(value);
+      if (!isDeep) {
+        return isFlat
+          ? copySymbolsIn(value, baseAssignIn(result, value))
+          : copySymbols(value, baseAssign(result, value));
+      }
+    } else {
+      if (!cloneableTags[tag]) {
+        return object ? value : {};
+      }
+      result = initCloneByTag(value, tag, isDeep);
+    }
+  }
+  // Check for circular references and return its corresponding clone.
+  stack || (stack = new Stack);
+  var stacked = stack.get(value);
+  if (stacked) {
+    return stacked;
+  }
+  stack.set(value, result);
+
+  if (isSet(value)) {
+    value.forEach(function(subValue) {
+      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
+    });
+  } else if (isMap(value)) {
+    value.forEach(function(subValue, key) {
+      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
+    });
+  }
 
-                            for (var l = lvl + dir; minLvl$1 <= l && l <= maxLvl$1; l += dir) {
-                                if (canUseAsTmpLvl(l)) {
-                                    break;
-                                }
-                            }
-                        };
+  var keysFunc = isFull
+    ? (isFlat ? getAllKeysIn : getAllKeys)
+    : (isFlat ? keysIn : keys);
 
-                        checkLvls(+1);
-                        checkLvls(-1); // remove the invalid layers; they will be replaced as needed later in this function
+  var props = isArr ? undefined : keysFunc(value);
+  arrayEach(props || value, function(subValue, key) {
+    if (props) {
+      key = subValue;
+      subValue = value[key];
+    }
+    // Recursively populate clone (susceptible to call stack limits).
+    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
+  });
+  return result;
+}
 
-                        for (var i = layers.length - 1; i >= 0; i--) {
-                            var layer = layers[i];
+module.exports = baseClone;
 
-                            if (layer.invalid) {
-                                removeFromArray(layers, layer);
-                            }
-                        }
-                    };
 
-                    if (!lvlComplete) {
-                        // if the current level is incomplete, then use the closest, best quality layerset temporarily
-                        // and later queue the current layerset so we can get the proper quality level soon
-                        checkTempLevels();
-                    } else {
-                        // log('level complete, using existing layers\n--');
-                        return layers;
-                    }
+/***/ }),
 
-                    var getBb = function getBb() {
-                        if (!bb) {
-                            bb = makeBoundingBox();
+/***/ "./node_modules/lodash/_baseCreate.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseCreate.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            for (var i = 0; i < eles.length; i++) {
-                                updateBoundingBox(bb, eles[i].boundingBox());
-                            }
-                        }
+var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
 
-                        return bb;
-                    };
+/** Built-in value references. */
+var objectCreate = Object.create;
 
-                    var makeLayer = function makeLayer(opts) {
-                        opts = opts || {};
-                        var after = opts.after;
-                        getBb();
-                        var area = bb.w * scale * (bb.h * scale);
+/**
+ * The base implementation of `_.create` without support for assigning
+ * properties to the created object.
+ *
+ * @private
+ * @param {Object} proto The object to inherit from.
+ * @returns {Object} Returns the new object.
+ */
+var baseCreate = (function() {
+  function object() {}
+  return function(proto) {
+    if (!isObject(proto)) {
+      return {};
+    }
+    if (objectCreate) {
+      return objectCreate(proto);
+    }
+    object.prototype = proto;
+    var result = new object;
+    object.prototype = undefined;
+    return result;
+  };
+}());
 
-                        if (area > maxLayerArea) {
-                            return null;
-                        }
+module.exports = baseCreate;
 
-                        var layer = self.makeLayer(bb, lvl);
 
-                        if (after != null) {
-                            var index = layers.indexOf(after) + 1;
-                            layers.splice(index, 0, layer);
-                        } else if (opts.insert === undefined || opts.insert) {
-                            // no after specified => first layer made so put at start
-                            layers.unshift(layer);
-                        } // if( tmpLayers ){
-                        //self.queueLayer( layer );
-                        // }
+/***/ }),
 
+/***/ "./node_modules/lodash/_baseEach.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_baseEach.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        return layer;
-                    };
+var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
+    createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
 
-                    if (self.skipping && !firstGet) {
-                        // log('skip layers');
-                        return null;
-                    } // log('do layers');
+/**
+ * The base implementation of `_.forEach` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array|Object} Returns `collection`.
+ */
+var baseEach = createBaseEach(baseForOwn);
 
+module.exports = baseEach;
 
-                    var layer = null;
-                    var maxElesPerLayer = eles.length / defNumLayers;
-                    var allowLazyQueueing =  !firstGet;
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        var rs = ele._private.rscratch;
-                        var caches = rs.imgLayerCaches = rs.imgLayerCaches || {}; // log('look at ele', ele.id());
+/***/ }),
 
-                        var existingLayer = caches[lvl];
+/***/ "./node_modules/lodash/_baseExtremum.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseExtremum.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (existingLayer) {
-                            // reuse layer for later eles
-                            // log('reuse layer for', ele.id());
-                            layer = existingLayer;
-                            continue;
-                        }
+var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
 
-                        if (!layer || layer.eles.length >= maxElesPerLayer || !boundingBoxInBoundingBox(layer.bb, ele.boundingBox())) {
-                            // log('make new layer for ele %s', ele.id());
-                            layer = makeLayer({
-                                insert: true,
-                                after: layer
-                            }); // if now layer can be built then we can't use layers at this level
+/**
+ * The base implementation of methods like `_.max` and `_.min` which accepts a
+ * `comparator` to determine the extremum value.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The iteratee invoked per iteration.
+ * @param {Function} comparator The comparator used to compare values.
+ * @returns {*} Returns the extremum value.
+ */
+function baseExtremum(array, iteratee, comparator) {
+  var index = -1,
+      length = array.length;
+
+  while (++index < length) {
+    var value = array[index],
+        current = iteratee(value);
+
+    if (current != null && (computed === undefined
+          ? (current === current && !isSymbol(current))
+          : comparator(current, computed)
+        )) {
+      var computed = current,
+          result = value;
+    }
+  }
+  return result;
+}
 
-                            if (!layer) {
-                                return null;
-                            } // log('new layer with id %s', layer.id);
+module.exports = baseExtremum;
 
-                        }
 
-                        if (tmpLayers || allowLazyQueueing) {
-                            // log('queue ele %s in layer %s', ele.id(), layer.id);
-                            self.queueLayer(layer, ele);
-                        } else {
-                            // log('draw ele %s in layer %s', ele.id(), layer.id);
-                            self.drawEleInLayer(layer, ele, lvl, pxRatio);
-                        }
+/***/ }),
 
-                        layer.eles.push(ele);
-                        caches[lvl] = layer;
-                    } // log('--');
+/***/ "./node_modules/lodash/_baseFilter.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseFilter.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
 
-                    if (tmpLayers) {
-                        // then we only queued the current layerset and can't draw it yet
-                        return tmpLayers;
-                    }
+/**
+ * The base implementation of `_.filter` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
+ */
+function baseFilter(collection, predicate) {
+  var result = [];
+  baseEach(collection, function(value, index, collection) {
+    if (predicate(value, index, collection)) {
+      result.push(value);
+    }
+  });
+  return result;
+}
 
-                    if (allowLazyQueueing) {
-                        // log('lazy queue level', lvl);
-                        return null;
-                    }
+module.exports = baseFilter;
 
-                    return layers;
-                }; // a layer may want to use an ele cache of a higher level to avoid blurriness
-// so the layer level might not equal the ele level
 
+/***/ }),
 
-                LTCp.getEleLevelForLayerLevel = function (lvl, pxRatio) {
-                    return lvl;
-                };
+/***/ "./node_modules/lodash/_baseFindIndex.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_baseFindIndex.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                LTCp.drawEleInLayer = function (layer, ele, lvl, pxRatio) {
-                    var self = this;
-                    var r = this.renderer;
-                    var context = layer.context;
-                    var bb = ele.boundingBox();
+/**
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
+ * support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {Function} predicate The function invoked per iteration.
+ * @param {number} fromIndex The index to search from.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+function baseFindIndex(array, predicate, fromIndex, fromRight) {
+  var length = array.length,
+      index = fromIndex + (fromRight ? 1 : -1);
 
-                    if (bb.w === 0 || bb.h === 0 || !ele.visible()) {
-                        return;
-                    }
+  while ((fromRight ? index-- : ++index < length)) {
+    if (predicate(array[index], index, array)) {
+      return index;
+    }
+  }
+  return -1;
+}
 
-                    lvl = self.getEleLevelForLayerLevel(lvl, pxRatio);
+module.exports = baseFindIndex;
 
-                    {
-                        r.setImgSmoothing(context, false);
-                    }
 
-                    {
-                        r.drawCachedElement(context, ele, null, null, lvl, useHighQualityEleTxrReqs);
-                    }
+/***/ }),
 
-                    {
-                        r.setImgSmoothing(context, true);
-                    }
-                };
+/***/ "./node_modules/lodash/_baseFlatten.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseFlatten.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                LTCp.levelIsComplete = function (lvl, eles) {
-                    var self = this;
-                    var layers = self.layersByLevel[lvl];
+var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
+    isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
 
-                    if (!layers || layers.length === 0) {
-                        return false;
-                    }
+/**
+ * The base implementation of `_.flatten` with support for restricting flattening.
+ *
+ * @private
+ * @param {Array} array The array to flatten.
+ * @param {number} depth The maximum recursion depth.
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
+ * @param {Array} [result=[]] The initial result value.
+ * @returns {Array} Returns the new flattened array.
+ */
+function baseFlatten(array, depth, predicate, isStrict, result) {
+  var index = -1,
+      length = array.length;
+
+  predicate || (predicate = isFlattenable);
+  result || (result = []);
+
+  while (++index < length) {
+    var value = array[index];
+    if (depth > 0 && predicate(value)) {
+      if (depth > 1) {
+        // Recursively flatten arrays (susceptible to call stack limits).
+        baseFlatten(value, depth - 1, predicate, isStrict, result);
+      } else {
+        arrayPush(result, value);
+      }
+    } else if (!isStrict) {
+      result[result.length] = value;
+    }
+  }
+  return result;
+}
 
-                    var numElesInLayers = 0;
+module.exports = baseFlatten;
 
-                    for (var i = 0; i < layers.length; i++) {
-                        var layer = layers[i]; // if there are any eles needed to be drawn yet, the level is not complete
 
-                        if (layer.reqs > 0) {
-                            return false;
-                        } // if the layer is invalid, the level is not complete
+/***/ }),
 
+/***/ "./node_modules/lodash/_baseFor.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_baseFor.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (layer.invalid) {
-                            return false;
-                        }
+var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
 
-                        numElesInLayers += layer.eles.length;
-                    } // we should have exactly the number of eles passed in to be complete
+/**
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
+ *
+ * @private
+ * @param {Object} object The object to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @returns {Object} Returns `object`.
+ */
+var baseFor = createBaseFor();
 
+module.exports = baseFor;
 
-                    if (numElesInLayers !== eles.length) {
-                        return false;
-                    }
 
-                    return true;
-                };
+/***/ }),
 
-                LTCp.validateLayersElesOrdering = function (lvl, eles) {
-                    var layers = this.layersByLevel[lvl];
+/***/ "./node_modules/lodash/_baseForOwn.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseForOwn.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (!layers) {
-                        return;
-                    } // if in a layer the eles are not in the same order, then the layer is invalid
-                    // (i.e. there is an ele in between the eles in the layer)
+var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
 
+/**
+ * The base implementation of `_.forOwn` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Object} object The object to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Object} Returns `object`.
+ */
+function baseForOwn(object, iteratee) {
+  return object && baseFor(object, iteratee, keys);
+}
 
-                    for (var i = 0; i < layers.length; i++) {
-                        var layer = layers[i];
-                        var offset = -1; // find the offset
+module.exports = baseForOwn;
 
-                        for (var j = 0; j < eles.length; j++) {
-                            if (layer.eles[0] === eles[j]) {
-                                offset = j;
-                                break;
-                            }
-                        }
 
-                        if (offset < 0) {
-                            // then the layer has nonexistant elements and is invalid
-                            this.invalidateLayer(layer);
-                            continue;
-                        } // the eles in the layer must be in the same continuous order, else the layer is invalid
+/***/ }),
 
+/***/ "./node_modules/lodash/_baseGet.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_baseGet.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var o = offset;
+var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
+    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
 
-                        for (var j = 0; j < layer.eles.length; j++) {
-                            if (layer.eles[j] !== eles[o + j]) {
-                                // log('invalidate based on ordering', layer.id);
-                                this.invalidateLayer(layer);
-                                break;
-                            }
-                        }
-                    }
-                };
+/**
+ * The base implementation of `_.get` without support for default values.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @returns {*} Returns the resolved value.
+ */
+function baseGet(object, path) {
+  path = castPath(path, object);
 
-                LTCp.updateElementsInLayers = function (eles, update) {
-                    var self = this;
-                    var isEles = element(eles[0]); // collect udpated elements (cascaded from the layers) and update each
-                    // layer itself along the way
+  var index = 0,
+      length = path.length;
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var req = isEles ? null : eles[i];
-                        var ele = isEles ? eles[i] : eles[i].ele;
-                        var rs = ele._private.rscratch;
-                        var caches = rs.imgLayerCaches = rs.imgLayerCaches || {};
+  while (object != null && index < length) {
+    object = object[toKey(path[index++])];
+  }
+  return (index && index == length) ? object : undefined;
+}
 
-                        for (var l = minLvl$1; l <= maxLvl$1; l++) {
-                            var layer = caches[l];
+module.exports = baseGet;
 
-                            if (!layer) {
-                                continue;
-                            } // if update is a request from the ele cache, then it affects only
-                            // the matching level
 
+/***/ }),
 
-                            if (req && self.getEleLevelForLayerLevel(layer.level) !== req.level) {
-                                continue;
-                            }
+/***/ "./node_modules/lodash/_baseGetAllKeys.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            update(layer, ele, req);
-                        }
-                    }
-                };
+var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
 
-                LTCp.haveLayers = function () {
-                    var self = this;
-                    var haveLayers = false;
+/**
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function baseGetAllKeys(object, keysFunc, symbolsFunc) {
+  var result = keysFunc(object);
+  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
+}
 
-                    for (var l = minLvl$1; l <= maxLvl$1; l++) {
-                        var layers = self.layersByLevel[l];
+module.exports = baseGetAllKeys;
 
-                        if (layers && layers.length > 0) {
-                            haveLayers = true;
-                            break;
-                        }
-                    }
 
-                    return haveLayers;
-                };
+/***/ }),
 
-                LTCp.invalidateElements = function (eles) {
-                    var self = this;
+/***/ "./node_modules/lodash/_baseGetTag.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseGetTag.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (eles.length === 0) {
-                        return;
-                    }
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
+    getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
+    objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
 
-                    self.lastInvalidationTime = performanceNow(); // log('update invalidate layer time from eles');
+/** `Object#toString` result references. */
+var nullTag = '[object Null]',
+    undefinedTag = '[object Undefined]';
 
-                    if (eles.length === 0 || !self.haveLayers()) {
-                        return;
-                    }
+/** Built-in value references. */
+var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
 
-                    self.updateElementsInLayers(eles, function invalAssocLayers(layer, ele, req) {
-                        self.invalidateLayer(layer);
-                    });
-                };
+/**
+ * The base implementation of `getTag` without fallbacks for buggy environments.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
+ */
+function baseGetTag(value) {
+  if (value == null) {
+    return value === undefined ? undefinedTag : nullTag;
+  }
+  return (symToStringTag && symToStringTag in Object(value))
+    ? getRawTag(value)
+    : objectToString(value);
+}
 
-                LTCp.invalidateLayer = function (layer) {
-                    // log('update invalidate layer time');
-                    this.lastInvalidationTime = performanceNow();
+module.exports = baseGetTag;
 
-                    if (layer.invalid) {
-                        return;
-                    } // save cycles
 
+/***/ }),
 
-                    var lvl = layer.level;
-                    var eles = layer.eles;
-                    var layers = this.layersByLevel[lvl]; // log('invalidate layer', layer.id );
+/***/ "./node_modules/lodash/_baseGt.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/_baseGt.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    removeFromArray(layers, layer); // layer.eles = [];
+/**
+ * The base implementation of `_.gt` which doesn't coerce arguments.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if `value` is greater than `other`,
+ *  else `false`.
+ */
+function baseGt(value, other) {
+  return value > other;
+}
 
-                    layer.elesQueue = [];
-                    layer.invalid = true;
+module.exports = baseGt;
 
-                    if (layer.replacement) {
-                        layer.replacement.invalid = true;
-                    }
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var caches = eles[i]._private.rscratch.imgLayerCaches;
+/***/ }),
 
-                        if (caches) {
-                            caches[lvl] = null;
-                        }
-                    }
-                };
+/***/ "./node_modules/lodash/_baseHas.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_baseHas.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                LTCp.refineElementTextures = function (eles) {
-                    var self = this; // log('refine', eles.length);
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                    self.updateElementsInLayers(eles, function refineEachEle(layer, ele, req) {
-                        var rLyr = layer.replacement;
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                        if (!rLyr) {
-                            rLyr = layer.replacement = self.makeLayer(layer.bb, layer.level);
-                            rLyr.replaces = layer;
-                            rLyr.eles = layer.eles; // log('make replacement layer %s for %s with level %s', rLyr.id, layer.id, rLyr.level);
-                        }
+/**
+ * The base implementation of `_.has` without support for deep paths.
+ *
+ * @private
+ * @param {Object} [object] The object to query.
+ * @param {Array|string} key The key to check.
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
+ */
+function baseHas(object, key) {
+  return object != null && hasOwnProperty.call(object, key);
+}
 
-                        if (!rLyr.reqs) {
-                            for (var i = 0; i < rLyr.eles.length; i++) {
-                                self.queueLayer(rLyr, rLyr.eles[i]);
-                            } // log('queue replacement layer refinement', rLyr.id);
+module.exports = baseHas;
 
-                        }
-                    });
-                };
 
-                LTCp.enqueueElementRefinement = function (ele) {
+/***/ }),
 
-                    this.eleTxrDeqs.merge(ele);
-                    this.scheduleElementRefinement();
-                };
+/***/ "./node_modules/lodash/_baseHasIn.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseHasIn.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                LTCp.queueLayer = function (layer, ele) {
-                    var self = this;
-                    var q = self.layersQueue;
-                    var elesQ = layer.elesQueue;
-                    var hasId = elesQ.hasId = elesQ.hasId || {}; // if a layer is going to be replaced, queuing is a waste of time
+/**
+ * The base implementation of `_.hasIn` without support for deep paths.
+ *
+ * @private
+ * @param {Object} [object] The object to query.
+ * @param {Array|string} key The key to check.
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
+ */
+function baseHasIn(object, key) {
+  return object != null && key in Object(object);
+}
 
-                    if (layer.replacement) {
-                        return;
-                    }
+module.exports = baseHasIn;
 
-                    if (ele) {
-                        if (hasId[ele.id()]) {
-                            return;
-                        }
 
-                        elesQ.push(ele);
-                        hasId[ele.id()] = true;
-                    }
+/***/ }),
 
-                    if (layer.reqs) {
-                        layer.reqs++;
-                        q.updateItem(layer);
-                    } else {
-                        layer.reqs = 1;
-                        q.push(layer);
-                    }
-                };
+/***/ "./node_modules/lodash/_baseIndexOf.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseIndexOf.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                LTCp.dequeue = function (pxRatio) {
-                    var self = this;
-                    var q = self.layersQueue;
-                    var deqd = [];
-                    var eleDeqs = 0;
+var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
+    baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
+    strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
 
-                    while (eleDeqs < maxDeqSize$1) {
-                        if (q.size() === 0) {
-                            break;
-                        }
+/**
+ * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} value The value to search for.
+ * @param {number} fromIndex The index to search from.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+function baseIndexOf(array, value, fromIndex) {
+  return value === value
+    ? strictIndexOf(array, value, fromIndex)
+    : baseFindIndex(array, baseIsNaN, fromIndex);
+}
 
-                        var layer = q.peek(); // if a layer has been or will be replaced, then don't waste time with it
+module.exports = baseIndexOf;
 
-                        if (layer.replacement) {
-                            // log('layer %s in queue skipped b/c it already has a replacement', layer.id);
-                            q.pop();
-                            continue;
-                        } // if this is a replacement layer that has been superceded, then forget it
 
+/***/ }),
 
-                        if (layer.replaces && layer !== layer.replaces.replacement) {
-                            // log('layer is no longer the most uptodate replacement; dequeued', layer.id)
-                            q.pop();
-                            continue;
-                        }
+/***/ "./node_modules/lodash/_baseIsArguments.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_baseIsArguments.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (layer.invalid) {
-                            // log('replacement layer %s is invalid; dequeued', layer.id);
-                            q.pop();
-                            continue;
-                        }
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-                        var ele = layer.elesQueue.shift();
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]';
 
-                        if (ele) {
-                            // log('dequeue layer %s', layer.id);
-                            self.drawEleInLayer(layer, ele, layer.level, pxRatio);
-                            eleDeqs++;
-                        }
+/**
+ * The base implementation of `_.isArguments`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ */
+function baseIsArguments(value) {
+  return isObjectLike(value) && baseGetTag(value) == argsTag;
+}
 
-                        if (deqd.length === 0) {
-                            // we need only one entry in deqd to queue redrawing etc
-                            deqd.push(true);
-                        } // if the layer has all its eles done, then remove from the queue
+module.exports = baseIsArguments;
 
 
-                        if (layer.elesQueue.length === 0) {
-                            q.pop();
-                            layer.reqs = 0; // log('dequeue of layer %s complete', layer.id);
-                            // when a replacement layer is dequeued, it replaces the old layer in the level
+/***/ }),
 
-                            if (layer.replaces) {
-                                self.applyLayerReplacement(layer);
-                            }
+/***/ "./node_modules/lodash/_baseIsEqual.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseIsEqual.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            self.requestRedraw();
-                        }
-                    }
+var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-                    return deqd;
-                };
+/**
+ * The base implementation of `_.isEqual` which supports partial comparisons
+ * and tracks traversed objects.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {boolean} bitmask The bitmask flags.
+ *  1 - Unordered comparison
+ *  2 - Partial comparison
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ */
+function baseIsEqual(value, other, bitmask, customizer, stack) {
+  if (value === other) {
+    return true;
+  }
+  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
+    return value !== value && other !== other;
+  }
+  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
+}
 
-                LTCp.applyLayerReplacement = function (layer) {
-                    var self = this;
-                    var layersInLevel = self.layersByLevel[layer.level];
-                    var replaced = layer.replaces;
-                    var index = layersInLevel.indexOf(replaced); // if the replaced layer is not in the active list for the level, then replacing
-                    // refs would be a mistake (i.e. overwriting the true active layer)
+module.exports = baseIsEqual;
 
-                    if (index < 0 || replaced.invalid) {
-                        // log('replacement layer would have no effect', layer.id);
-                        return;
-                    }
 
-                    layersInLevel[index] = layer; // replace level ref
-                    // replace refs in eles
+/***/ }),
 
-                    for (var i = 0; i < layer.eles.length; i++) {
-                        var _p = layer.eles[i]._private;
-                        var cache = _p.imgLayerCaches = _p.imgLayerCaches || {};
+/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
+    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
+    equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
+    equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
+    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1;
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]',
+    arrayTag = '[object Array]',
+    objectTag = '[object Object]';
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/**
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
+ * deep comparisons and tracks traversed objects enabling objects with circular
+ * references to be compared.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
+  var objIsArr = isArray(object),
+      othIsArr = isArray(other),
+      objTag = objIsArr ? arrayTag : getTag(object),
+      othTag = othIsArr ? arrayTag : getTag(other);
+
+  objTag = objTag == argsTag ? objectTag : objTag;
+  othTag = othTag == argsTag ? objectTag : othTag;
+
+  var objIsObj = objTag == objectTag,
+      othIsObj = othTag == objectTag,
+      isSameTag = objTag == othTag;
+
+  if (isSameTag && isBuffer(object)) {
+    if (!isBuffer(other)) {
+      return false;
+    }
+    objIsArr = true;
+    objIsObj = false;
+  }
+  if (isSameTag && !objIsObj) {
+    stack || (stack = new Stack);
+    return (objIsArr || isTypedArray(object))
+      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
+      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
+  }
+  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
+    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
+        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
 
-                        if (cache) {
-                            cache[layer.level] = layer;
-                        }
-                    } // log('apply replacement layer %s over %s', layer.id, replaced.id);
+    if (objIsWrapped || othIsWrapped) {
+      var objUnwrapped = objIsWrapped ? object.value() : object,
+          othUnwrapped = othIsWrapped ? other.value() : other;
 
+      stack || (stack = new Stack);
+      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
+    }
+  }
+  if (!isSameTag) {
+    return false;
+  }
+  stack || (stack = new Stack);
+  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
+}
 
-                    self.requestRedraw();
-                };
+module.exports = baseIsEqualDeep;
 
-                LTCp.requestRedraw = util(function () {
-                    var r = this.renderer;
-                    r.redrawHint('eles', true);
-                    r.redrawHint('drag', true);
-                    r.redraw();
-                }, 100);
-                LTCp.setupDequeueing = defs.setupDequeueing({
-                    deqRedrawThreshold: deqRedrawThreshold$1,
-                    deqCost: deqCost$1,
-                    deqAvgCost: deqAvgCost$1,
-                    deqNoDrawCost: deqNoDrawCost$1,
-                    deqFastCost: deqFastCost$1,
-                    deq: function deq(self, pxRatio) {
-                        return self.dequeue(pxRatio);
-                    },
-                    onDeqd: noop,
-                    shouldRedraw: trueify,
-                    priority: function priority(self) {
-                        return self.renderer.beforeRenderPriorities.lyrTxrDeq;
-                    }
-                });
 
-                var CRp = {};
-                var impl;
+/***/ }),
 
-                function polygon(context, points) {
-                    for (var i = 0; i < points.length; i++) {
-                        var pt = points[i];
-                        context.lineTo(pt.x, pt.y);
-                    }
-                }
+/***/ "./node_modules/lodash/_baseIsMap.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseIsMap.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function triangleBackcurve(context, points, controlPoint) {
-                    var firstPt;
+var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-                    for (var i = 0; i < points.length; i++) {
-                        var pt = points[i];
+/** `Object#toString` result references. */
+var mapTag = '[object Map]';
 
-                        if (i === 0) {
-                            firstPt = pt;
-                        }
+/**
+ * The base implementation of `_.isMap` without Node.js optimizations.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
+ */
+function baseIsMap(value) {
+  return isObjectLike(value) && getTag(value) == mapTag;
+}
 
-                        context.lineTo(pt.x, pt.y);
-                    }
+module.exports = baseIsMap;
 
-                    context.quadraticCurveTo(controlPoint.x, controlPoint.y, firstPt.x, firstPt.y);
-                }
 
-                function triangleTee(context, trianglePoints, teePoints) {
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+/***/ }),
 
-                    var triPts = trianglePoints;
+/***/ "./node_modules/lodash/_baseIsMatch.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseIsMatch.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    for (var i = 0; i < triPts.length; i++) {
-                        var pt = triPts[i];
-                        context.lineTo(pt.x, pt.y);
-                    }
+var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
+    baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
 
-                    var teePts = teePoints;
-                    var firstTeePt = teePoints[0];
-                    context.moveTo(firstTeePt.x, firstTeePt.y);
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+    COMPARE_UNORDERED_FLAG = 2;
 
-                    for (var i = 1; i < teePts.length; i++) {
-                        var pt = teePts[i];
-                        context.lineTo(pt.x, pt.y);
-                    }
+/**
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Object} object The object to inspect.
+ * @param {Object} source The object of property values to match.
+ * @param {Array} matchData The property names, values, and compare flags to match.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+ */
+function baseIsMatch(object, source, matchData, customizer) {
+  var index = matchData.length,
+      length = index,
+      noCustomizer = !customizer;
 
-                    if (context.closePath) {
-                        context.closePath();
-                    }
-                }
+  if (object == null) {
+    return !length;
+  }
+  object = Object(object);
+  while (index--) {
+    var data = matchData[index];
+    if ((noCustomizer && data[2])
+          ? data[1] !== object[data[0]]
+          : !(data[0] in object)
+        ) {
+      return false;
+    }
+  }
+  while (++index < length) {
+    data = matchData[index];
+    var key = data[0],
+        objValue = object[key],
+        srcValue = data[1];
+
+    if (noCustomizer && data[2]) {
+      if (objValue === undefined && !(key in object)) {
+        return false;
+      }
+    } else {
+      var stack = new Stack;
+      if (customizer) {
+        var result = customizer(objValue, srcValue, key, object, source, stack);
+      }
+      if (!(result === undefined
+            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
+            : result
+          )) {
+        return false;
+      }
+    }
+  }
+  return true;
+}
 
-                function circleTriangle(context, trianglePoints, rx, ry, r) {
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+module.exports = baseIsMatch;
 
-                    context.arc(rx, ry, r, 0, Math.PI * 2, false);
-                    var triPts = trianglePoints;
-                    var firstTrPt = triPts[0];
-                    context.moveTo(firstTrPt.x, firstTrPt.y);
 
-                    for (var i = 0; i < triPts.length; i++) {
-                        var pt = triPts[i];
-                        context.lineTo(pt.x, pt.y);
-                    }
+/***/ }),
 
-                    if (context.closePath) {
-                        context.closePath();
-                    }
-                }
+/***/ "./node_modules/lodash/_baseIsNaN.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseIsNaN.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                function circle(context, rx, ry, r) {
-                    context.arc(rx, ry, r, 0, Math.PI * 2, false);
-                }
+/**
+ * The base implementation of `_.isNaN` without support for number objects.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
+ */
+function baseIsNaN(value) {
+  return value !== value;
+}
 
-                CRp.arrowShapeImpl = function (name) {
-                    return (impl || (impl = {
-                        'polygon': polygon,
-                        'triangle-backcurve': triangleBackcurve,
-                        'triangle-tee': triangleTee,
-                        'circle-triangle': circleTriangle,
-                        'triangle-cross': triangleTee,
-                        'circle': circle
-                    }))[name];
-                };
+module.exports = baseIsNaN;
 
-                var CRp$1 = {};
 
-                CRp$1.drawElement = function (context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity) {
-                    var r = this;
+/***/ }),
 
-                    if (ele.isNode()) {
-                        r.drawNode(context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity);
-                    } else {
-                        r.drawEdge(context, ele, shiftToOriginWithBb, showLabel, showOverlay, showOpacity);
-                    }
-                };
+/***/ "./node_modules/lodash/_baseIsNative.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseIsNative.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$1.drawElementOverlay = function (context, ele) {
-                    var r = this;
+var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
+    isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
 
-                    if (ele.isNode()) {
-                        r.drawNodeOverlay(context, ele);
-                    } else {
-                        r.drawEdgeOverlay(context, ele);
-                    }
-                };
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ */
+var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
 
-                CRp$1.drawCachedElementPortion = function (context, ele, eleTxrCache, pxRatio, lvl, reason, getRotation, getOpacity) {
-                    var r = this;
-                    var bb = eleTxrCache.getBoundingBox(ele);
+/** Used to detect host constructors (Safari). */
+var reIsHostCtor = /^\[object .+?Constructor\]$/;
 
-                    if (bb.w === 0 || bb.h === 0) {
-                        return;
-                    } // ignore zero size case
+/** Used for built-in method references. */
+var funcProto = Function.prototype,
+    objectProto = Object.prototype;
 
+/** Used to resolve the decompiled source of functions. */
+var funcToString = funcProto.toString;
 
-                    var eleCache = eleTxrCache.getElement(ele, bb, pxRatio, lvl, reason);
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                    if (eleCache != null) {
-                        var opacity = getOpacity(r, ele);
+/** Used to detect if a method is native. */
+var reIsNative = RegExp('^' +
+  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
+  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
+);
 
-                        if (opacity === 0) {
-                            return;
-                        }
+/**
+ * The base implementation of `_.isNative` without bad shim checks.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ *  else `false`.
+ */
+function baseIsNative(value) {
+  if (!isObject(value) || isMasked(value)) {
+    return false;
+  }
+  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
+  return pattern.test(toSource(value));
+}
 
-                        var theta = getRotation(r, ele);
-                        var x1 = bb.x1,
-                            y1 = bb.y1,
-                            w = bb.w,
-                            h = bb.h;
-                        var x, y, sx, sy, smooth;
-
-                        if (theta !== 0) {
-                            var rotPt = eleTxrCache.getRotationPoint(ele);
-                            sx = rotPt.x;
-                            sy = rotPt.y;
-                            context.translate(sx, sy);
-                            context.rotate(theta);
-                            smooth = r.getImgSmoothing(context);
-
-                            if (!smooth) {
-                                r.setImgSmoothing(context, true);
-                            }
+module.exports = baseIsNative;
 
-                            var off = eleTxrCache.getRotationOffset(ele);
-                            x = off.x;
-                            y = off.y;
-                        } else {
-                            x = x1;
-                            y = y1;
-                        }
 
-                        var oldGlobalAlpha;
+/***/ }),
 
-                        if (opacity !== 1) {
-                            oldGlobalAlpha = context.globalAlpha;
-                            context.globalAlpha = oldGlobalAlpha * opacity;
-                        }
+/***/ "./node_modules/lodash/_baseIsSet.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseIsSet.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        context.drawImage(eleCache.texture.canvas, eleCache.x, 0, eleCache.width, eleCache.height, x, y, w, h);
+var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-                        if (opacity !== 1) {
-                            context.globalAlpha = oldGlobalAlpha;
-                        }
+/** `Object#toString` result references. */
+var setTag = '[object Set]';
 
-                        if (theta !== 0) {
-                            context.rotate(-theta);
-                            context.translate(-sx, -sy);
+/**
+ * The base implementation of `_.isSet` without Node.js optimizations.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
+ */
+function baseIsSet(value) {
+  return isObjectLike(value) && getTag(value) == setTag;
+}
 
-                            if (!smooth) {
-                                r.setImgSmoothing(context, false);
-                            }
-                        }
-                    } else {
-                        eleTxrCache.drawElement(context, ele); // direct draw fallback
-                    }
-                };
+module.exports = baseIsSet;
 
-                var getZeroRotation = function getZeroRotation() {
-                    return 0;
-                };
 
-                var getLabelRotation = function getLabelRotation(r, ele) {
-                    return r.getTextAngle(ele, null);
-                };
+/***/ }),
 
-                var getSourceLabelRotation = function getSourceLabelRotation(r, ele) {
-                    return r.getTextAngle(ele, 'source');
-                };
+/***/ "./node_modules/lodash/_baseIsTypedArray.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
+
+/** `Object#toString` result references. */
+var argsTag = '[object Arguments]',
+    arrayTag = '[object Array]',
+    boolTag = '[object Boolean]',
+    dateTag = '[object Date]',
+    errorTag = '[object Error]',
+    funcTag = '[object Function]',
+    mapTag = '[object Map]',
+    numberTag = '[object Number]',
+    objectTag = '[object Object]',
+    regexpTag = '[object RegExp]',
+    setTag = '[object Set]',
+    stringTag = '[object String]',
+    weakMapTag = '[object WeakMap]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+    dataViewTag = '[object DataView]',
+    float32Tag = '[object Float32Array]',
+    float64Tag = '[object Float64Array]',
+    int8Tag = '[object Int8Array]',
+    int16Tag = '[object Int16Array]',
+    int32Tag = '[object Int32Array]',
+    uint8Tag = '[object Uint8Array]',
+    uint8ClampedTag = '[object Uint8ClampedArray]',
+    uint16Tag = '[object Uint16Array]',
+    uint32Tag = '[object Uint32Array]';
+
+/** Used to identify `toStringTag` values of typed arrays. */
+var typedArrayTags = {};
+typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+typedArrayTags[uint32Tag] = true;
+typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
+typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
+typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+typedArrayTags[setTag] = typedArrayTags[stringTag] =
+typedArrayTags[weakMapTag] = false;
+
+/**
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ */
+function baseIsTypedArray(value) {
+  return isObjectLike(value) &&
+    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+}
 
-                var getTargetLabelRotation = function getTargetLabelRotation(r, ele) {
-                    return r.getTextAngle(ele, 'target');
-                };
+module.exports = baseIsTypedArray;
 
-                var getOpacity = function getOpacity(r, ele) {
-                    return ele.effectiveOpacity();
-                };
 
-                var getTextOpacity = function getTextOpacity(e, ele) {
-                    return ele.pstyle('text-opacity').pfValue * ele.effectiveOpacity();
-                };
+/***/ }),
 
-                CRp$1.drawCachedElement = function (context, ele, pxRatio, extent, lvl, requestHighQuality) {
-                    var r = this;
-                    var _r$data = r.data,
-                        eleTxrCache = _r$data.eleTxrCache,
-                        lblTxrCache = _r$data.lblTxrCache,
-                        slbTxrCache = _r$data.slbTxrCache,
-                        tlbTxrCache = _r$data.tlbTxrCache;
-                    var bb = ele.boundingBox();
-                    var reason = requestHighQuality === true ? eleTxrCache.reasons.highQuality : null;
-
-                    if (bb.w === 0 || bb.h === 0 || !ele.visible()) {
-                        return;
-                    }
+/***/ "./node_modules/lodash/_baseIteratee.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseIteratee.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (!extent || boundingBoxesIntersect(bb, extent)) {
-                        var isEdge = ele.isEdge();
+var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
+    baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
+    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
 
-                        var badLine = ele.element()._private.rscratch.badLine;
+/**
+ * The base implementation of `_.iteratee`.
+ *
+ * @private
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
+ * @returns {Function} Returns the iteratee.
+ */
+function baseIteratee(value) {
+  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
+  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
+  if (typeof value == 'function') {
+    return value;
+  }
+  if (value == null) {
+    return identity;
+  }
+  if (typeof value == 'object') {
+    return isArray(value)
+      ? baseMatchesProperty(value[0], value[1])
+      : baseMatches(value);
+  }
+  return property(value);
+}
 
-                        r.drawCachedElementPortion(context, ele, eleTxrCache, pxRatio, lvl, reason, getZeroRotation, getOpacity);
+module.exports = baseIteratee;
 
-                        if (!isEdge || !badLine) {
-                            r.drawCachedElementPortion(context, ele, lblTxrCache, pxRatio, lvl, reason, getLabelRotation, getTextOpacity);
-                        }
 
-                        if (isEdge && !badLine) {
-                            r.drawCachedElementPortion(context, ele, slbTxrCache, pxRatio, lvl, reason, getSourceLabelRotation, getTextOpacity);
-                            r.drawCachedElementPortion(context, ele, tlbTxrCache, pxRatio, lvl, reason, getTargetLabelRotation, getTextOpacity);
-                        }
+/***/ }),
 
-                        r.drawElementOverlay(context, ele);
-                    }
-                };
+/***/ "./node_modules/lodash/_baseKeys.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_baseKeys.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$1.drawElements = function (context, eles) {
-                    var r = this;
+var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
+    nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        r.drawElement(context, ele);
-                    }
-                };
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                CRp$1.drawCachedElements = function (context, eles, pxRatio, extent) {
-                    var r = this;
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
-                        r.drawCachedElement(context, ele, pxRatio, extent);
-                    }
-                };
+/**
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ */
+function baseKeys(object) {
+  if (!isPrototype(object)) {
+    return nativeKeys(object);
+  }
+  var result = [];
+  for (var key in Object(object)) {
+    if (hasOwnProperty.call(object, key) && key != 'constructor') {
+      result.push(key);
+    }
+  }
+  return result;
+}
 
-                CRp$1.drawCachedNodes = function (context, eles, pxRatio, extent) {
-                    var r = this;
+module.exports = baseKeys;
 
-                    for (var i = 0; i < eles.length; i++) {
-                        var ele = eles[i];
 
-                        if (!ele.isNode()) {
-                            continue;
-                        }
+/***/ }),
 
-                        r.drawCachedElement(context, ele, pxRatio, extent);
-                    }
-                };
+/***/ "./node_modules/lodash/_baseKeysIn.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseKeysIn.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$1.drawLayeredElements = function (context, eles, pxRatio, extent) {
-                    var r = this;
-                    var layers = r.data.lyrTxrCache.getLayers(eles, pxRatio);
+var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
+    nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
 
-                    if (layers) {
-                        for (var i = 0; i < layers.length; i++) {
-                            var layer = layers[i];
-                            var bb = layer.bb;
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                            if (bb.w === 0 || bb.h === 0) {
-                                continue;
-                            }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                            context.drawImage(layer.canvas, bb.x1, bb.y1, bb.w, bb.h);
-                        }
-                    } else {
-                        // fall back on plain caching if no layers
-                        r.drawCachedElements(context, eles, pxRatio, extent);
-                    }
-                };
+/**
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ */
+function baseKeysIn(object) {
+  if (!isObject(object)) {
+    return nativeKeysIn(object);
+  }
+  var isProto = isPrototype(object),
+      result = [];
 
-                /* global Path2D */
-                var CRp$2 = {};
+  for (var key in object) {
+    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
+      result.push(key);
+    }
+  }
+  return result;
+}
 
-                CRp$2.drawEdge = function (context, edge, shiftToOriginWithBb) {
-                    var drawLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
-                    var shouldDrawOverlay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
-                    var shouldDrawOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
-                    var r = this;
-                    var rs = edge._private.rscratch;
+module.exports = baseKeysIn;
 
-                    if (shouldDrawOpacity && !edge.visible()) {
-                        return;
-                    } // if bezier ctrl pts can not be calculated, then die
 
+/***/ }),
 
-                    if (rs.badLine || rs.allpts == null || isNaN(rs.allpts[0])) {
-                        // isNaN in case edge is impossible and browser bugs (e.g. safari)
-                        return;
-                    }
+/***/ "./node_modules/lodash/_baseLt.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/_baseLt.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var bb;
+/**
+ * The base implementation of `_.lt` which doesn't coerce arguments.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if `value` is less than `other`,
+ *  else `false`.
+ */
+function baseLt(value, other) {
+  return value < other;
+}
 
-                    if (shiftToOriginWithBb) {
-                        bb = shiftToOriginWithBb;
-                        context.translate(-bb.x1, -bb.y1);
-                    }
+module.exports = baseLt;
 
-                    var opacity = shouldDrawOpacity ? edge.pstyle('opacity').value : 1;
-                    var lineStyle = edge.pstyle('line-style').value;
-                    var edgeWidth = edge.pstyle('width').pfValue;
-                    var lineCap = edge.pstyle('line-cap').value;
-
-                    var drawLine = function drawLine() {
-                        var strokeOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : opacity;
-                        context.lineWidth = edgeWidth;
-                        context.lineCap = lineCap;
-                        r.eleStrokeStyle(context, edge, strokeOpacity);
-                        r.drawEdgePath(edge, context, rs.allpts, lineStyle);
-                        context.lineCap = 'butt'; // reset for other drawing functions
-                    };
-
-                    var drawOverlay = function drawOverlay() {
-                        if (!shouldDrawOverlay) {
-                            return;
-                        }
 
-                        r.drawEdgeOverlay(context, edge);
-                    };
-
-                    var drawArrows = function drawArrows() {
-                        var arrowOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : opacity;
-                        r.drawArrowheads(context, edge, arrowOpacity);
-                    };
-
-                    var drawText = function drawText() {
-                        r.drawElementText(context, edge, null, drawLabel);
-                    };
-
-                    context.lineJoin = 'round';
-                    var ghost = edge.pstyle('ghost').value === 'yes';
-
-                    if (ghost) {
-                        var gx = edge.pstyle('ghost-offset-x').pfValue;
-                        var gy = edge.pstyle('ghost-offset-y').pfValue;
-                        var ghostOpacity = edge.pstyle('ghost-opacity').value;
-                        var effectiveGhostOpacity = opacity * ghostOpacity;
-                        context.translate(gx, gy);
-                        drawLine(effectiveGhostOpacity);
-                        drawArrows(effectiveGhostOpacity);
-                        context.translate(-gx, -gy);
-                    }
+/***/ }),
 
-                    drawLine();
-                    drawArrows();
-                    drawOverlay();
-                    drawText();
+/***/ "./node_modules/lodash/_baseMap.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_baseMap.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (shiftToOriginWithBb) {
-                        context.translate(bb.x1, bb.y1);
-                    }
-                };
+var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
 
-                CRp$2.drawEdgeOverlay = function (context, edge) {
-                    if (!edge.visible()) {
-                        return;
-                    }
+/**
+ * The base implementation of `_.map` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
+ */
+function baseMap(collection, iteratee) {
+  var index = -1,
+      result = isArrayLike(collection) ? Array(collection.length) : [];
 
-                    var overlayOpacity = edge.pstyle('overlay-opacity').value;
+  baseEach(collection, function(value, key, collection) {
+    result[++index] = iteratee(value, key, collection);
+  });
+  return result;
+}
 
-                    if (overlayOpacity === 0) {
-                        return;
-                    }
+module.exports = baseMap;
 
-                    var r = this;
-                    var usePaths = r.usePaths();
-                    var rs = edge._private.rscratch;
-                    var overlayPadding = edge.pstyle('overlay-padding').pfValue;
-                    var overlayWidth = 2 * overlayPadding;
-                    var overlayColor = edge.pstyle('overlay-color').value;
-                    context.lineWidth = overlayWidth;
 
-                    if (rs.edgeType === 'self' && !usePaths) {
-                        context.lineCap = 'butt';
-                    } else {
-                        context.lineCap = 'round';
-                    }
+/***/ }),
 
-                    r.colorStrokeStyle(context, overlayColor[0], overlayColor[1], overlayColor[2], overlayOpacity);
-                    r.drawEdgePath(edge, context, rs.allpts, 'solid');
-                };
+/***/ "./node_modules/lodash/_baseMatches.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseMatches.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$2.drawEdgePath = function (edge, context, pts, type) {
-                    var rs = edge._private.rscratch;
-                    var canvasCxt = context;
-                    var path;
-                    var pathCacheHit = false;
-                    var usePaths = this.usePaths();
-                    var lineDashPattern = edge.pstyle('line-dash-pattern').pfValue;
-                    var lineDashOffset = edge.pstyle('line-dash-offset').pfValue;
-
-                    if (usePaths) {
-                        var pathCacheKey = pts.join('$');
-                        var keyMatches = rs.pathCacheKey && rs.pathCacheKey === pathCacheKey;
-
-                        if (keyMatches) {
-                            path = context = rs.pathCache;
-                            pathCacheHit = true;
-                        } else {
-                            path = context = new Path2D();
-                            rs.pathCacheKey = pathCacheKey;
-                            rs.pathCache = path;
-                        }
-                    }
+var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
+    getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
+    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
 
-                    if (canvasCxt.setLineDash) {
-                        // for very outofdate browsers
-                        switch (type) {
-                            case 'dotted':
-                                canvasCxt.setLineDash([1, 1]);
-                                break;
-
-                            case 'dashed':
-                                canvasCxt.setLineDash(lineDashPattern);
-                                canvasCxt.lineDashOffset = lineDashOffset;
-                                break;
-
-                            case 'solid':
-                                canvasCxt.setLineDash([]);
-                                break;
-                        }
-                    }
+/**
+ * The base implementation of `_.matches` which doesn't clone `source`.
+ *
+ * @private
+ * @param {Object} source The object of property values to match.
+ * @returns {Function} Returns the new spec function.
+ */
+function baseMatches(source) {
+  var matchData = getMatchData(source);
+  if (matchData.length == 1 && matchData[0][2]) {
+    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
+  }
+  return function(object) {
+    return object === source || baseIsMatch(object, source, matchData);
+  };
+}
 
-                    if (!pathCacheHit && !rs.badLine) {
-                        if (context.beginPath) {
-                            context.beginPath();
-                        }
+module.exports = baseMatches;
 
-                        context.moveTo(pts[0], pts[1]);
 
-                        switch (rs.edgeType) {
-                            case 'bezier':
-                            case 'self':
-                            case 'compound':
-                            case 'multibezier':
-                                for (var i = 2; i + 3 < pts.length; i += 4) {
-                                    context.quadraticCurveTo(pts[i], pts[i + 1], pts[i + 2], pts[i + 3]);
-                                }
+/***/ }),
 
-                                break;
+/***/ "./node_modules/lodash/_baseMatchesProperty.js":
+/*!*****************************************************!*\
+  !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
+  \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
+    get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
+    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
+    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
+    isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
+    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
+    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+    COMPARE_UNORDERED_FLAG = 2;
+
+/**
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
+ *
+ * @private
+ * @param {string} path The path of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new spec function.
+ */
+function baseMatchesProperty(path, srcValue) {
+  if (isKey(path) && isStrictComparable(srcValue)) {
+    return matchesStrictComparable(toKey(path), srcValue);
+  }
+  return function(object) {
+    var objValue = get(object, path);
+    return (objValue === undefined && objValue === srcValue)
+      ? hasIn(object, path)
+      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
+  };
+}
 
-                            case 'straight':
-                            case 'segments':
-                            case 'haystack':
-                                for (var _i = 2; _i + 1 < pts.length; _i += 2) {
-                                    context.lineTo(pts[_i], pts[_i + 1]);
-                                }
+module.exports = baseMatchesProperty;
 
-                                break;
-                        }
-                    }
 
-                    context = canvasCxt;
+/***/ }),
 
-                    if (usePaths) {
-                        context.stroke(path);
-                    } else {
-                        context.stroke();
-                    } // reset any line dashes
+/***/ "./node_modules/lodash/_baseMerge.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseMerge.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
+    assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
+    baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
+    baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
+    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
+
+/**
+ * The base implementation of `_.merge` without support for multiple sources.
+ *
+ * @private
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @param {number} srcIndex The index of `source`.
+ * @param {Function} [customizer] The function to customize merged values.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ *  counterparts.
+ */
+function baseMerge(object, source, srcIndex, customizer, stack) {
+  if (object === source) {
+    return;
+  }
+  baseFor(source, function(srcValue, key) {
+    stack || (stack = new Stack);
+    if (isObject(srcValue)) {
+      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
+    }
+    else {
+      var newValue = customizer
+        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
+        : undefined;
+
+      if (newValue === undefined) {
+        newValue = srcValue;
+      }
+      assignMergeValue(object, key, newValue);
+    }
+  }, keysIn);
+}
 
+module.exports = baseMerge;
 
-                    if (context.setLineDash) {
-                        // for very outofdate browsers
-                        context.setLineDash([]);
-                    }
-                };
 
-                CRp$2.drawArrowheads = function (context, edge, opacity) {
-                    var rs = edge._private.rscratch;
-                    var isHaystack = rs.edgeType === 'haystack';
+/***/ }),
 
-                    if (!isHaystack) {
-                        this.drawArrowhead(context, edge, 'source', rs.arrowStartX, rs.arrowStartY, rs.srcArrowAngle, opacity);
-                    }
+/***/ "./node_modules/lodash/_baseMergeDeep.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_baseMergeDeep.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
+    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
+    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
+    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
+    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
+    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
+    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
+    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
+    toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
+
+/**
+ * A specialized version of `baseMerge` for arrays and objects which performs
+ * deep merges and tracks traversed objects enabling objects with circular
+ * references to be merged.
+ *
+ * @private
+ * @param {Object} object The destination object.
+ * @param {Object} source The source object.
+ * @param {string} key The key of the value to merge.
+ * @param {number} srcIndex The index of `source`.
+ * @param {Function} mergeFunc The function to merge values.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ *  counterparts.
+ */
+function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
+  var objValue = safeGet(object, key),
+      srcValue = safeGet(source, key),
+      stacked = stack.get(srcValue);
+
+  if (stacked) {
+    assignMergeValue(object, key, stacked);
+    return;
+  }
+  var newValue = customizer
+    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
+    : undefined;
+
+  var isCommon = newValue === undefined;
+
+  if (isCommon) {
+    var isArr = isArray(srcValue),
+        isBuff = !isArr && isBuffer(srcValue),
+        isTyped = !isArr && !isBuff && isTypedArray(srcValue);
+
+    newValue = srcValue;
+    if (isArr || isBuff || isTyped) {
+      if (isArray(objValue)) {
+        newValue = objValue;
+      }
+      else if (isArrayLikeObject(objValue)) {
+        newValue = copyArray(objValue);
+      }
+      else if (isBuff) {
+        isCommon = false;
+        newValue = cloneBuffer(srcValue, true);
+      }
+      else if (isTyped) {
+        isCommon = false;
+        newValue = cloneTypedArray(srcValue, true);
+      }
+      else {
+        newValue = [];
+      }
+    }
+    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
+      newValue = objValue;
+      if (isArguments(objValue)) {
+        newValue = toPlainObject(objValue);
+      }
+      else if (!isObject(objValue) || isFunction(objValue)) {
+        newValue = initCloneObject(srcValue);
+      }
+    }
+    else {
+      isCommon = false;
+    }
+  }
+  if (isCommon) {
+    // Recursively merge objects and arrays (susceptible to call stack limits).
+    stack.set(srcValue, newValue);
+    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
+    stack['delete'](srcValue);
+  }
+  assignMergeValue(object, key, newValue);
+}
 
-                    this.drawArrowhead(context, edge, 'mid-target', rs.midX, rs.midY, rs.midtgtArrowAngle, opacity);
-                    this.drawArrowhead(context, edge, 'mid-source', rs.midX, rs.midY, rs.midsrcArrowAngle, opacity);
+module.exports = baseMergeDeep;
 
-                    if (!isHaystack) {
-                        this.drawArrowhead(context, edge, 'target', rs.arrowEndX, rs.arrowEndY, rs.tgtArrowAngle, opacity);
-                    }
-                };
 
-                CRp$2.drawArrowhead = function (context, edge, prefix, x, y, angle, opacity) {
-                    if (isNaN(x) || x == null || isNaN(y) || y == null || isNaN(angle) || angle == null) {
-                        return;
-                    }
+/***/ }),
 
-                    var self = this;
-                    var arrowShape = edge.pstyle(prefix + '-arrow-shape').value;
+/***/ "./node_modules/lodash/_baseOrderBy.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_baseOrderBy.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
+    baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
+    baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"),
+    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
+    compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"),
+    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
+
+/**
+ * The base implementation of `_.orderBy` without param guards.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
+ * @param {string[]} orders The sort orders of `iteratees`.
+ * @returns {Array} Returns the new sorted array.
+ */
+function baseOrderBy(collection, iteratees, orders) {
+  if (iteratees.length) {
+    iteratees = arrayMap(iteratees, function(iteratee) {
+      if (isArray(iteratee)) {
+        return function(value) {
+          return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
+        }
+      }
+      return iteratee;
+    });
+  } else {
+    iteratees = [identity];
+  }
 
-                    if (arrowShape === 'none') {
-                        return;
-                    }
+  var index = -1;
+  iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
 
-                    var arrowClearFill = edge.pstyle(prefix + '-arrow-fill').value === 'hollow' ? 'both' : 'filled';
-                    var arrowFill = edge.pstyle(prefix + '-arrow-fill').value;
-                    var edgeWidth = edge.pstyle('width').pfValue;
-                    var edgeOpacity = edge.pstyle('opacity').value;
+  var result = baseMap(collection, function(value, key, collection) {
+    var criteria = arrayMap(iteratees, function(iteratee) {
+      return iteratee(value);
+    });
+    return { 'criteria': criteria, 'index': ++index, 'value': value };
+  });
 
-                    if (opacity === undefined) {
-                        opacity = edgeOpacity;
-                    }
+  return baseSortBy(result, function(object, other) {
+    return compareMultiple(object, other, orders);
+  });
+}
 
-                    var gco = context.globalCompositeOperation;
+module.exports = baseOrderBy;
 
-                    if (opacity !== 1 || arrowFill === 'hollow') {
-                        // then extra clear is needed
-                        context.globalCompositeOperation = 'destination-out';
-                        self.colorFillStyle(context, 255, 255, 255, 1);
-                        self.colorStrokeStyle(context, 255, 255, 255, 1);
-                        self.drawArrowShape(edge, context, arrowClearFill, edgeWidth, arrowShape, x, y, angle);
-                        context.globalCompositeOperation = gco;
-                    } // otherwise, the opaque arrow clears it for free :)
 
+/***/ }),
 
-                    var color = edge.pstyle(prefix + '-arrow-color').value;
-                    self.colorFillStyle(context, color[0], color[1], color[2], opacity);
-                    self.colorStrokeStyle(context, color[0], color[1], color[2], opacity);
-                    self.drawArrowShape(edge, context, arrowFill, edgeWidth, arrowShape, x, y, angle);
-                };
+/***/ "./node_modules/lodash/_basePick.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_basePick.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$2.drawArrowShape = function (edge, context, fill, edgeWidth, shape, x, y, angle) {
-                    var r = this;
-                    var usePaths = this.usePaths() && shape !== 'triangle-cross';
-                    var pathCacheHit = false;
-                    var path;
-                    var canvasContext = context;
-                    var translation = {
-                        x: x,
-                        y: y
-                    };
-                    var scale = edge.pstyle('arrow-scale').value;
-                    var size = this.getArrowWidth(edgeWidth, scale);
-                    var shapeImpl = r.arrowShapes[shape];
-
-                    if (usePaths) {
-                        var cache = r.arrowPathCache = r.arrowPathCache || [];
-                        var key = hashString(shape);
-                        var cachedPath = cache[key];
-
-                        if (cachedPath != null) {
-                            path = context = cachedPath;
-                            pathCacheHit = true;
-                        } else {
-                            path = context = new Path2D();
-                            cache[key] = path;
-                        }
-                    }
+var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
+    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
 
-                    if (!pathCacheHit) {
-                        if (context.beginPath) {
-                            context.beginPath();
-                        }
+/**
+ * The base implementation of `_.pick` without support for individual
+ * property identifiers.
+ *
+ * @private
+ * @param {Object} object The source object.
+ * @param {string[]} paths The property paths to pick.
+ * @returns {Object} Returns the new object.
+ */
+function basePick(object, paths) {
+  return basePickBy(object, paths, function(value, path) {
+    return hasIn(object, path);
+  });
+}
 
-                        if (usePaths) {
-                            // store in the path cache with values easily manipulated later
-                            shapeImpl.draw(context, 1, 0, {
-                                x: 0,
-                                y: 0
-                            }, 1);
-                        } else {
-                            shapeImpl.draw(context, size, angle, translation, edgeWidth);
-                        }
+module.exports = basePick;
 
-                        if (context.closePath) {
-                            context.closePath();
-                        }
-                    }
 
-                    context = canvasContext;
+/***/ }),
 
-                    if (usePaths) {
-                        // set transform to arrow position/orientation
-                        context.translate(x, y);
-                        context.rotate(angle);
-                        context.scale(size, size);
-                    }
+/***/ "./node_modules/lodash/_basePickBy.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_basePickBy.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (fill === 'filled' || fill === 'both') {
-                        if (usePaths) {
-                            context.fill(path);
-                        } else {
-                            context.fill();
-                        }
-                    }
+var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
+    baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
+    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
 
-                    if (fill === 'hollow' || fill === 'both') {
-                        context.lineWidth = (shapeImpl.matchEdgeWidth ? edgeWidth : 1) / (usePaths ? size : 1);
-                        context.lineJoin = 'miter';
+/**
+ * The base implementation of  `_.pickBy` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Object} object The source object.
+ * @param {string[]} paths The property paths to pick.
+ * @param {Function} predicate The function invoked per property.
+ * @returns {Object} Returns the new object.
+ */
+function basePickBy(object, paths, predicate) {
+  var index = -1,
+      length = paths.length,
+      result = {};
 
-                        if (usePaths) {
-                            context.stroke(path);
-                        } else {
-                            context.stroke();
-                        }
-                    }
+  while (++index < length) {
+    var path = paths[index],
+        value = baseGet(object, path);
 
-                    if (usePaths) {
-                        // reset transform by applying inverse
-                        context.scale(1 / size, 1 / size);
-                        context.rotate(-angle);
-                        context.translate(-x, -y);
-                    }
-                };
+    if (predicate(value, path)) {
+      baseSet(result, castPath(path, object), value);
+    }
+  }
+  return result;
+}
 
-                var CRp$3 = {};
+module.exports = basePickBy;
 
-                CRp$3.safeDrawImage = function (context, img, ix, iy, iw, ih, x, y, w, h) {
-                    // detect problematic cases for old browsers with bad images (cheaper than try-catch)
-                    if (iw <= 0 || ih <= 0 || w <= 0 || h <= 0) {
-                        return;
-                    }
 
-                    context.drawImage(img, ix, iy, iw, ih, x, y, w, h);
-                };
+/***/ }),
 
-                CRp$3.drawInscribedImage = function (context, img, node, index, nodeOpacity) {
-                    var r = this;
-                    var pos = node.position();
-                    var nodeX = pos.x;
-                    var nodeY = pos.y;
-                    var styleObj = node.cy().style();
-                    var getIndexedStyle = styleObj.getIndexedStyle.bind(styleObj);
-                    var fit = getIndexedStyle(node, 'background-fit', 'value', index);
-                    var repeat = getIndexedStyle(node, 'background-repeat', 'value', index);
-                    var nodeW = node.width();
-                    var nodeH = node.height();
-                    var paddingX2 = node.padding() * 2;
-                    var nodeTW = nodeW + (getIndexedStyle(node, 'background-width-relative-to', 'value', index) === 'inner' ? 0 : paddingX2);
-                    var nodeTH = nodeH + (getIndexedStyle(node, 'background-height-relative-to', 'value', index) === 'inner' ? 0 : paddingX2);
-                    var rs = node._private.rscratch;
-                    var clip = getIndexedStyle(node, 'background-clip', 'value', index);
-                    var shouldClip = clip === 'node';
-                    var imgOpacity = getIndexedStyle(node, 'background-image-opacity', 'value', index) * nodeOpacity;
-                    var imgW = img.width || img.cachedW;
-                    var imgH = img.height || img.cachedH; // workaround for broken browsers like ie
-
-                    if (null == imgW || null == imgH) {
-                        document.body.appendChild(img); // eslint-disable-line no-undef
-
-                        imgW = img.cachedW = img.width || img.offsetWidth;
-                        imgH = img.cachedH = img.height || img.offsetHeight;
-                        document.body.removeChild(img); // eslint-disable-line no-undef
-                    }
+/***/ "./node_modules/lodash/_baseProperty.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseProperty.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var w = imgW;
-                    var h = imgH;
+/**
+ * The base implementation of `_.property` without support for deep paths.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @returns {Function} Returns the new accessor function.
+ */
+function baseProperty(key) {
+  return function(object) {
+    return object == null ? undefined : object[key];
+  };
+}
 
-                    if (getIndexedStyle(node, 'background-width', 'value', index) !== 'auto') {
-                        if (getIndexedStyle(node, 'background-width', 'units', index) === '%') {
-                            w = getIndexedStyle(node, 'background-width', 'pfValue', index) * nodeTW;
-                        } else {
-                            w = getIndexedStyle(node, 'background-width', 'pfValue', index);
-                        }
-                    }
+module.exports = baseProperty;
 
-                    if (getIndexedStyle(node, 'background-height', 'value', index) !== 'auto') {
-                        if (getIndexedStyle(node, 'background-height', 'units', index) === '%') {
-                            h = getIndexedStyle(node, 'background-height', 'pfValue', index) * nodeTH;
-                        } else {
-                            h = getIndexedStyle(node, 'background-height', 'pfValue', index);
-                        }
-                    }
 
-                    if (w === 0 || h === 0) {
-                        return; // no point in drawing empty image (and chrome is broken in this case)
-                    }
+/***/ }),
 
-                    if (fit === 'contain') {
-                        var scale = Math.min(nodeTW / w, nodeTH / h);
-                        w *= scale;
-                        h *= scale;
-                    } else if (fit === 'cover') {
-                        var scale = Math.max(nodeTW / w, nodeTH / h);
-                        w *= scale;
-                        h *= scale;
-                    }
+/***/ "./node_modules/lodash/_basePropertyDeep.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/_basePropertyDeep.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var x = nodeX - nodeTW / 2; // left
+var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
 
-                    var posXUnits = getIndexedStyle(node, 'background-position-x', 'units', index);
-                    var posXPfVal = getIndexedStyle(node, 'background-position-x', 'pfValue', index);
+/**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new accessor function.
+ */
+function basePropertyDeep(path) {
+  return function(object) {
+    return baseGet(object, path);
+  };
+}
 
-                    if (posXUnits === '%') {
-                        x += (nodeTW - w) * posXPfVal;
-                    } else {
-                        x += posXPfVal;
-                    }
+module.exports = basePropertyDeep;
 
-                    var offXUnits = getIndexedStyle(node, 'background-offset-x', 'units', index);
-                    var offXPfVal = getIndexedStyle(node, 'background-offset-x', 'pfValue', index);
 
-                    if (offXUnits === '%') {
-                        x += (nodeTW - w) * offXPfVal;
-                    } else {
-                        x += offXPfVal;
-                    }
+/***/ }),
 
-                    var y = nodeY - nodeTH / 2; // top
+/***/ "./node_modules/lodash/_baseRange.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseRange.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var posYUnits = getIndexedStyle(node, 'background-position-y', 'units', index);
-                    var posYPfVal = getIndexedStyle(node, 'background-position-y', 'pfValue', index);
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeCeil = Math.ceil,
+    nativeMax = Math.max;
 
-                    if (posYUnits === '%') {
-                        y += (nodeTH - h) * posYPfVal;
-                    } else {
-                        y += posYPfVal;
-                    }
+/**
+ * The base implementation of `_.range` and `_.rangeRight` which doesn't
+ * coerce arguments.
+ *
+ * @private
+ * @param {number} start The start of the range.
+ * @param {number} end The end of the range.
+ * @param {number} step The value to increment or decrement by.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Array} Returns the range of numbers.
+ */
+function baseRange(start, end, step, fromRight) {
+  var index = -1,
+      length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
+      result = Array(length);
+
+  while (length--) {
+    result[fromRight ? length : ++index] = start;
+    start += step;
+  }
+  return result;
+}
 
-                    var offYUnits = getIndexedStyle(node, 'background-offset-y', 'units', index);
-                    var offYPfVal = getIndexedStyle(node, 'background-offset-y', 'pfValue', index);
+module.exports = baseRange;
 
-                    if (offYUnits === '%') {
-                        y += (nodeTH - h) * offYPfVal;
-                    } else {
-                        y += offYPfVal;
-                    }
 
-                    if (rs.pathCache) {
-                        x -= nodeX;
-                        y -= nodeY;
-                        nodeX = 0;
-                        nodeY = 0;
-                    }
+/***/ }),
 
-                    var gAlpha = context.globalAlpha;
-                    context.globalAlpha = imgOpacity;
+/***/ "./node_modules/lodash/_baseReduce.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseReduce.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    if (repeat === 'no-repeat') {
-                        if (shouldClip) {
-                            context.save();
+/**
+ * The base implementation of `_.reduce` and `_.reduceRight`, without support
+ * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
+ *
+ * @private
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @param {*} accumulator The initial value.
+ * @param {boolean} initAccum Specify using the first or last element of
+ *  `collection` as the initial value.
+ * @param {Function} eachFunc The function to iterate over `collection`.
+ * @returns {*} Returns the accumulated value.
+ */
+function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
+  eachFunc(collection, function(value, index, collection) {
+    accumulator = initAccum
+      ? (initAccum = false, value)
+      : iteratee(accumulator, value, index, collection);
+  });
+  return accumulator;
+}
 
-                            if (rs.pathCache) {
-                                context.clip(rs.pathCache);
-                            } else {
-                                r.nodeShapes[r.getNodeShape(node)].draw(context, nodeX, nodeY, nodeTW, nodeTH);
-                                context.clip();
-                            }
-                        }
+module.exports = baseReduce;
 
-                        r.safeDrawImage(context, img, 0, 0, imgW, imgH, x, y, w, h);
 
-                        if (shouldClip) {
-                            context.restore();
-                        }
-                    } else {
-                        var pattern = context.createPattern(img, repeat);
-                        context.fillStyle = pattern;
-                        r.nodeShapes[r.getNodeShape(node)].draw(context, nodeX, nodeY, nodeTW, nodeTH);
-                        context.translate(x, y);
-                        context.fill();
-                        context.translate(-x, -y);
-                    }
+/***/ }),
 
-                    context.globalAlpha = gAlpha;
-                };
+/***/ "./node_modules/lodash/_baseRest.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_baseRest.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var CRp$4 = {};
+var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
+    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
+    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
 
-                CRp$4.eleTextBiggerThanMin = function (ele, scale) {
-                    if (!scale) {
-                        var zoom = ele.cy().zoom();
-                        var pxRatio = this.getPixelRatio();
-                        var lvl = Math.ceil(log2(zoom * pxRatio)); // the effective texture level
+/**
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
+ *
+ * @private
+ * @param {Function} func The function to apply a rest parameter to.
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
+ * @returns {Function} Returns the new function.
+ */
+function baseRest(func, start) {
+  return setToString(overRest(func, start, identity), func + '');
+}
 
-                        scale = Math.pow(2, lvl);
-                    }
+module.exports = baseRest;
 
-                    var computedSize = ele.pstyle('font-size').pfValue * scale;
-                    var minSize = ele.pstyle('min-zoomed-font-size').pfValue;
 
-                    if (computedSize < minSize) {
-                        return false;
-                    }
+/***/ }),
 
-                    return true;
-                };
+/***/ "./node_modules/lodash/_baseSet.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_baseSet.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$4.drawElementText = function (context, ele, shiftToOriginWithBb, force, prefix) {
-                    var useEleOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
-                    var r = this;
+var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
+    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
+    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
 
-                    if (force == null) {
-                        if (useEleOpacity && !r.eleTextBiggerThanMin(ele)) {
-                            return;
-                        }
-                    } else if (force === false) {
-                        return;
-                    }
+/**
+ * The base implementation of `_.set`.
+ *
+ * @private
+ * @param {Object} object The object to modify.
+ * @param {Array|string} path The path of the property to set.
+ * @param {*} value The value to set.
+ * @param {Function} [customizer] The function to customize path creation.
+ * @returns {Object} Returns `object`.
+ */
+function baseSet(object, path, value, customizer) {
+  if (!isObject(object)) {
+    return object;
+  }
+  path = castPath(path, object);
 
-                    if (ele.isNode()) {
-                        var label = ele.pstyle('label');
+  var index = -1,
+      length = path.length,
+      lastIndex = length - 1,
+      nested = object;
 
-                        if (!label || !label.value) {
-                            return;
-                        }
+  while (nested != null && ++index < length) {
+    var key = toKey(path[index]),
+        newValue = value;
 
-                        var justification = r.getLabelJustification(ele);
-                        context.textAlign = justification;
-                        context.textBaseline = 'bottom';
-                    } else {
-                        var badLine = ele.element()._private.rscratch.badLine;
+    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
+      return object;
+    }
 
-                        var _label = ele.pstyle('label');
+    if (index != lastIndex) {
+      var objValue = nested[key];
+      newValue = customizer ? customizer(objValue, key, nested) : undefined;
+      if (newValue === undefined) {
+        newValue = isObject(objValue)
+          ? objValue
+          : (isIndex(path[index + 1]) ? [] : {});
+      }
+    }
+    assignValue(nested, key, newValue);
+    nested = nested[key];
+  }
+  return object;
+}
 
-                        var srcLabel = ele.pstyle('source-label');
-                        var tgtLabel = ele.pstyle('target-label');
+module.exports = baseSet;
 
-                        if (badLine || (!_label || !_label.value) && (!srcLabel || !srcLabel.value) && (!tgtLabel || !tgtLabel.value)) {
-                            return;
-                        }
 
-                        context.textAlign = 'center';
-                        context.textBaseline = 'bottom';
-                    }
+/***/ }),
 
-                    var applyRotation = !shiftToOriginWithBb;
-                    var bb;
+/***/ "./node_modules/lodash/_baseSetToString.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_baseSetToString.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (shiftToOriginWithBb) {
-                        bb = shiftToOriginWithBb;
-                        context.translate(-bb.x1, -bb.y1);
-                    }
+var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
+    defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
+    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
 
-                    if (prefix == null) {
-                        r.drawText(context, ele, null, applyRotation, useEleOpacity);
+/**
+ * The base implementation of `setToString` without support for hot loop shorting.
+ *
+ * @private
+ * @param {Function} func The function to modify.
+ * @param {Function} string The `toString` result.
+ * @returns {Function} Returns `func`.
+ */
+var baseSetToString = !defineProperty ? identity : function(func, string) {
+  return defineProperty(func, 'toString', {
+    'configurable': true,
+    'enumerable': false,
+    'value': constant(string),
+    'writable': true
+  });
+};
 
-                        if (ele.isEdge()) {
-                            r.drawText(context, ele, 'source', applyRotation, useEleOpacity);
-                            r.drawText(context, ele, 'target', applyRotation, useEleOpacity);
-                        }
-                    } else {
-                        r.drawText(context, ele, prefix, applyRotation, useEleOpacity);
-                    }
+module.exports = baseSetToString;
 
-                    if (shiftToOriginWithBb) {
-                        context.translate(bb.x1, bb.y1);
-                    }
-                };
 
-                CRp$4.getFontCache = function (context) {
-                    var cache;
-                    this.fontCaches = this.fontCaches || [];
+/***/ }),
 
-                    for (var i = 0; i < this.fontCaches.length; i++) {
-                        cache = this.fontCaches[i];
+/***/ "./node_modules/lodash/_baseSortBy.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseSortBy.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                        if (cache.context === context) {
-                            return cache;
-                        }
-                    }
+/**
+ * The base implementation of `_.sortBy` which uses `comparer` to define the
+ * sort order of `array` and replaces criteria objects with their corresponding
+ * values.
+ *
+ * @private
+ * @param {Array} array The array to sort.
+ * @param {Function} comparer The function to define sort order.
+ * @returns {Array} Returns `array`.
+ */
+function baseSortBy(array, comparer) {
+  var length = array.length;
 
-                    cache = {
-                        context: context
-                    };
-                    this.fontCaches.push(cache);
-                    return cache;
-                }; // set up canvas context with font
-// returns transformed text string
+  array.sort(comparer);
+  while (length--) {
+    array[length] = array[length].value;
+  }
+  return array;
+}
 
+module.exports = baseSortBy;
 
-                CRp$4.setupTextStyle = function (context, ele) {
-                    var useEleOpacity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
-                    // Font style
-                    var labelStyle = ele.pstyle('font-style').strValue;
-                    var labelSize = ele.pstyle('font-size').pfValue + 'px';
-                    var labelFamily = ele.pstyle('font-family').strValue;
-                    var labelWeight = ele.pstyle('font-weight').strValue;
-                    var opacity = useEleOpacity ? ele.effectiveOpacity() * ele.pstyle('text-opacity').value : 1;
-                    var outlineOpacity = ele.pstyle('text-outline-opacity').value * opacity;
-                    var color = ele.pstyle('color').value;
-                    var outlineColor = ele.pstyle('text-outline-color').value;
-                    context.font = labelStyle + ' ' + labelWeight + ' ' + labelSize + ' ' + labelFamily;
-                    context.lineJoin = 'round'; // so text outlines aren't jagged
-
-                    this.colorFillStyle(context, color[0], color[1], color[2], opacity);
-                    this.colorStrokeStyle(context, outlineColor[0], outlineColor[1], outlineColor[2], outlineOpacity);
-                }; // TODO ensure re-used
-
-
-                function roundRect(ctx, x, y, width, height) {
-                    var radius = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 5;
-                    ctx.beginPath();
-                    ctx.moveTo(x + radius, y);
-                    ctx.lineTo(x + width - radius, y);
-                    ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
-                    ctx.lineTo(x + width, y + height - radius);
-                    ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
-                    ctx.lineTo(x + radius, y + height);
-                    ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
-                    ctx.lineTo(x, y + radius);
-                    ctx.quadraticCurveTo(x, y, x + radius, y);
-                    ctx.closePath();
-                    ctx.fill();
-                }
 
-                CRp$4.getTextAngle = function (ele, prefix) {
-                    var theta;
-                    var _p = ele._private;
-                    var rscratch = _p.rscratch;
-                    var pdash = prefix ? prefix + '-' : '';
-                    var rotation = ele.pstyle(pdash + 'text-rotation');
-                    var textAngle = getPrefixedProperty(rscratch, 'labelAngle', prefix);
-
-                    if (rotation.strValue === 'autorotate') {
-                        theta = ele.isEdge() ? textAngle : 0;
-                    } else if (rotation.strValue === 'none') {
-                        theta = 0;
-                    } else {
-                        theta = rotation.pfValue;
-                    }
+/***/ }),
 
-                    return theta;
-                };
+/***/ "./node_modules/lodash/_baseTimes.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseTimes.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                CRp$4.drawText = function (context, ele, prefix) {
-                    var applyRotation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
-                    var useEleOpacity = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
-                    var _p = ele._private;
-                    var rscratch = _p.rscratch;
-                    var parentOpacity = useEleOpacity ? ele.effectiveOpacity() : 1;
+/**
+ * The base implementation of `_.times` without support for iteratee shorthands
+ * or max array length checks.
+ *
+ * @private
+ * @param {number} n The number of times to invoke `iteratee`.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the array of results.
+ */
+function baseTimes(n, iteratee) {
+  var index = -1,
+      result = Array(n);
 
-                    if (useEleOpacity && (parentOpacity === 0 || ele.pstyle('text-opacity').value === 0)) {
-                        return;
-                    } // use 'main' as an alias for the main label (i.e. null prefix)
+  while (++index < n) {
+    result[index] = iteratee(index);
+  }
+  return result;
+}
 
+module.exports = baseTimes;
 
-                    if (prefix === 'main') {
-                        prefix = null;
-                    }
 
-                    var textX = getPrefixedProperty(rscratch, 'labelX', prefix);
-                    var textY = getPrefixedProperty(rscratch, 'labelY', prefix);
-                    var orgTextX, orgTextY; // used for rotation
-
-                    var text = this.getLabelText(ele, prefix);
-
-                    if (text != null && text !== '' && !isNaN(textX) && !isNaN(textY)) {
-                        this.setupTextStyle(context, ele, useEleOpacity);
-                        var pdash = prefix ? prefix + '-' : '';
-                        var textW = getPrefixedProperty(rscratch, 'labelWidth', prefix);
-                        var textH = getPrefixedProperty(rscratch, 'labelHeight', prefix);
-                        var marginX = ele.pstyle(pdash + 'text-margin-x').pfValue;
-                        var marginY = ele.pstyle(pdash + 'text-margin-y').pfValue;
-                        var isEdge = ele.isEdge();
-                        var halign = ele.pstyle('text-halign').value;
-                        var valign = ele.pstyle('text-valign').value;
-
-                        if (isEdge) {
-                            halign = 'center';
-                            valign = 'center';
-                        }
+/***/ }),
 
-                        textX += marginX;
-                        textY += marginY;
-                        var theta;
+/***/ "./node_modules/lodash/_baseToString.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_baseToString.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (!applyRotation) {
-                            theta = 0;
-                        } else {
-                            theta = this.getTextAngle(ele, prefix);
-                        }
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
+    arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
 
-                        if (theta !== 0) {
-                            orgTextX = textX;
-                            orgTextY = textY;
-                            context.translate(orgTextX, orgTextY);
-                            context.rotate(theta);
-                            textX = 0;
-                            textY = 0;
-                        }
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0;
 
-                        switch (valign) {
-                            case 'top':
-                                break;
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+    symbolToString = symbolProto ? symbolProto.toString : undefined;
 
-                            case 'center':
-                                textY += textH / 2;
-                                break;
+/**
+ * The base implementation of `_.toString` which doesn't convert nullish
+ * values to empty strings.
+ *
+ * @private
+ * @param {*} value The value to process.
+ * @returns {string} Returns the string.
+ */
+function baseToString(value) {
+  // Exit early for strings to avoid a performance hit in some environments.
+  if (typeof value == 'string') {
+    return value;
+  }
+  if (isArray(value)) {
+    // Recursively convert values (susceptible to call stack limits).
+    return arrayMap(value, baseToString) + '';
+  }
+  if (isSymbol(value)) {
+    return symbolToString ? symbolToString.call(value) : '';
+  }
+  var result = (value + '');
+  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
 
-                            case 'bottom':
-                                textY += textH;
-                                break;
-                        }
+module.exports = baseToString;
 
-                        var backgroundOpacity = ele.pstyle('text-background-opacity').value;
-                        var borderOpacity = ele.pstyle('text-border-opacity').value;
-                        var textBorderWidth = ele.pstyle('text-border-width').pfValue;
-                        var backgroundPadding = ele.pstyle('text-background-padding').pfValue;
 
-                        if (backgroundOpacity > 0 || textBorderWidth > 0 && borderOpacity > 0) {
-                            var bgX = textX - backgroundPadding;
+/***/ }),
 
-                            switch (halign) {
-                                case 'left':
-                                    bgX -= textW;
-                                    break;
+/***/ "./node_modules/lodash/_baseUnary.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_baseUnary.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                                case 'center':
-                                    bgX -= textW / 2;
-                                    break;
-                            }
+/**
+ * The base implementation of `_.unary` without support for storing metadata.
+ *
+ * @private
+ * @param {Function} func The function to cap arguments for.
+ * @returns {Function} Returns the new capped function.
+ */
+function baseUnary(func) {
+  return function(value) {
+    return func(value);
+  };
+}
 
-                            var bgY = textY - textH - backgroundPadding;
-                            var bgW = textW + 2 * backgroundPadding;
-                            var bgH = textH + 2 * backgroundPadding;
+module.exports = baseUnary;
 
-                            if (backgroundOpacity > 0) {
-                                var textFill = context.fillStyle;
-                                var textBackgroundColor = ele.pstyle('text-background-color').value;
-                                context.fillStyle = 'rgba(' + textBackgroundColor[0] + ',' + textBackgroundColor[1] + ',' + textBackgroundColor[2] + ',' + backgroundOpacity * parentOpacity + ')';
-                                var styleShape = ele.pstyle('text-background-shape').strValue;
 
-                                if (styleShape.indexOf('round') === 0) {
-                                    roundRect(context, bgX, bgY, bgW, bgH, 2);
-                                } else {
-                                    context.fillRect(bgX, bgY, bgW, bgH);
-                                }
+/***/ }),
 
-                                context.fillStyle = textFill;
-                            }
+/***/ "./node_modules/lodash/_baseUniq.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_baseUniq.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            if (textBorderWidth > 0 && borderOpacity > 0) {
-                                var textStroke = context.strokeStyle;
-                                var textLineWidth = context.lineWidth;
-                                var textBorderColor = ele.pstyle('text-border-color').value;
-                                var textBorderStyle = ele.pstyle('text-border-style').value;
-                                context.strokeStyle = 'rgba(' + textBorderColor[0] + ',' + textBorderColor[1] + ',' + textBorderColor[2] + ',' + borderOpacity * parentOpacity + ')';
-                                context.lineWidth = textBorderWidth;
-
-                                if (context.setLineDash) {
-                                    // for very outofdate browsers
-                                    switch (textBorderStyle) {
-                                        case 'dotted':
-                                            context.setLineDash([1, 1]);
-                                            break;
-
-                                        case 'dashed':
-                                            context.setLineDash([4, 2]);
-                                            break;
-
-                                        case 'double':
-                                            context.lineWidth = textBorderWidth / 4; // 50% reserved for white between the two borders
-
-                                            context.setLineDash([]);
-                                            break;
-
-                                        case 'solid':
-                                            context.setLineDash([]);
-                                            break;
-                                    }
-                                }
-
-                                context.strokeRect(bgX, bgY, bgW, bgH);
-
-                                if (textBorderStyle === 'double') {
-                                    var whiteWidth = textBorderWidth / 2;
-                                    context.strokeRect(bgX + whiteWidth, bgY + whiteWidth, bgW - whiteWidth * 2, bgH - whiteWidth * 2);
-                                }
-
-                                if (context.setLineDash) {
-                                    // for very outofdate browsers
-                                    context.setLineDash([]);
-                                }
-
-                                context.lineWidth = textLineWidth;
-                                context.strokeStyle = textStroke;
-                            }
-                        }
+var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
+    arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
+    arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
+    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
+    createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
+    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
 
-                        var lineWidth = 2 * ele.pstyle('text-outline-width').pfValue; // *2 b/c the stroke is drawn centred on the middle
+/** Used as the size to enable large array optimizations. */
+var LARGE_ARRAY_SIZE = 200;
 
-                        if (lineWidth > 0) {
-                            context.lineWidth = lineWidth;
-                        }
+/**
+ * The base implementation of `_.uniqBy` without support for iteratee shorthands.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {Function} [iteratee] The iteratee invoked per element.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns the new duplicate free array.
+ */
+function baseUniq(array, iteratee, comparator) {
+  var index = -1,
+      includes = arrayIncludes,
+      length = array.length,
+      isCommon = true,
+      result = [],
+      seen = result;
+
+  if (comparator) {
+    isCommon = false;
+    includes = arrayIncludesWith;
+  }
+  else if (length >= LARGE_ARRAY_SIZE) {
+    var set = iteratee ? null : createSet(array);
+    if (set) {
+      return setToArray(set);
+    }
+    isCommon = false;
+    includes = cacheHas;
+    seen = new SetCache;
+  }
+  else {
+    seen = iteratee ? [] : result;
+  }
+  outer:
+  while (++index < length) {
+    var value = array[index],
+        computed = iteratee ? iteratee(value) : value;
+
+    value = (comparator || value !== 0) ? value : 0;
+    if (isCommon && computed === computed) {
+      var seenIndex = seen.length;
+      while (seenIndex--) {
+        if (seen[seenIndex] === computed) {
+          continue outer;
+        }
+      }
+      if (iteratee) {
+        seen.push(computed);
+      }
+      result.push(value);
+    }
+    else if (!includes(seen, computed, comparator)) {
+      if (seen !== result) {
+        seen.push(computed);
+      }
+      result.push(value);
+    }
+  }
+  return result;
+}
 
-                        if (ele.pstyle('text-wrap').value === 'wrap') {
-                            var lines = getPrefixedProperty(rscratch, 'labelWrapCachedLines', prefix);
-                            var lineHeight = getPrefixedProperty(rscratch, 'labelLineHeight', prefix);
-                            var halfTextW = textW / 2;
-                            var justification = this.getLabelJustification(ele);
-
-                            if (justification === 'auto') ; else if (halign === 'left') {
-                                // auto justification : right
-                                if (justification === 'left') {
-                                    textX += -textW;
-                                } else if (justification === 'center') {
-                                    textX += -halfTextW;
-                                } // else same as auto
-
-                            } else if (halign === 'center') {
-                                // auto justfication : center
-                                if (justification === 'left') {
-                                    textX += -halfTextW;
-                                } else if (justification === 'right') {
-                                    textX += halfTextW;
-                                } // else same as auto
-
-                            } else if (halign === 'right') {
-                                // auto justification : left
-                                if (justification === 'center') {
-                                    textX += halfTextW;
-                                } else if (justification === 'right') {
-                                    textX += textW;
-                                } // else same as auto
+module.exports = baseUniq;
 
-                            }
 
-                            switch (valign) {
-                                case 'top':
-                                    textY -= (lines.length - 1) * lineHeight;
-                                    break;
+/***/ }),
 
-                                case 'center':
-                                case 'bottom':
-                                    textY -= (lines.length - 1) * lineHeight;
-                                    break;
-                            }
+/***/ "./node_modules/lodash/_baseValues.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_baseValues.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            for (var l = 0; l < lines.length; l++) {
-                                if (lineWidth > 0) {
-                                    context.strokeText(lines[l], textX, textY);
-                                }
+var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js");
 
-                                context.fillText(lines[l], textX, textY);
-                                textY += lineHeight;
-                            }
-                        } else {
-                            if (lineWidth > 0) {
-                                context.strokeText(text, textX, textY);
-                            }
+/**
+ * The base implementation of `_.values` and `_.valuesIn` which creates an
+ * array of `object` property values corresponding to the property names
+ * of `props`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array} props The property names to get values for.
+ * @returns {Object} Returns the array of property values.
+ */
+function baseValues(object, props) {
+  return arrayMap(props, function(key) {
+    return object[key];
+  });
+}
 
-                            context.fillText(text, textX, textY);
-                        }
+module.exports = baseValues;
 
-                        if (theta !== 0) {
-                            context.rotate(-theta);
-                            context.translate(-orgTextX, -orgTextY);
-                        }
-                    }
-                };
 
-                /* global Path2D */
-                var CRp$5 = {};
-
-                CRp$5.drawNode = function (context, node, shiftToOriginWithBb) {
-                    var drawLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
-                    var shouldDrawOverlay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
-                    var shouldDrawOpacity = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
-                    var r = this;
-                    var nodeWidth, nodeHeight;
-                    var _p = node._private;
-                    var rs = _p.rscratch;
-                    var pos = node.position();
-
-                    if (!number(pos.x) || !number(pos.y)) {
-                        return; // can't draw node with undefined position
-                    }
+/***/ }),
 
-                    if (shouldDrawOpacity && !node.visible()) {
-                        return;
-                    }
+/***/ "./node_modules/lodash/_baseZipObject.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_baseZipObject.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var eleOpacity = shouldDrawOpacity ? node.effectiveOpacity() : 1;
-                    var usePaths = r.usePaths();
-                    var path;
-                    var pathCacheHit = false;
-                    var padding = node.padding();
-                    nodeWidth = node.width() + 2 * padding;
-                    nodeHeight = node.height() + 2 * padding; //
-                    // setup shift
-
-                    var bb;
-
-                    if (shiftToOriginWithBb) {
-                        bb = shiftToOriginWithBb;
-                        context.translate(-bb.x1, -bb.y1);
-                    } //
-                    // load bg image
-
-
-                    var bgImgProp = node.pstyle('background-image');
-                    var urls = bgImgProp.value;
-                    var urlDefined = new Array(urls.length);
-                    var image = new Array(urls.length);
-                    var numImages = 0;
-
-                    for (var i = 0; i < urls.length; i++) {
-                        var url = urls[i];
-                        var defd = urlDefined[i] = url != null && url !== 'none';
-
-                        if (defd) {
-                            var bgImgCrossOrigin = node.cy().style().getIndexedStyle(node, 'background-image-crossorigin', 'value', i);
-                            numImages++; // get image, and if not loaded then ask to redraw when later loaded
-
-                            image[i] = r.getCachedImage(url, bgImgCrossOrigin, function () {
-                                _p.backgroundTimestamp = Date.now();
-                                node.emitAndNotify('background');
-                            });
-                        }
-                    } //
-                    // setup styles
-
-
-                    var darkness = node.pstyle('background-blacken').value;
-                    var borderWidth = node.pstyle('border-width').pfValue;
-                    var bgOpacity = node.pstyle('background-opacity').value * eleOpacity;
-                    var borderColor = node.pstyle('border-color').value;
-                    var borderStyle = node.pstyle('border-style').value;
-                    var borderOpacity = node.pstyle('border-opacity').value * eleOpacity;
-                    context.lineJoin = 'miter'; // so borders are square with the node shape
-
-                    var setupShapeColor = function setupShapeColor() {
-                        var bgOpy = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : bgOpacity;
-                        r.eleFillStyle(context, node, bgOpy);
-                    };
-
-                    var setupBorderColor = function setupBorderColor() {
-                        var bdrOpy = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : borderOpacity;
-                        r.colorStrokeStyle(context, borderColor[0], borderColor[1], borderColor[2], bdrOpy);
-                    }; //
-                    // setup shape
-
-
-                    var styleShape = node.pstyle('shape').strValue;
-                    var shapePts = node.pstyle('shape-polygon-points').pfValue;
-
-                    if (usePaths) {
-                        context.translate(pos.x, pos.y);
-                        var pathCache = r.nodePathCache = r.nodePathCache || [];
-                        var key = hashStrings(styleShape === 'polygon' ? styleShape + ',' + shapePts.join(',') : styleShape, '' + nodeHeight, '' + nodeWidth);
-                        var cachedPath = pathCache[key];
-
-                        if (cachedPath != null) {
-                            path = cachedPath;
-                            pathCacheHit = true;
-                            rs.pathCache = path;
-                        } else {
-                            path = new Path2D();
-                            pathCache[key] = rs.pathCache = path;
-                        }
-                    }
+/**
+ * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
+ *
+ * @private
+ * @param {Array} props The property identifiers.
+ * @param {Array} values The property values.
+ * @param {Function} assignFunc The function to assign values.
+ * @returns {Object} Returns the new object.
+ */
+function baseZipObject(props, values, assignFunc) {
+  var index = -1,
+      length = props.length,
+      valsLength = values.length,
+      result = {};
+
+  while (++index < length) {
+    var value = index < valsLength ? values[index] : undefined;
+    assignFunc(result, props[index], value);
+  }
+  return result;
+}
 
-                    var drawShape = function drawShape() {
-                        if (!pathCacheHit) {
-                            var npos = pos;
+module.exports = baseZipObject;
 
-                            if (usePaths) {
-                                npos = {
-                                    x: 0,
-                                    y: 0
-                                };
-                            }
 
-                            r.nodeShapes[r.getNodeShape(node)].draw(path || context, npos.x, npos.y, nodeWidth, nodeHeight);
-                        }
+/***/ }),
 
-                        if (usePaths) {
-                            context.fill(path);
-                        } else {
-                            context.fill();
-                        }
-                    };
+/***/ "./node_modules/lodash/_cacheHas.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_cacheHas.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    var drawImages = function drawImages() {
-                        var nodeOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : eleOpacity;
-                        var prevBging = _p.backgrounding;
-                        var totalCompleted = 0;
+/**
+ * Checks if a `cache` value for `key` exists.
+ *
+ * @private
+ * @param {Object} cache The cache to query.
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function cacheHas(cache, key) {
+  return cache.has(key);
+}
 
-                        for (var _i = 0; _i < image.length; _i++) {
-                            if (urlDefined[_i] && image[_i].complete && !image[_i].error) {
-                                totalCompleted++;
-                                r.drawInscribedImage(context, image[_i], node, _i, nodeOpacity);
-                            }
-                        }
+module.exports = cacheHas;
 
-                        _p.backgrounding = !(totalCompleted === numImages);
 
-                        if (prevBging !== _p.backgrounding) {
-                            // update style b/c :backgrounding state changed
-                            node.updateStyle(false);
-                        }
-                    };
+/***/ }),
 
-                    var drawPie = function drawPie() {
-                        var redrawShape = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
-                        var pieOpacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eleOpacity;
+/***/ "./node_modules/lodash/_castFunction.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_castFunction.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (r.hasPie(node)) {
-                            r.drawPie(context, node, pieOpacity); // redraw/restore path if steps after pie need it
+var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
 
-                            if (redrawShape) {
-                                if (!usePaths) {
-                                    r.nodeShapes[r.getNodeShape(node)].draw(context, pos.x, pos.y, nodeWidth, nodeHeight);
-                                }
-                            }
-                        }
-                    };
+/**
+ * Casts `value` to `identity` if it's not a function.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Function} Returns cast function.
+ */
+function castFunction(value) {
+  return typeof value == 'function' ? value : identity;
+}
 
-                    var darken = function darken() {
-                        var darkenOpacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : eleOpacity;
-                        var opacity = (darkness > 0 ? darkness : -darkness) * darkenOpacity;
-                        var c = darkness > 0 ? 0 : 255;
+module.exports = castFunction;
 
-                        if (darkness !== 0) {
-                            r.colorFillStyle(context, c, c, c, opacity);
 
-                            if (usePaths) {
-                                context.fill(path);
-                            } else {
-                                context.fill();
-                            }
-                        }
-                    };
-
-                    var drawBorder = function drawBorder() {
-                        if (borderWidth > 0) {
-                            context.lineWidth = borderWidth;
-                            context.lineCap = 'butt';
-
-                            if (context.setLineDash) {
-                                // for very outofdate browsers
-                                switch (borderStyle) {
-                                    case 'dotted':
-                                        context.setLineDash([1, 1]);
-                                        break;
-
-                                    case 'dashed':
-                                        context.setLineDash([4, 2]);
-                                        break;
-
-                                    case 'solid':
-                                    case 'double':
-                                        context.setLineDash([]);
-                                        break;
-                                }
-                            }
+/***/ }),
 
-                            if (usePaths) {
-                                context.stroke(path);
-                            } else {
-                                context.stroke();
-                            }
+/***/ "./node_modules/lodash/_castPath.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_castPath.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            if (borderStyle === 'double') {
-                                context.lineWidth = borderWidth / 3;
-                                var gco = context.globalCompositeOperation;
-                                context.globalCompositeOperation = 'destination-out';
+var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
+    stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
+    toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
 
-                                if (usePaths) {
-                                    context.stroke(path);
-                                } else {
-                                    context.stroke();
-                                }
+/**
+ * Casts `value` to a path array if it's not one.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {Array} Returns the cast property path array.
+ */
+function castPath(value, object) {
+  if (isArray(value)) {
+    return value;
+  }
+  return isKey(value, object) ? [value] : stringToPath(toString(value));
+}
 
-                                context.globalCompositeOperation = gco;
-                            } // reset in case we changed the border style
+module.exports = castPath;
 
 
-                            if (context.setLineDash) {
-                                // for very outofdate browsers
-                                context.setLineDash([]);
-                            }
-                        }
-                    };
+/***/ }),
 
-                    var drawOverlay = function drawOverlay() {
-                        if (shouldDrawOverlay) {
-                            r.drawNodeOverlay(context, node, pos, nodeWidth, nodeHeight);
-                        }
-                    };
-
-                    var drawText = function drawText() {
-                        r.drawElementText(context, node, null, drawLabel);
-                    };
-
-                    var ghost = node.pstyle('ghost').value === 'yes';
-
-                    if (ghost) {
-                        var gx = node.pstyle('ghost-offset-x').pfValue;
-                        var gy = node.pstyle('ghost-offset-y').pfValue;
-                        var ghostOpacity = node.pstyle('ghost-opacity').value;
-                        var effGhostOpacity = ghostOpacity * eleOpacity;
-                        context.translate(gx, gy);
-                        setupShapeColor(ghostOpacity * bgOpacity);
-                        drawShape();
-                        drawImages(effGhostOpacity);
-                        drawPie(darkness !== 0 || borderWidth !== 0);
-                        darken(effGhostOpacity);
-                        setupBorderColor(ghostOpacity * borderOpacity);
-                        drawBorder();
-                        context.translate(-gx, -gy);
-                    }
+/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    setupShapeColor();
-                    drawShape();
-                    drawImages();
-                    drawPie(darkness !== 0 || borderWidth !== 0);
-                    darken();
-                    setupBorderColor();
-                    drawBorder();
+var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
 
-                    if (usePaths) {
-                        context.translate(-pos.x, -pos.y);
-                    }
+/**
+ * Creates a clone of `arrayBuffer`.
+ *
+ * @private
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
+ */
+function cloneArrayBuffer(arrayBuffer) {
+  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
+  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
+  return result;
+}
 
-                    drawText();
-                    drawOverlay(); //
-                    // clean up shift
+module.exports = cloneArrayBuffer;
 
-                    if (shiftToOriginWithBb) {
-                        context.translate(bb.x1, bb.y1);
-                    }
-                };
 
-                CRp$5.drawNodeOverlay = function (context, node, pos, nodeWidth, nodeHeight) {
-                    var r = this;
+/***/ }),
 
-                    if (!node.visible()) {
-                        return;
-                    }
+/***/ "./node_modules/lodash/_cloneBuffer.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_cloneBuffer.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var overlayPadding = node.pstyle('overlay-padding').pfValue;
-                    var overlayOpacity = node.pstyle('overlay-opacity').value;
-                    var overlayColor = node.pstyle('overlay-color').value;
+/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                    if (overlayOpacity > 0) {
-                        pos = pos || node.position();
+/** Detect free variable `exports`. */
+var freeExports =  true && exports && !exports.nodeType && exports;
 
-                        if (nodeWidth == null || nodeHeight == null) {
-                            var padding = node.padding();
-                            nodeWidth = node.width() + 2 * padding;
-                            nodeHeight = node.height() + 2 * padding;
-                        }
+/** Detect free variable `module`. */
+var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
 
-                        r.colorFillStyle(context, overlayColor[0], overlayColor[1], overlayColor[2], overlayOpacity);
-                        r.nodeShapes['roundrectangle'].draw(context, pos.x, pos.y, nodeWidth + overlayPadding * 2, nodeHeight + overlayPadding * 2);
-                        context.fill();
-                    }
-                }; // does the node have at least one pie piece?
+/** Detect the popular CommonJS extension `module.exports`. */
+var moduleExports = freeModule && freeModule.exports === freeExports;
 
+/** Built-in value references. */
+var Buffer = moduleExports ? root.Buffer : undefined,
+    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
 
-                CRp$5.hasPie = function (node) {
-                    node = node[0]; // ensure ele ref
+/**
+ * Creates a clone of  `buffer`.
+ *
+ * @private
+ * @param {Buffer} buffer The buffer to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Buffer} Returns the cloned buffer.
+ */
+function cloneBuffer(buffer, isDeep) {
+  if (isDeep) {
+    return buffer.slice();
+  }
+  var length = buffer.length,
+      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
 
-                    return node._private.hasPie;
-                };
+  buffer.copy(result);
+  return result;
+}
 
-                CRp$5.drawPie = function (context, node, nodeOpacity, pos) {
-                    node = node[0]; // ensure ele ref
+module.exports = cloneBuffer;
 
-                    pos = pos || node.position();
-                    var cyStyle = node.cy().style();
-                    var pieSize = node.pstyle('pie-size');
-                    var x = pos.x;
-                    var y = pos.y;
-                    var nodeW = node.width();
-                    var nodeH = node.height();
-                    var radius = Math.min(nodeW, nodeH) / 2; // must fit in node
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
 
-                    var lastPercent = 0; // what % to continue drawing pie slices from on [0, 1]
+/***/ }),
 
-                    var usePaths = this.usePaths();
+/***/ "./node_modules/lodash/_cloneDataView.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_cloneDataView.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (usePaths) {
-                        x = 0;
-                        y = 0;
-                    }
+var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
 
-                    if (pieSize.units === '%') {
-                        radius = radius * pieSize.pfValue;
-                    } else if (pieSize.pfValue !== undefined) {
-                        radius = pieSize.pfValue / 2;
-                    }
+/**
+ * Creates a clone of `dataView`.
+ *
+ * @private
+ * @param {Object} dataView The data view to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the cloned data view.
+ */
+function cloneDataView(dataView, isDeep) {
+  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
+  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
+}
 
-                    for (var i = 1; i <= cyStyle.pieBackgroundN; i++) {
-                        // 1..N
-                        var size = node.pstyle('pie-' + i + '-background-size').value;
-                        var color = node.pstyle('pie-' + i + '-background-color').value;
-                        var opacity = node.pstyle('pie-' + i + '-background-opacity').value * nodeOpacity;
-                        var percent = size / 100; // map integer range [0, 100] to [0, 1]
-                        // percent can't push beyond 1
+module.exports = cloneDataView;
 
-                        if (percent + lastPercent > 1) {
-                            percent = 1 - lastPercent;
-                        }
 
-                        var angleStart = 1.5 * Math.PI + 2 * Math.PI * lastPercent; // start at 12 o'clock and go clockwise
+/***/ }),
 
-                        var angleDelta = 2 * Math.PI * percent;
-                        var angleEnd = angleStart + angleDelta; // ignore if
-                        // - zero size
-                        // - we're already beyond the full circle
-                        // - adding the current slice would go beyond the full circle
+/***/ "./node_modules/lodash/_cloneRegExp.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_cloneRegExp.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                        if (size === 0 || lastPercent >= 1 || lastPercent + percent > 1) {
-                            continue;
-                        }
+/** Used to match `RegExp` flags from their coerced string values. */
+var reFlags = /\w*$/;
 
-                        context.beginPath();
-                        context.moveTo(x, y);
-                        context.arc(x, y, radius, angleStart, angleEnd);
-                        context.closePath();
-                        this.colorFillStyle(context, color[0], color[1], color[2], opacity);
-                        context.fill();
-                        lastPercent += percent;
-                    }
-                };
+/**
+ * Creates a clone of `regexp`.
+ *
+ * @private
+ * @param {Object} regexp The regexp to clone.
+ * @returns {Object} Returns the cloned regexp.
+ */
+function cloneRegExp(regexp) {
+  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
+  result.lastIndex = regexp.lastIndex;
+  return result;
+}
 
-                var CRp$6 = {};
-                var motionBlurDelay = 100; // var isFirefox = typeof InstallTrigger !== 'undefined';
+module.exports = cloneRegExp;
 
-                CRp$6.getPixelRatio = function () {
-                    var context = this.data.contexts[0];
 
-                    if (this.forcedPixelRatio != null) {
-                        return this.forcedPixelRatio;
-                    }
+/***/ }),
 
-                    var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1;
-                    return (window.devicePixelRatio || 1) / backingStore; // eslint-disable-line no-undef
-                };
+/***/ "./node_modules/lodash/_cloneSymbol.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_cloneSymbol.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$6.paintCache = function (context) {
-                    var caches = this.paintCaches = this.paintCaches || [];
-                    var needToCreateCache = true;
-                    var cache;
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
 
-                    for (var i = 0; i < caches.length; i++) {
-                        cache = caches[i];
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
 
-                        if (cache.context === context) {
-                            needToCreateCache = false;
-                            break;
-                        }
-                    }
+/**
+ * Creates a clone of the `symbol` object.
+ *
+ * @private
+ * @param {Object} symbol The symbol object to clone.
+ * @returns {Object} Returns the cloned symbol object.
+ */
+function cloneSymbol(symbol) {
+  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
+}
 
-                    if (needToCreateCache) {
-                        cache = {
-                            context: context
-                        };
-                        caches.push(cache);
-                    }
+module.exports = cloneSymbol;
 
-                    return cache;
-                };
 
-                CRp$6.createGradientStyleFor = function (context, shapeStyleName, ele, fill, opacity) {
-                    var gradientStyle;
-                    var usePaths = this.usePaths();
-                    var colors = ele.pstyle(shapeStyleName + '-gradient-stop-colors').value,
-                        positions = ele.pstyle(shapeStyleName + '-gradient-stop-positions').pfValue;
-
-                    if (fill === 'radial-gradient') {
-                        if (ele.isEdge()) {
-                            var start = ele.sourceEndpoint(),
-                                end = ele.targetEndpoint(),
-                                mid = ele.midpoint();
-                            var d1 = dist(start, mid);
-                            var d2 = dist(end, mid);
-                            gradientStyle = context.createRadialGradient(mid.x, mid.y, 0, mid.x, mid.y, Math.max(d1, d2));
-                        } else {
-                            var pos = usePaths ? {
-                                    x: 0,
-                                    y: 0
-                                } : ele.position(),
-                                width = ele.paddedWidth(),
-                                height = ele.paddedHeight();
-                            gradientStyle = context.createRadialGradient(pos.x, pos.y, 0, pos.x, pos.y, Math.max(width, height));
-                        }
-                    } else {
-                        if (ele.isEdge()) {
-                            var _start = ele.sourceEndpoint(),
-                                _end = ele.targetEndpoint();
-
-                            gradientStyle = context.createLinearGradient(_start.x, _start.y, _end.x, _end.y);
-                        } else {
-                            var _pos = usePaths ? {
-                                    x: 0,
-                                    y: 0
-                                } : ele.position(),
-                                _width = ele.paddedWidth(),
-                                _height = ele.paddedHeight(),
-                                halfWidth = _width / 2,
-                                halfHeight = _height / 2;
-
-                            var direction = ele.pstyle('background-gradient-direction').value;
-
-                            switch (direction) {
-                                case 'to-bottom':
-                                    gradientStyle = context.createLinearGradient(_pos.x, _pos.y - halfHeight, _pos.x, _pos.y + halfHeight);
-                                    break;
-
-                                case 'to-top':
-                                    gradientStyle = context.createLinearGradient(_pos.x, _pos.y + halfHeight, _pos.x, _pos.y - halfHeight);
-                                    break;
-
-                                case 'to-left':
-                                    gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y, _pos.x - halfWidth, _pos.y);
-                                    break;
-
-                                case 'to-right':
-                                    gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y, _pos.x + halfWidth, _pos.y);
-                                    break;
-
-                                case 'to-bottom-right':
-                                case 'to-right-bottom':
-                                    gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y - halfHeight, _pos.x + halfWidth, _pos.y + halfHeight);
-                                    break;
-
-                                case 'to-top-right':
-                                case 'to-right-top':
-                                    gradientStyle = context.createLinearGradient(_pos.x - halfWidth, _pos.y + halfHeight, _pos.x + halfWidth, _pos.y - halfHeight);
-                                    break;
-
-                                case 'to-bottom-left':
-                                case 'to-left-bottom':
-                                    gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y - halfHeight, _pos.x - halfWidth, _pos.y + halfHeight);
-                                    break;
-
-                                case 'to-top-left':
-                                case 'to-left-top':
-                                    gradientStyle = context.createLinearGradient(_pos.x + halfWidth, _pos.y + halfHeight, _pos.x - halfWidth, _pos.y - halfHeight);
-                                    break;
-                            }
-                        }
-                    }
+/***/ }),
 
-                    if (!gradientStyle) return null; // invalid gradient style
+/***/ "./node_modules/lodash/_cloneTypedArray.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_cloneTypedArray.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var hasPositions = positions.length === colors.length;
-                    var length = colors.length;
+var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
 
-                    for (var i = 0; i < length; i++) {
-                        gradientStyle.addColorStop(hasPositions ? positions[i] : i / (length - 1), 'rgba(' + colors[i][0] + ',' + colors[i][1] + ',' + colors[i][2] + ',' + opacity + ')');
-                    }
+/**
+ * Creates a clone of `typedArray`.
+ *
+ * @private
+ * @param {Object} typedArray The typed array to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the cloned typed array.
+ */
+function cloneTypedArray(typedArray, isDeep) {
+  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
+  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
+}
 
-                    return gradientStyle;
-                };
+module.exports = cloneTypedArray;
 
-                CRp$6.gradientFillStyle = function (context, ele, fill, opacity) {
-                    var gradientStyle = this.createGradientStyleFor(context, 'background', ele, fill, opacity);
-                    if (!gradientStyle) return null; // error
 
-                    context.fillStyle = gradientStyle;
-                };
+/***/ }),
 
-                CRp$6.colorFillStyle = function (context, r, g, b, a) {
-                    context.fillStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; // turn off for now, seems context does its own caching
-                    // var cache = this.paintCache(context);
-                    // var fillStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';
-                    // if( cache.fillStyle !== fillStyle ){
-                    //   context.fillStyle = cache.fillStyle = fillStyle;
-                    // }
-                };
+/***/ "./node_modules/lodash/_compareAscending.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/_compareAscending.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$6.eleFillStyle = function (context, ele, opacity) {
-                    var backgroundFill = ele.pstyle('background-fill').value;
+var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
 
-                    if (backgroundFill === 'linear-gradient' || backgroundFill === 'radial-gradient') {
-                        this.gradientFillStyle(context, ele, backgroundFill, opacity);
-                    } else {
-                        var backgroundColor = ele.pstyle('background-color').value;
-                        this.colorFillStyle(context, backgroundColor[0], backgroundColor[1], backgroundColor[2], opacity);
-                    }
-                };
+/**
+ * Compares values to sort them in ascending order.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {number} Returns the sort order indicator for `value`.
+ */
+function compareAscending(value, other) {
+  if (value !== other) {
+    var valIsDefined = value !== undefined,
+        valIsNull = value === null,
+        valIsReflexive = value === value,
+        valIsSymbol = isSymbol(value);
+
+    var othIsDefined = other !== undefined,
+        othIsNull = other === null,
+        othIsReflexive = other === other,
+        othIsSymbol = isSymbol(other);
+
+    if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
+        (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
+        (valIsNull && othIsDefined && othIsReflexive) ||
+        (!valIsDefined && othIsReflexive) ||
+        !valIsReflexive) {
+      return 1;
+    }
+    if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
+        (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
+        (othIsNull && valIsDefined && valIsReflexive) ||
+        (!othIsDefined && valIsReflexive) ||
+        !othIsReflexive) {
+      return -1;
+    }
+  }
+  return 0;
+}
 
-                CRp$6.gradientStrokeStyle = function (context, ele, fill, opacity) {
-                    var gradientStyle = this.createGradientStyleFor(context, 'line', ele, fill, opacity);
-                    if (!gradientStyle) return null; // error
+module.exports = compareAscending;
 
-                    context.strokeStyle = gradientStyle;
-                };
 
-                CRp$6.colorStrokeStyle = function (context, r, g, b, a) {
-                    context.strokeStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; // turn off for now, seems context does its own caching
-                    // var cache = this.paintCache(context);
-                    // var strokeStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';
-                    // if( cache.strokeStyle !== strokeStyle ){
-                    //   context.strokeStyle = cache.strokeStyle = strokeStyle;
-                    // }
-                };
+/***/ }),
 
-                CRp$6.eleStrokeStyle = function (context, ele, opacity) {
-                    var lineFill = ele.pstyle('line-fill').value;
+/***/ "./node_modules/lodash/_compareMultiple.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_compareMultiple.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (lineFill === 'linear-gradient' || lineFill === 'radial-gradient') {
-                        this.gradientStrokeStyle(context, ele, lineFill, opacity);
-                    } else {
-                        var lineColor = ele.pstyle('line-color').value;
-                        this.colorStrokeStyle(context, lineColor[0], lineColor[1], lineColor[2], opacity);
-                    }
-                }; // Resize canvas
+var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js");
 
+/**
+ * Used by `_.orderBy` to compare multiple properties of a value to another
+ * and stable sort them.
+ *
+ * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
+ * specify an order of "desc" for descending or "asc" for ascending sort order
+ * of corresponding values.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {boolean[]|string[]} orders The order to sort by for each property.
+ * @returns {number} Returns the sort order indicator for `object`.
+ */
+function compareMultiple(object, other, orders) {
+  var index = -1,
+      objCriteria = object.criteria,
+      othCriteria = other.criteria,
+      length = objCriteria.length,
+      ordersLength = orders.length;
+
+  while (++index < length) {
+    var result = compareAscending(objCriteria[index], othCriteria[index]);
+    if (result) {
+      if (index >= ordersLength) {
+        return result;
+      }
+      var order = orders[index];
+      return result * (order == 'desc' ? -1 : 1);
+    }
+  }
+  // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
+  // that causes it, under certain circumstances, to provide the same value for
+  // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
+  // for more details.
+  //
+  // This also ensures a stable sort in V8 and other engines.
+  // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
+  return object.index - other.index;
+}
 
-                CRp$6.matchCanvasSize = function (container) {
-                    var r = this;
-                    var data = r.data;
-                    var bb = r.findContainerClientCoords();
-                    var width = bb[2];
-                    var height = bb[3];
-                    var pixelRatio = r.getPixelRatio();
-                    var mbPxRatio = r.motionBlurPxRatio;
+module.exports = compareMultiple;
 
-                    if (container === r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE] || container === r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG]) {
-                        pixelRatio = mbPxRatio;
-                    }
 
-                    var canvasWidth = width * pixelRatio;
-                    var canvasHeight = height * pixelRatio;
-                    var canvas;
+/***/ }),
 
-                    if (canvasWidth === r.canvasWidth && canvasHeight === r.canvasHeight) {
-                        return; // save cycles if same
-                    }
+/***/ "./node_modules/lodash/_copyArray.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_copyArray.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    r.fontCaches = null; // resizing resets the style
+/**
+ * Copies the values of `source` to `array`.
+ *
+ * @private
+ * @param {Array} source The array to copy values from.
+ * @param {Array} [array=[]] The array to copy values to.
+ * @returns {Array} Returns `array`.
+ */
+function copyArray(source, array) {
+  var index = -1,
+      length = source.length;
 
-                    var canvasContainer = data.canvasContainer;
-                    canvasContainer.style.width = width + 'px';
-                    canvasContainer.style.height = height + 'px';
+  array || (array = Array(length));
+  while (++index < length) {
+    array[index] = source[index];
+  }
+  return array;
+}
 
-                    for (var i = 0; i < r.CANVAS_LAYERS; i++) {
-                        canvas = data.canvases[i];
-                        canvas.width = canvasWidth;
-                        canvas.height = canvasHeight;
-                        canvas.style.width = width + 'px';
-                        canvas.style.height = height + 'px';
-                    }
+module.exports = copyArray;
 
-                    for (var i = 0; i < r.BUFFER_COUNT; i++) {
-                        canvas = data.bufferCanvases[i];
-                        canvas.width = canvasWidth;
-                        canvas.height = canvasHeight;
-                        canvas.style.width = width + 'px';
-                        canvas.style.height = height + 'px';
-                    }
 
-                    r.textureMult = 1;
+/***/ }),
 
-                    if (pixelRatio <= 1) {
-                        canvas = data.bufferCanvases[r.TEXTURE_BUFFER];
-                        r.textureMult = 2;
-                        canvas.width = canvasWidth * r.textureMult;
-                        canvas.height = canvasHeight * r.textureMult;
-                    }
+/***/ "./node_modules/lodash/_copyObject.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_copyObject.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    r.canvasWidth = canvasWidth;
-                    r.canvasHeight = canvasHeight;
-                };
+var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
+    baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
 
-                CRp$6.renderTo = function (cxt, zoom, pan, pxRatio) {
-                    this.render({
-                        forcedContext: cxt,
-                        forcedZoom: zoom,
-                        forcedPan: pan,
-                        drawAllLayers: true,
-                        forcedPxRatio: pxRatio
-                    });
-                };
+/**
+ * Copies properties of `source` to `object`.
+ *
+ * @private
+ * @param {Object} source The object to copy properties from.
+ * @param {Array} props The property identifiers to copy.
+ * @param {Object} [object={}] The object to copy properties to.
+ * @param {Function} [customizer] The function to customize copied values.
+ * @returns {Object} Returns `object`.
+ */
+function copyObject(source, props, object, customizer) {
+  var isNew = !object;
+  object || (object = {});
 
-                CRp$6.render = function (options) {
-                    options = options || staticEmptyObject();
-                    var forcedContext = options.forcedContext;
-                    var drawAllLayers = options.drawAllLayers;
-                    var drawOnlyNodeLayer = options.drawOnlyNodeLayer;
-                    var forcedZoom = options.forcedZoom;
-                    var forcedPan = options.forcedPan;
-                    var r = this;
-                    var pixelRatio = options.forcedPxRatio === undefined ? this.getPixelRatio() : options.forcedPxRatio;
-                    var cy = r.cy;
-                    var data = r.data;
-                    var needDraw = data.canvasNeedsRedraw;
-                    var textureDraw = r.textureOnViewport && !forcedContext && (r.pinching || r.hoverData.dragging || r.swipePanning || r.data.wheelZooming);
-                    var motionBlur = options.motionBlur !== undefined ? options.motionBlur : r.motionBlur;
-                    var mbPxRatio = r.motionBlurPxRatio;
-                    var hasCompoundNodes = cy.hasCompoundNodes();
-                    var inNodeDragGesture = r.hoverData.draggingEles;
-                    var inBoxSelection = r.hoverData.selecting || r.touchData.selecting ? true : false;
-                    motionBlur = motionBlur && !forcedContext && r.motionBlurEnabled && !inBoxSelection;
-                    var motionBlurFadeEffect = motionBlur;
-
-                    if (!forcedContext) {
-                        if (r.prevPxRatio !== pixelRatio) {
-                            r.invalidateContainerClientCoordsCache();
-                            r.matchCanvasSize(r.container);
-                            r.redrawHint('eles', true);
-                            r.redrawHint('drag', true);
-                        }
+  var index = -1,
+      length = props.length;
 
-                        r.prevPxRatio = pixelRatio;
-                    }
+  while (++index < length) {
+    var key = props[index];
 
-                    if (!forcedContext && r.motionBlurTimeout) {
-                        clearTimeout(r.motionBlurTimeout);
-                    }
+    var newValue = customizer
+      ? customizer(object[key], source[key], key, object, source)
+      : undefined;
 
-                    if (motionBlur) {
-                        if (r.mbFrames == null) {
-                            r.mbFrames = 0;
-                        }
+    if (newValue === undefined) {
+      newValue = source[key];
+    }
+    if (isNew) {
+      baseAssignValue(object, key, newValue);
+    } else {
+      assignValue(object, key, newValue);
+    }
+  }
+  return object;
+}
 
-                        r.mbFrames++;
+module.exports = copyObject;
 
-                        if (r.mbFrames < 3) {
-                            // need several frames before even high quality motionblur
-                            motionBlurFadeEffect = false;
-                        } // go to lower quality blurry frames when several m/b frames have been rendered (avoids flashing)
 
+/***/ }),
 
-                        if (r.mbFrames > r.minMbLowQualFrames) {
-                            //r.fullQualityMb = false;
-                            r.motionBlurPxRatio = r.mbPxRBlurry;
-                        }
-                    }
+/***/ "./node_modules/lodash/_copySymbols.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_copySymbols.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (r.clearingMotionBlur) {
-                        r.motionBlurPxRatio = 1;
-                    } // b/c drawToContext() may be async w.r.t. redraw(), keep track of last texture frame
-                    // because a rogue async texture frame would clear needDraw
+var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
+    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
 
+/**
+ * Copies own symbols of `source` to `object`.
+ *
+ * @private
+ * @param {Object} source The object to copy symbols from.
+ * @param {Object} [object={}] The object to copy symbols to.
+ * @returns {Object} Returns `object`.
+ */
+function copySymbols(source, object) {
+  return copyObject(source, getSymbols(source), object);
+}
 
-                    if (r.textureDrawLastFrame && !textureDraw) {
-                        needDraw[r.NODE] = true;
-                        needDraw[r.SELECT_BOX] = true;
-                    }
+module.exports = copySymbols;
 
-                    var style = cy.style();
-                    var zoom = cy.zoom();
-                    var effectiveZoom = forcedZoom !== undefined ? forcedZoom : zoom;
-                    var pan = cy.pan();
-                    var effectivePan = {
-                        x: pan.x,
-                        y: pan.y
-                    };
-                    var vp = {
-                        zoom: zoom,
-                        pan: {
-                            x: pan.x,
-                            y: pan.y
-                        }
-                    };
-                    var prevVp = r.prevViewport;
-                    var viewportIsDiff = prevVp === undefined || vp.zoom !== prevVp.zoom || vp.pan.x !== prevVp.pan.x || vp.pan.y !== prevVp.pan.y; // we want the low quality motionblur only when the viewport is being manipulated etc (where it's not noticed)
 
-                    if (!viewportIsDiff && !(inNodeDragGesture && !hasCompoundNodes)) {
-                        r.motionBlurPxRatio = 1;
-                    }
+/***/ }),
 
-                    if (forcedPan) {
-                        effectivePan = forcedPan;
-                    } // apply pixel ratio
+/***/ "./node_modules/lodash/_copySymbolsIn.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_copySymbolsIn.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
+    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
 
-                    effectiveZoom *= pixelRatio;
-                    effectivePan.x *= pixelRatio;
-                    effectivePan.y *= pixelRatio;
-                    var eles = r.getCachedZSortedEles();
+/**
+ * Copies own and inherited symbols of `source` to `object`.
+ *
+ * @private
+ * @param {Object} source The object to copy symbols from.
+ * @param {Object} [object={}] The object to copy symbols to.
+ * @returns {Object} Returns `object`.
+ */
+function copySymbolsIn(source, object) {
+  return copyObject(source, getSymbolsIn(source), object);
+}
 
-                    function mbclear(context, x, y, w, h) {
-                        var gco = context.globalCompositeOperation;
-                        context.globalCompositeOperation = 'destination-out';
-                        r.colorFillStyle(context, 255, 255, 255, r.motionBlurTransparency);
-                        context.fillRect(x, y, w, h);
-                        context.globalCompositeOperation = gco;
-                    }
+module.exports = copySymbolsIn;
 
-                    function setContextTransform(context, clear) {
-                        var ePan, eZoom, w, h;
-
-                        if (!r.clearingMotionBlur && (context === data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE] || context === data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG])) {
-                            ePan = {
-                                x: pan.x * mbPxRatio,
-                                y: pan.y * mbPxRatio
-                            };
-                            eZoom = zoom * mbPxRatio;
-                            w = r.canvasWidth * mbPxRatio;
-                            h = r.canvasHeight * mbPxRatio;
-                        } else {
-                            ePan = effectivePan;
-                            eZoom = effectiveZoom;
-                            w = r.canvasWidth;
-                            h = r.canvasHeight;
-                        }
 
-                        context.setTransform(1, 0, 0, 1, 0, 0);
+/***/ }),
 
-                        if (clear === 'motionBlur') {
-                            mbclear(context, 0, 0, w, h);
-                        } else if (!forcedContext && (clear === undefined || clear)) {
-                            context.clearRect(0, 0, w, h);
-                        }
+/***/ "./node_modules/lodash/_coreJsData.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_coreJsData.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (!drawAllLayers) {
-                            context.translate(ePan.x, ePan.y);
-                            context.scale(eZoom, eZoom);
-                        }
+var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
-                        if (forcedPan) {
-                            context.translate(forcedPan.x, forcedPan.y);
-                        }
+/** Used to detect overreaching core-js shims. */
+var coreJsData = root['__core-js_shared__'];
 
-                        if (forcedZoom) {
-                            context.scale(forcedZoom, forcedZoom);
-                        }
-                    }
+module.exports = coreJsData;
 
-                    if (!textureDraw) {
-                        r.textureDrawLastFrame = false;
-                    }
 
-                    if (textureDraw) {
-                        r.textureDrawLastFrame = true;
-
-                        if (!r.textureCache) {
-                            r.textureCache = {};
-                            r.textureCache.bb = cy.mutableElements().boundingBox();
-                            r.textureCache.texture = r.data.bufferCanvases[r.TEXTURE_BUFFER];
-                            var cxt = r.data.bufferContexts[r.TEXTURE_BUFFER];
-                            cxt.setTransform(1, 0, 0, 1, 0, 0);
-                            cxt.clearRect(0, 0, r.canvasWidth * r.textureMult, r.canvasHeight * r.textureMult);
-                            r.render({
-                                forcedContext: cxt,
-                                drawOnlyNodeLayer: true,
-                                forcedPxRatio: pixelRatio * r.textureMult
-                            });
-                            var vp = r.textureCache.viewport = {
-                                zoom: cy.zoom(),
-                                pan: cy.pan(),
-                                width: r.canvasWidth,
-                                height: r.canvasHeight
-                            };
-                            vp.mpan = {
-                                x: (0 - vp.pan.x) / vp.zoom,
-                                y: (0 - vp.pan.y) / vp.zoom
-                            };
-                        }
+/***/ }),
 
-                        needDraw[r.DRAG] = false;
-                        needDraw[r.NODE] = false;
-                        var context = data.contexts[r.NODE];
-                        var texture = r.textureCache.texture;
-                        var vp = r.textureCache.viewport;
-                        context.setTransform(1, 0, 0, 1, 0, 0);
-
-                        if (motionBlur) {
-                            mbclear(context, 0, 0, vp.width, vp.height);
-                        } else {
-                            context.clearRect(0, 0, vp.width, vp.height);
-                        }
+/***/ "./node_modules/lodash/_createAssigner.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_createAssigner.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var outsideBgColor = style.core('outside-texture-bg-color').value;
-                        var outsideBgOpacity = style.core('outside-texture-bg-opacity').value;
-                        r.colorFillStyle(context, outsideBgColor[0], outsideBgColor[1], outsideBgColor[2], outsideBgOpacity);
-                        context.fillRect(0, 0, vp.width, vp.height);
-                        var zoom = cy.zoom();
-                        setContextTransform(context, false);
-                        context.clearRect(vp.mpan.x, vp.mpan.y, vp.width / vp.zoom / pixelRatio, vp.height / vp.zoom / pixelRatio);
-                        context.drawImage(texture, vp.mpan.x, vp.mpan.y, vp.width / vp.zoom / pixelRatio, vp.height / vp.zoom / pixelRatio);
-                    } else if (r.textureOnViewport && !forcedContext) {
-                        // clear the cache since we don't need it
-                        r.textureCache = null;
-                    }
+var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
+    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
 
-                    var extent = cy.extent();
-                    var vpManip = r.pinching || r.hoverData.dragging || r.swipePanning || r.data.wheelZooming || r.hoverData.draggingEles || r.cy.animated();
-                    var hideEdges = r.hideEdgesOnViewport && vpManip;
-                    var needMbClear = [];
-                    needMbClear[r.NODE] = !needDraw[r.NODE] && motionBlur && !r.clearedForMotionBlur[r.NODE] || r.clearingMotionBlur;
+/**
+ * Creates a function like `_.assign`.
+ *
+ * @private
+ * @param {Function} assigner The function to assign values.
+ * @returns {Function} Returns the new assigner function.
+ */
+function createAssigner(assigner) {
+  return baseRest(function(object, sources) {
+    var index = -1,
+        length = sources.length,
+        customizer = length > 1 ? sources[length - 1] : undefined,
+        guard = length > 2 ? sources[2] : undefined;
+
+    customizer = (assigner.length > 3 && typeof customizer == 'function')
+      ? (length--, customizer)
+      : undefined;
+
+    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+      customizer = length < 3 ? undefined : customizer;
+      length = 1;
+    }
+    object = Object(object);
+    while (++index < length) {
+      var source = sources[index];
+      if (source) {
+        assigner(object, source, index, customizer);
+      }
+    }
+    return object;
+  });
+}
 
-                    if (needMbClear[r.NODE]) {
-                        r.clearedForMotionBlur[r.NODE] = true;
-                    }
+module.exports = createAssigner;
 
-                    needMbClear[r.DRAG] = !needDraw[r.DRAG] && motionBlur && !r.clearedForMotionBlur[r.DRAG] || r.clearingMotionBlur;
 
-                    if (needMbClear[r.DRAG]) {
-                        r.clearedForMotionBlur[r.DRAG] = true;
-                    }
+/***/ }),
 
-                    if (needDraw[r.NODE] || drawAllLayers || drawOnlyNodeLayer || needMbClear[r.NODE]) {
-                        var useBuffer = motionBlur && !needMbClear[r.NODE] && mbPxRatio !== 1;
-                        var context = forcedContext || (useBuffer ? r.data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE] : data.contexts[r.NODE]);
-                        var clear = motionBlur && !useBuffer ? 'motionBlur' : undefined;
-                        setContextTransform(context, clear);
+/***/ "./node_modules/lodash/_createBaseEach.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_createBaseEach.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        if (hideEdges) {
-                            r.drawCachedNodes(context, eles.nondrag, pixelRatio, extent);
-                        } else {
-                            r.drawLayeredElements(context, eles.nondrag, pixelRatio, extent);
-                        }
+var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
 
-                        if (r.debug) {
-                            r.drawDebugPoints(context, eles.nondrag);
-                        }
+/**
+ * Creates a `baseEach` or `baseEachRight` function.
+ *
+ * @private
+ * @param {Function} eachFunc The function to iterate over a collection.
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
+ */
+function createBaseEach(eachFunc, fromRight) {
+  return function(collection, iteratee) {
+    if (collection == null) {
+      return collection;
+    }
+    if (!isArrayLike(collection)) {
+      return eachFunc(collection, iteratee);
+    }
+    var length = collection.length,
+        index = fromRight ? length : -1,
+        iterable = Object(collection);
+
+    while ((fromRight ? index-- : ++index < length)) {
+      if (iteratee(iterable[index], index, iterable) === false) {
+        break;
+      }
+    }
+    return collection;
+  };
+}
 
-                        if (!drawAllLayers && !motionBlur) {
-                            needDraw[r.NODE] = false;
-                        }
-                    }
+module.exports = createBaseEach;
 
-                    if (!drawOnlyNodeLayer && (needDraw[r.DRAG] || drawAllLayers || needMbClear[r.DRAG])) {
-                        var useBuffer = motionBlur && !needMbClear[r.DRAG] && mbPxRatio !== 1;
-                        var context = forcedContext || (useBuffer ? r.data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG] : data.contexts[r.DRAG]);
-                        setContextTransform(context, motionBlur && !useBuffer ? 'motionBlur' : undefined);
 
-                        if (hideEdges) {
-                            r.drawCachedNodes(context, eles.drag, pixelRatio, extent);
-                        } else {
-                            r.drawCachedElements(context, eles.drag, pixelRatio, extent);
-                        }
+/***/ }),
 
-                        if (r.debug) {
-                            r.drawDebugPoints(context, eles.drag);
-                        }
+/***/ "./node_modules/lodash/_createBaseFor.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_createBaseFor.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                        if (!drawAllLayers && !motionBlur) {
-                            needDraw[r.DRAG] = false;
-                        }
-                    }
+/**
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
+ *
+ * @private
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new base function.
+ */
+function createBaseFor(fromRight) {
+  return function(object, iteratee, keysFunc) {
+    var index = -1,
+        iterable = Object(object),
+        props = keysFunc(object),
+        length = props.length;
+
+    while (length--) {
+      var key = props[fromRight ? length : ++index];
+      if (iteratee(iterable[key], key, iterable) === false) {
+        break;
+      }
+    }
+    return object;
+  };
+}
 
-                    if (r.showFps || !drawOnlyNodeLayer && needDraw[r.SELECT_BOX] && !drawAllLayers) {
-                        var context = forcedContext || data.contexts[r.SELECT_BOX];
-                        setContextTransform(context);
+module.exports = createBaseFor;
 
-                        if (r.selection[4] == 1 && (r.hoverData.selecting || r.touchData.selecting)) {
-                            var zoom = r.cy.zoom();
-                            var borderWidth = style.core('selection-box-border-width').value / zoom;
-                            context.lineWidth = borderWidth;
-                            context.fillStyle = 'rgba(' + style.core('selection-box-color').value[0] + ',' + style.core('selection-box-color').value[1] + ',' + style.core('selection-box-color').value[2] + ',' + style.core('selection-box-opacity').value + ')';
-                            context.fillRect(r.selection[0], r.selection[1], r.selection[2] - r.selection[0], r.selection[3] - r.selection[1]);
 
-                            if (borderWidth > 0) {
-                                context.strokeStyle = 'rgba(' + style.core('selection-box-border-color').value[0] + ',' + style.core('selection-box-border-color').value[1] + ',' + style.core('selection-box-border-color').value[2] + ',' + style.core('selection-box-opacity').value + ')';
-                                context.strokeRect(r.selection[0], r.selection[1], r.selection[2] - r.selection[0], r.selection[3] - r.selection[1]);
-                            }
-                        }
+/***/ }),
 
-                        if (data.bgActivePosistion && !r.hoverData.selecting) {
-                            var zoom = r.cy.zoom();
-                            var pos = data.bgActivePosistion;
-                            context.fillStyle = 'rgba(' + style.core('active-bg-color').value[0] + ',' + style.core('active-bg-color').value[1] + ',' + style.core('active-bg-color').value[2] + ',' + style.core('active-bg-opacity').value + ')';
-                            context.beginPath();
-                            context.arc(pos.x, pos.y, style.core('active-bg-size').pfValue / zoom, 0, 2 * Math.PI);
-                            context.fill();
-                        }
+/***/ "./node_modules/lodash/_createFind.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_createFind.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        var timeToRender = r.lastRedrawTime;
-
-                        if (r.showFps && timeToRender) {
-                            timeToRender = Math.round(timeToRender);
-                            var fps = Math.round(1000 / timeToRender);
-                            context.setTransform(1, 0, 0, 1, 0, 0);
-                            context.fillStyle = 'rgba(255, 0, 0, 0.75)';
-                            context.strokeStyle = 'rgba(255, 0, 0, 0.75)';
-                            context.lineWidth = 1;
-                            context.fillText('1 frame = ' + timeToRender + ' ms = ' + fps + ' fps', 0, 20);
-                            var maxFps = 60;
-                            context.strokeRect(0, 30, 250, 20);
-                            context.fillRect(0, 30, 250 * Math.min(fps / maxFps, 1), 20);
-                        }
+var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
 
-                        if (!drawAllLayers) {
-                            needDraw[r.SELECT_BOX] = false;
-                        }
-                    } // motionblur: blit rendered blurry frames
+/**
+ * Creates a `_.find` or `_.findLast` function.
+ *
+ * @private
+ * @param {Function} findIndexFunc The function to find the collection index.
+ * @returns {Function} Returns the new find function.
+ */
+function createFind(findIndexFunc) {
+  return function(collection, predicate, fromIndex) {
+    var iterable = Object(collection);
+    if (!isArrayLike(collection)) {
+      var iteratee = baseIteratee(predicate, 3);
+      collection = keys(collection);
+      predicate = function(key) { return iteratee(iterable[key], key, iterable); };
+    }
+    var index = findIndexFunc(collection, predicate, fromIndex);
+    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
+  };
+}
 
+module.exports = createFind;
 
-                    if (motionBlur && mbPxRatio !== 1) {
-                        var cxtNode = data.contexts[r.NODE];
-                        var txtNode = r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE];
-                        var cxtDrag = data.contexts[r.DRAG];
-                        var txtDrag = r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG];
 
-                        var drawMotionBlur = function drawMotionBlur(cxt, txt, needClear) {
-                            cxt.setTransform(1, 0, 0, 1, 0, 0);
+/***/ }),
 
-                            if (needClear || !motionBlurFadeEffect) {
-                                cxt.clearRect(0, 0, r.canvasWidth, r.canvasHeight);
-                            } else {
-                                mbclear(cxt, 0, 0, r.canvasWidth, r.canvasHeight);
-                            }
+/***/ "./node_modules/lodash/_createRange.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_createRange.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            var pxr = mbPxRatio;
-                            cxt.drawImage(txt, // img
-                                0, 0, // sx, sy
-                                r.canvasWidth * pxr, r.canvasHeight * pxr, // sw, sh
-                                0, 0, // x, y
-                                r.canvasWidth, r.canvasHeight // w, h
-                            );
-                        };
-
-                        if (needDraw[r.NODE] || needMbClear[r.NODE]) {
-                            drawMotionBlur(cxtNode, txtNode, needMbClear[r.NODE]);
-                            needDraw[r.NODE] = false;
-                        }
+var baseRange = __webpack_require__(/*! ./_baseRange */ "./node_modules/lodash/_baseRange.js"),
+    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
+    toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
 
-                        if (needDraw[r.DRAG] || needMbClear[r.DRAG]) {
-                            drawMotionBlur(cxtDrag, txtDrag, needMbClear[r.DRAG]);
-                            needDraw[r.DRAG] = false;
-                        }
-                    }
+/**
+ * Creates a `_.range` or `_.rangeRight` function.
+ *
+ * @private
+ * @param {boolean} [fromRight] Specify iterating from right to left.
+ * @returns {Function} Returns the new range function.
+ */
+function createRange(fromRight) {
+  return function(start, end, step) {
+    if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
+      end = step = undefined;
+    }
+    // Ensure the sign of `-0` is preserved.
+    start = toFinite(start);
+    if (end === undefined) {
+      end = start;
+      start = 0;
+    } else {
+      end = toFinite(end);
+    }
+    step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
+    return baseRange(start, end, step, fromRight);
+  };
+}
 
-                    r.prevViewport = vp;
+module.exports = createRange;
 
-                    if (r.clearingMotionBlur) {
-                        r.clearingMotionBlur = false;
-                        r.motionBlurCleared = true;
-                        r.motionBlur = true;
-                    }
 
-                    if (motionBlur) {
-                        r.motionBlurTimeout = setTimeout(function () {
-                            r.motionBlurTimeout = null;
-                            r.clearedForMotionBlur[r.NODE] = false;
-                            r.clearedForMotionBlur[r.DRAG] = false;
-                            r.motionBlur = false;
-                            r.clearingMotionBlur = !textureDraw;
-                            r.mbFrames = 0;
-                            needDraw[r.NODE] = true;
-                            needDraw[r.DRAG] = true;
-                            r.redraw();
-                        }, motionBlurDelay);
-                    }
+/***/ }),
 
-                    if (!forcedContext) {
-                        cy.emit('render');
-                    }
-                };
+/***/ "./node_modules/lodash/_createSet.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_createSet.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var CRp$7 = {}; // @O Polygon drawing
+var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
+    noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
+    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
 
-                CRp$7.drawPolygonPath = function (context, x, y, width, height, points) {
-                    var halfW = width / 2;
-                    var halfH = height / 2;
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0;
 
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+/**
+ * Creates a set object of `values`.
+ *
+ * @private
+ * @param {Array} values The values to add to the set.
+ * @returns {Object} Returns the new set.
+ */
+var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
+  return new Set(values);
+};
 
-                    context.moveTo(x + halfW * points[0], y + halfH * points[1]);
+module.exports = createSet;
 
-                    for (var i = 1; i < points.length / 2; i++) {
-                        context.lineTo(x + halfW * points[i * 2], y + halfH * points[i * 2 + 1]);
-                    }
 
-                    context.closePath();
-                };
+/***/ }),
 
-                CRp$7.drawRoundPolygonPath = function (context, x, y, width, height, points) {
-                    var halfW = width / 2;
-                    var halfH = height / 2;
-                    var cornerRadius = getRoundPolygonRadius(width, height);
+/***/ "./node_modules/lodash/_defineProperty.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_defineProperty.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
 
-                    for (var _i = 0; _i < points.length / 4; _i++) {
-                        var sourceUv = void 0,
-                            destUv = void 0;
+var defineProperty = (function() {
+  try {
+    var func = getNative(Object, 'defineProperty');
+    func({}, '', {});
+    return func;
+  } catch (e) {}
+}());
 
-                        if (_i === 0) {
-                            sourceUv = points.length - 2;
-                        } else {
-                            sourceUv = _i * 4 - 2;
-                        }
+module.exports = defineProperty;
 
-                        destUv = _i * 4 + 2;
-                        var px = x + halfW * points[_i * 4];
-                        var py = y + halfH * points[_i * 4 + 1];
-                        var cosTheta = -points[sourceUv] * points[destUv] - points[sourceUv + 1] * points[destUv + 1];
-                        var offset = cornerRadius / Math.tan(Math.acos(cosTheta) / 2);
-                        var cp0x = px - offset * points[sourceUv];
-                        var cp0y = py - offset * points[sourceUv + 1];
-                        var cp1x = px + offset * points[destUv];
-                        var cp1y = py + offset * points[destUv + 1];
-
-                        if (_i === 0) {
-                            context.moveTo(cp0x, cp0y);
-                        } else {
-                            context.lineTo(cp0x, cp0y);
-                        }
 
-                        context.arcTo(px, py, cp1x, cp1y, cornerRadius);
-                    }
+/***/ }),
 
-                    context.closePath();
-                }; // Round rectangle drawing
+/***/ "./node_modules/lodash/_equalArrays.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_equalArrays.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
+    arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
+    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
 
-                CRp$7.drawRoundRectanglePath = function (context, x, y, width, height) {
-                    var halfWidth = width / 2;
-                    var halfHeight = height / 2;
-                    var cornerRadius = getRoundRectangleRadius(width, height);
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+    COMPARE_UNORDERED_FLAG = 2;
 
-                    if (context.beginPath) {
-                        context.beginPath();
-                    } // Start at top middle
+/**
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
+ * partial deep comparisons.
+ *
+ * @private
+ * @param {Array} array The array to compare.
+ * @param {Array} other The other array to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
+ */
+function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
+  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+      arrLength = array.length,
+      othLength = other.length;
 
+  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
+    return false;
+  }
+  // Check that cyclic values are equal.
+  var arrStacked = stack.get(array);
+  var othStacked = stack.get(other);
+  if (arrStacked && othStacked) {
+    return arrStacked == other && othStacked == array;
+  }
+  var index = -1,
+      result = true,
+      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
+
+  stack.set(array, other);
+  stack.set(other, array);
+
+  // Ignore non-index properties.
+  while (++index < arrLength) {
+    var arrValue = array[index],
+        othValue = other[index];
+
+    if (customizer) {
+      var compared = isPartial
+        ? customizer(othValue, arrValue, index, other, array, stack)
+        : customizer(arrValue, othValue, index, array, other, stack);
+    }
+    if (compared !== undefined) {
+      if (compared) {
+        continue;
+      }
+      result = false;
+      break;
+    }
+    // Recursively compare arrays (susceptible to call stack limits).
+    if (seen) {
+      if (!arraySome(other, function(othValue, othIndex) {
+            if (!cacheHas(seen, othIndex) &&
+                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
+              return seen.push(othIndex);
+            }
+          })) {
+        result = false;
+        break;
+      }
+    } else if (!(
+          arrValue === othValue ||
+            equalFunc(arrValue, othValue, bitmask, customizer, stack)
+        )) {
+      result = false;
+      break;
+    }
+  }
+  stack['delete'](array);
+  stack['delete'](other);
+  return result;
+}
 
-                    context.moveTo(x, y - halfHeight); // Arc from middle top to right side
+module.exports = equalArrays;
 
-                    context.arcTo(x + halfWidth, y - halfHeight, x + halfWidth, y, cornerRadius); // Arc from right side to bottom
 
-                    context.arcTo(x + halfWidth, y + halfHeight, x, y + halfHeight, cornerRadius); // Arc from bottom to left side
+/***/ }),
 
-                    context.arcTo(x - halfWidth, y + halfHeight, x - halfWidth, y, cornerRadius); // Arc from left side to topBorder
+/***/ "./node_modules/lodash/_equalByTag.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_equalByTag.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
+    Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
+    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
+    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
+    mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
+    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
+
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+    COMPARE_UNORDERED_FLAG = 2;
+
+/** `Object#toString` result references. */
+var boolTag = '[object Boolean]',
+    dateTag = '[object Date]',
+    errorTag = '[object Error]',
+    mapTag = '[object Map]',
+    numberTag = '[object Number]',
+    regexpTag = '[object RegExp]',
+    setTag = '[object Set]',
+    stringTag = '[object String]',
+    symbolTag = '[object Symbol]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+    dataViewTag = '[object DataView]';
+
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
+
+/**
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
+ * the same `toStringTag`.
+ *
+ * **Note:** This function only supports comparing values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {string} tag The `toStringTag` of the objects to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
+  switch (tag) {
+    case dataViewTag:
+      if ((object.byteLength != other.byteLength) ||
+          (object.byteOffset != other.byteOffset)) {
+        return false;
+      }
+      object = object.buffer;
+      other = other.buffer;
+
+    case arrayBufferTag:
+      if ((object.byteLength != other.byteLength) ||
+          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
+        return false;
+      }
+      return true;
+
+    case boolTag:
+    case dateTag:
+    case numberTag:
+      // Coerce booleans to `1` or `0` and dates to milliseconds.
+      // Invalid dates are coerced to `NaN`.
+      return eq(+object, +other);
+
+    case errorTag:
+      return object.name == other.name && object.message == other.message;
+
+    case regexpTag:
+    case stringTag:
+      // Coerce regexes to strings and treat strings, primitives and objects,
+      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
+      // for more details.
+      return object == (other + '');
+
+    case mapTag:
+      var convert = mapToArray;
+
+    case setTag:
+      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
+      convert || (convert = setToArray);
+
+      if (object.size != other.size && !isPartial) {
+        return false;
+      }
+      // Assume cyclic values are equal.
+      var stacked = stack.get(object);
+      if (stacked) {
+        return stacked == other;
+      }
+      bitmask |= COMPARE_UNORDERED_FLAG;
+
+      // Recursively compare objects (susceptible to call stack limits).
+      stack.set(object, other);
+      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
+      stack['delete'](object);
+      return result;
+
+    case symbolTag:
+      if (symbolValueOf) {
+        return symbolValueOf.call(object) == symbolValueOf.call(other);
+      }
+  }
+  return false;
+}
 
-                    context.arcTo(x - halfWidth, y - halfHeight, x, y - halfHeight, cornerRadius); // Join line
+module.exports = equalByTag;
 
-                    context.lineTo(x, y - halfHeight);
-                    context.closePath();
-                };
 
-                CRp$7.drawBottomRoundRectanglePath = function (context, x, y, width, height) {
-                    var halfWidth = width / 2;
-                    var halfHeight = height / 2;
-                    var cornerRadius = getRoundRectangleRadius(width, height);
+/***/ }),
 
-                    if (context.beginPath) {
-                        context.beginPath();
-                    } // Start at top middle
+/***/ "./node_modules/lodash/_equalObjects.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_equalObjects.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
 
-                    context.moveTo(x, y - halfHeight);
-                    context.lineTo(x + halfWidth, y - halfHeight);
-                    context.lineTo(x + halfWidth, y);
-                    context.arcTo(x + halfWidth, y + halfHeight, x, y + halfHeight, cornerRadius);
-                    context.arcTo(x - halfWidth, y + halfHeight, x - halfWidth, y, cornerRadius);
-                    context.lineTo(x - halfWidth, y - halfHeight);
-                    context.lineTo(x, y - halfHeight);
-                    context.closePath();
-                };
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1;
 
-                CRp$7.drawCutRectanglePath = function (context, x, y, width, height) {
-                    var halfWidth = width / 2;
-                    var halfHeight = height / 2;
-                    var cornerLength = getCutRectangleCornerLength();
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                    context.moveTo(x - halfWidth + cornerLength, y - halfHeight);
-                    context.lineTo(x + halfWidth - cornerLength, y - halfHeight);
-                    context.lineTo(x + halfWidth, y - halfHeight + cornerLength);
-                    context.lineTo(x + halfWidth, y + halfHeight - cornerLength);
-                    context.lineTo(x + halfWidth - cornerLength, y + halfHeight);
-                    context.lineTo(x - halfWidth + cornerLength, y + halfHeight);
-                    context.lineTo(x - halfWidth, y + halfHeight - cornerLength);
-                    context.lineTo(x - halfWidth, y - halfHeight + cornerLength);
-                    context.closePath();
-                };
+/**
+ * A specialized version of `baseIsEqualDeep` for objects with support for
+ * partial deep comparisons.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
+  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+      objProps = getAllKeys(object),
+      objLength = objProps.length,
+      othProps = getAllKeys(other),
+      othLength = othProps.length;
+
+  if (objLength != othLength && !isPartial) {
+    return false;
+  }
+  var index = objLength;
+  while (index--) {
+    var key = objProps[index];
+    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
+      return false;
+    }
+  }
+  // Check that cyclic values are equal.
+  var objStacked = stack.get(object);
+  var othStacked = stack.get(other);
+  if (objStacked && othStacked) {
+    return objStacked == other && othStacked == object;
+  }
+  var result = true;
+  stack.set(object, other);
+  stack.set(other, object);
+
+  var skipCtor = isPartial;
+  while (++index < objLength) {
+    key = objProps[index];
+    var objValue = object[key],
+        othValue = other[key];
+
+    if (customizer) {
+      var compared = isPartial
+        ? customizer(othValue, objValue, key, other, object, stack)
+        : customizer(objValue, othValue, key, object, other, stack);
+    }
+    // Recursively compare objects (susceptible to call stack limits).
+    if (!(compared === undefined
+          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
+          : compared
+        )) {
+      result = false;
+      break;
+    }
+    skipCtor || (skipCtor = key == 'constructor');
+  }
+  if (result && !skipCtor) {
+    var objCtor = object.constructor,
+        othCtor = other.constructor;
+
+    // Non `Object` object instances with different constructors are not equal.
+    if (objCtor != othCtor &&
+        ('constructor' in object && 'constructor' in other) &&
+        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+      result = false;
+    }
+  }
+  stack['delete'](object);
+  stack['delete'](other);
+  return result;
+}
 
-                CRp$7.drawBarrelPath = function (context, x, y, width, height) {
-                    var halfWidth = width / 2;
-                    var halfHeight = height / 2;
-                    var xBegin = x - halfWidth;
-                    var xEnd = x + halfWidth;
-                    var yBegin = y - halfHeight;
-                    var yEnd = y + halfHeight;
-                    var barrelCurveConstants = getBarrelCurveConstants(width, height);
-                    var wOffset = barrelCurveConstants.widthOffset;
-                    var hOffset = barrelCurveConstants.heightOffset;
-                    var ctrlPtXOffset = barrelCurveConstants.ctrlPtOffsetPct * wOffset;
-
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+module.exports = equalObjects;
 
-                    context.moveTo(xBegin, yBegin + hOffset);
-                    context.lineTo(xBegin, yEnd - hOffset);
-                    context.quadraticCurveTo(xBegin + ctrlPtXOffset, yEnd, xBegin + wOffset, yEnd);
-                    context.lineTo(xEnd - wOffset, yEnd);
-                    context.quadraticCurveTo(xEnd - ctrlPtXOffset, yEnd, xEnd, yEnd - hOffset);
-                    context.lineTo(xEnd, yBegin + hOffset);
-                    context.quadraticCurveTo(xEnd - ctrlPtXOffset, yBegin, xEnd - wOffset, yBegin);
-                    context.lineTo(xBegin + wOffset, yBegin);
-                    context.quadraticCurveTo(xBegin + ctrlPtXOffset, yBegin, xBegin, yBegin + hOffset);
-                    context.closePath();
-                };
 
-                var sin0 = Math.sin(0);
-                var cos0 = Math.cos(0);
-                var sin = {};
-                var cos = {};
-                var ellipseStepSize = Math.PI / 40;
+/***/ }),
 
-                for (var i = 0 * Math.PI; i < 2 * Math.PI; i += ellipseStepSize) {
-                    sin[i] = Math.sin(i);
-                    cos[i] = Math.cos(i);
-                }
+/***/ "./node_modules/lodash/_flatRest.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_flatRest.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$7.drawEllipsePath = function (context, centerX, centerY, width, height) {
-                    if (context.beginPath) {
-                        context.beginPath();
-                    }
+var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
+    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
+    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
 
-                    if (context.ellipse) {
-                        context.ellipse(centerX, centerY, width / 2, height / 2, 0, 0, 2 * Math.PI);
-                    } else {
-                        var xPos, yPos;
-                        var rw = width / 2;
-                        var rh = height / 2;
-
-                        for (var i = 0 * Math.PI; i < 2 * Math.PI; i += ellipseStepSize) {
-                            xPos = centerX - rw * sin[i] * sin0 + rw * cos[i] * cos0;
-                            yPos = centerY + rh * cos[i] * sin0 + rh * sin[i] * cos0;
-
-                            if (i === 0) {
-                                context.moveTo(xPos, yPos);
-                            } else {
-                                context.lineTo(xPos, yPos);
-                            }
-                        }
-                    }
+/**
+ * A specialized version of `baseRest` which flattens the rest array.
+ *
+ * @private
+ * @param {Function} func The function to apply a rest parameter to.
+ * @returns {Function} Returns the new function.
+ */
+function flatRest(func) {
+  return setToString(overRest(func, undefined, flatten), func + '');
+}
 
-                    context.closePath();
-                };
+module.exports = flatRest;
 
-                /* global atob, ArrayBuffer, Uint8Array, Blob */
-                var CRp$8 = {};
 
-                CRp$8.createBuffer = function (w, h) {
-                    var buffer = document.createElement('canvas'); // eslint-disable-line no-undef
+/***/ }),
 
-                    buffer.width = w;
-                    buffer.height = h;
-                    return [buffer, buffer.getContext('2d')];
-                };
+/***/ "./node_modules/lodash/_freeGlobal.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_freeGlobal.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$8.bufferCanvasImage = function (options) {
-                    var cy = this.cy;
-                    var eles = cy.mutableElements();
-                    var bb = eles.boundingBox();
-                    var ctrRect = this.findContainerClientCoords();
-                    var width = options.full ? Math.ceil(bb.w) : ctrRect[2];
-                    var height = options.full ? Math.ceil(bb.h) : ctrRect[3];
-                    var specdMaxDims = number(options.maxWidth) || number(options.maxHeight);
-                    var pxRatio = this.getPixelRatio();
-                    var scale = 1;
-
-                    if (options.scale !== undefined) {
-                        width *= options.scale;
-                        height *= options.scale;
-                        scale = options.scale;
-                    } else if (specdMaxDims) {
-                        var maxScaleW = Infinity;
-                        var maxScaleH = Infinity;
-
-                        if (number(options.maxWidth)) {
-                            maxScaleW = scale * options.maxWidth / width;
-                        }
+/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
+var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
 
-                        if (number(options.maxHeight)) {
-                            maxScaleH = scale * options.maxHeight / height;
-                        }
+module.exports = freeGlobal;
 
-                        scale = Math.min(maxScaleW, maxScaleH);
-                        width *= scale;
-                        height *= scale;
-                    }
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
 
-                    if (!specdMaxDims) {
-                        width *= pxRatio;
-                        height *= pxRatio;
-                        scale *= pxRatio;
-                    }
+/***/ }),
 
-                    var buffCanvas = document.createElement('canvas'); // eslint-disable-line no-undef
-
-                    buffCanvas.width = width;
-                    buffCanvas.height = height;
-                    buffCanvas.style.width = width + 'px';
-                    buffCanvas.style.height = height + 'px';
-                    var buffCxt = buffCanvas.getContext('2d'); // Rasterize the layers, but only if container has nonzero size
-
-                    if (width > 0 && height > 0) {
-                        buffCxt.clearRect(0, 0, width, height);
-                        buffCxt.globalCompositeOperation = 'source-over';
-                        var zsortedEles = this.getCachedZSortedEles();
-
-                        if (options.full) {
-                            // draw the full bounds of the graph
-                            buffCxt.translate(-bb.x1 * scale, -bb.y1 * scale);
-                            buffCxt.scale(scale, scale);
-                            this.drawElements(buffCxt, zsortedEles);
-                            buffCxt.scale(1 / scale, 1 / scale);
-                            buffCxt.translate(bb.x1 * scale, bb.y1 * scale);
-                        } else {
-                            // draw the current view
-                            var pan = cy.pan();
-                            var translation = {
-                                x: pan.x * scale,
-                                y: pan.y * scale
-                            };
-                            scale *= cy.zoom();
-                            buffCxt.translate(translation.x, translation.y);
-                            buffCxt.scale(scale, scale);
-                            this.drawElements(buffCxt, zsortedEles);
-                            buffCxt.scale(1 / scale, 1 / scale);
-                            buffCxt.translate(-translation.x, -translation.y);
-                        } // need to fill bg at end like this in order to fill cleared transparent pixels in jpgs
-
-
-                        if (options.bg) {
-                            buffCxt.globalCompositeOperation = 'destination-over';
-                            buffCxt.fillStyle = options.bg;
-                            buffCxt.rect(0, 0, width, height);
-                            buffCxt.fill();
-                        }
-                    }
+/***/ "./node_modules/lodash/_getAllKeys.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_getAllKeys.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    return buffCanvas;
-                };
+var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
+    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
 
-                function b64ToBlob(b64, mimeType) {
-                    var bytes = atob(b64);
-                    var buff = new ArrayBuffer(bytes.length);
-                    var buffUint8 = new Uint8Array(buff);
+/**
+ * Creates an array of own enumerable property names and symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function getAllKeys(object) {
+  return baseGetAllKeys(object, keys, getSymbols);
+}
 
-                    for (var i = 0; i < bytes.length; i++) {
-                        buffUint8[i] = bytes.charCodeAt(i);
-                    }
+module.exports = getAllKeys;
 
-                    return new Blob([buff], {
-                        type: mimeType
-                    });
-                }
 
-                function b64UriToB64(b64uri) {
-                    var i = b64uri.indexOf(',');
-                    return b64uri.substr(i + 1);
-                }
+/***/ }),
 
-                function output(options, canvas, mimeType) {
-                    var getB64Uri = function getB64Uri() {
-                        return canvas.toDataURL(mimeType, options.quality);
-                    };
-
-                    switch (options.output) {
-                        case 'blob-promise':
-                            return new Promise$1(function (resolve, reject) {
-                                try {
-                                    canvas.toBlob(function (blob) {
-                                        if (blob != null) {
-                                            resolve(blob);
-                                        } else {
-                                            reject(new Error('`canvas.toBlob()` sent a null value in its callback'));
-                                        }
-                                    }, mimeType, options.quality);
-                                } catch (err) {
-                                    reject(err);
-                                }
-                            });
-
-                        case 'blob':
-                            return b64ToBlob(b64UriToB64(getB64Uri()), mimeType);
-
-                        case 'base64':
-                            return b64UriToB64(getB64Uri());
-
-                        case 'base64uri':
-                        default:
-                            return getB64Uri();
-                    }
-                }
+/***/ "./node_modules/lodash/_getAllKeysIn.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_getAllKeysIn.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$8.png = function (options) {
-                    return output(options, this.bufferCanvasImage(options), 'image/png');
-                };
+var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
+    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
 
-                CRp$8.jpg = function (options) {
-                    return output(options, this.bufferCanvasImage(options), 'image/jpeg');
-                };
+/**
+ * Creates an array of own and inherited enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function getAllKeysIn(object) {
+  return baseGetAllKeys(object, keysIn, getSymbolsIn);
+}
 
-                var CRp$9 = {};
+module.exports = getAllKeysIn;
 
-                CRp$9.nodeShapeImpl = function (name, context, centerX, centerY, width, height, points) {
-                    switch (name) {
-                        case 'ellipse':
-                            return this.drawEllipsePath(context, centerX, centerY, width, height);
 
-                        case 'polygon':
-                            return this.drawPolygonPath(context, centerX, centerY, width, height, points);
+/***/ }),
 
-                        case 'round-polygon':
-                            return this.drawRoundPolygonPath(context, centerX, centerY, width, height, points);
+/***/ "./node_modules/lodash/_getMapData.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_getMapData.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        case 'roundrectangle':
-                        case 'round-rectangle':
-                            return this.drawRoundRectanglePath(context, centerX, centerY, width, height);
+var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
 
-                        case 'cutrectangle':
-                        case 'cut-rectangle':
-                            return this.drawCutRectanglePath(context, centerX, centerY, width, height);
+/**
+ * Gets the data for `map`.
+ *
+ * @private
+ * @param {Object} map The map to query.
+ * @param {string} key The reference key.
+ * @returns {*} Returns the map data.
+ */
+function getMapData(map, key) {
+  var data = map.__data__;
+  return isKeyable(key)
+    ? data[typeof key == 'string' ? 'string' : 'hash']
+    : data.map;
+}
 
-                        case 'bottomroundrectangle':
-                        case 'bottom-round-rectangle':
-                            return this.drawBottomRoundRectanglePath(context, centerX, centerY, width, height);
+module.exports = getMapData;
 
-                        case 'barrel':
-                            return this.drawBarrelPath(context, centerX, centerY, width, height);
-                    }
-                };
 
-                var CR = CanvasRenderer;
-                var CRp$a = CanvasRenderer.prototype;
-                CRp$a.CANVAS_LAYERS = 3; //
-
-                CRp$a.SELECT_BOX = 0;
-                CRp$a.DRAG = 1;
-                CRp$a.NODE = 2;
-                CRp$a.BUFFER_COUNT = 3; //
-
-                CRp$a.TEXTURE_BUFFER = 0;
-                CRp$a.MOTIONBLUR_BUFFER_NODE = 1;
-                CRp$a.MOTIONBLUR_BUFFER_DRAG = 2;
-
-                function CanvasRenderer(options) {
-                    var r = this;
-                    r.data = {
-                        canvases: new Array(CRp$a.CANVAS_LAYERS),
-                        contexts: new Array(CRp$a.CANVAS_LAYERS),
-                        canvasNeedsRedraw: new Array(CRp$a.CANVAS_LAYERS),
-                        bufferCanvases: new Array(CRp$a.BUFFER_COUNT),
-                        bufferContexts: new Array(CRp$a.CANVAS_LAYERS)
-                    };
-                    var tapHlOffAttr = '-webkit-tap-highlight-color';
-                    var tapHlOffStyle = 'rgba(0,0,0,0)';
-                    r.data.canvasContainer = document.createElement('div'); // eslint-disable-line no-undef
-
-                    var containerStyle = r.data.canvasContainer.style;
-                    r.data.canvasContainer.style[tapHlOffAttr] = tapHlOffStyle;
-                    containerStyle.position = 'relative';
-                    containerStyle.zIndex = '0';
-                    containerStyle.overflow = 'hidden';
-                    var container = options.cy.container();
-                    container.appendChild(r.data.canvasContainer);
-                    container.style[tapHlOffAttr] = tapHlOffStyle;
-                    var styleMap = {
-                        '-webkit-user-select': 'none',
-                        '-moz-user-select': '-moz-none',
-                        'user-select': 'none',
-                        '-webkit-tap-highlight-color': 'rgba(0,0,0,0)',
-                        'outline-style': 'none'
-                    };
-
-                    if (ms()) {
-                        styleMap['-ms-touch-action'] = 'none';
-                        styleMap['touch-action'] = 'none';
-                    }
+/***/ }),
 
-                    for (var i = 0; i < CRp$a.CANVAS_LAYERS; i++) {
-                        var canvas = r.data.canvases[i] = document.createElement('canvas'); // eslint-disable-line no-undef
+/***/ "./node_modules/lodash/_getMatchData.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_getMatchData.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                        r.data.contexts[i] = canvas.getContext('2d');
-                        Object.keys(styleMap).forEach(function (k) {
-                            canvas.style[k] = styleMap[k];
-                        });
-                        canvas.style.position = 'absolute';
-                        canvas.setAttribute('data-id', 'layer' + i);
-                        canvas.style.zIndex = String(CRp$a.CANVAS_LAYERS - i);
-                        r.data.canvasContainer.appendChild(canvas);
-                        r.data.canvasNeedsRedraw[i] = false;
-                    }
+var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
 
-                    r.data.topCanvas = r.data.canvases[0];
-                    r.data.canvases[CRp$a.NODE].setAttribute('data-id', 'layer' + CRp$a.NODE + '-node');
-                    r.data.canvases[CRp$a.SELECT_BOX].setAttribute('data-id', 'layer' + CRp$a.SELECT_BOX + '-selectbox');
-                    r.data.canvases[CRp$a.DRAG].setAttribute('data-id', 'layer' + CRp$a.DRAG + '-drag');
+/**
+ * Gets the property names, values, and compare flags of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the match data of `object`.
+ */
+function getMatchData(object) {
+  var result = keys(object),
+      length = result.length;
 
-                    for (var i = 0; i < CRp$a.BUFFER_COUNT; i++) {
-                        r.data.bufferCanvases[i] = document.createElement('canvas'); // eslint-disable-line no-undef
+  while (length--) {
+    var key = result[length],
+        value = object[key];
 
-                        r.data.bufferContexts[i] = r.data.bufferCanvases[i].getContext('2d');
-                        r.data.bufferCanvases[i].style.position = 'absolute';
-                        r.data.bufferCanvases[i].setAttribute('data-id', 'buffer' + i);
-                        r.data.bufferCanvases[i].style.zIndex = String(-i - 1);
-                        r.data.bufferCanvases[i].style.visibility = 'hidden'; //r.data.canvasContainer.appendChild(r.data.bufferCanvases[i]);
-                    }
+    result[length] = [key, value, isStrictComparable(value)];
+  }
+  return result;
+}
 
-                    r.pathsEnabled = true;
-                    var emptyBb = makeBoundingBox();
-
-                    var getBoxCenter = function getBoxCenter(bb) {
-                        return {
-                            x: (bb.x1 + bb.x2) / 2,
-                            y: (bb.y1 + bb.y2) / 2
-                        };
-                    };
-
-                    var getCenterOffset = function getCenterOffset(bb) {
-                        return {
-                            x: -bb.w / 2,
-                            y: -bb.h / 2
-                        };
-                    };
-
-                    var backgroundTimestampHasChanged = function backgroundTimestampHasChanged(ele) {
-                        var _p = ele[0]._private;
-                        var same = _p.oldBackgroundTimestamp === _p.backgroundTimestamp;
-                        return !same;
-                    };
-
-                    var getStyleKey = function getStyleKey(ele) {
-                        return ele[0]._private.nodeKey;
-                    };
-
-                    var getLabelKey = function getLabelKey(ele) {
-                        return ele[0]._private.labelStyleKey;
-                    };
-
-                    var getSourceLabelKey = function getSourceLabelKey(ele) {
-                        return ele[0]._private.sourceLabelStyleKey;
-                    };
-
-                    var getTargetLabelKey = function getTargetLabelKey(ele) {
-                        return ele[0]._private.targetLabelStyleKey;
-                    };
-
-                    var drawElement = function drawElement(context, ele, bb, scaledLabelShown, useEleOpacity) {
-                        return r.drawElement(context, ele, bb, false, false, useEleOpacity);
-                    };
-
-                    var drawLabel = function drawLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
-                        return r.drawElementText(context, ele, bb, scaledLabelShown, 'main', useEleOpacity);
-                    };
-
-                    var drawSourceLabel = function drawSourceLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
-                        return r.drawElementText(context, ele, bb, scaledLabelShown, 'source', useEleOpacity);
-                    };
-
-                    var drawTargetLabel = function drawTargetLabel(context, ele, bb, scaledLabelShown, useEleOpacity) {
-                        return r.drawElementText(context, ele, bb, scaledLabelShown, 'target', useEleOpacity);
-                    };
-
-                    var getElementBox = function getElementBox(ele) {
-                        ele.boundingBox();
-                        return ele[0]._private.bodyBounds;
-                    };
-
-                    var getLabelBox = function getLabelBox(ele) {
-                        ele.boundingBox();
-                        return ele[0]._private.labelBounds.main || emptyBb;
-                    };
-
-                    var getSourceLabelBox = function getSourceLabelBox(ele) {
-                        ele.boundingBox();
-                        return ele[0]._private.labelBounds.source || emptyBb;
-                    };
-
-                    var getTargetLabelBox = function getTargetLabelBox(ele) {
-                        ele.boundingBox();
-                        return ele[0]._private.labelBounds.target || emptyBb;
-                    };
-
-                    var isLabelVisibleAtScale = function isLabelVisibleAtScale(ele, scaledLabelShown) {
-                        return scaledLabelShown;
-                    };
-
-                    var getElementRotationPoint = function getElementRotationPoint(ele) {
-                        return getBoxCenter(getElementBox(ele));
-                    };
-
-                    var addTextMargin = function addTextMargin(prefix, pt, ele) {
-                        var pre = prefix ? prefix + '-' : '';
-                        return {
-                            x: pt.x + ele.pstyle(pre + 'text-margin-x').pfValue,
-                            y: pt.y + ele.pstyle(pre + 'text-margin-y').pfValue
-                        };
-                    };
-
-                    var getRsPt = function getRsPt(ele, x, y) {
-                        var rs = ele[0]._private.rscratch;
-                        return {
-                            x: rs[x],
-                            y: rs[y]
-                        };
-                    };
-
-                    var getLabelRotationPoint = function getLabelRotationPoint(ele) {
-                        return addTextMargin('', getRsPt(ele, 'labelX', 'labelY'), ele);
-                    };
-
-                    var getSourceLabelRotationPoint = function getSourceLabelRotationPoint(ele) {
-                        return addTextMargin('source', getRsPt(ele, 'sourceLabelX', 'sourceLabelY'), ele);
-                    };
-
-                    var getTargetLabelRotationPoint = function getTargetLabelRotationPoint(ele) {
-                        return addTextMargin('target', getRsPt(ele, 'targetLabelX', 'targetLabelY'), ele);
-                    };
-
-                    var getElementRotationOffset = function getElementRotationOffset(ele) {
-                        return getCenterOffset(getElementBox(ele));
-                    };
-
-                    var getSourceLabelRotationOffset = function getSourceLabelRotationOffset(ele) {
-                        return getCenterOffset(getSourceLabelBox(ele));
-                    };
-
-                    var getTargetLabelRotationOffset = function getTargetLabelRotationOffset(ele) {
-                        return getCenterOffset(getTargetLabelBox(ele));
-                    };
-
-                    var getLabelRotationOffset = function getLabelRotationOffset(ele) {
-                        var bb = getLabelBox(ele);
-                        var p = getCenterOffset(getLabelBox(ele));
-
-                        if (ele.isNode()) {
-                            switch (ele.pstyle('text-halign').value) {
-                                case 'left':
-                                    p.x = -bb.w;
-                                    break;
-
-                                case 'right':
-                                    p.x = 0;
-                                    break;
-                            }
+module.exports = getMatchData;
 
-                            switch (ele.pstyle('text-valign').value) {
-                                case 'top':
-                                    p.y = -bb.h;
-                                    break;
 
-                                case 'bottom':
-                                    p.y = 0;
-                                    break;
-                            }
-                        }
+/***/ }),
 
-                        return p;
-                    };
-
-                    var eleTxrCache = r.data.eleTxrCache = new ElementTextureCache(r, {
-                        getKey: getStyleKey,
-                        doesEleInvalidateKey: backgroundTimestampHasChanged,
-                        drawElement: drawElement,
-                        getBoundingBox: getElementBox,
-                        getRotationPoint: getElementRotationPoint,
-                        getRotationOffset: getElementRotationOffset,
-                        allowEdgeTxrCaching: false,
-                        allowParentTxrCaching: false
-                    });
-                    var lblTxrCache = r.data.lblTxrCache = new ElementTextureCache(r, {
-                        getKey: getLabelKey,
-                        drawElement: drawLabel,
-                        getBoundingBox: getLabelBox,
-                        getRotationPoint: getLabelRotationPoint,
-                        getRotationOffset: getLabelRotationOffset,
-                        isVisible: isLabelVisibleAtScale
-                    });
-                    var slbTxrCache = r.data.slbTxrCache = new ElementTextureCache(r, {
-                        getKey: getSourceLabelKey,
-                        drawElement: drawSourceLabel,
-                        getBoundingBox: getSourceLabelBox,
-                        getRotationPoint: getSourceLabelRotationPoint,
-                        getRotationOffset: getSourceLabelRotationOffset,
-                        isVisible: isLabelVisibleAtScale
-                    });
-                    var tlbTxrCache = r.data.tlbTxrCache = new ElementTextureCache(r, {
-                        getKey: getTargetLabelKey,
-                        drawElement: drawTargetLabel,
-                        getBoundingBox: getTargetLabelBox,
-                        getRotationPoint: getTargetLabelRotationPoint,
-                        getRotationOffset: getTargetLabelRotationOffset,
-                        isVisible: isLabelVisibleAtScale
-                    });
-                    var lyrTxrCache = r.data.lyrTxrCache = new LayeredTextureCache(r);
-                    r.onUpdateEleCalcs(function invalidateTextureCaches(willDraw, eles) {
-                        // each cache should check for sub-key diff to see that the update affects that cache particularly
-                        eleTxrCache.invalidateElements(eles);
-                        lblTxrCache.invalidateElements(eles);
-                        slbTxrCache.invalidateElements(eles);
-                        tlbTxrCache.invalidateElements(eles); // any change invalidates the layers
-
-                        lyrTxrCache.invalidateElements(eles); // update the old bg timestamp so diffs can be done in the ele txr caches
-
-                        for (var _i = 0; _i < eles.length; _i++) {
-                            var _p = eles[_i]._private;
-                            _p.oldBackgroundTimestamp = _p.backgroundTimestamp;
-                        }
-                    });
+/***/ "./node_modules/lodash/_getNative.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_getNative.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    var refineInLayers = function refineInLayers(reqs) {
-                        for (var i = 0; i < reqs.length; i++) {
-                            lyrTxrCache.enqueueElementRefinement(reqs[i].ele);
-                        }
-                    };
+var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
+    getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
 
-                    eleTxrCache.onDequeue(refineInLayers);
-                    lblTxrCache.onDequeue(refineInLayers);
-                    slbTxrCache.onDequeue(refineInLayers);
-                    tlbTxrCache.onDequeue(refineInLayers);
-                }
+/**
+ * Gets the native function at `key` of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the method to get.
+ * @returns {*} Returns the function if it's native, else `undefined`.
+ */
+function getNative(object, key) {
+  var value = getValue(object, key);
+  return baseIsNative(value) ? value : undefined;
+}
 
-                CRp$a.redrawHint = function (group, bool) {
-                    var r = this;
+module.exports = getNative;
 
-                    switch (group) {
-                        case 'eles':
-                            r.data.canvasNeedsRedraw[CRp$a.NODE] = bool;
-                            break;
 
-                        case 'drag':
-                            r.data.canvasNeedsRedraw[CRp$a.DRAG] = bool;
-                            break;
+/***/ }),
 
-                        case 'select':
-                            r.data.canvasNeedsRedraw[CRp$a.SELECT_BOX] = bool;
-                            break;
-                    }
-                }; // whether to use Path2D caching for drawing
+/***/ "./node_modules/lodash/_getPrototype.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_getPrototype.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
 
-                var pathsImpld = typeof Path2D !== 'undefined';
+/** Built-in value references. */
+var getPrototype = overArg(Object.getPrototypeOf, Object);
 
-                CRp$a.path2dEnabled = function (on) {
-                    if (on === undefined) {
-                        return this.pathsEnabled;
-                    }
+module.exports = getPrototype;
 
-                    this.pathsEnabled = on ? true : false;
-                };
 
-                CRp$a.usePaths = function () {
-                    return pathsImpld && this.pathsEnabled;
-                };
+/***/ }),
 
-                CRp$a.setImgSmoothing = function (context, bool) {
-                    if (context.imageSmoothingEnabled != null) {
-                        context.imageSmoothingEnabled = bool;
-                    } else {
-                        context.webkitImageSmoothingEnabled = bool;
-                        context.mozImageSmoothingEnabled = bool;
-                        context.msImageSmoothingEnabled = bool;
-                    }
-                };
+/***/ "./node_modules/lodash/_getRawTag.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_getRawTag.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                CRp$a.getImgSmoothing = function (context) {
-                    if (context.imageSmoothingEnabled != null) {
-                        return context.imageSmoothingEnabled;
-                    } else {
-                        return context.webkitImageSmoothingEnabled || context.mozImageSmoothingEnabled || context.msImageSmoothingEnabled;
-                    }
-                };
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
 
-                CRp$a.makeOffscreenCanvas = function (width, height) {
-                    var canvas;
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                    if ((typeof OffscreenCanvas === "undefined" ? "undefined" : _typeof(OffscreenCanvas)) !== ( "undefined" )) {
-                        canvas = new OffscreenCanvas(width, height);
-                    } else {
-                        canvas = document.createElement('canvas'); // eslint-disable-line no-undef
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                        canvas.width = width;
-                        canvas.height = height;
-                    }
+/**
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+var nativeObjectToString = objectProto.toString;
 
-                    return canvas;
-                };
+/** Built-in value references. */
+var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
 
-                [CRp, CRp$1, CRp$2, CRp$3, CRp$4, CRp$5, CRp$6, CRp$7, CRp$8, CRp$9].forEach(function (props) {
-                    extend(CRp$a, props);
-                });
+/**
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the raw `toStringTag`.
+ */
+function getRawTag(value) {
+  var isOwn = hasOwnProperty.call(value, symToStringTag),
+      tag = value[symToStringTag];
+
+  try {
+    value[symToStringTag] = undefined;
+    var unmasked = true;
+  } catch (e) {}
+
+  var result = nativeObjectToString.call(value);
+  if (unmasked) {
+    if (isOwn) {
+      value[symToStringTag] = tag;
+    } else {
+      delete value[symToStringTag];
+    }
+  }
+  return result;
+}
 
-                var renderer = [{
-                    name: 'null',
-                    impl: NullRenderer
-                }, {
-                    name: 'base',
-                    impl: BR
-                }, {
-                    name: 'canvas',
-                    impl: CR
-                }];
-
-                var incExts = [{
-                    type: 'layout',
-                    extensions: layout
-                }, {
-                    type: 'renderer',
-                    extensions: renderer
-                }];
-
-                var extensions = {}; // registered modules for extensions, indexed by name
-
-                var modules = {};
-
-                function setExtension(type, name, registrant) {
-                    var ext = registrant;
-
-                    var overrideErr = function overrideErr(field) {
-                        error('Can not register `' + name + '` for `' + type + '` since `' + field + '` already exists in the prototype and can not be overridden');
-                    };
-
-                    if (type === 'core') {
-                        if (Core.prototype[name]) {
-                            return overrideErr(name);
-                        } else {
-                            Core.prototype[name] = registrant;
-                        }
-                    } else if (type === 'collection') {
-                        if (Collection.prototype[name]) {
-                            return overrideErr(name);
-                        } else {
-                            Collection.prototype[name] = registrant;
-                        }
-                    } else if (type === 'layout') {
-                        // fill in missing layout functions in the prototype
-                        var Layout = function Layout(options) {
-                            this.options = options;
-                            registrant.call(this, options); // make sure layout has _private for use w/ std apis like .on()
-
-                            if (!plainObject(this._private)) {
-                                this._private = {};
-                            }
+module.exports = getRawTag;
 
-                            this._private.cy = options.cy;
-                            this._private.listeners = [];
-                            this.createEmitter();
-                        };
-
-                        var layoutProto = Layout.prototype = Object.create(registrant.prototype);
-                        var optLayoutFns = [];
-
-                        for (var i = 0; i < optLayoutFns.length; i++) {
-                            var fnName = optLayoutFns[i];
-
-                            layoutProto[fnName] = layoutProto[fnName] || function () {
-                                return this;
-                            };
-                        } // either .start() or .run() is defined, so autogen the other
-
-
-                        if (layoutProto.start && !layoutProto.run) {
-                            layoutProto.run = function () {
-                                this.start();
-                                return this;
-                            };
-                        } else if (!layoutProto.start && layoutProto.run) {
-                            layoutProto.start = function () {
-                                this.run();
-                                return this;
-                            };
-                        }
 
-                        var regStop = registrant.prototype.stop;
+/***/ }),
 
-                        layoutProto.stop = function () {
-                            var opts = this.options;
+/***/ "./node_modules/lodash/_getSymbols.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_getSymbols.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                            if (opts && opts.animate) {
-                                var anis = this.animations;
+var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
+    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
 
-                                if (anis) {
-                                    for (var _i = 0; _i < anis.length; _i++) {
-                                        anis[_i].stop();
-                                    }
-                                }
-                            }
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                            if (regStop) {
-                                regStop.call(this);
-                            } else {
-                                this.emit('layoutstop');
-                            }
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
 
-                            return this;
-                        };
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeGetSymbols = Object.getOwnPropertySymbols;
 
-                        if (!layoutProto.destroy) {
-                            layoutProto.destroy = function () {
-                                return this;
-                            };
-                        }
+/**
+ * Creates an array of the own enumerable symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
+  if (object == null) {
+    return [];
+  }
+  object = Object(object);
+  return arrayFilter(nativeGetSymbols(object), function(symbol) {
+    return propertyIsEnumerable.call(object, symbol);
+  });
+};
 
-                        layoutProto.cy = function () {
-                            return this._private.cy;
-                        };
-
-                        var getCy = function getCy(layout) {
-                            return layout._private.cy;
-                        };
-
-                        var emitterOpts = {
-                            addEventFields: function addEventFields(layout, evt) {
-                                evt.layout = layout;
-                                evt.cy = getCy(layout);
-                                evt.target = layout;
-                            },
-                            bubble: function bubble() {
-                                return true;
-                            },
-                            parent: function parent(layout) {
-                                return getCy(layout);
-                            }
-                        };
-                        extend(layoutProto, {
-                            createEmitter: function createEmitter() {
-                                this._private.emitter = new Emitter(emitterOpts, this);
-                                return this;
-                            },
-                            emitter: function emitter() {
-                                return this._private.emitter;
-                            },
-                            on: function on(evt, cb) {
-                                this.emitter().on(evt, cb);
-                                return this;
-                            },
-                            one: function one(evt, cb) {
-                                this.emitter().one(evt, cb);
-                                return this;
-                            },
-                            once: function once(evt, cb) {
-                                this.emitter().one(evt, cb);
-                                return this;
-                            },
-                            removeListener: function removeListener(evt, cb) {
-                                this.emitter().removeListener(evt, cb);
-                                return this;
-                            },
-                            removeAllListeners: function removeAllListeners() {
-                                this.emitter().removeAllListeners();
-                                return this;
-                            },
-                            emit: function emit(evt, params) {
-                                this.emitter().emit(evt, params);
-                                return this;
-                            }
-                        });
-                        define$3.eventAliasesOn(layoutProto);
-                        ext = Layout; // replace with our wrapped layout
-                    } else if (type === 'renderer' && name !== 'null' && name !== 'base') {
-                        // user registered renderers inherit from base
-                        var BaseRenderer = getExtension('renderer', 'base');
-                        var bProto = BaseRenderer.prototype;
-                        var RegistrantRenderer = registrant;
-                        var rProto = registrant.prototype;
-
-                        var Renderer = function Renderer() {
-                            BaseRenderer.apply(this, arguments);
-                            RegistrantRenderer.apply(this, arguments);
-                        };
-
-                        var proto = Renderer.prototype;
-
-                        for (var pName in bProto) {
-                            var pVal = bProto[pName];
-                            var existsInR = rProto[pName] != null;
-
-                            if (existsInR) {
-                                return overrideErr(pName);
-                            }
+module.exports = getSymbols;
 
-                            proto[pName] = pVal; // take impl from base
-                        }
 
-                        for (var _pName in rProto) {
-                            proto[_pName] = rProto[_pName]; // take impl from registrant
-                        }
+/***/ }),
 
-                        bProto.clientFunctions.forEach(function (name) {
-                            proto[name] = proto[name] || function () {
-                                error('Renderer does not implement `renderer.' + name + '()` on its prototype');
-                            };
-                        });
-                        ext = Renderer;
-                    }
+/***/ "./node_modules/lodash/_getSymbolsIn.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_getSymbolsIn.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    return setMap({
-                        map: extensions,
-                        keys: [type, name],
-                        value: ext
-                    });
-                }
+var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
+    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
+    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
+    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
 
-                function getExtension(type, name) {
-                    return getMap({
-                        map: extensions,
-                        keys: [type, name]
-                    });
-                }
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeGetSymbols = Object.getOwnPropertySymbols;
 
-                function setModule(type, name, moduleType, moduleName, registrant) {
-                    return setMap({
-                        map: modules,
-                        keys: [type, name, moduleType, moduleName],
-                        value: registrant
-                    });
-                }
+/**
+ * Creates an array of the own and inherited enumerable symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
+  var result = [];
+  while (object) {
+    arrayPush(result, getSymbols(object));
+    object = getPrototype(object);
+  }
+  return result;
+};
 
-                function getModule(type, name, moduleType, moduleName) {
-                    return getMap({
-                        map: modules,
-                        keys: [type, name, moduleType, moduleName]
-                    });
-                }
+module.exports = getSymbolsIn;
 
-                var extension = function extension() {
-                    // e.g. extension('renderer', 'svg')
-                    if (arguments.length === 2) {
-                        return getExtension.apply(null, arguments);
-                    } // e.g. extension('renderer', 'svg', { ... })
-                    else if (arguments.length === 3) {
-                        return setExtension.apply(null, arguments);
-                    } // e.g. extension('renderer', 'svg', 'nodeShape', 'ellipse')
-                    else if (arguments.length === 4) {
-                        return getModule.apply(null, arguments);
-                    } // e.g. extension('renderer', 'svg', 'nodeShape', 'ellipse', { ... })
-                    else if (arguments.length === 5) {
-                        return setModule.apply(null, arguments);
-                    } else {
-                        error('Invalid extension access syntax');
-                    }
-                }; // allows a core instance to access extensions internally
 
+/***/ }),
 
-                Core.prototype.extension = extension; // included extensions
+/***/ "./node_modules/lodash/_getTag.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/_getTag.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
+    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
+    Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
+    Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
+    WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
+    baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
+
+/** `Object#toString` result references. */
+var mapTag = '[object Map]',
+    objectTag = '[object Object]',
+    promiseTag = '[object Promise]',
+    setTag = '[object Set]',
+    weakMapTag = '[object WeakMap]';
+
+var dataViewTag = '[object DataView]';
+
+/** Used to detect maps, sets, and weakmaps. */
+var dataViewCtorString = toSource(DataView),
+    mapCtorString = toSource(Map),
+    promiseCtorString = toSource(Promise),
+    setCtorString = toSource(Set),
+    weakMapCtorString = toSource(WeakMap);
+
+/**
+ * Gets the `toStringTag` of `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
+ */
+var getTag = baseGetTag;
 
-                incExts.forEach(function (group) {
-                    group.extensions.forEach(function (ext) {
-                        setExtension(group.type, ext.name, ext.impl);
-                    });
-                });
+// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
+if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+    (Map && getTag(new Map) != mapTag) ||
+    (Promise && getTag(Promise.resolve()) != promiseTag) ||
+    (Set && getTag(new Set) != setTag) ||
+    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
+  getTag = function(value) {
+    var result = baseGetTag(value),
+        Ctor = result == objectTag ? value.constructor : undefined,
+        ctorString = Ctor ? toSource(Ctor) : '';
+
+    if (ctorString) {
+      switch (ctorString) {
+        case dataViewCtorString: return dataViewTag;
+        case mapCtorString: return mapTag;
+        case promiseCtorString: return promiseTag;
+        case setCtorString: return setTag;
+        case weakMapCtorString: return weakMapTag;
+      }
+    }
+    return result;
+  };
+}
 
-// (useful for init)
+module.exports = getTag;
 
-                var Stylesheet = function Stylesheet() {
-                    if (!(this instanceof Stylesheet)) {
-                        return new Stylesheet();
-                    }
 
-                    this.length = 0;
-                };
+/***/ }),
 
-                var sheetfn = Stylesheet.prototype;
+/***/ "./node_modules/lodash/_getValue.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_getValue.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                sheetfn.instanceString = function () {
-                    return 'stylesheet';
-                }; // just store the selector to be parsed later
+/**
+ * Gets the value at `key` of `object`.
+ *
+ * @private
+ * @param {Object} [object] The object to query.
+ * @param {string} key The key of the property to get.
+ * @returns {*} Returns the property value.
+ */
+function getValue(object, key) {
+  return object == null ? undefined : object[key];
+}
 
+module.exports = getValue;
 
-                sheetfn.selector = function (selector) {
-                    var i = this.length++;
-                    this[i] = {
-                        selector: selector,
-                        properties: []
-                    };
-                    return this; // chaining
-                }; // just store the property to be parsed later
 
+/***/ }),
 
-                sheetfn.css = function (name, value) {
-                    var i = this.length - 1;
+/***/ "./node_modules/lodash/_hasPath.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_hasPath.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
+    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
+    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
+    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
+
+/**
+ * Checks if `path` exists on `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @param {Function} hasFunc The function to check properties.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ */
+function hasPath(object, path, hasFunc) {
+  path = castPath(path, object);
 
-                    if (string(name)) {
-                        this[i].properties.push({
-                            name: name,
-                            value: value
-                        });
-                    } else if (plainObject(name)) {
-                        var map = name;
-                        var propNames = Object.keys(map);
+  var index = -1,
+      length = path.length,
+      result = false;
 
-                        for (var j = 0; j < propNames.length; j++) {
-                            var key = propNames[j];
-                            var mapVal = map[key];
+  while (++index < length) {
+    var key = toKey(path[index]);
+    if (!(result = object != null && hasFunc(object, key))) {
+      break;
+    }
+    object = object[key];
+  }
+  if (result || ++index != length) {
+    return result;
+  }
+  length = object == null ? 0 : object.length;
+  return !!length && isLength(length) && isIndex(key, length) &&
+    (isArray(object) || isArguments(object));
+}
 
-                            if (mapVal == null) {
-                                continue;
-                            }
+module.exports = hasPath;
 
-                            var prop = Style.properties[key] || Style.properties[dash2camel(key)];
 
-                            if (prop == null) {
-                                continue;
-                            }
+/***/ }),
 
-                            var _name = prop.name;
-                            var _value = mapVal;
-                            this[i].properties.push({
-                                name: _name,
-                                value: _value
-                            });
-                        }
-                    }
+/***/ "./node_modules/lodash/_hasUnicode.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_hasUnicode.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    return this; // chaining
-                };
+/** Used to compose unicode character classes. */
+var rsAstralRange = '\\ud800-\\udfff',
+    rsComboMarksRange = '\\u0300-\\u036f',
+    reComboHalfMarksRange = '\\ufe20-\\ufe2f',
+    rsComboSymbolsRange = '\\u20d0-\\u20ff',
+    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
+    rsVarRange = '\\ufe0e\\ufe0f';
 
-                sheetfn.style = sheetfn.css; // generate a real style object from the dummy stylesheet
+/** Used to compose unicode capture groups. */
+var rsZWJ = '\\u200d';
 
-                sheetfn.generateStyle = function (cy) {
-                    var style = new Style(cy);
-                    return this.appendToStyle(style);
-                }; // append a dummy stylesheet object on a real style object
+/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
+var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');
 
+/**
+ * Checks if `string` contains Unicode symbols.
+ *
+ * @private
+ * @param {string} string The string to inspect.
+ * @returns {boolean} Returns `true` if a symbol is found, else `false`.
+ */
+function hasUnicode(string) {
+  return reHasUnicode.test(string);
+}
 
-                sheetfn.appendToStyle = function (style) {
-                    for (var i = 0; i < this.length; i++) {
-                        var context = this[i];
-                        var selector = context.selector;
-                        var props = context.properties;
-                        style.selector(selector); // apply selector
+module.exports = hasUnicode;
 
-                        for (var j = 0; j < props.length; j++) {
-                            var prop = props[j];
-                            style.css(prop.name, prop.value); // apply property
-                        }
-                    }
 
-                    return style;
-                };
+/***/ }),
 
-                var version = "3.16.2";
+/***/ "./node_modules/lodash/_hashClear.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_hashClear.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var cytoscape = function cytoscape(options) {
-                    // if no options specified, use default
-                    if (options === undefined) {
-                        options = {};
-                    } // create instance
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
 
+/**
+ * Removes all key-value entries from the hash.
+ *
+ * @private
+ * @name clear
+ * @memberOf Hash
+ */
+function hashClear() {
+  this.__data__ = nativeCreate ? nativeCreate(null) : {};
+  this.size = 0;
+}
 
-                    if (plainObject(options)) {
-                        return new Core(options);
-                    } // allow for registration of extensions
-                    else if (string(options)) {
-                        return extension.apply(extension, arguments);
-                    }
-                }; // e.g. cytoscape.use( require('cytoscape-foo'), bar )
+module.exports = hashClear;
 
 
-                cytoscape.use = function (ext) {
-                    var args = Array.prototype.slice.call(arguments, 1); // args to pass to ext
+/***/ }),
 
-                    args.unshift(cytoscape); // cytoscape is first arg to ext
+/***/ "./node_modules/lodash/_hashDelete.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_hashDelete.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    ext.apply(null, args);
-                    return this;
-                };
+/**
+ * Removes `key` and its value from the hash.
+ *
+ * @private
+ * @name delete
+ * @memberOf Hash
+ * @param {Object} hash The hash to modify.
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+function hashDelete(key) {
+  var result = this.has(key) && delete this.__data__[key];
+  this.size -= result ? 1 : 0;
+  return result;
+}
 
-                cytoscape.warnings = function (bool) {
-                    return warnings(bool);
-                }; // replaced by build system
+module.exports = hashDelete;
 
 
-                cytoscape.version = version; // expose public apis (mostly for extensions)
+/***/ }),
 
-                cytoscape.stylesheet = cytoscape.Stylesheet = Stylesheet;
+/***/ "./node_modules/lodash/_hashGet.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_hashGet.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                module.exports = cytoscape;
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate))
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
 
-            /***/ }),
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-        /***/ "./node_modules/dagre/index.js":
-        /*!*************************************!*\
-  !*** ./node_modules/dagre/index.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-            /*
-Copyright (c) 2012-2014 Chris Pettitt
+/**
+ * Gets the hash value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Hash
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function hashGet(key) {
+  var data = this.__data__;
+  if (nativeCreate) {
+    var result = data[key];
+    return result === HASH_UNDEFINED ? undefined : result;
+  }
+  return hasOwnProperty.call(data, key) ? data[key] : undefined;
+}
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+module.exports = hashGet;
 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
+/***/ }),
 
-            module.exports = {
-                graphlib: __webpack_require__(/*! ./lib/graphlib */ "./node_modules/dagre/lib/graphlib.js"),
+/***/ "./node_modules/lodash/_hashHas.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_hashHas.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                layout: __webpack_require__(/*! ./lib/layout */ "./node_modules/dagre/lib/layout.js"),
-                debug: __webpack_require__(/*! ./lib/debug */ "./node_modules/dagre/lib/debug.js"),
-                util: {
-                    time: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").time,
-                    notime: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").notime
-                },
-                version: __webpack_require__(/*! ./lib/version */ "./node_modules/dagre/lib/version.js")
-            };
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
 
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-            /***/ }),
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-        /***/ "./node_modules/dagre/lib/acyclic.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/dagre/lib/acyclic.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Checks if a hash value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf Hash
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function hashHas(key) {
+  var data = this.__data__;
+  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
+}
 
-            "use strict";
+module.exports = hashHas;
 
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var greedyFAS = __webpack_require__(/*! ./greedy-fas */ "./node_modules/dagre/lib/greedy-fas.js");
+/***/ }),
 
-            module.exports = {
-                run: run,
-                undo: undo
-            };
+/***/ "./node_modules/lodash/_hashSet.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_hashSet.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function run(g) {
-                var fas = (g.graph().acyclicer === "greedy"
-                    ? greedyFAS(g, weightFn(g))
-                    : dfsFAS(g));
-                _.forEach(fas, function(e) {
-                    var label = g.edge(e);
-                    g.removeEdge(e);
-                    label.forwardName = e.name;
-                    label.reversed = true;
-                    g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
-                });
+var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
 
-                function weightFn(g) {
-                    return function(e) {
-                        return g.edge(e).weight;
-                    };
-                }
-            }
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
 
-            function dfsFAS(g) {
-                var fas = [];
-                var stack = {};
-                var visited = {};
+/**
+ * Sets the hash `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf Hash
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the hash instance.
+ */
+function hashSet(key, value) {
+  var data = this.__data__;
+  this.size += this.has(key) ? 0 : 1;
+  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
+  return this;
+}
 
-                function dfs(v) {
-                    if (_.has(visited, v)) {
-                        return;
-                    }
-                    visited[v] = true;
-                    stack[v] = true;
-                    _.forEach(g.outEdges(v), function(e) {
-                        if (_.has(stack, e.w)) {
-                            fas.push(e);
-                        } else {
-                            dfs(e.w);
-                        }
-                    });
-                    delete stack[v];
-                }
+module.exports = hashSet;
 
-                _.forEach(g.nodes(), dfs);
-                return fas;
-            }
 
-            function undo(g) {
-                _.forEach(g.edges(), function(e) {
-                    var label = g.edge(e);
-                    if (label.reversed) {
-                        g.removeEdge(e);
-
-                        var forwardName = label.forwardName;
-                        delete label.reversed;
-                        delete label.forwardName;
-                        g.setEdge(e.w, e.v, label, forwardName);
-                    }
-                });
-            }
+/***/ }),
 
+/***/ "./node_modules/lodash/_initCloneArray.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_initCloneArray.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /***/ }),
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-        /***/ "./node_modules/dagre/lib/add-border-segments.js":
-        /*!*******************************************************!*\
-  !*** ./node_modules/dagre/lib/add-border-segments.js ***!
-  \*******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
+/**
+ * Initializes an array clone.
+ *
+ * @private
+ * @param {Array} array The array to clone.
+ * @returns {Array} Returns the initialized clone.
+ */
+function initCloneArray(array) {
+  var length = array.length,
+      result = new array.constructor(length);
+
+  // Add properties assigned by `RegExp#exec`.
+  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
+    result.index = array.index;
+    result.input = array.input;
+  }
+  return result;
+}
 
-            module.exports = addBorderSegments;
+module.exports = initCloneArray;
 
-            function addBorderSegments(g) {
-                function dfs(v) {
-                    var children = g.children(v);
-                    var node = g.node(v);
-                    if (children.length) {
-                        _.forEach(children, dfs);
-                    }
 
-                    if (_.has(node, "minRank")) {
-                        node.borderLeft = [];
-                        node.borderRight = [];
-                        for (var rank = node.minRank, maxRank = node.maxRank + 1;
-                             rank < maxRank;
-                             ++rank) {
-                            addBorderNode(g, "borderLeft", "_bl", v, node, rank);
-                            addBorderNode(g, "borderRight", "_br", v, node, rank);
-                        }
-                    }
-                }
+/***/ }),
 
-                _.forEach(g.children(), dfs);
-            }
+/***/ "./node_modules/lodash/_initCloneByTag.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_initCloneByTag.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
+    cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
+    cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
+    cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
+    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
+
+/** `Object#toString` result references. */
+var boolTag = '[object Boolean]',
+    dateTag = '[object Date]',
+    mapTag = '[object Map]',
+    numberTag = '[object Number]',
+    regexpTag = '[object RegExp]',
+    setTag = '[object Set]',
+    stringTag = '[object String]',
+    symbolTag = '[object Symbol]';
+
+var arrayBufferTag = '[object ArrayBuffer]',
+    dataViewTag = '[object DataView]',
+    float32Tag = '[object Float32Array]',
+    float64Tag = '[object Float64Array]',
+    int8Tag = '[object Int8Array]',
+    int16Tag = '[object Int16Array]',
+    int32Tag = '[object Int32Array]',
+    uint8Tag = '[object Uint8Array]',
+    uint8ClampedTag = '[object Uint8ClampedArray]',
+    uint16Tag = '[object Uint16Array]',
+    uint32Tag = '[object Uint32Array]';
+
+/**
+ * Initializes an object clone based on its `toStringTag`.
+ *
+ * **Note:** This function only supports cloning values with tags of
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
+ *
+ * @private
+ * @param {Object} object The object to clone.
+ * @param {string} tag The `toStringTag` of the object to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the initialized clone.
+ */
+function initCloneByTag(object, tag, isDeep) {
+  var Ctor = object.constructor;
+  switch (tag) {
+    case arrayBufferTag:
+      return cloneArrayBuffer(object);
 
-            function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
-                var label = { width: 0, height: 0, rank: rank, borderType: prop };
-                var prev = sgNode[prop][rank - 1];
-                var curr = util.addDummyNode(g, "border", label, prefix);
-                sgNode[prop][rank] = curr;
-                g.setParent(curr, sg);
-                if (prev) {
-                    g.setEdge(prev, curr, { weight: 1 });
-                }
-            }
+    case boolTag:
+    case dateTag:
+      return new Ctor(+object);
 
+    case dataViewTag:
+      return cloneDataView(object, isDeep);
 
-            /***/ }),
+    case float32Tag: case float64Tag:
+    case int8Tag: case int16Tag: case int32Tag:
+    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
+      return cloneTypedArray(object, isDeep);
 
-        /***/ "./node_modules/dagre/lib/coordinate-system.js":
-        /*!*****************************************************!*\
-  !*** ./node_modules/dagre/lib/coordinate-system.js ***!
-  \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    case mapTag:
+      return new Ctor;
 
-            "use strict";
+    case numberTag:
+    case stringTag:
+      return new Ctor(object);
 
+    case regexpTag:
+      return cloneRegExp(object);
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+    case setTag:
+      return new Ctor;
 
-            module.exports = {
-                adjust: adjust,
-                undo: undo
-            };
+    case symbolTag:
+      return cloneSymbol(object);
+  }
+}
 
-            function adjust(g) {
-                var rankDir = g.graph().rankdir.toLowerCase();
-                if (rankDir === "lr" || rankDir === "rl") {
-                    swapWidthHeight(g);
-                }
-            }
+module.exports = initCloneByTag;
 
-            function undo(g) {
-                var rankDir = g.graph().rankdir.toLowerCase();
-                if (rankDir === "bt" || rankDir === "rl") {
-                    reverseY(g);
-                }
 
-                if (rankDir === "lr" || rankDir === "rl") {
-                    swapXY(g);
-                    swapWidthHeight(g);
-                }
-            }
+/***/ }),
 
-            function swapWidthHeight(g) {
-                _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
-                _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
-            }
+/***/ "./node_modules/lodash/_initCloneObject.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_initCloneObject.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function swapWidthHeightOne(attrs) {
-                var w = attrs.width;
-                attrs.width = attrs.height;
-                attrs.height = w;
-            }
+var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
+    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
+    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
 
-            function reverseY(g) {
-                _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
+/**
+ * Initializes an object clone.
+ *
+ * @private
+ * @param {Object} object The object to clone.
+ * @returns {Object} Returns the initialized clone.
+ */
+function initCloneObject(object) {
+  return (typeof object.constructor == 'function' && !isPrototype(object))
+    ? baseCreate(getPrototype(object))
+    : {};
+}
 
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    _.forEach(edge.points, reverseYOne);
-                    if (_.has(edge, "y")) {
-                        reverseYOne(edge);
-                    }
-                });
-            }
+module.exports = initCloneObject;
 
-            function reverseYOne(attrs) {
-                attrs.y = -attrs.y;
-            }
 
-            function swapXY(g) {
-                _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
+/***/ }),
 
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    _.forEach(edge.points, swapXYOne);
-                    if (_.has(edge, "x")) {
-                        swapXYOne(edge);
-                    }
-                });
-            }
+/***/ "./node_modules/lodash/_isFlattenable.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_isFlattenable.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function swapXYOne(attrs) {
-                var x = attrs.x;
-                attrs.x = attrs.y;
-                attrs.y = x;
-            }
+var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
+    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
 
+/** Built-in value references. */
+var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
 
-            /***/ }),
+/**
+ * Checks if `value` is a flattenable `arguments` object or array.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+ */
+function isFlattenable(value) {
+  return isArray(value) || isArguments(value) ||
+    !!(spreadableSymbol && value && value[spreadableSymbol]);
+}
 
-        /***/ "./node_modules/dagre/lib/data/list.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/dagre/lib/data/list.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+module.exports = isFlattenable;
 
-            /*
- * Simple doubly linked list implementation derived from Cormen, et al.,
- * "Introduction to Algorithms".
- */
 
-            module.exports = List;
+/***/ }),
 
-            function List() {
-                var sentinel = {};
-                sentinel._next = sentinel._prev = sentinel;
-                this._sentinel = sentinel;
-            }
+/***/ "./node_modules/lodash/_isIndex.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_isIndex.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            List.prototype.dequeue = function() {
-                var sentinel = this._sentinel;
-                var entry = sentinel._prev;
-                if (entry !== sentinel) {
-                    unlink(entry);
-                    return entry;
-                }
-            };
+/** Used as references for various `Number` constants. */
+var MAX_SAFE_INTEGER = 9007199254740991;
 
-            List.prototype.enqueue = function(entry) {
-                var sentinel = this._sentinel;
-                if (entry._prev && entry._next) {
-                    unlink(entry);
-                }
-                entry._next = sentinel._next;
-                sentinel._next._prev = entry;
-                sentinel._next = entry;
-                entry._prev = sentinel;
-            };
+/** Used to detect unsigned integer values. */
+var reIsUint = /^(?:0|[1-9]\d*)$/;
 
-            List.prototype.toString = function() {
-                var strs = [];
-                var sentinel = this._sentinel;
-                var curr = sentinel._prev;
-                while (curr !== sentinel) {
-                    strs.push(JSON.stringify(curr, filterOutLinks));
-                    curr = curr._prev;
-                }
-                return "[" + strs.join(", ") + "]";
-            };
+/**
+ * Checks if `value` is a valid array-like index.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
+ */
+function isIndex(value, length) {
+  var type = typeof value;
+  length = length == null ? MAX_SAFE_INTEGER : length;
 
-            function unlink(entry) {
-                entry._prev._next = entry._next;
-                entry._next._prev = entry._prev;
-                delete entry._next;
-                delete entry._prev;
-            }
+  return !!length &&
+    (type == 'number' ||
+      (type != 'symbol' && reIsUint.test(value))) &&
+        (value > -1 && value % 1 == 0 && value < length);
+}
 
-            function filterOutLinks(k, v) {
-                if (k !== "_next" && k !== "_prev") {
-                    return v;
-                }
-            }
+module.exports = isIndex;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/debug.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/dagre/lib/debug.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/_isIterateeCall.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_isIterateeCall.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
-            var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
+    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
 
-            module.exports = {
-                debugOrdering: debugOrdering
-            };
+/**
+ * Checks if the given arguments are from an iteratee call.
+ *
+ * @private
+ * @param {*} value The potential iteratee value argument.
+ * @param {*} index The potential iteratee index or key argument.
+ * @param {*} object The potential iteratee object argument.
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
+ *  else `false`.
+ */
+function isIterateeCall(value, index, object) {
+  if (!isObject(object)) {
+    return false;
+  }
+  var type = typeof index;
+  if (type == 'number'
+        ? (isArrayLike(object) && isIndex(index, object.length))
+        : (type == 'string' && index in object)
+      ) {
+    return eq(object[index], value);
+  }
+  return false;
+}
 
-            /* istanbul ignore next */
-            function debugOrdering(g) {
-                var layerMatrix = util.buildLayerMatrix(g);
+module.exports = isIterateeCall;
 
-                var h = new Graph({ compound: true, multigraph: true }).setGraph({});
 
-                _.forEach(g.nodes(), function(v) {
-                    h.setNode(v, { label: v });
-                    h.setParent(v, "layer" + g.node(v).rank);
-                });
+/***/ }),
 
-                _.forEach(g.edges(), function(e) {
-                    h.setEdge(e.v, e.w, {}, e.name);
-                });
+/***/ "./node_modules/lodash/_isKey.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/_isKey.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                _.forEach(layerMatrix, function(layer, i) {
-                    var layerV = "layer" + i;
-                    h.setNode(layerV, { rank: "same" });
-                    _.reduce(layer, function(u, v) {
-                        h.setEdge(u, v, { style: "invis" });
-                        return v;
-                    });
-                });
+var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
 
-                return h;
-            }
+/** Used to match property names within property paths. */
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
+    reIsPlainProp = /^\w*$/;
 
+/**
+ * Checks if `value` is a property name and not a property path.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+ */
+function isKey(value, object) {
+  if (isArray(value)) {
+    return false;
+  }
+  var type = typeof value;
+  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
+      value == null || isSymbol(value)) {
+    return true;
+  }
+  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+    (object != null && value in Object(object));
+}
 
-            /***/ }),
+module.exports = isKey;
 
-        /***/ "./node_modules/dagre/lib/graphlib.js":
-        /*!********************************************!*\
-  !*** ./node_modules/dagre/lib/graphlib.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
 
-            /* global window */
+/***/ }),
 
-            var graphlib;
+/***/ "./node_modules/lodash/_isKeyable.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/_isKeyable.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            if (true) {
-                try {
-                    graphlib = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
-                } catch (e) {
-                    // continue regardless of error
-                }
-            }
+/**
+ * Checks if `value` is suitable for use as unique object key.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
+ */
+function isKeyable(value) {
+  var type = typeof value;
+  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
+    ? (value !== '__proto__')
+    : (value === null);
+}
 
-            if (!graphlib) {
-                graphlib = window.graphlib;
-            }
+module.exports = isKeyable;
 
-            module.exports = graphlib;
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/_isMasked.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_isMasked.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/dagre/lib/greedy-fas.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/dagre/lib/greedy-fas.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-            var List = __webpack_require__(/*! ./data/list */ "./node_modules/dagre/lib/data/list.js");
+/** Used to detect methods masquerading as native. */
+var maskSrcKey = (function() {
+  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
+  return uid ? ('Symbol(src)_1.' + uid) : '';
+}());
 
-            /*
- * A greedy heuristic for finding a feedback arc set for a graph. A feedback
- * arc set is a set of edges that can be removed to make a graph acyclic.
- * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
- * effective heuristic for the feedback arc set problem." This implementation
- * adjusts that from the paper to allow for weighted edges.
+/**
+ * Checks if `func` has its source masked.
+ *
+ * @private
+ * @param {Function} func The function to check.
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  */
-            module.exports = greedyFAS;
+function isMasked(func) {
+  return !!maskSrcKey && (maskSrcKey in func);
+}
 
-            var DEFAULT_WEIGHT_FN = _.constant(1);
+module.exports = isMasked;
 
-            function greedyFAS(g, weightFn) {
-                if (g.nodeCount() <= 1) {
-                    return [];
-                }
-                var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
-                var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
 
-                // Expand multi-edges
-                return _.flatten(_.map(results, function(e) {
-                    return g.outEdges(e.v, e.w);
-                }), true);
-            }
+/***/ }),
 
-            function doGreedyFAS(g, buckets, zeroIdx) {
-                var results = [];
-                var sources = buckets[buckets.length - 1];
-                var sinks = buckets[0];
-
-                var entry;
-                while (g.nodeCount()) {
-                    while ((entry = sinks.dequeue()))   { removeNode(g, buckets, zeroIdx, entry); }
-                    while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
-                    if (g.nodeCount()) {
-                        for (var i = buckets.length - 2; i > 0; --i) {
-                            entry = buckets[i].dequeue();
-                            if (entry) {
-                                results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
-                                break;
-                            }
-                        }
-                    }
-                }
+/***/ "./node_modules/lodash/_isPrototype.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_isPrototype.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                return results;
-            }
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-            function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
-                var results = collectPredecessors ? [] : undefined;
+/**
+ * Checks if `value` is likely a prototype object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+ */
+function isPrototype(value) {
+  var Ctor = value && value.constructor,
+      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
 
-                _.forEach(g.inEdges(entry.v), function(edge) {
-                    var weight = g.edge(edge);
-                    var uEntry = g.node(edge.v);
+  return value === proto;
+}
 
-                    if (collectPredecessors) {
-                        results.push({ v: edge.v, w: edge.w });
-                    }
+module.exports = isPrototype;
 
-                    uEntry.out -= weight;
-                    assignBucket(buckets, zeroIdx, uEntry);
-                });
 
-                _.forEach(g.outEdges(entry.v), function(edge) {
-                    var weight = g.edge(edge);
-                    var w = edge.w;
-                    var wEntry = g.node(w);
-                    wEntry["in"] -= weight;
-                    assignBucket(buckets, zeroIdx, wEntry);
-                });
+/***/ }),
 
-                g.removeNode(entry.v);
+/***/ "./node_modules/lodash/_isStrictComparable.js":
+/*!****************************************************!*\
+  !*** ./node_modules/lodash/_isStrictComparable.js ***!
+  \****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                return results;
-            }
+var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
 
-            function buildState(g, weightFn) {
-                var fasGraph = new Graph();
-                var maxIn = 0;
-                var maxOut = 0;
+/**
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
+ *  equality comparisons, else `false`.
+ */
+function isStrictComparable(value) {
+  return value === value && !isObject(value);
+}
 
-                _.forEach(g.nodes(), function(v) {
-                    fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
-                });
+module.exports = isStrictComparable;
 
-                // Aggregate weights on nodes, but also sum the weights across multi-edges
-                // into a single edge for the fasGraph.
-                _.forEach(g.edges(), function(e) {
-                    var prevWeight = fasGraph.edge(e.v, e.w) || 0;
-                    var weight = weightFn(e);
-                    var edgeWeight = prevWeight + weight;
-                    fasGraph.setEdge(e.v, e.w, edgeWeight);
-                    maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
-                    maxIn  = Math.max(maxIn,  fasGraph.node(e.w)["in"]  += weight);
-                });
 
-                var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
-                var zeroIdx = maxIn + 1;
+/***/ }),
 
-                _.forEach(fasGraph.nodes(), function(v) {
-                    assignBucket(buckets, zeroIdx, fasGraph.node(v));
-                });
+/***/ "./node_modules/lodash/_listCacheClear.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_listCacheClear.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
-            }
+/**
+ * Removes all key-value entries from the list cache.
+ *
+ * @private
+ * @name clear
+ * @memberOf ListCache
+ */
+function listCacheClear() {
+  this.__data__ = [];
+  this.size = 0;
+}
 
-            function assignBucket(buckets, zeroIdx, entry) {
-                if (!entry.out) {
-                    buckets[0].enqueue(entry);
-                } else if (!entry["in"]) {
-                    buckets[buckets.length - 1].enqueue(entry);
-                } else {
-                    buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
-                }
-            }
+module.exports = listCacheClear;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/layout.js":
-        /*!******************************************!*\
-  !*** ./node_modules/dagre/lib/layout.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-
-
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var acyclic = __webpack_require__(/*! ./acyclic */ "./node_modules/dagre/lib/acyclic.js");
-            var normalize = __webpack_require__(/*! ./normalize */ "./node_modules/dagre/lib/normalize.js");
-            var rank = __webpack_require__(/*! ./rank */ "./node_modules/dagre/lib/rank/index.js");
-            var normalizeRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").normalizeRanks;
-            var parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "./node_modules/dagre/lib/parent-dummy-chains.js");
-            var removeEmptyRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").removeEmptyRanks;
-            var nestingGraph = __webpack_require__(/*! ./nesting-graph */ "./node_modules/dagre/lib/nesting-graph.js");
-            var addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "./node_modules/dagre/lib/add-border-segments.js");
-            var coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "./node_modules/dagre/lib/coordinate-system.js");
-            var order = __webpack_require__(/*! ./order */ "./node_modules/dagre/lib/order/index.js");
-            var position = __webpack_require__(/*! ./position */ "./node_modules/dagre/lib/position/index.js");
-            var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
-            var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-
-            module.exports = layout;
-
-            function layout(g, opts) {
-                var time = opts && opts.debugTiming ? util.time : util.notime;
-                time("layout", function() {
-                    var layoutGraph =
-                        time("  buildLayoutGraph", function() { return buildLayoutGraph(g); });
-                    time("  runLayout",        function() { runLayout(layoutGraph, time); });
-                    time("  updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
-                });
-            }
+/***/ "./node_modules/lodash/_listCacheDelete.js":
+/*!*************************************************!*\
+  !*** ./node_modules/lodash/_listCacheDelete.js ***!
+  \*************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function runLayout(g, time) {
-                time("    makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
-                time("    removeSelfEdges",        function() { removeSelfEdges(g); });
-                time("    acyclic",                function() { acyclic.run(g); });
-                time("    nestingGraph.run",       function() { nestingGraph.run(g); });
-                time("    rank",                   function() { rank(util.asNonCompoundGraph(g)); });
-                time("    injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
-                time("    removeEmptyRanks",       function() { removeEmptyRanks(g); });
-                time("    nestingGraph.cleanup",   function() { nestingGraph.cleanup(g); });
-                time("    normalizeRanks",         function() { normalizeRanks(g); });
-                time("    assignRankMinMax",       function() { assignRankMinMax(g); });
-                time("    removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
-                time("    normalize.run",          function() { normalize.run(g); });
-                time("    parentDummyChains",      function() { parentDummyChains(g); });
-                time("    addBorderSegments",      function() { addBorderSegments(g); });
-                time("    order",                  function() { order(g); });
-                time("    insertSelfEdges",        function() { insertSelfEdges(g); });
-                time("    adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
-                time("    position",               function() { position(g); });
-                time("    positionSelfEdges",      function() { positionSelfEdges(g); });
-                time("    removeBorderNodes",      function() { removeBorderNodes(g); });
-                time("    normalize.undo",         function() { normalize.undo(g); });
-                time("    fixupEdgeLabelCoords",   function() { fixupEdgeLabelCoords(g); });
-                time("    undoCoordinateSystem",   function() { coordinateSystem.undo(g); });
-                time("    translateGraph",         function() { translateGraph(g); });
-                time("    assignNodeIntersects",   function() { assignNodeIntersects(g); });
-                time("    reversePoints",          function() { reversePointsForReversedEdges(g); });
-                time("    acyclic.undo",           function() { acyclic.undo(g); });
-            }
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
 
-            /*
- * Copies final layout information from the layout graph back to the input
- * graph. This process only copies whitelisted attributes from the layout graph
- * to the input graph, so it serves as a good place to determine what
- * attributes can influence layout.
+/** Used for built-in method references. */
+var arrayProto = Array.prototype;
+
+/** Built-in value references. */
+var splice = arrayProto.splice;
+
+/**
+ * Removes `key` and its value from the list cache.
+ *
+ * @private
+ * @name delete
+ * @memberOf ListCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  */
-            function updateInputGraph(inputGraph, layoutGraph) {
-                _.forEach(inputGraph.nodes(), function(v) {
-                    var inputLabel = inputGraph.node(v);
-                    var layoutLabel = layoutGraph.node(v);
+function listCacheDelete(key) {
+  var data = this.__data__,
+      index = assocIndexOf(data, key);
 
-                    if (inputLabel) {
-                        inputLabel.x = layoutLabel.x;
-                        inputLabel.y = layoutLabel.y;
+  if (index < 0) {
+    return false;
+  }
+  var lastIndex = data.length - 1;
+  if (index == lastIndex) {
+    data.pop();
+  } else {
+    splice.call(data, index, 1);
+  }
+  --this.size;
+  return true;
+}
 
-                        if (layoutGraph.children(v).length) {
-                            inputLabel.width = layoutLabel.width;
-                            inputLabel.height = layoutLabel.height;
-                        }
-                    }
-                });
+module.exports = listCacheDelete;
 
-                _.forEach(inputGraph.edges(), function(e) {
-                    var inputLabel = inputGraph.edge(e);
-                    var layoutLabel = layoutGraph.edge(e);
 
-                    inputLabel.points = layoutLabel.points;
-                    if (_.has(layoutLabel, "x")) {
-                        inputLabel.x = layoutLabel.x;
-                        inputLabel.y = layoutLabel.y;
-                    }
-                });
+/***/ }),
 
-                inputGraph.graph().width = layoutGraph.graph().width;
-                inputGraph.graph().height = layoutGraph.graph().height;
-            }
+/***/ "./node_modules/lodash/_listCacheGet.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_listCacheGet.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"];
-            var graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" };
-            var graphAttrs = ["acyclicer", "ranker", "rankdir", "align"];
-            var nodeNumAttrs = ["width", "height"];
-            var nodeDefaults = { width: 0, height: 0 };
-            var edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"];
-            var edgeDefaults = {
-                minlen: 1, weight: 1, width: 0, height: 0,
-                labeloffset: 10, labelpos: "r"
-            };
-            var edgeAttrs = ["labelpos"];
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
 
-            /*
- * Constructs a new graph from the input graph, which can be used for layout.
- * This process copies only whitelisted attributes from the input graph to the
- * layout graph. Thus this function serves as a good place to determine what
- * attributes can influence layout.
+/**
+ * Gets the list cache value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf ListCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
  */
-            function buildLayoutGraph(inputGraph) {
-                var g = new Graph({ multigraph: true, compound: true });
-                var graph = canonicalize(inputGraph.graph());
+function listCacheGet(key) {
+  var data = this.__data__,
+      index = assocIndexOf(data, key);
 
-                g.setGraph(_.merge({},
-                    graphDefaults,
-                    selectNumberAttrs(graph, graphNumAttrs),
-                    _.pick(graph, graphAttrs)));
+  return index < 0 ? undefined : data[index][1];
+}
 
-                _.forEach(inputGraph.nodes(), function(v) {
-                    var node = canonicalize(inputGraph.node(v));
-                    g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
-                    g.setParent(v, inputGraph.parent(v));
-                });
+module.exports = listCacheGet;
 
-                _.forEach(inputGraph.edges(), function(e) {
-                    var edge = canonicalize(inputGraph.edge(e));
-                    g.setEdge(e, _.merge({},
-                        edgeDefaults,
-                        selectNumberAttrs(edge, edgeNumAttrs),
-                        _.pick(edge, edgeAttrs)));
-                });
 
-                return g;
-            }
+/***/ }),
 
-            /*
- * This idea comes from the Gansner paper: to account for edge labels in our
- * layout we split each rank in half by doubling minlen and halving ranksep.
- * Then we can place labels at these mid-points between nodes.
+/***/ "./node_modules/lodash/_listCacheHas.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_listCacheHas.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
+
+/**
+ * Checks if a list cache value for `key` exists.
  *
- * We also add some minimal padding to the width to push the label for the edge
- * away from the edge itself a bit.
+ * @private
+ * @name has
+ * @memberOf ListCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  */
-            function makeSpaceForEdgeLabels(g) {
-                var graph = g.graph();
-                graph.ranksep /= 2;
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    edge.minlen *= 2;
-                    if (edge.labelpos.toLowerCase() !== "c") {
-                        if (graph.rankdir === "TB" || graph.rankdir === "BT") {
-                            edge.width += edge.labeloffset;
-                        } else {
-                            edge.height += edge.labeloffset;
-                        }
-                    }
-                });
-            }
+function listCacheHas(key) {
+  return assocIndexOf(this.__data__, key) > -1;
+}
 
-            /*
- * Creates temporary dummy nodes that capture the rank in which each edge's
- * label is going to, if it has one of non-zero width and height. We do this
- * so that we can safely remove empty ranks while preserving balance for the
- * label's position.
- */
-            function injectEdgeLabelProxies(g) {
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    if (edge.width && edge.height) {
-                        var v = g.node(e.v);
-                        var w = g.node(e.w);
-                        var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
-                        util.addDummyNode(g, "edge-proxy", label, "_ep");
-                    }
-                });
-            }
+module.exports = listCacheHas;
 
-            function assignRankMinMax(g) {
-                var maxRank = 0;
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    if (node.borderTop) {
-                        node.minRank = g.node(node.borderTop).rank;
-                        node.maxRank = g.node(node.borderBottom).rank;
-                        maxRank = _.max(maxRank, node.maxRank);
-                    }
-                });
-                g.graph().maxRank = maxRank;
-            }
 
-            function removeEdgeLabelProxies(g) {
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    if (node.dummy === "edge-proxy") {
-                        g.edge(node.e).labelRank = node.rank;
-                        g.removeNode(v);
-                    }
-                });
-            }
+/***/ }),
 
-            function translateGraph(g) {
-                var minX = Number.POSITIVE_INFINITY;
-                var maxX = 0;
-                var minY = Number.POSITIVE_INFINITY;
-                var maxY = 0;
-                var graphLabel = g.graph();
-                var marginX = graphLabel.marginx || 0;
-                var marginY = graphLabel.marginy || 0;
-
-                function getExtremes(attrs) {
-                    var x = attrs.x;
-                    var y = attrs.y;
-                    var w = attrs.width;
-                    var h = attrs.height;
-                    minX = Math.min(minX, x - w / 2);
-                    maxX = Math.max(maxX, x + w / 2);
-                    minY = Math.min(minY, y - h / 2);
-                    maxY = Math.max(maxY, y + h / 2);
-                }
+/***/ "./node_modules/lodash/_listCacheSet.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_listCacheSet.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    if (_.has(edge, "x")) {
-                        getExtremes(edge);
-                    }
-                });
+var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
 
-                minX -= marginX;
-                minY -= marginY;
+/**
+ * Sets the list cache `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf ListCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the list cache instance.
+ */
+function listCacheSet(key, value) {
+  var data = this.__data__,
+      index = assocIndexOf(data, key);
+
+  if (index < 0) {
+    ++this.size;
+    data.push([key, value]);
+  } else {
+    data[index][1] = value;
+  }
+  return this;
+}
 
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    node.x -= minX;
-                    node.y -= minY;
-                });
+module.exports = listCacheSet;
 
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    _.forEach(edge.points, function(p) {
-                        p.x -= minX;
-                        p.y -= minY;
-                    });
-                    if (_.has(edge, "x")) { edge.x -= minX; }
-                    if (_.has(edge, "y")) { edge.y -= minY; }
-                });
 
-                graphLabel.width = maxX - minX + marginX;
-                graphLabel.height = maxY - minY + marginY;
-            }
+/***/ }),
 
-            function assignNodeIntersects(g) {
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    var nodeV = g.node(e.v);
-                    var nodeW = g.node(e.w);
-                    var p1, p2;
-                    if (!edge.points) {
-                        edge.points = [];
-                        p1 = nodeW;
-                        p2 = nodeV;
-                    } else {
-                        p1 = edge.points[0];
-                        p2 = edge.points[edge.points.length - 1];
-                    }
-                    edge.points.unshift(util.intersectRect(nodeV, p1));
-                    edge.points.push(util.intersectRect(nodeW, p2));
-                });
-            }
+/***/ "./node_modules/lodash/_mapCacheClear.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_mapCacheClear.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function fixupEdgeLabelCoords(g) {
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    if (_.has(edge, "x")) {
-                        if (edge.labelpos === "l" || edge.labelpos === "r") {
-                            edge.width -= edge.labeloffset;
-                        }
-                        switch (edge.labelpos) {
-                            case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
-                            case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
-                        }
-                    }
-                });
-            }
+var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
+    ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
+    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
 
-            function reversePointsForReversedEdges(g) {
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    if (edge.reversed) {
-                        edge.points.reverse();
-                    }
-                });
-            }
+/**
+ * Removes all key-value entries from the map.
+ *
+ * @private
+ * @name clear
+ * @memberOf MapCache
+ */
+function mapCacheClear() {
+  this.size = 0;
+  this.__data__ = {
+    'hash': new Hash,
+    'map': new (Map || ListCache),
+    'string': new Hash
+  };
+}
 
-            function removeBorderNodes(g) {
-                _.forEach(g.nodes(), function(v) {
-                    if (g.children(v).length) {
-                        var node = g.node(v);
-                        var t = g.node(node.borderTop);
-                        var b = g.node(node.borderBottom);
-                        var l = g.node(_.last(node.borderLeft));
-                        var r = g.node(_.last(node.borderRight));
-
-                        node.width = Math.abs(r.x - l.x);
-                        node.height = Math.abs(b.y - t.y);
-                        node.x = l.x + node.width / 2;
-                        node.y = t.y + node.height / 2;
-                    }
-                });
+module.exports = mapCacheClear;
 
-                _.forEach(g.nodes(), function(v) {
-                    if (g.node(v).dummy === "border") {
-                        g.removeNode(v);
-                    }
-                });
-            }
 
-            function removeSelfEdges(g) {
-                _.forEach(g.edges(), function(e) {
-                    if (e.v === e.w) {
-                        var node = g.node(e.v);
-                        if (!node.selfEdges) {
-                            node.selfEdges = [];
-                        }
-                        node.selfEdges.push({ e: e, label: g.edge(e) });
-                        g.removeEdge(e);
-                    }
-                });
-            }
+/***/ }),
 
-            function insertSelfEdges(g) {
-                var layers = util.buildLayerMatrix(g);
-                _.forEach(layers, function(layer) {
-                    var orderShift = 0;
-                    _.forEach(layer, function(v, i) {
-                        var node = g.node(v);
-                        node.order = i + orderShift;
-                        _.forEach(node.selfEdges, function(selfEdge) {
-                            util.addDummyNode(g, "selfedge", {
-                                width: selfEdge.label.width,
-                                height: selfEdge.label.height,
-                                rank: node.rank,
-                                order: i + (++orderShift),
-                                e: selfEdge.e,
-                                label: selfEdge.label
-                            }, "_se");
-                        });
-                        delete node.selfEdges;
-                    });
-                });
-            }
+/***/ "./node_modules/lodash/_mapCacheDelete.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_mapCacheDelete.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function positionSelfEdges(g) {
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    if (node.dummy === "selfedge") {
-                        var selfNode = g.node(node.e.v);
-                        var x = selfNode.x + selfNode.width / 2;
-                        var y = selfNode.y;
-                        var dx = node.x - x;
-                        var dy = selfNode.height / 2;
-                        g.setEdge(node.e, node.label);
-                        g.removeNode(v);
-                        node.label.points = [
-                            { x: x + 2 * dx / 3, y: y - dy },
-                            { x: x + 5 * dx / 6, y: y - dy },
-                            { x: x +     dx    , y: y },
-                            { x: x + 5 * dx / 6, y: y + dy },
-                            { x: x + 2 * dx / 3, y: y + dy }
-                        ];
-                        node.label.x = node.x;
-                        node.label.y = node.y;
-                    }
-                });
-            }
+var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
 
-            function selectNumberAttrs(obj, attrs) {
-                return _.mapValues(_.pick(obj, attrs), Number);
-            }
+/**
+ * Removes `key` and its value from the map.
+ *
+ * @private
+ * @name delete
+ * @memberOf MapCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+function mapCacheDelete(key) {
+  var result = getMapData(this, key)['delete'](key);
+  this.size -= result ? 1 : 0;
+  return result;
+}
 
-            function canonicalize(attrs) {
-                var newAttrs = {};
-                _.forEach(attrs, function(v, k) {
-                    newAttrs[k.toLowerCase()] = v;
-                });
-                return newAttrs;
-            }
+module.exports = mapCacheDelete;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/lodash.js":
-        /*!******************************************!*\
-  !*** ./node_modules/dagre/lib/lodash.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/_mapCacheGet.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_mapCacheGet.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /* global window */
+var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
 
-            var lodash;
+/**
+ * Gets the map value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf MapCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function mapCacheGet(key) {
+  return getMapData(this, key).get(key);
+}
 
-            if (true) {
-                try {
-                    lodash = {
-                        cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js"),
-                        constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
-                        defaults: __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js"),
-                        each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
-                        filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
-                        find: __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js"),
-                        flatten: __webpack_require__(/*! lodash/flatten */ "./node_modules/lodash/flatten.js"),
-                        forEach: __webpack_require__(/*! lodash/forEach */ "./node_modules/lodash/forEach.js"),
-                        forIn: __webpack_require__(/*! lodash/forIn */ "./node_modules/lodash/forIn.js"),
-                        has:  __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
-                        isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
-                        last: __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js"),
-                        map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
-                        mapValues: __webpack_require__(/*! lodash/mapValues */ "./node_modules/lodash/mapValues.js"),
-                        max: __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js"),
-                        merge: __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js"),
-                        min: __webpack_require__(/*! lodash/min */ "./node_modules/lodash/min.js"),
-                        minBy: __webpack_require__(/*! lodash/minBy */ "./node_modules/lodash/minBy.js"),
-                        now: __webpack_require__(/*! lodash/now */ "./node_modules/lodash/now.js"),
-                        pick: __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"),
-                        range: __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js"),
-                        reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
-                        sortBy: __webpack_require__(/*! lodash/sortBy */ "./node_modules/lodash/sortBy.js"),
-                        uniqueId: __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js"),
-                        values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js"),
-                        zipObject: __webpack_require__(/*! lodash/zipObject */ "./node_modules/lodash/zipObject.js"),
-                    };
-                } catch (e) {
-                    // continue regardless of error
-                }
-            }
+module.exports = mapCacheGet;
 
-            if (!lodash) {
-                lodash = window._;
-            }
 
-            module.exports = lodash;
+/***/ }),
 
+/***/ "./node_modules/lodash/_mapCacheHas.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_mapCacheHas.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /***/ }),
+var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
 
-        /***/ "./node_modules/dagre/lib/nesting-graph.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/dagre/lib/nesting-graph.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Checks if a map value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf MapCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function mapCacheHas(key) {
+  return getMapData(this, key).has(key);
+}
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
+module.exports = mapCacheHas;
 
-            module.exports = {
-                run: run,
-                cleanup: cleanup
-            };
 
-            /*
- * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
- * adds appropriate edges to ensure that all cluster nodes are placed between
- * these boundries, and ensures that the graph is connected.
- *
- * In addition we ensure, through the use of the minlen property, that nodes
- * and subgraph border nodes to not end up on the same rank.
- *
- * Preconditions:
- *
- *    1. Input graph is a DAG
- *    2. Nodes in the input graph has a minlen attribute
- *
- * Postconditions:
- *
- *    1. Input graph is connected.
- *    2. Dummy nodes are added for the tops and bottoms of subgraphs.
- *    3. The minlen attribute for nodes is adjusted to ensure nodes do not
- *       get placed on the same rank as subgraph border nodes.
+/***/ }),
+
+/***/ "./node_modules/lodash/_mapCacheSet.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_mapCacheSet.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
+
+/**
+ * Sets the map `key` to `value`.
  *
- * The nesting graph idea comes from Sander, "Layout of Compound Directed
- * Graphs."
+ * @private
+ * @name set
+ * @memberOf MapCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the map cache instance.
  */
-            function run(g) {
-                var root = util.addDummyNode(g, "root", {}, "_root");
-                var depths = treeDepths(g);
-                var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
-                var nodeSep = 2 * height + 1;
+function mapCacheSet(key, value) {
+  var data = getMapData(this, key),
+      size = data.size;
 
-                g.graph().nestingRoot = root;
+  data.set(key, value);
+  this.size += data.size == size ? 0 : 1;
+  return this;
+}
 
-                // Multiply minlen by nodeSep to align nodes on non-border ranks.
-                _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
+module.exports = mapCacheSet;
 
-                // Calculate a weight that is sufficient to keep subgraphs vertically compact
-                var weight = sumWeights(g) + 1;
 
-                // Create border nodes and link them up
-                _.forEach(g.children(), function(child) {
-                    dfs(g, root, nodeSep, weight, height, depths, child);
-                });
+/***/ }),
 
-                // Save the multiplier for node layers for later removal of empty border
-                // layers.
-                g.graph().nodeRankFactor = nodeSep;
-            }
+/***/ "./node_modules/lodash/_mapToArray.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_mapToArray.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            function dfs(g, root, nodeSep, weight, height, depths, v) {
-                var children = g.children(v);
-                if (!children.length) {
-                    if (v !== root) {
-                        g.setEdge(root, v, { weight: 0, minlen: nodeSep });
-                    }
-                    return;
-                }
+/**
+ * Converts `map` to its key-value pairs.
+ *
+ * @private
+ * @param {Object} map The map to convert.
+ * @returns {Array} Returns the key-value pairs.
+ */
+function mapToArray(map) {
+  var index = -1,
+      result = Array(map.size);
 
-                var top = util.addBorderNode(g, "_bt");
-                var bottom = util.addBorderNode(g, "_bb");
-                var label = g.node(v);
-
-                g.setParent(top, v);
-                label.borderTop = top;
-                g.setParent(bottom, v);
-                label.borderBottom = bottom;
-
-                _.forEach(children, function(child) {
-                    dfs(g, root, nodeSep, weight, height, depths, child);
-
-                    var childNode = g.node(child);
-                    var childTop = childNode.borderTop ? childNode.borderTop : child;
-                    var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
-                    var thisWeight = childNode.borderTop ? weight : 2 * weight;
-                    var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
-
-                    g.setEdge(top, childTop, {
-                        weight: thisWeight,
-                        minlen: minlen,
-                        nestingEdge: true
-                    });
-
-                    g.setEdge(childBottom, bottom, {
-                        weight: thisWeight,
-                        minlen: minlen,
-                        nestingEdge: true
-                    });
-                });
+  map.forEach(function(value, key) {
+    result[++index] = [key, value];
+  });
+  return result;
+}
 
-                if (!g.parent(v)) {
-                    g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
-                }
-            }
+module.exports = mapToArray;
 
-            function treeDepths(g) {
-                var depths = {};
-                function dfs(v, depth) {
-                    var children = g.children(v);
-                    if (children && children.length) {
-                        _.forEach(children, function(child) {
-                            dfs(child, depth + 1);
-                        });
-                    }
-                    depths[v] = depth;
-                }
-                _.forEach(g.children(), function(v) { dfs(v, 1); });
-                return depths;
-            }
 
-            function sumWeights(g) {
-                return _.reduce(g.edges(), function(acc, e) {
-                    return acc + g.edge(e).weight;
-                }, 0);
-            }
+/***/ }),
 
-            function cleanup(g) {
-                var graphLabel = g.graph();
-                g.removeNode(graphLabel.nestingRoot);
-                delete graphLabel.nestingRoot;
-                _.forEach(g.edges(), function(e) {
-                    var edge = g.edge(e);
-                    if (edge.nestingEdge) {
-                        g.removeEdge(e);
-                    }
-                });
-            }
+/***/ "./node_modules/lodash/_matchesStrictComparable.js":
+/*!*********************************************************!*\
+  !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
+  \*********************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/**
+ * A specialized version of `matchesProperty` for source values suitable
+ * for strict equality comparisons, i.e. `===`.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new spec function.
+ */
+function matchesStrictComparable(key, srcValue) {
+  return function(object) {
+    if (object == null) {
+      return false;
+    }
+    return object[key] === srcValue &&
+      (srcValue !== undefined || (key in Object(object)));
+  };
+}
 
-            /***/ }),
+module.exports = matchesStrictComparable;
 
-        /***/ "./node_modules/dagre/lib/normalize.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/dagre/lib/normalize.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+/***/ }),
 
+/***/ "./node_modules/lodash/_memoizeCapped.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_memoizeCapped.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
+var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
 
-            module.exports = {
-                run: run,
-                undo: undo
-            };
+/** Used as the maximum memoize cache size. */
+var MAX_MEMOIZE_SIZE = 500;
 
-            /*
- * Breaks any long edges in the graph into short segments that span 1 layer
- * each. This operation is undoable with the denormalize function.
- *
- * Pre-conditions:
- *
- *    1. The input graph is a DAG.
- *    2. Each node in the graph has a "rank" property.
- *
- * Post-condition:
+/**
+ * A specialized version of `_.memoize` which clears the memoized function's
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  *
- *    1. All edges in the graph have a length of 1.
- *    2. Dummy nodes are added where edges have been split into segments.
- *    3. The graph is augmented with a "dummyChains" attribute which contains
- *       the first dummy in each chain of dummy nodes produced.
+ * @private
+ * @param {Function} func The function to have its output memoized.
+ * @returns {Function} Returns the new memoized function.
  */
-            function run(g) {
-                g.graph().dummyChains = [];
-                _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
-            }
-
-            function normalizeEdge(g, e) {
-                var v = e.v;
-                var vRank = g.node(v).rank;
-                var w = e.w;
-                var wRank = g.node(w).rank;
-                var name = e.name;
-                var edgeLabel = g.edge(e);
-                var labelRank = edgeLabel.labelRank;
-
-                if (wRank === vRank + 1) return;
-
-                g.removeEdge(e);
-
-                var dummy, attrs, i;
-                for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
-                    edgeLabel.points = [];
-                    attrs = {
-                        width: 0, height: 0,
-                        edgeLabel: edgeLabel, edgeObj: e,
-                        rank: vRank
-                    };
-                    dummy = util.addDummyNode(g, "edge", attrs, "_d");
-                    if (vRank === labelRank) {
-                        attrs.width = edgeLabel.width;
-                        attrs.height = edgeLabel.height;
-                        attrs.dummy = "edge-label";
-                        attrs.labelpos = edgeLabel.labelpos;
-                    }
-                    g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
-                    if (i === 0) {
-                        g.graph().dummyChains.push(dummy);
-                    }
-                    v = dummy;
-                }
-
-                g.setEdge(v, w, { weight: edgeLabel.weight }, name);
-            }
+function memoizeCapped(func) {
+  var result = memoize(func, function(key) {
+    if (cache.size === MAX_MEMOIZE_SIZE) {
+      cache.clear();
+    }
+    return key;
+  });
 
-            function undo(g) {
-                _.forEach(g.graph().dummyChains, function(v) {
-                    var node = g.node(v);
-                    var origLabel = node.edgeLabel;
-                    var w;
-                    g.setEdge(node.edgeObj, origLabel);
-                    while (node.dummy) {
-                        w = g.successors(v)[0];
-                        g.removeNode(v);
-                        origLabel.points.push({ x: node.x, y: node.y });
-                        if (node.dummy === "edge-label") {
-                            origLabel.x = node.x;
-                            origLabel.y = node.y;
-                            origLabel.width = node.width;
-                            origLabel.height = node.height;
-                        }
-                        v = w;
-                        node = g.node(v);
-                    }
-                });
-            }
+  var cache = result.cache;
+  return result;
+}
 
+module.exports = memoizeCapped;
 
-            /***/ }),
 
-        /***/ "./node_modules/dagre/lib/order/add-subgraph-constraints.js":
-        /*!******************************************************************!*\
-  !*** ./node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
-  \******************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-
-            module.exports = addSubgraphConstraints;
-
-            function addSubgraphConstraints(g, cg, vs) {
-                var prev = {},
-                    rootPrev;
-
-                _.forEach(vs, function(v) {
-                    var child = g.parent(v),
-                        parent,
-                        prevChild;
-                    while (child) {
-                        parent = g.parent(child);
-                        if (parent) {
-                            prevChild = prev[parent];
-                            prev[parent] = child;
-                        } else {
-                            prevChild = rootPrev;
-                            rootPrev = child;
-                        }
-                        if (prevChild && prevChild !== child) {
-                            cg.setEdge(prevChild, child);
-                            return;
-                        }
-                        child = parent;
-                    }
-                });
+/***/ }),
 
-                /*
-  function dfs(v) {
-    var children = v ? g.children(v) : g.children();
-    if (children.length) {
-      var min = Number.POSITIVE_INFINITY,
-          subgraphs = [];
-      _.each(children, function(child) {
-        var childMin = dfs(child);
-        if (g.children(child).length) {
-          subgraphs.push({ v: child, order: childMin });
-        }
-        min = Math.min(min, childMin);
-      });
-      _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
-        cg.setEdge(prev.v, curr.v);
-        return curr;
-      });
-      return min;
-    }
-    return g.node(v).order;
-  }
-  dfs(undefined);
-  */
-            }
+/***/ "./node_modules/lodash/_nativeCreate.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_nativeCreate.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
 
-            /***/ }),
+/* Built-in method references that are verified to be native. */
+var nativeCreate = getNative(Object, 'create');
 
-        /***/ "./node_modules/dagre/lib/order/barycenter.js":
-        /*!****************************************************!*\
-  !*** ./node_modules/dagre/lib/order/barycenter.js ***!
-  \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = nativeCreate;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
 
-            module.exports = barycenter;
+/***/ }),
 
-            function barycenter(g, movable) {
-                return _.map(movable, function(v) {
-                    var inV = g.inEdges(v);
-                    if (!inV.length) {
-                        return { v: v };
-                    } else {
-                        var result = _.reduce(inV, function(acc, e) {
-                            var edge = g.edge(e),
-                                nodeU = g.node(e.v);
-                            return {
-                                sum: acc.sum + (edge.weight * nodeU.order),
-                                weight: acc.weight + edge.weight
-                            };
-                        }, { sum: 0, weight: 0 });
-
-                        return {
-                            v: v,
-                            barycenter: result.sum / result.weight,
-                            weight: result.weight
-                        };
-                    }
-                });
-            }
+/***/ "./node_modules/lodash/_nativeKeys.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_nativeKeys.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
 
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeKeys = overArg(Object.keys, Object);
 
-            /***/ }),
+module.exports = nativeKeys;
 
-        /***/ "./node_modules/dagre/lib/order/build-layer-graph.js":
-        /*!***********************************************************!*\
-  !*** ./node_modules/dagre/lib/order/build-layer-graph.js ***!
-  \***********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
+/***/ }),
 
-            module.exports = buildLayerGraph;
+/***/ "./node_modules/lodash/_nativeKeysIn.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_nativeKeysIn.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /*
- * Constructs a graph that can be used to sort a layer of nodes. The graph will
- * contain all base and subgraph nodes from the request layer in their original
- * hierarchy and any edges that are incident on these nodes and are of the type
- * requested by the "relationship" parameter.
- *
- * Nodes from the requested rank that do not have parents are assigned a root
- * node in the output graph, which is set in the root graph attribute. This
- * makes it easy to walk the hierarchy of movable nodes during ordering.
- *
- * Pre-conditions:
- *
- *    1. Input graph is a DAG
- *    2. Base nodes in the input graph have a rank attribute
- *    3. Subgraph nodes in the input graph has minRank and maxRank attributes
- *    4. Edges have an assigned weight
- *
- * Post-conditions:
+/**
+ * This function is like
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
+ * except that it includes inherited enumerable properties.
  *
- *    1. Output graph has all nodes in the movable rank with preserved
- *       hierarchy.
- *    2. Root nodes in the movable layer are made children of the node
- *       indicated by the root attribute of the graph.
- *    3. Non-movable nodes incident on movable nodes, selected by the
- *       relationship parameter, are included in the graph (without hierarchy).
- *    4. Edges incident on movable nodes, selected by the relationship
- *       parameter, are added to the output graph.
- *    5. The weights for copied edges are aggregated as need, since the output
- *       graph is not a multi-graph.
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
  */
-            function buildLayerGraph(g, rank, relationship) {
-                var root = createRootNode(g),
-                    result = new Graph({ compound: true }).setGraph({ root: root })
-                        .setDefaultNodeLabel(function(v) { return g.node(v); });
-
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v),
-                        parent = g.parent(v);
-
-                    if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
-                        result.setNode(v);
-                        result.setParent(v, parent || root);
-
-                        // This assumes we have only short edges!
-                        _.forEach(g[relationship](v), function(e) {
-                            var u = e.v === v ? e.w : e.v,
-                                edge = result.edge(u, v),
-                                weight = !_.isUndefined(edge) ? edge.weight : 0;
-                            result.setEdge(u, v, { weight: g.edge(e).weight + weight });
-                        });
+function nativeKeysIn(object) {
+  var result = [];
+  if (object != null) {
+    for (var key in Object(object)) {
+      result.push(key);
+    }
+  }
+  return result;
+}
 
-                        if (_.has(node, "minRank")) {
-                            result.setNode(v, {
-                                borderLeft: node.borderLeft[rank],
-                                borderRight: node.borderRight[rank]
-                            });
-                        }
-                    }
-                });
+module.exports = nativeKeysIn;
 
-                return result;
-            }
 
-            function createRootNode(g) {
-                var v;
-                while (g.hasNode((v = _.uniqueId("_root"))));
-                return v;
-            }
+/***/ }),
 
+/***/ "./node_modules/lodash/_nodeUtil.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_nodeUtil.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /***/ }),
+/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
 
-        /***/ "./node_modules/dagre/lib/order/cross-count.js":
-        /*!*****************************************************!*\
-  !*** ./node_modules/dagre/lib/order/cross-count.js ***!
-  \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/** Detect free variable `exports`. */
+var freeExports =  true && exports && !exports.nodeType && exports;
 
-            "use strict";
+/** Detect free variable `module`. */
+var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
 
+/** Detect the popular CommonJS extension `module.exports`. */
+var moduleExports = freeModule && freeModule.exports === freeExports;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+/** Detect free variable `process` from Node.js. */
+var freeProcess = moduleExports && freeGlobal.process;
 
-            module.exports = crossCount;
+/** Used to access faster Node.js helpers. */
+var nodeUtil = (function() {
+  try {
+    // Use `util.types` for Node.js 10+.
+    var types = freeModule && freeModule.require && freeModule.require('util').types;
 
-            /*
- * A function that takes a layering (an array of layers, each with an array of
- * ordererd nodes) and a graph and returns a weighted crossing count.
- *
- * Pre-conditions:
- *
- *    1. Input graph must be simple (not a multigraph), directed, and include
- *       only simple edges.
- *    2. Edges in the input graph must have assigned weights.
- *
- * Post-conditions:
- *
- *    1. The graph and layering matrix are left unchanged.
- *
- * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
- */
-            function crossCount(g, layering) {
-                var cc = 0;
-                for (var i = 1; i < layering.length; ++i) {
-                    cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
-                }
-                return cc;
-            }
+    if (types) {
+      return types;
+    }
 
-            function twoLayerCrossCount(g, northLayer, southLayer) {
-                // Sort all of the edges between the north and south layers by their position
-                // in the north layer and then the south. Map these edges to the position of
-                // their head in the south layer.
-                var southPos = _.zipObject(southLayer,
-                    _.map(southLayer, function (v, i) { return i; }));
-                var southEntries = _.flatten(_.map(northLayer, function(v) {
-                    return _.sortBy(_.map(g.outEdges(v), function(e) {
-                        return { pos: southPos[e.w], weight: g.edge(e).weight };
-                    }), "pos");
-                }), true);
-
-                // Build the accumulator tree
-                var firstIndex = 1;
-                while (firstIndex < southLayer.length) firstIndex <<= 1;
-                var treeSize = 2 * firstIndex - 1;
-                firstIndex -= 1;
-                var tree = _.map(new Array(treeSize), function() { return 0; });
-
-                // Calculate the weighted crossings
-                var cc = 0;
-                _.forEach(southEntries.forEach(function(entry) {
-                    var index = entry.pos + firstIndex;
-                    tree[index] += entry.weight;
-                    var weightSum = 0;
-                    while (index > 0) {
-                        if (index % 2) {
-                            weightSum += tree[index + 1];
-                        }
-                        index = (index - 1) >> 1;
-                        tree[index] += entry.weight;
-                    }
-                    cc += entry.weight * weightSum;
-                }));
+    // Legacy `process.binding('util')` for Node.js < 10.
+    return freeProcess && freeProcess.binding && freeProcess.binding('util');
+  } catch (e) {}
+}());
 
-                return cc;
-            }
+module.exports = nodeUtil;
 
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/order/index.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/dagre/lib/order/index.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/_objectToString.js":
+/*!************************************************!*\
+  !*** ./node_modules/lodash/_objectToString.js ***!
+  \************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            "use strict";
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
+/**
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+var nativeObjectToString = objectProto.toString;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var initOrder = __webpack_require__(/*! ./init-order */ "./node_modules/dagre/lib/order/init-order.js");
-            var crossCount = __webpack_require__(/*! ./cross-count */ "./node_modules/dagre/lib/order/cross-count.js");
-            var sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "./node_modules/dagre/lib/order/sort-subgraph.js");
-            var buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "./node_modules/dagre/lib/order/build-layer-graph.js");
-            var addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "./node_modules/dagre/lib/order/add-subgraph-constraints.js");
-            var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-            var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
+/**
+ * Converts `value` to a string using `Object.prototype.toString`.
+ *
+ * @private
+ * @param {*} value The value to convert.
+ * @returns {string} Returns the converted string.
+ */
+function objectToString(value) {
+  return nativeObjectToString.call(value);
+}
 
-            module.exports = order;
+module.exports = objectToString;
 
-            /*
- * Applies heuristics to minimize edge crossings in the graph and sets the best
- * order solution as an order attribute on each node.
- *
- * Pre-conditions:
- *
- *    1. Graph must be DAG
- *    2. Graph nodes must be objects with a "rank" attribute
- *    3. Graph edges must have the "weight" attribute
- *
- * Post-conditions:
+
+/***/ }),
+
+/***/ "./node_modules/lodash/_overArg.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_overArg.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/**
+ * Creates a unary function that invokes `func` with its argument transformed.
  *
- *    1. Graph nodes will have an "order" attribute based on the results of the
- *       algorithm.
+ * @private
+ * @param {Function} func The function to wrap.
+ * @param {Function} transform The argument transform.
+ * @returns {Function} Returns the new function.
  */
-            function order(g) {
-                var maxRank = util.maxRank(g),
-                    downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
-                    upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
+function overArg(func, transform) {
+  return function(arg) {
+    return func(transform(arg));
+  };
+}
 
-                var layering = initOrder(g);
-                assignOrder(g, layering);
+module.exports = overArg;
 
-                var bestCC = Number.POSITIVE_INFINITY,
-                    best;
 
-                for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
-                    sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
+/***/ }),
 
-                    layering = util.buildLayerMatrix(g);
-                    var cc = crossCount(g, layering);
-                    if (cc < bestCC) {
-                        lastBest = 0;
-                        best = _.cloneDeep(layering);
-                        bestCC = cc;
-                    }
-                }
+/***/ "./node_modules/lodash/_overRest.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_overRest.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                assignOrder(g, best);
-            }
+var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
 
-            function buildLayerGraphs(g, ranks, relationship) {
-                return _.map(ranks, function(rank) {
-                    return buildLayerGraph(g, rank, relationship);
-                });
-            }
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeMax = Math.max;
 
-            function sweepLayerGraphs(layerGraphs, biasRight) {
-                var cg = new Graph();
-                _.forEach(layerGraphs, function(lg) {
-                    var root = lg.graph().root;
-                    var sorted = sortSubgraph(lg, root, cg, biasRight);
-                    _.forEach(sorted.vs, function(v, i) {
-                        lg.node(v).order = i;
-                    });
-                    addSubgraphConstraints(lg, cg, sorted.vs);
-                });
-            }
+/**
+ * A specialized version of `baseRest` which transforms the rest array.
+ *
+ * @private
+ * @param {Function} func The function to apply a rest parameter to.
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
+ * @param {Function} transform The rest array transform.
+ * @returns {Function} Returns the new function.
+ */
+function overRest(func, start, transform) {
+  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
+  return function() {
+    var args = arguments,
+        index = -1,
+        length = nativeMax(args.length - start, 0),
+        array = Array(length);
+
+    while (++index < length) {
+      array[index] = args[start + index];
+    }
+    index = -1;
+    var otherArgs = Array(start + 1);
+    while (++index < start) {
+      otherArgs[index] = args[index];
+    }
+    otherArgs[start] = transform(array);
+    return apply(func, this, otherArgs);
+  };
+}
 
-            function assignOrder(g, layering) {
-                _.forEach(layering, function(layer) {
-                    _.forEach(layer, function(v, i) {
-                        g.node(v).order = i;
-                    });
-                });
-            }
+module.exports = overRest;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/order/init-order.js":
-        /*!****************************************************!*\
-  !*** ./node_modules/dagre/lib/order/init-order.js ***!
-  \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/_root.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/_root.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
 
+/** Detect free variable `self`. */
+var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+/** Used as a reference to the global object. */
+var root = freeGlobal || freeSelf || Function('return this')();
 
-            module.exports = initOrder;
+module.exports = root;
 
-            /*
- * Assigns an initial order value for each node by performing a DFS search
- * starting from nodes in the first rank. Nodes are assigned an order in their
- * rank as they are first visited.
- *
- * This approach comes from Gansner, et al., "A Technique for Drawing Directed
- * Graphs."
- *
- * Returns a layering matrix with an array per layer and each layer sorted by
- * the order of its nodes.
- */
-            function initOrder(g) {
-                var visited = {};
-                var simpleNodes = _.filter(g.nodes(), function(v) {
-                    return !g.children(v).length;
-                });
-                var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));
-                var layers = _.map(_.range(maxRank + 1), function() { return []; });
-
-                function dfs(v) {
-                    if (_.has(visited, v)) return;
-                    visited[v] = true;
-                    var node = g.node(v);
-                    layers[node.rank].push(v);
-                    _.forEach(g.successors(v), dfs);
-                }
 
-                var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
-                _.forEach(orderedVs, dfs);
+/***/ }),
 
-                return layers;
-            }
+/***/ "./node_modules/lodash/_safeGet.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/_safeGet.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/**
+ * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the property to get.
+ * @returns {*} Returns the property value.
+ */
+function safeGet(object, key) {
+  if (key === 'constructor' && typeof object[key] === 'function') {
+    return;
+  }
 
-            /***/ }),
+  if (key == '__proto__') {
+    return;
+  }
 
-        /***/ "./node_modules/dagre/lib/order/resolve-conflicts.js":
-        /*!***********************************************************!*\
-  !*** ./node_modules/dagre/lib/order/resolve-conflicts.js ***!
-  \***********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+  return object[key];
+}
 
-            "use strict";
+module.exports = safeGet;
 
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+/***/ }),
 
-            module.exports = resolveConflicts;
+/***/ "./node_modules/lodash/_setCacheAdd.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_setCacheAdd.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /*
- * Given a list of entries of the form {v, barycenter, weight} and a
- * constraint graph this function will resolve any conflicts between the
- * constraint graph and the barycenters for the entries. If the barycenters for
- * an entry would violate a constraint in the constraint graph then we coalesce
- * the nodes in the conflict into a new node that respects the contraint and
- * aggregates barycenter and weight information.
- *
- * This implementation is based on the description in Forster, "A Fast and
- * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
- * differs in some specific details.
- *
- * Pre-conditions:
- *
- *    1. Each entry has the form {v, barycenter, weight}, or if the node has
- *       no barycenter, then {v}.
- *
- * Returns:
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+/**
+ * Adds `value` to the array cache.
  *
- *    A new list of entries of the form {vs, i, barycenter, weight}. The list
- *    `vs` may either be a singleton or it may be an aggregation of nodes
- *    ordered such that they do not violate constraints from the constraint
- *    graph. The property `i` is the lowest original index of any of the
- *    elements in `vs`.
+ * @private
+ * @name add
+ * @memberOf SetCache
+ * @alias push
+ * @param {*} value The value to cache.
+ * @returns {Object} Returns the cache instance.
  */
-            function resolveConflicts(entries, cg) {
-                var mappedEntries = {};
-                _.forEach(entries, function(entry, i) {
-                    var tmp = mappedEntries[entry.v] = {
-                        indegree: 0,
-                        "in": [],
-                        out: [],
-                        vs: [entry.v],
-                        i: i
-                    };
-                    if (!_.isUndefined(entry.barycenter)) {
-                        tmp.barycenter = entry.barycenter;
-                        tmp.weight = entry.weight;
-                    }
-                });
-
-                _.forEach(cg.edges(), function(e) {
-                    var entryV = mappedEntries[e.v];
-                    var entryW = mappedEntries[e.w];
-                    if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
-                        entryW.indegree++;
-                        entryV.out.push(mappedEntries[e.w]);
-                    }
-                });
+function setCacheAdd(value) {
+  this.__data__.set(value, HASH_UNDEFINED);
+  return this;
+}
 
-                var sourceSet = _.filter(mappedEntries, function(entry) {
-                    return !entry.indegree;
-                });
+module.exports = setCacheAdd;
 
-                return doResolveConflicts(sourceSet);
-            }
 
-            function doResolveConflicts(sourceSet) {
-                var entries = [];
+/***/ }),
 
-                function handleIn(vEntry) {
-                    return function(uEntry) {
-                        if (uEntry.merged) {
-                            return;
-                        }
-                        if (_.isUndefined(uEntry.barycenter) ||
-                            _.isUndefined(vEntry.barycenter) ||
-                            uEntry.barycenter >= vEntry.barycenter) {
-                            mergeEntries(vEntry, uEntry);
-                        }
-                    };
-                }
+/***/ "./node_modules/lodash/_setCacheHas.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_setCacheHas.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                function handleOut(vEntry) {
-                    return function(wEntry) {
-                        wEntry["in"].push(vEntry);
-                        if (--wEntry.indegree === 0) {
-                            sourceSet.push(wEntry);
-                        }
-                    };
-                }
+/**
+ * Checks if `value` is in the array cache.
+ *
+ * @private
+ * @name has
+ * @memberOf SetCache
+ * @param {*} value The value to search for.
+ * @returns {number} Returns `true` if `value` is found, else `false`.
+ */
+function setCacheHas(value) {
+  return this.__data__.has(value);
+}
 
-                while (sourceSet.length) {
-                    var entry = sourceSet.pop();
-                    entries.push(entry);
-                    _.forEach(entry["in"].reverse(), handleIn(entry));
-                    _.forEach(entry.out, handleOut(entry));
-                }
+module.exports = setCacheHas;
 
-                return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
-                    function(entry) {
-                        return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
-                    });
 
-            }
+/***/ }),
 
-            function mergeEntries(target, source) {
-                var sum = 0;
-                var weight = 0;
+/***/ "./node_modules/lodash/_setToArray.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_setToArray.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                if (target.weight) {
-                    sum += target.barycenter * target.weight;
-                    weight += target.weight;
-                }
+/**
+ * Converts `set` to an array of its values.
+ *
+ * @private
+ * @param {Object} set The set to convert.
+ * @returns {Array} Returns the values.
+ */
+function setToArray(set) {
+  var index = -1,
+      result = Array(set.size);
 
-                if (source.weight) {
-                    sum += source.barycenter * source.weight;
-                    weight += source.weight;
-                }
+  set.forEach(function(value) {
+    result[++index] = value;
+  });
+  return result;
+}
 
-                target.vs = source.vs.concat(target.vs);
-                target.barycenter = sum / weight;
-                target.weight = weight;
-                target.i = Math.min(source.i, target.i);
-                source.merged = true;
-            }
+module.exports = setToArray;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/order/sort-subgraph.js":
-        /*!*******************************************************!*\
-  !*** ./node_modules/dagre/lib/order/sort-subgraph.js ***!
-  \*******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var barycenter = __webpack_require__(/*! ./barycenter */ "./node_modules/dagre/lib/order/barycenter.js");
-            var resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "./node_modules/dagre/lib/order/resolve-conflicts.js");
-            var sort = __webpack_require__(/*! ./sort */ "./node_modules/dagre/lib/order/sort.js");
-
-            module.exports = sortSubgraph;
-
-            function sortSubgraph(g, v, cg, biasRight) {
-                var movable = g.children(v);
-                var node = g.node(v);
-                var bl = node ? node.borderLeft : undefined;
-                var br = node ? node.borderRight: undefined;
-                var subgraphs = {};
-
-                if (bl) {
-                    movable = _.filter(movable, function(w) {
-                        return w !== bl && w !== br;
-                    });
-                }
+/***/ "./node_modules/lodash/_setToString.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_setToString.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var barycenters = barycenter(g, movable);
-                _.forEach(barycenters, function(entry) {
-                    if (g.children(entry.v).length) {
-                        var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
-                        subgraphs[entry.v] = subgraphResult;
-                        if (_.has(subgraphResult, "barycenter")) {
-                            mergeBarycenters(entry, subgraphResult);
-                        }
-                    }
-                });
+var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
+    shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
 
-                var entries = resolveConflicts(barycenters, cg);
-                expandSubgraphs(entries, subgraphs);
+/**
+ * Sets the `toString` method of `func` to return `string`.
+ *
+ * @private
+ * @param {Function} func The function to modify.
+ * @param {Function} string The `toString` result.
+ * @returns {Function} Returns `func`.
+ */
+var setToString = shortOut(baseSetToString);
 
-                var result = sort(entries, biasRight);
+module.exports = setToString;
 
-                if (bl) {
-                    result.vs = _.flatten([bl, result.vs, br], true);
-                    if (g.predecessors(bl).length) {
-                        var blPred = g.node(g.predecessors(bl)[0]),
-                            brPred = g.node(g.predecessors(br)[0]);
-                        if (!_.has(result, "barycenter")) {
-                            result.barycenter = 0;
-                            result.weight = 0;
-                        }
-                        result.barycenter = (result.barycenter * result.weight +
-                            blPred.order + brPred.order) / (result.weight + 2);
-                        result.weight += 2;
-                    }
-                }
 
-                return result;
-            }
+/***/ }),
 
-            function expandSubgraphs(entries, subgraphs) {
-                _.forEach(entries, function(entry) {
-                    entry.vs = _.flatten(entry.vs.map(function(v) {
-                        if (subgraphs[v]) {
-                            return subgraphs[v].vs;
-                        }
-                        return v;
-                    }), true);
-                });
-            }
+/***/ "./node_modules/lodash/_shortOut.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_shortOut.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            function mergeBarycenters(target, other) {
-                if (!_.isUndefined(target.barycenter)) {
-                    target.barycenter = (target.barycenter * target.weight +
-                            other.barycenter * other.weight) /
-                        (target.weight + other.weight);
-                    target.weight += other.weight;
-                } else {
-                    target.barycenter = other.barycenter;
-                    target.weight = other.weight;
-                }
-            }
+/** Used to detect hot functions by number of calls within a span of milliseconds. */
+var HOT_COUNT = 800,
+    HOT_SPAN = 16;
 
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeNow = Date.now;
 
-            /***/ }),
+/**
+ * Creates a function that'll short out and invoke `identity` instead
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
+ * milliseconds.
+ *
+ * @private
+ * @param {Function} func The function to restrict.
+ * @returns {Function} Returns the new shortable function.
+ */
+function shortOut(func) {
+  var count = 0,
+      lastCalled = 0;
+
+  return function() {
+    var stamp = nativeNow(),
+        remaining = HOT_SPAN - (stamp - lastCalled);
+
+    lastCalled = stamp;
+    if (remaining > 0) {
+      if (++count >= HOT_COUNT) {
+        return arguments[0];
+      }
+    } else {
+      count = 0;
+    }
+    return func.apply(undefined, arguments);
+  };
+}
 
-        /***/ "./node_modules/dagre/lib/order/sort.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/dagre/lib/order/sort.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = shortOut;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
 
-            module.exports = sort;
+/***/ }),
 
-            function sort(entries, biasRight) {
-                var parts = util.partition(entries, function(entry) {
-                    return _.has(entry, "barycenter");
-                });
-                var sortable = parts.lhs,
-                    unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
-                    vs = [],
-                    sum = 0,
-                    weight = 0,
-                    vsIndex = 0;
-
-                sortable.sort(compareWithBias(!!biasRight));
-
-                vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
-
-                _.forEach(sortable, function (entry) {
-                    vsIndex += entry.vs.length;
-                    vs.push(entry.vs);
-                    sum += entry.barycenter * entry.weight;
-                    weight += entry.weight;
-                    vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
-                });
+/***/ "./node_modules/lodash/_stackClear.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_stackClear.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                var result = { vs: _.flatten(vs, true) };
-                if (weight) {
-                    result.barycenter = sum / weight;
-                    result.weight = weight;
-                }
-                return result;
-            }
+var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
 
-            function consumeUnsortable(vs, unsortable, index) {
-                var last;
-                while (unsortable.length && (last = _.last(unsortable)).i <= index) {
-                    unsortable.pop();
-                    vs.push(last.vs);
-                    index++;
-                }
-                return index;
-            }
+/**
+ * Removes all key-value entries from the stack.
+ *
+ * @private
+ * @name clear
+ * @memberOf Stack
+ */
+function stackClear() {
+  this.__data__ = new ListCache;
+  this.size = 0;
+}
 
-            function compareWithBias(bias) {
-                return function(entryV, entryW) {
-                    if (entryV.barycenter < entryW.barycenter) {
-                        return -1;
-                    } else if (entryV.barycenter > entryW.barycenter) {
-                        return 1;
-                    }
+module.exports = stackClear;
 
-                    return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
-                };
-            }
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/_stackDelete.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_stackDelete.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-        /***/ "./node_modules/dagre/lib/parent-dummy-chains.js":
-        /*!*******************************************************!*\
-  !*** ./node_modules/dagre/lib/parent-dummy-chains.js ***!
-  \*******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Removes `key` and its value from the stack.
+ *
+ * @private
+ * @name delete
+ * @memberOf Stack
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+function stackDelete(key) {
+  var data = this.__data__,
+      result = data['delete'](key);
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
+  this.size = data.size;
+  return result;
+}
 
-            module.exports = parentDummyChains;
+module.exports = stackDelete;
 
-            function parentDummyChains(g) {
-                var postorderNums = postorder(g);
 
-                _.forEach(g.graph().dummyChains, function(v) {
-                    var node = g.node(v);
-                    var edgeObj = node.edgeObj;
-                    var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
-                    var path = pathData.path;
-                    var lca = pathData.lca;
-                    var pathIdx = 0;
-                    var pathV = path[pathIdx];
-                    var ascending = true;
+/***/ }),
 
-                    while (v !== edgeObj.w) {
-                        node = g.node(v);
+/***/ "./node_modules/lodash/_stackGet.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_stackGet.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                        if (ascending) {
-                            while ((pathV = path[pathIdx]) !== lca &&
-                            g.node(pathV).maxRank < node.rank) {
-                                pathIdx++;
-                            }
+/**
+ * Gets the stack value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Stack
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function stackGet(key) {
+  return this.__data__.get(key);
+}
 
-                            if (pathV === lca) {
-                                ascending = false;
-                            }
-                        }
+module.exports = stackGet;
 
-                        if (!ascending) {
-                            while (pathIdx < path.length - 1 &&
-                            g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
-                                pathIdx++;
-                            }
-                            pathV = path[pathIdx];
-                        }
 
-                        g.setParent(v, pathV);
-                        v = g.successors(v)[0];
-                    }
-                });
-            }
+/***/ }),
 
-// Find a path from v to w through the lowest common ancestor (LCA). Return the
-// full path and the LCA.
-            function findPath(g, postorderNums, v, w) {
-                var vPath = [];
-                var wPath = [];
-                var low = Math.min(postorderNums[v].low, postorderNums[w].low);
-                var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
-                var parent;
-                var lca;
-
-                // Traverse up from v to find the LCA
-                parent = v;
-                do {
-                    parent = g.parent(parent);
-                    vPath.push(parent);
-                } while (parent &&
-                (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
-                lca = parent;
-
-                // Traverse from w to LCA
-                parent = w;
-                while ((parent = g.parent(parent)) !== lca) {
-                    wPath.push(parent);
-                }
+/***/ "./node_modules/lodash/_stackHas.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_stackHas.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                return { path: vPath.concat(wPath.reverse()), lca: lca };
-            }
+/**
+ * Checks if a stack value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf Stack
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function stackHas(key) {
+  return this.__data__.has(key);
+}
 
-            function postorder(g) {
-                var result = {};
-                var lim = 0;
+module.exports = stackHas;
 
-                function dfs(v) {
-                    var low = lim;
-                    _.forEach(g.children(v), dfs);
-                    result[v] = { low: low, lim: lim++ };
-                }
-                _.forEach(g.children(), dfs);
 
-                return result;
-            }
+/***/ }),
 
+/***/ "./node_modules/lodash/_stackSet.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_stackSet.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /***/ }),
+var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
+    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
+    MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
 
-        /***/ "./node_modules/dagre/lib/position/bk.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/dagre/lib/position/bk.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/** Used as the size to enable large array optimizations. */
+var LARGE_ARRAY_SIZE = 200;
 
-            "use strict";
+/**
+ * Sets the stack `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf Stack
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the stack cache instance.
+ */
+function stackSet(key, value) {
+  var data = this.__data__;
+  if (data instanceof ListCache) {
+    var pairs = data.__data__;
+    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
+      pairs.push([key, value]);
+      this.size = ++data.size;
+      return this;
+    }
+    data = this.__data__ = new MapCache(pairs);
+  }
+  data.set(key, value);
+  this.size = data.size;
+  return this;
+}
 
+module.exports = stackSet;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-            var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
 
-            /*
- * This module provides coordinate assignment based on Brandes and Köpf, "Fast
- * and Simple Horizontal Coordinate Assignment."
- */
+/***/ }),
 
-            module.exports = {
-                positionX: positionX,
-                findType1Conflicts: findType1Conflicts,
-                findType2Conflicts: findType2Conflicts,
-                addConflict: addConflict,
-                hasConflict: hasConflict,
-                verticalAlignment: verticalAlignment,
-                horizontalCompaction: horizontalCompaction,
-                alignCoordinates: alignCoordinates,
-                findSmallestWidthAlignment: findSmallestWidthAlignment,
-                balance: balance
-            };
+/***/ "./node_modules/lodash/_strictIndexOf.js":
+/*!***********************************************!*\
+  !*** ./node_modules/lodash/_strictIndexOf.js ***!
+  \***********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /*
- * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
- * property. A type-1 conflict is one where a non-inner segment crosses an
- * inner segment. An inner segment is an edge with both incident nodes marked
- * with the "dummy" property.
- *
- * This algorithm scans layer by layer, starting with the second, for type-1
- * conflicts between the current layer and the previous layer. For each layer
- * it scans the nodes from left to right until it reaches one that is incident
- * on an inner segment. It then scans predecessors to determine if they have
- * edges that cross that inner segment. At the end a final scan is done for all
- * nodes on the current rank to see if they cross the last visited inner
- * segment.
+/**
+ * A specialized version of `_.indexOf` which performs strict equality
+ * comparisons of values, i.e. `===`.
  *
- * This algorithm (safely) assumes that a dummy node will only be incident on a
- * single node in the layers being scanned.
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} value The value to search for.
+ * @param {number} fromIndex The index to search from.
+ * @returns {number} Returns the index of the matched value, else `-1`.
  */
-            function findType1Conflicts(g, layering) {
-                var conflicts = {};
-
-                function visitLayer(prevLayer, layer) {
-                    var
-                        // last visited node in the previous layer that is incident on an inner
-                        // segment.
-                        k0 = 0,
-                        // Tracks the last node in this layer scanned for crossings with a type-1
-                        // segment.
-                        scanPos = 0,
-                        prevLayerLength = prevLayer.length,
-                        lastNode = _.last(layer);
-
-                    _.forEach(layer, function(v, i) {
-                        var w = findOtherInnerSegmentNode(g, v),
-                            k1 = w ? g.node(w).order : prevLayerLength;
-
-                        if (w || v === lastNode) {
-                            _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
-                                _.forEach(g.predecessors(scanNode), function(u) {
-                                    var uLabel = g.node(u),
-                                        uPos = uLabel.order;
-                                    if ((uPos < k0 || k1 < uPos) &&
-                                        !(uLabel.dummy && g.node(scanNode).dummy)) {
-                                        addConflict(conflicts, u, scanNode);
-                                    }
-                                });
-                            });
-                            scanPos = i + 1;
-                            k0 = k1;
-                        }
-                    });
+function strictIndexOf(array, value, fromIndex) {
+  var index = fromIndex - 1,
+      length = array.length;
 
-                    return layer;
-                }
+  while (++index < length) {
+    if (array[index] === value) {
+      return index;
+    }
+  }
+  return -1;
+}
 
-                _.reduce(layering, visitLayer);
-                return conflicts;
-            }
+module.exports = strictIndexOf;
 
-            function findType2Conflicts(g, layering) {
-                var conflicts = {};
-
-                function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
-                    var v;
-                    _.forEach(_.range(southPos, southEnd), function(i) {
-                        v = south[i];
-                        if (g.node(v).dummy) {
-                            _.forEach(g.predecessors(v), function(u) {
-                                var uNode = g.node(u);
-                                if (uNode.dummy &&
-                                    (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
-                                    addConflict(conflicts, u, v);
-                                }
-                            });
-                        }
-                    });
-                }
 
+/***/ }),
 
-                function visitLayer(north, south) {
-                    var prevNorthPos = -1,
-                        nextNorthPos,
-                        southPos = 0;
+/***/ "./node_modules/lodash/_stringSize.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/_stringSize.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    _.forEach(south, function(v, southLookahead) {
-                        if (g.node(v).dummy === "border") {
-                            var predecessors = g.predecessors(v);
-                            if (predecessors.length) {
-                                nextNorthPos = g.node(predecessors[0]).order;
-                                scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
-                                southPos = southLookahead;
-                                prevNorthPos = nextNorthPos;
-                            }
-                        }
-                        scan(south, southPos, south.length, nextNorthPos, north.length);
-                    });
+var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
+    hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
+    unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
 
-                    return south;
-                }
+/**
+ * Gets the number of symbols in `string`.
+ *
+ * @private
+ * @param {string} string The string to inspect.
+ * @returns {number} Returns the string size.
+ */
+function stringSize(string) {
+  return hasUnicode(string)
+    ? unicodeSize(string)
+    : asciiSize(string);
+}
 
-                _.reduce(layering, visitLayer);
-                return conflicts;
-            }
+module.exports = stringSize;
 
-            function findOtherInnerSegmentNode(g, v) {
-                if (g.node(v).dummy) {
-                    return _.find(g.predecessors(v), function(u) {
-                        return g.node(u).dummy;
-                    });
-                }
-            }
 
-            function addConflict(conflicts, v, w) {
-                if (v > w) {
-                    var tmp = v;
-                    v = w;
-                    w = tmp;
-                }
+/***/ }),
 
-                var conflictsV = conflicts[v];
-                if (!conflictsV) {
-                    conflicts[v] = conflictsV = {};
-                }
-                conflictsV[w] = true;
-            }
+/***/ "./node_modules/lodash/_stringToPath.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/_stringToPath.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function hasConflict(conflicts, v, w) {
-                if (v > w) {
-                    var tmp = v;
-                    v = w;
-                    w = tmp;
-                }
-                return _.has(conflicts[v], w);
-            }
+var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
 
-            /*
- * Try to align nodes into vertical "blocks" where possible. This algorithm
- * attempts to align a node with one of its median neighbors. If the edge
- * connecting a neighbor is a type-1 conflict then we ignore that possibility.
- * If a previous node has already formed a block with a node after the node
- * we're trying to form a block with, we also ignore that possibility - our
- * blocks would be split in that scenario.
+/** Used to match property names within property paths. */
+var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+
+/** Used to match backslashes in property paths. */
+var reEscapeChar = /\\(\\)?/g;
+
+/**
+ * Converts `string` to a property path array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the property path array.
  */
-            function verticalAlignment(g, layering, conflicts, neighborFn) {
-                var root = {},
-                    align = {},
-                    pos = {};
-
-                // We cache the position here based on the layering because the graph and
-                // layering may be out of sync. The layering matrix is manipulated to
-                // generate different extreme alignments.
-                _.forEach(layering, function(layer) {
-                    _.forEach(layer, function(v, order) {
-                        root[v] = v;
-                        align[v] = v;
-                        pos[v] = order;
-                    });
-                });
+var stringToPath = memoizeCapped(function(string) {
+  var result = [];
+  if (string.charCodeAt(0) === 46 /* . */) {
+    result.push('');
+  }
+  string.replace(rePropName, function(match, number, quote, subString) {
+    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
+  });
+  return result;
+});
 
-                _.forEach(layering, function(layer) {
-                    var prevIdx = -1;
-                    _.forEach(layer, function(v) {
-                        var ws = neighborFn(v);
-                        if (ws.length) {
-                            ws = _.sortBy(ws, function(w) { return pos[w]; });
-                            var mp = (ws.length - 1) / 2;
-                            for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
-                                var w = ws[i];
-                                if (align[v] === v &&
-                                    prevIdx < pos[w] &&
-                                    !hasConflict(conflicts, v, w)) {
-                                    align[w] = v;
-                                    align[v] = root[v] = root[w];
-                                    prevIdx = pos[w];
-                                }
-                            }
-                        }
-                    });
-                });
+module.exports = stringToPath;
 
-                return { root: root, align: align };
-            }
 
-            function horizontalCompaction(g, layering, root, align, reverseSep) {
-                // This portion of the algorithm differs from BK due to a number of problems.
-                // Instead of their algorithm we construct a new block graph and do two
-                // sweeps. The first sweep places blocks with the smallest possible
-                // coordinates. The second sweep removes unused space by moving blocks to the
-                // greatest coordinates without violating separation.
-                var xs = {},
-                    blockG = buildBlockGraph(g, layering, root, reverseSep),
-                    borderType = reverseSep ? "borderLeft" : "borderRight";
-
-                function iterate(setXsFunc, nextNodesFunc) {
-                    var stack = blockG.nodes();
-                    var elem = stack.pop();
-                    var visited = {};
-                    while (elem) {
-                        if (visited[elem]) {
-                            setXsFunc(elem);
-                        } else {
-                            visited[elem] = true;
-                            stack.push(elem);
-                            stack = stack.concat(nextNodesFunc(elem));
-                        }
+/***/ }),
 
-                        elem = stack.pop();
-                    }
-                }
+/***/ "./node_modules/lodash/_toKey.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/_toKey.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                // First pass, assign smallest coordinates
-                function pass1(elem) {
-                    xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
-                        return Math.max(acc, xs[e.v] + blockG.edge(e));
-                    }, 0);
-                }
+var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
 
-                // Second pass, assign greatest coordinates
-                function pass2(elem) {
-                    var min = blockG.outEdges(elem).reduce(function(acc, e) {
-                        return Math.min(acc, xs[e.w] - blockG.edge(e));
-                    }, Number.POSITIVE_INFINITY);
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0;
 
-                    var node = g.node(elem);
-                    if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
-                        xs[elem] = Math.max(xs[elem], min);
-                    }
-                }
+/**
+ * Converts `value` to a string key if it's not a string or symbol.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {string|symbol} Returns the key.
+ */
+function toKey(value) {
+  if (typeof value == 'string' || isSymbol(value)) {
+    return value;
+  }
+  var result = (value + '');
+  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
 
-                iterate(pass1, blockG.predecessors.bind(blockG));
-                iterate(pass2, blockG.successors.bind(blockG));
+module.exports = toKey;
 
-                // Assign x coordinates to all nodes
-                _.forEach(align, function(v) {
-                    xs[v] = xs[root[v]];
-                });
 
-                return xs;
-            }
+/***/ }),
 
+/***/ "./node_modules/lodash/_toSource.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/_toSource.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            function buildBlockGraph(g, layering, root, reverseSep) {
-                var blockGraph = new Graph(),
-                    graphLabel = g.graph(),
-                    sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
-
-                _.forEach(layering, function(layer) {
-                    var u;
-                    _.forEach(layer, function(v) {
-                        var vRoot = root[v];
-                        blockGraph.setNode(vRoot);
-                        if (u) {
-                            var uRoot = root[u],
-                                prevMax = blockGraph.edge(uRoot, vRoot);
-                            blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
-                        }
-                        u = v;
-                    });
-                });
+/** Used for built-in method references. */
+var funcProto = Function.prototype;
 
-                return blockGraph;
-            }
+/** Used to resolve the decompiled source of functions. */
+var funcToString = funcProto.toString;
 
-            /*
- * Returns the alignment that has the smallest width of the given alignments.
+/**
+ * Converts `func` to its source code.
+ *
+ * @private
+ * @param {Function} func The function to convert.
+ * @returns {string} Returns the source code.
  */
-            function findSmallestWidthAlignment(g, xss) {
-                return _.minBy(_.values(xss), function (xs) {
-                    var max = Number.NEGATIVE_INFINITY;
-                    var min = Number.POSITIVE_INFINITY;
+function toSource(func) {
+  if (func != null) {
+    try {
+      return funcToString.call(func);
+    } catch (e) {}
+    try {
+      return (func + '');
+    } catch (e) {}
+  }
+  return '';
+}
 
-                    _.forIn(xs, function (x, v) {
-                        var halfWidth = width(g, v) / 2;
+module.exports = toSource;
 
-                        max = Math.max(x + halfWidth, max);
-                        min = Math.min(x - halfWidth, min);
-                    });
 
-                    return max - min;
-                });
-            }
+/***/ }),
 
-            /*
- * Align the coordinates of each of the layout alignments such that
- * left-biased alignments have their minimum coordinate at the same point as
- * the minimum coordinate of the smallest width alignment and right-biased
- * alignments have their maximum coordinate at the same point as the maximum
- * coordinate of the smallest width alignment.
+/***/ "./node_modules/lodash/_unicodeSize.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/_unicodeSize.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/** Used to compose unicode character classes. */
+var rsAstralRange = '\\ud800-\\udfff',
+    rsComboMarksRange = '\\u0300-\\u036f',
+    reComboHalfMarksRange = '\\ufe20-\\ufe2f',
+    rsComboSymbolsRange = '\\u20d0-\\u20ff',
+    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
+    rsVarRange = '\\ufe0e\\ufe0f';
+
+/** Used to compose unicode capture groups. */
+var rsAstral = '[' + rsAstralRange + ']',
+    rsCombo = '[' + rsComboRange + ']',
+    rsFitz = '\\ud83c[\\udffb-\\udfff]',
+    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
+    rsNonAstral = '[^' + rsAstralRange + ']',
+    rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
+    rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
+    rsZWJ = '\\u200d';
+
+/** Used to compose unicode regexes. */
+var reOptMod = rsModifier + '?',
+    rsOptVar = '[' + rsVarRange + ']?',
+    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
+    rsSeq = rsOptVar + reOptMod + rsOptJoin,
+    rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
+
+/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
+var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
+
+/**
+ * Gets the size of a Unicode `string`.
+ *
+ * @private
+ * @param {string} string The string inspect.
+ * @returns {number} Returns the string size.
  */
-            function alignCoordinates(xss, alignTo) {
-                var alignToVals = _.values(alignTo),
-                    alignToMin = _.min(alignToVals),
-                    alignToMax = _.max(alignToVals);
+function unicodeSize(string) {
+  var result = reUnicode.lastIndex = 0;
+  while (reUnicode.test(string)) {
+    ++result;
+  }
+  return result;
+}
 
-                _.forEach(["u", "d"], function(vert) {
-                    _.forEach(["l", "r"], function(horiz) {
-                        var alignment = vert + horiz,
-                            xs = xss[alignment],
-                            delta;
-                        if (xs === alignTo) return;
+module.exports = unicodeSize;
 
-                        var xsVals = _.values(xs);
-                        delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
 
-                        if (delta) {
-                            xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
-                        }
-                    });
-                });
-            }
+/***/ }),
 
-            function balance(xss, align) {
-                return _.mapValues(xss.ul, function(ignore, v) {
-                    if (align) {
-                        return xss[align.toLowerCase()][v];
-                    } else {
-                        var xs = _.sortBy(_.map(xss, v));
-                        return (xs[1] + xs[2]) / 2;
-                    }
-                });
-            }
+/***/ "./node_modules/lodash/clone.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/clone.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function positionX(g) {
-                var layering = util.buildLayerMatrix(g);
-                var conflicts = _.merge(
-                    findType1Conflicts(g, layering),
-                    findType2Conflicts(g, layering));
-
-                var xss = {};
-                var adjustedLayering;
-                _.forEach(["u", "d"], function(vert) {
-                    adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
-                    _.forEach(["l", "r"], function(horiz) {
-                        if (horiz === "r") {
-                            adjustedLayering = _.map(adjustedLayering, function(inner) {
-                                return _.values(inner).reverse();
-                            });
-                        }
+var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
 
-                        var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
-                        var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
-                        var xs = horizontalCompaction(g, adjustedLayering,
-                            align.root, align.align, horiz === "r");
-                        if (horiz === "r") {
-                            xs = _.mapValues(xs, function(x) { return -x; });
-                        }
-                        xss[vert + horiz] = xs;
-                    });
-                });
+/** Used to compose bitmasks for cloning. */
+var CLONE_SYMBOLS_FLAG = 4;
 
-                var smallestWidth = findSmallestWidthAlignment(g, xss);
-                alignCoordinates(xss, smallestWidth);
-                return balance(xss, g.graph().align);
-            }
+/**
+ * Creates a shallow clone of `value`.
+ *
+ * **Note:** This method is loosely based on the
+ * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
+ * and supports cloning arrays, array buffers, booleans, date objects, maps,
+ * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
+ * arrays. The own enumerable properties of `arguments` objects are cloned
+ * as plain objects. An empty object is returned for uncloneable values such
+ * as error objects, functions, DOM nodes, and WeakMaps.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to clone.
+ * @returns {*} Returns the cloned value.
+ * @see _.cloneDeep
+ * @example
+ *
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
+ *
+ * var shallow = _.clone(objects);
+ * console.log(shallow[0] === objects[0]);
+ * // => true
+ */
+function clone(value) {
+  return baseClone(value, CLONE_SYMBOLS_FLAG);
+}
 
-            function sep(nodeSep, edgeSep, reverseSep) {
-                return function(g, v, w) {
-                    var vLabel = g.node(v);
-                    var wLabel = g.node(w);
-                    var sum = 0;
-                    var delta;
-
-                    sum += vLabel.width / 2;
-                    if (_.has(vLabel, "labelpos")) {
-                        switch (vLabel.labelpos.toLowerCase()) {
-                            case "l": delta = -vLabel.width / 2; break;
-                            case "r": delta = vLabel.width / 2; break;
-                        }
-                    }
-                    if (delta) {
-                        sum += reverseSep ? delta : -delta;
-                    }
-                    delta = 0;
+module.exports = clone;
 
-                    sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
-                    sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
 
-                    sum += wLabel.width / 2;
-                    if (_.has(wLabel, "labelpos")) {
-                        switch (wLabel.labelpos.toLowerCase()) {
-                            case "l": delta = wLabel.width / 2; break;
-                            case "r": delta = -wLabel.width / 2; break;
-                        }
-                    }
-                    if (delta) {
-                        sum += reverseSep ? delta : -delta;
-                    }
-                    delta = 0;
+/***/ }),
 
-                    return sum;
-                };
-            }
+/***/ "./node_modules/lodash/cloneDeep.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/cloneDeep.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function width(g, v) {
-                return g.node(v).width;
-            }
+var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
 
+/** Used to compose bitmasks for cloning. */
+var CLONE_DEEP_FLAG = 1,
+    CLONE_SYMBOLS_FLAG = 4;
 
-            /***/ }),
+/**
+ * This method is like `_.clone` except that it recursively clones `value`.
+ *
+ * @static
+ * @memberOf _
+ * @since 1.0.0
+ * @category Lang
+ * @param {*} value The value to recursively clone.
+ * @returns {*} Returns the deep cloned value.
+ * @see _.clone
+ * @example
+ *
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
+ *
+ * var deep = _.cloneDeep(objects);
+ * console.log(deep[0] === objects[0]);
+ * // => false
+ */
+function cloneDeep(value) {
+  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
+}
 
-        /***/ "./node_modules/dagre/lib/position/index.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/dagre/lib/position/index.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = cloneDeep;
 
-            "use strict";
 
+/***/ }),
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
-            var positionX = __webpack_require__(/*! ./bk */ "./node_modules/dagre/lib/position/bk.js").positionX;
-
-            module.exports = position;
-
-            function position(g) {
-                g = util.asNonCompoundGraph(g);
-
-                positionY(g);
-                _.forEach(positionX(g), function(x, v) {
-                    g.node(v).x = x;
-                });
-            }
-
-            function positionY(g) {
-                var layering = util.buildLayerMatrix(g);
-                var rankSep = g.graph().ranksep;
-                var prevY = 0;
-                _.forEach(layering, function(layer) {
-                    var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
-                    _.forEach(layer, function(v) {
-                        g.node(v).y = prevY + maxHeight / 2;
-                    });
-                    prevY += maxHeight + rankSep;
-                });
-            }
+/***/ "./node_modules/lodash/constant.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/constant.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/**
+ * Creates a function that returns `value`.
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Util
+ * @param {*} value The value to return from the new function.
+ * @returns {Function} Returns the new constant function.
+ * @example
+ *
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
+ *
+ * console.log(objects);
+ * // => [{ 'a': 1 }, { 'a': 1 }]
+ *
+ * console.log(objects[0] === objects[1]);
+ * // => true
+ */
+function constant(value) {
+  return function() {
+    return value;
+  };
+}
 
+module.exports = constant;
 
-            /***/ }),
 
-        /***/ "./node_modules/dagre/lib/rank/feasible-tree.js":
-        /*!******************************************************!*\
-  !*** ./node_modules/dagre/lib/rank/feasible-tree.js ***!
-  \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ }),
 
-            "use strict";
+/***/ "./node_modules/lodash/defaults.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/defaults.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
+    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
+    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-            var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-            module.exports = feasibleTree;
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-            /*
- * Constructs a spanning tree with tight edges and adjusted the input node's
- * ranks to achieve this. A tight edge is one that is has a length that matches
- * its "minlen" attribute.
- *
- * The basic structure for this function is derived from Gansner, et al., "A
- * Technique for Drawing Directed Graphs."
- *
- * Pre-conditions:
- *
- *    1. Graph must be a DAG.
- *    2. Graph must be connected.
- *    3. Graph must have at least one node.
- *    5. Graph nodes must have been previously assigned a "rank" property that
- *       respects the "minlen" property of incident edges.
- *    6. Graph edges must have a "minlen" property.
+/**
+ * Assigns own and inherited enumerable string keyed properties of source
+ * objects to the destination object for all destination properties that
+ * resolve to `undefined`. Source objects are applied from left to right.
+ * Once a property is set, additional values of the same property are ignored.
  *
- * Post-conditions:
+ * **Note:** This method mutates `object`.
  *
- *    - Graph nodes will have their rank adjusted to ensure that all edges are
- *      tight.
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @returns {Object} Returns `object`.
+ * @see _.defaultsDeep
+ * @example
  *
- * Returns a tree (undirected graph) that is constructed using only "tight"
- * edges.
+ * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+ * // => { 'a': 1, 'b': 2 }
  */
-            function feasibleTree(g) {
-                var t = new Graph({ directed: false });
+var defaults = baseRest(function(object, sources) {
+  object = Object(object);
 
-                // Choose arbitrary node from which to start our tree
-                var start = g.nodes()[0];
-                var size = g.nodeCount();
-                t.setNode(start, {});
+  var index = -1;
+  var length = sources.length;
+  var guard = length > 2 ? sources[2] : undefined;
 
-                var edge, delta;
-                while (tightTree(t, g) < size) {
-                    edge = findMinSlackEdge(t, g);
-                    delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
-                    shiftRanks(t, g, delta);
-                }
+  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+    length = 1;
+  }
 
-                return t;
-            }
+  while (++index < length) {
+    var source = sources[index];
+    var props = keysIn(source);
+    var propsIndex = -1;
+    var propsLength = props.length;
 
-            /*
- * Finds a maximal tree of tight edges and returns the number of nodes in the
- * tree.
- */
-            function tightTree(t, g) {
-                function dfs(v) {
-                    _.forEach(g.nodeEdges(v), function(e) {
-                        var edgeV = e.v,
-                            w = (v === edgeV) ? e.w : edgeV;
-                        if (!t.hasNode(w) && !slack(g, e)) {
-                            t.setNode(w, {});
-                            t.setEdge(v, w, {});
-                            dfs(w);
-                        }
-                    });
-                }
+    while (++propsIndex < propsLength) {
+      var key = props[propsIndex];
+      var value = object[key];
 
-                _.forEach(t.nodes(), dfs);
-                return t.nodeCount();
-            }
+      if (value === undefined ||
+          (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
+        object[key] = source[key];
+      }
+    }
+  }
 
-            /*
- * Finds the edge with the smallest slack that is incident on tree and returns
- * it.
- */
-            function findMinSlackEdge(t, g) {
-                return _.minBy(g.edges(), function(e) {
-                    if (t.hasNode(e.v) !== t.hasNode(e.w)) {
-                        return slack(g, e);
-                    }
-                });
-            }
+  return object;
+});
 
-            function shiftRanks(t, g, delta) {
-                _.forEach(t.nodes(), function(v) {
-                    g.node(v).rank += delta;
-                });
-            }
+module.exports = defaults;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/dagre/lib/rank/index.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/dagre/lib/rank/index.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/each.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/each.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            "use strict";
+module.exports = __webpack_require__(/*! ./forEach */ "./node_modules/lodash/forEach.js");
 
 
-            var rankUtil = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js");
-            var longestPath = rankUtil.longestPath;
-            var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
-            var networkSimplex = __webpack_require__(/*! ./network-simplex */ "./node_modules/dagre/lib/rank/network-simplex.js");
+/***/ }),
 
-            module.exports = rank;
+/***/ "./node_modules/lodash/eq.js":
+/*!***********************************!*\
+  !*** ./node_modules/lodash/eq.js ***!
+  \***********************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /*
- * Assigns a rank to each node in the input graph that respects the "minlen"
- * constraint specified on edges between nodes.
+/**
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * comparison between two values to determine if they are equivalent.
  *
- * This basic structure is derived from Gansner, et al., "A Technique for
- * Drawing Directed Graphs."
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
  *
- * Pre-conditions:
+ * var object = { 'a': 1 };
+ * var other = { 'a': 1 };
  *
- *    1. Graph must be a connected DAG
- *    2. Graph nodes must be objects
- *    3. Graph edges must have "weight" and "minlen" attributes
+ * _.eq(object, object);
+ * // => true
  *
- * Post-conditions:
+ * _.eq(object, other);
+ * // => false
  *
- *    1. Graph nodes will have a "rank" attribute based on the results of the
- *       algorithm. Ranks can start at any index (including negative), we'll
- *       fix them up later.
+ * _.eq('a', 'a');
+ * // => true
+ *
+ * _.eq('a', Object('a'));
+ * // => false
+ *
+ * _.eq(NaN, NaN);
+ * // => true
  */
-            function rank(g) {
-                switch(g.graph().ranker) {
-                    case "network-simplex": networkSimplexRanker(g); break;
-                    case "tight-tree": tightTreeRanker(g); break;
-                    case "longest-path": longestPathRanker(g); break;
-                    default: networkSimplexRanker(g);
-                }
-            }
+function eq(value, other) {
+  return value === other || (value !== value && other !== other);
+}
 
-// A fast and simple ranker, but results are far from optimal.
-            var longestPathRanker = longestPath;
-
-            function tightTreeRanker(g) {
-                longestPath(g);
-                feasibleTree(g);
-            }
+module.exports = eq;
 
-            function networkSimplexRanker(g) {
-                networkSimplex(g);
-            }
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/filter.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/filter.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
+    baseFilter = __webpack_require__(/*! ./_baseFilter */ "./node_modules/lodash/_baseFilter.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
+
+/**
+ * Iterates over elements of `collection`, returning an array of all elements
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
+ *
+ * **Note:** Unlike `_.remove`, this method returns a new array.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
+ * @see _.reject
+ * @example
+ *
+ * var users = [
+ *   { 'user': 'barney', 'age': 36, 'active': true },
+ *   { 'user': 'fred',   'age': 40, 'active': false }
+ * ];
+ *
+ * _.filter(users, function(o) { return !o.active; });
+ * // => objects for ['fred']
+ *
+ * // The `_.matches` iteratee shorthand.
+ * _.filter(users, { 'age': 36, 'active': true });
+ * // => objects for ['barney']
+ *
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.filter(users, ['active', false]);
+ * // => objects for ['fred']
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.filter(users, 'active');
+ * // => objects for ['barney']
+ *
+ * // Combining several predicates using `_.overEvery` or `_.overSome`.
+ * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
+ * // => objects for ['fred', 'barney']
+ */
+function filter(collection, predicate) {
+  var func = isArray(collection) ? arrayFilter : baseFilter;
+  return func(collection, baseIteratee(predicate, 3));
+}
 
-        /***/ "./node_modules/dagre/lib/rank/network-simplex.js":
-        /*!********************************************************!*\
-  !*** ./node_modules/dagre/lib/rank/network-simplex.js ***!
-  \********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = filter;
 
-            "use strict";
 
+/***/ }),
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
-            var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
-            var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
-            var initRank = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").longestPath;
-            var preorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.preorder;
-            var postorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.postorder;
-            var simplify = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js").simplify;
+/***/ "./node_modules/lodash/find.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/find.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            module.exports = networkSimplex;
+var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
+    findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
 
-// Expose some internals for testing purposes
-            networkSimplex.initLowLimValues = initLowLimValues;
-            networkSimplex.initCutValues = initCutValues;
-            networkSimplex.calcCutValue = calcCutValue;
-            networkSimplex.leaveEdge = leaveEdge;
-            networkSimplex.enterEdge = enterEdge;
-            networkSimplex.exchangeEdges = exchangeEdges;
-
-            /*
- * The network simplex algorithm assigns ranks to each node in the input graph
- * and iteratively improves the ranking to reduce the length of edges.
- *
- * Preconditions:
+/**
+ * Iterates over elements of `collection`, returning the first element
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
  *
- *    1. The input graph must be a DAG.
- *    2. All nodes in the graph must have an object value.
- *    3. All edges in the graph must have "minlen" and "weight" attributes.
- *
- * Postconditions:
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to inspect.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
+ * @param {number} [fromIndex=0] The index to search from.
+ * @returns {*} Returns the matched element, else `undefined`.
+ * @example
  *
- *    1. All nodes in the graph will have an assigned "rank" attribute that has
- *       been optimized by the network simplex algorithm. Ranks start at 0.
+ * var users = [
+ *   { 'user': 'barney',  'age': 36, 'active': true },
+ *   { 'user': 'fred',    'age': 40, 'active': false },
+ *   { 'user': 'pebbles', 'age': 1,  'active': true }
+ * ];
  *
+ * _.find(users, function(o) { return o.age < 40; });
+ * // => object for 'barney'
  *
- * A rough sketch of the algorithm is as follows:
+ * // The `_.matches` iteratee shorthand.
+ * _.find(users, { 'age': 1, 'active': true });
+ * // => object for 'pebbles'
  *
- *    1. Assign initial ranks to each node. We use the longest path algorithm,
- *       which assigns ranks to the lowest position possible. In general this
- *       leads to very wide bottom ranks and unnecessarily long edges.
- *    2. Construct a feasible tight tree. A tight tree is one such that all
- *       edges in the tree have no slack (difference between length of edge
- *       and minlen for the edge). This by itself greatly improves the assigned
- *       rankings by shorting edges.
- *    3. Iteratively find edges that have negative cut values. Generally a
- *       negative cut value indicates that the edge could be removed and a new
- *       tree edge could be added to produce a more compact graph.
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.find(users, ['active', false]);
+ * // => object for 'fred'
  *
- * Much of the algorithms here are derived from Gansner, et al., "A Technique
- * for Drawing Directed Graphs." The structure of the file roughly follows the
- * structure of the overall algorithm.
+ * // The `_.property` iteratee shorthand.
+ * _.find(users, 'active');
+ * // => object for 'barney'
  */
-            function networkSimplex(g) {
-                g = simplify(g);
-                initRank(g);
-                var t = feasibleTree(g);
-                initLowLimValues(t);
-                initCutValues(t, g);
-
-                var e, f;
-                while ((e = leaveEdge(t))) {
-                    f = enterEdge(t, g, e);
-                    exchangeEdges(t, g, e, f);
-                }
-            }
+var find = createFind(findIndex);
 
-            /*
- * Initializes cut values for all edges in the tree.
- */
-            function initCutValues(t, g) {
-                var vs = postorder(t, t.nodes());
-                vs = vs.slice(0, vs.length - 1);
-                _.forEach(vs, function(v) {
-                    assignCutValue(t, g, v);
-                });
-            }
+module.exports = find;
 
-            function assignCutValue(t, g, child) {
-                var childLab = t.node(child);
-                var parent = childLab.parent;
-                t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
-            }
 
-            /*
- * Given the tight tree, its graph, and a child in the graph calculate and
- * return the cut value for the edge between the child and its parent.
- */
-            function calcCutValue(t, g, child) {
-                var childLab = t.node(child);
-                var parent = childLab.parent;
-                // True if the child is on the tail end of the edge in the directed graph
-                var childIsTail = true;
-                // The graph's view of the tree edge we're inspecting
-                var graphEdge = g.edge(child, parent);
-                // The accumulated cut value for the edge between this node and its parent
-                var cutValue = 0;
-
-                if (!graphEdge) {
-                    childIsTail = false;
-                    graphEdge = g.edge(parent, child);
-                }
+/***/ }),
 
-                cutValue = graphEdge.weight;
+/***/ "./node_modules/lodash/findIndex.js":
+/*!******************************************!*\
+  !*** ./node_modules/lodash/findIndex.js ***!
+  \******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                _.forEach(g.nodeEdges(child), function(e) {
-                    var isOutEdge = e.v === child,
-                        other = isOutEdge ? e.w : e.v;
+var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
 
-                    if (other !== parent) {
-                        var pointsToHead = isOutEdge === childIsTail,
-                            otherWeight = g.edge(e).weight;
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeMax = Math.max;
 
-                        cutValue += pointsToHead ? otherWeight : -otherWeight;
-                        if (isTreeEdge(t, child, other)) {
-                            var otherCutValue = t.edge(child, other).cutvalue;
-                            cutValue += pointsToHead ? -otherCutValue : otherCutValue;
-                        }
-                    }
-                });
+/**
+ * This method is like `_.find` except that it returns the index of the first
+ * element `predicate` returns truthy for instead of the element itself.
+ *
+ * @static
+ * @memberOf _
+ * @since 1.1.0
+ * @category Array
+ * @param {Array} array The array to inspect.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
+ * @param {number} [fromIndex=0] The index to search from.
+ * @returns {number} Returns the index of the found element, else `-1`.
+ * @example
+ *
+ * var users = [
+ *   { 'user': 'barney',  'active': false },
+ *   { 'user': 'fred',    'active': false },
+ *   { 'user': 'pebbles', 'active': true }
+ * ];
+ *
+ * _.findIndex(users, function(o) { return o.user == 'barney'; });
+ * // => 0
+ *
+ * // The `_.matches` iteratee shorthand.
+ * _.findIndex(users, { 'user': 'fred', 'active': false });
+ * // => 1
+ *
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.findIndex(users, ['active', false]);
+ * // => 0
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.findIndex(users, 'active');
+ * // => 2
+ */
+function findIndex(array, predicate, fromIndex) {
+  var length = array == null ? 0 : array.length;
+  if (!length) {
+    return -1;
+  }
+  var index = fromIndex == null ? 0 : toInteger(fromIndex);
+  if (index < 0) {
+    index = nativeMax(length + index, 0);
+  }
+  return baseFindIndex(array, baseIteratee(predicate, 3), index);
+}
 
-                return cutValue;
-            }
+module.exports = findIndex;
 
-            function initLowLimValues(tree, root) {
-                if (arguments.length < 2) {
-                    root = tree.nodes()[0];
-                }
-                dfsAssignLowLim(tree, {}, 1, root);
-            }
 
-            function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
-                var low = nextLim;
-                var label = tree.node(v);
+/***/ }),
 
-                visited[v] = true;
-                _.forEach(tree.neighbors(v), function(w) {
-                    if (!_.has(visited, w)) {
-                        nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
-                    }
-                });
+/***/ "./node_modules/lodash/flatten.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/flatten.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                label.low = low;
-                label.lim = nextLim++;
-                if (parent) {
-                    label.parent = parent;
-                } else {
-                    // TODO should be able to remove this when we incrementally update low lim
-                    delete label.parent;
-                }
+var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
 
-                return nextLim;
-            }
+/**
+ * Flattens `array` a single level deep.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Array
+ * @param {Array} array The array to flatten.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * _.flatten([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, [3, [4]], 5]
+ */
+function flatten(array) {
+  var length = array == null ? 0 : array.length;
+  return length ? baseFlatten(array, 1) : [];
+}
 
-            function leaveEdge(tree) {
-                return _.find(tree.edges(), function(e) {
-                    return tree.edge(e).cutvalue < 0;
-                });
-            }
+module.exports = flatten;
 
-            function enterEdge(t, g, edge) {
-                var v = edge.v;
-                var w = edge.w;
 
-                // For the rest of this function we assume that v is the tail and w is the
-                // head, so if we don't have this edge in the graph we should flip it to
-                // match the correct orientation.
-                if (!g.hasEdge(v, w)) {
-                    v = edge.w;
-                    w = edge.v;
-                }
+/***/ }),
 
-                var vLabel = t.node(v);
-                var wLabel = t.node(w);
-                var tailLabel = vLabel;
-                var flip = false;
+/***/ "./node_modules/lodash/forEach.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/forEach.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
+    baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
+    castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
+
+/**
+ * Iterates over elements of `collection` and invokes `iteratee` for each element.
+ * The iteratee is invoked with three arguments: (value, index|key, collection).
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
+ *
+ * **Note:** As with other "Collections" methods, objects with a "length"
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
+ * or `_.forOwn` for object iteration.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @alias each
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @returns {Array|Object} Returns `collection`.
+ * @see _.forEachRight
+ * @example
+ *
+ * _.forEach([1, 2], function(value) {
+ *   console.log(value);
+ * });
+ * // => Logs `1` then `2`.
+ *
+ * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
+ *   console.log(key);
+ * });
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
+ */
+function forEach(collection, iteratee) {
+  var func = isArray(collection) ? arrayEach : baseEach;
+  return func(collection, castFunction(iteratee));
+}
 
-                // If the root is in the tail of the edge then we need to flip the logic that
-                // checks for the head and tail nodes in the candidates function below.
-                if (vLabel.lim > wLabel.lim) {
-                    tailLabel = wLabel;
-                    flip = true;
-                }
+module.exports = forEach;
 
-                var candidates = _.filter(g.edges(), function(edge) {
-                    return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
-                        flip !== isDescendant(t, t.node(edge.w), tailLabel);
-                });
 
-                return _.minBy(candidates, function(edge) { return slack(g, edge); });
-            }
+/***/ }),
 
-            function exchangeEdges(t, g, e, f) {
-                var v = e.v;
-                var w = e.w;
-                t.removeEdge(v, w);
-                t.setEdge(f.v, f.w, {});
-                initLowLimValues(t);
-                initCutValues(t, g);
-                updateRanks(t, g);
-            }
+/***/ "./node_modules/lodash/forIn.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/forIn.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
+    castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
+
+/**
+ * Iterates over own and inherited enumerable string keyed properties of an
+ * object and invokes `iteratee` for each property. The iteratee is invoked
+ * with three arguments: (value, key, object). Iteratee functions may exit
+ * iteration early by explicitly returning `false`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.3.0
+ * @category Object
+ * @param {Object} object The object to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @returns {Object} Returns `object`.
+ * @see _.forInRight
+ * @example
+ *
+ * function Foo() {
+ *   this.a = 1;
+ *   this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.forIn(new Foo, function(value, key) {
+ *   console.log(key);
+ * });
+ * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
+ */
+function forIn(object, iteratee) {
+  return object == null
+    ? object
+    : baseFor(object, castFunction(iteratee), keysIn);
+}
 
-            function updateRanks(t, g) {
-                var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
-                var vs = preorder(t, root);
-                vs = vs.slice(1);
-                _.forEach(vs, function(v) {
-                    var parent = t.node(v).parent,
-                        edge = g.edge(v, parent),
-                        flipped = false;
-
-                    if (!edge) {
-                        edge = g.edge(parent, v);
-                        flipped = true;
-                    }
+module.exports = forIn;
 
-                    g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
-                });
-            }
 
-            /*
- * Returns true if the edge is in the tree.
- */
-            function isTreeEdge(tree, u, v) {
-                return tree.hasEdge(u, v);
-            }
+/***/ }),
 
-            /*
- * Returns true if the specified node is descendant of the root node per the
- * assigned low and lim attributes in the tree.
- */
-            function isDescendant(tree, vLabel, rootLabel) {
-                return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
-            }
+/***/ "./node_modules/lodash/get.js":
+/*!************************************!*\
+  !*** ./node_modules/lodash/get.js ***!
+  \************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
 
-            /***/ }),
+/**
+ * Gets the value at `path` of `object`. If the resolved value is
+ * `undefined`, the `defaultValue` is returned in its place.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.7.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+ * @returns {*} Returns the resolved value.
+ * @example
+ *
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+ *
+ * _.get(object, 'a[0].b.c');
+ * // => 3
+ *
+ * _.get(object, ['a', '0', 'b', 'c']);
+ * // => 3
+ *
+ * _.get(object, 'a.b.c', 'default');
+ * // => 'default'
+ */
+function get(object, path, defaultValue) {
+  var result = object == null ? undefined : baseGet(object, path);
+  return result === undefined ? defaultValue : result;
+}
 
-        /***/ "./node_modules/dagre/lib/rank/util.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/dagre/lib/rank/util.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = get;
 
-            "use strict";
 
+/***/ }),
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
+/***/ "./node_modules/lodash/has.js":
+/*!************************************!*\
+  !*** ./node_modules/lodash/has.js ***!
+  \************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            module.exports = {
-                longestPath: longestPath,
-                slack: slack
-            };
+var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
+    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
 
-            /*
- * Initializes ranks for the input graph using the longest path algorithm. This
- * algorithm scales well and is fast in practice, it yields rather poor
- * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
- * ranks wide and leaving edges longer than necessary. However, due to its
- * speed, this algorithm is good for getting an initial ranking that can be fed
- * into other algorithms.
+/**
+ * Checks if `path` is a direct property of `object`.
  *
- * This algorithm does not normalize layers because it will be used by other
- * algorithms in most cases. If using this algorithm directly, be sure to
- * run normalize at the end.
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
  *
- * Pre-conditions:
+ * var object = { 'a': { 'b': 2 } };
+ * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  *
- *    1. Input graph is a DAG.
- *    2. Input graph node labels can be assigned properties.
+ * _.has(object, 'a');
+ * // => true
  *
- * Post-conditions:
+ * _.has(object, 'a.b');
+ * // => true
  *
- *    1. Each node will be assign an (unnormalized) "rank" property.
+ * _.has(object, ['a', 'b']);
+ * // => true
+ *
+ * _.has(other, 'a');
+ * // => false
  */
-            function longestPath(g) {
-                var visited = {};
+function has(object, path) {
+  return object != null && hasPath(object, path, baseHas);
+}
 
-                function dfs(v) {
-                    var label = g.node(v);
-                    if (_.has(visited, v)) {
-                        return label.rank;
-                    }
-                    visited[v] = true;
+module.exports = has;
 
-                    var rank = _.min(_.map(g.outEdges(v), function(e) {
-                        return dfs(e.w) - g.edge(e).minlen;
-                    }));
 
-                    if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
-                        rank === undefined || // return value of _.map([]) for Lodash 4
-                        rank === null) { // return value of _.map([null])
-                        rank = 0;
-                    }
+/***/ }),
 
-                    return (label.rank = rank);
-                }
+/***/ "./node_modules/lodash/hasIn.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/hasIn.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                _.forEach(g.sources(), dfs);
-            }
+var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
+    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
 
-            /*
- * Returns the amount of slack for the given edge. The slack is defined as the
- * difference between the length of the edge and its minimum length.
+/**
+ * Checks if `path` is a direct or inherited property of `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
+ *
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
+ *
+ * _.hasIn(object, 'a');
+ * // => true
+ *
+ * _.hasIn(object, 'a.b');
+ * // => true
+ *
+ * _.hasIn(object, ['a', 'b']);
+ * // => true
+ *
+ * _.hasIn(object, 'b');
+ * // => false
  */
-            function slack(g, e) {
-                return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
-            }
+function hasIn(object, path) {
+  return object != null && hasPath(object, path, baseHasIn);
+}
 
+module.exports = hasIn;
 
-            /***/ }),
 
-        /***/ "./node_modules/dagre/lib/util.js":
-        /*!****************************************!*\
-  !*** ./node_modules/dagre/lib/util.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            "use strict";
-            /* eslint "no-console": off */
-
-
-
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
-
-            module.exports = {
-                addDummyNode: addDummyNode,
-                simplify: simplify,
-                asNonCompoundGraph: asNonCompoundGraph,
-                successorWeights: successorWeights,
-                predecessorWeights: predecessorWeights,
-                intersectRect: intersectRect,
-                buildLayerMatrix: buildLayerMatrix,
-                normalizeRanks: normalizeRanks,
-                removeEmptyRanks: removeEmptyRanks,
-                addBorderNode: addBorderNode,
-                maxRank: maxRank,
-                partition: partition,
-                time: time,
-                notime: notime
-            };
+/***/ }),
 
-            /*
- * Adds a dummy node to the graph and return v.
+/***/ "./node_modules/lodash/identity.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/identity.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/**
+ * This method returns the first argument it receives.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Util
+ * @param {*} value Any value.
+ * @returns {*} Returns `value`.
+ * @example
+ *
+ * var object = { 'a': 1 };
+ *
+ * console.log(_.identity(object) === object);
+ * // => true
  */
-            function addDummyNode(g, type, attrs, name) {
-                var v;
-                do {
-                    v = _.uniqueId(name);
-                } while (g.hasNode(v));
+function identity(value) {
+  return value;
+}
 
-                attrs.dummy = type;
-                g.setNode(v, attrs);
-                return v;
-            }
+module.exports = identity;
 
-            /*
- * Returns a new graph with only simple edges. Handles aggregation of data
- * associated with multi-edges.
- */
-            function simplify(g) {
-                var simplified = new Graph().setGraph(g.graph());
-                _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
-                _.forEach(g.edges(), function(e) {
-                    var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
-                    var label = g.edge(e);
-                    simplified.setEdge(e.v, e.w, {
-                        weight: simpleLabel.weight + label.weight,
-                        minlen: Math.max(simpleLabel.minlen, label.minlen)
-                    });
-                });
-                return simplified;
-            }
 
-            function asNonCompoundGraph(g) {
-                var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
-                _.forEach(g.nodes(), function(v) {
-                    if (!g.children(v).length) {
-                        simplified.setNode(v, g.node(v));
-                    }
-                });
-                _.forEach(g.edges(), function(e) {
-                    simplified.setEdge(e, g.edge(e));
-                });
-                return simplified;
-            }
-
-            function successorWeights(g) {
-                var weightMap = _.map(g.nodes(), function(v) {
-                    var sucs = {};
-                    _.forEach(g.outEdges(v), function(e) {
-                        sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
-                    });
-                    return sucs;
-                });
-                return _.zipObject(g.nodes(), weightMap);
-            }
+/***/ }),
 
-            function predecessorWeights(g) {
-                var weightMap = _.map(g.nodes(), function(v) {
-                    var preds = {};
-                    _.forEach(g.inEdges(v), function(e) {
-                        preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
-                    });
-                    return preds;
-                });
-                return _.zipObject(g.nodes(), weightMap);
-            }
-
-            /*
- * Finds where a line starting at point ({x, y}) would intersect a rectangle
- * ({x, y, width, height}) if it were pointing at the rectangle's center.
- */
-            function intersectRect(rect, point) {
-                var x = rect.x;
-                var y = rect.y;
+/***/ "./node_modules/lodash/isArguments.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/isArguments.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                // Rectangle intersection algorithm from:
-                // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
-                var dx = point.x - x;
-                var dy = point.y - y;
-                var w = rect.width / 2;
-                var h = rect.height / 2;
+var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-                if (!dx && !dy) {
-                    throw new Error("Not possible to find intersection inside of the rectangle");
-                }
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
 
-                var sx, sy;
-                if (Math.abs(dy) * w > Math.abs(dx) * h) {
-                    // Intersection is top or bottom of rect.
-                    if (dy < 0) {
-                        h = -h;
-                    }
-                    sx = h * dx / dy;
-                    sy = h;
-                } else {
-                    // Intersection is left or right of rect.
-                    if (dx < 0) {
-                        w = -w;
-                    }
-                    sx = w;
-                    sy = w * dy / dx;
-                }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-                return { x: x + sx, y: y + sy };
-            }
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
 
-            /*
- * Given a DAG with each node assigned "rank" and "order" properties, this
- * function will produce a matrix with the ids of each node.
+/**
+ * Checks if `value` is likely an `arguments` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ *  else `false`.
+ * @example
+ *
+ * _.isArguments(function() { return arguments; }());
+ * // => true
+ *
+ * _.isArguments([1, 2, 3]);
+ * // => false
  */
-            function buildLayerMatrix(g) {
-                var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    var rank = node.rank;
-                    if (!_.isUndefined(rank)) {
-                        layering[rank][node.order] = v;
-                    }
-                });
-                return layering;
-            }
+var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
+  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
+    !propertyIsEnumerable.call(value, 'callee');
+};
 
-            /*
- * Adjusts the ranks for all nodes in the graph such that all nodes v have
- * rank(v) >= 0 and at least one node w has rank(w) = 0.
- */
-            function normalizeRanks(g) {
-                var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
-                _.forEach(g.nodes(), function(v) {
-                    var node = g.node(v);
-                    if (_.has(node, "rank")) {
-                        node.rank -= min;
-                    }
-                });
-            }
+module.exports = isArguments;
 
-            function removeEmptyRanks(g) {
-                // Ranks may not start at 0, so we need to offset them
-                var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
 
-                var layers = [];
-                _.forEach(g.nodes(), function(v) {
-                    var rank = g.node(v).rank - offset;
-                    if (!layers[rank]) {
-                        layers[rank] = [];
-                    }
-                    layers[rank].push(v);
-                });
+/***/ }),
 
-                var delta = 0;
-                var nodeRankFactor = g.graph().nodeRankFactor;
-                _.forEach(layers, function(vs, i) {
-                    if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
-                        --delta;
-                    } else if (delta) {
-                        _.forEach(vs, function(v) { g.node(v).rank += delta; });
-                    }
-                });
-            }
+/***/ "./node_modules/lodash/isArray.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/isArray.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            function addBorderNode(g, prefix, rank, order) {
-                var node = {
-                    width: 0,
-                    height: 0
-                };
-                if (arguments.length >= 4) {
-                    node.rank = rank;
-                    node.order = order;
-                }
-                return addDummyNode(g, "border", node, prefix);
-            }
+/**
+ * Checks if `value` is classified as an `Array` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
+ * @example
+ *
+ * _.isArray([1, 2, 3]);
+ * // => true
+ *
+ * _.isArray(document.body.children);
+ * // => false
+ *
+ * _.isArray('abc');
+ * // => false
+ *
+ * _.isArray(_.noop);
+ * // => false
+ */
+var isArray = Array.isArray;
 
-            function maxRank(g) {
-                return _.max(_.map(g.nodes(), function(v) {
-                    var rank = g.node(v).rank;
-                    if (!_.isUndefined(rank)) {
-                        return rank;
-                    }
-                }));
-            }
+module.exports = isArray;
 
-            /*
- * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
- * function returns true for an entry it goes into `lhs`. Otherwise it goes
- * into `rhs.
- */
-            function partition(collection, fn) {
-                var result = { lhs: [], rhs: [] };
-                _.forEach(collection, function(value) {
-                    if (fn(value)) {
-                        result.lhs.push(value);
-                    } else {
-                        result.rhs.push(value);
-                    }
-                });
-                return result;
-            }
 
-            /*
- * Returns a new function that wraps `fn` with a timer. The wrapper logs the
- * time it takes to execute the function.
- */
-            function time(name, fn) {
-                var start = _.now();
-                try {
-                    return fn();
-                } finally {
-                    console.log(name + " time: " + (_.now() - start) + "ms");
-                }
-            }
+/***/ }),
 
-            function notime(name, fn) {
-                return fn();
-            }
+/***/ "./node_modules/lodash/isArrayLike.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/isArrayLike.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
+    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
 
-            /***/ }),
+/**
+ * Checks if `value` is array-like. A value is considered array-like if it's
+ * not a function and has a `value.length` that's an integer greater than or
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ * @example
+ *
+ * _.isArrayLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isArrayLike(document.body.children);
+ * // => true
+ *
+ * _.isArrayLike('abc');
+ * // => true
+ *
+ * _.isArrayLike(_.noop);
+ * // => false
+ */
+function isArrayLike(value) {
+  return value != null && isLength(value.length) && !isFunction(value);
+}
 
-        /***/ "./node_modules/dagre/lib/version.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/dagre/lib/version.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+module.exports = isArrayLike;
 
-            module.exports = "0.8.5";
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/isArrayLikeObject.js":
+/*!**************************************************!*\
+  !*** ./node_modules/lodash/isArrayLikeObject.js ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/graphlib/index.js":
-        /*!****************************************!*\
-  !*** ./node_modules/graphlib/index.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /**
-             * Copyright (c) 2014, Chris Pettitt
-             * All rights reserved.
-             *
-             * Redistribution and use in source and binary forms, with or without
-             * modification, are permitted provided that the following conditions are met:
-             *
-             * 1. Redistributions of source code must retain the above copyright notice, this
-             * list of conditions and the following disclaimer.
-             *
-             * 2. Redistributions in binary form must reproduce the above copyright notice,
-             * this list of conditions and the following disclaimer in the documentation
-             * and/or other materials provided with the distribution.
-             *
-             * 3. Neither the name of the copyright holder nor the names of its contributors
-             * may be used to endorse or promote products derived from this software without
-             * specific prior written permission.
-             *
-             * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-             * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-             * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-             * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-             * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-             * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-             * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-             * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-             * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-             * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-             */
-
-            var lib = __webpack_require__(/*! ./lib */ "./node_modules/graphlib/lib/index.js");
-
-            module.exports = {
-                Graph: lib.Graph,
-                json: __webpack_require__(/*! ./lib/json */ "./node_modules/graphlib/lib/json.js"),
-                alg: __webpack_require__(/*! ./lib/alg */ "./node_modules/graphlib/lib/alg/index.js"),
-                version: lib.version
-            };
+var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
+/**
+ * This method is like `_.isArrayLike` except that it also checks if `value`
+ * is an object.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
+ *  else `false`.
+ * @example
+ *
+ * _.isArrayLikeObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isArrayLikeObject(document.body.children);
+ * // => true
+ *
+ * _.isArrayLikeObject('abc');
+ * // => false
+ *
+ * _.isArrayLikeObject(_.noop);
+ * // => false
+ */
+function isArrayLikeObject(value) {
+  return isObjectLike(value) && isArrayLike(value);
+}
 
-            /***/ }),
+module.exports = isArrayLikeObject;
 
-        /***/ "./node_modules/graphlib/lib/alg/components.js":
-        /*!*****************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/components.js ***!
-  \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+/***/ }),
 
-            module.exports = components;
+/***/ "./node_modules/lodash/isBuffer.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/isBuffer.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function components(g) {
-                var visited = {};
-                var cmpts = [];
-                var cmpt;
+/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
+    stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
 
-                function dfs(v) {
-                    if (_.has(visited, v)) return;
-                    visited[v] = true;
-                    cmpt.push(v);
-                    _.each(g.successors(v), dfs);
-                    _.each(g.predecessors(v), dfs);
-                }
+/** Detect free variable `exports`. */
+var freeExports =  true && exports && !exports.nodeType && exports;
 
-                _.each(g.nodes(), function(v) {
-                    cmpt = [];
-                    dfs(v);
-                    if (cmpt.length) {
-                        cmpts.push(cmpt);
-                    }
-                });
+/** Detect free variable `module`. */
+var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
 
-                return cmpts;
-            }
+/** Detect the popular CommonJS extension `module.exports`. */
+var moduleExports = freeModule && freeModule.exports === freeExports;
 
+/** Built-in value references. */
+var Buffer = moduleExports ? root.Buffer : undefined;
 
-            /***/ }),
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
 
-        /***/ "./node_modules/graphlib/lib/alg/dfs.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/dfs.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Checks if `value` is a buffer.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.3.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+ * @example
+ *
+ * _.isBuffer(new Buffer(2));
+ * // => true
+ *
+ * _.isBuffer(new Uint8Array(2));
+ * // => false
+ */
+var isBuffer = nativeIsBuffer || stubFalse;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+module.exports = isBuffer;
 
-            module.exports = dfs;
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
 
-            /*
- * A helper that preforms a pre- or post-order traversal on the input graph
- * and returns the nodes in the order they were visited. If the graph is
- * undirected then this algorithm will navigate using neighbors. If the graph
- * is directed then this algorithm will navigate using successors.
+/***/ }),
+
+/***/ "./node_modules/lodash/isEmpty.js":
+/*!****************************************!*\
+  !*** ./node_modules/lodash/isEmpty.js ***!
+  \****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
+    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
+    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
+
+/** `Object#toString` result references. */
+var mapTag = '[object Map]',
+    setTag = '[object Set]';
+
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/**
+ * Checks if `value` is an empty object, collection, map, or set.
  *
- * Order must be one of "pre" or "post".
+ * Objects are considered empty if they have no own enumerable string keyed
+ * properties.
+ *
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
+ * @example
+ *
+ * _.isEmpty(null);
+ * // => true
+ *
+ * _.isEmpty(true);
+ * // => true
+ *
+ * _.isEmpty(1);
+ * // => true
+ *
+ * _.isEmpty([1, 2, 3]);
+ * // => false
+ *
+ * _.isEmpty({ 'a': 1 });
+ * // => false
  */
-            function dfs(g, vs, order) {
-                if (!_.isArray(vs)) {
-                    vs = [vs];
-                }
+function isEmpty(value) {
+  if (value == null) {
+    return true;
+  }
+  if (isArrayLike(value) &&
+      (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
+        isBuffer(value) || isTypedArray(value) || isArguments(value))) {
+    return !value.length;
+  }
+  var tag = getTag(value);
+  if (tag == mapTag || tag == setTag) {
+    return !value.size;
+  }
+  if (isPrototype(value)) {
+    return !baseKeys(value).length;
+  }
+  for (var key in value) {
+    if (hasOwnProperty.call(value, key)) {
+      return false;
+    }
+  }
+  return true;
+}
 
-                var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
+module.exports = isEmpty;
 
-                var acc = [];
-                var visited = {};
-                _.each(vs, function(v) {
-                    if (!g.hasNode(v)) {
-                        throw new Error("Graph does not have node: " + v);
-                    }
 
-                    doDfs(g, v, order === "post", visited, navigation, acc);
-                });
-                return acc;
-            }
+/***/ }),
 
-            function doDfs(g, v, postorder, visited, navigation, acc) {
-                if (!_.has(visited, v)) {
-                    visited[v] = true;
+/***/ "./node_modules/lodash/isFunction.js":
+/*!*******************************************!*\
+  !*** ./node_modules/lodash/isFunction.js ***!
+  \*******************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (!postorder) { acc.push(v); }
-                    _.each(navigation(v), function(w) {
-                        doDfs(g, w, postorder, visited, navigation, acc);
-                    });
-                    if (postorder) { acc.push(v); }
-                }
-            }
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
 
+/** `Object#toString` result references. */
+var asyncTag = '[object AsyncFunction]',
+    funcTag = '[object Function]',
+    genTag = '[object GeneratorFunction]',
+    proxyTag = '[object Proxy]';
 
-            /***/ }),
+/**
+ * Checks if `value` is classified as a `Function` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
+ * @example
+ *
+ * _.isFunction(_);
+ * // => true
+ *
+ * _.isFunction(/abc/);
+ * // => false
+ */
+function isFunction(value) {
+  if (!isObject(value)) {
+    return false;
+  }
+  // The use of `Object#toString` avoids issues with the `typeof` operator
+  // in Safari 9 which returns 'object' for typed arrays and other constructors.
+  var tag = baseGetTag(value);
+  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
+}
 
-        /***/ "./node_modules/graphlib/lib/alg/dijkstra-all.js":
-        /*!*******************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/dijkstra-all.js ***!
-  \*******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = isFunction;
 
-            var dijkstra = __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js");
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-            module.exports = dijkstraAll;
+/***/ }),
 
-            function dijkstraAll(g, weightFunc, edgeFunc) {
-                return _.transform(g.nodes(), function(acc, v) {
-                    acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
-                }, {});
-            }
+/***/ "./node_modules/lodash/isLength.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/isLength.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/** Used as references for various `Number` constants. */
+var MAX_SAFE_INTEGER = 9007199254740991;
 
-            /***/ }),
+/**
+ * Checks if `value` is a valid array-like length.
+ *
+ * **Note:** This method is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @example
+ *
+ * _.isLength(3);
+ * // => true
+ *
+ * _.isLength(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isLength(Infinity);
+ * // => false
+ *
+ * _.isLength('3');
+ * // => false
+ */
+function isLength(value) {
+  return typeof value == 'number' &&
+    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+}
 
-        /***/ "./node_modules/graphlib/lib/alg/dijkstra.js":
-        /*!***************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/dijkstra.js ***!
-  \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = isLength;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
-            var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
 
-            module.exports = dijkstra;
+/***/ }),
 
-            var DEFAULT_WEIGHT_FUNC = _.constant(1);
+/***/ "./node_modules/lodash/isMap.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/isMap.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            function dijkstra(g, source, weightFn, edgeFn) {
-                return runDijkstra(g, String(source),
-                    weightFn || DEFAULT_WEIGHT_FUNC,
-                    edgeFn || function(v) { return g.outEdges(v); });
-            }
+var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
+    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
+    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
 
-            function runDijkstra(g, source, weightFn, edgeFn) {
-                var results = {};
-                var pq = new PriorityQueue();
-                var v, vEntry;
+/* Node.js helper references. */
+var nodeIsMap = nodeUtil && nodeUtil.isMap;
 
-                var updateNeighbors = function(edge) {
-                    var w = edge.v !== v ? edge.v : edge.w;
-                    var wEntry = results[w];
-                    var weight = weightFn(edge);
-                    var distance = vEntry.distance + weight;
+/**
+ * Checks if `value` is classified as a `Map` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.3.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
+ * @example
+ *
+ * _.isMap(new Map);
+ * // => true
+ *
+ * _.isMap(new WeakMap);
+ * // => false
+ */
+var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
 
-                    if (weight < 0) {
-                        throw new Error("dijkstra does not allow negative edge weights. " +
-                            "Bad edge: " + edge + " Weight: " + weight);
-                    }
+module.exports = isMap;
 
-                    if (distance < wEntry.distance) {
-                        wEntry.distance = distance;
-                        wEntry.predecessor = v;
-                        pq.decrease(w, distance);
-                    }
-                };
 
-                g.nodes().forEach(function(v) {
-                    var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
-                    results[v] = { distance: distance };
-                    pq.add(v, distance);
-                });
+/***/ }),
 
-                while (pq.size() > 0) {
-                    v = pq.removeMin();
-                    vEntry = results[v];
-                    if (vEntry.distance === Number.POSITIVE_INFINITY) {
-                        break;
-                    }
+/***/ "./node_modules/lodash/isObject.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/isObject.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-                    edgeFn(v).forEach(updateNeighbors);
-                }
+/**
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+ * @example
+ *
+ * _.isObject({});
+ * // => true
+ *
+ * _.isObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isObject(_.noop);
+ * // => true
+ *
+ * _.isObject(null);
+ * // => false
+ */
+function isObject(value) {
+  var type = typeof value;
+  return value != null && (type == 'object' || type == 'function');
+}
 
-                return results;
-            }
+module.exports = isObject;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/graphlib/lib/alg/find-cycles.js":
-        /*!******************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/find-cycles.js ***!
-  \******************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/***/ "./node_modules/lodash/isObjectLike.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/isObjectLike.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
-            var tarjan = __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js");
+/**
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
+ * and has a `typeof` result of "object".
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
+ * @example
+ *
+ * _.isObjectLike({});
+ * // => true
+ *
+ * _.isObjectLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isObjectLike(_.noop);
+ * // => false
+ *
+ * _.isObjectLike(null);
+ * // => false
+ */
+function isObjectLike(value) {
+  return value != null && typeof value == 'object';
+}
 
-            module.exports = findCycles;
+module.exports = isObjectLike;
 
-            function findCycles(g) {
-                return _.filter(tarjan(g), function(cmpt) {
-                    return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
-                });
-            }
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/isPlainObject.js":
+/*!**********************************************!*\
+  !*** ./node_modules/lodash/isPlainObject.js ***!
+  \**********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/graphlib/lib/alg/floyd-warshall.js":
-        /*!*********************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/floyd-warshall.js ***!
-  \*********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
+/** `Object#toString` result references. */
+var objectTag = '[object Object]';
 
-            module.exports = floydWarshall;
+/** Used for built-in method references. */
+var funcProto = Function.prototype,
+    objectProto = Object.prototype;
 
-            var DEFAULT_WEIGHT_FUNC = _.constant(1);
+/** Used to resolve the decompiled source of functions. */
+var funcToString = funcProto.toString;
 
-            function floydWarshall(g, weightFn, edgeFn) {
-                return runFloydWarshall(g,
-                    weightFn || DEFAULT_WEIGHT_FUNC,
-                    edgeFn || function(v) { return g.outEdges(v); });
-            }
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
 
-            function runFloydWarshall(g, weightFn, edgeFn) {
-                var results = {};
-                var nodes = g.nodes();
+/** Used to infer the `Object` constructor. */
+var objectCtorString = funcToString.call(Object);
 
-                nodes.forEach(function(v) {
-                    results[v] = {};
-                    results[v][v] = { distance: 0 };
-                    nodes.forEach(function(w) {
-                        if (v !== w) {
-                            results[v][w] = { distance: Number.POSITIVE_INFINITY };
-                        }
-                    });
-                    edgeFn(v).forEach(function(edge) {
-                        var w = edge.v === v ? edge.w : edge.v;
-                        var d = weightFn(edge);
-                        results[v][w] = { distance: d, predecessor: v };
-                    });
-                });
+/**
+ * Checks if `value` is a plain object, that is, an object created by the
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.8.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ * @example
+ *
+ * function Foo() {
+ *   this.a = 1;
+ * }
+ *
+ * _.isPlainObject(new Foo);
+ * // => false
+ *
+ * _.isPlainObject([1, 2, 3]);
+ * // => false
+ *
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
+ * // => true
+ *
+ * _.isPlainObject(Object.create(null));
+ * // => true
+ */
+function isPlainObject(value) {
+  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
+    return false;
+  }
+  var proto = getPrototype(value);
+  if (proto === null) {
+    return true;
+  }
+  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
+  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
+    funcToString.call(Ctor) == objectCtorString;
+}
 
-                nodes.forEach(function(k) {
-                    var rowK = results[k];
-                    nodes.forEach(function(i) {
-                        var rowI = results[i];
-                        nodes.forEach(function(j) {
-                            var ik = rowI[k];
-                            var kj = rowK[j];
-                            var ij = rowI[j];
-                            var altDistance = ik.distance + kj.distance;
-                            if (altDistance < ij.distance) {
-                                ij.distance = altDistance;
-                                ij.predecessor = kj.predecessor;
-                            }
-                        });
-                    });
-                });
+module.exports = isPlainObject;
 
-                return results;
-            }
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/isSet.js":
+/*!**************************************!*\
+  !*** ./node_modules/lodash/isSet.js ***!
+  \**************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/graphlib/lib/alg/index.js":
-        /*!************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/index.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            module.exports = {
-                components: __webpack_require__(/*! ./components */ "./node_modules/graphlib/lib/alg/components.js"),
-                dijkstra: __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js"),
-                dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "./node_modules/graphlib/lib/alg/dijkstra-all.js"),
-                findCycles: __webpack_require__(/*! ./find-cycles */ "./node_modules/graphlib/lib/alg/find-cycles.js"),
-                floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "./node_modules/graphlib/lib/alg/floyd-warshall.js"),
-                isAcyclic: __webpack_require__(/*! ./is-acyclic */ "./node_modules/graphlib/lib/alg/is-acyclic.js"),
-                postorder: __webpack_require__(/*! ./postorder */ "./node_modules/graphlib/lib/alg/postorder.js"),
-                preorder: __webpack_require__(/*! ./preorder */ "./node_modules/graphlib/lib/alg/preorder.js"),
-                prim: __webpack_require__(/*! ./prim */ "./node_modules/graphlib/lib/alg/prim.js"),
-                tarjan: __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js"),
-                topsort: __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js")
-            };
+var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
+    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
+    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
 
+/* Node.js helper references. */
+var nodeIsSet = nodeUtil && nodeUtil.isSet;
 
-            /***/ }),
+/**
+ * Checks if `value` is classified as a `Set` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.3.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
+ * @example
+ *
+ * _.isSet(new Set);
+ * // => true
+ *
+ * _.isSet(new WeakSet);
+ * // => false
+ */
+var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
 
-        /***/ "./node_modules/graphlib/lib/alg/is-acyclic.js":
-        /*!*****************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/is-acyclic.js ***!
-  \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = isSet;
 
-            var topsort = __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js");
 
-            module.exports = isAcyclic;
+/***/ }),
 
-            function isAcyclic(g) {
-                try {
-                    topsort(g);
-                } catch (e) {
-                    if (e instanceof topsort.CycleException) {
-                        return false;
-                    }
-                    throw e;
-                }
-                return true;
-            }
+/***/ "./node_modules/lodash/isString.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/isString.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-            /***/ }),
+/** `Object#toString` result references. */
+var stringTag = '[object String]';
 
-        /***/ "./node_modules/graphlib/lib/alg/postorder.js":
-        /*!****************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/postorder.js ***!
-  \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/**
+ * Checks if `value` is classified as a `String` primitive or object.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
+ * @example
+ *
+ * _.isString('abc');
+ * // => true
+ *
+ * _.isString(1);
+ * // => false
+ */
+function isString(value) {
+  return typeof value == 'string' ||
+    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
+}
 
-            var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
+module.exports = isString;
 
-            module.exports = postorder;
 
-            function postorder(g, vs) {
-                return dfs(g, vs, "post");
-            }
+/***/ }),
 
+/***/ "./node_modules/lodash/isSymbol.js":
+/*!*****************************************!*\
+  !*** ./node_modules/lodash/isSymbol.js ***!
+  \*****************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /***/ }),
+var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
+    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
 
-        /***/ "./node_modules/graphlib/lib/alg/preorder.js":
-        /*!***************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/preorder.js ***!
-  \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/** `Object#toString` result references. */
+var symbolTag = '[object Symbol]';
 
-            var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
+/**
+ * Checks if `value` is classified as a `Symbol` primitive or object.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
+ * @example
+ *
+ * _.isSymbol(Symbol.iterator);
+ * // => true
+ *
+ * _.isSymbol('abc');
+ * // => false
+ */
+function isSymbol(value) {
+  return typeof value == 'symbol' ||
+    (isObjectLike(value) && baseGetTag(value) == symbolTag);
+}
 
-            module.exports = preorder;
+module.exports = isSymbol;
 
-            function preorder(g, vs) {
-                return dfs(g, vs, "pre");
-            }
 
+/***/ }),
 
-            /***/ }),
+/***/ "./node_modules/lodash/isTypedArray.js":
+/*!*********************************************!*\
+  !*** ./node_modules/lodash/isTypedArray.js ***!
+  \*********************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-        /***/ "./node_modules/graphlib/lib/alg/prim.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/prim.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ../graph */ "./node_modules/graphlib/lib/graph.js");
-            var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
-
-            module.exports = prim;
-
-            function prim(g, weightFunc) {
-                var result = new Graph();
-                var parents = {};
-                var pq = new PriorityQueue();
-                var v;
-
-                function updateNeighbors(edge) {
-                    var w = edge.v === v ? edge.w : edge.v;
-                    var pri = pq.priority(w);
-                    if (pri !== undefined) {
-                        var edgeWeight = weightFunc(edge);
-                        if (edgeWeight < pri) {
-                            parents[w] = v;
-                            pq.decrease(w, edgeWeight);
-                        }
-                    }
-                }
+var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
+    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
+    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
 
-                if (g.nodeCount() === 0) {
-                    return result;
-                }
+/* Node.js helper references. */
+var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
 
-                _.each(g.nodes(), function(v) {
-                    pq.add(v, Number.POSITIVE_INFINITY);
-                    result.setNode(v);
-                });
+/**
+ * Checks if `value` is classified as a typed array.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ * @example
+ *
+ * _.isTypedArray(new Uint8Array);
+ * // => true
+ *
+ * _.isTypedArray([]);
+ * // => false
+ */
+var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
 
-                // Start from an arbitrary node
-                pq.decrease(g.nodes()[0], 0);
+module.exports = isTypedArray;
 
-                var init = false;
-                while (pq.size() > 0) {
-                    v = pq.removeMin();
-                    if (_.has(parents, v)) {
-                        result.setEdge(v, parents[v]);
-                    } else if (init) {
-                        throw new Error("Input graph is not connected: " + g);
-                    } else {
-                        init = true;
-                    }
 
-                    g.nodeEdges(v).forEach(updateNeighbors);
-                }
+/***/ }),
 
-                return result;
-            }
+/***/ "./node_modules/lodash/isUndefined.js":
+/*!********************************************!*\
+  !*** ./node_modules/lodash/isUndefined.js ***!
+  \********************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
+/**
+ * Checks if `value` is `undefined`.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
+ * @example
+ *
+ * _.isUndefined(void 0);
+ * // => true
+ *
+ * _.isUndefined(null);
+ * // => false
+ */
+function isUndefined(value) {
+  return value === undefined;
+}
 
-            /***/ }),
+module.exports = isUndefined;
 
-        /***/ "./node_modules/graphlib/lib/alg/tarjan.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/tarjan.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
-
-            module.exports = tarjan;
-
-            function tarjan(g) {
-                var index = 0;
-                var stack = [];
-                var visited = {}; // node id -> { onStack, lowlink, index }
-                var results = [];
-
-                function dfs(v) {
-                    var entry = visited[v] = {
-                        onStack: true,
-                        lowlink: index,
-                        index: index++
-                    };
-                    stack.push(v);
-
-                    g.successors(v).forEach(function(w) {
-                        if (!_.has(visited, w)) {
-                            dfs(w);
-                            entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
-                        } else if (visited[w].onStack) {
-                            entry.lowlink = Math.min(entry.lowlink, visited[w].index);
-                        }
-                    });
-
-                    if (entry.lowlink === entry.index) {
-                        var cmpt = [];
-                        var w;
-                        do {
-                            w = stack.pop();
-                            visited[w].onStack = false;
-                            cmpt.push(w);
-                        } while (v !== w);
-                        results.push(cmpt);
-                    }
-                }
 
-                g.nodes().forEach(function(v) {
-                    if (!_.has(visited, v)) {
-                        dfs(v);
-                    }
-                });
+/***/ }),
 
-                return results;
-            }
+/***/ "./node_modules/lodash/keys.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/keys.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
+var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
+    baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
 
-            /***/ }),
+/**
+ * Creates an array of the own enumerable property names of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects. See the
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
+ * for more details.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ * @example
+ *
+ * function Foo() {
+ *   this.a = 1;
+ *   this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.keys(new Foo);
+ * // => ['a', 'b'] (iteration order is not guaranteed)
+ *
+ * _.keys('hi');
+ * // => ['0', '1']
+ */
+function keys(object) {
+  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
+}
 
-        /***/ "./node_modules/graphlib/lib/alg/topsort.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/graphlib/lib/alg/topsort.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+module.exports = keys;
 
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
 
-            module.exports = topsort;
-            topsort.CycleException = CycleException;
+/***/ }),
 
-            function topsort(g) {
-                var visited = {};
-                var stack = {};
-                var results = [];
+/***/ "./node_modules/lodash/keysIn.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/keysIn.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                function visit(node) {
-                    if (_.has(stack, node)) {
-                        throw new CycleException();
-                    }
+var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
+    baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
 
-                    if (!_.has(visited, node)) {
-                        stack[node] = true;
-                        visited[node] = true;
-                        _.each(g.predecessors(node), visit);
-                        delete stack[node];
-                        results.push(node);
-                    }
-                }
+/**
+ * Creates an array of the own and inherited enumerable property names of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.0.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ * @example
+ *
+ * function Foo() {
+ *   this.a = 1;
+ *   this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.keysIn(new Foo);
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
+ */
+function keysIn(object) {
+  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
+}
 
-                _.each(g.sinks(), visit);
+module.exports = keysIn;
 
-                if (_.size(visited) !== g.nodeCount()) {
-                    throw new CycleException();
-                }
 
-                return results;
-            }
+/***/ }),
 
-            function CycleException() {}
-            CycleException.prototype = new Error(); // must be an instance of Error to pass testing
+/***/ "./node_modules/lodash/last.js":
+/*!*************************************!*\
+  !*** ./node_modules/lodash/last.js ***!
+  \*************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            /***/ }),
+/**
+ * Gets the last element of `array`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Array
+ * @param {Array} array The array to query.
+ * @returns {*} Returns the last element of `array`.
+ * @example
+ *
+ * _.last([1, 2, 3]);
+ * // => 3
+ */
+function last(array) {
+  var length = array == null ? 0 : array.length;
+  return length ? array[length - 1] : undefined;
+}
 
-        /***/ "./node_modules/graphlib/lib/data/priority-queue.js":
-        /*!**********************************************************!*\
-  !*** ./node_modules/graphlib/lib/data/priority-queue.js ***!
-  \**********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
-
-            module.exports = PriorityQueue;
-
-            /**
-             * A min-priority queue data structure. This algorithm is derived from Cormen,
-             * et al., "Introduction to Algorithms". The basic idea of a min-priority
-             * queue is that you can efficiently (in O(1) time) get the smallest key in
-             * the queue. Adding and removing elements takes O(log n) time. A key can
-             * have its priority decreased in O(log n) time.
-             */
-            function PriorityQueue() {
-                this._arr = [];
-                this._keyIndices = {};
-            }
+module.exports = last;
 
-            /**
-             * Returns the number of elements in the queue. Takes `O(1)` time.
-             */
-            PriorityQueue.prototype.size = function() {
-                return this._arr.length;
-            };
 
-            /**
-             * Returns the keys that are in the queue. Takes `O(n)` time.
-             */
-            PriorityQueue.prototype.keys = function() {
-                return this._arr.map(function(x) { return x.key; });
-            };
+/***/ }),
 
-            /**
-             * Returns `true` if **key** is in the queue and `false` if not.
-             */
-            PriorityQueue.prototype.has = function(key) {
-                return _.has(this._keyIndices, key);
-            };
+/***/ "./node_modules/lodash/lodash.js":
+/*!***************************************!*\
+  !*** ./node_modules/lodash/lodash.js ***!
+  \***************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
+ * @license
+ * Lodash <https://lodash.com/>
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+ * Released under MIT license <https://lodash.com/license>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
+;(function() {
+
+  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
+  var undefined;
+
+  /** Used as the semantic version number. */
+  var VERSION = '4.17.20';
+
+  /** Used as the size to enable large array optimizations. */
+  var LARGE_ARRAY_SIZE = 200;
+
+  /** Error message constants. */
+  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
+      FUNC_ERROR_TEXT = 'Expected a function';
+
+  /** Used to stand-in for `undefined` hash values. */
+  var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+  /** Used as the maximum memoize cache size. */
+  var MAX_MEMOIZE_SIZE = 500;
+
+  /** Used as the internal argument placeholder. */
+  var PLACEHOLDER = '__lodash_placeholder__';
+
+  /** Used to compose bitmasks for cloning. */
+  var CLONE_DEEP_FLAG = 1,
+      CLONE_FLAT_FLAG = 2,
+      CLONE_SYMBOLS_FLAG = 4;
+
+  /** Used to compose bitmasks for value comparisons. */
+  var COMPARE_PARTIAL_FLAG = 1,
+      COMPARE_UNORDERED_FLAG = 2;
+
+  /** Used to compose bitmasks for function metadata. */
+  var WRAP_BIND_FLAG = 1,
+      WRAP_BIND_KEY_FLAG = 2,
+      WRAP_CURRY_BOUND_FLAG = 4,
+      WRAP_CURRY_FLAG = 8,
+      WRAP_CURRY_RIGHT_FLAG = 16,
+      WRAP_PARTIAL_FLAG = 32,
+      WRAP_PARTIAL_RIGHT_FLAG = 64,
+      WRAP_ARY_FLAG = 128,
+      WRAP_REARG_FLAG = 256,
+      WRAP_FLIP_FLAG = 512;
+
+  /** Used as default options for `_.truncate`. */
+  var DEFAULT_TRUNC_LENGTH = 30,
+      DEFAULT_TRUNC_OMISSION = '...';
+
+  /** Used to detect hot functions by number of calls within a span of milliseconds. */
+  var HOT_COUNT = 800,
+      HOT_SPAN = 16;
+
+  /** Used to indicate the type of lazy iteratees. */
+  var LAZY_FILTER_FLAG = 1,
+      LAZY_MAP_FLAG = 2,
+      LAZY_WHILE_FLAG = 3;
+
+  /** Used as references for various `Number` constants. */
+  var INFINITY = 1 / 0,
+      MAX_SAFE_INTEGER = 9007199254740991,
+      MAX_INTEGER = 1.7976931348623157e+308,
+      NAN = 0 / 0;
+
+  /** Used as references for the maximum length and index of an array. */
+  var MAX_ARRAY_LENGTH = 4294967295,
+      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
+      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
+
+  /** Used to associate wrap methods with their bit flags. */
+  var wrapFlags = [
+    ['ary', WRAP_ARY_FLAG],
+    ['bind', WRAP_BIND_FLAG],
+    ['bindKey', WRAP_BIND_KEY_FLAG],
+    ['curry', WRAP_CURRY_FLAG],
+    ['curryRight', WRAP_CURRY_RIGHT_FLAG],
+    ['flip', WRAP_FLIP_FLAG],
+    ['partial', WRAP_PARTIAL_FLAG],
+    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
+    ['rearg', WRAP_REARG_FLAG]
+  ];
+
+  /** `Object#toString` result references. */
+  var argsTag = '[object Arguments]',
+      arrayTag = '[object Array]',
+      asyncTag = '[object AsyncFunction]',
+      boolTag = '[object Boolean]',
+      dateTag = '[object Date]',
+      domExcTag = '[object DOMException]',
+      errorTag = '[object Error]',
+      funcTag = '[object Function]',
+      genTag = '[object GeneratorFunction]',
+      mapTag = '[object Map]',
+      numberTag = '[object Number]',
+      nullTag = '[object Null]',
+      objectTag = '[object Object]',
+      promiseTag = '[object Promise]',
+      proxyTag = '[object Proxy]',
+      regexpTag = '[object RegExp]',
+      setTag = '[object Set]',
+      stringTag = '[object String]',
+      symbolTag = '[object Symbol]',
+      undefinedTag = '[object Undefined]',
+      weakMapTag = '[object WeakMap]',
+      weakSetTag = '[object WeakSet]';
+
+  var arrayBufferTag = '[object ArrayBuffer]',
+      dataViewTag = '[object DataView]',
+      float32Tag = '[object Float32Array]',
+      float64Tag = '[object Float64Array]',
+      int8Tag = '[object Int8Array]',
+      int16Tag = '[object Int16Array]',
+      int32Tag = '[object Int32Array]',
+      uint8Tag = '[object Uint8Array]',
+      uint8ClampedTag = '[object Uint8ClampedArray]',
+      uint16Tag = '[object Uint16Array]',
+      uint32Tag = '[object Uint32Array]';
+
+  /** Used to match empty string literals in compiled template source. */
+  var reEmptyStringLeading = /\b__p \+= '';/g,
+      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
+      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
+
+  /** Used to match HTML entities and HTML characters. */
+  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
+      reUnescapedHtml = /[&<>"']/g,
+      reHasEscapedHtml = RegExp(reEscapedHtml.source),
+      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
+
+  /** Used to match template delimiters. */
+  var reEscape = /<%-([\s\S]+?)%>/g,
+      reEvaluate = /<%([\s\S]+?)%>/g,
+      reInterpolate = /<%=([\s\S]+?)%>/g;
+
+  /** Used to match property names within property paths. */
+  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
+      reIsPlainProp = /^\w*$/,
+      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+
+  /**
+   * Used to match `RegExp`
+   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+   */
+  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
+      reHasRegExpChar = RegExp(reRegExpChar.source);
 
-            /**
-             * Returns the priority for **key**. If **key** is not present in the queue
-             * then this function returns `undefined`. Takes `O(1)` time.
-             *
-             * @param {Object} key
-             */
-            PriorityQueue.prototype.priority = function(key) {
-                var index = this._keyIndices[key];
-                if (index !== undefined) {
-                    return this._arr[index].priority;
-                }
-            };
+  /** Used to match leading and trailing whitespace. */
+  var reTrim = /^\s+|\s+$/g,
+      reTrimStart = /^\s+/,
+      reTrimEnd = /\s+$/;
 
-            /**
-             * Returns the key for the minimum element in this queue. If the queue is
-             * empty this function throws an Error. Takes `O(1)` time.
-             */
-            PriorityQueue.prototype.min = function() {
-                if (this.size() === 0) {
-                    throw new Error("Queue underflow");
-                }
-                return this._arr[0].key;
-            };
+  /** Used to match wrap detail comments. */
+  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
+      reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
+      reSplitDetails = /,? & /;
 
-            /**
-             * Inserts a new key into the priority queue. If the key already exists in
-             * the queue this function returns `false`; otherwise it will return `true`.
-             * Takes `O(n)` time.
-             *
-             * @param {Object} key the key to add
-             * @param {Number} priority the initial priority for the key
-             */
-            PriorityQueue.prototype.add = function(key, priority) {
-                var keyIndices = this._keyIndices;
-                key = String(key);
-                if (!_.has(keyIndices, key)) {
-                    var arr = this._arr;
-                    var index = arr.length;
-                    keyIndices[key] = index;
-                    arr.push({key: key, priority: priority});
-                    this._decrease(index);
-                    return true;
-                }
-                return false;
-            };
+  /** Used to match words composed of alphanumeric characters. */
+  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
 
-            /**
-             * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
-             */
-            PriorityQueue.prototype.removeMin = function() {
-                this._swap(0, this._arr.length - 1);
-                var min = this._arr.pop();
-                delete this._keyIndices[min.key];
-                this._heapify(0);
-                return min.key;
-            };
+  /** Used to match backslashes in property paths. */
+  var reEscapeChar = /\\(\\)?/g;
 
-            /**
-             * Decreases the priority for **key** to **priority**. If the new priority is
-             * greater than the previous priority, this function will throw an Error.
-             *
-             * @param {Object} key the key for which to raise priority
-             * @param {Number} priority the new priority for the key
-             */
-            PriorityQueue.prototype.decrease = function(key, priority) {
-                var index = this._keyIndices[key];
-                if (priority > this._arr[index].priority) {
-                    throw new Error("New priority is greater than current priority. " +
-                        "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
-                }
-                this._arr[index].priority = priority;
-                this._decrease(index);
-            };
+  /**
+   * Used to match
+   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
+   */
+  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
+
+  /** Used to match `RegExp` flags from their coerced string values. */
+  var reFlags = /\w*$/;
+
+  /** Used to detect bad signed hexadecimal string values. */
+  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
+
+  /** Used to detect binary string values. */
+  var reIsBinary = /^0b[01]+$/i;
+
+  /** Used to detect host constructors (Safari). */
+  var reIsHostCtor = /^\[object .+?Constructor\]$/;
+
+  /** Used to detect octal string values. */
+  var reIsOctal = /^0o[0-7]+$/i;
+
+  /** Used to detect unsigned integer values. */
+  var reIsUint = /^(?:0|[1-9]\d*)$/;
+
+  /** Used to match Latin Unicode letters (excluding mathematical operators). */
+  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
+
+  /** Used to ensure capturing order of template delimiters. */
+  var reNoMatch = /($^)/;
+
+  /** Used to match unescaped characters in compiled string literals. */
+  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
+
+  /** Used to compose unicode character classes. */
+  var rsAstralRange = '\\ud800-\\udfff',
+      rsComboMarksRange = '\\u0300-\\u036f',
+      reComboHalfMarksRange = '\\ufe20-\\ufe2f',
+      rsComboSymbolsRange = '\\u20d0-\\u20ff',
+      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
+      rsDingbatRange = '\\u2700-\\u27bf',
+      rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
+      rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
+      rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
+      rsPunctuationRange = '\\u2000-\\u206f',
+      rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
+      rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
+      rsVarRange = '\\ufe0e\\ufe0f',
+      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
+
+  /** Used to compose unicode capture groups. */
+  var rsApos = "['\u2019]",
+      rsAstral = '[' + rsAstralRange + ']',
+      rsBreak = '[' + rsBreakRange + ']',
+      rsCombo = '[' + rsComboRange + ']',
+      rsDigits = '\\d+',
+      rsDingbat = '[' + rsDingbatRange + ']',
+      rsLower = '[' + rsLowerRange + ']',
+      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
+      rsFitz = '\\ud83c[\\udffb-\\udfff]',
+      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
+      rsNonAstral = '[^' + rsAstralRange + ']',
+      rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
+      rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
+      rsUpper = '[' + rsUpperRange + ']',
+      rsZWJ = '\\u200d';
+
+  /** Used to compose unicode regexes. */
+  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
+      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
+      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
+      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
+      reOptMod = rsModifier + '?',
+      rsOptVar = '[' + rsVarRange + ']?',
+      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
+      rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
+      rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
+      rsSeq = rsOptVar + reOptMod + rsOptJoin,
+      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
+      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
+
+  /** Used to match apostrophes. */
+  var reApos = RegExp(rsApos, 'g');
+
+  /**
+   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
+   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
+   */
+  var reComboMark = RegExp(rsCombo, 'g');
+
+  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
+  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
+
+  /** Used to match complex or compound words. */
+  var reUnicodeWord = RegExp([
+    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
+    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
+    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
+    rsUpper + '+' + rsOptContrUpper,
+    rsOrdUpper,
+    rsOrdLower,
+    rsDigits,
+    rsEmoji
+  ].join('|'), 'g');
+
+  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
+  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');
+
+  /** Used to detect strings that need a more robust regexp to match words. */
+  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
+
+  /** Used to assign default `context` object properties. */
+  var contextProps = [
+    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
+    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
+    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
+    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
+    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
+  ];
+
+  /** Used to make template sourceURLs easier to identify. */
+  var templateCounter = -1;
+
+  /** Used to identify `toStringTag` values of typed arrays. */
+  var typedArrayTags = {};
+  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+  typedArrayTags[uint32Tag] = true;
+  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
+  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
+  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+  typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+  typedArrayTags[setTag] = typedArrayTags[stringTag] =
+  typedArrayTags[weakMapTag] = false;
+
+  /** Used to identify `toStringTag` values supported by `_.clone`. */
+  var cloneableTags = {};
+  cloneableTags[argsTag] = cloneableTags[arrayTag] =
+  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
+  cloneableTags[boolTag] = cloneableTags[dateTag] =
+  cloneableTags[float32Tag] = cloneableTags[float64Tag] =
+  cloneableTags[int8Tag] = cloneableTags[int16Tag] =
+  cloneableTags[int32Tag] = cloneableTags[mapTag] =
+  cloneableTags[numberTag] = cloneableTags[objectTag] =
+  cloneableTags[regexpTag] = cloneableTags[setTag] =
+  cloneableTags[stringTag] = cloneableTags[symbolTag] =
+  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
+  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
+  cloneableTags[errorTag] = cloneableTags[funcTag] =
+  cloneableTags[weakMapTag] = false;
+
+  /** Used to map Latin Unicode letters to basic Latin letters. */
+  var deburredLetters = {
+    // Latin-1 Supplement block.
+    '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
+    '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
+    '\xc7': 'C',  '\xe7': 'c',
+    '\xd0': 'D',  '\xf0': 'd',
+    '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
+    '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
+    '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
+    '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
+    '\xd1': 'N',  '\xf1': 'n',
+    '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
+    '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
+    '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
+    '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
+    '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
+    '\xc6': 'Ae', '\xe6': 'ae',
+    '\xde': 'Th', '\xfe': 'th',
+    '\xdf': 'ss',
+    // Latin Extended-A block.
+    '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
+    '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
+    '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
+    '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
+    '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
+    '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
+    '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
+    '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
+    '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
+    '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
+    '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
+    '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
+    '\u0134': 'J',  '\u0135': 'j',
+    '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
+    '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
+    '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
+    '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
+    '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
+    '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
+    '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
+    '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
+    '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
+    '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
+    '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
+    '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
+    '\u0163': 't',  '\u0165': 't', '\u0167': 't',
+    '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
+    '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
+    '\u0174': 'W',  '\u0175': 'w',
+    '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
+    '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
+    '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
+    '\u0132': 'IJ', '\u0133': 'ij',
+    '\u0152': 'Oe', '\u0153': 'oe',
+    '\u0149': "'n", '\u017f': 's'
+  };
+
+  /** Used to map characters to HTML entities. */
+  var htmlEscapes = {
+    '&': '&amp;',
+    '<': '&lt;',
+    '>': '&gt;',
+    '"': '&quot;',
+    "'": '&#39;'
+  };
+
+  /** Used to map HTML entities to characters. */
+  var htmlUnescapes = {
+    '&amp;': '&',
+    '&lt;': '<',
+    '&gt;': '>',
+    '&quot;': '"',
+    '&#39;': "'"
+  };
+
+  /** Used to escape characters for inclusion in compiled string literals. */
+  var stringEscapes = {
+    '\\': '\\',
+    "'": "'",
+    '\n': 'n',
+    '\r': 'r',
+    '\u2028': 'u2028',
+    '\u2029': 'u2029'
+  };
+
+  /** Built-in method references without a dependency on `root`. */
+  var freeParseFloat = parseFloat,
+      freeParseInt = parseInt;
+
+  /** Detect free variable `global` from Node.js. */
+  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
+
+  /** Detect free variable `self`. */
+  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
+
+  /** Used as a reference to the global object. */
+  var root = freeGlobal || freeSelf || Function('return this')();
+
+  /** Detect free variable `exports`. */
+  var freeExports =  true && exports && !exports.nodeType && exports;
+
+  /** Detect free variable `module`. */
+  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
+
+  /** Detect the popular CommonJS extension `module.exports`. */
+  var moduleExports = freeModule && freeModule.exports === freeExports;
+
+  /** Detect free variable `process` from Node.js. */
+  var freeProcess = moduleExports && freeGlobal.process;
+
+  /** Used to access faster Node.js helpers. */
+  var nodeUtil = (function() {
+    try {
+      // Use `util.types` for Node.js 10+.
+      var types = freeModule && freeModule.require && freeModule.require('util').types;
+
+      if (types) {
+        return types;
+      }
+
+      // Legacy `process.binding('util')` for Node.js < 10.
+      return freeProcess && freeProcess.binding && freeProcess.binding('util');
+    } catch (e) {}
+  }());
+
+  /* Node.js helper references. */
+  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
+      nodeIsDate = nodeUtil && nodeUtil.isDate,
+      nodeIsMap = nodeUtil && nodeUtil.isMap,
+      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
+      nodeIsSet = nodeUtil && nodeUtil.isSet,
+      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
+
+  /*--------------------------------------------------------------------------*/
+
+  /**
+   * A faster alternative to `Function#apply`, this function invokes `func`
+   * with the `this` binding of `thisArg` and the arguments of `args`.
+   *
+   * @private
+   * @param {Function} func The function to invoke.
+   * @param {*} thisArg The `this` binding of `func`.
+   * @param {Array} args The arguments to invoke `func` with.
+   * @returns {*} Returns the result of `func`.
+   */
+  function apply(func, thisArg, args) {
+    switch (args.length) {
+      case 0: return func.call(thisArg);
+      case 1: return func.call(thisArg, args[0]);
+      case 2: return func.call(thisArg, args[0], args[1]);
+      case 3: return func.call(thisArg, args[0], args[1], args[2]);
+    }
+    return func.apply(thisArg, args);
+  }
 
-            PriorityQueue.prototype._heapify = function(i) {
-                var arr = this._arr;
-                var l = 2 * i;
-                var r = l + 1;
-                var largest = i;
-                if (l < arr.length) {
-                    largest = arr[l].priority < arr[largest].priority ? l : largest;
-                    if (r < arr.length) {
-                        largest = arr[r].priority < arr[largest].priority ? r : largest;
-                    }
-                    if (largest !== i) {
-                        this._swap(i, largest);
-                        this._heapify(largest);
-                    }
-                }
-            };
+  /**
+   * A specialized version of `baseAggregator` for arrays.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} setter The function to set `accumulator` values.
+   * @param {Function} iteratee The iteratee to transform keys.
+   * @param {Object} accumulator The initial aggregated object.
+   * @returns {Function} Returns `accumulator`.
+   */
+  function arrayAggregator(array, setter, iteratee, accumulator) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
 
-            PriorityQueue.prototype._decrease = function(index) {
-                var arr = this._arr;
-                var priority = arr[index].priority;
-                var parent;
-                while (index !== 0) {
-                    parent = index >> 1;
-                    if (arr[parent].priority < priority) {
-                        break;
-                    }
-                    this._swap(index, parent);
-                    index = parent;
-                }
-            };
+    while (++index < length) {
+      var value = array[index];
+      setter(accumulator, value, iteratee(value), array);
+    }
+    return accumulator;
+  }
 
-            PriorityQueue.prototype._swap = function(i, j) {
-                var arr = this._arr;
-                var keyIndices = this._keyIndices;
-                var origArrI = arr[i];
-                var origArrJ = arr[j];
-                arr[i] = origArrJ;
-                arr[j] = origArrI;
-                keyIndices[origArrJ.key] = i;
-                keyIndices[origArrI.key] = j;
-            };
+  /**
+   * A specialized version of `_.forEach` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {Array} Returns `array`.
+   */
+  function arrayEach(array, iteratee) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
+
+    while (++index < length) {
+      if (iteratee(array[index], index, array) === false) {
+        break;
+      }
+    }
+    return array;
+  }
 
+  /**
+   * A specialized version of `_.forEachRight` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {Array} Returns `array`.
+   */
+  function arrayEachRight(array, iteratee) {
+    var length = array == null ? 0 : array.length;
 
-            /***/ }),
+    while (length--) {
+      if (iteratee(array[length], length, array) === false) {
+        break;
+      }
+    }
+    return array;
+  }
 
-        /***/ "./node_modules/graphlib/lib/graph.js":
-        /*!********************************************!*\
-  !*** ./node_modules/graphlib/lib/graph.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+  /**
+   * A specialized version of `_.every` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} predicate The function invoked per iteration.
+   * @returns {boolean} Returns `true` if all elements pass the predicate check,
+   *  else `false`.
+   */
+  function arrayEvery(array, predicate) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
+
+    while (++index < length) {
+      if (!predicate(array[index], index, array)) {
+        return false;
+      }
+    }
+    return true;
+  }
 
-            "use strict";
+  /**
+   * A specialized version of `_.filter` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} predicate The function invoked per iteration.
+   * @returns {Array} Returns the new filtered array.
+   */
+  function arrayFilter(array, predicate) {
+    var index = -1,
+        length = array == null ? 0 : array.length,
+        resIndex = 0,
+        result = [];
+
+    while (++index < length) {
+      var value = array[index];
+      if (predicate(value, index, array)) {
+        result[resIndex++] = value;
+      }
+    }
+    return result;
+  }
 
+  /**
+   * A specialized version of `_.includes` for arrays without support for
+   * specifying an index to search from.
+   *
+   * @private
+   * @param {Array} [array] The array to inspect.
+   * @param {*} target The value to search for.
+   * @returns {boolean} Returns `true` if `target` is found, else `false`.
+   */
+  function arrayIncludes(array, value) {
+    var length = array == null ? 0 : array.length;
+    return !!length && baseIndexOf(array, value, 0) > -1;
+  }
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
+  /**
+   * This function is like `arrayIncludes` except that it accepts a comparator.
+   *
+   * @private
+   * @param {Array} [array] The array to inspect.
+   * @param {*} target The value to search for.
+   * @param {Function} comparator The comparator invoked per element.
+   * @returns {boolean} Returns `true` if `target` is found, else `false`.
+   */
+  function arrayIncludesWith(array, value, comparator) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
+
+    while (++index < length) {
+      if (comparator(value, array[index])) {
+        return true;
+      }
+    }
+    return false;
+  }
 
-            module.exports = Graph;
+  /**
+   * A specialized version of `_.map` for arrays without support for iteratee
+   * shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {Array} Returns the new mapped array.
+   */
+  function arrayMap(array, iteratee) {
+    var index = -1,
+        length = array == null ? 0 : array.length,
+        result = Array(length);
 
-            var DEFAULT_EDGE_NAME = "\x00";
-            var GRAPH_NODE = "\x00";
-            var EDGE_KEY_DELIM = "\x01";
+    while (++index < length) {
+      result[index] = iteratee(array[index], index, array);
+    }
+    return result;
+  }
 
-// Implementation notes:
-//
-//  * Node id query functions should return string ids for the nodes
-//  * Edge id query functions should return an "edgeObj", edge object, that is
-//    composed of enough information to uniquely identify an edge: {v, w, name}.
-//  * Internally we use an "edgeId", a stringified form of the edgeObj, to
-//    reference edges. This is because we need a performant way to look these
-//    edges up and, object properties, which have string keys, are the closest
-//    we're going to get to a performant hashtable in JavaScript.
+  /**
+   * Appends the elements of `values` to `array`.
+   *
+   * @private
+   * @param {Array} array The array to modify.
+   * @param {Array} values The values to append.
+   * @returns {Array} Returns `array`.
+   */
+  function arrayPush(array, values) {
+    var index = -1,
+        length = values.length,
+        offset = array.length;
 
-            function Graph(opts) {
-                this._isDirected = _.has(opts, "directed") ? opts.directed : true;
-                this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
-                this._isCompound = _.has(opts, "compound") ? opts.compound : false;
+    while (++index < length) {
+      array[offset + index] = values[index];
+    }
+    return array;
+  }
 
-                // Label for the graph itself
-                this._label = undefined;
+  /**
+   * A specialized version of `_.reduce` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @param {*} [accumulator] The initial value.
+   * @param {boolean} [initAccum] Specify using the first element of `array` as
+   *  the initial value.
+   * @returns {*} Returns the accumulated value.
+   */
+  function arrayReduce(array, iteratee, accumulator, initAccum) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
 
-                // Defaults to be set when creating a new node
-                this._defaultNodeLabelFn = _.constant(undefined);
+    if (initAccum && length) {
+      accumulator = array[++index];
+    }
+    while (++index < length) {
+      accumulator = iteratee(accumulator, array[index], index, array);
+    }
+    return accumulator;
+  }
 
-                // Defaults to be set when creating a new edge
-                this._defaultEdgeLabelFn = _.constant(undefined);
+  /**
+   * A specialized version of `_.reduceRight` for arrays without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @param {*} [accumulator] The initial value.
+   * @param {boolean} [initAccum] Specify using the last element of `array` as
+   *  the initial value.
+   * @returns {*} Returns the accumulated value.
+   */
+  function arrayReduceRight(array, iteratee, accumulator, initAccum) {
+    var length = array == null ? 0 : array.length;
+    if (initAccum && length) {
+      accumulator = array[--length];
+    }
+    while (length--) {
+      accumulator = iteratee(accumulator, array[length], length, array);
+    }
+    return accumulator;
+  }
 
-                // v -> label
-                this._nodes = {};
+  /**
+   * A specialized version of `_.some` for arrays without support for iteratee
+   * shorthands.
+   *
+   * @private
+   * @param {Array} [array] The array to iterate over.
+   * @param {Function} predicate The function invoked per iteration.
+   * @returns {boolean} Returns `true` if any element passes the predicate check,
+   *  else `false`.
+   */
+  function arraySome(array, predicate) {
+    var index = -1,
+        length = array == null ? 0 : array.length;
+
+    while (++index < length) {
+      if (predicate(array[index], index, array)) {
+        return true;
+      }
+    }
+    return false;
+  }
 
-                if (this._isCompound) {
-                    // v -> parent
-                    this._parent = {};
+  /**
+   * Gets the size of an ASCII `string`.
+   *
+   * @private
+   * @param {string} string The string inspect.
+   * @returns {number} Returns the string size.
+   */
+  var asciiSize = baseProperty('length');
+
+  /**
+   * Converts an ASCII `string` to an array.
+   *
+   * @private
+   * @param {string} string The string to convert.
+   * @returns {Array} Returns the converted array.
+   */
+  function asciiToArray(string) {
+    return string.split('');
+  }
 
-                    // v -> children
-                    this._children = {};
-                    this._children[GRAPH_NODE] = {};
-                }
+  /**
+   * Splits an ASCII `string` into an array of its words.
+   *
+   * @private
+   * @param {string} The string to inspect.
+   * @returns {Array} Returns the words of `string`.
+   */
+  function asciiWords(string) {
+    return string.match(reAsciiWord) || [];
+  }
 
-                // v -> edgeObj
-                this._in = {};
+  /**
+   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
+   * without support for iteratee shorthands, which iterates over `collection`
+   * using `eachFunc`.
+   *
+   * @private
+   * @param {Array|Object} collection The collection to inspect.
+   * @param {Function} predicate The function invoked per iteration.
+   * @param {Function} eachFunc The function to iterate over `collection`.
+   * @returns {*} Returns the found element or its key, else `undefined`.
+   */
+  function baseFindKey(collection, predicate, eachFunc) {
+    var result;
+    eachFunc(collection, function(value, key, collection) {
+      if (predicate(value, key, collection)) {
+        result = key;
+        return false;
+      }
+    });
+    return result;
+  }
 
-                // u -> v -> Number
-                this._preds = {};
+  /**
+   * The base implementation of `_.findIndex` and `_.findLastIndex` without
+   * support for iteratee shorthands.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {Function} predicate The function invoked per iteration.
+   * @param {number} fromIndex The index to search from.
+   * @param {boolean} [fromRight] Specify iterating from right to left.
+   * @returns {number} Returns the index of the matched value, else `-1`.
+   */
+  function baseFindIndex(array, predicate, fromIndex, fromRight) {
+    var length = array.length,
+        index = fromIndex + (fromRight ? 1 : -1);
+
+    while ((fromRight ? index-- : ++index < length)) {
+      if (predicate(array[index], index, array)) {
+        return index;
+      }
+    }
+    return -1;
+  }
 
-                // v -> edgeObj
-                this._out = {};
+  /**
+   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {*} value The value to search for.
+   * @param {number} fromIndex The index to search from.
+   * @returns {number} Returns the index of the matched value, else `-1`.
+   */
+  function baseIndexOf(array, value, fromIndex) {
+    return value === value
+      ? strictIndexOf(array, value, fromIndex)
+      : baseFindIndex(array, baseIsNaN, fromIndex);
+  }
 
-                // v -> w -> Number
-                this._sucs = {};
+  /**
+   * This function is like `baseIndexOf` except that it accepts a comparator.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {*} value The value to search for.
+   * @param {number} fromIndex The index to search from.
+   * @param {Function} comparator The comparator invoked per element.
+   * @returns {number} Returns the index of the matched value, else `-1`.
+   */
+  function baseIndexOfWith(array, value, fromIndex, comparator) {
+    var index = fromIndex - 1,
+        length = array.length;
+
+    while (++index < length) {
+      if (comparator(array[index], value)) {
+        return index;
+      }
+    }
+    return -1;
+  }
 
-                // e -> edgeObj
-                this._edgeObjs = {};
+  /**
+   * The base implementation of `_.isNaN` without support for number objects.
+   *
+   * @private
+   * @param {*} value The value to check.
+   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
+   */
+  function baseIsNaN(value) {
+    return value !== value;
+  }
 
-                // e -> label
-                this._edgeLabels = {};
-            }
+  /**
+   * The base implementation of `_.mean` and `_.meanBy` without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} array The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {number} Returns the mean.
+   */
+  function baseMean(array, iteratee) {
+    var length = array == null ? 0 : array.length;
+    return length ? (baseSum(array, iteratee) / length) : NAN;
+  }
 
-            /* Number of nodes in the graph. Should only be changed by the implementation. */
-            Graph.prototype._nodeCount = 0;
+  /**
+   * The base implementation of `_.property` without support for deep paths.
+   *
+   * @private
+   * @param {string} key The key of the property to get.
+   * @returns {Function} Returns the new accessor function.
+   */
+  function baseProperty(key) {
+    return function(object) {
+      return object == null ? undefined : object[key];
+    };
+  }
 
-            /* Number of edges in the graph. Should only be changed by the implementation. */
-            Graph.prototype._edgeCount = 0;
+  /**
+   * The base implementation of `_.propertyOf` without support for deep paths.
+   *
+   * @private
+   * @param {Object} object The object to query.
+   * @returns {Function} Returns the new accessor function.
+   */
+  function basePropertyOf(object) {
+    return function(key) {
+      return object == null ? undefined : object[key];
+    };
+  }
 
+  /**
+   * The base implementation of `_.reduce` and `_.reduceRight`, without support
+   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
+   *
+   * @private
+   * @param {Array|Object} collection The collection to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @param {*} accumulator The initial value.
+   * @param {boolean} initAccum Specify using the first or last element of
+   *  `collection` as the initial value.
+   * @param {Function} eachFunc The function to iterate over `collection`.
+   * @returns {*} Returns the accumulated value.
+   */
+  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
+    eachFunc(collection, function(value, index, collection) {
+      accumulator = initAccum
+        ? (initAccum = false, value)
+        : iteratee(accumulator, value, index, collection);
+    });
+    return accumulator;
+  }
 
-            /* === Graph functions ========= */
+  /**
+   * The base implementation of `_.sortBy` which uses `comparer` to define the
+   * sort order of `array` and replaces criteria objects with their corresponding
+   * values.
+   *
+   * @private
+   * @param {Array} array The array to sort.
+   * @param {Function} comparer The function to define sort order.
+   * @returns {Array} Returns `array`.
+   */
+  function baseSortBy(array, comparer) {
+    var length = array.length;
 
-            Graph.prototype.isDirected = function() {
-                return this._isDirected;
-            };
+    array.sort(comparer);
+    while (length--) {
+      array[length] = array[length].value;
+    }
+    return array;
+  }
 
-            Graph.prototype.isMultigraph = function() {
-                return this._isMultigraph;
-            };
+  /**
+   * The base implementation of `_.sum` and `_.sumBy` without support for
+   * iteratee shorthands.
+   *
+   * @private
+   * @param {Array} array The array to iterate over.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {number} Returns the sum.
+   */
+  function baseSum(array, iteratee) {
+    var result,
+        index = -1,
+        length = array.length;
+
+    while (++index < length) {
+      var current = iteratee(array[index]);
+      if (current !== undefined) {
+        result = result === undefined ? current : (result + current);
+      }
+    }
+    return result;
+  }
 
-            Graph.prototype.isCompound = function() {
-                return this._isCompound;
-            };
+  /**
+   * The base implementation of `_.times` without support for iteratee shorthands
+   * or max array length checks.
+   *
+   * @private
+   * @param {number} n The number of times to invoke `iteratee`.
+   * @param {Function} iteratee The function invoked per iteration.
+   * @returns {Array} Returns the array of results.
+   */
+  function baseTimes(n, iteratee) {
+    var index = -1,
+        result = Array(n);
 
-            Graph.prototype.setGraph = function(label) {
-                this._label = label;
-                return this;
-            };
+    while (++index < n) {
+      result[index] = iteratee(index);
+    }
+    return result;
+  }
 
-            Graph.prototype.graph = function() {
-                return this._label;
-            };
+  /**
+   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
+   * of key-value pairs for `object` corresponding to the property names of `props`.
+   *
+   * @private
+   * @param {Object} object The object to query.
+   * @param {Array} props The property names to get values for.
+   * @returns {Object} Returns the key-value pairs.
+   */
+  function baseToPairs(object, props) {
+    return arrayMap(props, function(key) {
+      return [key, object[key]];
+    });
+  }
 
+  /**
+   * The base implementation of `_.unary` without support for storing metadata.
+   *
+   * @private
+   * @param {Function} func The function to cap arguments for.
+   * @returns {Function} Returns the new capped function.
+   */
+  function baseUnary(func) {
+    return function(value) {
+      return func(value);
+    };
+  }
 
-            /* === Node functions ========== */
+  /**
+   * The base implementation of `_.values` and `_.valuesIn` which creates an
+   * array of `object` property values corresponding to the property names
+   * of `props`.
+   *
+   * @private
+   * @param {Object} object The object to query.
+   * @param {Array} props The property names to get values for.
+   * @returns {Object} Returns the array of property values.
+   */
+  function baseValues(object, props) {
+    return arrayMap(props, function(key) {
+      return object[key];
+    });
+  }
 
-            Graph.prototype.setDefaultNodeLabel = function(newDefault) {
-                if (!_.isFunction(newDefault)) {
-                    newDefault = _.constant(newDefault);
-                }
-                this._defaultNodeLabelFn = newDefault;
-                return this;
-            };
+  /**
+   * Checks if a `cache` value for `key` exists.
+   *
+   * @private
+   * @param {Object} cache The cache to query.
+   * @param {string} key The key of the entry to check.
+   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+   */
+  function cacheHas(cache, key) {
+    return cache.has(key);
+  }
 
-            Graph.prototype.nodeCount = function() {
-                return this._nodeCount;
-            };
+  /**
+   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
+   * that is not found in the character symbols.
+   *
+   * @private
+   * @param {Array} strSymbols The string symbols to inspect.
+   * @param {Array} chrSymbols The character symbols to find.
+   * @returns {number} Returns the index of the first unmatched string symbol.
+   */
+  function charsStartIndex(strSymbols, chrSymbols) {
+    var index = -1,
+        length = strSymbols.length;
 
-            Graph.prototype.nodes = function() {
-                return _.keys(this._nodes);
-            };
+    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
+    return index;
+  }
 
-            Graph.prototype.sources = function() {
-                var self = this;
-                return _.filter(this.nodes(), function(v) {
-                    return _.isEmpty(self._in[v]);
-                });
-            };
+  /**
+   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
+   * that is not found in the character symbols.
+   *
+   * @private
+   * @param {Array} strSymbols The string symbols to inspect.
+   * @param {Array} chrSymbols The character symbols to find.
+   * @returns {number} Returns the index of the last unmatched string symbol.
+   */
+  function charsEndIndex(strSymbols, chrSymbols) {
+    var index = strSymbols.length;
 
-            Graph.prototype.sinks = function() {
-                var self = this;
-                return _.filter(this.nodes(), function(v) {
-                    return _.isEmpty(self._out[v]);
-                });
-            };
+    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
+    return index;
+  }
 
-            Graph.prototype.setNodes = function(vs, value) {
-                var args = arguments;
-                var self = this;
-                _.each(vs, function(v) {
-                    if (args.length > 1) {
-                        self.setNode(v, value);
-                    } else {
-                        self.setNode(v);
-                    }
-                });
-                return this;
-            };
+  /**
+   * Gets the number of `placeholder` occurrences in `array`.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {*} placeholder The placeholder to search for.
+   * @returns {number} Returns the placeholder count.
+   */
+  function countHolders(array, placeholder) {
+    var length = array.length,
+        result = 0;
+
+    while (length--) {
+      if (array[length] === placeholder) {
+        ++result;
+      }
+    }
+    return result;
+  }
 
-            Graph.prototype.setNode = function(v, value) {
-                if (_.has(this._nodes, v)) {
-                    if (arguments.length > 1) {
-                        this._nodes[v] = value;
-                    }
-                    return this;
-                }
+  /**
+   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
+   * letters to basic Latin letters.
+   *
+   * @private
+   * @param {string} letter The matched letter to deburr.
+   * @returns {string} Returns the deburred letter.
+   */
+  var deburrLetter = basePropertyOf(deburredLetters);
+
+  /**
+   * Used by `_.escape` to convert characters to HTML entities.
+   *
+   * @private
+   * @param {string} chr The matched character to escape.
+   * @returns {string} Returns the escaped character.
+   */
+  var escapeHtmlChar = basePropertyOf(htmlEscapes);
+
+  /**
+   * Used by `_.template` to escape characters for inclusion in compiled string literals.
+   *
+   * @private
+   * @param {string} chr The matched character to escape.
+   * @returns {string} Returns the escaped character.
+   */
+  function escapeStringChar(chr) {
+    return '\\' + stringEscapes[chr];
+  }
 
-                this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
-                if (this._isCompound) {
-                    this._parent[v] = GRAPH_NODE;
-                    this._children[v] = {};
-                    this._children[GRAPH_NODE][v] = true;
-                }
-                this._in[v] = {};
-                this._preds[v] = {};
-                this._out[v] = {};
-                this._sucs[v] = {};
-                ++this._nodeCount;
-                return this;
-            };
+  /**
+   * Gets the value at `key` of `object`.
+   *
+   * @private
+   * @param {Object} [object] The object to query.
+   * @param {string} key The key of the property to get.
+   * @returns {*} Returns the property value.
+   */
+  function getValue(object, key) {
+    return object == null ? undefined : object[key];
+  }
 
-            Graph.prototype.node = function(v) {
-                return this._nodes[v];
-            };
+  /**
+   * Checks if `string` contains Unicode symbols.
+   *
+   * @private
+   * @param {string} string The string to inspect.
+   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
+   */
+  function hasUnicode(string) {
+    return reHasUnicode.test(string);
+  }
 
-            Graph.prototype.hasNode = function(v) {
-                return _.has(this._nodes, v);
-            };
+  /**
+   * Checks if `string` contains a word composed of Unicode symbols.
+   *
+   * @private
+   * @param {string} string The string to inspect.
+   * @returns {boolean} Returns `true` if a word is found, else `false`.
+   */
+  function hasUnicodeWord(string) {
+    return reHasUnicodeWord.test(string);
+  }
 
-            Graph.prototype.removeNode =  function(v) {
-                var self = this;
-                if (_.has(this._nodes, v)) {
-                    var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
-                    delete this._nodes[v];
-                    if (this._isCompound) {
-                        this._removeFromParentsChildList(v);
-                        delete this._parent[v];
-                        _.each(this.children(v), function(child) {
-                            self.setParent(child);
-                        });
-                        delete this._children[v];
-                    }
-                    _.each(_.keys(this._in[v]), removeEdge);
-                    delete this._in[v];
-                    delete this._preds[v];
-                    _.each(_.keys(this._out[v]), removeEdge);
-                    delete this._out[v];
-                    delete this._sucs[v];
-                    --this._nodeCount;
-                }
-                return this;
-            };
+  /**
+   * Converts `iterator` to an array.
+   *
+   * @private
+   * @param {Object} iterator The iterator to convert.
+   * @returns {Array} Returns the converted array.
+   */
+  function iteratorToArray(iterator) {
+    var data,
+        result = [];
 
-            Graph.prototype.setParent = function(v, parent) {
-                if (!this._isCompound) {
-                    throw new Error("Cannot set parent in a non-compound graph");
-                }
+    while (!(data = iterator.next()).done) {
+      result.push(data.value);
+    }
+    return result;
+  }
 
-                if (_.isUndefined(parent)) {
-                    parent = GRAPH_NODE;
-                } else {
-                    // Coerce parent to string
-                    parent += "";
-                    for (var ancestor = parent;
-                         !_.isUndefined(ancestor);
-                         ancestor = this.parent(ancestor)) {
-                        if (ancestor === v) {
-                            throw new Error("Setting " + parent+ " as parent of " + v +
-                                " would create a cycle");
-                        }
-                    }
+  /**
+   * Converts `map` to its key-value pairs.
+   *
+   * @private
+   * @param {Object} map The map to convert.
+   * @returns {Array} Returns the key-value pairs.
+   */
+  function mapToArray(map) {
+    var index = -1,
+        result = Array(map.size);
+
+    map.forEach(function(value, key) {
+      result[++index] = [key, value];
+    });
+    return result;
+  }
 
-                    this.setNode(parent);
-                }
+  /**
+   * Creates a unary function that invokes `func` with its argument transformed.
+   *
+   * @private
+   * @param {Function} func The function to wrap.
+   * @param {Function} transform The argument transform.
+   * @returns {Function} Returns the new function.
+   */
+  function overArg(func, transform) {
+    return function(arg) {
+      return func(transform(arg));
+    };
+  }
 
-                this.setNode(v);
-                this._removeFromParentsChildList(v);
-                this._parent[v] = parent;
-                this._children[parent][v] = true;
-                return this;
-            };
+  /**
+   * Replaces all `placeholder` elements in `array` with an internal placeholder
+   * and returns an array of their indexes.
+   *
+   * @private
+   * @param {Array} array The array to modify.
+   * @param {*} placeholder The placeholder to replace.
+   * @returns {Array} Returns the new array of placeholder indexes.
+   */
+  function replaceHolders(array, placeholder) {
+    var index = -1,
+        length = array.length,
+        resIndex = 0,
+        result = [];
+
+    while (++index < length) {
+      var value = array[index];
+      if (value === placeholder || value === PLACEHOLDER) {
+        array[index] = PLACEHOLDER;
+        result[resIndex++] = index;
+      }
+    }
+    return result;
+  }
 
-            Graph.prototype._removeFromParentsChildList = function(v) {
-                delete this._children[this._parent[v]][v];
-            };
+  /**
+   * Converts `set` to an array of its values.
+   *
+   * @private
+   * @param {Object} set The set to convert.
+   * @returns {Array} Returns the values.
+   */
+  function setToArray(set) {
+    var index = -1,
+        result = Array(set.size);
+
+    set.forEach(function(value) {
+      result[++index] = value;
+    });
+    return result;
+  }
 
-            Graph.prototype.parent = function(v) {
-                if (this._isCompound) {
-                    var parent = this._parent[v];
-                    if (parent !== GRAPH_NODE) {
-                        return parent;
-                    }
-                }
-            };
+  /**
+   * Converts `set` to its value-value pairs.
+   *
+   * @private
+   * @param {Object} set The set to convert.
+   * @returns {Array} Returns the value-value pairs.
+   */
+  function setToPairs(set) {
+    var index = -1,
+        result = Array(set.size);
+
+    set.forEach(function(value) {
+      result[++index] = [value, value];
+    });
+    return result;
+  }
 
-            Graph.prototype.children = function(v) {
-                if (_.isUndefined(v)) {
-                    v = GRAPH_NODE;
-                }
+  /**
+   * A specialized version of `_.indexOf` which performs strict equality
+   * comparisons of values, i.e. `===`.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {*} value The value to search for.
+   * @param {number} fromIndex The index to search from.
+   * @returns {number} Returns the index of the matched value, else `-1`.
+   */
+  function strictIndexOf(array, value, fromIndex) {
+    var index = fromIndex - 1,
+        length = array.length;
+
+    while (++index < length) {
+      if (array[index] === value) {
+        return index;
+      }
+    }
+    return -1;
+  }
 
-                if (this._isCompound) {
-                    var children = this._children[v];
-                    if (children) {
-                        return _.keys(children);
-                    }
-                } else if (v === GRAPH_NODE) {
-                    return this.nodes();
-                } else if (this.hasNode(v)) {
-                    return [];
-                }
-            };
+  /**
+   * A specialized version of `_.lastIndexOf` which performs strict equality
+   * comparisons of values, i.e. `===`.
+   *
+   * @private
+   * @param {Array} array The array to inspect.
+   * @param {*} value The value to search for.
+   * @param {number} fromIndex The index to search from.
+   * @returns {number} Returns the index of the matched value, else `-1`.
+   */
+  function strictLastIndexOf(array, value, fromIndex) {
+    var index = fromIndex + 1;
+    while (index--) {
+      if (array[index] === value) {
+        return index;
+      }
+    }
+    return index;
+  }
 
-            Graph.prototype.predecessors = function(v) {
-                var predsV = this._preds[v];
-                if (predsV) {
-                    return _.keys(predsV);
-                }
-            };
+  /**
+   * Gets the number of symbols in `string`.
+   *
+   * @private
+   * @param {string} string The string to inspect.
+   * @returns {number} Returns the string size.
+   */
+  function stringSize(string) {
+    return hasUnicode(string)
+      ? unicodeSize(string)
+      : asciiSize(string);
+  }
 
-            Graph.prototype.successors = function(v) {
-                var sucsV = this._sucs[v];
-                if (sucsV) {
-                    return _.keys(sucsV);
-                }
-            };
+  /**
+   * Converts `string` to an array.
+   *
+   * @private
+   * @param {string} string The string to convert.
+   * @returns {Array} Returns the converted array.
+   */
+  function stringToArray(string) {
+    return hasUnicode(string)
+      ? unicodeToArray(string)
+      : asciiToArray(string);
+  }
 
-            Graph.prototype.neighbors = function(v) {
-                var preds = this.predecessors(v);
-                if (preds) {
-                    return _.union(preds, this.successors(v));
-                }
-            };
+  /**
+   * Used by `_.unescape` to convert HTML entities to characters.
+   *
+   * @private
+   * @param {string} chr The matched character to unescape.
+   * @returns {string} Returns the unescaped character.
+   */
+  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
+
+  /**
+   * Gets the size of a Unicode `string`.
+   *
+   * @private
+   * @param {string} string The string inspect.
+   * @returns {number} Returns the string size.
+   */
+  function unicodeSize(string) {
+    var result = reUnicode.lastIndex = 0;
+    while (reUnicode.test(string)) {
+      ++result;
+    }
+    return result;
+  }
 
-            Graph.prototype.isLeaf = function (v) {
-                var neighbors;
-                if (this.isDirected()) {
-                    neighbors = this.successors(v);
-                } else {
-                    neighbors = this.neighbors(v);
-                }
-                return neighbors.length === 0;
-            };
+  /**
+   * Converts a Unicode `string` to an array.
+   *
+   * @private
+   * @param {string} string The string to convert.
+   * @returns {Array} Returns the converted array.
+   */
+  function unicodeToArray(string) {
+    return string.match(reUnicode) || [];
+  }
 
-            Graph.prototype.filterNodes = function(filter) {
-                var copy = new this.constructor({
-                    directed: this._isDirected,
-                    multigraph: this._isMultigraph,
-                    compound: this._isCompound
-                });
+  /**
+   * Splits a Unicode `string` into an array of its words.
+   *
+   * @private
+   * @param {string} The string to inspect.
+   * @returns {Array} Returns the words of `string`.
+   */
+  function unicodeWords(string) {
+    return string.match(reUnicodeWord) || [];
+  }
 
-                copy.setGraph(this.graph());
+  /*--------------------------------------------------------------------------*/
+
+  /**
+   * Create a new pristine `lodash` function using the `context` object.
+   *
+   * @static
+   * @memberOf _
+   * @since 1.1.0
+   * @category Util
+   * @param {Object} [context=root] The context object.
+   * @returns {Function} Returns a new `lodash` function.
+   * @example
+   *
+   * _.mixin({ 'foo': _.constant('foo') });
+   *
+   * var lodash = _.runInContext();
+   * lodash.mixin({ 'bar': lodash.constant('bar') });
+   *
+   * _.isFunction(_.foo);
+   * // => true
+   * _.isFunction(_.bar);
+   * // => false
+   *
+   * lodash.isFunction(lodash.foo);
+   * // => false
+   * lodash.isFunction(lodash.bar);
+   * // => true
+   *
+   * // Create a suped-up `defer` in Node.js.
+   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
+   */
+  var runInContext = (function runInContext(context) {
+    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
+
+    /** Built-in constructor references. */
+    var Array = context.Array,
+        Date = context.Date,
+        Error = context.Error,
+        Function = context.Function,
+        Math = context.Math,
+        Object = context.Object,
+        RegExp = context.RegExp,
+        String = context.String,
+        TypeError = context.TypeError;
+
+    /** Used for built-in method references. */
+    var arrayProto = Array.prototype,
+        funcProto = Function.prototype,
+        objectProto = Object.prototype;
+
+    /** Used to detect overreaching core-js shims. */
+    var coreJsData = context['__core-js_shared__'];
+
+    /** Used to resolve the decompiled source of functions. */
+    var funcToString = funcProto.toString;
+
+    /** Used to check objects for own properties. */
+    var hasOwnProperty = objectProto.hasOwnProperty;
+
+    /** Used to generate unique IDs. */
+    var idCounter = 0;
+
+    /** Used to detect methods masquerading as native. */
+    var maskSrcKey = (function() {
+      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
+      return uid ? ('Symbol(src)_1.' + uid) : '';
+    }());
+
+    /**
+     * Used to resolve the
+     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+     * of values.
+     */
+    var nativeObjectToString = objectProto.toString;
+
+    /** Used to infer the `Object` constructor. */
+    var objectCtorString = funcToString.call(Object);
+
+    /** Used to restore the original `_` reference in `_.noConflict`. */
+    var oldDash = root._;
+
+    /** Used to detect if a method is native. */
+    var reIsNative = RegExp('^' +
+      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
+      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
+    );
+
+    /** Built-in value references. */
+    var Buffer = moduleExports ? context.Buffer : undefined,
+        Symbol = context.Symbol,
+        Uint8Array = context.Uint8Array,
+        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
+        getPrototype = overArg(Object.getPrototypeOf, Object),
+        objectCreate = Object.create,
+        propertyIsEnumerable = objectProto.propertyIsEnumerable,
+        splice = arrayProto.splice,
+        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
+        symIterator = Symbol ? Symbol.iterator : undefined,
+        symToStringTag = Symbol ? Symbol.toStringTag : undefined;
+
+    var defineProperty = (function() {
+      try {
+        var func = getNative(Object, 'defineProperty');
+        func({}, '', {});
+        return func;
+      } catch (e) {}
+    }());
+
+    /** Mocked built-ins. */
+    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
+        ctxNow = Date && Date.now !== root.Date.now && Date.now,
+        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
+
+    /* Built-in method references for those with the same name as other `lodash` methods. */
+    var nativeCeil = Math.ceil,
+        nativeFloor = Math.floor,
+        nativeGetSymbols = Object.getOwnPropertySymbols,
+        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
+        nativeIsFinite = context.isFinite,
+        nativeJoin = arrayProto.join,
+        nativeKeys = overArg(Object.keys, Object),
+        nativeMax = Math.max,
+        nativeMin = Math.min,
+        nativeNow = Date.now,
+        nativeParseInt = context.parseInt,
+        nativeRandom = Math.random,
+        nativeReverse = arrayProto.reverse;
+
+    /* Built-in method references that are verified to be native. */
+    var DataView = getNative(context, 'DataView'),
+        Map = getNative(context, 'Map'),
+        Promise = getNative(context, 'Promise'),
+        Set = getNative(context, 'Set'),
+        WeakMap = getNative(context, 'WeakMap'),
+        nativeCreate = getNative(Object, 'create');
+
+    /** Used to store function metadata. */
+    var metaMap = WeakMap && new WeakMap;
+
+    /** Used to lookup unminified function names. */
+    var realNames = {};
+
+    /** Used to detect maps, sets, and weakmaps. */
+    var dataViewCtorString = toSource(DataView),
+        mapCtorString = toSource(Map),
+        promiseCtorString = toSource(Promise),
+        setCtorString = toSource(Set),
+        weakMapCtorString = toSource(WeakMap);
+
+    /** Used to convert symbols to primitives and strings. */
+    var symbolProto = Symbol ? Symbol.prototype : undefined,
+        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
+        symbolToString = symbolProto ? symbolProto.toString : undefined;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a `lodash` object which wraps `value` to enable implicit method
+     * chain sequences. Methods that operate on and return arrays, collections,
+     * and functions can be chained together. Methods that retrieve a single value
+     * or may return a primitive value will automatically end the chain sequence
+     * and return the unwrapped value. Otherwise, the value must be unwrapped
+     * with `_#value`.
+     *
+     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
+     * enabled using `_.chain`.
+     *
+     * The execution of chained methods is lazy, that is, it's deferred until
+     * `_#value` is implicitly or explicitly called.
+     *
+     * Lazy evaluation allows several methods to support shortcut fusion.
+     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
+     * the creation of intermediate arrays and can greatly reduce the number of
+     * iteratee executions. Sections of a chain sequence qualify for shortcut
+     * fusion if the section is applied to an array and iteratees accept only
+     * one argument. The heuristic for whether a section qualifies for shortcut
+     * fusion is subject to change.
+     *
+     * Chaining is supported in custom builds as long as the `_#value` method is
+     * directly or indirectly included in the build.
+     *
+     * In addition to lodash methods, wrappers have `Array` and `String` methods.
+     *
+     * The wrapper `Array` methods are:
+     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
+     *
+     * The wrapper `String` methods are:
+     * `replace` and `split`
+     *
+     * The wrapper methods that support shortcut fusion are:
+     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
+     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
+     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
+     *
+     * The chainable wrapper methods are:
+     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
+     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
+     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
+     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
+     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
+     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
+     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
+     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
+     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
+     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
+     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
+     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
+     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
+     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
+     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
+     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
+     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
+     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
+     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
+     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
+     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
+     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
+     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
+     * `zipObject`, `zipObjectDeep`, and `zipWith`
+     *
+     * The wrapper methods that are **not** chainable by default are:
+     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
+     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
+     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
+     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
+     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
+     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
+     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
+     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
+     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
+     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
+     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
+     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
+     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
+     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
+     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
+     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
+     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
+     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
+     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
+     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
+     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
+     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
+     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
+     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
+     * `upperFirst`, `value`, and `words`
+     *
+     * @name _
+     * @constructor
+     * @category Seq
+     * @param {*} value The value to wrap in a `lodash` instance.
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * var wrapped = _([1, 2, 3]);
+     *
+     * // Returns an unwrapped value.
+     * wrapped.reduce(_.add);
+     * // => 6
+     *
+     * // Returns a wrapped value.
+     * var squares = wrapped.map(square);
+     *
+     * _.isArray(squares);
+     * // => false
+     *
+     * _.isArray(squares.value());
+     * // => true
+     */
+    function lodash(value) {
+      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
+        if (value instanceof LodashWrapper) {
+          return value;
+        }
+        if (hasOwnProperty.call(value, '__wrapped__')) {
+          return wrapperClone(value);
+        }
+      }
+      return new LodashWrapper(value);
+    }
 
-                var self = this;
-                _.each(this._nodes, function(value, v) {
-                    if (filter(v)) {
-                        copy.setNode(v, value);
-                    }
-                });
+    /**
+     * The base implementation of `_.create` without support for assigning
+     * properties to the created object.
+     *
+     * @private
+     * @param {Object} proto The object to inherit from.
+     * @returns {Object} Returns the new object.
+     */
+    var baseCreate = (function() {
+      function object() {}
+      return function(proto) {
+        if (!isObject(proto)) {
+          return {};
+        }
+        if (objectCreate) {
+          return objectCreate(proto);
+        }
+        object.prototype = proto;
+        var result = new object;
+        object.prototype = undefined;
+        return result;
+      };
+    }());
+
+    /**
+     * The function whose prototype chain sequence wrappers inherit from.
+     *
+     * @private
+     */
+    function baseLodash() {
+      // No operation performed.
+    }
 
-                _.each(this._edgeObjs, function(e) {
-                    if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
-                        copy.setEdge(e, self.edge(e));
-                    }
-                });
+    /**
+     * The base constructor for creating `lodash` wrapper objects.
+     *
+     * @private
+     * @param {*} value The value to wrap.
+     * @param {boolean} [chainAll] Enable explicit method chain sequences.
+     */
+    function LodashWrapper(value, chainAll) {
+      this.__wrapped__ = value;
+      this.__actions__ = [];
+      this.__chain__ = !!chainAll;
+      this.__index__ = 0;
+      this.__values__ = undefined;
+    }
 
-                var parents = {};
-                function findParent(v) {
-                    var parent = self.parent(v);
-                    if (parent === undefined || copy.hasNode(parent)) {
-                        parents[v] = parent;
-                        return parent;
-                    } else if (parent in parents) {
-                        return parents[parent];
-                    } else {
-                        return findParent(parent);
-                    }
-                }
+    /**
+     * By default, the template delimiters used by lodash are like those in
+     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
+     * following template settings to use alternative delimiters.
+     *
+     * @static
+     * @memberOf _
+     * @type {Object}
+     */
+    lodash.templateSettings = {
+
+      /**
+       * Used to detect `data` property values to be HTML-escaped.
+       *
+       * @memberOf _.templateSettings
+       * @type {RegExp}
+       */
+      'escape': reEscape,
+
+      /**
+       * Used to detect code to be evaluated.
+       *
+       * @memberOf _.templateSettings
+       * @type {RegExp}
+       */
+      'evaluate': reEvaluate,
+
+      /**
+       * Used to detect `data` property values to inject.
+       *
+       * @memberOf _.templateSettings
+       * @type {RegExp}
+       */
+      'interpolate': reInterpolate,
+
+      /**
+       * Used to reference the data object in the template text.
+       *
+       * @memberOf _.templateSettings
+       * @type {string}
+       */
+      'variable': '',
+
+      /**
+       * Used to import variables into the compiled template.
+       *
+       * @memberOf _.templateSettings
+       * @type {Object}
+       */
+      'imports': {
+
+        /**
+         * A reference to the `lodash` function.
+         *
+         * @memberOf _.templateSettings.imports
+         * @type {Function}
+         */
+        '_': lodash
+      }
+    };
+
+    // Ensure wrappers are instances of `baseLodash`.
+    lodash.prototype = baseLodash.prototype;
+    lodash.prototype.constructor = lodash;
+
+    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
+    LodashWrapper.prototype.constructor = LodashWrapper;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
+     *
+     * @private
+     * @constructor
+     * @param {*} value The value to wrap.
+     */
+    function LazyWrapper(value) {
+      this.__wrapped__ = value;
+      this.__actions__ = [];
+      this.__dir__ = 1;
+      this.__filtered__ = false;
+      this.__iteratees__ = [];
+      this.__takeCount__ = MAX_ARRAY_LENGTH;
+      this.__views__ = [];
+    }
 
-                if (this._isCompound) {
-                    _.each(copy.nodes(), function(v) {
-                        copy.setParent(v, findParent(v));
-                    });
-                }
+    /**
+     * Creates a clone of the lazy wrapper object.
+     *
+     * @private
+     * @name clone
+     * @memberOf LazyWrapper
+     * @returns {Object} Returns the cloned `LazyWrapper` object.
+     */
+    function lazyClone() {
+      var result = new LazyWrapper(this.__wrapped__);
+      result.__actions__ = copyArray(this.__actions__);
+      result.__dir__ = this.__dir__;
+      result.__filtered__ = this.__filtered__;
+      result.__iteratees__ = copyArray(this.__iteratees__);
+      result.__takeCount__ = this.__takeCount__;
+      result.__views__ = copyArray(this.__views__);
+      return result;
+    }
 
-                return copy;
-            };
+    /**
+     * Reverses the direction of lazy iteration.
+     *
+     * @private
+     * @name reverse
+     * @memberOf LazyWrapper
+     * @returns {Object} Returns the new reversed `LazyWrapper` object.
+     */
+    function lazyReverse() {
+      if (this.__filtered__) {
+        var result = new LazyWrapper(this);
+        result.__dir__ = -1;
+        result.__filtered__ = true;
+      } else {
+        result = this.clone();
+        result.__dir__ *= -1;
+      }
+      return result;
+    }
 
-            /* === Edge functions ========== */
+    /**
+     * Extracts the unwrapped value from its lazy wrapper.
+     *
+     * @private
+     * @name value
+     * @memberOf LazyWrapper
+     * @returns {*} Returns the unwrapped value.
+     */
+    function lazyValue() {
+      var array = this.__wrapped__.value(),
+          dir = this.__dir__,
+          isArr = isArray(array),
+          isRight = dir < 0,
+          arrLength = isArr ? array.length : 0,
+          view = getView(0, arrLength, this.__views__),
+          start = view.start,
+          end = view.end,
+          length = end - start,
+          index = isRight ? end : (start - 1),
+          iteratees = this.__iteratees__,
+          iterLength = iteratees.length,
+          resIndex = 0,
+          takeCount = nativeMin(length, this.__takeCount__);
+
+      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
+        return baseWrapperValue(array, this.__actions__);
+      }
+      var result = [];
+
+      outer:
+      while (length-- && resIndex < takeCount) {
+        index += dir;
+
+        var iterIndex = -1,
+            value = array[index];
+
+        while (++iterIndex < iterLength) {
+          var data = iteratees[iterIndex],
+              iteratee = data.iteratee,
+              type = data.type,
+              computed = iteratee(value);
+
+          if (type == LAZY_MAP_FLAG) {
+            value = computed;
+          } else if (!computed) {
+            if (type == LAZY_FILTER_FLAG) {
+              continue outer;
+            } else {
+              break outer;
+            }
+          }
+        }
+        result[resIndex++] = value;
+      }
+      return result;
+    }
 
-            Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
-                if (!_.isFunction(newDefault)) {
-                    newDefault = _.constant(newDefault);
-                }
-                this._defaultEdgeLabelFn = newDefault;
-                return this;
-            };
+    // Ensure `LazyWrapper` is an instance of `baseLodash`.
+    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
+    LazyWrapper.prototype.constructor = LazyWrapper;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a hash object.
+     *
+     * @private
+     * @constructor
+     * @param {Array} [entries] The key-value pairs to cache.
+     */
+    function Hash(entries) {
+      var index = -1,
+          length = entries == null ? 0 : entries.length;
+
+      this.clear();
+      while (++index < length) {
+        var entry = entries[index];
+        this.set(entry[0], entry[1]);
+      }
+    }
 
-            Graph.prototype.edgeCount = function() {
-                return this._edgeCount;
-            };
+    /**
+     * Removes all key-value entries from the hash.
+     *
+     * @private
+     * @name clear
+     * @memberOf Hash
+     */
+    function hashClear() {
+      this.__data__ = nativeCreate ? nativeCreate(null) : {};
+      this.size = 0;
+    }
 
-            Graph.prototype.edges = function() {
-                return _.values(this._edgeObjs);
-            };
+    /**
+     * Removes `key` and its value from the hash.
+     *
+     * @private
+     * @name delete
+     * @memberOf Hash
+     * @param {Object} hash The hash to modify.
+     * @param {string} key The key of the value to remove.
+     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+     */
+    function hashDelete(key) {
+      var result = this.has(key) && delete this.__data__[key];
+      this.size -= result ? 1 : 0;
+      return result;
+    }
 
-            Graph.prototype.setPath = function(vs, value) {
-                var self = this;
-                var args = arguments;
-                _.reduce(vs, function(v, w) {
-                    if (args.length > 1) {
-                        self.setEdge(v, w, value);
-                    } else {
-                        self.setEdge(v, w);
-                    }
-                    return w;
-                });
-                return this;
-            };
+    /**
+     * Gets the hash value for `key`.
+     *
+     * @private
+     * @name get
+     * @memberOf Hash
+     * @param {string} key The key of the value to get.
+     * @returns {*} Returns the entry value.
+     */
+    function hashGet(key) {
+      var data = this.__data__;
+      if (nativeCreate) {
+        var result = data[key];
+        return result === HASH_UNDEFINED ? undefined : result;
+      }
+      return hasOwnProperty.call(data, key) ? data[key] : undefined;
+    }
 
-            /*
- * setEdge(v, w, [value, [name]])
- * setEdge({ v, w, [name] }, [value])
- */
-            Graph.prototype.setEdge = function() {
-                var v, w, name, value;
-                var valueSpecified = false;
-                var arg0 = arguments[0];
-
-                if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
-                    v = arg0.v;
-                    w = arg0.w;
-                    name = arg0.name;
-                    if (arguments.length === 2) {
-                        value = arguments[1];
-                        valueSpecified = true;
-                    }
-                } else {
-                    v = arg0;
-                    w = arguments[1];
-                    name = arguments[3];
-                    if (arguments.length > 2) {
-                        value = arguments[2];
-                        valueSpecified = true;
-                    }
-                }
+    /**
+     * Checks if a hash value for `key` exists.
+     *
+     * @private
+     * @name has
+     * @memberOf Hash
+     * @param {string} key The key of the entry to check.
+     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+     */
+    function hashHas(key) {
+      var data = this.__data__;
+      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
+    }
 
-                v = "" + v;
-                w = "" + w;
-                if (!_.isUndefined(name)) {
-                    name = "" + name;
-                }
+    /**
+     * Sets the hash `key` to `value`.
+     *
+     * @private
+     * @name set
+     * @memberOf Hash
+     * @param {string} key The key of the value to set.
+     * @param {*} value The value to set.
+     * @returns {Object} Returns the hash instance.
+     */
+    function hashSet(key, value) {
+      var data = this.__data__;
+      this.size += this.has(key) ? 0 : 1;
+      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
+      return this;
+    }
 
-                var e = edgeArgsToId(this._isDirected, v, w, name);
-                if (_.has(this._edgeLabels, e)) {
-                    if (valueSpecified) {
-                        this._edgeLabels[e] = value;
-                    }
-                    return this;
-                }
+    // Add methods to `Hash`.
+    Hash.prototype.clear = hashClear;
+    Hash.prototype['delete'] = hashDelete;
+    Hash.prototype.get = hashGet;
+    Hash.prototype.has = hashHas;
+    Hash.prototype.set = hashSet;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates an list cache object.
+     *
+     * @private
+     * @constructor
+     * @param {Array} [entries] The key-value pairs to cache.
+     */
+    function ListCache(entries) {
+      var index = -1,
+          length = entries == null ? 0 : entries.length;
+
+      this.clear();
+      while (++index < length) {
+        var entry = entries[index];
+        this.set(entry[0], entry[1]);
+      }
+    }
 
-                if (!_.isUndefined(name) && !this._isMultigraph) {
-                    throw new Error("Cannot set a named edge when isMultigraph = false");
-                }
+    /**
+     * Removes all key-value entries from the list cache.
+     *
+     * @private
+     * @name clear
+     * @memberOf ListCache
+     */
+    function listCacheClear() {
+      this.__data__ = [];
+      this.size = 0;
+    }
 
-                // It didn't exist, so we need to create it.
-                // First ensure the nodes exist.
-                this.setNode(v);
-                this.setNode(w);
-
-                this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
-
-                var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
-                // Ensure we add undirected edges in a consistent way.
-                v = edgeObj.v;
-                w = edgeObj.w;
-
-                Object.freeze(edgeObj);
-                this._edgeObjs[e] = edgeObj;
-                incrementOrInitEntry(this._preds[w], v);
-                incrementOrInitEntry(this._sucs[v], w);
-                this._in[w][e] = edgeObj;
-                this._out[v][e] = edgeObj;
-                this._edgeCount++;
-                return this;
-            };
+    /**
+     * Removes `key` and its value from the list cache.
+     *
+     * @private
+     * @name delete
+     * @memberOf ListCache
+     * @param {string} key The key of the value to remove.
+     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+     */
+    function listCacheDelete(key) {
+      var data = this.__data__,
+          index = assocIndexOf(data, key);
+
+      if (index < 0) {
+        return false;
+      }
+      var lastIndex = data.length - 1;
+      if (index == lastIndex) {
+        data.pop();
+      } else {
+        splice.call(data, index, 1);
+      }
+      --this.size;
+      return true;
+    }
 
-            Graph.prototype.edge = function(v, w, name) {
-                var e = (arguments.length === 1
-                    ? edgeObjToId(this._isDirected, arguments[0])
-                    : edgeArgsToId(this._isDirected, v, w, name));
-                return this._edgeLabels[e];
-            };
+    /**
+     * Gets the list cache value for `key`.
+     *
+     * @private
+     * @name get
+     * @memberOf ListCache
+     * @param {string} key The key of the value to get.
+     * @returns {*} Returns the entry value.
+     */
+    function listCacheGet(key) {
+      var data = this.__data__,
+          index = assocIndexOf(data, key);
+
+      return index < 0 ? undefined : data[index][1];
+    }
 
-            Graph.prototype.hasEdge = function(v, w, name) {
-                var e = (arguments.length === 1
-                    ? edgeObjToId(this._isDirected, arguments[0])
-                    : edgeArgsToId(this._isDirected, v, w, name));
-                return _.has(this._edgeLabels, e);
-            };
+    /**
+     * Checks if a list cache value for `key` exists.
+     *
+     * @private
+     * @name has
+     * @memberOf ListCache
+     * @param {string} key The key of the entry to check.
+     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+     */
+    function listCacheHas(key) {
+      return assocIndexOf(this.__data__, key) > -1;
+    }
 
-            Graph.prototype.removeEdge = function(v, w, name) {
-                var e = (arguments.length === 1
-                    ? edgeObjToId(this._isDirected, arguments[0])
-                    : edgeArgsToId(this._isDirected, v, w, name));
-                var edge = this._edgeObjs[e];
-                if (edge) {
-                    v = edge.v;
-                    w = edge.w;
-                    delete this._edgeLabels[e];
-                    delete this._edgeObjs[e];
-                    decrementOrRemoveEntry(this._preds[w], v);
-                    decrementOrRemoveEntry(this._sucs[v], w);
-                    delete this._in[w][e];
-                    delete this._out[v][e];
-                    this._edgeCount--;
-                }
-                return this;
-            };
+    /**
+     * Sets the list cache `key` to `value`.
+     *
+     * @private
+     * @name set
+     * @memberOf ListCache
+     * @param {string} key The key of the value to set.
+     * @param {*} value The value to set.
+     * @returns {Object} Returns the list cache instance.
+     */
+    function listCacheSet(key, value) {
+      var data = this.__data__,
+          index = assocIndexOf(data, key);
+
+      if (index < 0) {
+        ++this.size;
+        data.push([key, value]);
+      } else {
+        data[index][1] = value;
+      }
+      return this;
+    }
 
-            Graph.prototype.inEdges = function(v, u) {
-                var inV = this._in[v];
-                if (inV) {
-                    var edges = _.values(inV);
-                    if (!u) {
-                        return edges;
-                    }
-                    return _.filter(edges, function(edge) { return edge.v === u; });
-                }
-            };
+    // Add methods to `ListCache`.
+    ListCache.prototype.clear = listCacheClear;
+    ListCache.prototype['delete'] = listCacheDelete;
+    ListCache.prototype.get = listCacheGet;
+    ListCache.prototype.has = listCacheHas;
+    ListCache.prototype.set = listCacheSet;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a map cache object to store key-value pairs.
+     *
+     * @private
+     * @constructor
+     * @param {Array} [entries] The key-value pairs to cache.
+     */
+    function MapCache(entries) {
+      var index = -1,
+          length = entries == null ? 0 : entries.length;
+
+      this.clear();
+      while (++index < length) {
+        var entry = entries[index];
+        this.set(entry[0], entry[1]);
+      }
+    }
 
-            Graph.prototype.outEdges = function(v, w) {
-                var outV = this._out[v];
-                if (outV) {
-                    var edges = _.values(outV);
-                    if (!w) {
-                        return edges;
-                    }
-                    return _.filter(edges, function(edge) { return edge.w === w; });
-                }
-            };
+    /**
+     * Removes all key-value entries from the map.
+     *
+     * @private
+     * @name clear
+     * @memberOf MapCache
+     */
+    function mapCacheClear() {
+      this.size = 0;
+      this.__data__ = {
+        'hash': new Hash,
+        'map': new (Map || ListCache),
+        'string': new Hash
+      };
+    }
 
-            Graph.prototype.nodeEdges = function(v, w) {
-                var inEdges = this.inEdges(v, w);
-                if (inEdges) {
-                    return inEdges.concat(this.outEdges(v, w));
-                }
-            };
+    /**
+     * Removes `key` and its value from the map.
+     *
+     * @private
+     * @name delete
+     * @memberOf MapCache
+     * @param {string} key The key of the value to remove.
+     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+     */
+    function mapCacheDelete(key) {
+      var result = getMapData(this, key)['delete'](key);
+      this.size -= result ? 1 : 0;
+      return result;
+    }
 
-            function incrementOrInitEntry(map, k) {
-                if (map[k]) {
-                    map[k]++;
-                } else {
-                    map[k] = 1;
-                }
-            }
+    /**
+     * Gets the map value for `key`.
+     *
+     * @private
+     * @name get
+     * @memberOf MapCache
+     * @param {string} key The key of the value to get.
+     * @returns {*} Returns the entry value.
+     */
+    function mapCacheGet(key) {
+      return getMapData(this, key).get(key);
+    }
 
-            function decrementOrRemoveEntry(map, k) {
-                if (!--map[k]) { delete map[k]; }
-            }
+    /**
+     * Checks if a map value for `key` exists.
+     *
+     * @private
+     * @name has
+     * @memberOf MapCache
+     * @param {string} key The key of the entry to check.
+     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+     */
+    function mapCacheHas(key) {
+      return getMapData(this, key).has(key);
+    }
 
-            function edgeArgsToId(isDirected, v_, w_, name) {
-                var v = "" + v_;
-                var w = "" + w_;
-                if (!isDirected && v > w) {
-                    var tmp = v;
-                    v = w;
-                    w = tmp;
-                }
-                return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
-                    (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
-            }
+    /**
+     * Sets the map `key` to `value`.
+     *
+     * @private
+     * @name set
+     * @memberOf MapCache
+     * @param {string} key The key of the value to set.
+     * @param {*} value The value to set.
+     * @returns {Object} Returns the map cache instance.
+     */
+    function mapCacheSet(key, value) {
+      var data = getMapData(this, key),
+          size = data.size;
+
+      data.set(key, value);
+      this.size += data.size == size ? 0 : 1;
+      return this;
+    }
 
-            function edgeArgsToObj(isDirected, v_, w_, name) {
-                var v = "" + v_;
-                var w = "" + w_;
-                if (!isDirected && v > w) {
-                    var tmp = v;
-                    v = w;
-                    w = tmp;
-                }
-                var edgeObj =  { v: v, w: w };
-                if (name) {
-                    edgeObj.name = name;
-                }
-                return edgeObj;
-            }
+    // Add methods to `MapCache`.
+    MapCache.prototype.clear = mapCacheClear;
+    MapCache.prototype['delete'] = mapCacheDelete;
+    MapCache.prototype.get = mapCacheGet;
+    MapCache.prototype.has = mapCacheHas;
+    MapCache.prototype.set = mapCacheSet;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     *
+     * Creates an array cache object to store unique values.
+     *
+     * @private
+     * @constructor
+     * @param {Array} [values] The values to cache.
+     */
+    function SetCache(values) {
+      var index = -1,
+          length = values == null ? 0 : values.length;
+
+      this.__data__ = new MapCache;
+      while (++index < length) {
+        this.add(values[index]);
+      }
+    }
 
-            function edgeObjToId(isDirected, edgeObj) {
-                return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
-            }
+    /**
+     * Adds `value` to the array cache.
+     *
+     * @private
+     * @name add
+     * @memberOf SetCache
+     * @alias push
+     * @param {*} value The value to cache.
+     * @returns {Object} Returns the cache instance.
+     */
+    function setCacheAdd(value) {
+      this.__data__.set(value, HASH_UNDEFINED);
+      return this;
+    }
 
+    /**
+     * Checks if `value` is in the array cache.
+     *
+     * @private
+     * @name has
+     * @memberOf SetCache
+     * @param {*} value The value to search for.
+     * @returns {number} Returns `true` if `value` is found, else `false`.
+     */
+    function setCacheHas(value) {
+      return this.__data__.has(value);
+    }
 
-            /***/ }),
+    // Add methods to `SetCache`.
+    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
+    SetCache.prototype.has = setCacheHas;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a stack cache object to store key-value pairs.
+     *
+     * @private
+     * @constructor
+     * @param {Array} [entries] The key-value pairs to cache.
+     */
+    function Stack(entries) {
+      var data = this.__data__ = new ListCache(entries);
+      this.size = data.size;
+    }
 
-        /***/ "./node_modules/graphlib/lib/index.js":
-        /*!********************************************!*\
-  !*** ./node_modules/graphlib/lib/index.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    /**
+     * Removes all key-value entries from the stack.
+     *
+     * @private
+     * @name clear
+     * @memberOf Stack
+     */
+    function stackClear() {
+      this.__data__ = new ListCache;
+      this.size = 0;
+    }
 
-// Includes only the "core" of graphlib
-            module.exports = {
-                Graph: __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js"),
-                version: __webpack_require__(/*! ./version */ "./node_modules/graphlib/lib/version.js")
-            };
+    /**
+     * Removes `key` and its value from the stack.
+     *
+     * @private
+     * @name delete
+     * @memberOf Stack
+     * @param {string} key The key of the value to remove.
+     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+     */
+    function stackDelete(key) {
+      var data = this.__data__,
+          result = data['delete'](key);
+
+      this.size = data.size;
+      return result;
+    }
 
+    /**
+     * Gets the stack value for `key`.
+     *
+     * @private
+     * @name get
+     * @memberOf Stack
+     * @param {string} key The key of the value to get.
+     * @returns {*} Returns the entry value.
+     */
+    function stackGet(key) {
+      return this.__data__.get(key);
+    }
 
-            /***/ }),
+    /**
+     * Checks if a stack value for `key` exists.
+     *
+     * @private
+     * @name has
+     * @memberOf Stack
+     * @param {string} key The key of the entry to check.
+     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+     */
+    function stackHas(key) {
+      return this.__data__.has(key);
+    }
 
-        /***/ "./node_modules/graphlib/lib/json.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/graphlib/lib/json.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    /**
+     * Sets the stack `key` to `value`.
+     *
+     * @private
+     * @name set
+     * @memberOf Stack
+     * @param {string} key The key of the value to set.
+     * @param {*} value The value to set.
+     * @returns {Object} Returns the stack cache instance.
+     */
+    function stackSet(key, value) {
+      var data = this.__data__;
+      if (data instanceof ListCache) {
+        var pairs = data.__data__;
+        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
+          pairs.push([key, value]);
+          this.size = ++data.size;
+          return this;
+        }
+        data = this.__data__ = new MapCache(pairs);
+      }
+      data.set(key, value);
+      this.size = data.size;
+      return this;
+    }
 
-            var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
-            var Graph = __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js");
+    // Add methods to `Stack`.
+    Stack.prototype.clear = stackClear;
+    Stack.prototype['delete'] = stackDelete;
+    Stack.prototype.get = stackGet;
+    Stack.prototype.has = stackHas;
+    Stack.prototype.set = stackSet;
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates an array of the enumerable property names of the array-like `value`.
+     *
+     * @private
+     * @param {*} value The value to query.
+     * @param {boolean} inherited Specify returning inherited property names.
+     * @returns {Array} Returns the array of property names.
+     */
+    function arrayLikeKeys(value, inherited) {
+      var isArr = isArray(value),
+          isArg = !isArr && isArguments(value),
+          isBuff = !isArr && !isArg && isBuffer(value),
+          isType = !isArr && !isArg && !isBuff && isTypedArray(value),
+          skipIndexes = isArr || isArg || isBuff || isType,
+          result = skipIndexes ? baseTimes(value.length, String) : [],
+          length = result.length;
+
+      for (var key in value) {
+        if ((inherited || hasOwnProperty.call(value, key)) &&
+            !(skipIndexes && (
+               // Safari 9 has enumerable `arguments.length` in strict mode.
+               key == 'length' ||
+               // Node.js 0.10 has enumerable non-index properties on buffers.
+               (isBuff && (key == 'offset' || key == 'parent')) ||
+               // PhantomJS 2 has enumerable non-index properties on typed arrays.
+               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
+               // Skip index properties.
+               isIndex(key, length)
+            ))) {
+          result.push(key);
+        }
+      }
+      return result;
+    }
 
-            module.exports = {
-                write: write,
-                read: read
-            };
+    /**
+     * A specialized version of `_.sample` for arrays.
+     *
+     * @private
+     * @param {Array} array The array to sample.
+     * @returns {*} Returns the random element.
+     */
+    function arraySample(array) {
+      var length = array.length;
+      return length ? array[baseRandom(0, length - 1)] : undefined;
+    }
 
-            function write(g) {
-                var json = {
-                    options: {
-                        directed: g.isDirected(),
-                        multigraph: g.isMultigraph(),
-                        compound: g.isCompound()
-                    },
-                    nodes: writeNodes(g),
-                    edges: writeEdges(g)
-                };
-                if (!_.isUndefined(g.graph())) {
-                    json.value = _.clone(g.graph());
-                }
-                return json;
-            }
+    /**
+     * A specialized version of `_.sampleSize` for arrays.
+     *
+     * @private
+     * @param {Array} array The array to sample.
+     * @param {number} n The number of elements to sample.
+     * @returns {Array} Returns the random elements.
+     */
+    function arraySampleSize(array, n) {
+      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
+    }
 
-            function writeNodes(g) {
-                return _.map(g.nodes(), function(v) {
-                    var nodeValue = g.node(v);
-                    var parent = g.parent(v);
-                    var node = { v: v };
-                    if (!_.isUndefined(nodeValue)) {
-                        node.value = nodeValue;
-                    }
-                    if (!_.isUndefined(parent)) {
-                        node.parent = parent;
-                    }
-                    return node;
-                });
-            }
+    /**
+     * A specialized version of `_.shuffle` for arrays.
+     *
+     * @private
+     * @param {Array} array The array to shuffle.
+     * @returns {Array} Returns the new shuffled array.
+     */
+    function arrayShuffle(array) {
+      return shuffleSelf(copyArray(array));
+    }
 
-            function writeEdges(g) {
-                return _.map(g.edges(), function(e) {
-                    var edgeValue = g.edge(e);
-                    var edge = { v: e.v, w: e.w };
-                    if (!_.isUndefined(e.name)) {
-                        edge.name = e.name;
-                    }
-                    if (!_.isUndefined(edgeValue)) {
-                        edge.value = edgeValue;
-                    }
-                    return edge;
-                });
-            }
+    /**
+     * This function is like `assignValue` except that it doesn't assign
+     * `undefined` values.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {string} key The key of the property to assign.
+     * @param {*} value The value to assign.
+     */
+    function assignMergeValue(object, key, value) {
+      if ((value !== undefined && !eq(object[key], value)) ||
+          (value === undefined && !(key in object))) {
+        baseAssignValue(object, key, value);
+      }
+    }
 
-            function read(json) {
-                var g = new Graph(json.options).setGraph(json.value);
-                _.each(json.nodes, function(entry) {
-                    g.setNode(entry.v, entry.value);
-                    if (entry.parent) {
-                        g.setParent(entry.v, entry.parent);
-                    }
-                });
-                _.each(json.edges, function(entry) {
-                    g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
-                });
-                return g;
-            }
+    /**
+     * Assigns `value` to `key` of `object` if the existing value is not equivalent
+     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {string} key The key of the property to assign.
+     * @param {*} value The value to assign.
+     */
+    function assignValue(object, key, value) {
+      var objValue = object[key];
+      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
+          (value === undefined && !(key in object))) {
+        baseAssignValue(object, key, value);
+      }
+    }
 
+    /**
+     * Gets the index at which the `key` is found in `array` of key-value pairs.
+     *
+     * @private
+     * @param {Array} array The array to inspect.
+     * @param {*} key The key to search for.
+     * @returns {number} Returns the index of the matched value, else `-1`.
+     */
+    function assocIndexOf(array, key) {
+      var length = array.length;
+      while (length--) {
+        if (eq(array[length][0], key)) {
+          return length;
+        }
+      }
+      return -1;
+    }
 
-            /***/ }),
+    /**
+     * Aggregates elements of `collection` on `accumulator` with keys transformed
+     * by `iteratee` and values set by `setter`.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} setter The function to set `accumulator` values.
+     * @param {Function} iteratee The iteratee to transform keys.
+     * @param {Object} accumulator The initial aggregated object.
+     * @returns {Function} Returns `accumulator`.
+     */
+    function baseAggregator(collection, setter, iteratee, accumulator) {
+      baseEach(collection, function(value, key, collection) {
+        setter(accumulator, value, iteratee(value), collection);
+      });
+      return accumulator;
+    }
 
-        /***/ "./node_modules/graphlib/lib/lodash.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/graphlib/lib/lodash.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    /**
+     * The base implementation of `_.assign` without support for multiple sources
+     * or `customizer` functions.
+     *
+     * @private
+     * @param {Object} object The destination object.
+     * @param {Object} source The source object.
+     * @returns {Object} Returns `object`.
+     */
+    function baseAssign(object, source) {
+      return object && copyObject(source, keys(source), object);
+    }
 
-            /* global window */
+    /**
+     * The base implementation of `_.assignIn` without support for multiple sources
+     * or `customizer` functions.
+     *
+     * @private
+     * @param {Object} object The destination object.
+     * @param {Object} source The source object.
+     * @returns {Object} Returns `object`.
+     */
+    function baseAssignIn(object, source) {
+      return object && copyObject(source, keysIn(source), object);
+    }
 
-            var lodash;
+    /**
+     * The base implementation of `assignValue` and `assignMergeValue` without
+     * value checks.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {string} key The key of the property to assign.
+     * @param {*} value The value to assign.
+     */
+    function baseAssignValue(object, key, value) {
+      if (key == '__proto__' && defineProperty) {
+        defineProperty(object, key, {
+          'configurable': true,
+          'enumerable': true,
+          'value': value,
+          'writable': true
+        });
+      } else {
+        object[key] = value;
+      }
+    }
 
-            if (true) {
-                try {
-                    lodash = {
-                        clone: __webpack_require__(/*! lodash/clone */ "./node_modules/lodash/clone.js"),
-                        constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
-                        each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
-                        filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
-                        has:  __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
-                        isArray: __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js"),
-                        isEmpty: __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js"),
-                        isFunction: __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"),
-                        isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
-                        keys: __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js"),
-                        map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
-                        reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
-                        size: __webpack_require__(/*! lodash/size */ "./node_modules/lodash/size.js"),
-                        transform: __webpack_require__(/*! lodash/transform */ "./node_modules/lodash/transform.js"),
-                        union: __webpack_require__(/*! lodash/union */ "./node_modules/lodash/union.js"),
-                        values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js")
-                    };
-                } catch (e) {
-                    // continue regardless of error
-                }
-            }
+    /**
+     * The base implementation of `_.at` without support for individual paths.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {string[]} paths The property paths to pick.
+     * @returns {Array} Returns the picked elements.
+     */
+    function baseAt(object, paths) {
+      var index = -1,
+          length = paths.length,
+          result = Array(length),
+          skip = object == null;
+
+      while (++index < length) {
+        result[index] = skip ? undefined : get(object, paths[index]);
+      }
+      return result;
+    }
 
-            if (!lodash) {
-                lodash = window._;
-            }
+    /**
+     * The base implementation of `_.clamp` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {number} number The number to clamp.
+     * @param {number} [lower] The lower bound.
+     * @param {number} upper The upper bound.
+     * @returns {number} Returns the clamped number.
+     */
+    function baseClamp(number, lower, upper) {
+      if (number === number) {
+        if (upper !== undefined) {
+          number = number <= upper ? number : upper;
+        }
+        if (lower !== undefined) {
+          number = number >= lower ? number : lower;
+        }
+      }
+      return number;
+    }
 
-            module.exports = lodash;
+    /**
+     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
+     * traversed objects.
+     *
+     * @private
+     * @param {*} value The value to clone.
+     * @param {boolean} bitmask The bitmask flags.
+     *  1 - Deep clone
+     *  2 - Flatten inherited properties
+     *  4 - Clone symbols
+     * @param {Function} [customizer] The function to customize cloning.
+     * @param {string} [key] The key of `value`.
+     * @param {Object} [object] The parent object of `value`.
+     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
+     * @returns {*} Returns the cloned value.
+     */
+    function baseClone(value, bitmask, customizer, key, object, stack) {
+      var result,
+          isDeep = bitmask & CLONE_DEEP_FLAG,
+          isFlat = bitmask & CLONE_FLAT_FLAG,
+          isFull = bitmask & CLONE_SYMBOLS_FLAG;
+
+      if (customizer) {
+        result = object ? customizer(value, key, object, stack) : customizer(value);
+      }
+      if (result !== undefined) {
+        return result;
+      }
+      if (!isObject(value)) {
+        return value;
+      }
+      var isArr = isArray(value);
+      if (isArr) {
+        result = initCloneArray(value);
+        if (!isDeep) {
+          return copyArray(value, result);
+        }
+      } else {
+        var tag = getTag(value),
+            isFunc = tag == funcTag || tag == genTag;
 
+        if (isBuffer(value)) {
+          return cloneBuffer(value, isDeep);
+        }
+        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
+          result = (isFlat || isFunc) ? {} : initCloneObject(value);
+          if (!isDeep) {
+            return isFlat
+              ? copySymbolsIn(value, baseAssignIn(result, value))
+              : copySymbols(value, baseAssign(result, value));
+          }
+        } else {
+          if (!cloneableTags[tag]) {
+            return object ? value : {};
+          }
+          result = initCloneByTag(value, tag, isDeep);
+        }
+      }
+      // Check for circular references and return its corresponding clone.
+      stack || (stack = new Stack);
+      var stacked = stack.get(value);
+      if (stacked) {
+        return stacked;
+      }
+      stack.set(value, result);
+
+      if (isSet(value)) {
+        value.forEach(function(subValue) {
+          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
+        });
+      } else if (isMap(value)) {
+        value.forEach(function(subValue, key) {
+          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
+        });
+      }
+
+      var keysFunc = isFull
+        ? (isFlat ? getAllKeysIn : getAllKeys)
+        : (isFlat ? keysIn : keys);
+
+      var props = isArr ? undefined : keysFunc(value);
+      arrayEach(props || value, function(subValue, key) {
+        if (props) {
+          key = subValue;
+          subValue = value[key];
+        }
+        // Recursively populate clone (susceptible to call stack limits).
+        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
+      });
+      return result;
+    }
 
-            /***/ }),
+    /**
+     * The base implementation of `_.conforms` which doesn't clone `source`.
+     *
+     * @private
+     * @param {Object} source The object of property predicates to conform to.
+     * @returns {Function} Returns the new spec function.
+     */
+    function baseConforms(source) {
+      var props = keys(source);
+      return function(object) {
+        return baseConformsTo(object, source, props);
+      };
+    }
 
-        /***/ "./node_modules/graphlib/lib/version.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/graphlib/lib/version.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+    /**
+     * The base implementation of `_.conformsTo` which accepts `props` to check.
+     *
+     * @private
+     * @param {Object} object The object to inspect.
+     * @param {Object} source The object of property predicates to conform to.
+     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
+     */
+    function baseConformsTo(object, source, props) {
+      var length = props.length;
+      if (object == null) {
+        return !length;
+      }
+      object = Object(object);
+      while (length--) {
+        var key = props[length],
+            predicate = source[key],
+            value = object[key];
+
+        if ((value === undefined && !(key in object)) || !predicate(value)) {
+          return false;
+        }
+      }
+      return true;
+    }
 
-            module.exports = '2.1.8';
+    /**
+     * The base implementation of `_.delay` and `_.defer` which accepts `args`
+     * to provide to `func`.
+     *
+     * @private
+     * @param {Function} func The function to delay.
+     * @param {number} wait The number of milliseconds to delay invocation.
+     * @param {Array} args The arguments to provide to `func`.
+     * @returns {number|Object} Returns the timer id or timeout object.
+     */
+    function baseDelay(func, wait, args) {
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      return setTimeout(function() { func.apply(undefined, args); }, wait);
+    }
 
+    /**
+     * The base implementation of methods like `_.difference` without support
+     * for excluding multiple arrays or iteratee shorthands.
+     *
+     * @private
+     * @param {Array} array The array to inspect.
+     * @param {Array} values The values to exclude.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of filtered values.
+     */
+    function baseDifference(array, values, iteratee, comparator) {
+      var index = -1,
+          includes = arrayIncludes,
+          isCommon = true,
+          length = array.length,
+          result = [],
+          valuesLength = values.length;
+
+      if (!length) {
+        return result;
+      }
+      if (iteratee) {
+        values = arrayMap(values, baseUnary(iteratee));
+      }
+      if (comparator) {
+        includes = arrayIncludesWith;
+        isCommon = false;
+      }
+      else if (values.length >= LARGE_ARRAY_SIZE) {
+        includes = cacheHas;
+        isCommon = false;
+        values = new SetCache(values);
+      }
+      outer:
+      while (++index < length) {
+        var value = array[index],
+            computed = iteratee == null ? value : iteratee(value);
+
+        value = (comparator || value !== 0) ? value : 0;
+        if (isCommon && computed === computed) {
+          var valuesIndex = valuesLength;
+          while (valuesIndex--) {
+            if (values[valuesIndex] === computed) {
+              continue outer;
+            }
+          }
+          result.push(value);
+        }
+        else if (!includes(values, computed, comparator)) {
+          result.push(value);
+        }
+      }
+      return result;
+    }
 
-            /***/ }),
+    /**
+     * The base implementation of `_.forEach` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @returns {Array|Object} Returns `collection`.
+     */
+    var baseEach = createBaseEach(baseForOwn);
+
+    /**
+     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @returns {Array|Object} Returns `collection`.
+     */
+    var baseEachRight = createBaseEach(baseForOwnRight, true);
+
+    /**
+     * The base implementation of `_.every` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} predicate The function invoked per iteration.
+     * @returns {boolean} Returns `true` if all elements pass the predicate check,
+     *  else `false`
+     */
+    function baseEvery(collection, predicate) {
+      var result = true;
+      baseEach(collection, function(value, index, collection) {
+        result = !!predicate(value, index, collection);
+        return result;
+      });
+      return result;
+    }
 
-        /***/ "./node_modules/heap/index.js":
-        /*!************************************!*\
-  !*** ./node_modules/heap/index.js ***!
-  \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    /**
+     * The base implementation of methods like `_.max` and `_.min` which accepts a
+     * `comparator` to determine the extremum value.
+     *
+     * @private
+     * @param {Array} array The array to iterate over.
+     * @param {Function} iteratee The iteratee invoked per iteration.
+     * @param {Function} comparator The comparator used to compare values.
+     * @returns {*} Returns the extremum value.
+     */
+    function baseExtremum(array, iteratee, comparator) {
+      var index = -1,
+          length = array.length;
+
+      while (++index < length) {
+        var value = array[index],
+            current = iteratee(value);
+
+        if (current != null && (computed === undefined
+              ? (current === current && !isSymbol(current))
+              : comparator(current, computed)
+            )) {
+          var computed = current,
+              result = value;
+        }
+      }
+      return result;
+    }
 
-            module.exports = __webpack_require__(/*! ./lib/heap */ "./node_modules/heap/lib/heap.js");
+    /**
+     * The base implementation of `_.fill` without an iteratee call guard.
+     *
+     * @private
+     * @param {Array} array The array to fill.
+     * @param {*} value The value to fill `array` with.
+     * @param {number} [start=0] The start position.
+     * @param {number} [end=array.length] The end position.
+     * @returns {Array} Returns `array`.
+     */
+    function baseFill(array, value, start, end) {
+      var length = array.length;
+
+      start = toInteger(start);
+      if (start < 0) {
+        start = -start > length ? 0 : (length + start);
+      }
+      end = (end === undefined || end > length) ? length : toInteger(end);
+      if (end < 0) {
+        end += length;
+      }
+      end = start > end ? 0 : toLength(end);
+      while (start < end) {
+        array[start++] = value;
+      }
+      return array;
+    }
 
+    /**
+     * The base implementation of `_.filter` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} predicate The function invoked per iteration.
+     * @returns {Array} Returns the new filtered array.
+     */
+    function baseFilter(collection, predicate) {
+      var result = [];
+      baseEach(collection, function(value, index, collection) {
+        if (predicate(value, index, collection)) {
+          result.push(value);
+        }
+      });
+      return result;
+    }
 
-            /***/ }),
+    /**
+     * The base implementation of `_.flatten` with support for restricting flattening.
+     *
+     * @private
+     * @param {Array} array The array to flatten.
+     * @param {number} depth The maximum recursion depth.
+     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
+     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
+     * @param {Array} [result=[]] The initial result value.
+     * @returns {Array} Returns the new flattened array.
+     */
+    function baseFlatten(array, depth, predicate, isStrict, result) {
+      var index = -1,
+          length = array.length;
+
+      predicate || (predicate = isFlattenable);
+      result || (result = []);
+
+      while (++index < length) {
+        var value = array[index];
+        if (depth > 0 && predicate(value)) {
+          if (depth > 1) {
+            // Recursively flatten arrays (susceptible to call stack limits).
+            baseFlatten(value, depth - 1, predicate, isStrict, result);
+          } else {
+            arrayPush(result, value);
+          }
+        } else if (!isStrict) {
+          result[result.length] = value;
+        }
+      }
+      return result;
+    }
 
-        /***/ "./node_modules/heap/lib/heap.js":
-        /*!***************************************!*\
-  !*** ./node_modules/heap/lib/heap.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+    /**
+     * The base implementation of `baseForOwn` which iterates over `object`
+     * properties returned by `keysFunc` and invokes `iteratee` for each property.
+     * Iteratee functions may exit iteration early by explicitly returning `false`.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @param {Function} keysFunc The function to get the keys of `object`.
+     * @returns {Object} Returns `object`.
+     */
+    var baseFor = createBaseFor();
+
+    /**
+     * This function is like `baseFor` except that it iterates over properties
+     * in the opposite order.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @param {Function} keysFunc The function to get the keys of `object`.
+     * @returns {Object} Returns `object`.
+     */
+    var baseForRight = createBaseFor(true);
+
+    /**
+     * The base implementation of `_.forOwn` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     */
+    function baseForOwn(object, iteratee) {
+      return object && baseFor(object, iteratee, keys);
+    }
 
-            var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Generated by CoffeeScript 1.8.0
-            (function() {
-                var Heap, defaultCmp, floor, heapify, heappop, heappush, heappushpop, heapreplace, insort, min, nlargest, nsmallest, updateItem, _siftdown, _siftup;
+    /**
+     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     */
+    function baseForOwnRight(object, iteratee) {
+      return object && baseForRight(object, iteratee, keys);
+    }
 
-                floor = Math.floor, min = Math.min;
+    /**
+     * The base implementation of `_.functions` which creates an array of
+     * `object` function property names filtered from `props`.
+     *
+     * @private
+     * @param {Object} object The object to inspect.
+     * @param {Array} props The property names to filter.
+     * @returns {Array} Returns the function names.
+     */
+    function baseFunctions(object, props) {
+      return arrayFilter(props, function(key) {
+        return isFunction(object[key]);
+      });
+    }
 
+    /**
+     * The base implementation of `_.get` without support for default values.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path of the property to get.
+     * @returns {*} Returns the resolved value.
+     */
+    function baseGet(object, path) {
+      path = castPath(path, object);
+
+      var index = 0,
+          length = path.length;
+
+      while (object != null && index < length) {
+        object = object[toKey(path[index++])];
+      }
+      return (index && index == length) ? object : undefined;
+    }
 
-                /*
-  Default comparison function to be used
-   */
+    /**
+     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
+     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
+     * symbols of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {Function} keysFunc The function to get the keys of `object`.
+     * @param {Function} symbolsFunc The function to get the symbols of `object`.
+     * @returns {Array} Returns the array of property names and symbols.
+     */
+    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
+      var result = keysFunc(object);
+      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
+    }
 
-                defaultCmp = function(x, y) {
-                    if (x < y) {
-                        return -1;
-                    }
-                    if (x > y) {
-                        return 1;
-                    }
-                    return 0;
-                };
+    /**
+     * The base implementation of `getTag` without fallbacks for buggy environments.
+     *
+     * @private
+     * @param {*} value The value to query.
+     * @returns {string} Returns the `toStringTag`.
+     */
+    function baseGetTag(value) {
+      if (value == null) {
+        return value === undefined ? undefinedTag : nullTag;
+      }
+      return (symToStringTag && symToStringTag in Object(value))
+        ? getRawTag(value)
+        : objectToString(value);
+    }
 
+    /**
+     * The base implementation of `_.gt` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is greater than `other`,
+     *  else `false`.
+     */
+    function baseGt(value, other) {
+      return value > other;
+    }
 
-                /*
-  Insert item x in list a, and keep it sorted assuming a is sorted.
+    /**
+     * The base implementation of `_.has` without support for deep paths.
+     *
+     * @private
+     * @param {Object} [object] The object to query.
+     * @param {Array|string} key The key to check.
+     * @returns {boolean} Returns `true` if `key` exists, else `false`.
+     */
+    function baseHas(object, key) {
+      return object != null && hasOwnProperty.call(object, key);
+    }
 
-  If x is already in a, insert it to the right of the rightmost x.
+    /**
+     * The base implementation of `_.hasIn` without support for deep paths.
+     *
+     * @private
+     * @param {Object} [object] The object to query.
+     * @param {Array|string} key The key to check.
+     * @returns {boolean} Returns `true` if `key` exists, else `false`.
+     */
+    function baseHasIn(object, key) {
+      return object != null && key in Object(object);
+    }
 
-  Optional args lo (default 0) and hi (default a.length) bound the slice
-  of a to be searched.
-   */
+    /**
+     * The base implementation of `_.inRange` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {number} number The number to check.
+     * @param {number} start The start of the range.
+     * @param {number} end The end of the range.
+     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
+     */
+    function baseInRange(number, start, end) {
+      return number >= nativeMin(start, end) && number < nativeMax(start, end);
+    }
 
-                insort = function(a, x, lo, hi, cmp) {
-                    var mid;
-                    if (lo == null) {
-                        lo = 0;
-                    }
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    if (lo < 0) {
-                        throw new Error('lo must be non-negative');
-                    }
-                    if (hi == null) {
-                        hi = a.length;
-                    }
-                    while (lo < hi) {
-                        mid = floor((lo + hi) / 2);
-                        if (cmp(x, a[mid]) < 0) {
-                            hi = mid;
-                        } else {
-                            lo = mid + 1;
-                        }
-                    }
-                    return ([].splice.apply(a, [lo, lo - lo].concat(x)), x);
-                };
+    /**
+     * The base implementation of methods like `_.intersection`, without support
+     * for iteratee shorthands, that accepts an array of arrays to inspect.
+     *
+     * @private
+     * @param {Array} arrays The arrays to inspect.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of shared values.
+     */
+    function baseIntersection(arrays, iteratee, comparator) {
+      var includes = comparator ? arrayIncludesWith : arrayIncludes,
+          length = arrays[0].length,
+          othLength = arrays.length,
+          othIndex = othLength,
+          caches = Array(othLength),
+          maxLength = Infinity,
+          result = [];
+
+      while (othIndex--) {
+        var array = arrays[othIndex];
+        if (othIndex && iteratee) {
+          array = arrayMap(array, baseUnary(iteratee));
+        }
+        maxLength = nativeMin(array.length, maxLength);
+        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
+          ? new SetCache(othIndex && array)
+          : undefined;
+      }
+      array = arrays[0];
+
+      var index = -1,
+          seen = caches[0];
+
+      outer:
+      while (++index < length && result.length < maxLength) {
+        var value = array[index],
+            computed = iteratee ? iteratee(value) : value;
+
+        value = (comparator || value !== 0) ? value : 0;
+        if (!(seen
+              ? cacheHas(seen, computed)
+              : includes(result, computed, comparator)
+            )) {
+          othIndex = othLength;
+          while (--othIndex) {
+            var cache = caches[othIndex];
+            if (!(cache
+                  ? cacheHas(cache, computed)
+                  : includes(arrays[othIndex], computed, comparator))
+                ) {
+              continue outer;
+            }
+          }
+          if (seen) {
+            seen.push(computed);
+          }
+          result.push(value);
+        }
+      }
+      return result;
+    }
 
+    /**
+     * The base implementation of `_.invert` and `_.invertBy` which inverts
+     * `object` with values transformed by `iteratee` and set by `setter`.
+     *
+     * @private
+     * @param {Object} object The object to iterate over.
+     * @param {Function} setter The function to set `accumulator` values.
+     * @param {Function} iteratee The iteratee to transform values.
+     * @param {Object} accumulator The initial inverted object.
+     * @returns {Function} Returns `accumulator`.
+     */
+    function baseInverter(object, setter, iteratee, accumulator) {
+      baseForOwn(object, function(value, key, object) {
+        setter(accumulator, iteratee(value), key, object);
+      });
+      return accumulator;
+    }
 
-                /*
-  Push item onto heap, maintaining the heap invariant.
-   */
+    /**
+     * The base implementation of `_.invoke` without support for individual
+     * method arguments.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path of the method to invoke.
+     * @param {Array} args The arguments to invoke the method with.
+     * @returns {*} Returns the result of the invoked method.
+     */
+    function baseInvoke(object, path, args) {
+      path = castPath(path, object);
+      object = parent(object, path);
+      var func = object == null ? object : object[toKey(last(path))];
+      return func == null ? undefined : apply(func, object, args);
+    }
 
-                heappush = function(array, item, cmp) {
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    array.push(item);
-                    return _siftdown(array, 0, array.length - 1, cmp);
-                };
+    /**
+     * The base implementation of `_.isArguments`.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+     */
+    function baseIsArguments(value) {
+      return isObjectLike(value) && baseGetTag(value) == argsTag;
+    }
 
+    /**
+     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
+     */
+    function baseIsArrayBuffer(value) {
+      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
+    }
 
-                /*
-  Pop the smallest item off the heap, maintaining the heap invariant.
-   */
+    /**
+     * The base implementation of `_.isDate` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
+     */
+    function baseIsDate(value) {
+      return isObjectLike(value) && baseGetTag(value) == dateTag;
+    }
 
-                heappop = function(array, cmp) {
-                    var lastelt, returnitem;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    lastelt = array.pop();
-                    if (array.length) {
-                        returnitem = array[0];
-                        array[0] = lastelt;
-                        _siftup(array, 0, cmp);
-                    } else {
-                        returnitem = lastelt;
-                    }
-                    return returnitem;
-                };
+    /**
+     * The base implementation of `_.isEqual` which supports partial comparisons
+     * and tracks traversed objects.
+     *
+     * @private
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @param {boolean} bitmask The bitmask flags.
+     *  1 - Unordered comparison
+     *  2 - Partial comparison
+     * @param {Function} [customizer] The function to customize comparisons.
+     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
+     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+     */
+    function baseIsEqual(value, other, bitmask, customizer, stack) {
+      if (value === other) {
+        return true;
+      }
+      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
+        return value !== value && other !== other;
+      }
+      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
+    }
 
+    /**
+     * A specialized version of `baseIsEqual` for arrays and objects which performs
+     * deep comparisons and tracks traversed objects enabling objects with circular
+     * references to be compared.
+     *
+     * @private
+     * @param {Object} object The object to compare.
+     * @param {Object} other The other object to compare.
+     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+     * @param {Function} customizer The function to customize comparisons.
+     * @param {Function} equalFunc The function to determine equivalents of values.
+     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+     */
+    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
+      var objIsArr = isArray(object),
+          othIsArr = isArray(other),
+          objTag = objIsArr ? arrayTag : getTag(object),
+          othTag = othIsArr ? arrayTag : getTag(other);
+
+      objTag = objTag == argsTag ? objectTag : objTag;
+      othTag = othTag == argsTag ? objectTag : othTag;
+
+      var objIsObj = objTag == objectTag,
+          othIsObj = othTag == objectTag,
+          isSameTag = objTag == othTag;
+
+      if (isSameTag && isBuffer(object)) {
+        if (!isBuffer(other)) {
+          return false;
+        }
+        objIsArr = true;
+        objIsObj = false;
+      }
+      if (isSameTag && !objIsObj) {
+        stack || (stack = new Stack);
+        return (objIsArr || isTypedArray(object))
+          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
+          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
+      }
+      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
+        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
+            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
+
+        if (objIsWrapped || othIsWrapped) {
+          var objUnwrapped = objIsWrapped ? object.value() : object,
+              othUnwrapped = othIsWrapped ? other.value() : other;
+
+          stack || (stack = new Stack);
+          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
+        }
+      }
+      if (!isSameTag) {
+        return false;
+      }
+      stack || (stack = new Stack);
+      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
+    }
 
-                /*
-  Pop and return the current smallest value, and add the new item.
+    /**
+     * The base implementation of `_.isMap` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
+     */
+    function baseIsMap(value) {
+      return isObjectLike(value) && getTag(value) == mapTag;
+    }
 
-  This is more efficient than heappop() followed by heappush(), and can be
-  more appropriate when using a fixed size heap. Note that the value
-  returned may be larger than item! That constrains reasonable use of
-  this routine unless written as part of a conditional replacement:
-      if item > array[0]
-        item = heapreplace(array, item)
-   */
-
-                heapreplace = function(array, item, cmp) {
-                    var returnitem;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    returnitem = array[0];
-                    array[0] = item;
-                    _siftup(array, 0, cmp);
-                    return returnitem;
-                };
-
-
-                /*
-  Fast version of a heappush followed by a heappop.
-   */
-
-                heappushpop = function(array, item, cmp) {
-                    var _ref;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    if (array.length && cmp(array[0], item) < 0) {
-                        _ref = [array[0], item], item = _ref[0], array[0] = _ref[1];
-                        _siftup(array, 0, cmp);
-                    }
-                    return item;
-                };
-
-
-                /*
-  Transform list into a heap, in-place, in O(array.length) time.
-   */
-
-                heapify = function(array, cmp) {
-                    var i, _i, _j, _len, _ref, _ref1, _results, _results1;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    _ref1 = (function() {
-                        _results1 = [];
-                        for (var _j = 0, _ref = floor(array.length / 2); 0 <= _ref ? _j < _ref : _j > _ref; 0 <= _ref ? _j++ : _j--){ _results1.push(_j); }
-                        return _results1;
-                    }).apply(this).reverse();
-                    _results = [];
-                    for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
-                        i = _ref1[_i];
-                        _results.push(_siftup(array, i, cmp));
-                    }
-                    return _results;
-                };
-
-
-                /*
-  Update the position of the given item in the heap.
-  This function should be called every time the item is being modified.
-   */
-
-                updateItem = function(array, item, cmp) {
-                    var pos;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    pos = array.indexOf(item);
-                    if (pos === -1) {
-                        return;
-                    }
-                    _siftdown(array, 0, pos, cmp);
-                    return _siftup(array, pos, cmp);
-                };
-
-
-                /*
-  Find the n largest elements in a dataset.
-   */
-
-                nlargest = function(array, n, cmp) {
-                    var elem, result, _i, _len, _ref;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    result = array.slice(0, n);
-                    if (!result.length) {
-                        return result;
-                    }
-                    heapify(result, cmp);
-                    _ref = array.slice(n);
-                    for (_i = 0, _len = _ref.length; _i < _len; _i++) {
-                        elem = _ref[_i];
-                        heappushpop(result, elem, cmp);
-                    }
-                    return result.sort(cmp).reverse();
-                };
-
-
-                /*
-  Find the n smallest elements in a dataset.
-   */
-
-                nsmallest = function(array, n, cmp) {
-                    var elem, i, los, result, _i, _j, _len, _ref, _ref1, _results;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    if (n * 10 <= array.length) {
-                        result = array.slice(0, n).sort(cmp);
-                        if (!result.length) {
-                            return result;
-                        }
-                        los = result[result.length - 1];
-                        _ref = array.slice(n);
-                        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
-                            elem = _ref[_i];
-                            if (cmp(elem, los) < 0) {
-                                insort(result, elem, 0, null, cmp);
-                                result.pop();
-                                los = result[result.length - 1];
-                            }
-                        }
-                        return result;
-                    }
-                    heapify(array, cmp);
-                    _results = [];
-                    for (i = _j = 0, _ref1 = min(n, array.length); 0 <= _ref1 ? _j < _ref1 : _j > _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
-                        _results.push(heappop(array, cmp));
-                    }
-                    return _results;
-                };
-
-                _siftdown = function(array, startpos, pos, cmp) {
-                    var newitem, parent, parentpos;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    newitem = array[pos];
-                    while (pos > startpos) {
-                        parentpos = (pos - 1) >> 1;
-                        parent = array[parentpos];
-                        if (cmp(newitem, parent) < 0) {
-                            array[pos] = parent;
-                            pos = parentpos;
-                            continue;
-                        }
-                        break;
-                    }
-                    return array[pos] = newitem;
-                };
-
-                _siftup = function(array, pos, cmp) {
-                    var childpos, endpos, newitem, rightpos, startpos;
-                    if (cmp == null) {
-                        cmp = defaultCmp;
-                    }
-                    endpos = array.length;
-                    startpos = pos;
-                    newitem = array[pos];
-                    childpos = 2 * pos + 1;
-                    while (childpos < endpos) {
-                        rightpos = childpos + 1;
-                        if (rightpos < endpos && !(cmp(array[childpos], array[rightpos]) < 0)) {
-                            childpos = rightpos;
-                        }
-                        array[pos] = array[childpos];
-                        pos = childpos;
-                        childpos = 2 * pos + 1;
-                    }
-                    array[pos] = newitem;
-                    return _siftdown(array, startpos, pos, cmp);
-                };
-
-                Heap = (function() {
-                    Heap.push = heappush;
-
-                    Heap.pop = heappop;
-
-                    Heap.replace = heapreplace;
-
-                    Heap.pushpop = heappushpop;
-
-                    Heap.heapify = heapify;
-
-                    Heap.updateItem = updateItem;
-
-                    Heap.nlargest = nlargest;
-
-                    Heap.nsmallest = nsmallest;
-
-                    function Heap(cmp) {
-                        this.cmp = cmp != null ? cmp : defaultCmp;
-                        this.nodes = [];
-                    }
-
-                    Heap.prototype.push = function(x) {
-                        return heappush(this.nodes, x, this.cmp);
-                    };
-
-                    Heap.prototype.pop = function() {
-                        return heappop(this.nodes, this.cmp);
-                    };
-
-                    Heap.prototype.peek = function() {
-                        return this.nodes[0];
-                    };
-
-                    Heap.prototype.contains = function(x) {
-                        return this.nodes.indexOf(x) !== -1;
-                    };
-
-                    Heap.prototype.replace = function(x) {
-                        return heapreplace(this.nodes, x, this.cmp);
-                    };
-
-                    Heap.prototype.pushpop = function(x) {
-                        return heappushpop(this.nodes, x, this.cmp);
-                    };
-
-                    Heap.prototype.heapify = function() {
-                        return heapify(this.nodes, this.cmp);
-                    };
-
-                    Heap.prototype.updateItem = function(x) {
-                        return updateItem(this.nodes, x, this.cmp);
-                    };
-
-                    Heap.prototype.clear = function() {
-                        return this.nodes = [];
-                    };
-
-                    Heap.prototype.empty = function() {
-                        return this.nodes.length === 0;
-                    };
-
-                    Heap.prototype.size = function() {
-                        return this.nodes.length;
-                    };
-
-                    Heap.prototype.clone = function() {
-                        var heap;
-                        heap = new Heap();
-                        heap.nodes = this.nodes.slice(0);
-                        return heap;
-                    };
-
-                    Heap.prototype.toArray = function() {
-                        return this.nodes.slice(0);
-                    };
-
-                    Heap.prototype.insert = Heap.prototype.push;
-
-                    Heap.prototype.top = Heap.prototype.peek;
-
-                    Heap.prototype.front = Heap.prototype.peek;
-
-                    Heap.prototype.has = Heap.prototype.contains;
-
-                    Heap.prototype.copy = Heap.prototype.clone;
-
-                    return Heap;
-
-                })();
-
-                (function(root, factory) {
-                    if (true) {
-                        return !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
-                            __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
-                                (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
-                        __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-                    } else {}
-                })(this, function() {
-                    return Heap;
-                });
-
-            }).call(this);
-
-
-            /***/ }),
-
-        /***/ "./node_modules/jquery/dist/jquery.js":
-        /*!********************************************!*\
-  !*** ./node_modules/jquery/dist/jquery.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- * jQuery JavaScript Library v3.5.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2020-05-04T22:49Z
- */
-            ( function( global, factory ) {
-
-                "use strict";
-
-                if (  true && typeof module.exports === "object" ) {
-
-                    // For CommonJS and CommonJS-like environments where a proper `window`
-                    // is present, execute the factory and get jQuery.
-                    // For environments that do not have a `window` with a `document`
-                    // (such as Node.js), expose a factory as module.exports.
-                    // This accentuates the need for the creation of a real `window`.
-                    // e.g. var jQuery = require("jquery")(window);
-                    // See ticket #14549 for more info.
-                    module.exports = global.document ?
-                        factory( global, true ) :
-                        function( w ) {
-                            if ( !w.document ) {
-                                throw new Error( "jQuery requires a window with a document" );
-                            }
-                            return factory( w );
-                        };
-                } else {
-                    factory( global );
-                }
-
-// Pass this if window is not defined yet
-            } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-                "use strict";
-
-                var arr = [];
-
-                var getProto = Object.getPrototypeOf;
-
-                var slice = arr.slice;
-
-                var flat = arr.flat ? function( array ) {
-                    return arr.flat.call( array );
-                } : function( array ) {
-                    return arr.concat.apply( [], array );
-                };
-
-
-                var push = arr.push;
-
-                var indexOf = arr.indexOf;
-
-                var class2type = {};
-
-                var toString = class2type.toString;
-
-                var hasOwn = class2type.hasOwnProperty;
-
-                var fnToString = hasOwn.toString;
-
-                var ObjectFunctionString = fnToString.call( Object );
-
-                var support = {};
-
-                var isFunction = function isFunction( obj ) {
-
-                    // Support: Chrome <=57, Firefox <=52
-                    // In some browsers, typeof returns "function" for HTML <object> elements
-                    // (i.e., `typeof document.createElement( "object" ) === "function"`).
-                    // We don't want to classify *any* DOM node as a function.
-                    return typeof obj === "function" && typeof obj.nodeType !== "number";
-                };
-
-
-                var isWindow = function isWindow( obj ) {
-                    return obj != null && obj === obj.window;
-                };
-
-
-                var document = window.document;
-
-
-
-                var preservedScriptAttributes = {
-                    type: true,
-                    src: true,
-                    nonce: true,
-                    noModule: true
-                };
-
-                function DOMEval( code, node, doc ) {
-                    doc = doc || document;
-
-                    var i, val,
-                        script = doc.createElement( "script" );
-
-                    script.text = code;
-                    if ( node ) {
-                        for ( i in preservedScriptAttributes ) {
-
-                            // Support: Firefox 64+, Edge 18+
-                            // Some browsers don't support the "nonce" property on scripts.
-                            // On the other hand, just using `getAttribute` is not enough as
-                            // the `nonce` attribute is reset to an empty string whenever it
-                            // becomes browsing-context connected.
-                            // See https://github.com/whatwg/html/issues/2369
-                            // See https://html.spec.whatwg.org/#nonce-attributes
-                            // The `node.getAttribute` check was added for the sake of
-                            // `jQuery.globalEval` so that it can fake a nonce-containing node
-                            // via an object.
-                            val = node[ i ] || node.getAttribute && node.getAttribute( i );
-                            if ( val ) {
-                                script.setAttribute( i, val );
-                            }
-                        }
-                    }
-                    doc.head.appendChild( script ).parentNode.removeChild( script );
-                }
-
-
-                function toType( obj ) {
-                    if ( obj == null ) {
-                        return obj + "";
-                    }
-
-                    // Support: Android <=2.3 only (functionish RegExp)
-                    return typeof obj === "object" || typeof obj === "function" ?
-                        class2type[ toString.call( obj ) ] || "object" :
-                        typeof obj;
-                }
-                /* global Symbol */
-// Defining this global in .eslintrc.json would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-
-
-                var
-                    version = "3.5.1",
-
-                    // Define a local copy of jQuery
-                    jQuery = function( selector, context ) {
-
-                        // The jQuery object is actually just the init constructor 'enhanced'
-                        // Need init if jQuery is called (just allow error to be thrown if not included)
-                        return new jQuery.fn.init( selector, context );
-                    };
-
-                jQuery.fn = jQuery.prototype = {
-
-                    // The current version of jQuery being used
-                    jquery: version,
-
-                    constructor: jQuery,
-
-                    // The default length of a jQuery object is 0
-                    length: 0,
-
-                    toArray: function() {
-                        return slice.call( this );
-                    },
-
-                    // Get the Nth element in the matched element set OR
-                    // Get the whole matched element set as a clean array
-                    get: function( num ) {
-
-                        // Return all the elements in a clean array
-                        if ( num == null ) {
-                            return slice.call( this );
-                        }
-
-                        // Return just the one element from the set
-                        return num < 0 ? this[ num + this.length ] : this[ num ];
-                    },
-
-                    // Take an array of elements and push it onto the stack
-                    // (returning the new matched element set)
-                    pushStack: function( elems ) {
-
-                        // Build a new jQuery matched element set
-                        var ret = jQuery.merge( this.constructor(), elems );
-
-                        // Add the old object onto the stack (as a reference)
-                        ret.prevObject = this;
-
-                        // Return the newly-formed element set
-                        return ret;
-                    },
-
-                    // Execute a callback for every element in the matched set.
-                    each: function( callback ) {
-                        return jQuery.each( this, callback );
-                    },
-
-                    map: function( callback ) {
-                        return this.pushStack( jQuery.map( this, function( elem, i ) {
-                            return callback.call( elem, i, elem );
-                        } ) );
-                    },
-
-                    slice: function() {
-                        return this.pushStack( slice.apply( this, arguments ) );
-                    },
-
-                    first: function() {
-                        return this.eq( 0 );
-                    },
-
-                    last: function() {
-                        return this.eq( -1 );
-                    },
-
-                    even: function() {
-                        return this.pushStack( jQuery.grep( this, function( _elem, i ) {
-                            return ( i + 1 ) % 2;
-                        } ) );
-                    },
-
-                    odd: function() {
-                        return this.pushStack( jQuery.grep( this, function( _elem, i ) {
-                            return i % 2;
-                        } ) );
-                    },
-
-                    eq: function( i ) {
-                        var len = this.length,
-                            j = +i + ( i < 0 ? len : 0 );
-                        return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
-                    },
-
-                    end: function() {
-                        return this.prevObject || this.constructor();
-                    },
-
-                    // For internal use only.
-                    // Behaves like an Array's method, not like a jQuery method.
-                    push: push,
-                    sort: arr.sort,
-                    splice: arr.splice
-                };
-
-                jQuery.extend = jQuery.fn.extend = function() {
-                    var options, name, src, copy, copyIsArray, clone,
-                        target = arguments[ 0 ] || {},
-                        i = 1,
-                        length = arguments.length,
-                        deep = false;
-
-                    // Handle a deep copy situation
-                    if ( typeof target === "boolean" ) {
-                        deep = target;
-
-                        // Skip the boolean and the target
-                        target = arguments[ i ] || {};
-                        i++;
-                    }
-
-                    // Handle case when target is a string or something (possible in deep copy)
-                    if ( typeof target !== "object" && !isFunction( target ) ) {
-                        target = {};
-                    }
-
-                    // Extend jQuery itself if only one argument is passed
-                    if ( i === length ) {
-                        target = this;
-                        i--;
-                    }
-
-                    for ( ; i < length; i++ ) {
-
-                        // Only deal with non-null/undefined values
-                        if ( ( options = arguments[ i ] ) != null ) {
-
-                            // Extend the base object
-                            for ( name in options ) {
-                                copy = options[ name ];
-
-                                // Prevent Object.prototype pollution
-                                // Prevent never-ending loop
-                                if ( name === "__proto__" || target === copy ) {
-                                    continue;
-                                }
-
-                                // Recurse if we're merging plain objects or arrays
-                                if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
-                                    ( copyIsArray = Array.isArray( copy ) ) ) ) {
-                                    src = target[ name ];
-
-                                    // Ensure proper type for the source value
-                                    if ( copyIsArray && !Array.isArray( src ) ) {
-                                        clone = [];
-                                    } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
-                                        clone = {};
-                                    } else {
-                                        clone = src;
-                                    }
-                                    copyIsArray = false;
-
-                                    // Never move original objects, clone them
-                                    target[ name ] = jQuery.extend( deep, clone, copy );
-
-                                    // Don't bring in undefined values
-                                } else if ( copy !== undefined ) {
-                                    target[ name ] = copy;
-                                }
-                            }
-                        }
-                    }
-
-                    // Return the modified object
-                    return target;
-                };
-
-                jQuery.extend( {
-
-                    // Unique for each copy of jQuery on the page
-                    expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
-                    // Assume jQuery is ready without the ready module
-                    isReady: true,
-
-                    error: function( msg ) {
-                        throw new Error( msg );
-                    },
-
-                    noop: function() {},
-
-                    isPlainObject: function( obj ) {
-                        var proto, Ctor;
-
-                        // Detect obvious negatives
-                        // Use toString instead of jQuery.type to catch host objects
-                        if ( !obj || toString.call( obj ) !== "[object Object]" ) {
-                            return false;
-                        }
-
-                        proto = getProto( obj );
-
-                        // Objects with no prototype (e.g., `Object.create( null )`) are plain
-                        if ( !proto ) {
-                            return true;
-                        }
-
-                        // Objects with prototype are plain iff they were constructed by a global Object function
-                        Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
-                        return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
-                    },
-
-                    isEmptyObject: function( obj ) {
-                        var name;
-
-                        for ( name in obj ) {
-                            return false;
-                        }
-                        return true;
-                    },
-
-                    // Evaluates a script in a provided context; falls back to the global one
-                    // if not specified.
-                    globalEval: function( code, options, doc ) {
-                        DOMEval( code, { nonce: options && options.nonce }, doc );
-                    },
-
-                    each: function( obj, callback ) {
-                        var length, i = 0;
-
-                        if ( isArrayLike( obj ) ) {
-                            length = obj.length;
-                            for ( ; i < length; i++ ) {
-                                if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-                                    break;
-                                }
-                            }
-                        } else {
-                            for ( i in obj ) {
-                                if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
-                                    break;
-                                }
-                            }
-                        }
-
-                        return obj;
-                    },
-
-                    // results is for internal usage only
-                    makeArray: function( arr, results ) {
-                        var ret = results || [];
-
-                        if ( arr != null ) {
-                            if ( isArrayLike( Object( arr ) ) ) {
-                                jQuery.merge( ret,
-                                    typeof arr === "string" ?
-                                        [ arr ] : arr
-                                );
-                            } else {
-                                push.call( ret, arr );
-                            }
-                        }
-
-                        return ret;
-                    },
-
-                    inArray: function( elem, arr, i ) {
-                        return arr == null ? -1 : indexOf.call( arr, elem, i );
-                    },
-
-                    // Support: Android <=4.0 only, PhantomJS 1 only
-                    // push.apply(_, arraylike) throws on ancient WebKit
-                    merge: function( first, second ) {
-                        var len = +second.length,
-                            j = 0,
-                            i = first.length;
-
-                        for ( ; j < len; j++ ) {
-                            first[ i++ ] = second[ j ];
-                        }
-
-                        first.length = i;
-
-                        return first;
-                    },
-
-                    grep: function( elems, callback, invert ) {
-                        var callbackInverse,
-                            matches = [],
-                            i = 0,
-                            length = elems.length,
-                            callbackExpect = !invert;
-
-                        // Go through the array, only saving the items
-                        // that pass the validator function
-                        for ( ; i < length; i++ ) {
-                            callbackInverse = !callback( elems[ i ], i );
-                            if ( callbackInverse !== callbackExpect ) {
-                                matches.push( elems[ i ] );
-                            }
-                        }
-
-                        return matches;
-                    },
-
-                    // arg is for internal usage only
-                    map: function( elems, callback, arg ) {
-                        var length, value,
-                            i = 0,
-                            ret = [];
-
-                        // Go through the array, translating each of the items to their new values
-                        if ( isArrayLike( elems ) ) {
-                            length = elems.length;
-                            for ( ; i < length; i++ ) {
-                                value = callback( elems[ i ], i, arg );
-
-                                if ( value != null ) {
-                                    ret.push( value );
-                                }
-                            }
-
-                            // Go through every key on the object,
-                        } else {
-                            for ( i in elems ) {
-                                value = callback( elems[ i ], i, arg );
-
-                                if ( value != null ) {
-                                    ret.push( value );
-                                }
-                            }
-                        }
-
-                        // Flatten any nested arrays
-                        return flat( ret );
-                    },
-
-                    // A global GUID counter for objects
-                    guid: 1,
-
-                    // jQuery.support is not used in Core but other projects attach their
-                    // properties to it so it needs to exist.
-                    support: support
-                } );
-
-                if ( typeof Symbol === "function" ) {
-                    jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-                }
-
-// Populate the class2type map
-                jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-                    function( _i, name ) {
-                        class2type[ "[object " + name + "]" ] = name.toLowerCase();
-                    } );
-
-                function isArrayLike( obj ) {
-
-                    // Support: real iOS 8.2 only (not reproducible in simulator)
-                    // `in` check used to prevent JIT error (gh-2145)
-                    // hasOwn isn't used here due to false negatives
-                    // regarding Nodelist length in IE
-                    var length = !!obj && "length" in obj && obj.length,
-                        type = toType( obj );
-
-                    if ( isFunction( obj ) || isWindow( obj ) ) {
-                        return false;
-                    }
-
-                    return type === "array" || length === 0 ||
-                        typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-                }
-                var Sizzle =
-                    /*!
- * Sizzle CSS Selector Engine v2.3.5
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://js.foundation/
- *
- * Date: 2020-03-14
- */
-                    ( function( window ) {
-                        var i,
-                            support,
-                            Expr,
-                            getText,
-                            isXML,
-                            tokenize,
-                            compile,
-                            select,
-                            outermostContext,
-                            sortInput,
-                            hasDuplicate,
-
-                            // Local document vars
-                            setDocument,
-                            document,
-                            docElem,
-                            documentIsHTML,
-                            rbuggyQSA,
-                            rbuggyMatches,
-                            matches,
-                            contains,
-
-                            // Instance-specific data
-                            expando = "sizzle" + 1 * new Date(),
-                            preferredDoc = window.document,
-                            dirruns = 0,
-                            done = 0,
-                            classCache = createCache(),
-                            tokenCache = createCache(),
-                            compilerCache = createCache(),
-                            nonnativeSelectorCache = createCache(),
-                            sortOrder = function( a, b ) {
-                                if ( a === b ) {
-                                    hasDuplicate = true;
-                                }
-                                return 0;
-                            },
-
-                            // Instance methods
-                            hasOwn = ( {} ).hasOwnProperty,
-                            arr = [],
-                            pop = arr.pop,
-                            pushNative = arr.push,
-                            push = arr.push,
-                            slice = arr.slice,
-
-                            // Use a stripped-down indexOf as it's faster than native
-                            // https://jsperf.com/thor-indexof-vs-for/5
-                            indexOf = function( list, elem ) {
-                                var i = 0,
-                                    len = list.length;
-                                for ( ; i < len; i++ ) {
-                                    if ( list[ i ] === elem ) {
-                                        return i;
-                                    }
-                                }
-                                return -1;
-                            },
-
-                            booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
-                                "ismap|loop|multiple|open|readonly|required|scoped",
-
-                            // Regular expressions
-
-                            // http://www.w3.org/TR/css3-selectors/#whitespace
-                            whitespace = "[\\x20\\t\\r\\n\\f]",
-
-                            // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
-                            identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
-                                "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
-
-                            // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
-                            attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
-
-                                // Operator (capture 2)
-                                "*([*^$|!~]?=)" + whitespace +
-
-                                // "Attribute values must be CSS identifiers [capture 5]
-                                // or strings [capture 3 or capture 4]"
-                                "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
-                                whitespace + "*\\]",
-
-                            pseudos = ":(" + identifier + ")(?:\\((" +
-
-                                // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
-                                // 1. quoted (capture 3; capture 4 or capture 5)
-                                "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
-
-                                // 2. simple (capture 6)
-                                "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
-
-                                // 3. anything else (capture 2)
-                                ".*" +
-                                ")\\)|)",
-
-                            // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
-                            rwhitespace = new RegExp( whitespace + "+", "g" ),
-                            rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
-                                whitespace + "+$", "g" ),
-
-                            rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
-                            rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
-                                "*" ),
-                            rdescend = new RegExp( whitespace + "|>" ),
-
-                            rpseudo = new RegExp( pseudos ),
-                            ridentifier = new RegExp( "^" + identifier + "$" ),
-
-                            matchExpr = {
-                                "ID": new RegExp( "^#(" + identifier + ")" ),
-                                "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
-                                "TAG": new RegExp( "^(" + identifier + "|[*])" ),
-                                "ATTR": new RegExp( "^" + attributes ),
-                                "PSEUDO": new RegExp( "^" + pseudos ),
-                                "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
-                                    whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
-                                    whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
-                                "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
-
-                                // For use in libraries implementing .is()
-                                // We use this for POS matching in `select`
-                                "needsContext": new RegExp( "^" + whitespace +
-                                    "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
-                                    "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
-                            },
-
-                            rhtml = /HTML$/i,
-                            rinputs = /^(?:input|select|textarea|button)$/i,
-                            rheader = /^h\d$/i,
-
-                            rnative = /^[^{]+\{\s*\[native \w/,
-
-                            // Easily-parseable/retrievable ID or TAG or CLASS selectors
-                            rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
-                            rsibling = /[+~]/,
-
-                            // CSS escapes
-                            // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
-                            runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
-                            funescape = function( escape, nonHex ) {
-                                var high = "0x" + escape.slice( 1 ) - 0x10000;
-
-                                return nonHex ?
-
-                                    // Strip the backslash prefix from a non-hex escape sequence
-                                    nonHex :
-
-                                    // Replace a hexadecimal escape sequence with the encoded Unicode code point
-                                    // Support: IE <=11+
-                                    // For values outside the Basic Multilingual Plane (BMP), manually construct a
-                                    // surrogate pair
-                                    high < 0 ?
-                                        String.fromCharCode( high + 0x10000 ) :
-                                        String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
-                            },
-
-                            // CSS string/identifier serialization
-                            // https://drafts.csswg.org/cssom/#common-serializing-idioms
-                            rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
-                            fcssescape = function( ch, asCodePoint ) {
-                                if ( asCodePoint ) {
-
-                                    // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
-                                    if ( ch === "\0" ) {
-                                        return "\uFFFD";
-                                    }
-
-                                    // Control characters and (dependent upon position) numbers get escaped as code points
-                                    return ch.slice( 0, -1 ) + "\\" +
-                                        ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
-                                }
-
-                                // Other potentially-special ASCII characters get backslash-escaped
-                                return "\\" + ch;
-                            },
-
-                            // Used for iframes
-                            // See setDocument()
-                            // Removing the function wrapper causes a "Permission Denied"
-                            // error in IE
-                            unloadHandler = function() {
-                                setDocument();
-                            },
-
-                            inDisabledFieldset = addCombinator(
-                                function( elem ) {
-                                    return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
-                                },
-                                { dir: "parentNode", next: "legend" }
-                            );
-
-// Optimize for push.apply( _, NodeList )
-                        try {
-                            push.apply(
-                                ( arr = slice.call( preferredDoc.childNodes ) ),
-                                preferredDoc.childNodes
-                            );
-
-                            // Support: Android<4.0
-                            // Detect silently failing push.apply
-                            // eslint-disable-next-line no-unused-expressions
-                            arr[ preferredDoc.childNodes.length ].nodeType;
-                        } catch ( e ) {
-                            push = { apply: arr.length ?
-
-                                    // Leverage slice if possible
-                                    function( target, els ) {
-                                        pushNative.apply( target, slice.call( els ) );
-                                    } :
-
-                                    // Support: IE<9
-                                    // Otherwise append directly
-                                    function( target, els ) {
-                                        var j = target.length,
-                                            i = 0;
-
-                                        // Can't trust NodeList.length
-                                        while ( ( target[ j++ ] = els[ i++ ] ) ) {}
-                                        target.length = j - 1;
-                                    }
-                            };
-                        }
-
-                        function Sizzle( selector, context, results, seed ) {
-                            var m, i, elem, nid, match, groups, newSelector,
-                                newContext = context && context.ownerDocument,
-
-                                // nodeType defaults to 9, since context defaults to document
-                                nodeType = context ? context.nodeType : 9;
-
-                            results = results || [];
-
-                            // Return early from calls with invalid selector or context
-                            if ( typeof selector !== "string" || !selector ||
-                                nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
-                                return results;
-                            }
-
-                            // Try to shortcut find operations (as opposed to filters) in HTML documents
-                            if ( !seed ) {
-                                setDocument( context );
-                                context = context || document;
-
-                                if ( documentIsHTML ) {
-
-                                    // If the selector is sufficiently simple, try using a "get*By*" DOM method
-                                    // (excepting DocumentFragment context, where the methods don't exist)
-                                    if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
-
-                                        // ID selector
-                                        if ( ( m = match[ 1 ] ) ) {
-
-                                            // Document context
-                                            if ( nodeType === 9 ) {
-                                                if ( ( elem = context.getElementById( m ) ) ) {
-
-                                                    // Support: IE, Opera, Webkit
-                                                    // TODO: identify versions
-                                                    // getElementById can match elements by name instead of ID
-                                                    if ( elem.id === m ) {
-                                                        results.push( elem );
-                                                        return results;
-                                                    }
-                                                } else {
-                                                    return results;
-                                                }
-
-                                                // Element context
-                                            } else {
-
-                                                // Support: IE, Opera, Webkit
-                                                // TODO: identify versions
-                                                // getElementById can match elements by name instead of ID
-                                                if ( newContext && ( elem = newContext.getElementById( m ) ) &&
-                                                    contains( context, elem ) &&
-                                                    elem.id === m ) {
-
-                                                    results.push( elem );
-                                                    return results;
-                                                }
-                                            }
-
-                                            // Type selector
-                                        } else if ( match[ 2 ] ) {
-                                            push.apply( results, context.getElementsByTagName( selector ) );
-                                            return results;
-
-                                            // Class selector
-                                        } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
-                                            context.getElementsByClassName ) {
-
-                                            push.apply( results, context.getElementsByClassName( m ) );
-                                            return results;
-                                        }
-                                    }
-
-                                    // Take advantage of querySelectorAll
-                                    if ( support.qsa &&
-                                        !nonnativeSelectorCache[ selector + " " ] &&
-                                        ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
-
-                                        // Support: IE 8 only
-                                        // Exclude object elements
-                                        ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
-
-                                        newSelector = selector;
-                                        newContext = context;
-
-                                        // qSA considers elements outside a scoping root when evaluating child or
-                                        // descendant combinators, which is not what we want.
-                                        // In such cases, we work around the behavior by prefixing every selector in the
-                                        // list with an ID selector referencing the scope context.
-                                        // The technique has to be used as well when a leading combinator is used
-                                        // as such selectors are not recognized by querySelectorAll.
-                                        // Thanks to Andrew Dupont for this technique.
-                                        if ( nodeType === 1 &&
-                                            ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
-
-                                            // Expand context for sibling selectors
-                                            newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
-                                                context;
-
-                                            // We can use :scope instead of the ID hack if the browser
-                                            // supports it & if we're not changing the context.
-                                            if ( newContext !== context || !support.scope ) {
-
-                                                // Capture the context ID, setting it first if necessary
-                                                if ( ( nid = context.getAttribute( "id" ) ) ) {
-                                                    nid = nid.replace( rcssescape, fcssescape );
-                                                } else {
-                                                    context.setAttribute( "id", ( nid = expando ) );
-                                                }
-                                            }
-
-                                            // Prefix every selector in the list
-                                            groups = tokenize( selector );
-                                            i = groups.length;
-                                            while ( i-- ) {
-                                                groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
-                                                    toSelector( groups[ i ] );
-                                            }
-                                            newSelector = groups.join( "," );
-                                        }
-
-                                        try {
-                                            push.apply( results,
-                                                newContext.querySelectorAll( newSelector )
-                                            );
-                                            return results;
-                                        } catch ( qsaError ) {
-                                            nonnativeSelectorCache( selector, true );
-                                        } finally {
-                                            if ( nid === expando ) {
-                                                context.removeAttribute( "id" );
-                                            }
-                                        }
-                                    }
-                                }
-                            }
-
-                            // All others
-                            return select( selector.replace( rtrim, "$1" ), context, results, seed );
-                        }
-
-                        /**
-                         * Create key-value caches of limited size
-                         * @returns {function(string, object)} Returns the Object data after storing it on itself with
-                         *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
-                         *	deleting the oldest entry
-                         */
-                        function createCache() {
-                            var keys = [];
-
-                            function cache( key, value ) {
-
-                                // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
-                                if ( keys.push( key + " " ) > Expr.cacheLength ) {
-
-                                    // Only keep the most recent entries
-                                    delete cache[ keys.shift() ];
-                                }
-                                return ( cache[ key + " " ] = value );
-                            }
-                            return cache;
-                        }
-
-                        /**
-                         * Mark a function for special use by Sizzle
-                         * @param {Function} fn The function to mark
-                         */
-                        function markFunction( fn ) {
-                            fn[ expando ] = true;
-                            return fn;
-                        }
-
-                        /**
-                         * Support testing using an element
-                         * @param {Function} fn Passed the created element and returns a boolean result
-                         */
-                        function assert( fn ) {
-                            var el = document.createElement( "fieldset" );
-
-                            try {
-                                return !!fn( el );
-                            } catch ( e ) {
-                                return false;
-                            } finally {
-
-                                // Remove from its parent by default
-                                if ( el.parentNode ) {
-                                    el.parentNode.removeChild( el );
-                                }
-
-                                // release memory in IE
-                                el = null;
-                            }
-                        }
-
-                        /**
-                         * Adds the same handler for all of the specified attrs
-                         * @param {String} attrs Pipe-separated list of attributes
-                         * @param {Function} handler The method that will be applied
-                         */
-                        function addHandle( attrs, handler ) {
-                            var arr = attrs.split( "|" ),
-                                i = arr.length;
-
-                            while ( i-- ) {
-                                Expr.attrHandle[ arr[ i ] ] = handler;
-                            }
-                        }
-
-                        /**
-                         * Checks document order of two siblings
-                         * @param {Element} a
-                         * @param {Element} b
-                         * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
-                         */
-                        function siblingCheck( a, b ) {
-                            var cur = b && a,
-                                diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
-                                    a.sourceIndex - b.sourceIndex;
-
-                            // Use IE sourceIndex if available on both nodes
-                            if ( diff ) {
-                                return diff;
-                            }
-
-                            // Check if b follows a
-                            if ( cur ) {
-                                while ( ( cur = cur.nextSibling ) ) {
-                                    if ( cur === b ) {
-                                        return -1;
-                                    }
-                                }
-                            }
-
-                            return a ? 1 : -1;
-                        }
-
-                        /**
-                         * Returns a function to use in pseudos for input types
-                         * @param {String} type
-                         */
-                        function createInputPseudo( type ) {
-                            return function( elem ) {
-                                var name = elem.nodeName.toLowerCase();
-                                return name === "input" && elem.type === type;
-                            };
-                        }
-
-                        /**
-                         * Returns a function to use in pseudos for buttons
-                         * @param {String} type
-                         */
-                        function createButtonPseudo( type ) {
-                            return function( elem ) {
-                                var name = elem.nodeName.toLowerCase();
-                                return ( name === "input" || name === "button" ) && elem.type === type;
-                            };
-                        }
-
-                        /**
-                         * Returns a function to use in pseudos for :enabled/:disabled
-                         * @param {Boolean} disabled true for :disabled; false for :enabled
-                         */
-                        function createDisabledPseudo( disabled ) {
-
-                            // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
-                            return function( elem ) {
-
-                                // Only certain elements can match :enabled or :disabled
-                                // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
-                                // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
-                                if ( "form" in elem ) {
-
-                                    // Check for inherited disabledness on relevant non-disabled elements:
-                                    // * listed form-associated elements in a disabled fieldset
-                                    //   https://html.spec.whatwg.org/multipage/forms.html#category-listed
-                                    //   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
-                                    // * option elements in a disabled optgroup
-                                    //   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
-                                    // All such elements have a "form" property.
-                                    if ( elem.parentNode && elem.disabled === false ) {
-
-                                        // Option elements defer to a parent optgroup if present
-                                        if ( "label" in elem ) {
-                                            if ( "label" in elem.parentNode ) {
-                                                return elem.parentNode.disabled === disabled;
-                                            } else {
-                                                return elem.disabled === disabled;
-                                            }
-                                        }
-
-                                        // Support: IE 6 - 11
-                                        // Use the isDisabled shortcut property to check for disabled fieldset ancestors
-                                        return elem.isDisabled === disabled ||
-
-                                            // Where there is no isDisabled, check manually
-                                            /* jshint -W018 */
-                                            elem.isDisabled !== !disabled &&
-                                            inDisabledFieldset( elem ) === disabled;
-                                    }
-
-                                    return elem.disabled === disabled;
-
-                                    // Try to winnow out elements that can't be disabled before trusting the disabled property.
-                                    // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
-                                    // even exist on them, let alone have a boolean value.
-                                } else if ( "label" in elem ) {
-                                    return elem.disabled === disabled;
-                                }
-
-                                // Remaining elements are neither :enabled nor :disabled
-                                return false;
-                            };
-                        }
-
-                        /**
-                         * Returns a function to use in pseudos for positionals
-                         * @param {Function} fn
-                         */
-                        function createPositionalPseudo( fn ) {
-                            return markFunction( function( argument ) {
-                                argument = +argument;
-                                return markFunction( function( seed, matches ) {
-                                    var j,
-                                        matchIndexes = fn( [], seed.length, argument ),
-                                        i = matchIndexes.length;
-
-                                    // Match elements found at the specified indexes
-                                    while ( i-- ) {
-                                        if ( seed[ ( j = matchIndexes[ i ] ) ] ) {
-                                            seed[ j ] = !( matches[ j ] = seed[ j ] );
-                                        }
-                                    }
-                                } );
-                            } );
-                        }
-
-                        /**
-                         * Checks a node for validity as a Sizzle context
-                         * @param {Element|Object=} context
-                         * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
-                         */
-                        function testContext( context ) {
-                            return context && typeof context.getElementsByTagName !== "undefined" && context;
-                        }
-
-// Expose support vars for convenience
-                        support = Sizzle.support = {};
-
-                        /**
-                         * Detects XML nodes
-                         * @param {Element|Object} elem An element or a document
-                         * @returns {Boolean} True iff elem is a non-HTML XML node
-                         */
-                        isXML = Sizzle.isXML = function( elem ) {
-                            var namespace = elem.namespaceURI,
-                                docElem = ( elem.ownerDocument || elem ).documentElement;
-
-                            // Support: IE <=8
-                            // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes
-                            // https://bugs.jquery.com/ticket/4833
-                            return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" );
-                        };
-
-                        /**
-                         * Sets document-related variables once based on the current document
-                         * @param {Element|Object} [doc] An element or document object to use to set the document
-                         * @returns {Object} Returns the current document
-                         */
-                        setDocument = Sizzle.setDocument = function( node ) {
-                            var hasCompare, subWindow,
-                                doc = node ? node.ownerDocument || node : preferredDoc;
-
-                            // Return early if doc is invalid or already selected
-                            // Support: IE 11+, Edge 17 - 18+
-                            // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                            // two documents; shallow comparisons work.
-                            // eslint-disable-next-line eqeqeq
-                            if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {
-                                return document;
-                            }
-
-                            // Update global variables
-                            document = doc;
-                            docElem = document.documentElement;
-                            documentIsHTML = !isXML( document );
-
-                            // Support: IE 9 - 11+, Edge 12 - 18+
-                            // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
-                            // Support: IE 11+, Edge 17 - 18+
-                            // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                            // two documents; shallow comparisons work.
-                            // eslint-disable-next-line eqeqeq
-                            if ( preferredDoc != document &&
-                                ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
-
-                                // Support: IE 11, Edge
-                                if ( subWindow.addEventListener ) {
-                                    subWindow.addEventListener( "unload", unloadHandler, false );
-
-                                    // Support: IE 9 - 10 only
-                                } else if ( subWindow.attachEvent ) {
-                                    subWindow.attachEvent( "onunload", unloadHandler );
-                                }
-                            }
-
-                            // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,
-                            // Safari 4 - 5 only, Opera <=11.6 - 12.x only
-                            // IE/Edge & older browsers don't support the :scope pseudo-class.
-                            // Support: Safari 6.0 only
-                            // Safari 6.0 supports :scope but it's an alias of :root there.
-                            support.scope = assert( function( el ) {
-                                docElem.appendChild( el ).appendChild( document.createElement( "div" ) );
-                                return typeof el.querySelectorAll !== "undefined" &&
-                                    !el.querySelectorAll( ":scope fieldset div" ).length;
-                            } );
-
-                            /* Attributes
-	---------------------------------------------------------------------- */
-
-                            // Support: IE<8
-                            // Verify that getAttribute really returns attributes and not properties
-                            // (excepting IE8 booleans)
-                            support.attributes = assert( function( el ) {
-                                el.className = "i";
-                                return !el.getAttribute( "className" );
-                            } );
-
-                            /* getElement(s)By*
-	---------------------------------------------------------------------- */
-
-                            // Check if getElementsByTagName("*") returns only elements
-                            support.getElementsByTagName = assert( function( el ) {
-                                el.appendChild( document.createComment( "" ) );
-                                return !el.getElementsByTagName( "*" ).length;
-                            } );
-
-                            // Support: IE<9
-                            support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
-                            // Support: IE<10
-                            // Check if getElementById returns elements by name
-                            // The broken getElementById methods don't pick up programmatically-set names,
-                            // so use a roundabout getElementsByName test
-                            support.getById = assert( function( el ) {
-                                docElem.appendChild( el ).id = expando;
-                                return !document.getElementsByName || !document.getElementsByName( expando ).length;
-                            } );
-
-                            // ID filter and find
-                            if ( support.getById ) {
-                                Expr.filter[ "ID" ] = function( id ) {
-                                    var attrId = id.replace( runescape, funescape );
-                                    return function( elem ) {
-                                        return elem.getAttribute( "id" ) === attrId;
-                                    };
-                                };
-                                Expr.find[ "ID" ] = function( id, context ) {
-                                    if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
-                                        var elem = context.getElementById( id );
-                                        return elem ? [ elem ] : [];
-                                    }
-                                };
-                            } else {
-                                Expr.filter[ "ID" ] =  function( id ) {
-                                    var attrId = id.replace( runescape, funescape );
-                                    return function( elem ) {
-                                        var node = typeof elem.getAttributeNode !== "undefined" &&
-                                            elem.getAttributeNode( "id" );
-                                        return node && node.value === attrId;
-                                    };
-                                };
-
-                                // Support: IE 6 - 7 only
-                                // getElementById is not reliable as a find shortcut
-                                Expr.find[ "ID" ] = function( id, context ) {
-                                    if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
-                                        var node, i, elems,
-                                            elem = context.getElementById( id );
-
-                                        if ( elem ) {
-
-                                            // Verify the id attribute
-                                            node = elem.getAttributeNode( "id" );
-                                            if ( node && node.value === id ) {
-                                                return [ elem ];
-                                            }
-
-                                            // Fall back on getElementsByName
-                                            elems = context.getElementsByName( id );
-                                            i = 0;
-                                            while ( ( elem = elems[ i++ ] ) ) {
-                                                node = elem.getAttributeNode( "id" );
-                                                if ( node && node.value === id ) {
-                                                    return [ elem ];
-                                                }
-                                            }
-                                        }
-
-                                        return [];
-                                    }
-                                };
-                            }
-
-                            // Tag
-                            Expr.find[ "TAG" ] = support.getElementsByTagName ?
-                                function( tag, context ) {
-                                    if ( typeof context.getElementsByTagName !== "undefined" ) {
-                                        return context.getElementsByTagName( tag );
-
-                                        // DocumentFragment nodes don't have gEBTN
-                                    } else if ( support.qsa ) {
-                                        return context.querySelectorAll( tag );
-                                    }
-                                } :
-
-                                function( tag, context ) {
-                                    var elem,
-                                        tmp = [],
-                                        i = 0,
-
-                                        // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
-                                        results = context.getElementsByTagName( tag );
-
-                                    // Filter out possible comments
-                                    if ( tag === "*" ) {
-                                        while ( ( elem = results[ i++ ] ) ) {
-                                            if ( elem.nodeType === 1 ) {
-                                                tmp.push( elem );
-                                            }
-                                        }
-
-                                        return tmp;
-                                    }
-                                    return results;
-                                };
-
-                            // Class
-                            Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) {
-                                if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
-                                    return context.getElementsByClassName( className );
-                                }
-                            };
-
-                            /* QSA/matchesSelector
-	---------------------------------------------------------------------- */
-
-                            // QSA and matchesSelector support
-
-                            // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
-                            rbuggyMatches = [];
-
-                            // qSa(:focus) reports false when true (Chrome 21)
-                            // We allow this because of a bug in IE8/9 that throws an error
-                            // whenever `document.activeElement` is accessed on an iframe
-                            // So, we allow :focus to pass through QSA all the time to avoid the IE error
-                            // See https://bugs.jquery.com/ticket/13378
-                            rbuggyQSA = [];
-
-                            if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {
-
-                                // Build QSA regex
-                                // Regex strategy adopted from Diego Perini
-                                assert( function( el ) {
-
-                                    var input;
-
-                                    // Select is set to empty string on purpose
-                                    // This is to test IE's treatment of not explicitly
-                                    // setting a boolean content attribute,
-                                    // since its presence should be enough
-                                    // https://bugs.jquery.com/ticket/12359
-                                    docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
-                                        "<select id='" + expando + "-\r\\' msallowcapture=''>" +
-                                        "<option selected=''></option></select>";
-
-                                    // Support: IE8, Opera 11-12.16
-                                    // Nothing should be selected when empty strings follow ^= or $= or *=
-                                    // The test attribute must be unknown in Opera but "safe" for WinRT
-                                    // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
-                                    if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) {
-                                        rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
-                                    }
-
-                                    // Support: IE8
-                                    // Boolean attributes and "value" are not treated correctly
-                                    if ( !el.querySelectorAll( "[selected]" ).length ) {
-                                        rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
-                                    }
-
-                                    // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
-                                    if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
-                                        rbuggyQSA.push( "~=" );
-                                    }
-
-                                    // Support: IE 11+, Edge 15 - 18+
-                                    // IE 11/Edge don't find elements on a `[name='']` query in some cases.
-                                    // Adding a temporary attribute to the document before the selection works
-                                    // around the issue.
-                                    // Interestingly, IE 10 & older don't seem to have the issue.
-                                    input = document.createElement( "input" );
-                                    input.setAttribute( "name", "" );
-                                    el.appendChild( input );
-                                    if ( !el.querySelectorAll( "[name='']" ).length ) {
-                                        rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" +
-                                            whitespace + "*(?:''|\"\")" );
-                                    }
-
-                                    // Webkit/Opera - :checked should return selected option elements
-                                    // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-                                    // IE8 throws error here and will not see later tests
-                                    if ( !el.querySelectorAll( ":checked" ).length ) {
-                                        rbuggyQSA.push( ":checked" );
-                                    }
-
-                                    // Support: Safari 8+, iOS 8+
-                                    // https://bugs.webkit.org/show_bug.cgi?id=136851
-                                    // In-page `selector#id sibling-combinator selector` fails
-                                    if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
-                                        rbuggyQSA.push( ".#.+[+~]" );
-                                    }
-
-                                    // Support: Firefox <=3.6 - 5 only
-                                    // Old Firefox doesn't throw on a badly-escaped identifier.
-                                    el.querySelectorAll( "\\\f" );
-                                    rbuggyQSA.push( "[\\r\\n\\f]" );
-                                } );
-
-                                assert( function( el ) {
-                                    el.innerHTML = "<a href='' disabled='disabled'></a>" +
-                                        "<select disabled='disabled'><option/></select>";
-
-                                    // Support: Windows 8 Native Apps
-                                    // The type and name attributes are restricted during .innerHTML assignment
-                                    var input = document.createElement( "input" );
-                                    input.setAttribute( "type", "hidden" );
-                                    el.appendChild( input ).setAttribute( "name", "D" );
-
-                                    // Support: IE8
-                                    // Enforce case-sensitivity of name attribute
-                                    if ( el.querySelectorAll( "[name=d]" ).length ) {
-                                        rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
-                                    }
-
-                                    // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
-                                    // IE8 throws error here and will not see later tests
-                                    if ( el.querySelectorAll( ":enabled" ).length !== 2 ) {
-                                        rbuggyQSA.push( ":enabled", ":disabled" );
-                                    }
-
-                                    // Support: IE9-11+
-                                    // IE's :disabled selector does not pick up the children of disabled fieldsets
-                                    docElem.appendChild( el ).disabled = true;
-                                    if ( el.querySelectorAll( ":disabled" ).length !== 2 ) {
-                                        rbuggyQSA.push( ":enabled", ":disabled" );
-                                    }
-
-                                    // Support: Opera 10 - 11 only
-                                    // Opera 10-11 does not throw on post-comma invalid pseudos
-                                    el.querySelectorAll( "*,:x" );
-                                    rbuggyQSA.push( ",.*:" );
-                                } );
-                            }
-
-                            if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||
-                                docElem.webkitMatchesSelector ||
-                                docElem.mozMatchesSelector ||
-                                docElem.oMatchesSelector ||
-                                docElem.msMatchesSelector ) ) ) ) {
-
-                                assert( function( el ) {
-
-                                    // Check to see if it's possible to do matchesSelector
-                                    // on a disconnected node (IE 9)
-                                    support.disconnectedMatch = matches.call( el, "*" );
-
-                                    // This should fail with an exception
-                                    // Gecko does not error, returns false instead
-                                    matches.call( el, "[s!='']:x" );
-                                    rbuggyMatches.push( "!=", pseudos );
-                                } );
-                            }
-
-                            rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
-                            rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) );
-
-                            /* Contains
-	---------------------------------------------------------------------- */
-                            hasCompare = rnative.test( docElem.compareDocumentPosition );
-
-                            // Element contains another
-                            // Purposefully self-exclusive
-                            // As in, an element does not contain itself
-                            contains = hasCompare || rnative.test( docElem.contains ) ?
-                                function( a, b ) {
-                                    var adown = a.nodeType === 9 ? a.documentElement : a,
-                                        bup = b && b.parentNode;
-                                    return a === bup || !!( bup && bup.nodeType === 1 && (
-                                        adown.contains ?
-                                            adown.contains( bup ) :
-                                            a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
-                                    ) );
-                                } :
-                                function( a, b ) {
-                                    if ( b ) {
-                                        while ( ( b = b.parentNode ) ) {
-                                            if ( b === a ) {
-                                                return true;
-                                            }
-                                        }
-                                    }
-                                    return false;
-                                };
-
-                            /* Sorting
-	---------------------------------------------------------------------- */
-
-                            // Document order sorting
-                            sortOrder = hasCompare ?
-                                function( a, b ) {
-
-                                    // Flag for duplicate removal
-                                    if ( a === b ) {
-                                        hasDuplicate = true;
-                                        return 0;
-                                    }
-
-                                    // Sort on method existence if only one input has compareDocumentPosition
-                                    var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
-                                    if ( compare ) {
-                                        return compare;
-                                    }
-
-                                    // Calculate position if both inputs belong to the same document
-                                    // Support: IE 11+, Edge 17 - 18+
-                                    // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                    // two documents; shallow comparisons work.
-                                    // eslint-disable-next-line eqeqeq
-                                    compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?
-                                        a.compareDocumentPosition( b ) :
-
-                                        // Otherwise we know they are disconnected
-                                        1;
-
-                                    // Disconnected nodes
-                                    if ( compare & 1 ||
-                                        ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {
-
-                                        // Choose the first element that is related to our preferred document
-                                        // Support: IE 11+, Edge 17 - 18+
-                                        // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                        // two documents; shallow comparisons work.
-                                        // eslint-disable-next-line eqeqeq
-                                        if ( a == document || a.ownerDocument == preferredDoc &&
-                                            contains( preferredDoc, a ) ) {
-                                            return -1;
-                                        }
-
-                                        // Support: IE 11+, Edge 17 - 18+
-                                        // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                        // two documents; shallow comparisons work.
-                                        // eslint-disable-next-line eqeqeq
-                                        if ( b == document || b.ownerDocument == preferredDoc &&
-                                            contains( preferredDoc, b ) ) {
-                                            return 1;
-                                        }
-
-                                        // Maintain original order
-                                        return sortInput ?
-                                            ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
-                                            0;
-                                    }
-
-                                    return compare & 4 ? -1 : 1;
-                                } :
-                                function( a, b ) {
-
-                                    // Exit early if the nodes are identical
-                                    if ( a === b ) {
-                                        hasDuplicate = true;
-                                        return 0;
-                                    }
-
-                                    var cur,
-                                        i = 0,
-                                        aup = a.parentNode,
-                                        bup = b.parentNode,
-                                        ap = [ a ],
-                                        bp = [ b ];
-
-                                    // Parentless nodes are either documents or disconnected
-                                    if ( !aup || !bup ) {
-
-                                        // Support: IE 11+, Edge 17 - 18+
-                                        // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                        // two documents; shallow comparisons work.
-                                        /* eslint-disable eqeqeq */
-                                        return a == document ? -1 :
-                                            b == document ? 1 :
-                                                /* eslint-enable eqeqeq */
-                                                aup ? -1 :
-                                                    bup ? 1 :
-                                                        sortInput ?
-                                                            ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
-                                                            0;
-
-                                        // If the nodes are siblings, we can do a quick check
-                                    } else if ( aup === bup ) {
-                                        return siblingCheck( a, b );
-                                    }
-
-                                    // Otherwise we need full lists of their ancestors for comparison
-                                    cur = a;
-                                    while ( ( cur = cur.parentNode ) ) {
-                                        ap.unshift( cur );
-                                    }
-                                    cur = b;
-                                    while ( ( cur = cur.parentNode ) ) {
-                                        bp.unshift( cur );
-                                    }
-
-                                    // Walk down the tree looking for a discrepancy
-                                    while ( ap[ i ] === bp[ i ] ) {
-                                        i++;
-                                    }
-
-                                    return i ?
-
-                                        // Do a sibling check if the nodes have a common ancestor
-                                        siblingCheck( ap[ i ], bp[ i ] ) :
-
-                                        // Otherwise nodes in our document sort first
-                                        // Support: IE 11+, Edge 17 - 18+
-                                        // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                        // two documents; shallow comparisons work.
-                                        /* eslint-disable eqeqeq */
-                                        ap[ i ] == preferredDoc ? -1 :
-                                            bp[ i ] == preferredDoc ? 1 :
-                                                /* eslint-enable eqeqeq */
-                                                0;
-                                };
-
-                            return document;
-                        };
-
-                        Sizzle.matches = function( expr, elements ) {
-                            return Sizzle( expr, null, null, elements );
-                        };
-
-                        Sizzle.matchesSelector = function( elem, expr ) {
-                            setDocument( elem );
-
-                            if ( support.matchesSelector && documentIsHTML &&
-                                !nonnativeSelectorCache[ expr + " " ] &&
-                                ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
-                                ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
-
-                                try {
-                                    var ret = matches.call( elem, expr );
-
-                                    // IE 9's matchesSelector returns false on disconnected nodes
-                                    if ( ret || support.disconnectedMatch ||
-
-                                        // As well, disconnected nodes are said to be in a document
-                                        // fragment in IE 9
-                                        elem.document && elem.document.nodeType !== 11 ) {
-                                        return ret;
-                                    }
-                                } catch ( e ) {
-                                    nonnativeSelectorCache( expr, true );
-                                }
-                            }
-
-                            return Sizzle( expr, document, null, [ elem ] ).length > 0;
-                        };
-
-                        Sizzle.contains = function( context, elem ) {
-
-                            // Set document vars if needed
-                            // Support: IE 11+, Edge 17 - 18+
-                            // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                            // two documents; shallow comparisons work.
-                            // eslint-disable-next-line eqeqeq
-                            if ( ( context.ownerDocument || context ) != document ) {
-                                setDocument( context );
-                            }
-                            return contains( context, elem );
-                        };
-
-                        Sizzle.attr = function( elem, name ) {
-
-                            // Set document vars if needed
-                            // Support: IE 11+, Edge 17 - 18+
-                            // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                            // two documents; shallow comparisons work.
-                            // eslint-disable-next-line eqeqeq
-                            if ( ( elem.ownerDocument || elem ) != document ) {
-                                setDocument( elem );
-                            }
-
-                            var fn = Expr.attrHandle[ name.toLowerCase() ],
-
-                                // Don't get fooled by Object.prototype properties (jQuery #13807)
-                                val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
-                                    fn( elem, name, !documentIsHTML ) :
-                                    undefined;
-
-                            return val !== undefined ?
-                                val :
-                                support.attributes || !documentIsHTML ?
-                                    elem.getAttribute( name ) :
-                                    ( val = elem.getAttributeNode( name ) ) && val.specified ?
-                                        val.value :
-                                        null;
-                        };
-
-                        Sizzle.escape = function( sel ) {
-                            return ( sel + "" ).replace( rcssescape, fcssescape );
-                        };
-
-                        Sizzle.error = function( msg ) {
-                            throw new Error( "Syntax error, unrecognized expression: " + msg );
-                        };
-
-                        /**
-                         * Document sorting and removing duplicates
-                         * @param {ArrayLike} results
-                         */
-                        Sizzle.uniqueSort = function( results ) {
-                            var elem,
-                                duplicates = [],
-                                j = 0,
-                                i = 0;
-
-                            // Unless we *know* we can detect duplicates, assume their presence
-                            hasDuplicate = !support.detectDuplicates;
-                            sortInput = !support.sortStable && results.slice( 0 );
-                            results.sort( sortOrder );
-
-                            if ( hasDuplicate ) {
-                                while ( ( elem = results[ i++ ] ) ) {
-                                    if ( elem === results[ i ] ) {
-                                        j = duplicates.push( i );
-                                    }
-                                }
-                                while ( j-- ) {
-                                    results.splice( duplicates[ j ], 1 );
-                                }
-                            }
-
-                            // Clear input after sorting to release objects
-                            // See https://github.com/jquery/sizzle/pull/225
-                            sortInput = null;
-
-                            return results;
-                        };
-
-                        /**
-                         * Utility function for retrieving the text value of an array of DOM nodes
-                         * @param {Array|Element} elem
-                         */
-                        getText = Sizzle.getText = function( elem ) {
-                            var node,
-                                ret = "",
-                                i = 0,
-                                nodeType = elem.nodeType;
-
-                            if ( !nodeType ) {
-
-                                // If no nodeType, this is expected to be an array
-                                while ( ( node = elem[ i++ ] ) ) {
-
-                                    // Do not traverse comment nodes
-                                    ret += getText( node );
-                                }
-                            } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-
-                                // Use textContent for elements
-                                // innerText usage removed for consistency of new lines (jQuery #11153)
-                                if ( typeof elem.textContent === "string" ) {
-                                    return elem.textContent;
-                                } else {
-
-                                    // Traverse its children
-                                    for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-                                        ret += getText( elem );
-                                    }
-                                }
-                            } else if ( nodeType === 3 || nodeType === 4 ) {
-                                return elem.nodeValue;
-                            }
-
-                            // Do not include comment or processing instruction nodes
-
-                            return ret;
-                        };
-
-                        Expr = Sizzle.selectors = {
-
-                            // Can be adjusted by the user
-                            cacheLength: 50,
-
-                            createPseudo: markFunction,
-
-                            match: matchExpr,
-
-                            attrHandle: {},
-
-                            find: {},
-
-                            relative: {
-                                ">": { dir: "parentNode", first: true },
-                                " ": { dir: "parentNode" },
-                                "+": { dir: "previousSibling", first: true },
-                                "~": { dir: "previousSibling" }
-                            },
-
-                            preFilter: {
-                                "ATTR": function( match ) {
-                                    match[ 1 ] = match[ 1 ].replace( runescape, funescape );
-
-                                    // Move the given value to match[3] whether quoted or unquoted
-                                    match[ 3 ] = ( match[ 3 ] || match[ 4 ] ||
-                                        match[ 5 ] || "" ).replace( runescape, funescape );
-
-                                    if ( match[ 2 ] === "~=" ) {
-                                        match[ 3 ] = " " + match[ 3 ] + " ";
-                                    }
-
-                                    return match.slice( 0, 4 );
-                                },
-
-                                "CHILD": function( match ) {
-
-                                    /* matches from matchExpr["CHILD"]
-				1 type (only|nth|...)
-				2 what (child|of-type)
-				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
-				4 xn-component of xn+y argument ([+-]?\d*n|)
-				5 sign of xn-component
-				6 x of xn-component
-				7 sign of y-component
-				8 y of y-component
-			*/
-                                    match[ 1 ] = match[ 1 ].toLowerCase();
-
-                                    if ( match[ 1 ].slice( 0, 3 ) === "nth" ) {
-
-                                        // nth-* requires argument
-                                        if ( !match[ 3 ] ) {
-                                            Sizzle.error( match[ 0 ] );
-                                        }
-
-                                        // numeric x and y parameters for Expr.filter.CHILD
-                                        // remember that false/true cast respectively to 0/1
-                                        match[ 4 ] = +( match[ 4 ] ?
-                                            match[ 5 ] + ( match[ 6 ] || 1 ) :
-                                            2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) );
-                                        match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" );
-
-                                        // other types prohibit arguments
-                                    } else if ( match[ 3 ] ) {
-                                        Sizzle.error( match[ 0 ] );
-                                    }
-
-                                    return match;
-                                },
-
-                                "PSEUDO": function( match ) {
-                                    var excess,
-                                        unquoted = !match[ 6 ] && match[ 2 ];
-
-                                    if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) {
-                                        return null;
-                                    }
-
-                                    // Accept quoted arguments as-is
-                                    if ( match[ 3 ] ) {
-                                        match[ 2 ] = match[ 4 ] || match[ 5 ] || "";
-
-                                        // Strip excess characters from unquoted arguments
-                                    } else if ( unquoted && rpseudo.test( unquoted ) &&
-
-                                        // Get excess from tokenize (recursively)
-                                        ( excess = tokenize( unquoted, true ) ) &&
-
-                                        // advance to the next closing parenthesis
-                                        ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) {
-
-                                        // excess is a negative index
-                                        match[ 0 ] = match[ 0 ].slice( 0, excess );
-                                        match[ 2 ] = unquoted.slice( 0, excess );
-                                    }
-
-                                    // Return only captures needed by the pseudo filter method (type and argument)
-                                    return match.slice( 0, 3 );
-                                }
-                            },
-
-                            filter: {
-
-                                "TAG": function( nodeNameSelector ) {
-                                    var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
-                                    return nodeNameSelector === "*" ?
-                                        function() {
-                                            return true;
-                                        } :
-                                        function( elem ) {
-                                            return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
-                                        };
-                                },
-
-                                "CLASS": function( className ) {
-                                    var pattern = classCache[ className + " " ];
-
-                                    return pattern ||
-                                        ( pattern = new RegExp( "(^|" + whitespace +
-                                            ")" + className + "(" + whitespace + "|$)" ) ) && classCache(
-                                            className, function( elem ) {
-                                                return pattern.test(
-                                                    typeof elem.className === "string" && elem.className ||
-                                                    typeof elem.getAttribute !== "undefined" &&
-                                                    elem.getAttribute( "class" ) ||
-                                                    ""
-                                                );
-                                            } );
-                                },
-
-                                "ATTR": function( name, operator, check ) {
-                                    return function( elem ) {
-                                        var result = Sizzle.attr( elem, name );
-
-                                        if ( result == null ) {
-                                            return operator === "!=";
-                                        }
-                                        if ( !operator ) {
-                                            return true;
-                                        }
-
-                                        result += "";
-
-                                        /* eslint-disable max-len */
-
-                                        return operator === "=" ? result === check :
-                                            operator === "!=" ? result !== check :
-                                                operator === "^=" ? check && result.indexOf( check ) === 0 :
-                                                    operator === "*=" ? check && result.indexOf( check ) > -1 :
-                                                        operator === "$=" ? check && result.slice( -check.length ) === check :
-                                                            operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
-                                                                operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
-                                                                    false;
-                                        /* eslint-enable max-len */
-
-                                    };
-                                },
-
-                                "CHILD": function( type, what, _argument, first, last ) {
-                                    var simple = type.slice( 0, 3 ) !== "nth",
-                                        forward = type.slice( -4 ) !== "last",
-                                        ofType = what === "of-type";
-
-                                    return first === 1 && last === 0 ?
-
-                                        // Shortcut for :nth-*(n)
-                                        function( elem ) {
-                                            return !!elem.parentNode;
-                                        } :
-
-                                        function( elem, _context, xml ) {
-                                            var cache, uniqueCache, outerCache, node, nodeIndex, start,
-                                                dir = simple !== forward ? "nextSibling" : "previousSibling",
-                                                parent = elem.parentNode,
-                                                name = ofType && elem.nodeName.toLowerCase(),
-                                                useCache = !xml && !ofType,
-                                                diff = false;
-
-                                            if ( parent ) {
-
-                                                // :(first|last|only)-(child|of-type)
-                                                if ( simple ) {
-                                                    while ( dir ) {
-                                                        node = elem;
-                                                        while ( ( node = node[ dir ] ) ) {
-                                                            if ( ofType ?
-                                                                node.nodeName.toLowerCase() === name :
-                                                                node.nodeType === 1 ) {
-
-                                                                return false;
-                                                            }
-                                                        }
-
-                                                        // Reverse direction for :only-* (if we haven't yet done so)
-                                                        start = dir = type === "only" && !start && "nextSibling";
-                                                    }
-                                                    return true;
-                                                }
-
-                                                start = [ forward ? parent.firstChild : parent.lastChild ];
-
-                                                // non-xml :nth-child(...) stores cache data on `parent`
-                                                if ( forward && useCache ) {
-
-                                                    // Seek `elem` from a previously-cached index
-
-                                                    // ...in a gzip-friendly way
-                                                    node = parent;
-                                                    outerCache = node[ expando ] || ( node[ expando ] = {} );
-
-                                                    // Support: IE <9 only
-                                                    // Defend against cloned attroperties (jQuery gh-1709)
-                                                    uniqueCache = outerCache[ node.uniqueID ] ||
-                                                        ( outerCache[ node.uniqueID ] = {} );
-
-                                                    cache = uniqueCache[ type ] || [];
-                                                    nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
-                                                    diff = nodeIndex && cache[ 2 ];
-                                                    node = nodeIndex && parent.childNodes[ nodeIndex ];
-
-                                                    while ( ( node = ++nodeIndex && node && node[ dir ] ||
-
-                                                        // Fallback to seeking `elem` from the start
-                                                        ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
-                                                        // When found, cache indexes on `parent` and break
-                                                        if ( node.nodeType === 1 && ++diff && node === elem ) {
-                                                            uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
-                                                            break;
-                                                        }
-                                                    }
-
-                                                } else {
-
-                                                    // Use previously-cached element index if available
-                                                    if ( useCache ) {
-
-                                                        // ...in a gzip-friendly way
-                                                        node = elem;
-                                                        outerCache = node[ expando ] || ( node[ expando ] = {} );
-
-                                                        // Support: IE <9 only
-                                                        // Defend against cloned attroperties (jQuery gh-1709)
-                                                        uniqueCache = outerCache[ node.uniqueID ] ||
-                                                            ( outerCache[ node.uniqueID ] = {} );
-
-                                                        cache = uniqueCache[ type ] || [];
-                                                        nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
-                                                        diff = nodeIndex;
-                                                    }
-
-                                                    // xml :nth-child(...)
-                                                    // or :nth-last-child(...) or :nth(-last)?-of-type(...)
-                                                    if ( diff === false ) {
-
-                                                        // Use the same loop as above to seek `elem` from the start
-                                                        while ( ( node = ++nodeIndex && node && node[ dir ] ||
-                                                            ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
-                                                            if ( ( ofType ?
-                                                                    node.nodeName.toLowerCase() === name :
-                                                                    node.nodeType === 1 ) &&
-                                                                ++diff ) {
-
-                                                                // Cache the index of each encountered element
-                                                                if ( useCache ) {
-                                                                    outerCache = node[ expando ] ||
-                                                                        ( node[ expando ] = {} );
-
-                                                                    // Support: IE <9 only
-                                                                    // Defend against cloned attroperties (jQuery gh-1709)
-                                                                    uniqueCache = outerCache[ node.uniqueID ] ||
-                                                                        ( outerCache[ node.uniqueID ] = {} );
-
-                                                                    uniqueCache[ type ] = [ dirruns, diff ];
-                                                                }
-
-                                                                if ( node === elem ) {
-                                                                    break;
-                                                                }
-                                                            }
-                                                        }
-                                                    }
-                                                }
-
-                                                // Incorporate the offset, then check against cycle size
-                                                diff -= last;
-                                                return diff === first || ( diff % first === 0 && diff / first >= 0 );
-                                            }
-                                        };
-                                },
-
-                                "PSEUDO": function( pseudo, argument ) {
-
-                                    // pseudo-class names are case-insensitive
-                                    // http://www.w3.org/TR/selectors/#pseudo-classes
-                                    // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
-                                    // Remember that setFilters inherits from pseudos
-                                    var args,
-                                        fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
-                                            Sizzle.error( "unsupported pseudo: " + pseudo );
-
-                                    // The user may use createPseudo to indicate that
-                                    // arguments are needed to create the filter function
-                                    // just as Sizzle does
-                                    if ( fn[ expando ] ) {
-                                        return fn( argument );
-                                    }
-
-                                    // But maintain support for old signatures
-                                    if ( fn.length > 1 ) {
-                                        args = [ pseudo, pseudo, "", argument ];
-                                        return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
-                                            markFunction( function( seed, matches ) {
-                                                var idx,
-                                                    matched = fn( seed, argument ),
-                                                    i = matched.length;
-                                                while ( i-- ) {
-                                                    idx = indexOf( seed, matched[ i ] );
-                                                    seed[ idx ] = !( matches[ idx ] = matched[ i ] );
-                                                }
-                                            } ) :
-                                            function( elem ) {
-                                                return fn( elem, 0, args );
-                                            };
-                                    }
-
-                                    return fn;
-                                }
-                            },
-
-                            pseudos: {
-
-                                // Potentially complex pseudos
-                                "not": markFunction( function( selector ) {
-
-                                    // Trim the selector passed to compile
-                                    // to avoid treating leading and trailing
-                                    // spaces as combinators
-                                    var input = [],
-                                        results = [],
-                                        matcher = compile( selector.replace( rtrim, "$1" ) );
-
-                                    return matcher[ expando ] ?
-                                        markFunction( function( seed, matches, _context, xml ) {
-                                            var elem,
-                                                unmatched = matcher( seed, null, xml, [] ),
-                                                i = seed.length;
-
-                                            // Match elements unmatched by `matcher`
-                                            while ( i-- ) {
-                                                if ( ( elem = unmatched[ i ] ) ) {
-                                                    seed[ i ] = !( matches[ i ] = elem );
-                                                }
-                                            }
-                                        } ) :
-                                        function( elem, _context, xml ) {
-                                            input[ 0 ] = elem;
-                                            matcher( input, null, xml, results );
-
-                                            // Don't keep the element (issue #299)
-                                            input[ 0 ] = null;
-                                            return !results.pop();
-                                        };
-                                } ),
-
-                                "has": markFunction( function( selector ) {
-                                    return function( elem ) {
-                                        return Sizzle( selector, elem ).length > 0;
-                                    };
-                                } ),
-
-                                "contains": markFunction( function( text ) {
-                                    text = text.replace( runescape, funescape );
-                                    return function( elem ) {
-                                        return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;
-                                    };
-                                } ),
-
-                                // "Whether an element is represented by a :lang() selector
-                                // is based solely on the element's language value
-                                // being equal to the identifier C,
-                                // or beginning with the identifier C immediately followed by "-".
-                                // The matching of C against the element's language value is performed case-insensitively.
-                                // The identifier C does not have to be a valid language name."
-                                // http://www.w3.org/TR/selectors/#lang-pseudo
-                                "lang": markFunction( function( lang ) {
-
-                                    // lang value must be a valid identifier
-                                    if ( !ridentifier.test( lang || "" ) ) {
-                                        Sizzle.error( "unsupported lang: " + lang );
-                                    }
-                                    lang = lang.replace( runescape, funescape ).toLowerCase();
-                                    return function( elem ) {
-                                        var elemLang;
-                                        do {
-                                            if ( ( elemLang = documentIsHTML ?
-                                                elem.lang :
-                                                elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) {
-
-                                                elemLang = elemLang.toLowerCase();
-                                                return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
-                                            }
-                                        } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );
-                                        return false;
-                                    };
-                                } ),
-
-                                // Miscellaneous
-                                "target": function( elem ) {
-                                    var hash = window.location && window.location.hash;
-                                    return hash && hash.slice( 1 ) === elem.id;
-                                },
-
-                                "root": function( elem ) {
-                                    return elem === docElem;
-                                },
-
-                                "focus": function( elem ) {
-                                    return elem === document.activeElement &&
-                                        ( !document.hasFocus || document.hasFocus() ) &&
-                                        !!( elem.type || elem.href || ~elem.tabIndex );
-                                },
-
-                                // Boolean properties
-                                "enabled": createDisabledPseudo( false ),
-                                "disabled": createDisabledPseudo( true ),
-
-                                "checked": function( elem ) {
-
-                                    // In CSS3, :checked should return both checked and selected elements
-                                    // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-                                    var nodeName = elem.nodeName.toLowerCase();
-                                    return ( nodeName === "input" && !!elem.checked ) ||
-                                        ( nodeName === "option" && !!elem.selected );
-                                },
-
-                                "selected": function( elem ) {
-
-                                    // Accessing this property makes selected-by-default
-                                    // options in Safari work properly
-                                    if ( elem.parentNode ) {
-                                        // eslint-disable-next-line no-unused-expressions
-                                        elem.parentNode.selectedIndex;
-                                    }
-
-                                    return elem.selected === true;
-                                },
-
-                                // Contents
-                                "empty": function( elem ) {
-
-                                    // http://www.w3.org/TR/selectors/#empty-pseudo
-                                    // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
-                                    //   but not by others (comment: 8; processing instruction: 7; etc.)
-                                    // nodeType < 6 works because attributes (2) do not appear as children
-                                    for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-                                        if ( elem.nodeType < 6 ) {
-                                            return false;
-                                        }
-                                    }
-                                    return true;
-                                },
-
-                                "parent": function( elem ) {
-                                    return !Expr.pseudos[ "empty" ]( elem );
-                                },
-
-                                // Element/input types
-                                "header": function( elem ) {
-                                    return rheader.test( elem.nodeName );
-                                },
-
-                                "input": function( elem ) {
-                                    return rinputs.test( elem.nodeName );
-                                },
-
-                                "button": function( elem ) {
-                                    var name = elem.nodeName.toLowerCase();
-                                    return name === "input" && elem.type === "button" || name === "button";
-                                },
-
-                                "text": function( elem ) {
-                                    var attr;
-                                    return elem.nodeName.toLowerCase() === "input" &&
-                                        elem.type === "text" &&
-
-                                        // Support: IE<8
-                                        // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
-                                        ( ( attr = elem.getAttribute( "type" ) ) == null ||
-                                            attr.toLowerCase() === "text" );
-                                },
-
-                                // Position-in-collection
-                                "first": createPositionalPseudo( function() {
-                                    return [ 0 ];
-                                } ),
-
-                                "last": createPositionalPseudo( function( _matchIndexes, length ) {
-                                    return [ length - 1 ];
-                                } ),
-
-                                "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) {
-                                    return [ argument < 0 ? argument + length : argument ];
-                                } ),
-
-                                "even": createPositionalPseudo( function( matchIndexes, length ) {
-                                    var i = 0;
-                                    for ( ; i < length; i += 2 ) {
-                                        matchIndexes.push( i );
-                                    }
-                                    return matchIndexes;
-                                } ),
-
-                                "odd": createPositionalPseudo( function( matchIndexes, length ) {
-                                    var i = 1;
-                                    for ( ; i < length; i += 2 ) {
-                                        matchIndexes.push( i );
-                                    }
-                                    return matchIndexes;
-                                } ),
-
-                                "lt": createPositionalPseudo( function( matchIndexes, length, argument ) {
-                                    var i = argument < 0 ?
-                                        argument + length :
-                                        argument > length ?
-                                            length :
-                                            argument;
-                                    for ( ; --i >= 0; ) {
-                                        matchIndexes.push( i );
-                                    }
-                                    return matchIndexes;
-                                } ),
-
-                                "gt": createPositionalPseudo( function( matchIndexes, length, argument ) {
-                                    var i = argument < 0 ? argument + length : argument;
-                                    for ( ; ++i < length; ) {
-                                        matchIndexes.push( i );
-                                    }
-                                    return matchIndexes;
-                                } )
-                            }
-                        };
-
-                        Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ];
-
-// Add button/input type pseudos
-                        for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
-                            Expr.pseudos[ i ] = createInputPseudo( i );
-                        }
-                        for ( i in { submit: true, reset: true } ) {
-                            Expr.pseudos[ i ] = createButtonPseudo( i );
-                        }
-
-// Easy API for creating new setFilters
-                        function setFilters() {}
-                        setFilters.prototype = Expr.filters = Expr.pseudos;
-                        Expr.setFilters = new setFilters();
-
-                        tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
-                            var matched, match, tokens, type,
-                                soFar, groups, preFilters,
-                                cached = tokenCache[ selector + " " ];
-
-                            if ( cached ) {
-                                return parseOnly ? 0 : cached.slice( 0 );
-                            }
-
-                            soFar = selector;
-                            groups = [];
-                            preFilters = Expr.preFilter;
-
-                            while ( soFar ) {
-
-                                // Comma and first run
-                                if ( !matched || ( match = rcomma.exec( soFar ) ) ) {
-                                    if ( match ) {
-
-                                        // Don't consume trailing commas as valid
-                                        soFar = soFar.slice( match[ 0 ].length ) || soFar;
-                                    }
-                                    groups.push( ( tokens = [] ) );
-                                }
-
-                                matched = false;
-
-                                // Combinators
-                                if ( ( match = rcombinators.exec( soFar ) ) ) {
-                                    matched = match.shift();
-                                    tokens.push( {
-                                        value: matched,
-
-                                        // Cast descendant combinators to space
-                                        type: match[ 0 ].replace( rtrim, " " )
-                                    } );
-                                    soFar = soFar.slice( matched.length );
-                                }
-
-                                // Filters
-                                for ( type in Expr.filter ) {
-                                    if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||
-                                        ( match = preFilters[ type ]( match ) ) ) ) {
-                                        matched = match.shift();
-                                        tokens.push( {
-                                            value: matched,
-                                            type: type,
-                                            matches: match
-                                        } );
-                                        soFar = soFar.slice( matched.length );
-                                    }
-                                }
-
-                                if ( !matched ) {
-                                    break;
-                                }
-                            }
-
-                            // Return the length of the invalid excess
-                            // if we're just parsing
-                            // Otherwise, throw an error or return tokens
-                            return parseOnly ?
-                                soFar.length :
-                                soFar ?
-                                    Sizzle.error( selector ) :
-
-                                    // Cache the tokens
-                                    tokenCache( selector, groups ).slice( 0 );
-                        };
-
-                        function toSelector( tokens ) {
-                            var i = 0,
-                                len = tokens.length,
-                                selector = "";
-                            for ( ; i < len; i++ ) {
-                                selector += tokens[ i ].value;
-                            }
-                            return selector;
-                        }
-
-                        function addCombinator( matcher, combinator, base ) {
-                            var dir = combinator.dir,
-                                skip = combinator.next,
-                                key = skip || dir,
-                                checkNonElements = base && key === "parentNode",
-                                doneName = done++;
-
-                            return combinator.first ?
-
-                                // Check against closest ancestor/preceding element
-                                function( elem, context, xml ) {
-                                    while ( ( elem = elem[ dir ] ) ) {
-                                        if ( elem.nodeType === 1 || checkNonElements ) {
-                                            return matcher( elem, context, xml );
-                                        }
-                                    }
-                                    return false;
-                                } :
-
-                                // Check against all ancestor/preceding elements
-                                function( elem, context, xml ) {
-                                    var oldCache, uniqueCache, outerCache,
-                                        newCache = [ dirruns, doneName ];
-
-                                    // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
-                                    if ( xml ) {
-                                        while ( ( elem = elem[ dir ] ) ) {
-                                            if ( elem.nodeType === 1 || checkNonElements ) {
-                                                if ( matcher( elem, context, xml ) ) {
-                                                    return true;
-                                                }
-                                            }
-                                        }
-                                    } else {
-                                        while ( ( elem = elem[ dir ] ) ) {
-                                            if ( elem.nodeType === 1 || checkNonElements ) {
-                                                outerCache = elem[ expando ] || ( elem[ expando ] = {} );
-
-                                                // Support: IE <9 only
-                                                // Defend against cloned attroperties (jQuery gh-1709)
-                                                uniqueCache = outerCache[ elem.uniqueID ] ||
-                                                    ( outerCache[ elem.uniqueID ] = {} );
-
-                                                if ( skip && skip === elem.nodeName.toLowerCase() ) {
-                                                    elem = elem[ dir ] || elem;
-                                                } else if ( ( oldCache = uniqueCache[ key ] ) &&
-                                                    oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
-                                                    // Assign to newCache so results back-propagate to previous elements
-                                                    return ( newCache[ 2 ] = oldCache[ 2 ] );
-                                                } else {
-
-                                                    // Reuse newcache so results back-propagate to previous elements
-                                                    uniqueCache[ key ] = newCache;
-
-                                                    // A match means we're done; a fail means we have to keep checking
-                                                    if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
-                                                        return true;
-                                                    }
-                                                }
-                                            }
-                                        }
-                                    }
-                                    return false;
-                                };
-                        }
-
-                        function elementMatcher( matchers ) {
-                            return matchers.length > 1 ?
-                                function( elem, context, xml ) {
-                                    var i = matchers.length;
-                                    while ( i-- ) {
-                                        if ( !matchers[ i ]( elem, context, xml ) ) {
-                                            return false;
-                                        }
-                                    }
-                                    return true;
-                                } :
-                                matchers[ 0 ];
-                        }
-
-                        function multipleContexts( selector, contexts, results ) {
-                            var i = 0,
-                                len = contexts.length;
-                            for ( ; i < len; i++ ) {
-                                Sizzle( selector, contexts[ i ], results );
-                            }
-                            return results;
-                        }
-
-                        function condense( unmatched, map, filter, context, xml ) {
-                            var elem,
-                                newUnmatched = [],
-                                i = 0,
-                                len = unmatched.length,
-                                mapped = map != null;
-
-                            for ( ; i < len; i++ ) {
-                                if ( ( elem = unmatched[ i ] ) ) {
-                                    if ( !filter || filter( elem, context, xml ) ) {
-                                        newUnmatched.push( elem );
-                                        if ( mapped ) {
-                                            map.push( i );
-                                        }
-                                    }
-                                }
-                            }
-
-                            return newUnmatched;
-                        }
-
-                        function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
-                            if ( postFilter && !postFilter[ expando ] ) {
-                                postFilter = setMatcher( postFilter );
-                            }
-                            if ( postFinder && !postFinder[ expando ] ) {
-                                postFinder = setMatcher( postFinder, postSelector );
-                            }
-                            return markFunction( function( seed, results, context, xml ) {
-                                var temp, i, elem,
-                                    preMap = [],
-                                    postMap = [],
-                                    preexisting = results.length,
-
-                                    // Get initial elements from seed or context
-                                    elems = seed || multipleContexts(
-                                        selector || "*",
-                                        context.nodeType ? [ context ] : context,
-                                        []
-                                    ),
-
-                                    // Prefilter to get matcher input, preserving a map for seed-results synchronization
-                                    matcherIn = preFilter && ( seed || !selector ) ?
-                                        condense( elems, preMap, preFilter, context, xml ) :
-                                        elems,
-
-                                    matcherOut = matcher ?
-
-                                        // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
-                                        postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
-                                            // ...intermediate processing is necessary
-                                            [] :
-
-                                            // ...otherwise use results directly
-                                            results :
-                                        matcherIn;
-
-                                // Find primary matches
-                                if ( matcher ) {
-                                    matcher( matcherIn, matcherOut, context, xml );
-                                }
-
-                                // Apply postFilter
-                                if ( postFilter ) {
-                                    temp = condense( matcherOut, postMap );
-                                    postFilter( temp, [], context, xml );
-
-                                    // Un-match failing elements by moving them back to matcherIn
-                                    i = temp.length;
-                                    while ( i-- ) {
-                                        if ( ( elem = temp[ i ] ) ) {
-                                            matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );
-                                        }
-                                    }
-                                }
-
-                                if ( seed ) {
-                                    if ( postFinder || preFilter ) {
-                                        if ( postFinder ) {
-
-                                            // Get the final matcherOut by condensing this intermediate into postFinder contexts
-                                            temp = [];
-                                            i = matcherOut.length;
-                                            while ( i-- ) {
-                                                if ( ( elem = matcherOut[ i ] ) ) {
-
-                                                    // Restore matcherIn since elem is not yet a final match
-                                                    temp.push( ( matcherIn[ i ] = elem ) );
-                                                }
-                                            }
-                                            postFinder( null, ( matcherOut = [] ), temp, xml );
-                                        }
-
-                                        // Move matched elements from seed to results to keep them synchronized
-                                        i = matcherOut.length;
-                                        while ( i-- ) {
-                                            if ( ( elem = matcherOut[ i ] ) &&
-                                                ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {
-
-                                                seed[ temp ] = !( results[ temp ] = elem );
-                                            }
-                                        }
-                                    }
-
-                                    // Add elements to results, through postFinder if defined
-                                } else {
-                                    matcherOut = condense(
-                                        matcherOut === results ?
-                                            matcherOut.splice( preexisting, matcherOut.length ) :
-                                            matcherOut
-                                    );
-                                    if ( postFinder ) {
-                                        postFinder( null, results, matcherOut, xml );
-                                    } else {
-                                        push.apply( results, matcherOut );
-                                    }
-                                }
-                            } );
-                        }
-
-                        function matcherFromTokens( tokens ) {
-                            var checkContext, matcher, j,
-                                len = tokens.length,
-                                leadingRelative = Expr.relative[ tokens[ 0 ].type ],
-                                implicitRelative = leadingRelative || Expr.relative[ " " ],
-                                i = leadingRelative ? 1 : 0,
-
-                                // The foundational matcher ensures that elements are reachable from top-level context(s)
-                                matchContext = addCombinator( function( elem ) {
-                                    return elem === checkContext;
-                                }, implicitRelative, true ),
-                                matchAnyContext = addCombinator( function( elem ) {
-                                    return indexOf( checkContext, elem ) > -1;
-                                }, implicitRelative, true ),
-                                matchers = [ function( elem, context, xml ) {
-                                    var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
-                                        ( checkContext = context ).nodeType ?
-                                            matchContext( elem, context, xml ) :
-                                            matchAnyContext( elem, context, xml ) );
-
-                                    // Avoid hanging onto element (issue #299)
-                                    checkContext = null;
-                                    return ret;
-                                } ];
-
-                            for ( ; i < len; i++ ) {
-                                if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {
-                                    matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];
-                                } else {
-                                    matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
-
-                                    // Return special upon seeing a positional matcher
-                                    if ( matcher[ expando ] ) {
-
-                                        // Find the next relative operator (if any) for proper handling
-                                        j = ++i;
-                                        for ( ; j < len; j++ ) {
-                                            if ( Expr.relative[ tokens[ j ].type ] ) {
-                                                break;
-                                            }
-                                        }
-                                        return setMatcher(
-                                            i > 1 && elementMatcher( matchers ),
-                                            i > 1 && toSelector(
-
-                                                // If the preceding token was a descendant combinator, insert an implicit any-element `*`
-                                                tokens
-                                                    .slice( 0, i - 1 )
-                                                    .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } )
-                                            ).replace( rtrim, "$1" ),
-                                            matcher,
-                                            i < j && matcherFromTokens( tokens.slice( i, j ) ),
-                                            j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),
-                                            j < len && toSelector( tokens )
-                                        );
-                                    }
-                                    matchers.push( matcher );
-                                }
-                            }
-
-                            return elementMatcher( matchers );
-                        }
-
-                        function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
-                            var bySet = setMatchers.length > 0,
-                                byElement = elementMatchers.length > 0,
-                                superMatcher = function( seed, context, xml, results, outermost ) {
-                                    var elem, j, matcher,
-                                        matchedCount = 0,
-                                        i = "0",
-                                        unmatched = seed && [],
-                                        setMatched = [],
-                                        contextBackup = outermostContext,
-
-                                        // We must always have either seed elements or outermost context
-                                        elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ),
-
-                                        // Use integer dirruns iff this is the outermost matcher
-                                        dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),
-                                        len = elems.length;
-
-                                    if ( outermost ) {
-
-                                        // Support: IE 11+, Edge 17 - 18+
-                                        // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                        // two documents; shallow comparisons work.
-                                        // eslint-disable-next-line eqeqeq
-                                        outermostContext = context == document || context || outermost;
-                                    }
-
-                                    // Add elements passing elementMatchers directly to results
-                                    // Support: IE<9, Safari
-                                    // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
-                                    for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {
-                                        if ( byElement && elem ) {
-                                            j = 0;
-
-                                            // Support: IE 11+, Edge 17 - 18+
-                                            // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
-                                            // two documents; shallow comparisons work.
-                                            // eslint-disable-next-line eqeqeq
-                                            if ( !context && elem.ownerDocument != document ) {
-                                                setDocument( elem );
-                                                xml = !documentIsHTML;
-                                            }
-                                            while ( ( matcher = elementMatchers[ j++ ] ) ) {
-                                                if ( matcher( elem, context || document, xml ) ) {
-                                                    results.push( elem );
-                                                    break;
-                                                }
-                                            }
-                                            if ( outermost ) {
-                                                dirruns = dirrunsUnique;
-                                            }
-                                        }
-
-                                        // Track unmatched elements for set filters
-                                        if ( bySet ) {
-
-                                            // They will have gone through all possible matchers
-                                            if ( ( elem = !matcher && elem ) ) {
-                                                matchedCount--;
-                                            }
-
-                                            // Lengthen the array for every element, matched or not
-                                            if ( seed ) {
-                                                unmatched.push( elem );
-                                            }
-                                        }
-                                    }
-
-                                    // `i` is now the count of elements visited above, and adding it to `matchedCount`
-                                    // makes the latter nonnegative.
-                                    matchedCount += i;
-
-                                    // Apply set filters to unmatched elements
-                                    // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
-                                    // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
-                                    // no element matchers and no seed.
-                                    // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
-                                    // case, which will result in a "00" `matchedCount` that differs from `i` but is also
-                                    // numerically zero.
-                                    if ( bySet && i !== matchedCount ) {
-                                        j = 0;
-                                        while ( ( matcher = setMatchers[ j++ ] ) ) {
-                                            matcher( unmatched, setMatched, context, xml );
-                                        }
-
-                                        if ( seed ) {
-
-                                            // Reintegrate element matches to eliminate the need for sorting
-                                            if ( matchedCount > 0 ) {
-                                                while ( i-- ) {
-                                                    if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
-                                                        setMatched[ i ] = pop.call( results );
-                                                    }
-                                                }
-                                            }
-
-                                            // Discard index placeholder values to get only actual matches
-                                            setMatched = condense( setMatched );
-                                        }
-
-                                        // Add matches to results
-                                        push.apply( results, setMatched );
-
-                                        // Seedless set matches succeeding multiple successful matchers stipulate sorting
-                                        if ( outermost && !seed && setMatched.length > 0 &&
-                                            ( matchedCount + setMatchers.length ) > 1 ) {
-
-                                            Sizzle.uniqueSort( results );
-                                        }
-                                    }
-
-                                    // Override manipulation of globals by nested matchers
-                                    if ( outermost ) {
-                                        dirruns = dirrunsUnique;
-                                        outermostContext = contextBackup;
-                                    }
-
-                                    return unmatched;
-                                };
-
-                            return bySet ?
-                                markFunction( superMatcher ) :
-                                superMatcher;
-                        }
-
-                        compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
-                            var i,
-                                setMatchers = [],
-                                elementMatchers = [],
-                                cached = compilerCache[ selector + " " ];
-
-                            if ( !cached ) {
-
-                                // Generate a function of recursive functions that can be used to check each element
-                                if ( !match ) {
-                                    match = tokenize( selector );
-                                }
-                                i = match.length;
-                                while ( i-- ) {
-                                    cached = matcherFromTokens( match[ i ] );
-                                    if ( cached[ expando ] ) {
-                                        setMatchers.push( cached );
-                                    } else {
-                                        elementMatchers.push( cached );
-                                    }
-                                }
-
-                                // Cache the compiled function
-                                cached = compilerCache(
-                                    selector,
-                                    matcherFromGroupMatchers( elementMatchers, setMatchers )
-                                );
-
-                                // Save selector and tokenization
-                                cached.selector = selector;
-                            }
-                            return cached;
-                        };
-
-                        /**
-                         * A low-level selection function that works with Sizzle's compiled
-                         *  selector functions
-                         * @param {String|Function} selector A selector or a pre-compiled
-                         *  selector function built with Sizzle.compile
-                         * @param {Element} context
-                         * @param {Array} [results]
-                         * @param {Array} [seed] A set of elements to match against
-                         */
-                        select = Sizzle.select = function( selector, context, results, seed ) {
-                            var i, tokens, token, type, find,
-                                compiled = typeof selector === "function" && selector,
-                                match = !seed && tokenize( ( selector = compiled.selector || selector ) );
-
-                            results = results || [];
-
-                            // Try to minimize operations if there is only one selector in the list and no seed
-                            // (the latter of which guarantees us context)
-                            if ( match.length === 1 ) {
-
-                                // Reduce context if the leading compound selector is an ID
-                                tokens = match[ 0 ] = match[ 0 ].slice( 0 );
-                                if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
-                                    context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
-
-                                    context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
-                                        .replace( runescape, funescape ), context ) || [] )[ 0 ];
-                                    if ( !context ) {
-                                        return results;
-
-                                        // Precompiled matchers will still verify ancestry, so step up a level
-                                    } else if ( compiled ) {
-                                        context = context.parentNode;
-                                    }
-
-                                    selector = selector.slice( tokens.shift().value.length );
-                                }
-
-                                // Fetch a seed set for right-to-left matching
-                                i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length;
-                                while ( i-- ) {
-                                    token = tokens[ i ];
-
-                                    // Abort if we hit a combinator
-                                    if ( Expr.relative[ ( type = token.type ) ] ) {
-                                        break;
-                                    }
-                                    if ( ( find = Expr.find[ type ] ) ) {
-
-                                        // Search, expanding context for leading sibling combinators
-                                        if ( ( seed = find(
-                                            token.matches[ 0 ].replace( runescape, funescape ),
-                                            rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||
-                                            context
-                                        ) ) ) {
-
-                                            // If seed is empty or no tokens remain, we can return early
-                                            tokens.splice( i, 1 );
-                                            selector = seed.length && toSelector( tokens );
-                                            if ( !selector ) {
-                                                push.apply( results, seed );
-                                                return results;
-                                            }
-
-                                            break;
-                                        }
-                                    }
-                                }
-                            }
-
-                            // Compile and execute a filtering function if one is not provided
-                            // Provide `match` to avoid retokenization if we modified the selector above
-                            ( compiled || compile( selector, match ) )(
-                                seed,
-                                context,
-                                !documentIsHTML,
-                                results,
-                                !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
-                            );
-                            return results;
-                        };
-
-// One-time assignments
-
-// Sort stability
-                        support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-                        support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-                        setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-                        support.sortDetached = assert( function( el ) {
-
-                            // Should return 1, but returns 4 (following)
-                            return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1;
-                        } );
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-                        if ( !assert( function( el ) {
-                            el.innerHTML = "<a href='#'></a>";
-                            return el.firstChild.getAttribute( "href" ) === "#";
-                        } ) ) {
-                            addHandle( "type|href|height|width", function( elem, name, isXML ) {
-                                if ( !isXML ) {
-                                    return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
-                                }
-                            } );
-                        }
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-                        if ( !support.attributes || !assert( function( el ) {
-                            el.innerHTML = "<input/>";
-                            el.firstChild.setAttribute( "value", "" );
-                            return el.firstChild.getAttribute( "value" ) === "";
-                        } ) ) {
-                            addHandle( "value", function( elem, _name, isXML ) {
-                                if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
-                                    return elem.defaultValue;
-                                }
-                            } );
-                        }
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-                        if ( !assert( function( el ) {
-                            return el.getAttribute( "disabled" ) == null;
-                        } ) ) {
-                            addHandle( booleans, function( elem, name, isXML ) {
-                                var val;
-                                if ( !isXML ) {
-                                    return elem[ name ] === true ? name.toLowerCase() :
-                                        ( val = elem.getAttributeNode( name ) ) && val.specified ?
-                                            val.value :
-                                            null;
-                                }
-                            } );
-                        }
-
-                        return Sizzle;
-
-                    } )( window );
-
-
-
-                jQuery.find = Sizzle;
-                jQuery.expr = Sizzle.selectors;
-
-// Deprecated
-                jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-                jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-                jQuery.text = Sizzle.getText;
-                jQuery.isXMLDoc = Sizzle.isXML;
-                jQuery.contains = Sizzle.contains;
-                jQuery.escapeSelector = Sizzle.escape;
-
-
-
-
-                var dir = function( elem, dir, until ) {
-                    var matched = [],
-                        truncate = until !== undefined;
-
-                    while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
-                        if ( elem.nodeType === 1 ) {
-                            if ( truncate && jQuery( elem ).is( until ) ) {
-                                break;
-                            }
-                            matched.push( elem );
-                        }
-                    }
-                    return matched;
-                };
-
-
-                var siblings = function( n, elem ) {
-                    var matched = [];
-
-                    for ( ; n; n = n.nextSibling ) {
-                        if ( n.nodeType === 1 && n !== elem ) {
-                            matched.push( n );
-                        }
-                    }
-
-                    return matched;
-                };
-
-
-                var rneedsContext = jQuery.expr.match.needsContext;
-
-
-
-                function nodeName( elem, name ) {
-
-                    return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
-
-                };
-                var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
-
-
-
-// Implement the identical functionality for filter and not
-                function winnow( elements, qualifier, not ) {
-                    if ( isFunction( qualifier ) ) {
-                        return jQuery.grep( elements, function( elem, i ) {
-                            return !!qualifier.call( elem, i, elem ) !== not;
-                        } );
-                    }
-
-                    // Single element
-                    if ( qualifier.nodeType ) {
-                        return jQuery.grep( elements, function( elem ) {
-                            return ( elem === qualifier ) !== not;
-                        } );
-                    }
-
-                    // Arraylike of elements (jQuery, arguments, Array)
-                    if ( typeof qualifier !== "string" ) {
-                        return jQuery.grep( elements, function( elem ) {
-                            return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
-                        } );
-                    }
-
-                    // Filtered directly for both simple and complex selectors
-                    return jQuery.filter( qualifier, elements, not );
-                }
-
-                jQuery.filter = function( expr, elems, not ) {
-                    var elem = elems[ 0 ];
-
-                    if ( not ) {
-                        expr = ":not(" + expr + ")";
-                    }
-
-                    if ( elems.length === 1 && elem.nodeType === 1 ) {
-                        return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
-                    }
-
-                    return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
-                        return elem.nodeType === 1;
-                    } ) );
-                };
-
-                jQuery.fn.extend( {
-                    find: function( selector ) {
-                        var i, ret,
-                            len = this.length,
-                            self = this;
-
-                        if ( typeof selector !== "string" ) {
-                            return this.pushStack( jQuery( selector ).filter( function() {
-                                for ( i = 0; i < len; i++ ) {
-                                    if ( jQuery.contains( self[ i ], this ) ) {
-                                        return true;
-                                    }
-                                }
-                            } ) );
-                        }
-
-                        ret = this.pushStack( [] );
-
-                        for ( i = 0; i < len; i++ ) {
-                            jQuery.find( selector, self[ i ], ret );
-                        }
-
-                        return len > 1 ? jQuery.uniqueSort( ret ) : ret;
-                    },
-                    filter: function( selector ) {
-                        return this.pushStack( winnow( this, selector || [], false ) );
-                    },
-                    not: function( selector ) {
-                        return this.pushStack( winnow( this, selector || [], true ) );
-                    },
-                    is: function( selector ) {
-                        return !!winnow(
-                            this,
-
-                            // If this is a positional/relative selector, check membership in the returned set
-                            // so $("p:first").is("p:last") won't return true for a doc with two "p".
-                            typeof selector === "string" && rneedsContext.test( selector ) ?
-                                jQuery( selector ) :
-                                selector || [],
-                            false
-                        ).length;
-                    }
-                } );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-                var rootjQuery,
-
-                    // A simple way to check for HTML strings
-                    // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-                    // Strict HTML recognition (#11290: must start with <)
-                    // Shortcut simple #id case for speed
-                    rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
-
-                    init = jQuery.fn.init = function( selector, context, root ) {
-                        var match, elem;
-
-                        // HANDLE: $(""), $(null), $(undefined), $(false)
-                        if ( !selector ) {
-                            return this;
-                        }
-
-                        // Method init() accepts an alternate rootjQuery
-                        // so migrate can support jQuery.sub (gh-2101)
-                        root = root || rootjQuery;
-
-                        // Handle HTML strings
-                        if ( typeof selector === "string" ) {
-                            if ( selector[ 0 ] === "<" &&
-                                selector[ selector.length - 1 ] === ">" &&
-                                selector.length >= 3 ) {
-
-                                // Assume that strings that start and end with <> are HTML and skip the regex check
-                                match = [ null, selector, null ];
-
-                            } else {
-                                match = rquickExpr.exec( selector );
-                            }
-
-                            // Match html or make sure no context is specified for #id
-                            if ( match && ( match[ 1 ] || !context ) ) {
-
-                                // HANDLE: $(html) -> $(array)
-                                if ( match[ 1 ] ) {
-                                    context = context instanceof jQuery ? context[ 0 ] : context;
-
-                                    // Option to run scripts is true for back-compat
-                                    // Intentionally let the error be thrown if parseHTML is not present
-                                    jQuery.merge( this, jQuery.parseHTML(
-                                        match[ 1 ],
-                                        context && context.nodeType ? context.ownerDocument || context : document,
-                                        true
-                                    ) );
-
-                                    // HANDLE: $(html, props)
-                                    if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
-                                        for ( match in context ) {
-
-                                            // Properties of context are called as methods if possible
-                                            if ( isFunction( this[ match ] ) ) {
-                                                this[ match ]( context[ match ] );
-
-                                                // ...and otherwise set as attributes
-                                            } else {
-                                                this.attr( match, context[ match ] );
-                                            }
-                                        }
-                                    }
-
-                                    return this;
-
-                                    // HANDLE: $(#id)
-                                } else {
-                                    elem = document.getElementById( match[ 2 ] );
-
-                                    if ( elem ) {
-
-                                        // Inject the element directly into the jQuery object
-                                        this[ 0 ] = elem;
-                                        this.length = 1;
-                                    }
-                                    return this;
-                                }
-
-                                // HANDLE: $(expr, $(...))
-                            } else if ( !context || context.jquery ) {
-                                return ( context || root ).find( selector );
-
-                                // HANDLE: $(expr, context)
-                                // (which is just equivalent to: $(context).find(expr)
-                            } else {
-                                return this.constructor( context ).find( selector );
-                            }
-
-                            // HANDLE: $(DOMElement)
-                        } else if ( selector.nodeType ) {
-                            this[ 0 ] = selector;
-                            this.length = 1;
-                            return this;
-
-                            // HANDLE: $(function)
-                            // Shortcut for document ready
-                        } else if ( isFunction( selector ) ) {
-                            return root.ready !== undefined ?
-                                root.ready( selector ) :
-
-                                // Execute immediately if ready is not present
-                                selector( jQuery );
-                        }
-
-                        return jQuery.makeArray( selector, this );
-                    };
-
-// Give the init function the jQuery prototype for later instantiation
-                init.prototype = jQuery.fn;
-
-// Initialize central reference
-                rootjQuery = jQuery( document );
-
-
-                var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
-                    // Methods guaranteed to produce a unique set when starting from a unique set
-                    guaranteedUnique = {
-                        children: true,
-                        contents: true,
-                        next: true,
-                        prev: true
-                    };
-
-                jQuery.fn.extend( {
-                    has: function( target ) {
-                        var targets = jQuery( target, this ),
-                            l = targets.length;
-
-                        return this.filter( function() {
-                            var i = 0;
-                            for ( ; i < l; i++ ) {
-                                if ( jQuery.contains( this, targets[ i ] ) ) {
-                                    return true;
-                                }
-                            }
-                        } );
-                    },
-
-                    closest: function( selectors, context ) {
-                        var cur,
-                            i = 0,
-                            l = this.length,
-                            matched = [],
-                            targets = typeof selectors !== "string" && jQuery( selectors );
-
-                        // Positional selectors never match, since there's no _selection_ context
-                        if ( !rneedsContext.test( selectors ) ) {
-                            for ( ; i < l; i++ ) {
-                                for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
-                                    // Always skip document fragments
-                                    if ( cur.nodeType < 11 && ( targets ?
-                                        targets.index( cur ) > -1 :
-
-                                        // Don't pass non-elements to Sizzle
-                                        cur.nodeType === 1 &&
-                                        jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
-                                        matched.push( cur );
-                                        break;
-                                    }
-                                }
-                            }
-                        }
-
-                        return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
-                    },
-
-                    // Determine the position of an element within the set
-                    index: function( elem ) {
-
-                        // No argument, return index in parent
-                        if ( !elem ) {
-                            return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
-                        }
-
-                        // Index in selector
-                        if ( typeof elem === "string" ) {
-                            return indexOf.call( jQuery( elem ), this[ 0 ] );
-                        }
-
-                        // Locate the position of the desired element
-                        return indexOf.call( this,
-
-                            // If it receives a jQuery object, the first element is used
-                            elem.jquery ? elem[ 0 ] : elem
-                        );
-                    },
-
-                    add: function( selector, context ) {
-                        return this.pushStack(
-                            jQuery.uniqueSort(
-                                jQuery.merge( this.get(), jQuery( selector, context ) )
-                            )
-                        );
-                    },
-
-                    addBack: function( selector ) {
-                        return this.add( selector == null ?
-                            this.prevObject : this.prevObject.filter( selector )
-                        );
-                    }
-                } );
-
-                function sibling( cur, dir ) {
-                    while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
-                    return cur;
-                }
-
-                jQuery.each( {
-                    parent: function( elem ) {
-                        var parent = elem.parentNode;
-                        return parent && parent.nodeType !== 11 ? parent : null;
-                    },
-                    parents: function( elem ) {
-                        return dir( elem, "parentNode" );
-                    },
-                    parentsUntil: function( elem, _i, until ) {
-                        return dir( elem, "parentNode", until );
-                    },
-                    next: function( elem ) {
-                        return sibling( elem, "nextSibling" );
-                    },
-                    prev: function( elem ) {
-                        return sibling( elem, "previousSibling" );
-                    },
-                    nextAll: function( elem ) {
-                        return dir( elem, "nextSibling" );
-                    },
-                    prevAll: function( elem ) {
-                        return dir( elem, "previousSibling" );
-                    },
-                    nextUntil: function( elem, _i, until ) {
-                        return dir( elem, "nextSibling", until );
-                    },
-                    prevUntil: function( elem, _i, until ) {
-                        return dir( elem, "previousSibling", until );
-                    },
-                    siblings: function( elem ) {
-                        return siblings( ( elem.parentNode || {} ).firstChild, elem );
-                    },
-                    children: function( elem ) {
-                        return siblings( elem.firstChild );
-                    },
-                    contents: function( elem ) {
-                        if ( elem.contentDocument != null &&
-
-                            // Support: IE 11+
-                            // <object> elements with no `data` attribute has an object
-                            // `contentDocument` with a `null` prototype.
-                            getProto( elem.contentDocument ) ) {
-
-                            return elem.contentDocument;
-                        }
-
-                        // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
-                        // Treat the template element as a regular one in browsers that
-                        // don't support it.
-                        if ( nodeName( elem, "template" ) ) {
-                            elem = elem.content || elem;
-                        }
-
-                        return jQuery.merge( [], elem.childNodes );
-                    }
-                }, function( name, fn ) {
-                    jQuery.fn[ name ] = function( until, selector ) {
-                        var matched = jQuery.map( this, fn, until );
-
-                        if ( name.slice( -5 ) !== "Until" ) {
-                            selector = until;
-                        }
-
-                        if ( selector && typeof selector === "string" ) {
-                            matched = jQuery.filter( selector, matched );
-                        }
-
-                        if ( this.length > 1 ) {
-
-                            // Remove duplicates
-                            if ( !guaranteedUnique[ name ] ) {
-                                jQuery.uniqueSort( matched );
-                            }
-
-                            // Reverse order for parents* and prev-derivatives
-                            if ( rparentsprev.test( name ) ) {
-                                matched.reverse();
-                            }
-                        }
-
-                        return this.pushStack( matched );
-                    };
-                } );
-                var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-                function createOptions( options ) {
-                    var object = {};
-                    jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
-                        object[ flag ] = true;
-                    } );
-                    return object;
-                }
-
-                /*
- * Create a callback list using the following parameters:
- *
- *	options: an optional list of space-separated options that will change how
- *			the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- *	once:			will ensure the callback list can only be fired once (like a Deferred)
- *
- *	memory:			will keep track of previous values and will call any callback added
- *					after the list has been fired right away with the latest "memorized"
- *					values (like a Deferred)
- *
- *	unique:			will ensure a callback can only be added once (no duplicate in the list)
- *
- *	stopOnFalse:	interrupt callings when a callback returns false
- *
- */
-                jQuery.Callbacks = function( options ) {
-
-                    // Convert options from String-formatted to Object-formatted if needed
-                    // (we check in cache first)
-                    options = typeof options === "string" ?
-                        createOptions( options ) :
-                        jQuery.extend( {}, options );
-
-                    var // Flag to know if list is currently firing
-                        firing,
-
-                        // Last fire value for non-forgettable lists
-                        memory,
-
-                        // Flag to know if list was already fired
-                        fired,
-
-                        // Flag to prevent firing
-                        locked,
-
-                        // Actual callback list
-                        list = [],
-
-                        // Queue of execution data for repeatable lists
-                        queue = [],
-
-                        // Index of currently firing callback (modified by add/remove as needed)
-                        firingIndex = -1,
-
-                        // Fire callbacks
-                        fire = function() {
-
-                            // Enforce single-firing
-                            locked = locked || options.once;
-
-                            // Execute callbacks for all pending executions,
-                            // respecting firingIndex overrides and runtime changes
-                            fired = firing = true;
-                            for ( ; queue.length; firingIndex = -1 ) {
-                                memory = queue.shift();
-                                while ( ++firingIndex < list.length ) {
-
-                                    // Run callback and check for early termination
-                                    if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
-                                        options.stopOnFalse ) {
-
-                                        // Jump to end and forget the data so .add doesn't re-fire
-                                        firingIndex = list.length;
-                                        memory = false;
-                                    }
-                                }
-                            }
-
-                            // Forget the data if we're done with it
-                            if ( !options.memory ) {
-                                memory = false;
-                            }
-
-                            firing = false;
-
-                            // Clean up if we're done firing for good
-                            if ( locked ) {
-
-                                // Keep an empty list if we have data for future add calls
-                                if ( memory ) {
-                                    list = [];
-
-                                    // Otherwise, this object is spent
-                                } else {
-                                    list = "";
-                                }
-                            }
-                        },
-
-                        // Actual Callbacks object
-                        self = {
-
-                            // Add a callback or a collection of callbacks to the list
-                            add: function() {
-                                if ( list ) {
-
-                                    // If we have memory from a past run, we should fire after adding
-                                    if ( memory && !firing ) {
-                                        firingIndex = list.length - 1;
-                                        queue.push( memory );
-                                    }
-
-                                    ( function add( args ) {
-                                        jQuery.each( args, function( _, arg ) {
-                                            if ( isFunction( arg ) ) {
-                                                if ( !options.unique || !self.has( arg ) ) {
-                                                    list.push( arg );
-                                                }
-                                            } else if ( arg && arg.length && toType( arg ) !== "string" ) {
-
-                                                // Inspect recursively
-                                                add( arg );
-                                            }
-                                        } );
-                                    } )( arguments );
-
-                                    if ( memory && !firing ) {
-                                        fire();
-                                    }
-                                }
-                                return this;
-                            },
-
-                            // Remove a callback from the list
-                            remove: function() {
-                                jQuery.each( arguments, function( _, arg ) {
-                                    var index;
-                                    while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
-                                        list.splice( index, 1 );
-
-                                        // Handle firing indexes
-                                        if ( index <= firingIndex ) {
-                                            firingIndex--;
-                                        }
-                                    }
-                                } );
-                                return this;
-                            },
-
-                            // Check if a given callback is in the list.
-                            // If no argument is given, return whether or not list has callbacks attached.
-                            has: function( fn ) {
-                                return fn ?
-                                    jQuery.inArray( fn, list ) > -1 :
-                                    list.length > 0;
-                            },
-
-                            // Remove all callbacks from the list
-                            empty: function() {
-                                if ( list ) {
-                                    list = [];
-                                }
-                                return this;
-                            },
-
-                            // Disable .fire and .add
-                            // Abort any current/pending executions
-                            // Clear all callbacks and values
-                            disable: function() {
-                                locked = queue = [];
-                                list = memory = "";
-                                return this;
-                            },
-                            disabled: function() {
-                                return !list;
-                            },
-
-                            // Disable .fire
-                            // Also disable .add unless we have memory (since it would have no effect)
-                            // Abort any pending executions
-                            lock: function() {
-                                locked = queue = [];
-                                if ( !memory && !firing ) {
-                                    list = memory = "";
-                                }
-                                return this;
-                            },
-                            locked: function() {
-                                return !!locked;
-                            },
-
-                            // Call all callbacks with the given context and arguments
-                            fireWith: function( context, args ) {
-                                if ( !locked ) {
-                                    args = args || [];
-                                    args = [ context, args.slice ? args.slice() : args ];
-                                    queue.push( args );
-                                    if ( !firing ) {
-                                        fire();
-                                    }
-                                }
-                                return this;
-                            },
-
-                            // Call all the callbacks with the given arguments
-                            fire: function() {
-                                self.fireWith( this, arguments );
-                                return this;
-                            },
-
-                            // To know if the callbacks have already been called at least once
-                            fired: function() {
-                                return !!fired;
-                            }
-                        };
-
-                    return self;
-                };
-
-
-                function Identity( v ) {
-                    return v;
-                }
-                function Thrower( ex ) {
-                    throw ex;
-                }
-
-                function adoptValue( value, resolve, reject, noValue ) {
-                    var method;
-
-                    try {
-
-                        // Check for promise aspect first to privilege synchronous behavior
-                        if ( value && isFunction( ( method = value.promise ) ) ) {
-                            method.call( value ).done( resolve ).fail( reject );
-
-                            // Other thenables
-                        } else if ( value && isFunction( ( method = value.then ) ) ) {
-                            method.call( value, resolve, reject );
-
-                            // Other non-thenables
-                        } else {
-
-                            // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
-                            // * false: [ value ].slice( 0 ) => resolve( value )
-                            // * true: [ value ].slice( 1 ) => resolve()
-                            resolve.apply( undefined, [ value ].slice( noValue ) );
-                        }
-
-                        // For Promises/A+, convert exceptions into rejections
-                        // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
-                        // Deferred#then to conditionally suppress rejection.
-                    } catch ( value ) {
-
-                        // Support: Android 4.0 only
-                        // Strict mode functions invoked without .call/.apply get global-object context
-                        reject.apply( undefined, [ value ] );
-                    }
-                }
-
-                jQuery.extend( {
-
-                    Deferred: function( func ) {
-                        var tuples = [
-
-                                // action, add listener, callbacks,
-                                // ... .then handlers, argument index, [final state]
-                                [ "notify", "progress", jQuery.Callbacks( "memory" ),
-                                    jQuery.Callbacks( "memory" ), 2 ],
-                                [ "resolve", "done", jQuery.Callbacks( "once memory" ),
-                                    jQuery.Callbacks( "once memory" ), 0, "resolved" ],
-                                [ "reject", "fail", jQuery.Callbacks( "once memory" ),
-                                    jQuery.Callbacks( "once memory" ), 1, "rejected" ]
-                            ],
-                            state = "pending",
-                            promise = {
-                                state: function() {
-                                    return state;
-                                },
-                                always: function() {
-                                    deferred.done( arguments ).fail( arguments );
-                                    return this;
-                                },
-                                "catch": function( fn ) {
-                                    return promise.then( null, fn );
-                                },
-
-                                // Keep pipe for back-compat
-                                pipe: function( /* fnDone, fnFail, fnProgress */ ) {
-                                    var fns = arguments;
-
-                                    return jQuery.Deferred( function( newDefer ) {
-                                        jQuery.each( tuples, function( _i, tuple ) {
-
-                                            // Map tuples (progress, done, fail) to arguments (done, fail, progress)
-                                            var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
-
-                                            // deferred.progress(function() { bind to newDefer or newDefer.notify })
-                                            // deferred.done(function() { bind to newDefer or newDefer.resolve })
-                                            // deferred.fail(function() { bind to newDefer or newDefer.reject })
-                                            deferred[ tuple[ 1 ] ]( function() {
-                                                var returned = fn && fn.apply( this, arguments );
-                                                if ( returned && isFunction( returned.promise ) ) {
-                                                    returned.promise()
-                                                        .progress( newDefer.notify )
-                                                        .done( newDefer.resolve )
-                                                        .fail( newDefer.reject );
-                                                } else {
-                                                    newDefer[ tuple[ 0 ] + "With" ](
-                                                        this,
-                                                        fn ? [ returned ] : arguments
-                                                    );
-                                                }
-                                            } );
-                                        } );
-                                        fns = null;
-                                    } ).promise();
-                                },
-                                then: function( onFulfilled, onRejected, onProgress ) {
-                                    var maxDepth = 0;
-                                    function resolve( depth, deferred, handler, special ) {
-                                        return function() {
-                                            var that = this,
-                                                args = arguments,
-                                                mightThrow = function() {
-                                                    var returned, then;
-
-                                                    // Support: Promises/A+ section 2.3.3.3.3
-                                                    // https://promisesaplus.com/#point-59
-                                                    // Ignore double-resolution attempts
-                                                    if ( depth < maxDepth ) {
-                                                        return;
-                                                    }
-
-                                                    returned = handler.apply( that, args );
-
-                                                    // Support: Promises/A+ section 2.3.1
-                                                    // https://promisesaplus.com/#point-48
-                                                    if ( returned === deferred.promise() ) {
-                                                        throw new TypeError( "Thenable self-resolution" );
-                                                    }
-
-                                                    // Support: Promises/A+ sections 2.3.3.1, 3.5
-                                                    // https://promisesaplus.com/#point-54
-                                                    // https://promisesaplus.com/#point-75
-                                                    // Retrieve `then` only once
-                                                    then = returned &&
-
-                                                        // Support: Promises/A+ section 2.3.4
-                                                        // https://promisesaplus.com/#point-64
-                                                        // Only check objects and functions for thenability
-                                                        ( typeof returned === "object" ||
-                                                            typeof returned === "function" ) &&
-                                                        returned.then;
-
-                                                    // Handle a returned thenable
-                                                    if ( isFunction( then ) ) {
-
-                                                        // Special processors (notify) just wait for resolution
-                                                        if ( special ) {
-                                                            then.call(
-                                                                returned,
-                                                                resolve( maxDepth, deferred, Identity, special ),
-                                                                resolve( maxDepth, deferred, Thrower, special )
-                                                            );
-
-                                                            // Normal processors (resolve) also hook into progress
-                                                        } else {
-
-                                                            // ...and disregard older resolution values
-                                                            maxDepth++;
-
-                                                            then.call(
-                                                                returned,
-                                                                resolve( maxDepth, deferred, Identity, special ),
-                                                                resolve( maxDepth, deferred, Thrower, special ),
-                                                                resolve( maxDepth, deferred, Identity,
-                                                                    deferred.notifyWith )
-                                                            );
-                                                        }
-
-                                                        // Handle all other returned values
-                                                    } else {
-
-                                                        // Only substitute handlers pass on context
-                                                        // and multiple values (non-spec behavior)
-                                                        if ( handler !== Identity ) {
-                                                            that = undefined;
-                                                            args = [ returned ];
-                                                        }
-
-                                                        // Process the value(s)
-                                                        // Default process is resolve
-                                                        ( special || deferred.resolveWith )( that, args );
-                                                    }
-                                                },
-
-                                                // Only normal processors (resolve) catch and reject exceptions
-                                                process = special ?
-                                                    mightThrow :
-                                                    function() {
-                                                        try {
-                                                            mightThrow();
-                                                        } catch ( e ) {
-
-                                                            if ( jQuery.Deferred.exceptionHook ) {
-                                                                jQuery.Deferred.exceptionHook( e,
-                                                                    process.stackTrace );
-                                                            }
-
-                                                            // Support: Promises/A+ section 2.3.3.3.4.1
-                                                            // https://promisesaplus.com/#point-61
-                                                            // Ignore post-resolution exceptions
-                                                            if ( depth + 1 >= maxDepth ) {
-
-                                                                // Only substitute handlers pass on context
-                                                                // and multiple values (non-spec behavior)
-                                                                if ( handler !== Thrower ) {
-                                                                    that = undefined;
-                                                                    args = [ e ];
-                                                                }
-
-                                                                deferred.rejectWith( that, args );
-                                                            }
-                                                        }
-                                                    };
-
-                                            // Support: Promises/A+ section 2.3.3.3.1
-                                            // https://promisesaplus.com/#point-57
-                                            // Re-resolve promises immediately to dodge false rejection from
-                                            // subsequent errors
-                                            if ( depth ) {
-                                                process();
-                                            } else {
-
-                                                // Call an optional hook to record the stack, in case of exception
-                                                // since it's otherwise lost when execution goes async
-                                                if ( jQuery.Deferred.getStackHook ) {
-                                                    process.stackTrace = jQuery.Deferred.getStackHook();
-                                                }
-                                                window.setTimeout( process );
-                                            }
-                                        };
-                                    }
-
-                                    return jQuery.Deferred( function( newDefer ) {
-
-                                        // progress_handlers.add( ... )
-                                        tuples[ 0 ][ 3 ].add(
-                                            resolve(
-                                                0,
-                                                newDefer,
-                                                isFunction( onProgress ) ?
-                                                    onProgress :
-                                                    Identity,
-                                                newDefer.notifyWith
-                                            )
-                                        );
-
-                                        // fulfilled_handlers.add( ... )
-                                        tuples[ 1 ][ 3 ].add(
-                                            resolve(
-                                                0,
-                                                newDefer,
-                                                isFunction( onFulfilled ) ?
-                                                    onFulfilled :
-                                                    Identity
-                                            )
-                                        );
-
-                                        // rejected_handlers.add( ... )
-                                        tuples[ 2 ][ 3 ].add(
-                                            resolve(
-                                                0,
-                                                newDefer,
-                                                isFunction( onRejected ) ?
-                                                    onRejected :
-                                                    Thrower
-                                            )
-                                        );
-                                    } ).promise();
-                                },
-
-                                // Get a promise for this deferred
-                                // If obj is provided, the promise aspect is added to the object
-                                promise: function( obj ) {
-                                    return obj != null ? jQuery.extend( obj, promise ) : promise;
-                                }
-                            },
-                            deferred = {};
-
-                        // Add list-specific methods
-                        jQuery.each( tuples, function( i, tuple ) {
-                            var list = tuple[ 2 ],
-                                stateString = tuple[ 5 ];
-
-                            // promise.progress = list.add
-                            // promise.done = list.add
-                            // promise.fail = list.add
-                            promise[ tuple[ 1 ] ] = list.add;
-
-                            // Handle state
-                            if ( stateString ) {
-                                list.add(
-                                    function() {
-
-                                        // state = "resolved" (i.e., fulfilled)
-                                        // state = "rejected"
-                                        state = stateString;
-                                    },
-
-                                    // rejected_callbacks.disable
-                                    // fulfilled_callbacks.disable
-                                    tuples[ 3 - i ][ 2 ].disable,
-
-                                    // rejected_handlers.disable
-                                    // fulfilled_handlers.disable
-                                    tuples[ 3 - i ][ 3 ].disable,
-
-                                    // progress_callbacks.lock
-                                    tuples[ 0 ][ 2 ].lock,
-
-                                    // progress_handlers.lock
-                                    tuples[ 0 ][ 3 ].lock
-                                );
-                            }
-
-                            // progress_handlers.fire
-                            // fulfilled_handlers.fire
-                            // rejected_handlers.fire
-                            list.add( tuple[ 3 ].fire );
-
-                            // deferred.notify = function() { deferred.notifyWith(...) }
-                            // deferred.resolve = function() { deferred.resolveWith(...) }
-                            // deferred.reject = function() { deferred.rejectWith(...) }
-                            deferred[ tuple[ 0 ] ] = function() {
-                                deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
-                                return this;
-                            };
-
-                            // deferred.notifyWith = list.fireWith
-                            // deferred.resolveWith = list.fireWith
-                            // deferred.rejectWith = list.fireWith
-                            deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
-                        } );
-
-                        // Make the deferred a promise
-                        promise.promise( deferred );
-
-                        // Call given func if any
-                        if ( func ) {
-                            func.call( deferred, deferred );
-                        }
-
-                        // All done!
-                        return deferred;
-                    },
-
-                    // Deferred helper
-                    when: function( singleValue ) {
-                        var
-
-                            // count of uncompleted subordinates
-                            remaining = arguments.length,
-
-                            // count of unprocessed arguments
-                            i = remaining,
-
-                            // subordinate fulfillment data
-                            resolveContexts = Array( i ),
-                            resolveValues = slice.call( arguments ),
-
-                            // the master Deferred
-                            master = jQuery.Deferred(),
-
-                            // subordinate callback factory
-                            updateFunc = function( i ) {
-                                return function( value ) {
-                                    resolveContexts[ i ] = this;
-                                    resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
-                                    if ( !( --remaining ) ) {
-                                        master.resolveWith( resolveContexts, resolveValues );
-                                    }
-                                };
-                            };
-
-                        // Single- and empty arguments are adopted like Promise.resolve
-                        if ( remaining <= 1 ) {
-                            adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
-                                !remaining );
-
-                            // Use .then() to unwrap secondary thenables (cf. gh-3000)
-                            if ( master.state() === "pending" ||
-                                isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
-
-                                return master.then();
-                            }
-                        }
-
-                        // Multiple arguments are aggregated like Promise.all array elements
-                        while ( i-- ) {
-                            adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
-                        }
-
-                        return master.promise();
-                    }
-                } );
-
-
-// These usually indicate a programmer mistake during development,
-// warn about them ASAP rather than swallowing them by default.
-                var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
-
-                jQuery.Deferred.exceptionHook = function( error, stack ) {
-
-                    // Support: IE 8 - 9 only
-                    // Console exists when dev tools are open, which can happen at any time
-                    if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
-                        window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
-                    }
-                };
-
-
-
-
-                jQuery.readyException = function( error ) {
-                    window.setTimeout( function() {
-                        throw error;
-                    } );
-                };
-
-
-
-
-// The deferred used on DOM ready
-                var readyList = jQuery.Deferred();
-
-                jQuery.fn.ready = function( fn ) {
-
-                    readyList
-                        .then( fn )
-
-                        // Wrap jQuery.readyException in a function so that the lookup
-                        // happens at the time of error handling instead of callback
-                        // registration.
-                        .catch( function( error ) {
-                            jQuery.readyException( error );
-                        } );
-
-                    return this;
-                };
-
-                jQuery.extend( {
-
-                    // Is the DOM ready to be used? Set to true once it occurs.
-                    isReady: false,
-
-                    // A counter to track how many items to wait for before
-                    // the ready event fires. See #6781
-                    readyWait: 1,
-
-                    // Handle when the DOM is ready
-                    ready: function( wait ) {
-
-                        // Abort if there are pending holds or we're already ready
-                        if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
-                            return;
-                        }
-
-                        // Remember that the DOM is ready
-                        jQuery.isReady = true;
-
-                        // If a normal DOM Ready event fired, decrement, and wait if need be
-                        if ( wait !== true && --jQuery.readyWait > 0 ) {
-                            return;
-                        }
-
-                        // If there are functions bound, to execute
-                        readyList.resolveWith( document, [ jQuery ] );
-                    }
-                } );
-
-                jQuery.ready.then = readyList.then;
-
-// The ready event handler and self cleanup method
-                function completed() {
-                    document.removeEventListener( "DOMContentLoaded", completed );
-                    window.removeEventListener( "load", completed );
-                    jQuery.ready();
-                }
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE <=9 - 10 only
-// Older IE sometimes signals "interactive" too soon
-                if ( document.readyState === "complete" ||
-                    ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
-                    // Handle it asynchronously to allow scripts the opportunity to delay ready
-                    window.setTimeout( jQuery.ready );
-
-                } else {
-
-                    // Use the handy event callback
-                    document.addEventListener( "DOMContentLoaded", completed );
-
-                    // A fallback to window.onload, that will always work
-                    window.addEventListener( "load", completed );
-                }
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-                var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
-                    var i = 0,
-                        len = elems.length,
-                        bulk = key == null;
-
-                    // Sets many values
-                    if ( toType( key ) === "object" ) {
-                        chainable = true;
-                        for ( i in key ) {
-                            access( elems, fn, i, key[ i ], true, emptyGet, raw );
-                        }
-
-                        // Sets one value
-                    } else if ( value !== undefined ) {
-                        chainable = true;
-
-                        if ( !isFunction( value ) ) {
-                            raw = true;
-                        }
-
-                        if ( bulk ) {
-
-                            // Bulk operations run against the entire set
-                            if ( raw ) {
-                                fn.call( elems, value );
-                                fn = null;
-
-                                // ...except when executing function values
-                            } else {
-                                bulk = fn;
-                                fn = function( elem, _key, value ) {
-                                    return bulk.call( jQuery( elem ), value );
-                                };
-                            }
-                        }
-
-                        if ( fn ) {
-                            for ( ; i < len; i++ ) {
-                                fn(
-                                    elems[ i ], key, raw ?
-                                        value :
-                                        value.call( elems[ i ], i, fn( elems[ i ], key ) )
-                                );
-                            }
-                        }
-                    }
-
-                    if ( chainable ) {
-                        return elems;
-                    }
-
-                    // Gets
-                    if ( bulk ) {
-                        return fn.call( elems );
-                    }
-
-                    return len ? fn( elems[ 0 ], key ) : emptyGet;
-                };
-
-
-// Matches dashed string for camelizing
-                var rmsPrefix = /^-ms-/,
-                    rdashAlpha = /-([a-z])/g;
-
-// Used by camelCase as callback to replace()
-                function fcamelCase( _all, letter ) {
-                    return letter.toUpperCase();
-                }
-
-// Convert dashed to camelCase; used by the css and data modules
-// Support: IE <=9 - 11, Edge 12 - 15
-// Microsoft forgot to hump their vendor prefix (#9572)
-                function camelCase( string ) {
-                    return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-                }
-                var acceptData = function( owner ) {
-
-                    // Accepts only:
-                    //  - Node
-                    //    - Node.ELEMENT_NODE
-                    //    - Node.DOCUMENT_NODE
-                    //  - Object
-                    //    - Any
-                    return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-                };
-
-
-
-
-                function Data() {
-                    this.expando = jQuery.expando + Data.uid++;
-                }
-
-                Data.uid = 1;
-
-                Data.prototype = {
-
-                    cache: function( owner ) {
-
-                        // Check if the owner object already has a cache
-                        var value = owner[ this.expando ];
-
-                        // If not, create one
-                        if ( !value ) {
-                            value = {};
-
-                            // We can accept data for non-element nodes in modern browsers,
-                            // but we should not, see #8335.
-                            // Always return an empty object.
-                            if ( acceptData( owner ) ) {
-
-                                // If it is a node unlikely to be stringify-ed or looped over
-                                // use plain assignment
-                                if ( owner.nodeType ) {
-                                    owner[ this.expando ] = value;
-
-                                    // Otherwise secure it in a non-enumerable property
-                                    // configurable must be true to allow the property to be
-                                    // deleted when data is removed
-                                } else {
-                                    Object.defineProperty( owner, this.expando, {
-                                        value: value,
-                                        configurable: true
-                                    } );
-                                }
-                            }
-                        }
-
-                        return value;
-                    },
-                    set: function( owner, data, value ) {
-                        var prop,
-                            cache = this.cache( owner );
-
-                        // Handle: [ owner, key, value ] args
-                        // Always use camelCase key (gh-2257)
-                        if ( typeof data === "string" ) {
-                            cache[ camelCase( data ) ] = value;
-
-                            // Handle: [ owner, { properties } ] args
-                        } else {
-
-                            // Copy the properties one-by-one to the cache object
-                            for ( prop in data ) {
-                                cache[ camelCase( prop ) ] = data[ prop ];
-                            }
-                        }
-                        return cache;
-                    },
-                    get: function( owner, key ) {
-                        return key === undefined ?
-                            this.cache( owner ) :
-
-                            // Always use camelCase key (gh-2257)
-                            owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
-                    },
-                    access: function( owner, key, value ) {
-
-                        // In cases where either:
-                        //
-                        //   1. No key was specified
-                        //   2. A string key was specified, but no value provided
-                        //
-                        // Take the "read" path and allow the get method to determine
-                        // which value to return, respectively either:
-                        //
-                        //   1. The entire cache object
-                        //   2. The data stored at the key
-                        //
-                        if ( key === undefined ||
-                            ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
-                            return this.get( owner, key );
-                        }
-
-                        // When the key is not a string, or both a key and value
-                        // are specified, set or extend (existing objects) with either:
-                        //
-                        //   1. An object of properties
-                        //   2. A key and value
-                        //
-                        this.set( owner, key, value );
-
-                        // Since the "set" path can have two possible entry points
-                        // return the expected data based on which path was taken[*]
-                        return value !== undefined ? value : key;
-                    },
-                    remove: function( owner, key ) {
-                        var i,
-                            cache = owner[ this.expando ];
-
-                        if ( cache === undefined ) {
-                            return;
-                        }
-
-                        if ( key !== undefined ) {
-
-                            // Support array or space separated string of keys
-                            if ( Array.isArray( key ) ) {
-
-                                // If key is an array of keys...
-                                // We always set camelCase keys, so remove that.
-                                key = key.map( camelCase );
-                            } else {
-                                key = camelCase( key );
-
-                                // If a key with the spaces exists, use it.
-                                // Otherwise, create an array by matching non-whitespace
-                                key = key in cache ?
-                                    [ key ] :
-                                    ( key.match( rnothtmlwhite ) || [] );
-                            }
-
-                            i = key.length;
-
-                            while ( i-- ) {
-                                delete cache[ key[ i ] ];
-                            }
-                        }
-
-                        // Remove the expando if there's no more data
-                        if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
-                            // Support: Chrome <=35 - 45
-                            // Webkit & Blink performance suffers when deleting properties
-                            // from DOM nodes, so set to undefined instead
-                            // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
-                            if ( owner.nodeType ) {
-                                owner[ this.expando ] = undefined;
-                            } else {
-                                delete owner[ this.expando ];
-                            }
-                        }
-                    },
-                    hasData: function( owner ) {
-                        var cache = owner[ this.expando ];
-                        return cache !== undefined && !jQuery.isEmptyObject( cache );
-                    }
-                };
-                var dataPriv = new Data();
-
-                var dataUser = new Data();
-
-
-
-//	Implementation Summary
-//
-//	1. Enforce API surface and semantic compatibility with 1.9.x branch
-//	2. Improve the module's maintainability by reducing the storage
-//		paths to a single mechanism.
-//	3. Use the same single mechanism to support "private" and "user" data.
-//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-//	5. Avoid exposing implementation details on user objects (eg. expando properties)
-//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-                var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
-                    rmultiDash = /[A-Z]/g;
-
-                function getData( data ) {
-                    if ( data === "true" ) {
-                        return true;
-                    }
-
-                    if ( data === "false" ) {
-                        return false;
-                    }
-
-                    if ( data === "null" ) {
-                        return null;
-                    }
-
-                    // Only convert to a number if it doesn't change the string
-                    if ( data === +data + "" ) {
-                        return +data;
-                    }
-
-                    if ( rbrace.test( data ) ) {
-                        return JSON.parse( data );
-                    }
-
-                    return data;
-                }
-
-                function dataAttr( elem, key, data ) {
-                    var name;
-
-                    // If nothing was found internally, try to fetch any
-                    // data from the HTML5 data-* attribute
-                    if ( data === undefined && elem.nodeType === 1 ) {
-                        name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
-                        data = elem.getAttribute( name );
-
-                        if ( typeof data === "string" ) {
-                            try {
-                                data = getData( data );
-                            } catch ( e ) {}
-
-                            // Make sure we set the data so it isn't changed later
-                            dataUser.set( elem, key, data );
-                        } else {
-                            data = undefined;
-                        }
-                    }
-                    return data;
-                }
-
-                jQuery.extend( {
-                    hasData: function( elem ) {
-                        return dataUser.hasData( elem ) || dataPriv.hasData( elem );
-                    },
-
-                    data: function( elem, name, data ) {
-                        return dataUser.access( elem, name, data );
-                    },
-
-                    removeData: function( elem, name ) {
-                        dataUser.remove( elem, name );
-                    },
-
-                    // TODO: Now that all calls to _data and _removeData have been replaced
-                    // with direct calls to dataPriv methods, these can be deprecated.
-                    _data: function( elem, name, data ) {
-                        return dataPriv.access( elem, name, data );
-                    },
-
-                    _removeData: function( elem, name ) {
-                        dataPriv.remove( elem, name );
-                    }
-                } );
-
-                jQuery.fn.extend( {
-                    data: function( key, value ) {
-                        var i, name, data,
-                            elem = this[ 0 ],
-                            attrs = elem && elem.attributes;
-
-                        // Gets all values
-                        if ( key === undefined ) {
-                            if ( this.length ) {
-                                data = dataUser.get( elem );
-
-                                if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
-                                    i = attrs.length;
-                                    while ( i-- ) {
-
-                                        // Support: IE 11 only
-                                        // The attrs elements can be null (#14894)
-                                        if ( attrs[ i ] ) {
-                                            name = attrs[ i ].name;
-                                            if ( name.indexOf( "data-" ) === 0 ) {
-                                                name = camelCase( name.slice( 5 ) );
-                                                dataAttr( elem, name, data[ name ] );
-                                            }
-                                        }
-                                    }
-                                    dataPriv.set( elem, "hasDataAttrs", true );
-                                }
-                            }
-
-                            return data;
-                        }
-
-                        // Sets multiple values
-                        if ( typeof key === "object" ) {
-                            return this.each( function() {
-                                dataUser.set( this, key );
-                            } );
-                        }
-
-                        return access( this, function( value ) {
-                            var data;
-
-                            // The calling jQuery object (element matches) is not empty
-                            // (and therefore has an element appears at this[ 0 ]) and the
-                            // `value` parameter was not undefined. An empty jQuery object
-                            // will result in `undefined` for elem = this[ 0 ] which will
-                            // throw an exception if an attempt to read a data cache is made.
-                            if ( elem && value === undefined ) {
-
-                                // Attempt to get data from the cache
-                                // The key will always be camelCased in Data
-                                data = dataUser.get( elem, key );
-                                if ( data !== undefined ) {
-                                    return data;
-                                }
-
-                                // Attempt to "discover" the data in
-                                // HTML5 custom data-* attrs
-                                data = dataAttr( elem, key );
-                                if ( data !== undefined ) {
-                                    return data;
-                                }
-
-                                // We tried really hard, but the data doesn't exist.
-                                return;
-                            }
-
-                            // Set the data...
-                            this.each( function() {
-
-                                // We always store the camelCased key
-                                dataUser.set( this, key, value );
-                            } );
-                        }, null, value, arguments.length > 1, null, true );
-                    },
-
-                    removeData: function( key ) {
-                        return this.each( function() {
-                            dataUser.remove( this, key );
-                        } );
-                    }
-                } );
-
-
-                jQuery.extend( {
-                    queue: function( elem, type, data ) {
-                        var queue;
-
-                        if ( elem ) {
-                            type = ( type || "fx" ) + "queue";
-                            queue = dataPriv.get( elem, type );
-
-                            // Speed up dequeue by getting out quickly if this is just a lookup
-                            if ( data ) {
-                                if ( !queue || Array.isArray( data ) ) {
-                                    queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
-                                } else {
-                                    queue.push( data );
-                                }
-                            }
-                            return queue || [];
-                        }
-                    },
-
-                    dequeue: function( elem, type ) {
-                        type = type || "fx";
-
-                        var queue = jQuery.queue( elem, type ),
-                            startLength = queue.length,
-                            fn = queue.shift(),
-                            hooks = jQuery._queueHooks( elem, type ),
-                            next = function() {
-                                jQuery.dequeue( elem, type );
-                            };
-
-                        // If the fx queue is dequeued, always remove the progress sentinel
-                        if ( fn === "inprogress" ) {
-                            fn = queue.shift();
-                            startLength--;
-                        }
-
-                        if ( fn ) {
-
-                            // Add a progress sentinel to prevent the fx queue from being
-                            // automatically dequeued
-                            if ( type === "fx" ) {
-                                queue.unshift( "inprogress" );
-                            }
-
-                            // Clear up the last queue stop function
-                            delete hooks.stop;
-                            fn.call( elem, next, hooks );
-                        }
-
-                        if ( !startLength && hooks ) {
-                            hooks.empty.fire();
-                        }
-                    },
-
-                    // Not public - generate a queueHooks object, or return the current one
-                    _queueHooks: function( elem, type ) {
-                        var key = type + "queueHooks";
-                        return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
-                            empty: jQuery.Callbacks( "once memory" ).add( function() {
-                                dataPriv.remove( elem, [ type + "queue", key ] );
-                            } )
-                        } );
-                    }
-                } );
-
-                jQuery.fn.extend( {
-                    queue: function( type, data ) {
-                        var setter = 2;
-
-                        if ( typeof type !== "string" ) {
-                            data = type;
-                            type = "fx";
-                            setter--;
-                        }
-
-                        if ( arguments.length < setter ) {
-                            return jQuery.queue( this[ 0 ], type );
-                        }
-
-                        return data === undefined ?
-                            this :
-                            this.each( function() {
-                                var queue = jQuery.queue( this, type, data );
-
-                                // Ensure a hooks for this queue
-                                jQuery._queueHooks( this, type );
-
-                                if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
-                                    jQuery.dequeue( this, type );
-                                }
-                            } );
-                    },
-                    dequeue: function( type ) {
-                        return this.each( function() {
-                            jQuery.dequeue( this, type );
-                        } );
-                    },
-                    clearQueue: function( type ) {
-                        return this.queue( type || "fx", [] );
-                    },
-
-                    // Get a promise resolved when queues of a certain type
-                    // are emptied (fx is the type by default)
-                    promise: function( type, obj ) {
-                        var tmp,
-                            count = 1,
-                            defer = jQuery.Deferred(),
-                            elements = this,
-                            i = this.length,
-                            resolve = function() {
-                                if ( !( --count ) ) {
-                                    defer.resolveWith( elements, [ elements ] );
-                                }
-                            };
-
-                        if ( typeof type !== "string" ) {
-                            obj = type;
-                            type = undefined;
-                        }
-                        type = type || "fx";
-
-                        while ( i-- ) {
-                            tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
-                            if ( tmp && tmp.empty ) {
-                                count++;
-                                tmp.empty.add( resolve );
-                            }
-                        }
-                        resolve();
-                        return defer.promise( obj );
-                    }
-                } );
-                var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-                var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-                var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-                var documentElement = document.documentElement;
-
-
-
-                var isAttached = function( elem ) {
-                        return jQuery.contains( elem.ownerDocument, elem );
-                    },
-                    composed = { composed: true };
-
-                // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
-                // Check attachment across shadow DOM boundaries when possible (gh-3504)
-                // Support: iOS 10.0-10.2 only
-                // Early iOS 10 versions support `attachShadow` but not `getRootNode`,
-                // leading to errors. We need to check for `getRootNode`.
-                if ( documentElement.getRootNode ) {
-                    isAttached = function( elem ) {
-                        return jQuery.contains( elem.ownerDocument, elem ) ||
-                            elem.getRootNode( composed ) === elem.ownerDocument;
-                    };
-                }
-                var isHiddenWithinTree = function( elem, el ) {
-
-                    // isHiddenWithinTree might be called from jQuery#filter function;
-                    // in that case, element will be second argument
-                    elem = el || elem;
-
-                    // Inline style trumps all
-                    return elem.style.display === "none" ||
-                        elem.style.display === "" &&
-
-                        // Otherwise, check computed style
-                        // Support: Firefox <=43 - 45
-                        // Disconnected elements can have computed display: none, so first confirm that elem is
-                        // in the document.
-                        isAttached( elem ) &&
-
-                        jQuery.css( elem, "display" ) === "none";
-                };
-
-
-
-                function adjustCSS( elem, prop, valueParts, tween ) {
-                    var adjusted, scale,
-                        maxIterations = 20,
-                        currentValue = tween ?
-                            function() {
-                                return tween.cur();
-                            } :
-                            function() {
-                                return jQuery.css( elem, prop, "" );
-                            },
-                        initial = currentValue(),
-                        unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
-                        // Starting value computation is required for potential unit mismatches
-                        initialInUnit = elem.nodeType &&
-                            ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
-                            rcssNum.exec( jQuery.css( elem, prop ) );
-
-                    if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
-                        // Support: Firefox <=54
-                        // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
-                        initial = initial / 2;
-
-                        // Trust units reported by jQuery.css
-                        unit = unit || initialInUnit[ 3 ];
-
-                        // Iteratively approximate from a nonzero starting point
-                        initialInUnit = +initial || 1;
-
-                        while ( maxIterations-- ) {
-
-                            // Evaluate and update our best guess (doubling guesses that zero out).
-                            // Finish if the scale equals or crosses 1 (making the old*new product non-positive).
-                            jQuery.style( elem, prop, initialInUnit + unit );
-                            if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
-                                maxIterations = 0;
-                            }
-                            initialInUnit = initialInUnit / scale;
-
-                        }
-
-                        initialInUnit = initialInUnit * 2;
-                        jQuery.style( elem, prop, initialInUnit + unit );
-
-                        // Make sure we update the tween properties later on
-                        valueParts = valueParts || [];
-                    }
-
-                    if ( valueParts ) {
-                        initialInUnit = +initialInUnit || +initial || 0;
-
-                        // Apply relative offset (+=/-=) if specified
-                        adjusted = valueParts[ 1 ] ?
-                            initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
-                            +valueParts[ 2 ];
-                        if ( tween ) {
-                            tween.unit = unit;
-                            tween.start = initialInUnit;
-                            tween.end = adjusted;
-                        }
-                    }
-                    return adjusted;
-                }
-
-
-                var defaultDisplayMap = {};
-
-                function getDefaultDisplay( elem ) {
-                    var temp,
-                        doc = elem.ownerDocument,
-                        nodeName = elem.nodeName,
-                        display = defaultDisplayMap[ nodeName ];
-
-                    if ( display ) {
-                        return display;
-                    }
-
-                    temp = doc.body.appendChild( doc.createElement( nodeName ) );
-                    display = jQuery.css( temp, "display" );
-
-                    temp.parentNode.removeChild( temp );
-
-                    if ( display === "none" ) {
-                        display = "block";
-                    }
-                    defaultDisplayMap[ nodeName ] = display;
-
-                    return display;
-                }
-
-                function showHide( elements, show ) {
-                    var display, elem,
-                        values = [],
-                        index = 0,
-                        length = elements.length;
-
-                    // Determine new display value for elements that need to change
-                    for ( ; index < length; index++ ) {
-                        elem = elements[ index ];
-                        if ( !elem.style ) {
-                            continue;
-                        }
-
-                        display = elem.style.display;
-                        if ( show ) {
-
-                            // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
-                            // check is required in this first loop unless we have a nonempty display value (either
-                            // inline or about-to-be-restored)
-                            if ( display === "none" ) {
-                                values[ index ] = dataPriv.get( elem, "display" ) || null;
-                                if ( !values[ index ] ) {
-                                    elem.style.display = "";
-                                }
-                            }
-                            if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
-                                values[ index ] = getDefaultDisplay( elem );
-                            }
-                        } else {
-                            if ( display !== "none" ) {
-                                values[ index ] = "none";
-
-                                // Remember what we're overwriting
-                                dataPriv.set( elem, "display", display );
-                            }
-                        }
-                    }
-
-                    // Set the display of the elements in a second loop to avoid constant reflow
-                    for ( index = 0; index < length; index++ ) {
-                        if ( values[ index ] != null ) {
-                            elements[ index ].style.display = values[ index ];
-                        }
-                    }
-
-                    return elements;
-                }
-
-                jQuery.fn.extend( {
-                    show: function() {
-                        return showHide( this, true );
-                    },
-                    hide: function() {
-                        return showHide( this );
-                    },
-                    toggle: function( state ) {
-                        if ( typeof state === "boolean" ) {
-                            return state ? this.show() : this.hide();
-                        }
-
-                        return this.each( function() {
-                            if ( isHiddenWithinTree( this ) ) {
-                                jQuery( this ).show();
-                            } else {
-                                jQuery( this ).hide();
-                            }
-                        } );
-                    }
-                } );
-                var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-                var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
-
-                var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
-
-
-
-                ( function() {
-                    var fragment = document.createDocumentFragment(),
-                        div = fragment.appendChild( document.createElement( "div" ) ),
-                        input = document.createElement( "input" );
-
-                    // Support: Android 4.0 - 4.3 only
-                    // Check state lost if the name is set (#11217)
-                    // Support: Windows Web Apps (WWA)
-                    // `name` and `type` must use .setAttribute for WWA (#14901)
-                    input.setAttribute( "type", "radio" );
-                    input.setAttribute( "checked", "checked" );
-                    input.setAttribute( "name", "t" );
-
-                    div.appendChild( input );
-
-                    // Support: Android <=4.1 only
-                    // Older WebKit doesn't clone checked state correctly in fragments
-                    support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-                    // Support: IE <=11 only
-                    // Make sure textarea (and checkbox) defaultValue is properly cloned
-                    div.innerHTML = "<textarea>x</textarea>";
-                    support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-
-                    // Support: IE <=9 only
-                    // IE <=9 replaces <option> tags with their contents when inserted outside of
-                    // the select element.
-                    div.innerHTML = "<option></option>";
-                    support.option = !!div.lastChild;
-                } )();
-
-
-// We have to close these tags to support XHTML (#13200)
-                var wrapMap = {
-
-                    // XHTML parsers do not magically insert elements in the
-                    // same way that tag soup parsers do. So we cannot shorten
-                    // this by omitting <tbody> or other required elements.
-                    thead: [ 1, "<table>", "</table>" ],
-                    col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
-                    tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-                    td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
-                    _default: [ 0, "", "" ]
-                };
-
-                wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-                wrapMap.th = wrapMap.td;
-
-// Support: IE <=9 only
-                if ( !support.option ) {
-                    wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
-                }
-
-
-                function getAll( context, tag ) {
-
-                    // Support: IE <=9 - 11 only
-                    // Use typeof to avoid zero-argument method invocation on host objects (#15151)
-                    var ret;
-
-                    if ( typeof context.getElementsByTagName !== "undefined" ) {
-                        ret = context.getElementsByTagName( tag || "*" );
-
-                    } else if ( typeof context.querySelectorAll !== "undefined" ) {
-                        ret = context.querySelectorAll( tag || "*" );
-
-                    } else {
-                        ret = [];
-                    }
-
-                    if ( tag === undefined || tag && nodeName( context, tag ) ) {
-                        return jQuery.merge( [ context ], ret );
-                    }
-
-                    return ret;
-                }
-
-
-// Mark scripts as having already been evaluated
-                function setGlobalEval( elems, refElements ) {
-                    var i = 0,
-                        l = elems.length;
-
-                    for ( ; i < l; i++ ) {
-                        dataPriv.set(
-                            elems[ i ],
-                            "globalEval",
-                            !refElements || dataPriv.get( refElements[ i ], "globalEval" )
-                        );
-                    }
-                }
-
-
-                var rhtml = /<|&#?\w+;/;
-
-                function buildFragment( elems, context, scripts, selection, ignored ) {
-                    var elem, tmp, tag, wrap, attached, j,
-                        fragment = context.createDocumentFragment(),
-                        nodes = [],
-                        i = 0,
-                        l = elems.length;
-
-                    for ( ; i < l; i++ ) {
-                        elem = elems[ i ];
-
-                        if ( elem || elem === 0 ) {
-
-                            // Add nodes directly
-                            if ( toType( elem ) === "object" ) {
-
-                                // Support: Android <=4.0 only, PhantomJS 1 only
-                                // push.apply(_, arraylike) throws on ancient WebKit
-                                jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
-                                // Convert non-html into a text node
-                            } else if ( !rhtml.test( elem ) ) {
-                                nodes.push( context.createTextNode( elem ) );
-
-                                // Convert html into DOM nodes
-                            } else {
-                                tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
-                                // Deserialize a standard representation
-                                tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
-                                wrap = wrapMap[ tag ] || wrapMap._default;
-                                tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
-                                // Descend through wrappers to the right content
-                                j = wrap[ 0 ];
-                                while ( j-- ) {
-                                    tmp = tmp.lastChild;
-                                }
-
-                                // Support: Android <=4.0 only, PhantomJS 1 only
-                                // push.apply(_, arraylike) throws on ancient WebKit
-                                jQuery.merge( nodes, tmp.childNodes );
-
-                                // Remember the top-level container
-                                tmp = fragment.firstChild;
-
-                                // Ensure the created nodes are orphaned (#12392)
-                                tmp.textContent = "";
-                            }
-                        }
-                    }
-
-                    // Remove wrapper from fragment
-                    fragment.textContent = "";
-
-                    i = 0;
-                    while ( ( elem = nodes[ i++ ] ) ) {
-
-                        // Skip elements already in the context collection (trac-4087)
-                        if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
-                            if ( ignored ) {
-                                ignored.push( elem );
-                            }
-                            continue;
-                        }
-
-                        attached = isAttached( elem );
-
-                        // Append to fragment
-                        tmp = getAll( fragment.appendChild( elem ), "script" );
-
-                        // Preserve script evaluation history
-                        if ( attached ) {
-                            setGlobalEval( tmp );
-                        }
-
-                        // Capture executables
-                        if ( scripts ) {
-                            j = 0;
-                            while ( ( elem = tmp[ j++ ] ) ) {
-                                if ( rscriptType.test( elem.type || "" ) ) {
-                                    scripts.push( elem );
-                                }
-                            }
-                        }
-                    }
-
-                    return fragment;
-                }
-
-
-                var
-                    rkeyEvent = /^key/,
-                    rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
-                    rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-                function returnTrue() {
-                    return true;
-                }
-
-                function returnFalse() {
-                    return false;
-                }
-
-// Support: IE <=9 - 11+
-// focus() and blur() are asynchronous, except when they are no-op.
-// So expect focus to be synchronous when the element is already active,
-// and blur to be synchronous when the element is not already active.
-// (focus and blur are always synchronous in other supported browsers,
-// this just defines when we can count on it).
-                function expectSync( elem, type ) {
-                    return ( elem === safeActiveElement() ) === ( type === "focus" );
-                }
-
-// Support: IE <=9 only
-// Accessing document.activeElement can throw unexpectedly
-// https://bugs.jquery.com/ticket/13393
-                function safeActiveElement() {
-                    try {
-                        return document.activeElement;
-                    } catch ( err ) { }
-                }
-
-                function on( elem, types, selector, data, fn, one ) {
-                    var origFn, type;
-
-                    // Types can be a map of types/handlers
-                    if ( typeof types === "object" ) {
-
-                        // ( types-Object, selector, data )
-                        if ( typeof selector !== "string" ) {
-
-                            // ( types-Object, data )
-                            data = data || selector;
-                            selector = undefined;
-                        }
-                        for ( type in types ) {
-                            on( elem, type, selector, data, types[ type ], one );
-                        }
-                        return elem;
-                    }
-
-                    if ( data == null && fn == null ) {
-
-                        // ( types, fn )
-                        fn = selector;
-                        data = selector = undefined;
-                    } else if ( fn == null ) {
-                        if ( typeof selector === "string" ) {
-
-                            // ( types, selector, fn )
-                            fn = data;
-                            data = undefined;
-                        } else {
-
-                            // ( types, data, fn )
-                            fn = data;
-                            data = selector;
-                            selector = undefined;
-                        }
-                    }
-                    if ( fn === false ) {
-                        fn = returnFalse;
-                    } else if ( !fn ) {
-                        return elem;
-                    }
-
-                    if ( one === 1 ) {
-                        origFn = fn;
-                        fn = function( event ) {
-
-                            // Can use an empty set, since event contains the info
-                            jQuery().off( event );
-                            return origFn.apply( this, arguments );
-                        };
-
-                        // Use same guid so caller can remove using origFn
-                        fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
-                    }
-                    return elem.each( function() {
-                        jQuery.event.add( this, types, fn, data, selector );
-                    } );
-                }
-
-                /*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-                jQuery.event = {
-
-                    global: {},
-
-                    add: function( elem, types, handler, data, selector ) {
-
-                        var handleObjIn, eventHandle, tmp,
-                            events, t, handleObj,
-                            special, handlers, type, namespaces, origType,
-                            elemData = dataPriv.get( elem );
-
-                        // Only attach events to objects that accept data
-                        if ( !acceptData( elem ) ) {
-                            return;
-                        }
-
-                        // Caller can pass in an object of custom data in lieu of the handler
-                        if ( handler.handler ) {
-                            handleObjIn = handler;
-                            handler = handleObjIn.handler;
-                            selector = handleObjIn.selector;
-                        }
-
-                        // Ensure that invalid selectors throw exceptions at attach time
-                        // Evaluate against documentElement in case elem is a non-element node (e.g., document)
-                        if ( selector ) {
-                            jQuery.find.matchesSelector( documentElement, selector );
-                        }
-
-                        // Make sure that the handler has a unique ID, used to find/remove it later
-                        if ( !handler.guid ) {
-                            handler.guid = jQuery.guid++;
-                        }
-
-                        // Init the element's event structure and main handler, if this is the first
-                        if ( !( events = elemData.events ) ) {
-                            events = elemData.events = Object.create( null );
-                        }
-                        if ( !( eventHandle = elemData.handle ) ) {
-                            eventHandle = elemData.handle = function( e ) {
-
-                                // Discard the second event of a jQuery.event.trigger() and
-                                // when an event is called after a page has unloaded
-                                return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
-                                    jQuery.event.dispatch.apply( elem, arguments ) : undefined;
-                            };
-                        }
-
-                        // Handle multiple events separated by a space
-                        types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
-                        t = types.length;
-                        while ( t-- ) {
-                            tmp = rtypenamespace.exec( types[ t ] ) || [];
-                            type = origType = tmp[ 1 ];
-                            namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
-                            // There *must* be a type, no attaching namespace-only handlers
-                            if ( !type ) {
-                                continue;
-                            }
-
-                            // If event changes its type, use the special event handlers for the changed type
-                            special = jQuery.event.special[ type ] || {};
-
-                            // If selector defined, determine special event api type, otherwise given type
-                            type = ( selector ? special.delegateType : special.bindType ) || type;
-
-                            // Update special based on newly reset type
-                            special = jQuery.event.special[ type ] || {};
-
-                            // handleObj is passed to all event handlers
-                            handleObj = jQuery.extend( {
-                                type: type,
-                                origType: origType,
-                                data: data,
-                                handler: handler,
-                                guid: handler.guid,
-                                selector: selector,
-                                needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
-                                namespace: namespaces.join( "." )
-                            }, handleObjIn );
-
-                            // Init the event handler queue if we're the first
-                            if ( !( handlers = events[ type ] ) ) {
-                                handlers = events[ type ] = [];
-                                handlers.delegateCount = 0;
-
-                                // Only use addEventListener if the special events handler returns false
-                                if ( !special.setup ||
-                                    special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
-                                    if ( elem.addEventListener ) {
-                                        elem.addEventListener( type, eventHandle );
-                                    }
-                                }
-                            }
-
-                            if ( special.add ) {
-                                special.add.call( elem, handleObj );
-
-                                if ( !handleObj.handler.guid ) {
-                                    handleObj.handler.guid = handler.guid;
-                                }
-                            }
-
-                            // Add to the element's handler list, delegates in front
-                            if ( selector ) {
-                                handlers.splice( handlers.delegateCount++, 0, handleObj );
-                            } else {
-                                handlers.push( handleObj );
-                            }
-
-                            // Keep track of which events have ever been used, for event optimization
-                            jQuery.event.global[ type ] = true;
-                        }
-
-                    },
-
-                    // Detach an event or set of events from an element
-                    remove: function( elem, types, handler, selector, mappedTypes ) {
-
-                        var j, origCount, tmp,
-                            events, t, handleObj,
-                            special, handlers, type, namespaces, origType,
-                            elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
-                        if ( !elemData || !( events = elemData.events ) ) {
-                            return;
-                        }
-
-                        // Once for each type.namespace in types; type may be omitted
-                        types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
-                        t = types.length;
-                        while ( t-- ) {
-                            tmp = rtypenamespace.exec( types[ t ] ) || [];
-                            type = origType = tmp[ 1 ];
-                            namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
-                            // Unbind all events (on this namespace, if provided) for the element
-                            if ( !type ) {
-                                for ( type in events ) {
-                                    jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
-                                }
-                                continue;
-                            }
-
-                            special = jQuery.event.special[ type ] || {};
-                            type = ( selector ? special.delegateType : special.bindType ) || type;
-                            handlers = events[ type ] || [];
-                            tmp = tmp[ 2 ] &&
-                                new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
-                            // Remove matching events
-                            origCount = j = handlers.length;
-                            while ( j-- ) {
-                                handleObj = handlers[ j ];
-
-                                if ( ( mappedTypes || origType === handleObj.origType ) &&
-                                    ( !handler || handler.guid === handleObj.guid ) &&
-                                    ( !tmp || tmp.test( handleObj.namespace ) ) &&
-                                    ( !selector || selector === handleObj.selector ||
-                                        selector === "**" && handleObj.selector ) ) {
-                                    handlers.splice( j, 1 );
-
-                                    if ( handleObj.selector ) {
-                                        handlers.delegateCount--;
-                                    }
-                                    if ( special.remove ) {
-                                        special.remove.call( elem, handleObj );
-                                    }
-                                }
-                            }
-
-                            // Remove generic event handler if we removed something and no more handlers exist
-                            // (avoids potential for endless recursion during removal of special event handlers)
-                            if ( origCount && !handlers.length ) {
-                                if ( !special.teardown ||
-                                    special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
-                                    jQuery.removeEvent( elem, type, elemData.handle );
-                                }
-
-                                delete events[ type ];
-                            }
-                        }
-
-                        // Remove data and the expando if it's no longer used
-                        if ( jQuery.isEmptyObject( events ) ) {
-                            dataPriv.remove( elem, "handle events" );
-                        }
-                    },
-
-                    dispatch: function( nativeEvent ) {
-
-                        var i, j, ret, matched, handleObj, handlerQueue,
-                            args = new Array( arguments.length ),
-
-                            // Make a writable jQuery.Event from the native event object
-                            event = jQuery.event.fix( nativeEvent ),
-
-                            handlers = (
-                                dataPriv.get( this, "events" ) || Object.create( null )
-                            )[ event.type ] || [],
-                            special = jQuery.event.special[ event.type ] || {};
-
-                        // Use the fix-ed jQuery.Event rather than the (read-only) native event
-                        args[ 0 ] = event;
-
-                        for ( i = 1; i < arguments.length; i++ ) {
-                            args[ i ] = arguments[ i ];
-                        }
-
-                        event.delegateTarget = this;
-
-                        // Call the preDispatch hook for the mapped type, and let it bail if desired
-                        if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
-                            return;
-                        }
-
-                        // Determine handlers
-                        handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
-                        // Run delegates first; they may want to stop propagation beneath us
-                        i = 0;
-                        while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
-                            event.currentTarget = matched.elem;
-
-                            j = 0;
-                            while ( ( handleObj = matched.handlers[ j++ ] ) &&
-                            !event.isImmediatePropagationStopped() ) {
-
-                                // If the event is namespaced, then each handler is only invoked if it is
-                                // specially universal or its namespaces are a superset of the event's.
-                                if ( !event.rnamespace || handleObj.namespace === false ||
-                                    event.rnamespace.test( handleObj.namespace ) ) {
-
-                                    event.handleObj = handleObj;
-                                    event.data = handleObj.data;
-
-                                    ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
-                                        handleObj.handler ).apply( matched.elem, args );
-
-                                    if ( ret !== undefined ) {
-                                        if ( ( event.result = ret ) === false ) {
-                                            event.preventDefault();
-                                            event.stopPropagation();
-                                        }
-                                    }
-                                }
-                            }
-                        }
-
-                        // Call the postDispatch hook for the mapped type
-                        if ( special.postDispatch ) {
-                            special.postDispatch.call( this, event );
-                        }
-
-                        return event.result;
-                    },
-
-                    handlers: function( event, handlers ) {
-                        var i, handleObj, sel, matchedHandlers, matchedSelectors,
-                            handlerQueue = [],
-                            delegateCount = handlers.delegateCount,
-                            cur = event.target;
-
-                        // Find delegate handlers
-                        if ( delegateCount &&
-
-                            // Support: IE <=9
-                            // Black-hole SVG <use> instance trees (trac-13180)
-                            cur.nodeType &&
-
-                            // Support: Firefox <=42
-                            // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
-                            // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
-                            // Support: IE 11 only
-                            // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
-                            !( event.type === "click" && event.button >= 1 ) ) {
-
-                            for ( ; cur !== this; cur = cur.parentNode || this ) {
-
-                                // Don't check non-elements (#13208)
-                                // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
-                                if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
-                                    matchedHandlers = [];
-                                    matchedSelectors = {};
-                                    for ( i = 0; i < delegateCount; i++ ) {
-                                        handleObj = handlers[ i ];
-
-                                        // Don't conflict with Object.prototype properties (#13203)
-                                        sel = handleObj.selector + " ";
-
-                                        if ( matchedSelectors[ sel ] === undefined ) {
-                                            matchedSelectors[ sel ] = handleObj.needsContext ?
-                                                jQuery( sel, this ).index( cur ) > -1 :
-                                                jQuery.find( sel, this, null, [ cur ] ).length;
-                                        }
-                                        if ( matchedSelectors[ sel ] ) {
-                                            matchedHandlers.push( handleObj );
-                                        }
-                                    }
-                                    if ( matchedHandlers.length ) {
-                                        handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
-                                    }
-                                }
-                            }
-                        }
-
-                        // Add the remaining (directly-bound) handlers
-                        cur = this;
-                        if ( delegateCount < handlers.length ) {
-                            handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
-                        }
-
-                        return handlerQueue;
-                    },
-
-                    addProp: function( name, hook ) {
-                        Object.defineProperty( jQuery.Event.prototype, name, {
-                            enumerable: true,
-                            configurable: true,
-
-                            get: isFunction( hook ) ?
-                                function() {
-                                    if ( this.originalEvent ) {
-                                        return hook( this.originalEvent );
-                                    }
-                                } :
-                                function() {
-                                    if ( this.originalEvent ) {
-                                        return this.originalEvent[ name ];
-                                    }
-                                },
-
-                            set: function( value ) {
-                                Object.defineProperty( this, name, {
-                                    enumerable: true,
-                                    configurable: true,
-                                    writable: true,
-                                    value: value
-                                } );
-                            }
-                        } );
-                    },
-
-                    fix: function( originalEvent ) {
-                        return originalEvent[ jQuery.expando ] ?
-                            originalEvent :
-                            new jQuery.Event( originalEvent );
-                    },
-
-                    special: {
-                        load: {
-
-                            // Prevent triggered image.load events from bubbling to window.load
-                            noBubble: true
-                        },
-                        click: {
-
-                            // Utilize native event to ensure correct state for checkable inputs
-                            setup: function( data ) {
-
-                                // For mutual compressibility with _default, replace `this` access with a local var.
-                                // `|| data` is dead code meant only to preserve the variable through minification.
-                                var el = this || data;
-
-                                // Claim the first handler
-                                if ( rcheckableType.test( el.type ) &&
-                                    el.click && nodeName( el, "input" ) ) {
-
-                                    // dataPriv.set( el, "click", ... )
-                                    leverageNative( el, "click", returnTrue );
-                                }
-
-                                // Return false to allow normal processing in the caller
-                                return false;
-                            },
-                            trigger: function( data ) {
-
-                                // For mutual compressibility with _default, replace `this` access with a local var.
-                                // `|| data` is dead code meant only to preserve the variable through minification.
-                                var el = this || data;
-
-                                // Force setup before triggering a click
-                                if ( rcheckableType.test( el.type ) &&
-                                    el.click && nodeName( el, "input" ) ) {
-
-                                    leverageNative( el, "click" );
-                                }
-
-                                // Return non-false to allow normal event-path propagation
-                                return true;
-                            },
-
-                            // For cross-browser consistency, suppress native .click() on links
-                            // Also prevent it if we're currently inside a leveraged native-event stack
-                            _default: function( event ) {
-                                var target = event.target;
-                                return rcheckableType.test( target.type ) &&
-                                    target.click && nodeName( target, "input" ) &&
-                                    dataPriv.get( target, "click" ) ||
-                                    nodeName( target, "a" );
-                            }
-                        },
-
-                        beforeunload: {
-                            postDispatch: function( event ) {
-
-                                // Support: Firefox 20+
-                                // Firefox doesn't alert if the returnValue field is not set.
-                                if ( event.result !== undefined && event.originalEvent ) {
-                                    event.originalEvent.returnValue = event.result;
-                                }
-                            }
-                        }
-                    }
-                };
-
-// Ensure the presence of an event listener that handles manually-triggered
-// synthetic events by interrupting progress until reinvoked in response to
-// *native* events that it fires directly, ensuring that state changes have
-// already occurred before other listeners are invoked.
-                function leverageNative( el, type, expectSync ) {
-
-                    // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
-                    if ( !expectSync ) {
-                        if ( dataPriv.get( el, type ) === undefined ) {
-                            jQuery.event.add( el, type, returnTrue );
-                        }
-                        return;
-                    }
-
-                    // Register the controller as a special universal handler for all event namespaces
-                    dataPriv.set( el, type, false );
-                    jQuery.event.add( el, type, {
-                        namespace: false,
-                        handler: function( event ) {
-                            var notAsync, result,
-                                saved = dataPriv.get( this, type );
-
-                            if ( ( event.isTrigger & 1 ) && this[ type ] ) {
-
-                                // Interrupt processing of the outer synthetic .trigger()ed event
-                                // Saved data should be false in such cases, but might be a leftover capture object
-                                // from an async native handler (gh-4350)
-                                if ( !saved.length ) {
-
-                                    // Store arguments for use when handling the inner native event
-                                    // There will always be at least one argument (an event object), so this array
-                                    // will not be confused with a leftover capture object.
-                                    saved = slice.call( arguments );
-                                    dataPriv.set( this, type, saved );
-
-                                    // Trigger the native event and capture its result
-                                    // Support: IE <=9 - 11+
-                                    // focus() and blur() are asynchronous
-                                    notAsync = expectSync( this, type );
-                                    this[ type ]();
-                                    result = dataPriv.get( this, type );
-                                    if ( saved !== result || notAsync ) {
-                                        dataPriv.set( this, type, false );
-                                    } else {
-                                        result = {};
-                                    }
-                                    if ( saved !== result ) {
-
-                                        // Cancel the outer synthetic event
-                                        event.stopImmediatePropagation();
-                                        event.preventDefault();
-                                        return result.value;
-                                    }
-
-                                    // If this is an inner synthetic event for an event with a bubbling surrogate
-                                    // (focus or blur), assume that the surrogate already propagated from triggering the
-                                    // native event and prevent that from happening again here.
-                                    // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
-                                    // bubbling surrogate propagates *after* the non-bubbling base), but that seems
-                                    // less bad than duplication.
-                                } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
-                                    event.stopPropagation();
-                                }
-
-                                // If this is a native event triggered above, everything is now in order
-                                // Fire an inner synthetic event with the original arguments
-                            } else if ( saved.length ) {
-
-                                // ...and capture the result
-                                dataPriv.set( this, type, {
-                                    value: jQuery.event.trigger(
-
-                                        // Support: IE <=9 - 11+
-                                        // Extend with the prototype to reset the above stopImmediatePropagation()
-                                        jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
-                                        saved.slice( 1 ),
-                                        this
-                                    )
-                                } );
-
-                                // Abort handling of the native event
-                                event.stopImmediatePropagation();
-                            }
-                        }
-                    } );
-                }
-
-                jQuery.removeEvent = function( elem, type, handle ) {
-
-                    // This "if" is needed for plain objects
-                    if ( elem.removeEventListener ) {
-                        elem.removeEventListener( type, handle );
-                    }
-                };
-
-                jQuery.Event = function( src, props ) {
-
-                    // Allow instantiation without the 'new' keyword
-                    if ( !( this instanceof jQuery.Event ) ) {
-                        return new jQuery.Event( src, props );
-                    }
-
-                    // Event object
-                    if ( src && src.type ) {
-                        this.originalEvent = src;
-                        this.type = src.type;
-
-                        // Events bubbling up the document may have been marked as prevented
-                        // by a handler lower down the tree; reflect the correct value.
-                        this.isDefaultPrevented = src.defaultPrevented ||
-                        src.defaultPrevented === undefined &&
-
-                        // Support: Android <=2.3 only
-                        src.returnValue === false ?
-                            returnTrue :
-                            returnFalse;
-
-                        // Create target properties
-                        // Support: Safari <=6 - 7 only
-                        // Target should not be a text node (#504, #13143)
-                        this.target = ( src.target && src.target.nodeType === 3 ) ?
-                            src.target.parentNode :
-                            src.target;
-
-                        this.currentTarget = src.currentTarget;
-                        this.relatedTarget = src.relatedTarget;
-
-                        // Event type
-                    } else {
-                        this.type = src;
-                    }
-
-                    // Put explicitly provided properties onto the event object
-                    if ( props ) {
-                        jQuery.extend( this, props );
-                    }
-
-                    // Create a timestamp if incoming event doesn't have one
-                    this.timeStamp = src && src.timeStamp || Date.now();
-
-                    // Mark it as fixed
-                    this[ jQuery.expando ] = true;
-                };
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-                jQuery.Event.prototype = {
-                    constructor: jQuery.Event,
-                    isDefaultPrevented: returnFalse,
-                    isPropagationStopped: returnFalse,
-                    isImmediatePropagationStopped: returnFalse,
-                    isSimulated: false,
-
-                    preventDefault: function() {
-                        var e = this.originalEvent;
-
-                        this.isDefaultPrevented = returnTrue;
-
-                        if ( e && !this.isSimulated ) {
-                            e.preventDefault();
-                        }
-                    },
-                    stopPropagation: function() {
-                        var e = this.originalEvent;
-
-                        this.isPropagationStopped = returnTrue;
-
-                        if ( e && !this.isSimulated ) {
-                            e.stopPropagation();
-                        }
-                    },
-                    stopImmediatePropagation: function() {
-                        var e = this.originalEvent;
-
-                        this.isImmediatePropagationStopped = returnTrue;
-
-                        if ( e && !this.isSimulated ) {
-                            e.stopImmediatePropagation();
-                        }
-
-                        this.stopPropagation();
-                    }
-                };
-
-// Includes all common event props including KeyEvent and MouseEvent specific props
-                jQuery.each( {
-                    altKey: true,
-                    bubbles: true,
-                    cancelable: true,
-                    changedTouches: true,
-                    ctrlKey: true,
-                    detail: true,
-                    eventPhase: true,
-                    metaKey: true,
-                    pageX: true,
-                    pageY: true,
-                    shiftKey: true,
-                    view: true,
-                    "char": true,
-                    code: true,
-                    charCode: true,
-                    key: true,
-                    keyCode: true,
-                    button: true,
-                    buttons: true,
-                    clientX: true,
-                    clientY: true,
-                    offsetX: true,
-                    offsetY: true,
-                    pointerId: true,
-                    pointerType: true,
-                    screenX: true,
-                    screenY: true,
-                    targetTouches: true,
-                    toElement: true,
-                    touches: true,
-
-                    which: function( event ) {
-                        var button = event.button;
-
-                        // Add which for key events
-                        if ( event.which == null && rkeyEvent.test( event.type ) ) {
-                            return event.charCode != null ? event.charCode : event.keyCode;
-                        }
-
-                        // Add which for click: 1 === left; 2 === middle; 3 === right
-                        if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
-                            if ( button & 1 ) {
-                                return 1;
-                            }
-
-                            if ( button & 2 ) {
-                                return 3;
-                            }
-
-                            if ( button & 4 ) {
-                                return 2;
-                            }
-
-                            return 0;
-                        }
-
-                        return event.which;
-                    }
-                }, jQuery.event.addProp );
-
-                jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
-                    jQuery.event.special[ type ] = {
-
-                        // Utilize native event if possible so blur/focus sequence is correct
-                        setup: function() {
-
-                            // Claim the first handler
-                            // dataPriv.set( this, "focus", ... )
-                            // dataPriv.set( this, "blur", ... )
-                            leverageNative( this, type, expectSync );
-
-                            // Return false to allow normal processing in the caller
-                            return false;
-                        },
-                        trigger: function() {
-
-                            // Force setup before trigger
-                            leverageNative( this, type );
-
-                            // Return non-false to allow normal event-path propagation
-                            return true;
-                        },
-
-                        delegateType: delegateType
-                    };
-                } );
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-                jQuery.each( {
-                    mouseenter: "mouseover",
-                    mouseleave: "mouseout",
-                    pointerenter: "pointerover",
-                    pointerleave: "pointerout"
-                }, function( orig, fix ) {
-                    jQuery.event.special[ orig ] = {
-                        delegateType: fix,
-                        bindType: fix,
-
-                        handle: function( event ) {
-                            var ret,
-                                target = this,
-                                related = event.relatedTarget,
-                                handleObj = event.handleObj;
-
-                            // For mouseenter/leave call the handler if related is outside the target.
-                            // NB: No relatedTarget if the mouse left/entered the browser window
-                            if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
-                                event.type = handleObj.origType;
-                                ret = handleObj.handler.apply( this, arguments );
-                                event.type = fix;
-                            }
-                            return ret;
-                        }
-                    };
-                } );
-
-                jQuery.fn.extend( {
-
-                    on: function( types, selector, data, fn ) {
-                        return on( this, types, selector, data, fn );
-                    },
-                    one: function( types, selector, data, fn ) {
-                        return on( this, types, selector, data, fn, 1 );
-                    },
-                    off: function( types, selector, fn ) {
-                        var handleObj, type;
-                        if ( types && types.preventDefault && types.handleObj ) {
-
-                            // ( event )  dispatched jQuery.Event
-                            handleObj = types.handleObj;
-                            jQuery( types.delegateTarget ).off(
-                                handleObj.namespace ?
-                                    handleObj.origType + "." + handleObj.namespace :
-                                    handleObj.origType,
-                                handleObj.selector,
-                                handleObj.handler
-                            );
-                            return this;
-                        }
-                        if ( typeof types === "object" ) {
-
-                            // ( types-object [, selector] )
-                            for ( type in types ) {
-                                this.off( type, selector, types[ type ] );
-                            }
-                            return this;
-                        }
-                        if ( selector === false || typeof selector === "function" ) {
-
-                            // ( types [, fn] )
-                            fn = selector;
-                            selector = undefined;
-                        }
-                        if ( fn === false ) {
-                            fn = returnFalse;
-                        }
-                        return this.each( function() {
-                            jQuery.event.remove( this, types, fn, selector );
-                        } );
-                    }
-                } );
-
-
-                var
-
-                    // Support: IE <=10 - 11, Edge 12 - 13 only
-                    // In IE/Edge using regex groups here causes severe slowdowns.
-                    // See https://connect.microsoft.com/IE/feedback/details/1736512/
-                    rnoInnerhtml = /<script|<style|<link/i,
-
-                    // checked="checked" or checked
-                    rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-                    rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-// Prefer a tbody over its parent table for containing new rows
-                function manipulationTarget( elem, content ) {
-                    if ( nodeName( elem, "table" ) &&
-                        nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
-
-                        return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
-                    }
-
-                    return elem;
-                }
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-                function disableScript( elem ) {
-                    elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
-                    return elem;
-                }
-                function restoreScript( elem ) {
-                    if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
-                        elem.type = elem.type.slice( 5 );
-                    } else {
-                        elem.removeAttribute( "type" );
-                    }
-
-                    return elem;
-                }
-
-                function cloneCopyEvent( src, dest ) {
-                    var i, l, type, pdataOld, udataOld, udataCur, events;
-
-                    if ( dest.nodeType !== 1 ) {
-                        return;
-                    }
-
-                    // 1. Copy private data: events, handlers, etc.
-                    if ( dataPriv.hasData( src ) ) {
-                        pdataOld = dataPriv.get( src );
-                        events = pdataOld.events;
-
-                        if ( events ) {
-                            dataPriv.remove( dest, "handle events" );
-
-                            for ( type in events ) {
-                                for ( i = 0, l = events[ type ].length; i < l; i++ ) {
-                                    jQuery.event.add( dest, type, events[ type ][ i ] );
-                                }
-                            }
-                        }
-                    }
-
-                    // 2. Copy user data
-                    if ( dataUser.hasData( src ) ) {
-                        udataOld = dataUser.access( src );
-                        udataCur = jQuery.extend( {}, udataOld );
-
-                        dataUser.set( dest, udataCur );
-                    }
-                }
-
-// Fix IE bugs, see support tests
-                function fixInput( src, dest ) {
-                    var nodeName = dest.nodeName.toLowerCase();
-
-                    // Fails to persist the checked state of a cloned checkbox or radio button.
-                    if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
-                        dest.checked = src.checked;
-
-                        // Fails to return the selected option to the default selected state when cloning options
-                    } else if ( nodeName === "input" || nodeName === "textarea" ) {
-                        dest.defaultValue = src.defaultValue;
-                    }
-                }
-
-                function domManip( collection, args, callback, ignored ) {
-
-                    // Flatten any nested arrays
-                    args = flat( args );
-
-                    var fragment, first, scripts, hasScripts, node, doc,
-                        i = 0,
-                        l = collection.length,
-                        iNoClone = l - 1,
-                        value = args[ 0 ],
-                        valueIsFunction = isFunction( value );
-
-                    // We can't cloneNode fragments that contain checked, in WebKit
-                    if ( valueIsFunction ||
-                        ( l > 1 && typeof value === "string" &&
-                            !support.checkClone && rchecked.test( value ) ) ) {
-                        return collection.each( function( index ) {
-                            var self = collection.eq( index );
-                            if ( valueIsFunction ) {
-                                args[ 0 ] = value.call( this, index, self.html() );
-                            }
-                            domManip( self, args, callback, ignored );
-                        } );
-                    }
-
-                    if ( l ) {
-                        fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
-                        first = fragment.firstChild;
-
-                        if ( fragment.childNodes.length === 1 ) {
-                            fragment = first;
-                        }
-
-                        // Require either new content or an interest in ignored elements to invoke the callback
-                        if ( first || ignored ) {
-                            scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
-                            hasScripts = scripts.length;
-
-                            // Use the original fragment for the last item
-                            // instead of the first because it can end up
-                            // being emptied incorrectly in certain situations (#8070).
-                            for ( ; i < l; i++ ) {
-                                node = fragment;
-
-                                if ( i !== iNoClone ) {
-                                    node = jQuery.clone( node, true, true );
-
-                                    // Keep references to cloned scripts for later restoration
-                                    if ( hasScripts ) {
-
-                                        // Support: Android <=4.0 only, PhantomJS 1 only
-                                        // push.apply(_, arraylike) throws on ancient WebKit
-                                        jQuery.merge( scripts, getAll( node, "script" ) );
-                                    }
-                                }
-
-                                callback.call( collection[ i ], node, i );
-                            }
-
-                            if ( hasScripts ) {
-                                doc = scripts[ scripts.length - 1 ].ownerDocument;
-
-                                // Reenable scripts
-                                jQuery.map( scripts, restoreScript );
-
-                                // Evaluate executable scripts on first document insertion
-                                for ( i = 0; i < hasScripts; i++ ) {
-                                    node = scripts[ i ];
-                                    if ( rscriptType.test( node.type || "" ) &&
-                                        !dataPriv.access( node, "globalEval" ) &&
-                                        jQuery.contains( doc, node ) ) {
-
-                                        if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
-
-                                            // Optional AJAX dependency, but won't run scripts if not present
-                                            if ( jQuery._evalUrl && !node.noModule ) {
-                                                jQuery._evalUrl( node.src, {
-                                                    nonce: node.nonce || node.getAttribute( "nonce" )
-                                                }, doc );
-                                            }
-                                        } else {
-                                            DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-
-                    return collection;
-                }
-
-                function remove( elem, selector, keepData ) {
-                    var node,
-                        nodes = selector ? jQuery.filter( selector, elem ) : elem,
-                        i = 0;
-
-                    for ( ; ( node = nodes[ i ] ) != null; i++ ) {
-                        if ( !keepData && node.nodeType === 1 ) {
-                            jQuery.cleanData( getAll( node ) );
-                        }
-
-                        if ( node.parentNode ) {
-                            if ( keepData && isAttached( node ) ) {
-                                setGlobalEval( getAll( node, "script" ) );
-                            }
-                            node.parentNode.removeChild( node );
-                        }
-                    }
-
-                    return elem;
-                }
-
-                jQuery.extend( {
-                    htmlPrefilter: function( html ) {
-                        return html;
-                    },
-
-                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-                        var i, l, srcElements, destElements,
-                            clone = elem.cloneNode( true ),
-                            inPage = isAttached( elem );
-
-                        // Fix IE cloning issues
-                        if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
-                            !jQuery.isXMLDoc( elem ) ) {
-
-                            // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
-                            destElements = getAll( clone );
-                            srcElements = getAll( elem );
-
-                            for ( i = 0, l = srcElements.length; i < l; i++ ) {
-                                fixInput( srcElements[ i ], destElements[ i ] );
-                            }
-                        }
-
-                        // Copy the events from the original to the clone
-                        if ( dataAndEvents ) {
-                            if ( deepDataAndEvents ) {
-                                srcElements = srcElements || getAll( elem );
-                                destElements = destElements || getAll( clone );
-
-                                for ( i = 0, l = srcElements.length; i < l; i++ ) {
-                                    cloneCopyEvent( srcElements[ i ], destElements[ i ] );
-                                }
-                            } else {
-                                cloneCopyEvent( elem, clone );
-                            }
-                        }
-
-                        // Preserve script evaluation history
-                        destElements = getAll( clone, "script" );
-                        if ( destElements.length > 0 ) {
-                            setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
-                        }
-
-                        // Return the cloned set
-                        return clone;
-                    },
-
-                    cleanData: function( elems ) {
-                        var data, elem, type,
-                            special = jQuery.event.special,
-                            i = 0;
-
-                        for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
-                            if ( acceptData( elem ) ) {
-                                if ( ( data = elem[ dataPriv.expando ] ) ) {
-                                    if ( data.events ) {
-                                        for ( type in data.events ) {
-                                            if ( special[ type ] ) {
-                                                jQuery.event.remove( elem, type );
-
-                                                // This is a shortcut to avoid jQuery.event.remove's overhead
-                                            } else {
-                                                jQuery.removeEvent( elem, type, data.handle );
-                                            }
-                                        }
-                                    }
-
-                                    // Support: Chrome <=35 - 45+
-                                    // Assign undefined instead of using delete, see Data#remove
-                                    elem[ dataPriv.expando ] = undefined;
-                                }
-                                if ( elem[ dataUser.expando ] ) {
-
-                                    // Support: Chrome <=35 - 45+
-                                    // Assign undefined instead of using delete, see Data#remove
-                                    elem[ dataUser.expando ] = undefined;
-                                }
-                            }
-                        }
-                    }
-                } );
-
-                jQuery.fn.extend( {
-                    detach: function( selector ) {
-                        return remove( this, selector, true );
-                    },
-
-                    remove: function( selector ) {
-                        return remove( this, selector );
-                    },
-
-                    text: function( value ) {
-                        return access( this, function( value ) {
-                            return value === undefined ?
-                                jQuery.text( this ) :
-                                this.empty().each( function() {
-                                    if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-                                        this.textContent = value;
-                                    }
-                                } );
-                        }, null, value, arguments.length );
-                    },
-
-                    append: function() {
-                        return domManip( this, arguments, function( elem ) {
-                            if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-                                var target = manipulationTarget( this, elem );
-                                target.appendChild( elem );
-                            }
-                        } );
-                    },
-
-                    prepend: function() {
-                        return domManip( this, arguments, function( elem ) {
-                            if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
-                                var target = manipulationTarget( this, elem );
-                                target.insertBefore( elem, target.firstChild );
-                            }
-                        } );
-                    },
-
-                    before: function() {
-                        return domManip( this, arguments, function( elem ) {
-                            if ( this.parentNode ) {
-                                this.parentNode.insertBefore( elem, this );
-                            }
-                        } );
-                    },
-
-                    after: function() {
-                        return domManip( this, arguments, function( elem ) {
-                            if ( this.parentNode ) {
-                                this.parentNode.insertBefore( elem, this.nextSibling );
-                            }
-                        } );
-                    },
-
-                    empty: function() {
-                        var elem,
-                            i = 0;
-
-                        for ( ; ( elem = this[ i ] ) != null; i++ ) {
-                            if ( elem.nodeType === 1 ) {
-
-                                // Prevent memory leaks
-                                jQuery.cleanData( getAll( elem, false ) );
-
-                                // Remove any remaining nodes
-                                elem.textContent = "";
-                            }
-                        }
-
-                        return this;
-                    },
-
-                    clone: function( dataAndEvents, deepDataAndEvents ) {
-                        dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-                        deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-                        return this.map( function() {
-                            return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-                        } );
-                    },
-
-                    html: function( value ) {
-                        return access( this, function( value ) {
-                            var elem = this[ 0 ] || {},
-                                i = 0,
-                                l = this.length;
-
-                            if ( value === undefined && elem.nodeType === 1 ) {
-                                return elem.innerHTML;
-                            }
-
-                            // See if we can take a shortcut and just use innerHTML
-                            if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
-                                !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
-                                value = jQuery.htmlPrefilter( value );
-
-                                try {
-                                    for ( ; i < l; i++ ) {
-                                        elem = this[ i ] || {};
-
-                                        // Remove element nodes and prevent memory leaks
-                                        if ( elem.nodeType === 1 ) {
-                                            jQuery.cleanData( getAll( elem, false ) );
-                                            elem.innerHTML = value;
-                                        }
-                                    }
-
-                                    elem = 0;
-
-                                    // If using innerHTML throws an exception, use the fallback method
-                                } catch ( e ) {}
-                            }
-
-                            if ( elem ) {
-                                this.empty().append( value );
-                            }
-                        }, null, value, arguments.length );
-                    },
-
-                    replaceWith: function() {
-                        var ignored = [];
-
-                        // Make the changes, replacing each non-ignored context element with the new content
-                        return domManip( this, arguments, function( elem ) {
-                            var parent = this.parentNode;
-
-                            if ( jQuery.inArray( this, ignored ) < 0 ) {
-                                jQuery.cleanData( getAll( this ) );
-                                if ( parent ) {
-                                    parent.replaceChild( elem, this );
-                                }
-                            }
-
-                            // Force callback invocation
-                        }, ignored );
-                    }
-                } );
-
-                jQuery.each( {
-                    appendTo: "append",
-                    prependTo: "prepend",
-                    insertBefore: "before",
-                    insertAfter: "after",
-                    replaceAll: "replaceWith"
-                }, function( name, original ) {
-                    jQuery.fn[ name ] = function( selector ) {
-                        var elems,
-                            ret = [],
-                            insert = jQuery( selector ),
-                            last = insert.length - 1,
-                            i = 0;
-
-                        for ( ; i <= last; i++ ) {
-                            elems = i === last ? this : this.clone( true );
-                            jQuery( insert[ i ] )[ original ]( elems );
-
-                            // Support: Android <=4.0 only, PhantomJS 1 only
-                            // .get() because push.apply(_, arraylike) throws on ancient WebKit
-                            push.apply( ret, elems.get() );
-                        }
-
-                        return this.pushStack( ret );
-                    };
-                } );
-                var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-                var getStyles = function( elem ) {
-
-                    // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
-                    // IE throws on elements created in popups
-                    // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
-                    var view = elem.ownerDocument.defaultView;
-
-                    if ( !view || !view.opener ) {
-                        view = window;
-                    }
-
-                    return view.getComputedStyle( elem );
-                };
-
-                var swap = function( elem, options, callback ) {
-                    var ret, name,
-                        old = {};
-
-                    // Remember the old values, and insert the new ones
-                    for ( name in options ) {
-                        old[ name ] = elem.style[ name ];
-                        elem.style[ name ] = options[ name ];
-                    }
-
-                    ret = callback.call( elem );
-
-                    // Revert the old values
-                    for ( name in options ) {
-                        elem.style[ name ] = old[ name ];
-                    }
-
-                    return ret;
-                };
-
-
-                var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
-
-
-
-                ( function() {
-
-                    // Executing both pixelPosition & boxSizingReliable tests require only one layout
-                    // so they're executed at the same time to save the second computation.
-                    function computeStyleTests() {
-
-                        // This is a singleton, we need to execute it only once
-                        if ( !div ) {
-                            return;
-                        }
-
-                        container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
-                            "margin-top:1px;padding:0;border:0";
-                        div.style.cssText =
-                            "position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
-                            "margin:auto;border:1px;padding:1px;" +
-                            "width:60%;top:1%";
-                        documentElement.appendChild( container ).appendChild( div );
-
-                        var divStyle = window.getComputedStyle( div );
-                        pixelPositionVal = divStyle.top !== "1%";
-
-                        // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
-                        reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
-
-                        // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
-                        // Some styles come back with percentage values, even though they shouldn't
-                        div.style.right = "60%";
-                        pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
-
-                        // Support: IE 9 - 11 only
-                        // Detect misreporting of content dimensions for box-sizing:border-box elements
-                        boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
-
-                        // Support: IE 9 only
-                        // Detect overflow:scroll screwiness (gh-3699)
-                        // Support: Chrome <=64
-                        // Don't get tricked when zoom affects offsetWidth (gh-4029)
-                        div.style.position = "absolute";
-                        scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;
-
-                        documentElement.removeChild( container );
-
-                        // Nullify the div so it wouldn't be stored in the memory and
-                        // it will also be a sign that checks already performed
-                        div = null;
-                    }
-
-                    function roundPixelMeasures( measure ) {
-                        return Math.round( parseFloat( measure ) );
-                    }
-
-                    var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
-                        reliableTrDimensionsVal, reliableMarginLeftVal,
-                        container = document.createElement( "div" ),
-                        div = document.createElement( "div" );
-
-                    // Finish early in limited (non-browser) environments
-                    if ( !div.style ) {
-                        return;
-                    }
-
-                    // Support: IE <=9 - 11 only
-                    // Style of cloned element affects source element cloned (#8908)
-                    div.style.backgroundClip = "content-box";
-                    div.cloneNode( true ).style.backgroundClip = "";
-                    support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
-                    jQuery.extend( support, {
-                        boxSizingReliable: function() {
-                            computeStyleTests();
-                            return boxSizingReliableVal;
-                        },
-                        pixelBoxStyles: function() {
-                            computeStyleTests();
-                            return pixelBoxStylesVal;
-                        },
-                        pixelPosition: function() {
-                            computeStyleTests();
-                            return pixelPositionVal;
-                        },
-                        reliableMarginLeft: function() {
-                            computeStyleTests();
-                            return reliableMarginLeftVal;
-                        },
-                        scrollboxSize: function() {
-                            computeStyleTests();
-                            return scrollboxSizeVal;
-                        },
-
-                        // Support: IE 9 - 11+, Edge 15 - 18+
-                        // IE/Edge misreport `getComputedStyle` of table rows with width/height
-                        // set in CSS while `offset*` properties report correct values.
-                        // Behavior in IE 9 is more subtle than in newer versions & it passes
-                        // some versions of this test; make sure not to make it pass there!
-                        reliableTrDimensions: function() {
-                            var table, tr, trChild, trStyle;
-                            if ( reliableTrDimensionsVal == null ) {
-                                table = document.createElement( "table" );
-                                tr = document.createElement( "tr" );
-                                trChild = document.createElement( "div" );
-
-                                table.style.cssText = "position:absolute;left:-11111px";
-                                tr.style.height = "1px";
-                                trChild.style.height = "9px";
-
-                                documentElement
-                                    .appendChild( table )
-                                    .appendChild( tr )
-                                    .appendChild( trChild );
-
-                                trStyle = window.getComputedStyle( tr );
-                                reliableTrDimensionsVal = parseInt( trStyle.height ) > 3;
-
-                                documentElement.removeChild( table );
-                            }
-                            return reliableTrDimensionsVal;
-                        }
-                    } );
-                } )();
-
-
-                function curCSS( elem, name, computed ) {
-                    var width, minWidth, maxWidth, ret,
-
-                        // Support: Firefox 51+
-                        // Retrieving style before computed somehow
-                        // fixes an issue with getting wrong values
-                        // on detached elements
-                        style = elem.style;
-
-                    computed = computed || getStyles( elem );
-
-                    // getPropertyValue is needed for:
-                    //   .css('filter') (IE 9 only, #12537)
-                    //   .css('--customProperty) (#3144)
-                    if ( computed ) {
-                        ret = computed.getPropertyValue( name ) || computed[ name ];
-
-                        if ( ret === "" && !isAttached( elem ) ) {
-                            ret = jQuery.style( elem, name );
-                        }
-
-                        // A tribute to the "awesome hack by Dean Edwards"
-                        // Android Browser returns percentage for some values,
-                        // but width seems to be reliably pixels.
-                        // This is against the CSSOM draft spec:
-                        // https://drafts.csswg.org/cssom/#resolved-values
-                        if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
-
-                            // Remember the original values
-                            width = style.width;
-                            minWidth = style.minWidth;
-                            maxWidth = style.maxWidth;
-
-                            // Put in the new values to get a computed value out
-                            style.minWidth = style.maxWidth = style.width = ret;
-                            ret = computed.width;
-
-                            // Revert the changed values
-                            style.width = width;
-                            style.minWidth = minWidth;
-                            style.maxWidth = maxWidth;
-                        }
-                    }
-
-                    return ret !== undefined ?
-
-                        // Support: IE <=9 - 11 only
-                        // IE returns zIndex value as an integer.
-                        ret + "" :
-                        ret;
-                }
-
-
-                function addGetHookIf( conditionFn, hookFn ) {
-
-                    // Define the hook, we'll check on the first run if it's really needed.
-                    return {
-                        get: function() {
-                            if ( conditionFn() ) {
-
-                                // Hook not needed (or it's not possible to use it due
-                                // to missing dependency), remove it.
-                                delete this.get;
-                                return;
-                            }
-
-                            // Hook needed; redefine it so that the support test is not executed again.
-                            return ( this.get = hookFn ).apply( this, arguments );
-                        }
-                    };
-                }
-
-
-                var cssPrefixes = [ "Webkit", "Moz", "ms" ],
-                    emptyStyle = document.createElement( "div" ).style,
-                    vendorProps = {};
-
-// Return a vendor-prefixed property or undefined
-                function vendorPropName( name ) {
-
-                    // Check for vendor prefixed names
-                    var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
-                        i = cssPrefixes.length;
-
-                    while ( i-- ) {
-                        name = cssPrefixes[ i ] + capName;
-                        if ( name in emptyStyle ) {
-                            return name;
-                        }
-                    }
-                }
-
-// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
-                function finalPropName( name ) {
-                    var final = jQuery.cssProps[ name ] || vendorProps[ name ];
-
-                    if ( final ) {
-                        return final;
-                    }
-                    if ( name in emptyStyle ) {
-                        return name;
-                    }
-                    return vendorProps[ name ] = vendorPropName( name ) || name;
-                }
-
-
-                var
-
-                    // Swappable if display is none or starts with table
-                    // except "table", "table-cell", or "table-caption"
-                    // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
-                    rdisplayswap = /^(none|table(?!-c[ea]).+)/,
-                    rcustomProp = /^--/,
-                    cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-                    cssNormalTransform = {
-                        letterSpacing: "0",
-                        fontWeight: "400"
-                    };
-
-                function setPositiveNumber( _elem, value, subtract ) {
-
-                    // Any relative (+/-) values have already been
-                    // normalized at this point
-                    var matches = rcssNum.exec( value );
-                    return matches ?
-
-                        // Guard against undefined "subtract", e.g., when used as in cssHooks
-                        Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
-                        value;
-                }
-
-                function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
-                    var i = dimension === "width" ? 1 : 0,
-                        extra = 0,
-                        delta = 0;
-
-                    // Adjustment may not be necessary
-                    if ( box === ( isBorderBox ? "border" : "content" ) ) {
-                        return 0;
-                    }
-
-                    for ( ; i < 4; i += 2 ) {
-
-                        // Both box models exclude margin
-                        if ( box === "margin" ) {
-                            delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
-                        }
-
-                        // If we get here with a content-box, we're seeking "padding" or "border" or "margin"
-                        if ( !isBorderBox ) {
-
-                            // Add padding
-                            delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
-                            // For "border" or "margin", add border
-                            if ( box !== "padding" ) {
-                                delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
-
-                                // But still keep track of it otherwise
-                            } else {
-                                extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
-                            }
-
-                            // If we get here with a border-box (content + padding + border), we're seeking "content" or
-                            // "padding" or "margin"
-                        } else {
-
-                            // For "content", subtract padding
-                            if ( box === "content" ) {
-                                delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-                            }
-
-                            // For "content" or "padding", subtract border
-                            if ( box !== "margin" ) {
-                                delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
-                            }
-                        }
-                    }
-
-                    // Account for positive content-box scroll gutter when requested by providing computedVal
-                    if ( !isBorderBox && computedVal >= 0 ) {
-
-                        // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
-                        // Assuming integer scroll gutter, subtract the rest and round down
-                        delta += Math.max( 0, Math.ceil(
-                            elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
-                            computedVal -
-                            delta -
-                            extra -
-                            0.5
-
-                            // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
-                            // Use an explicit zero to avoid NaN (gh-3964)
-                        ) ) || 0;
-                    }
-
-                    return delta;
-                }
-
-                function getWidthOrHeight( elem, dimension, extra ) {
-
-                    // Start with computed style
-                    var styles = getStyles( elem ),
-
-                        // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).
-                        // Fake content-box until we know it's needed to know the true value.
-                        boxSizingNeeded = !support.boxSizingReliable() || extra,
-                        isBorderBox = boxSizingNeeded &&
-                            jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
-                        valueIsBorderBox = isBorderBox,
-
-                        val = curCSS( elem, dimension, styles ),
-                        offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );
-
-                    // Support: Firefox <=54
-                    // Return a confounding non-pixel value or feign ignorance, as appropriate.
-                    if ( rnumnonpx.test( val ) ) {
-                        if ( !extra ) {
-                            return val;
-                        }
-                        val = "auto";
-                    }
-
-
-                    // Support: IE 9 - 11 only
-                    // Use offsetWidth/offsetHeight for when box sizing is unreliable.
-                    // In those cases, the computed value can be trusted to be border-box.
-                    if ( ( !support.boxSizingReliable() && isBorderBox ||
-
-                            // Support: IE 10 - 11+, Edge 15 - 18+
-                            // IE/Edge misreport `getComputedStyle` of table rows with width/height
-                            // set in CSS while `offset*` properties report correct values.
-                            // Interestingly, in some cases IE 9 doesn't suffer from this issue.
-                            !support.reliableTrDimensions() && nodeName( elem, "tr" ) ||
-
-                            // Fall back to offsetWidth/offsetHeight when value is "auto"
-                            // This happens for inline elements with no explicit setting (gh-3571)
-                            val === "auto" ||
-
-                            // Support: Android <=4.1 - 4.3 only
-                            // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
-                            !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
-
-                        // Make sure the element is visible & connected
-                        elem.getClientRects().length ) {
-
-                        isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
-                        // Where available, offsetWidth/offsetHeight approximate border box dimensions.
-                        // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
-                        // retrieved value as a content box dimension.
-                        valueIsBorderBox = offsetProp in elem;
-                        if ( valueIsBorderBox ) {
-                            val = elem[ offsetProp ];
-                        }
-                    }
-
-                    // Normalize "" and auto
-                    val = parseFloat( val ) || 0;
-
-                    // Adjust for the element's box model
-                    return ( val +
-                        boxModelAdjustment(
-                            elem,
-                            dimension,
-                            extra || ( isBorderBox ? "border" : "content" ),
-                            valueIsBorderBox,
-                            styles,
-
-                            // Provide the current computed size to request scroll gutter calculation (gh-3589)
-                            val
-                        )
-                    ) + "px";
-                }
-
-                jQuery.extend( {
-
-                    // Add in style property hooks for overriding the default
-                    // behavior of getting and setting a style property
-                    cssHooks: {
-                        opacity: {
-                            get: function( elem, computed ) {
-                                if ( computed ) {
-
-                                    // We should always get a number back from opacity
-                                    var ret = curCSS( elem, "opacity" );
-                                    return ret === "" ? "1" : ret;
-                                }
-                            }
-                        }
-                    },
-
-                    // Don't automatically add "px" to these possibly-unitless properties
-                    cssNumber: {
-                        "animationIterationCount": true,
-                        "columnCount": true,
-                        "fillOpacity": true,
-                        "flexGrow": true,
-                        "flexShrink": true,
-                        "fontWeight": true,
-                        "gridArea": true,
-                        "gridColumn": true,
-                        "gridColumnEnd": true,
-                        "gridColumnStart": true,
-                        "gridRow": true,
-                        "gridRowEnd": true,
-                        "gridRowStart": true,
-                        "lineHeight": true,
-                        "opacity": true,
-                        "order": true,
-                        "orphans": true,
-                        "widows": true,
-                        "zIndex": true,
-                        "zoom": true
-                    },
-
-                    // Add in properties whose names you wish to fix before
-                    // setting or getting the value
-                    cssProps: {},
-
-                    // Get and set the style property on a DOM Node
-                    style: function( elem, name, value, extra ) {
-
-                        // Don't set styles on text and comment nodes
-                        if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                            return;
-                        }
-
-                        // Make sure that we're working with the right name
-                        var ret, type, hooks,
-                            origName = camelCase( name ),
-                            isCustomProp = rcustomProp.test( name ),
-                            style = elem.style;
-
-                        // Make sure that we're working with the right name. We don't
-                        // want to query the value if it is a CSS custom property
-                        // since they are user-defined.
-                        if ( !isCustomProp ) {
-                            name = finalPropName( origName );
-                        }
-
-                        // Gets hook for the prefixed version, then unprefixed version
-                        hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
-                        // Check if we're setting a value
-                        if ( value !== undefined ) {
-                            type = typeof value;
-
-                            // Convert "+=" or "-=" to relative numbers (#7345)
-                            if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
-                                value = adjustCSS( elem, name, ret );
-
-                                // Fixes bug #9237
-                                type = "number";
-                            }
-
-                            // Make sure that null and NaN values aren't set (#7116)
-                            if ( value == null || value !== value ) {
-                                return;
-                            }
-
-                            // If a number was passed in, add the unit (except for certain CSS properties)
-                            // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
-                            // "px" to a few hardcoded values.
-                            if ( type === "number" && !isCustomProp ) {
-                                value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
-                            }
-
-                            // background-* props affect original clone's values
-                            if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
-                                style[ name ] = "inherit";
-                            }
-
-                            // If a hook was provided, use that value, otherwise just set the specified value
-                            if ( !hooks || !( "set" in hooks ) ||
-                                ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
-                                if ( isCustomProp ) {
-                                    style.setProperty( name, value );
-                                } else {
-                                    style[ name ] = value;
-                                }
-                            }
-
-                        } else {
-
-                            // If a hook was provided get the non-computed value from there
-                            if ( hooks && "get" in hooks &&
-                                ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
-                                return ret;
-                            }
-
-                            // Otherwise just get the value from the style object
-                            return style[ name ];
-                        }
-                    },
-
-                    css: function( elem, name, extra, styles ) {
-                        var val, num, hooks,
-                            origName = camelCase( name ),
-                            isCustomProp = rcustomProp.test( name );
-
-                        // Make sure that we're working with the right name. We don't
-                        // want to modify the value if it is a CSS custom property
-                        // since they are user-defined.
-                        if ( !isCustomProp ) {
-                            name = finalPropName( origName );
-                        }
-
-                        // Try prefixed name followed by the unprefixed name
-                        hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
-                        // If a hook was provided get the computed value from there
-                        if ( hooks && "get" in hooks ) {
-                            val = hooks.get( elem, true, extra );
-                        }
-
-                        // Otherwise, if a way to get the computed value exists, use that
-                        if ( val === undefined ) {
-                            val = curCSS( elem, name, styles );
-                        }
-
-                        // Convert "normal" to computed value
-                        if ( val === "normal" && name in cssNormalTransform ) {
-                            val = cssNormalTransform[ name ];
-                        }
-
-                        // Make numeric if forced or a qualifier was provided and val looks numeric
-                        if ( extra === "" || extra ) {
-                            num = parseFloat( val );
-                            return extra === true || isFinite( num ) ? num || 0 : val;
-                        }
-
-                        return val;
-                    }
-                } );
-
-                jQuery.each( [ "height", "width" ], function( _i, dimension ) {
-                    jQuery.cssHooks[ dimension ] = {
-                        get: function( elem, computed, extra ) {
-                            if ( computed ) {
-
-                                // Certain elements can have dimension info if we invisibly show them
-                                // but it must have a current display style that would benefit
-                                return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
-
-                                // Support: Safari 8+
-                                // Table columns in Safari have non-zero offsetWidth & zero
-                                // getBoundingClientRect().width unless display is changed.
-                                // Support: IE <=11 only
-                                // Running getBoundingClientRect on a disconnected node
-                                // in IE throws an error.
-                                ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
-                                    swap( elem, cssShow, function() {
-                                        return getWidthOrHeight( elem, dimension, extra );
-                                    } ) :
-                                    getWidthOrHeight( elem, dimension, extra );
-                            }
-                        },
-
-                        set: function( elem, value, extra ) {
-                            var matches,
-                                styles = getStyles( elem ),
-
-                                // Only read styles.position if the test has a chance to fail
-                                // to avoid forcing a reflow.
-                                scrollboxSizeBuggy = !support.scrollboxSize() &&
-                                    styles.position === "absolute",
-
-                                // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
-                                boxSizingNeeded = scrollboxSizeBuggy || extra,
-                                isBorderBox = boxSizingNeeded &&
-                                    jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
-                                subtract = extra ?
-                                    boxModelAdjustment(
-                                        elem,
-                                        dimension,
-                                        extra,
-                                        isBorderBox,
-                                        styles
-                                    ) :
-                                    0;
-
-                            // Account for unreliable border-box dimensions by comparing offset* to computed and
-                            // faking a content-box to get border and padding (gh-3699)
-                            if ( isBorderBox && scrollboxSizeBuggy ) {
-                                subtract -= Math.ceil(
-                                    elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
-                                    parseFloat( styles[ dimension ] ) -
-                                    boxModelAdjustment( elem, dimension, "border", false, styles ) -
-                                    0.5
-                                );
-                            }
-
-                            // Convert to pixels if value adjustment is needed
-                            if ( subtract && ( matches = rcssNum.exec( value ) ) &&
-                                ( matches[ 3 ] || "px" ) !== "px" ) {
-
-                                elem.style[ dimension ] = value;
-                                value = jQuery.css( elem, dimension );
-                            }
-
-                            return setPositiveNumber( elem, value, subtract );
-                        }
-                    };
-                } );
-
-                jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
-                    function( elem, computed ) {
-                        if ( computed ) {
-                            return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
-                                elem.getBoundingClientRect().left -
-                                swap( elem, { marginLeft: 0 }, function() {
-                                    return elem.getBoundingClientRect().left;
-                                } )
-                            ) + "px";
-                        }
-                    }
-                );
-
-// These hooks are used by animate to expand properties
-                jQuery.each( {
-                    margin: "",
-                    padding: "",
-                    border: "Width"
-                }, function( prefix, suffix ) {
-                    jQuery.cssHooks[ prefix + suffix ] = {
-                        expand: function( value ) {
-                            var i = 0,
-                                expanded = {},
-
-                                // Assumes a single number if not a string
-                                parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
-                            for ( ; i < 4; i++ ) {
-                                expanded[ prefix + cssExpand[ i ] + suffix ] =
-                                    parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
-                            }
-
-                            return expanded;
-                        }
-                    };
-
-                    if ( prefix !== "margin" ) {
-                        jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
-                    }
-                } );
-
-                jQuery.fn.extend( {
-                    css: function( name, value ) {
-                        return access( this, function( elem, name, value ) {
-                            var styles, len,
-                                map = {},
-                                i = 0;
-
-                            if ( Array.isArray( name ) ) {
-                                styles = getStyles( elem );
-                                len = name.length;
-
-                                for ( ; i < len; i++ ) {
-                                    map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
-                                }
-
-                                return map;
-                            }
-
-                            return value !== undefined ?
-                                jQuery.style( elem, name, value ) :
-                                jQuery.css( elem, name );
-                        }, name, value, arguments.length > 1 );
-                    }
-                } );
-
-
-                function Tween( elem, options, prop, end, easing ) {
-                    return new Tween.prototype.init( elem, options, prop, end, easing );
-                }
-                jQuery.Tween = Tween;
-
-                Tween.prototype = {
-                    constructor: Tween,
-                    init: function( elem, options, prop, end, easing, unit ) {
-                        this.elem = elem;
-                        this.prop = prop;
-                        this.easing = easing || jQuery.easing._default;
-                        this.options = options;
-                        this.start = this.now = this.cur();
-                        this.end = end;
-                        this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
-                    },
-                    cur: function() {
-                        var hooks = Tween.propHooks[ this.prop ];
-
-                        return hooks && hooks.get ?
-                            hooks.get( this ) :
-                            Tween.propHooks._default.get( this );
-                    },
-                    run: function( percent ) {
-                        var eased,
-                            hooks = Tween.propHooks[ this.prop ];
-
-                        if ( this.options.duration ) {
-                            this.pos = eased = jQuery.easing[ this.easing ](
-                                percent, this.options.duration * percent, 0, 1, this.options.duration
-                            );
-                        } else {
-                            this.pos = eased = percent;
-                        }
-                        this.now = ( this.end - this.start ) * eased + this.start;
-
-                        if ( this.options.step ) {
-                            this.options.step.call( this.elem, this.now, this );
-                        }
-
-                        if ( hooks && hooks.set ) {
-                            hooks.set( this );
-                        } else {
-                            Tween.propHooks._default.set( this );
-                        }
-                        return this;
-                    }
-                };
-
-                Tween.prototype.init.prototype = Tween.prototype;
-
-                Tween.propHooks = {
-                    _default: {
-                        get: function( tween ) {
-                            var result;
-
-                            // Use a property on the element directly when it is not a DOM element,
-                            // or when there is no matching style property that exists.
-                            if ( tween.elem.nodeType !== 1 ||
-                                tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
-                                return tween.elem[ tween.prop ];
-                            }
-
-                            // Passing an empty string as a 3rd parameter to .css will automatically
-                            // attempt a parseFloat and fallback to a string if the parse fails.
-                            // Simple values such as "10px" are parsed to Float;
-                            // complex values such as "rotate(1rad)" are returned as-is.
-                            result = jQuery.css( tween.elem, tween.prop, "" );
-
-                            // Empty strings, null, undefined and "auto" are converted to 0.
-                            return !result || result === "auto" ? 0 : result;
-                        },
-                        set: function( tween ) {
-
-                            // Use step hook for back compat.
-                            // Use cssHook if its there.
-                            // Use .style if available and use plain properties where available.
-                            if ( jQuery.fx.step[ tween.prop ] ) {
-                                jQuery.fx.step[ tween.prop ]( tween );
-                            } else if ( tween.elem.nodeType === 1 && (
-                                jQuery.cssHooks[ tween.prop ] ||
-                                tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {
-                                jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
-                            } else {
-                                tween.elem[ tween.prop ] = tween.now;
-                            }
-                        }
-                    }
-                };
-
-// Support: IE <=9 only
-// Panic based approach to setting things on disconnected nodes
-                Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
-                    set: function( tween ) {
-                        if ( tween.elem.nodeType && tween.elem.parentNode ) {
-                            tween.elem[ tween.prop ] = tween.now;
-                        }
-                    }
-                };
-
-                jQuery.easing = {
-                    linear: function( p ) {
-                        return p;
-                    },
-                    swing: function( p ) {
-                        return 0.5 - Math.cos( p * Math.PI ) / 2;
-                    },
-                    _default: "swing"
-                };
-
-                jQuery.fx = Tween.prototype.init;
-
-// Back compat <1.8 extension point
-                jQuery.fx.step = {};
-
-
-
-
-                var
-                    fxNow, inProgress,
-                    rfxtypes = /^(?:toggle|show|hide)$/,
-                    rrun = /queueHooks$/;
-
-                function schedule() {
-                    if ( inProgress ) {
-                        if ( document.hidden === false && window.requestAnimationFrame ) {
-                            window.requestAnimationFrame( schedule );
-                        } else {
-                            window.setTimeout( schedule, jQuery.fx.interval );
-                        }
-
-                        jQuery.fx.tick();
-                    }
-                }
-
-// Animations created synchronously will run synchronously
-                function createFxNow() {
-                    window.setTimeout( function() {
-                        fxNow = undefined;
-                    } );
-                    return ( fxNow = Date.now() );
-                }
-
-// Generate parameters to create a standard animation
-                function genFx( type, includeWidth ) {
-                    var which,
-                        i = 0,
-                        attrs = { height: type };
-
-                    // If we include width, step value is 1 to do all cssExpand values,
-                    // otherwise step value is 2 to skip over Left and Right
-                    includeWidth = includeWidth ? 1 : 0;
-                    for ( ; i < 4; i += 2 - includeWidth ) {
-                        which = cssExpand[ i ];
-                        attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
-                    }
-
-                    if ( includeWidth ) {
-                        attrs.opacity = attrs.width = type;
-                    }
-
-                    return attrs;
-                }
-
-                function createTween( value, prop, animation ) {
-                    var tween,
-                        collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
-                        index = 0,
-                        length = collection.length;
-                    for ( ; index < length; index++ ) {
-                        if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
-                            // We're done with this property
-                            return tween;
-                        }
-                    }
-                }
-
-                function defaultPrefilter( elem, props, opts ) {
-                    var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
-                        isBox = "width" in props || "height" in props,
-                        anim = this,
-                        orig = {},
-                        style = elem.style,
-                        hidden = elem.nodeType && isHiddenWithinTree( elem ),
-                        dataShow = dataPriv.get( elem, "fxshow" );
-
-                    // Queue-skipping animations hijack the fx hooks
-                    if ( !opts.queue ) {
-                        hooks = jQuery._queueHooks( elem, "fx" );
-                        if ( hooks.unqueued == null ) {
-                            hooks.unqueued = 0;
-                            oldfire = hooks.empty.fire;
-                            hooks.empty.fire = function() {
-                                if ( !hooks.unqueued ) {
-                                    oldfire();
-                                }
-                            };
-                        }
-                        hooks.unqueued++;
-
-                        anim.always( function() {
-
-                            // Ensure the complete handler is called before this completes
-                            anim.always( function() {
-                                hooks.unqueued--;
-                                if ( !jQuery.queue( elem, "fx" ).length ) {
-                                    hooks.empty.fire();
-                                }
-                            } );
-                        } );
-                    }
-
-                    // Detect show/hide animations
-                    for ( prop in props ) {
-                        value = props[ prop ];
-                        if ( rfxtypes.test( value ) ) {
-                            delete props[ prop ];
-                            toggle = toggle || value === "toggle";
-                            if ( value === ( hidden ? "hide" : "show" ) ) {
-
-                                // Pretend to be hidden if this is a "show" and
-                                // there is still data from a stopped show/hide
-                                if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
-                                    hidden = true;
-
-                                    // Ignore all other no-op show/hide data
-                                } else {
-                                    continue;
-                                }
-                            }
-                            orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-                        }
-                    }
-
-                    // Bail out if this is a no-op like .hide().hide()
-                    propTween = !jQuery.isEmptyObject( props );
-                    if ( !propTween && jQuery.isEmptyObject( orig ) ) {
-                        return;
-                    }
-
-                    // Restrict "overflow" and "display" styles during box animations
-                    if ( isBox && elem.nodeType === 1 ) {
-
-                        // Support: IE <=9 - 11, Edge 12 - 15
-                        // Record all 3 overflow attributes because IE does not infer the shorthand
-                        // from identically-valued overflowX and overflowY and Edge just mirrors
-                        // the overflowX value there.
-                        opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
-                        // Identify a display type, preferring old show/hide data over the CSS cascade
-                        restoreDisplay = dataShow && dataShow.display;
-                        if ( restoreDisplay == null ) {
-                            restoreDisplay = dataPriv.get( elem, "display" );
-                        }
-                        display = jQuery.css( elem, "display" );
-                        if ( display === "none" ) {
-                            if ( restoreDisplay ) {
-                                display = restoreDisplay;
-                            } else {
-
-                                // Get nonempty value(s) by temporarily forcing visibility
-                                showHide( [ elem ], true );
-                                restoreDisplay = elem.style.display || restoreDisplay;
-                                display = jQuery.css( elem, "display" );
-                                showHide( [ elem ] );
-                            }
-                        }
-
-                        // Animate inline elements as inline-block
-                        if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
-                            if ( jQuery.css( elem, "float" ) === "none" ) {
-
-                                // Restore the original display value at the end of pure show/hide animations
-                                if ( !propTween ) {
-                                    anim.done( function() {
-                                        style.display = restoreDisplay;
-                                    } );
-                                    if ( restoreDisplay == null ) {
-                                        display = style.display;
-                                        restoreDisplay = display === "none" ? "" : display;
-                                    }
-                                }
-                                style.display = "inline-block";
-                            }
-                        }
-                    }
-
-                    if ( opts.overflow ) {
-                        style.overflow = "hidden";
-                        anim.always( function() {
-                            style.overflow = opts.overflow[ 0 ];
-                            style.overflowX = opts.overflow[ 1 ];
-                            style.overflowY = opts.overflow[ 2 ];
-                        } );
-                    }
-
-                    // Implement show/hide animations
-                    propTween = false;
-                    for ( prop in orig ) {
-
-                        // General show/hide setup for this element animation
-                        if ( !propTween ) {
-                            if ( dataShow ) {
-                                if ( "hidden" in dataShow ) {
-                                    hidden = dataShow.hidden;
-                                }
-                            } else {
-                                dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
-                            }
-
-                            // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
-                            if ( toggle ) {
-                                dataShow.hidden = !hidden;
-                            }
-
-                            // Show elements before animating them
-                            if ( hidden ) {
-                                showHide( [ elem ], true );
-                            }
-
-                            /* eslint-disable no-loop-func */
-
-                            anim.done( function() {
-
-                                /* eslint-enable no-loop-func */
-
-                                // The final step of a "hide" animation is actually hiding the element
-                                if ( !hidden ) {
-                                    showHide( [ elem ] );
-                                }
-                                dataPriv.remove( elem, "fxshow" );
-                                for ( prop in orig ) {
-                                    jQuery.style( elem, prop, orig[ prop ] );
-                                }
-                            } );
-                        }
-
-                        // Per-property setup
-                        propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-                        if ( !( prop in dataShow ) ) {
-                            dataShow[ prop ] = propTween.start;
-                            if ( hidden ) {
-                                propTween.end = propTween.start;
-                                propTween.start = 0;
-                            }
-                        }
-                    }
-                }
-
-                function propFilter( props, specialEasing ) {
-                    var index, name, easing, value, hooks;
-
-                    // camelCase, specialEasing and expand cssHook pass
-                    for ( index in props ) {
-                        name = camelCase( index );
-                        easing = specialEasing[ name ];
-                        value = props[ index ];
-                        if ( Array.isArray( value ) ) {
-                            easing = value[ 1 ];
-                            value = props[ index ] = value[ 0 ];
-                        }
-
-                        if ( index !== name ) {
-                            props[ name ] = value;
-                            delete props[ index ];
-                        }
-
-                        hooks = jQuery.cssHooks[ name ];
-                        if ( hooks && "expand" in hooks ) {
-                            value = hooks.expand( value );
-                            delete props[ name ];
-
-                            // Not quite $.extend, this won't overwrite existing keys.
-                            // Reusing 'index' because we have the correct "name"
-                            for ( index in value ) {
-                                if ( !( index in props ) ) {
-                                    props[ index ] = value[ index ];
-                                    specialEasing[ index ] = easing;
-                                }
-                            }
-                        } else {
-                            specialEasing[ name ] = easing;
-                        }
-                    }
-                }
-
-                function Animation( elem, properties, options ) {
-                    var result,
-                        stopped,
-                        index = 0,
-                        length = Animation.prefilters.length,
-                        deferred = jQuery.Deferred().always( function() {
-
-                            // Don't match elem in the :animated selector
-                            delete tick.elem;
-                        } ),
-                        tick = function() {
-                            if ( stopped ) {
-                                return false;
-                            }
-                            var currentTime = fxNow || createFxNow(),
-                                remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
-                                // Support: Android 2.3 only
-                                // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
-                                temp = remaining / animation.duration || 0,
-                                percent = 1 - temp,
-                                index = 0,
-                                length = animation.tweens.length;
-
-                            for ( ; index < length; index++ ) {
-                                animation.tweens[ index ].run( percent );
-                            }
-
-                            deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
-                            // If there's more to do, yield
-                            if ( percent < 1 && length ) {
-                                return remaining;
-                            }
-
-                            // If this was an empty animation, synthesize a final progress notification
-                            if ( !length ) {
-                                deferred.notifyWith( elem, [ animation, 1, 0 ] );
-                            }
-
-                            // Resolve the animation and report its conclusion
-                            deferred.resolveWith( elem, [ animation ] );
-                            return false;
-                        },
-                        animation = deferred.promise( {
-                            elem: elem,
-                            props: jQuery.extend( {}, properties ),
-                            opts: jQuery.extend( true, {
-                                specialEasing: {},
-                                easing: jQuery.easing._default
-                            }, options ),
-                            originalProperties: properties,
-                            originalOptions: options,
-                            startTime: fxNow || createFxNow(),
-                            duration: options.duration,
-                            tweens: [],
-                            createTween: function( prop, end ) {
-                                var tween = jQuery.Tween( elem, animation.opts, prop, end,
-                                    animation.opts.specialEasing[ prop ] || animation.opts.easing );
-                                animation.tweens.push( tween );
-                                return tween;
-                            },
-                            stop: function( gotoEnd ) {
-                                var index = 0,
-
-                                    // If we are going to the end, we want to run all the tweens
-                                    // otherwise we skip this part
-                                    length = gotoEnd ? animation.tweens.length : 0;
-                                if ( stopped ) {
-                                    return this;
-                                }
-                                stopped = true;
-                                for ( ; index < length; index++ ) {
-                                    animation.tweens[ index ].run( 1 );
-                                }
-
-                                // Resolve when we played the last frame; otherwise, reject
-                                if ( gotoEnd ) {
-                                    deferred.notifyWith( elem, [ animation, 1, 0 ] );
-                                    deferred.resolveWith( elem, [ animation, gotoEnd ] );
-                                } else {
-                                    deferred.rejectWith( elem, [ animation, gotoEnd ] );
-                                }
-                                return this;
-                            }
-                        } ),
-                        props = animation.props;
-
-                    propFilter( props, animation.opts.specialEasing );
-
-                    for ( ; index < length; index++ ) {
-                        result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
-                        if ( result ) {
-                            if ( isFunction( result.stop ) ) {
-                                jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
-                                    result.stop.bind( result );
-                            }
-                            return result;
-                        }
-                    }
-
-                    jQuery.map( props, createTween, animation );
-
-                    if ( isFunction( animation.opts.start ) ) {
-                        animation.opts.start.call( elem, animation );
-                    }
-
-                    // Attach callbacks from options
-                    animation
-                        .progress( animation.opts.progress )
-                        .done( animation.opts.done, animation.opts.complete )
-                        .fail( animation.opts.fail )
-                        .always( animation.opts.always );
-
-                    jQuery.fx.timer(
-                        jQuery.extend( tick, {
-                            elem: elem,
-                            anim: animation,
-                            queue: animation.opts.queue
-                        } )
-                    );
-
-                    return animation;
-                }
-
-                jQuery.Animation = jQuery.extend( Animation, {
-
-                    tweeners: {
-                        "*": [ function( prop, value ) {
-                            var tween = this.createTween( prop, value );
-                            adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
-                            return tween;
-                        } ]
-                    },
-
-                    tweener: function( props, callback ) {
-                        if ( isFunction( props ) ) {
-                            callback = props;
-                            props = [ "*" ];
-                        } else {
-                            props = props.match( rnothtmlwhite );
-                        }
-
-                        var prop,
-                            index = 0,
-                            length = props.length;
-
-                        for ( ; index < length; index++ ) {
-                            prop = props[ index ];
-                            Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
-                            Animation.tweeners[ prop ].unshift( callback );
-                        }
-                    },
-
-                    prefilters: [ defaultPrefilter ],
-
-                    prefilter: function( callback, prepend ) {
-                        if ( prepend ) {
-                            Animation.prefilters.unshift( callback );
-                        } else {
-                            Animation.prefilters.push( callback );
-                        }
-                    }
-                } );
-
-                jQuery.speed = function( speed, easing, fn ) {
-                    var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
-                        complete: fn || !fn && easing ||
-                            isFunction( speed ) && speed,
-                        duration: speed,
-                        easing: fn && easing || easing && !isFunction( easing ) && easing
-                    };
-
-                    // Go to the end state if fx are off
-                    if ( jQuery.fx.off ) {
-                        opt.duration = 0;
-
-                    } else {
-                        if ( typeof opt.duration !== "number" ) {
-                            if ( opt.duration in jQuery.fx.speeds ) {
-                                opt.duration = jQuery.fx.speeds[ opt.duration ];
-
-                            } else {
-                                opt.duration = jQuery.fx.speeds._default;
-                            }
-                        }
-                    }
-
-                    // Normalize opt.queue - true/undefined/null -> "fx"
-                    if ( opt.queue == null || opt.queue === true ) {
-                        opt.queue = "fx";
-                    }
-
-                    // Queueing
-                    opt.old = opt.complete;
-
-                    opt.complete = function() {
-                        if ( isFunction( opt.old ) ) {
-                            opt.old.call( this );
-                        }
-
-                        if ( opt.queue ) {
-                            jQuery.dequeue( this, opt.queue );
-                        }
-                    };
-
-                    return opt;
-                };
-
-                jQuery.fn.extend( {
-                    fadeTo: function( speed, to, easing, callback ) {
-
-                        // Show any hidden elements after setting opacity to 0
-                        return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
-
-                            // Animate to the value specified
-                            .end().animate( { opacity: to }, speed, easing, callback );
-                    },
-                    animate: function( prop, speed, easing, callback ) {
-                        var empty = jQuery.isEmptyObject( prop ),
-                            optall = jQuery.speed( speed, easing, callback ),
-                            doAnimation = function() {
-
-                                // Operate on a copy of prop so per-property easing won't be lost
-                                var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
-                                // Empty animations, or finishing resolves immediately
-                                if ( empty || dataPriv.get( this, "finish" ) ) {
-                                    anim.stop( true );
-                                }
-                            };
-                        doAnimation.finish = doAnimation;
-
-                        return empty || optall.queue === false ?
-                            this.each( doAnimation ) :
-                            this.queue( optall.queue, doAnimation );
-                    },
-                    stop: function( type, clearQueue, gotoEnd ) {
-                        var stopQueue = function( hooks ) {
-                            var stop = hooks.stop;
-                            delete hooks.stop;
-                            stop( gotoEnd );
-                        };
-
-                        if ( typeof type !== "string" ) {
-                            gotoEnd = clearQueue;
-                            clearQueue = type;
-                            type = undefined;
-                        }
-                        if ( clearQueue ) {
-                            this.queue( type || "fx", [] );
-                        }
-
-                        return this.each( function() {
-                            var dequeue = true,
-                                index = type != null && type + "queueHooks",
-                                timers = jQuery.timers,
-                                data = dataPriv.get( this );
-
-                            if ( index ) {
-                                if ( data[ index ] && data[ index ].stop ) {
-                                    stopQueue( data[ index ] );
-                                }
-                            } else {
-                                for ( index in data ) {
-                                    if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
-                                        stopQueue( data[ index ] );
-                                    }
-                                }
-                            }
-
-                            for ( index = timers.length; index--; ) {
-                                if ( timers[ index ].elem === this &&
-                                    ( type == null || timers[ index ].queue === type ) ) {
-
-                                    timers[ index ].anim.stop( gotoEnd );
-                                    dequeue = false;
-                                    timers.splice( index, 1 );
-                                }
-                            }
-
-                            // Start the next in the queue if the last step wasn't forced.
-                            // Timers currently will call their complete callbacks, which
-                            // will dequeue but only if they were gotoEnd.
-                            if ( dequeue || !gotoEnd ) {
-                                jQuery.dequeue( this, type );
-                            }
-                        } );
-                    },
-                    finish: function( type ) {
-                        if ( type !== false ) {
-                            type = type || "fx";
-                        }
-                        return this.each( function() {
-                            var index,
-                                data = dataPriv.get( this ),
-                                queue = data[ type + "queue" ],
-                                hooks = data[ type + "queueHooks" ],
-                                timers = jQuery.timers,
-                                length = queue ? queue.length : 0;
-
-                            // Enable finishing flag on private data
-                            data.finish = true;
-
-                            // Empty the queue first
-                            jQuery.queue( this, type, [] );
-
-                            if ( hooks && hooks.stop ) {
-                                hooks.stop.call( this, true );
-                            }
-
-                            // Look for any active animations, and finish them
-                            for ( index = timers.length; index--; ) {
-                                if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
-                                    timers[ index ].anim.stop( true );
-                                    timers.splice( index, 1 );
-                                }
-                            }
-
-                            // Look for any animations in the old queue and finish them
-                            for ( index = 0; index < length; index++ ) {
-                                if ( queue[ index ] && queue[ index ].finish ) {
-                                    queue[ index ].finish.call( this );
-                                }
-                            }
-
-                            // Turn off finishing flag
-                            delete data.finish;
-                        } );
-                    }
-                } );
-
-                jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) {
-                    var cssFn = jQuery.fn[ name ];
-                    jQuery.fn[ name ] = function( speed, easing, callback ) {
-                        return speed == null || typeof speed === "boolean" ?
-                            cssFn.apply( this, arguments ) :
-                            this.animate( genFx( name, true ), speed, easing, callback );
-                    };
-                } );
-
-// Generate shortcuts for custom animations
-                jQuery.each( {
-                    slideDown: genFx( "show" ),
-                    slideUp: genFx( "hide" ),
-                    slideToggle: genFx( "toggle" ),
-                    fadeIn: { opacity: "show" },
-                    fadeOut: { opacity: "hide" },
-                    fadeToggle: { opacity: "toggle" }
-                }, function( name, props ) {
-                    jQuery.fn[ name ] = function( speed, easing, callback ) {
-                        return this.animate( props, speed, easing, callback );
-                    };
-                } );
-
-                jQuery.timers = [];
-                jQuery.fx.tick = function() {
-                    var timer,
-                        i = 0,
-                        timers = jQuery.timers;
-
-                    fxNow = Date.now();
-
-                    for ( ; i < timers.length; i++ ) {
-                        timer = timers[ i ];
-
-                        // Run the timer and safely remove it when done (allowing for external removal)
-                        if ( !timer() && timers[ i ] === timer ) {
-                            timers.splice( i--, 1 );
-                        }
-                    }
-
-                    if ( !timers.length ) {
-                        jQuery.fx.stop();
-                    }
-                    fxNow = undefined;
-                };
-
-                jQuery.fx.timer = function( timer ) {
-                    jQuery.timers.push( timer );
-                    jQuery.fx.start();
-                };
-
-                jQuery.fx.interval = 13;
-                jQuery.fx.start = function() {
-                    if ( inProgress ) {
-                        return;
-                    }
-
-                    inProgress = true;
-                    schedule();
-                };
-
-                jQuery.fx.stop = function() {
-                    inProgress = null;
-                };
-
-                jQuery.fx.speeds = {
-                    slow: 600,
-                    fast: 200,
-
-                    // Default speed
-                    _default: 400
-                };
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-                jQuery.fn.delay = function( time, type ) {
-                    time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
-                    type = type || "fx";
-
-                    return this.queue( type, function( next, hooks ) {
-                        var timeout = window.setTimeout( next, time );
-                        hooks.stop = function() {
-                            window.clearTimeout( timeout );
-                        };
-                    } );
-                };
-
-
-                ( function() {
-                    var input = document.createElement( "input" ),
-                        select = document.createElement( "select" ),
-                        opt = select.appendChild( document.createElement( "option" ) );
-
-                    input.type = "checkbox";
-
-                    // Support: Android <=4.3 only
-                    // Default value for a checkbox should be "on"
-                    support.checkOn = input.value !== "";
-
-                    // Support: IE <=11 only
-                    // Must access selectedIndex to make default options select
-                    support.optSelected = opt.selected;
-
-                    // Support: IE <=11 only
-                    // An input loses its value after becoming a radio
-                    input = document.createElement( "input" );
-                    input.value = "t";
-                    input.type = "radio";
-                    support.radioValue = input.value === "t";
-                } )();
-
-
-                var boolHook,
-                    attrHandle = jQuery.expr.attrHandle;
-
-                jQuery.fn.extend( {
-                    attr: function( name, value ) {
-                        return access( this, jQuery.attr, name, value, arguments.length > 1 );
-                    },
-
-                    removeAttr: function( name ) {
-                        return this.each( function() {
-                            jQuery.removeAttr( this, name );
-                        } );
-                    }
-                } );
-
-                jQuery.extend( {
-                    attr: function( elem, name, value ) {
-                        var ret, hooks,
-                            nType = elem.nodeType;
-
-                        // Don't get/set attributes on text, comment and attribute nodes
-                        if ( nType === 3 || nType === 8 || nType === 2 ) {
-                            return;
-                        }
-
-                        // Fallback to prop when attributes are not supported
-                        if ( typeof elem.getAttribute === "undefined" ) {
-                            return jQuery.prop( elem, name, value );
-                        }
-
-                        // Attribute hooks are determined by the lowercase version
-                        // Grab necessary hook if one is defined
-                        if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-                            hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
-                                ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
-                        }
-
-                        if ( value !== undefined ) {
-                            if ( value === null ) {
-                                jQuery.removeAttr( elem, name );
-                                return;
-                            }
-
-                            if ( hooks && "set" in hooks &&
-                                ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
-                                return ret;
-                            }
-
-                            elem.setAttribute( name, value + "" );
-                            return value;
-                        }
-
-                        if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
-                            return ret;
-                        }
-
-                        ret = jQuery.find.attr( elem, name );
-
-                        // Non-existent attributes return null, we normalize to undefined
-                        return ret == null ? undefined : ret;
-                    },
-
-                    attrHooks: {
-                        type: {
-                            set: function( elem, value ) {
-                                if ( !support.radioValue && value === "radio" &&
-                                    nodeName( elem, "input" ) ) {
-                                    var val = elem.value;
-                                    elem.setAttribute( "type", value );
-                                    if ( val ) {
-                                        elem.value = val;
-                                    }
-                                    return value;
-                                }
-                            }
-                        }
-                    },
-
-                    removeAttr: function( elem, value ) {
-                        var name,
-                            i = 0,
-
-                            // Attribute names can contain non-HTML whitespace characters
-                            // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
-                            attrNames = value && value.match( rnothtmlwhite );
-
-                        if ( attrNames && elem.nodeType === 1 ) {
-                            while ( ( name = attrNames[ i++ ] ) ) {
-                                elem.removeAttribute( name );
-                            }
-                        }
-                    }
-                } );
-
-// Hooks for boolean attributes
-                boolHook = {
-                    set: function( elem, value, name ) {
-                        if ( value === false ) {
-
-                            // Remove boolean attributes when set to false
-                            jQuery.removeAttr( elem, name );
-                        } else {
-                            elem.setAttribute( name, name );
-                        }
-                        return name;
-                    }
-                };
-
-                jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {
-                    var getter = attrHandle[ name ] || jQuery.find.attr;
-
-                    attrHandle[ name ] = function( elem, name, isXML ) {
-                        var ret, handle,
-                            lowercaseName = name.toLowerCase();
-
-                        if ( !isXML ) {
-
-                            // Avoid an infinite loop by temporarily removing this function from the getter
-                            handle = attrHandle[ lowercaseName ];
-                            attrHandle[ lowercaseName ] = ret;
-                            ret = getter( elem, name, isXML ) != null ?
-                                lowercaseName :
-                                null;
-                            attrHandle[ lowercaseName ] = handle;
-                        }
-                        return ret;
-                    };
-                } );
-
-
-
-
-                var rfocusable = /^(?:input|select|textarea|button)$/i,
-                    rclickable = /^(?:a|area)$/i;
-
-                jQuery.fn.extend( {
-                    prop: function( name, value ) {
-                        return access( this, jQuery.prop, name, value, arguments.length > 1 );
-                    },
-
-                    removeProp: function( name ) {
-                        return this.each( function() {
-                            delete this[ jQuery.propFix[ name ] || name ];
-                        } );
-                    }
-                } );
-
-                jQuery.extend( {
-                    prop: function( elem, name, value ) {
-                        var ret, hooks,
-                            nType = elem.nodeType;
-
-                        // Don't get/set properties on text, comment and attribute nodes
-                        if ( nType === 3 || nType === 8 || nType === 2 ) {
-                            return;
-                        }
-
-                        if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
-                            // Fix name and attach hooks
-                            name = jQuery.propFix[ name ] || name;
-                            hooks = jQuery.propHooks[ name ];
-                        }
-
-                        if ( value !== undefined ) {
-                            if ( hooks && "set" in hooks &&
-                                ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
-                                return ret;
-                            }
-
-                            return ( elem[ name ] = value );
-                        }
-
-                        if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
-                            return ret;
-                        }
-
-                        return elem[ name ];
-                    },
-
-                    propHooks: {
-                        tabIndex: {
-                            get: function( elem ) {
-
-                                // Support: IE <=9 - 11 only
-                                // elem.tabIndex doesn't always return the
-                                // correct value when it hasn't been explicitly set
-                                // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                                // Use proper attribute retrieval(#12072)
-                                var tabindex = jQuery.find.attr( elem, "tabindex" );
-
-                                if ( tabindex ) {
-                                    return parseInt( tabindex, 10 );
-                                }
-
-                                if (
-                                    rfocusable.test( elem.nodeName ) ||
-                                    rclickable.test( elem.nodeName ) &&
-                                    elem.href
-                                ) {
-                                    return 0;
-                                }
-
-                                return -1;
-                            }
-                        }
-                    },
-
-                    propFix: {
-                        "for": "htmlFor",
-                        "class": "className"
-                    }
-                } );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-// eslint rule "no-unused-expressions" is disabled for this code
-// since it considers such accessions noop
-                if ( !support.optSelected ) {
-                    jQuery.propHooks.selected = {
-                        get: function( elem ) {
-
-                            /* eslint no-unused-expressions: "off" */
-
-                            var parent = elem.parentNode;
-                            if ( parent && parent.parentNode ) {
-                                parent.parentNode.selectedIndex;
-                            }
-                            return null;
-                        },
-                        set: function( elem ) {
-
-                            /* eslint no-unused-expressions: "off" */
-
-                            var parent = elem.parentNode;
-                            if ( parent ) {
-                                parent.selectedIndex;
-
-                                if ( parent.parentNode ) {
-                                    parent.parentNode.selectedIndex;
-                                }
-                            }
-                        }
-                    };
-                }
-
-                jQuery.each( [
-                    "tabIndex",
-                    "readOnly",
-                    "maxLength",
-                    "cellSpacing",
-                    "cellPadding",
-                    "rowSpan",
-                    "colSpan",
-                    "useMap",
-                    "frameBorder",
-                    "contentEditable"
-                ], function() {
-                    jQuery.propFix[ this.toLowerCase() ] = this;
-                } );
-
-
-
-
-                // Strip and collapse whitespace according to HTML spec
-                // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
-                function stripAndCollapse( value ) {
-                    var tokens = value.match( rnothtmlwhite ) || [];
-                    return tokens.join( " " );
-                }
-
-
-                function getClass( elem ) {
-                    return elem.getAttribute && elem.getAttribute( "class" ) || "";
-                }
-
-                function classesToArray( value ) {
-                    if ( Array.isArray( value ) ) {
-                        return value;
-                    }
-                    if ( typeof value === "string" ) {
-                        return value.match( rnothtmlwhite ) || [];
-                    }
-                    return [];
-                }
-
-                jQuery.fn.extend( {
-                    addClass: function( value ) {
-                        var classes, elem, cur, curValue, clazz, j, finalValue,
-                            i = 0;
-
-                        if ( isFunction( value ) ) {
-                            return this.each( function( j ) {
-                                jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
-                            } );
-                        }
-
-                        classes = classesToArray( value );
-
-                        if ( classes.length ) {
-                            while ( ( elem = this[ i++ ] ) ) {
-                                curValue = getClass( elem );
-                                cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
-
-                                if ( cur ) {
-                                    j = 0;
-                                    while ( ( clazz = classes[ j++ ] ) ) {
-                                        if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
-                                            cur += clazz + " ";
-                                        }
-                                    }
-
-                                    // Only assign if different to avoid unneeded rendering.
-                                    finalValue = stripAndCollapse( cur );
-                                    if ( curValue !== finalValue ) {
-                                        elem.setAttribute( "class", finalValue );
-                                    }
-                                }
-                            }
-                        }
-
-                        return this;
-                    },
-
-                    removeClass: function( value ) {
-                        var classes, elem, cur, curValue, clazz, j, finalValue,
-                            i = 0;
-
-                        if ( isFunction( value ) ) {
-                            return this.each( function( j ) {
-                                jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
-                            } );
-                        }
-
-                        if ( !arguments.length ) {
-                            return this.attr( "class", "" );
-                        }
-
-                        classes = classesToArray( value );
-
-                        if ( classes.length ) {
-                            while ( ( elem = this[ i++ ] ) ) {
-                                curValue = getClass( elem );
-
-                                // This expression is here for better compressibility (see addClass)
-                                cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
-
-                                if ( cur ) {
-                                    j = 0;
-                                    while ( ( clazz = classes[ j++ ] ) ) {
-
-                                        // Remove *all* instances
-                                        while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
-                                            cur = cur.replace( " " + clazz + " ", " " );
-                                        }
-                                    }
-
-                                    // Only assign if different to avoid unneeded rendering.
-                                    finalValue = stripAndCollapse( cur );
-                                    if ( curValue !== finalValue ) {
-                                        elem.setAttribute( "class", finalValue );
-                                    }
-                                }
-                            }
-                        }
-
-                        return this;
-                    },
-
-                    toggleClass: function( value, stateVal ) {
-                        var type = typeof value,
-                            isValidValue = type === "string" || Array.isArray( value );
-
-                        if ( typeof stateVal === "boolean" && isValidValue ) {
-                            return stateVal ? this.addClass( value ) : this.removeClass( value );
-                        }
-
-                        if ( isFunction( value ) ) {
-                            return this.each( function( i ) {
-                                jQuery( this ).toggleClass(
-                                    value.call( this, i, getClass( this ), stateVal ),
-                                    stateVal
-                                );
-                            } );
-                        }
-
-                        return this.each( function() {
-                            var className, i, self, classNames;
-
-                            if ( isValidValue ) {
-
-                                // Toggle individual class names
-                                i = 0;
-                                self = jQuery( this );
-                                classNames = classesToArray( value );
-
-                                while ( ( className = classNames[ i++ ] ) ) {
-
-                                    // Check each className given, space separated list
-                                    if ( self.hasClass( className ) ) {
-                                        self.removeClass( className );
-                                    } else {
-                                        self.addClass( className );
-                                    }
-                                }
-
-                                // Toggle whole class name
-                            } else if ( value === undefined || type === "boolean" ) {
-                                className = getClass( this );
-                                if ( className ) {
-
-                                    // Store className if set
-                                    dataPriv.set( this, "__className__", className );
-                                }
-
-                                // If the element has a class name or if we're passed `false`,
-                                // then remove the whole classname (if there was one, the above saved it).
-                                // Otherwise bring back whatever was previously saved (if anything),
-                                // falling back to the empty string if nothing was stored.
-                                if ( this.setAttribute ) {
-                                    this.setAttribute( "class",
-                                        className || value === false ?
-                                            "" :
-                                            dataPriv.get( this, "__className__" ) || ""
-                                    );
-                                }
-                            }
-                        } );
-                    },
-
-                    hasClass: function( selector ) {
-                        var className, elem,
-                            i = 0;
-
-                        className = " " + selector + " ";
-                        while ( ( elem = this[ i++ ] ) ) {
-                            if ( elem.nodeType === 1 &&
-                                ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
-                                return true;
-                            }
-                        }
-
-                        return false;
-                    }
-                } );
-
-
-
-
-                var rreturn = /\r/g;
-
-                jQuery.fn.extend( {
-                    val: function( value ) {
-                        var hooks, ret, valueIsFunction,
-                            elem = this[ 0 ];
-
-                        if ( !arguments.length ) {
-                            if ( elem ) {
-                                hooks = jQuery.valHooks[ elem.type ] ||
-                                    jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
-                                if ( hooks &&
-                                    "get" in hooks &&
-                                    ( ret = hooks.get( elem, "value" ) ) !== undefined
-                                ) {
-                                    return ret;
-                                }
-
-                                ret = elem.value;
-
-                                // Handle most common string cases
-                                if ( typeof ret === "string" ) {
-                                    return ret.replace( rreturn, "" );
-                                }
-
-                                // Handle cases where value is null/undef or number
-                                return ret == null ? "" : ret;
-                            }
-
-                            return;
-                        }
-
-                        valueIsFunction = isFunction( value );
-
-                        return this.each( function( i ) {
-                            var val;
-
-                            if ( this.nodeType !== 1 ) {
-                                return;
-                            }
-
-                            if ( valueIsFunction ) {
-                                val = value.call( this, i, jQuery( this ).val() );
-                            } else {
-                                val = value;
-                            }
-
-                            // Treat null/undefined as ""; convert numbers to string
-                            if ( val == null ) {
-                                val = "";
-
-                            } else if ( typeof val === "number" ) {
-                                val += "";
-
-                            } else if ( Array.isArray( val ) ) {
-                                val = jQuery.map( val, function( value ) {
-                                    return value == null ? "" : value + "";
-                                } );
-                            }
-
-                            hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
-                            // If set returns undefined, fall back to normal setting
-                            if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
-                                this.value = val;
-                            }
-                        } );
-                    }
-                } );
-
-                jQuery.extend( {
-                    valHooks: {
-                        option: {
-                            get: function( elem ) {
-
-                                var val = jQuery.find.attr( elem, "value" );
-                                return val != null ?
-                                    val :
-
-                                    // Support: IE <=10 - 11 only
-                                    // option.text throws exceptions (#14686, #14858)
-                                    // Strip and collapse whitespace
-                                    // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
-                                    stripAndCollapse( jQuery.text( elem ) );
-                            }
-                        },
-                        select: {
-                            get: function( elem ) {
-                                var value, option, i,
-                                    options = elem.options,
-                                    index = elem.selectedIndex,
-                                    one = elem.type === "select-one",
-                                    values = one ? null : [],
-                                    max = one ? index + 1 : options.length;
-
-                                if ( index < 0 ) {
-                                    i = max;
-
-                                } else {
-                                    i = one ? index : 0;
-                                }
-
-                                // Loop through all the selected options
-                                for ( ; i < max; i++ ) {
-                                    option = options[ i ];
-
-                                    // Support: IE <=9 only
-                                    // IE8-9 doesn't update selected after form reset (#2551)
-                                    if ( ( option.selected || i === index ) &&
-
-                                        // Don't return options that are disabled or in a disabled optgroup
-                                        !option.disabled &&
-                                        ( !option.parentNode.disabled ||
-                                            !nodeName( option.parentNode, "optgroup" ) ) ) {
-
-                                        // Get the specific value for the option
-                                        value = jQuery( option ).val();
-
-                                        // We don't need an array for one selects
-                                        if ( one ) {
-                                            return value;
-                                        }
-
-                                        // Multi-Selects return an array
-                                        values.push( value );
-                                    }
-                                }
-
-                                return values;
-                            },
-
-                            set: function( elem, value ) {
-                                var optionSet, option,
-                                    options = elem.options,
-                                    values = jQuery.makeArray( value ),
-                                    i = options.length;
-
-                                while ( i-- ) {
-                                    option = options[ i ];
-
-                                    /* eslint-disable no-cond-assign */
-
-                                    if ( option.selected =
-                                        jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
-                                    ) {
-                                        optionSet = true;
-                                    }
-
-                                    /* eslint-enable no-cond-assign */
-                                }
-
-                                // Force browsers to behave consistently when non-matching value is set
-                                if ( !optionSet ) {
-                                    elem.selectedIndex = -1;
-                                }
-                                return values;
-                            }
-                        }
-                    }
-                } );
-
-// Radios and checkboxes getter/setter
-                jQuery.each( [ "radio", "checkbox" ], function() {
-                    jQuery.valHooks[ this ] = {
-                        set: function( elem, value ) {
-                            if ( Array.isArray( value ) ) {
-                                return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
-                            }
-                        }
-                    };
-                    if ( !support.checkOn ) {
-                        jQuery.valHooks[ this ].get = function( elem ) {
-                            return elem.getAttribute( "value" ) === null ? "on" : elem.value;
-                        };
-                    }
-                } );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-                support.focusin = "onfocusin" in window;
-
-
-                var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
-                    stopPropagationCallback = function( e ) {
-                        e.stopPropagation();
-                    };
-
-                jQuery.extend( jQuery.event, {
-
-                    trigger: function( event, data, elem, onlyHandlers ) {
-
-                        var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
-                            eventPath = [ elem || document ],
-                            type = hasOwn.call( event, "type" ) ? event.type : event,
-                            namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
-                        cur = lastElement = tmp = elem = elem || document;
-
-                        // Don't do events on text and comment nodes
-                        if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                            return;
-                        }
-
-                        // focus/blur morphs to focusin/out; ensure we're not firing them right now
-                        if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
-                            return;
-                        }
-
-                        if ( type.indexOf( "." ) > -1 ) {
-
-                            // Namespaced trigger; create a regexp to match event type in handle()
-                            namespaces = type.split( "." );
-                            type = namespaces.shift();
-                            namespaces.sort();
-                        }
-                        ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
-                        // Caller can pass in a jQuery.Event object, Object, or just an event type string
-                        event = event[ jQuery.expando ] ?
-                            event :
-                            new jQuery.Event( type, typeof event === "object" && event );
-
-                        // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
-                        event.isTrigger = onlyHandlers ? 2 : 3;
-                        event.namespace = namespaces.join( "." );
-                        event.rnamespace = event.namespace ?
-                            new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
-                            null;
-
-                        // Clean up the event in case it is being reused
-                        event.result = undefined;
-                        if ( !event.target ) {
-                            event.target = elem;
-                        }
-
-                        // Clone any incoming data and prepend the event, creating the handler arg list
-                        data = data == null ?
-                            [ event ] :
-                            jQuery.makeArray( data, [ event ] );
-
-                        // Allow special events to draw outside the lines
-                        special = jQuery.event.special[ type ] || {};
-                        if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
-                            return;
-                        }
-
-                        // Determine event propagation path in advance, per W3C events spec (#9951)
-                        // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
-                        if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
-
-                            bubbleType = special.delegateType || type;
-                            if ( !rfocusMorph.test( bubbleType + type ) ) {
-                                cur = cur.parentNode;
-                            }
-                            for ( ; cur; cur = cur.parentNode ) {
-                                eventPath.push( cur );
-                                tmp = cur;
-                            }
-
-                            // Only add window if we got to document (e.g., not plain obj or detached DOM)
-                            if ( tmp === ( elem.ownerDocument || document ) ) {
-                                eventPath.push( tmp.defaultView || tmp.parentWindow || window );
-                            }
-                        }
-
-                        // Fire handlers on the event path
-                        i = 0;
-                        while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-                            lastElement = cur;
-                            event.type = i > 1 ?
-                                bubbleType :
-                                special.bindType || type;
-
-                            // jQuery handler
-                            handle = (
-                                    dataPriv.get( cur, "events" ) || Object.create( null )
-                                )[ event.type ] &&
-                                dataPriv.get( cur, "handle" );
-                            if ( handle ) {
-                                handle.apply( cur, data );
-                            }
-
-                            // Native handler
-                            handle = ontype && cur[ ontype ];
-                            if ( handle && handle.apply && acceptData( cur ) ) {
-                                event.result = handle.apply( cur, data );
-                                if ( event.result === false ) {
-                                    event.preventDefault();
-                                }
-                            }
-                        }
-                        event.type = type;
-
-                        // If nobody prevented the default action, do it now
-                        if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
-                            if ( ( !special._default ||
-                                    special._default.apply( eventPath.pop(), data ) === false ) &&
-                                acceptData( elem ) ) {
-
-                                // Call a native DOM method on the target with the same name as the event.
-                                // Don't do default actions on window, that's where global variables be (#6170)
-                                if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
-
-                                    // Don't re-trigger an onFOO event when we call its FOO() method
-                                    tmp = elem[ ontype ];
-
-                                    if ( tmp ) {
-                                        elem[ ontype ] = null;
-                                    }
-
-                                    // Prevent re-triggering of the same event, since we already bubbled it above
-                                    jQuery.event.triggered = type;
-
-                                    if ( event.isPropagationStopped() ) {
-                                        lastElement.addEventListener( type, stopPropagationCallback );
-                                    }
-
-                                    elem[ type ]();
-
-                                    if ( event.isPropagationStopped() ) {
-                                        lastElement.removeEventListener( type, stopPropagationCallback );
-                                    }
-
-                                    jQuery.event.triggered = undefined;
-
-                                    if ( tmp ) {
-                                        elem[ ontype ] = tmp;
-                                    }
-                                }
-                            }
-                        }
-
-                        return event.result;
-                    },
-
-                    // Piggyback on a donor event to simulate a different one
-                    // Used only for `focus(in | out)` events
-                    simulate: function( type, elem, event ) {
-                        var e = jQuery.extend(
-                            new jQuery.Event(),
-                            event,
-                            {
-                                type: type,
-                                isSimulated: true
-                            }
-                        );
-
-                        jQuery.event.trigger( e, null, elem );
-                    }
-
-                } );
-
-                jQuery.fn.extend( {
-
-                    trigger: function( type, data ) {
-                        return this.each( function() {
-                            jQuery.event.trigger( type, data, this );
-                        } );
-                    },
-                    triggerHandler: function( type, data ) {
-                        var elem = this[ 0 ];
-                        if ( elem ) {
-                            return jQuery.event.trigger( type, data, elem, true );
-                        }
-                    }
-                } );
-
-
-// Support: Firefox <=44
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
-                if ( !support.focusin ) {
-                    jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-                        // Attach a single capturing handler on the document while someone wants focusin/focusout
-                        var handler = function( event ) {
-                            jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
-                        };
-
-                        jQuery.event.special[ fix ] = {
-                            setup: function() {
-
-                                // Handle: regular nodes (via `this.ownerDocument`), window
-                                // (via `this.document`) & document (via `this`).
-                                var doc = this.ownerDocument || this.document || this,
-                                    attaches = dataPriv.access( doc, fix );
-
-                                if ( !attaches ) {
-                                    doc.addEventListener( orig, handler, true );
-                                }
-                                dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
-                            },
-                            teardown: function() {
-                                var doc = this.ownerDocument || this.document || this,
-                                    attaches = dataPriv.access( doc, fix ) - 1;
-
-                                if ( !attaches ) {
-                                    doc.removeEventListener( orig, handler, true );
-                                    dataPriv.remove( doc, fix );
-
-                                } else {
-                                    dataPriv.access( doc, fix, attaches );
-                                }
-                            }
-                        };
-                    } );
-                }
-                var location = window.location;
-
-                var nonce = { guid: Date.now() };
-
-                var rquery = ( /\?/ );
-
-
-
-// Cross-browser xml parsing
-                jQuery.parseXML = function( data ) {
-                    var xml;
-                    if ( !data || typeof data !== "string" ) {
-                        return null;
-                    }
-
-                    // Support: IE 9 - 11 only
-                    // IE throws on parseFromString with invalid input.
-                    try {
-                        xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
-                    } catch ( e ) {
-                        xml = undefined;
-                    }
-
-                    if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
-                        jQuery.error( "Invalid XML: " + data );
-                    }
-                    return xml;
-                };
-
-
-                var
-                    rbracket = /\[\]$/,
-                    rCRLF = /\r?\n/g,
-                    rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
-                    rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-                function buildParams( prefix, obj, traditional, add ) {
-                    var name;
-
-                    if ( Array.isArray( obj ) ) {
-
-                        // Serialize array item.
-                        jQuery.each( obj, function( i, v ) {
-                            if ( traditional || rbracket.test( prefix ) ) {
-
-                                // Treat each array item as a scalar.
-                                add( prefix, v );
-
-                            } else {
-
-                                // Item is non-scalar (array or object), encode its numeric index.
-                                buildParams(
-                                    prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
-                                    v,
-                                    traditional,
-                                    add
-                                );
-                            }
-                        } );
-
-                    } else if ( !traditional && toType( obj ) === "object" ) {
-
-                        // Serialize object item.
-                        for ( name in obj ) {
-                            buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-                        }
-
-                    } else {
-
-                        // Serialize scalar item.
-                        add( prefix, obj );
-                    }
-                }
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-                jQuery.param = function( a, traditional ) {
-                    var prefix,
-                        s = [],
-                        add = function( key, valueOrFunction ) {
-
-                            // If value is a function, invoke it and use its return value
-                            var value = isFunction( valueOrFunction ) ?
-                                valueOrFunction() :
-                                valueOrFunction;
-
-                            s[ s.length ] = encodeURIComponent( key ) + "=" +
-                                encodeURIComponent( value == null ? "" : value );
-                        };
-
-                    if ( a == null ) {
-                        return "";
-                    }
-
-                    // If an array was passed in, assume that it is an array of form elements.
-                    if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
-                        // Serialize the form elements
-                        jQuery.each( a, function() {
-                            add( this.name, this.value );
-                        } );
-
-                    } else {
-
-                        // If traditional, encode the "old" way (the way 1.3.2 or older
-                        // did it), otherwise encode params recursively.
-                        for ( prefix in a ) {
-                            buildParams( prefix, a[ prefix ], traditional, add );
-                        }
-                    }
-
-                    // Return the resulting serialization
-                    return s.join( "&" );
-                };
-
-                jQuery.fn.extend( {
-                    serialize: function() {
-                        return jQuery.param( this.serializeArray() );
-                    },
-                    serializeArray: function() {
-                        return this.map( function() {
-
-                            // Can add propHook for "elements" to filter or add form elements
-                            var elements = jQuery.prop( this, "elements" );
-                            return elements ? jQuery.makeArray( elements ) : this;
-                        } )
-                            .filter( function() {
-                                var type = this.type;
-
-                                // Use .is( ":disabled" ) so that fieldset[disabled] works
-                                return this.name && !jQuery( this ).is( ":disabled" ) &&
-                                    rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
-                                    ( this.checked || !rcheckableType.test( type ) );
-                            } )
-                            .map( function( _i, elem ) {
-                                var val = jQuery( this ).val();
-
-                                if ( val == null ) {
-                                    return null;
-                                }
-
-                                if ( Array.isArray( val ) ) {
-                                    return jQuery.map( val, function( val ) {
-                                        return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                    } );
-                                }
-
-                                return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                            } ).get();
-                    }
-                } );
-
-
-                var
-                    r20 = /%20/g,
-                    rhash = /#.*$/,
-                    rantiCache = /([?&])_=[^&]*/,
-                    rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
-                    // #7653, #8125, #8152: local protocol detection
-                    rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
-                    rnoContent = /^(?:GET|HEAD)$/,
-                    rprotocol = /^\/\//,
-
-                    /* Prefilters
-	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-	 * 2) These are called:
-	 *    - BEFORE asking for a transport
-	 *    - AFTER param serialization (s.data is a string if s.processData is true)
-	 * 3) key is the dataType
-	 * 4) the catchall symbol "*" can be used
-	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-	 */
-                    prefilters = {},
-
-                    /* Transports bindings
-	 * 1) key is the dataType
-	 * 2) the catchall symbol "*" can be used
-	 * 3) selection will start with transport dataType and THEN go to "*" if needed
-	 */
-                    transports = {},
-
-                    // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-                    allTypes = "*/".concat( "*" ),
-
-                    // Anchor tag for parsing the document origin
-                    originAnchor = document.createElement( "a" );
-                originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-                function addToPrefiltersOrTransports( structure ) {
-
-                    // dataTypeExpression is optional and defaults to "*"
-                    return function( dataTypeExpression, func ) {
-
-                        if ( typeof dataTypeExpression !== "string" ) {
-                            func = dataTypeExpression;
-                            dataTypeExpression = "*";
-                        }
-
-                        var dataType,
-                            i = 0,
-                            dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
-
-                        if ( isFunction( func ) ) {
-
-                            // For each dataType in the dataTypeExpression
-                            while ( ( dataType = dataTypes[ i++ ] ) ) {
-
-                                // Prepend if requested
-                                if ( dataType[ 0 ] === "+" ) {
-                                    dataType = dataType.slice( 1 ) || "*";
-                                    ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
-                                    // Otherwise append
-                                } else {
-                                    ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
-                                }
-                            }
-                        }
-                    };
-                }
-
-// Base inspection function for prefilters and transports
-                function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
-                    var inspected = {},
-                        seekingTransport = ( structure === transports );
-
-                    function inspect( dataType ) {
-                        var selected;
-                        inspected[ dataType ] = true;
-                        jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
-                            var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
-                            if ( typeof dataTypeOrTransport === "string" &&
-                                !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
-                                options.dataTypes.unshift( dataTypeOrTransport );
-                                inspect( dataTypeOrTransport );
-                                return false;
-                            } else if ( seekingTransport ) {
-                                return !( selected = dataTypeOrTransport );
-                            }
-                        } );
-                        return selected;
-                    }
-
-                    return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-                }
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-                function ajaxExtend( target, src ) {
-                    var key, deep,
-                        flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
-                    for ( key in src ) {
-                        if ( src[ key ] !== undefined ) {
-                            ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-                        }
-                    }
-                    if ( deep ) {
-                        jQuery.extend( true, target, deep );
-                    }
-
-                    return target;
-                }
-
-                /* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-                function ajaxHandleResponses( s, jqXHR, responses ) {
-
-                    var ct, type, finalDataType, firstDataType,
-                        contents = s.contents,
-                        dataTypes = s.dataTypes;
-
-                    // Remove auto dataType and get content-type in the process
-                    while ( dataTypes[ 0 ] === "*" ) {
-                        dataTypes.shift();
-                        if ( ct === undefined ) {
-                            ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
-                        }
-                    }
-
-                    // Check if we're dealing with a known content-type
-                    if ( ct ) {
-                        for ( type in contents ) {
-                            if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                                dataTypes.unshift( type );
-                                break;
-                            }
-                        }
-                    }
-
-                    // Check to see if we have a response for the expected dataType
-                    if ( dataTypes[ 0 ] in responses ) {
-                        finalDataType = dataTypes[ 0 ];
-                    } else {
-
-                        // Try convertible dataTypes
-                        for ( type in responses ) {
-                            if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
-                                finalDataType = type;
-                                break;
-                            }
-                            if ( !firstDataType ) {
-                                firstDataType = type;
-                            }
-                        }
-
-                        // Or just use first one
-                        finalDataType = finalDataType || firstDataType;
-                    }
-
-                    // If we found a dataType
-                    // We add the dataType to the list if needed
-                    // and return the corresponding response
-                    if ( finalDataType ) {
-                        if ( finalDataType !== dataTypes[ 0 ] ) {
-                            dataTypes.unshift( finalDataType );
-                        }
-                        return responses[ finalDataType ];
-                    }
-                }
-
-                /* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-                function ajaxConvert( s, response, jqXHR, isSuccess ) {
-                    var conv2, current, conv, tmp, prev,
-                        converters = {},
-
-                        // Work with a copy of dataTypes in case we need to modify it for conversion
-                        dataTypes = s.dataTypes.slice();
-
-                    // Create converters map with lowercased keys
-                    if ( dataTypes[ 1 ] ) {
-                        for ( conv in s.converters ) {
-                            converters[ conv.toLowerCase() ] = s.converters[ conv ];
-                        }
-                    }
-
-                    current = dataTypes.shift();
-
-                    // Convert to each sequential dataType
-                    while ( current ) {
-
-                        if ( s.responseFields[ current ] ) {
-                            jqXHR[ s.responseFields[ current ] ] = response;
-                        }
-
-                        // Apply the dataFilter if provided
-                        if ( !prev && isSuccess && s.dataFilter ) {
-                            response = s.dataFilter( response, s.dataType );
-                        }
-
-                        prev = current;
-                        current = dataTypes.shift();
-
-                        if ( current ) {
-
-                            // There's only work to do if current dataType is non-auto
-                            if ( current === "*" ) {
-
-                                current = prev;
-
-                                // Convert response if prev dataType is non-auto and differs from current
-                            } else if ( prev !== "*" && prev !== current ) {
-
-                                // Seek a direct converter
-                                conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
-                                // If none found, seek a pair
-                                if ( !conv ) {
-                                    for ( conv2 in converters ) {
-
-                                        // If conv2 outputs current
-                                        tmp = conv2.split( " " );
-                                        if ( tmp[ 1 ] === current ) {
-
-                                            // If prev can be converted to accepted input
-                                            conv = converters[ prev + " " + tmp[ 0 ] ] ||
-                                                converters[ "* " + tmp[ 0 ] ];
-                                            if ( conv ) {
-
-                                                // Condense equivalence converters
-                                                if ( conv === true ) {
-                                                    conv = converters[ conv2 ];
-
-                                                    // Otherwise, insert the intermediate dataType
-                                                } else if ( converters[ conv2 ] !== true ) {
-                                                    current = tmp[ 0 ];
-                                                    dataTypes.unshift( tmp[ 1 ] );
-                                                }
-                                                break;
-                                            }
-                                        }
-                                    }
-                                }
-
-                                // Apply converter (if not an equivalence)
-                                if ( conv !== true ) {
-
-                                    // Unless errors are allowed to bubble, catch and return them
-                                    if ( conv && s.throws ) {
-                                        response = conv( response );
-                                    } else {
-                                        try {
-                                            response = conv( response );
-                                        } catch ( e ) {
-                                            return {
-                                                state: "parsererror",
-                                                error: conv ? e : "No conversion from " + prev + " to " + current
-                                            };
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-
-                    return { state: "success", data: response };
-                }
-
-                jQuery.extend( {
-
-                    // Counter for holding the number of active queries
-                    active: 0,
-
-                    // Last-Modified header cache for next request
-                    lastModified: {},
-                    etag: {},
-
-                    ajaxSettings: {
-                        url: location.href,
-                        type: "GET",
-                        isLocal: rlocalProtocol.test( location.protocol ),
-                        global: true,
-                        processData: true,
-                        async: true,
-                        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-
-                        /*
-		timeout: 0,
-		data: null,
-		dataType: null,
-		username: null,
-		password: null,
-		cache: null,
-		throws: false,
-		traditional: false,
-		headers: {},
-		*/
-
-                        accepts: {
-                            "*": allTypes,
-                            text: "text/plain",
-                            html: "text/html",
-                            xml: "application/xml, text/xml",
-                            json: "application/json, text/javascript"
-                        },
-
-                        contents: {
-                            xml: /\bxml\b/,
-                            html: /\bhtml/,
-                            json: /\bjson\b/
-                        },
-
-                        responseFields: {
-                            xml: "responseXML",
-                            text: "responseText",
-                            json: "responseJSON"
-                        },
-
-                        // Data converters
-                        // Keys separate source (or catchall "*") and destination types with a single space
-                        converters: {
-
-                            // Convert anything to text
-                            "* text": String,
-
-                            // Text to html (true = no transformation)
-                            "text html": true,
-
-                            // Evaluate text as a json expression
-                            "text json": JSON.parse,
-
-                            // Parse text as xml
-                            "text xml": jQuery.parseXML
-                        },
-
-                        // For options that shouldn't be deep extended:
-                        // you can add your own custom options here if
-                        // and when you create one that shouldn't be
-                        // deep extended (see ajaxExtend)
-                        flatOptions: {
-                            url: true,
-                            context: true
-                        }
-                    },
-
-                    // Creates a full fledged settings object into target
-                    // with both ajaxSettings and settings fields.
-                    // If target is omitted, writes into ajaxSettings.
-                    ajaxSetup: function( target, settings ) {
-                        return settings ?
-
-                            // Building a settings object
-                            ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
-                            // Extending ajaxSettings
-                            ajaxExtend( jQuery.ajaxSettings, target );
-                    },
-
-                    ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-                    ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-                    // Main method
-                    ajax: function( url, options ) {
-
-                        // If url is an object, simulate pre-1.5 signature
-                        if ( typeof url === "object" ) {
-                            options = url;
-                            url = undefined;
-                        }
-
-                        // Force options to be an object
-                        options = options || {};
-
-                        var transport,
-
-                            // URL without anti-cache param
-                            cacheURL,
-
-                            // Response headers
-                            responseHeadersString,
-                            responseHeaders,
-
-                            // timeout handle
-                            timeoutTimer,
-
-                            // Url cleanup var
-                            urlAnchor,
-
-                            // Request state (becomes false upon send and true upon completion)
-                            completed,
-
-                            // To know if global events are to be dispatched
-                            fireGlobals,
-
-                            // Loop variable
-                            i,
-
-                            // uncached part of the url
-                            uncached,
-
-                            // Create the final options object
-                            s = jQuery.ajaxSetup( {}, options ),
-
-                            // Callbacks context
-                            callbackContext = s.context || s,
-
-                            // Context for global events is callbackContext if it is a DOM node or jQuery collection
-                            globalEventContext = s.context &&
-                            ( callbackContext.nodeType || callbackContext.jquery ) ?
-                                jQuery( callbackContext ) :
-                                jQuery.event,
-
-                            // Deferreds
-                            deferred = jQuery.Deferred(),
-                            completeDeferred = jQuery.Callbacks( "once memory" ),
-
-                            // Status-dependent callbacks
-                            statusCode = s.statusCode || {},
-
-                            // Headers (they are sent all at once)
-                            requestHeaders = {},
-                            requestHeadersNames = {},
-
-                            // Default abort message
-                            strAbort = "canceled",
-
-                            // Fake xhr
-                            jqXHR = {
-                                readyState: 0,
-
-                                // Builds headers hashtable if needed
-                                getResponseHeader: function( key ) {
-                                    var match;
-                                    if ( completed ) {
-                                        if ( !responseHeaders ) {
-                                            responseHeaders = {};
-                                            while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
-                                                    ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
-                                                        .concat( match[ 2 ] );
-                                            }
-                                        }
-                                        match = responseHeaders[ key.toLowerCase() + " " ];
-                                    }
-                                    return match == null ? null : match.join( ", " );
-                                },
-
-                                // Raw string
-                                getAllResponseHeaders: function() {
-                                    return completed ? responseHeadersString : null;
-                                },
-
-                                // Caches the header
-                                setRequestHeader: function( name, value ) {
-                                    if ( completed == null ) {
-                                        name = requestHeadersNames[ name.toLowerCase() ] =
-                                            requestHeadersNames[ name.toLowerCase() ] || name;
-                                        requestHeaders[ name ] = value;
-                                    }
-                                    return this;
-                                },
-
-                                // Overrides response content-type header
-                                overrideMimeType: function( type ) {
-                                    if ( completed == null ) {
-                                        s.mimeType = type;
-                                    }
-                                    return this;
-                                },
-
-                                // Status-dependent callbacks
-                                statusCode: function( map ) {
-                                    var code;
-                                    if ( map ) {
-                                        if ( completed ) {
-
-                                            // Execute the appropriate callbacks
-                                            jqXHR.always( map[ jqXHR.status ] );
-                                        } else {
-
-                                            // Lazy-add the new callbacks in a way that preserves old ones
-                                            for ( code in map ) {
-                                                statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
-                                            }
-                                        }
-                                    }
-                                    return this;
-                                },
-
-                                // Cancel the request
-                                abort: function( statusText ) {
-                                    var finalText = statusText || strAbort;
-                                    if ( transport ) {
-                                        transport.abort( finalText );
-                                    }
-                                    done( 0, finalText );
-                                    return this;
-                                }
-                            };
-
-                        // Attach deferreds
-                        deferred.promise( jqXHR );
-
-                        // Add protocol if not provided (prefilters might expect it)
-                        // Handle falsy url in the settings object (#10093: consistency with old signature)
-                        // We also use the url parameter if available
-                        s.url = ( ( url || s.url || location.href ) + "" )
-                            .replace( rprotocol, location.protocol + "//" );
-
-                        // Alias method option to type as per ticket #12004
-                        s.type = options.method || options.type || s.method || s.type;
-
-                        // Extract dataTypes list
-                        s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
-
-                        // A cross-domain request is in order when the origin doesn't match the current origin.
-                        if ( s.crossDomain == null ) {
-                            urlAnchor = document.createElement( "a" );
-
-                            // Support: IE <=8 - 11, Edge 12 - 15
-                            // IE throws exception on accessing the href property if url is malformed,
-                            // e.g. http://example.com:80x/
-                            try {
-                                urlAnchor.href = s.url;
-
-                                // Support: IE <=8 - 11 only
-                                // Anchor's host property isn't correctly set when s.url is relative
-                                urlAnchor.href = urlAnchor.href;
-                                s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
-                                    urlAnchor.protocol + "//" + urlAnchor.host;
-                            } catch ( e ) {
-
-                                // If there is an error parsing the URL, assume it is crossDomain,
-                                // it can be rejected by the transport if it is invalid
-                                s.crossDomain = true;
-                            }
-                        }
-
-                        // Convert data if not already a string
-                        if ( s.data && s.processData && typeof s.data !== "string" ) {
-                            s.data = jQuery.param( s.data, s.traditional );
-                        }
-
-                        // Apply prefilters
-                        inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-                        // If request was aborted inside a prefilter, stop there
-                        if ( completed ) {
-                            return jqXHR;
-                        }
-
-                        // We can fire global events as of now if asked to
-                        // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
-                        fireGlobals = jQuery.event && s.global;
-
-                        // Watch for a new set of requests
-                        if ( fireGlobals && jQuery.active++ === 0 ) {
-                            jQuery.event.trigger( "ajaxStart" );
-                        }
-
-                        // Uppercase the type
-                        s.type = s.type.toUpperCase();
-
-                        // Determine if request has content
-                        s.hasContent = !rnoContent.test( s.type );
-
-                        // Save the URL in case we're toying with the If-Modified-Since
-                        // and/or If-None-Match header later on
-                        // Remove hash to simplify url manipulation
-                        cacheURL = s.url.replace( rhash, "" );
-
-                        // More options handling for requests with no content
-                        if ( !s.hasContent ) {
-
-                            // Remember the hash so we can put it back
-                            uncached = s.url.slice( cacheURL.length );
-
-                            // If data is available and should be processed, append data to url
-                            if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
-                                cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
-
-                                // #9682: remove data so that it's not used in an eventual retry
-                                delete s.data;
-                            }
-
-                            // Add or update anti-cache param if needed
-                            if ( s.cache === false ) {
-                                cacheURL = cacheURL.replace( rantiCache, "$1" );
-                                uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) +
-                                    uncached;
-                            }
-
-                            // Put hash and anti-cache on the URL that will be requested (gh-1732)
-                            s.url = cacheURL + uncached;
-
-                            // Change '%20' to '+' if this is encoded form body content (gh-2658)
-                        } else if ( s.data && s.processData &&
-                            ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
-                            s.data = s.data.replace( r20, "+" );
-                        }
-
-                        // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                        if ( s.ifModified ) {
-                            if ( jQuery.lastModified[ cacheURL ] ) {
-                                jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
-                            }
-                            if ( jQuery.etag[ cacheURL ] ) {
-                                jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
-                            }
-                        }
-
-                        // Set the correct header, if data is being sent
-                        if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                            jqXHR.setRequestHeader( "Content-Type", s.contentType );
-                        }
-
-                        // Set the Accepts header for the server, depending on the dataType
-                        jqXHR.setRequestHeader(
-                            "Accept",
-                            s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
-                                s.accepts[ s.dataTypes[ 0 ] ] +
-                                ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                                s.accepts[ "*" ]
-                        );
-
-                        // Check for headers option
-                        for ( i in s.headers ) {
-                            jqXHR.setRequestHeader( i, s.headers[ i ] );
-                        }
-
-                        // Allow custom headers/mimetypes and early abort
-                        if ( s.beforeSend &&
-                            ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
-
-                            // Abort if not done already and return
-                            return jqXHR.abort();
-                        }
-
-                        // Aborting is no longer a cancellation
-                        strAbort = "abort";
-
-                        // Install callbacks on deferreds
-                        completeDeferred.add( s.complete );
-                        jqXHR.done( s.success );
-                        jqXHR.fail( s.error );
-
-                        // Get transport
-                        transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-                        // If no transport, we auto-abort
-                        if ( !transport ) {
-                            done( -1, "No Transport" );
-                        } else {
-                            jqXHR.readyState = 1;
-
-                            // Send global event
-                            if ( fireGlobals ) {
-                                globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                            }
-
-                            // If request was aborted inside ajaxSend, stop there
-                            if ( completed ) {
-                                return jqXHR;
-                            }
-
-                            // Timeout
-                            if ( s.async && s.timeout > 0 ) {
-                                timeoutTimer = window.setTimeout( function() {
-                                    jqXHR.abort( "timeout" );
-                                }, s.timeout );
-                            }
-
-                            try {
-                                completed = false;
-                                transport.send( requestHeaders, done );
-                            } catch ( e ) {
-
-                                // Rethrow post-completion exceptions
-                                if ( completed ) {
-                                    throw e;
-                                }
-
-                                // Propagate others as results
-                                done( -1, e );
-                            }
-                        }
-
-                        // Callback for when everything is done
-                        function done( status, nativeStatusText, responses, headers ) {
-                            var isSuccess, success, error, response, modified,
-                                statusText = nativeStatusText;
-
-                            // Ignore repeat invocations
-                            if ( completed ) {
-                                return;
-                            }
-
-                            completed = true;
-
-                            // Clear timeout if it exists
-                            if ( timeoutTimer ) {
-                                window.clearTimeout( timeoutTimer );
-                            }
-
-                            // Dereference transport for early garbage collection
-                            // (no matter how long the jqXHR object will be used)
-                            transport = undefined;
-
-                            // Cache response headers
-                            responseHeadersString = headers || "";
-
-                            // Set readyState
-                            jqXHR.readyState = status > 0 ? 4 : 0;
-
-                            // Determine if successful
-                            isSuccess = status >= 200 && status < 300 || status === 304;
-
-                            // Get response data
-                            if ( responses ) {
-                                response = ajaxHandleResponses( s, jqXHR, responses );
-                            }
-
-                            // Use a noop converter for missing script
-                            if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) {
-                                s.converters[ "text script" ] = function() {};
-                            }
-
-                            // Convert no matter what (that way responseXXX fields are always set)
-                            response = ajaxConvert( s, response, jqXHR, isSuccess );
-
-                            // If successful, handle type chaining
-                            if ( isSuccess ) {
-
-                                // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                                if ( s.ifModified ) {
-                                    modified = jqXHR.getResponseHeader( "Last-Modified" );
-                                    if ( modified ) {
-                                        jQuery.lastModified[ cacheURL ] = modified;
-                                    }
-                                    modified = jqXHR.getResponseHeader( "etag" );
-                                    if ( modified ) {
-                                        jQuery.etag[ cacheURL ] = modified;
-                                    }
-                                }
-
-                                // if no content
-                                if ( status === 204 || s.type === "HEAD" ) {
-                                    statusText = "nocontent";
-
-                                    // if not modified
-                                } else if ( status === 304 ) {
-                                    statusText = "notmodified";
-
-                                    // If we have data, let's convert it
-                                } else {
-                                    statusText = response.state;
-                                    success = response.data;
-                                    error = response.error;
-                                    isSuccess = !error;
-                                }
-                            } else {
-
-                                // Extract error from statusText and normalize for non-aborts
-                                error = statusText;
-                                if ( status || !statusText ) {
-                                    statusText = "error";
-                                    if ( status < 0 ) {
-                                        status = 0;
-                                    }
-                                }
-                            }
-
-                            // Set data for the fake xhr object
-                            jqXHR.status = status;
-                            jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
-                            // Success/Error
-                            if ( isSuccess ) {
-                                deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                            } else {
-                                deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                            }
-
-                            // Status-dependent callbacks
-                            jqXHR.statusCode( statusCode );
-                            statusCode = undefined;
-
-                            if ( fireGlobals ) {
-                                globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
-                                    [ jqXHR, s, isSuccess ? success : error ] );
-                            }
-
-                            // Complete
-                            completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
-                            if ( fireGlobals ) {
-                                globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
-                                // Handle the global AJAX counter
-                                if ( !( --jQuery.active ) ) {
-                                    jQuery.event.trigger( "ajaxStop" );
-                                }
-                            }
-                        }
-
-                        return jqXHR;
-                    },
-
-                    getJSON: function( url, data, callback ) {
-                        return jQuery.get( url, data, callback, "json" );
-                    },
-
-                    getScript: function( url, callback ) {
-                        return jQuery.get( url, undefined, callback, "script" );
-                    }
-                } );
-
-                jQuery.each( [ "get", "post" ], function( _i, method ) {
-                    jQuery[ method ] = function( url, data, callback, type ) {
-
-                        // Shift arguments if data argument was omitted
-                        if ( isFunction( data ) ) {
-                            type = type || callback;
-                            callback = data;
-                            data = undefined;
-                        }
-
-                        // The url can be an options object (which then must have .url)
-                        return jQuery.ajax( jQuery.extend( {
-                            url: url,
-                            type: method,
-                            dataType: type,
-                            data: data,
-                            success: callback
-                        }, jQuery.isPlainObject( url ) && url ) );
-                    };
-                } );
-
-                jQuery.ajaxPrefilter( function( s ) {
-                    var i;
-                    for ( i in s.headers ) {
-                        if ( i.toLowerCase() === "content-type" ) {
-                            s.contentType = s.headers[ i ] || "";
-                        }
-                    }
-                } );
-
-
-                jQuery._evalUrl = function( url, options, doc ) {
-                    return jQuery.ajax( {
-                        url: url,
-
-                        // Make this explicit, since user can override this through ajaxSetup (#11264)
-                        type: "GET",
-                        dataType: "script",
-                        cache: true,
-                        async: false,
-                        global: false,
-
-                        // Only evaluate the response if it is successful (gh-4126)
-                        // dataFilter is not invoked for failure responses, so using it instead
-                        // of the default converter is kludgy but it works.
-                        converters: {
-                            "text script": function() {}
-                        },
-                        dataFilter: function( response ) {
-                            jQuery.globalEval( response, options, doc );
-                        }
-                    } );
-                };
-
-
-                jQuery.fn.extend( {
-                    wrapAll: function( html ) {
-                        var wrap;
-
-                        if ( this[ 0 ] ) {
-                            if ( isFunction( html ) ) {
-                                html = html.call( this[ 0 ] );
-                            }
-
-                            // The elements to wrap the target around
-                            wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
-                            if ( this[ 0 ].parentNode ) {
-                                wrap.insertBefore( this[ 0 ] );
-                            }
-
-                            wrap.map( function() {
-                                var elem = this;
-
-                                while ( elem.firstElementChild ) {
-                                    elem = elem.firstElementChild;
-                                }
-
-                                return elem;
-                            } ).append( this );
-                        }
-
-                        return this;
-                    },
-
-                    wrapInner: function( html ) {
-                        if ( isFunction( html ) ) {
-                            return this.each( function( i ) {
-                                jQuery( this ).wrapInner( html.call( this, i ) );
-                            } );
-                        }
-
-                        return this.each( function() {
-                            var self = jQuery( this ),
-                                contents = self.contents();
-
-                            if ( contents.length ) {
-                                contents.wrapAll( html );
-
-                            } else {
-                                self.append( html );
-                            }
-                        } );
-                    },
-
-                    wrap: function( html ) {
-                        var htmlIsFunction = isFunction( html );
-
-                        return this.each( function( i ) {
-                            jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
-                        } );
-                    },
-
-                    unwrap: function( selector ) {
-                        this.parent( selector ).not( "body" ).each( function() {
-                            jQuery( this ).replaceWith( this.childNodes );
-                        } );
-                        return this;
-                    }
-                } );
-
-
-                jQuery.expr.pseudos.hidden = function( elem ) {
-                    return !jQuery.expr.pseudos.visible( elem );
-                };
-                jQuery.expr.pseudos.visible = function( elem ) {
-                    return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
-                };
-
-
-
-
-                jQuery.ajaxSettings.xhr = function() {
-                    try {
-                        return new window.XMLHttpRequest();
-                    } catch ( e ) {}
-                };
-
-                var xhrSuccessStatus = {
-
-                        // File protocol always yields status code 0, assume 200
-                        0: 200,
-
-                        // Support: IE <=9 only
-                        // #1450: sometimes IE returns 1223 when it should be 204
-                        1223: 204
-                    },
-                    xhrSupported = jQuery.ajaxSettings.xhr();
-
-                support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-                support.ajax = xhrSupported = !!xhrSupported;
-
-                jQuery.ajaxTransport( function( options ) {
-                    var callback, errorCallback;
-
-                    // Cross domain only allowed if supported through XMLHttpRequest
-                    if ( support.cors || xhrSupported && !options.crossDomain ) {
-                        return {
-                            send: function( headers, complete ) {
-                                var i,
-                                    xhr = options.xhr();
-
-                                xhr.open(
-                                    options.type,
-                                    options.url,
-                                    options.async,
-                                    options.username,
-                                    options.password
-                                );
-
-                                // Apply custom fields if provided
-                                if ( options.xhrFields ) {
-                                    for ( i in options.xhrFields ) {
-                                        xhr[ i ] = options.xhrFields[ i ];
-                                    }
-                                }
-
-                                // Override mime type if needed
-                                if ( options.mimeType && xhr.overrideMimeType ) {
-                                    xhr.overrideMimeType( options.mimeType );
-                                }
-
-                                // X-Requested-With header
-                                // For cross-domain requests, seeing as conditions for a preflight are
-                                // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                // (it can always be set on a per-request basis or even using ajaxSetup)
-                                // For same-domain requests, won't change header if already provided.
-                                if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
-                                    headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                }
-
-                                // Set headers
-                                for ( i in headers ) {
-                                    xhr.setRequestHeader( i, headers[ i ] );
-                                }
-
-                                // Callback
-                                callback = function( type ) {
-                                    return function() {
-                                        if ( callback ) {
-                                            callback = errorCallback = xhr.onload =
-                                                xhr.onerror = xhr.onabort = xhr.ontimeout =
-                                                    xhr.onreadystatechange = null;
-
-                                            if ( type === "abort" ) {
-                                                xhr.abort();
-                                            } else if ( type === "error" ) {
-
-                                                // Support: IE <=9 only
-                                                // On a manual native abort, IE9 throws
-                                                // errors on any property access that is not readyState
-                                                if ( typeof xhr.status !== "number" ) {
-                                                    complete( 0, "error" );
-                                                } else {
-                                                    complete(
-
-                                                        // File: protocol always yields status 0; see #8605, #14207
-                                                        xhr.status,
-                                                        xhr.statusText
-                                                    );
-                                                }
-                                            } else {
-                                                complete(
-                                                    xhrSuccessStatus[ xhr.status ] || xhr.status,
-                                                    xhr.statusText,
-
-                                                    // Support: IE <=9 only
-                                                    // IE9 has no XHR2 but throws on binary (trac-11426)
-                                                    // For XHR2 non-text, let the caller handle it (gh-2498)
-                                                    ( xhr.responseType || "text" ) !== "text"  ||
-                                                    typeof xhr.responseText !== "string" ?
-                                                        { binary: xhr.response } :
-                                                        { text: xhr.responseText },
-                                                    xhr.getAllResponseHeaders()
-                                                );
-                                            }
-                                        }
-                                    };
-                                };
-
-                                // Listen to events
-                                xhr.onload = callback();
-                                errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
-
-                                // Support: IE 9 only
-                                // Use onreadystatechange to replace onabort
-                                // to handle uncaught aborts
-                                if ( xhr.onabort !== undefined ) {
-                                    xhr.onabort = errorCallback;
-                                } else {
-                                    xhr.onreadystatechange = function() {
-
-                                        // Check readyState before timeout as it changes
-                                        if ( xhr.readyState === 4 ) {
-
-                                            // Allow onerror to be called first,
-                                            // but that will not handle a native abort
-                                            // Also, save errorCallback to a variable
-                                            // as xhr.onerror cannot be accessed
-                                            window.setTimeout( function() {
-                                                if ( callback ) {
-                                                    errorCallback();
-                                                }
-                                            } );
-                                        }
-                                    };
-                                }
-
-                                // Create the abort callback
-                                callback = callback( "abort" );
-
-                                try {
-
-                                    // Do send the request (this may raise an exception)
-                                    xhr.send( options.hasContent && options.data || null );
-                                } catch ( e ) {
-
-                                    // #14683: Only rethrow if this hasn't been notified as an error yet
-                                    if ( callback ) {
-                                        throw e;
-                                    }
-                                }
-                            },
-
-                            abort: function() {
-                                if ( callback ) {
-                                    callback();
-                                }
-                            }
-                        };
-                    }
-                } );
-
-
-
-
-// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
-                jQuery.ajaxPrefilter( function( s ) {
-                    if ( s.crossDomain ) {
-                        s.contents.script = false;
-                    }
-                } );
-
-// Install script dataType
-                jQuery.ajaxSetup( {
-                    accepts: {
-                        script: "text/javascript, application/javascript, " +
-                            "application/ecmascript, application/x-ecmascript"
-                    },
-                    contents: {
-                        script: /\b(?:java|ecma)script\b/
-                    },
-                    converters: {
-                        "text script": function( text ) {
-                            jQuery.globalEval( text );
-                            return text;
-                        }
-                    }
-                } );
-
-// Handle cache's special case and crossDomain
-                jQuery.ajaxPrefilter( "script", function( s ) {
-                    if ( s.cache === undefined ) {
-                        s.cache = false;
-                    }
-                    if ( s.crossDomain ) {
-                        s.type = "GET";
-                    }
-                } );
-
-// Bind script tag hack transport
-                jQuery.ajaxTransport( "script", function( s ) {
-
-                    // This transport only deals with cross domain or forced-by-attrs requests
-                    if ( s.crossDomain || s.scriptAttrs ) {
-                        var script, callback;
-                        return {
-                            send: function( _, complete ) {
-                                script = jQuery( "<script>" )
-                                    .attr( s.scriptAttrs || {} )
-                                    .prop( { charset: s.scriptCharset, src: s.url } )
-                                    .on( "load error", callback = function( evt ) {
-                                        script.remove();
-                                        callback = null;
-                                        if ( evt ) {
-                                            complete( evt.type === "error" ? 404 : 200, evt.type );
-                                        }
-                                    } );
-
-                                // Use native DOM manipulation to avoid our domManip AJAX trickery
-                                document.head.appendChild( script[ 0 ] );
-                            },
-                            abort: function() {
-                                if ( callback ) {
-                                    callback();
-                                }
-                            }
-                        };
-                    }
-                } );
-
-
-
-
-                var oldCallbacks = [],
-                    rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-                jQuery.ajaxSetup( {
-                    jsonp: "callback",
-                    jsonpCallback: function() {
-                        var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce.guid++ ) );
-                        this[ callback ] = true;
-                        return callback;
-                    }
-                } );
-
-// Detect, normalize options and install callbacks for jsonp requests
-                jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-                    var callbackName, overwritten, responseContainer,
-                        jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
-                                "url" :
-                                typeof s.data === "string" &&
-                                ( s.contentType || "" )
-                                    .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
-                                rjsonp.test( s.data ) && "data"
-                        );
-
-                    // Handle iff the expected data type is "jsonp" or we have a parameter to set
-                    if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
-                        // Get callback name, remembering preexisting value associated with it
-                        callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
-                            s.jsonpCallback() :
-                            s.jsonpCallback;
-
-                        // Insert callback into url or form data
-                        if ( jsonProp ) {
-                            s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
-                        } else if ( s.jsonp !== false ) {
-                            s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
-                        }
-
-                        // Use data converter to retrieve json after script execution
-                        s.converters[ "script json" ] = function() {
-                            if ( !responseContainer ) {
-                                jQuery.error( callbackName + " was not called" );
-                            }
-                            return responseContainer[ 0 ];
-                        };
-
-                        // Force json dataType
-                        s.dataTypes[ 0 ] = "json";
-
-                        // Install callback
-                        overwritten = window[ callbackName ];
-                        window[ callbackName ] = function() {
-                            responseContainer = arguments;
-                        };
-
-                        // Clean-up function (fires after converters)
-                        jqXHR.always( function() {
-
-                            // If previous value didn't exist - remove it
-                            if ( overwritten === undefined ) {
-                                jQuery( window ).removeProp( callbackName );
-
-                                // Otherwise restore preexisting value
-                            } else {
-                                window[ callbackName ] = overwritten;
-                            }
-
-                            // Save back as free
-                            if ( s[ callbackName ] ) {
-
-                                // Make sure that re-using the options doesn't screw things around
-                                s.jsonpCallback = originalSettings.jsonpCallback;
-
-                                // Save the callback name for future use
-                                oldCallbacks.push( callbackName );
-                            }
-
-                            // Call if it was a function and we have a response
-                            if ( responseContainer && isFunction( overwritten ) ) {
-                                overwritten( responseContainer[ 0 ] );
-                            }
-
-                            responseContainer = overwritten = undefined;
-                        } );
-
-                        // Delegate to script
-                        return "script";
-                    }
-                } );
-
-
-
-
-// Support: Safari 8 only
-// In Safari 8 documents created via document.implementation.createHTMLDocument
-// collapse sibling forms: the second one becomes a child of the first one.
-// Because of that, this security measure has to be disabled in Safari 8.
-// https://bugs.webkit.org/show_bug.cgi?id=137337
-                support.createHTMLDocument = ( function() {
-                    var body = document.implementation.createHTMLDocument( "" ).body;
-                    body.innerHTML = "<form></form><form></form>";
-                    return body.childNodes.length === 2;
-                } )();
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-                jQuery.parseHTML = function( data, context, keepScripts ) {
-                    if ( typeof data !== "string" ) {
-                        return [];
-                    }
-                    if ( typeof context === "boolean" ) {
-                        keepScripts = context;
-                        context = false;
-                    }
-
-                    var base, parsed, scripts;
-
-                    if ( !context ) {
-
-                        // Stop scripts or inline event handlers from being executed immediately
-                        // by using document.implementation
-                        if ( support.createHTMLDocument ) {
-                            context = document.implementation.createHTMLDocument( "" );
-
-                            // Set the base href for the created document
-                            // so any parsed elements with URLs
-                            // are based on the document's URL (gh-2965)
-                            base = context.createElement( "base" );
-                            base.href = document.location.href;
-                            context.head.appendChild( base );
-                        } else {
-                            context = document;
-                        }
-                    }
-
-                    parsed = rsingleTag.exec( data );
-                    scripts = !keepScripts && [];
-
-                    // Single tag
-                    if ( parsed ) {
-                        return [ context.createElement( parsed[ 1 ] ) ];
-                    }
-
-                    parsed = buildFragment( [ data ], context, scripts );
-
-                    if ( scripts && scripts.length ) {
-                        jQuery( scripts ).remove();
-                    }
-
-                    return jQuery.merge( [], parsed.childNodes );
-                };
-
-
-                /**
-                 * Load a url into a page
-                 */
-                jQuery.fn.load = function( url, params, callback ) {
-                    var selector, type, response,
-                        self = this,
-                        off = url.indexOf( " " );
-
-                    if ( off > -1 ) {
-                        selector = stripAndCollapse( url.slice( off ) );
-                        url = url.slice( 0, off );
-                    }
-
-                    // If it's a function
-                    if ( isFunction( params ) ) {
-
-                        // We assume that it's the callback
-                        callback = params;
-                        params = undefined;
-
-                        // Otherwise, build a param string
-                    } else if ( params && typeof params === "object" ) {
-                        type = "POST";
-                    }
-
-                    // If we have elements to modify, make the request
-                    if ( self.length > 0 ) {
-                        jQuery.ajax( {
-                            url: url,
-
-                            // If "type" variable is undefined, then "GET" method will be used.
-                            // Make value of this field explicit since
-                            // user can override it through ajaxSetup method
-                            type: type || "GET",
-                            dataType: "html",
-                            data: params
-                        } ).done( function( responseText ) {
-
-                            // Save response for use in complete callback
-                            response = arguments;
-
-                            self.html( selector ?
-
-                                // If a selector was specified, locate the right elements in a dummy div
-                                // Exclude scripts to avoid IE 'Permission Denied' errors
-                                jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
-                                // Otherwise use the full result
-                                responseText );
-
-                            // If the request succeeds, this function gets "data", "status", "jqXHR"
-                            // but they are ignored because response was set above.
-                            // If it fails, this function gets "jqXHR", "status", "error"
-                        } ).always( callback && function( jqXHR, status ) {
-                            self.each( function() {
-                                callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
-                            } );
-                        } );
-                    }
-
-                    return this;
-                };
-
-
-
-
-                jQuery.expr.pseudos.animated = function( elem ) {
-                    return jQuery.grep( jQuery.timers, function( fn ) {
-                        return elem === fn.elem;
-                    } ).length;
-                };
-
-
-
-
-                jQuery.offset = {
-                    setOffset: function( elem, options, i ) {
-                        var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
-                            position = jQuery.css( elem, "position" ),
-                            curElem = jQuery( elem ),
-                            props = {};
-
-                        // Set position first, in-case top/left are set even on static elem
-                        if ( position === "static" ) {
-                            elem.style.position = "relative";
-                        }
-
-                        curOffset = curElem.offset();
-                        curCSSTop = jQuery.css( elem, "top" );
-                        curCSSLeft = jQuery.css( elem, "left" );
-                        calculatePosition = ( position === "absolute" || position === "fixed" ) &&
-                            ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
-                        // Need to be able to calculate position if either
-                        // top or left is auto and position is either absolute or fixed
-                        if ( calculatePosition ) {
-                            curPosition = curElem.position();
-                            curTop = curPosition.top;
-                            curLeft = curPosition.left;
-
-                        } else {
-                            curTop = parseFloat( curCSSTop ) || 0;
-                            curLeft = parseFloat( curCSSLeft ) || 0;
-                        }
-
-                        if ( isFunction( options ) ) {
-
-                            // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
-                            options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
-                        }
-
-                        if ( options.top != null ) {
-                            props.top = ( options.top - curOffset.top ) + curTop;
-                        }
-                        if ( options.left != null ) {
-                            props.left = ( options.left - curOffset.left ) + curLeft;
-                        }
-
-                        if ( "using" in options ) {
-                            options.using.call( elem, props );
-
-                        } else {
-                            if ( typeof props.top === "number" ) {
-                                props.top += "px";
-                            }
-                            if ( typeof props.left === "number" ) {
-                                props.left += "px";
-                            }
-                            curElem.css( props );
-                        }
-                    }
-                };
-
-                jQuery.fn.extend( {
-
-                    // offset() relates an element's border box to the document origin
-                    offset: function( options ) {
-
-                        // Preserve chaining for setter
-                        if ( arguments.length ) {
-                            return options === undefined ?
-                                this :
-                                this.each( function( i ) {
-                                    jQuery.offset.setOffset( this, options, i );
-                                } );
-                        }
-
-                        var rect, win,
-                            elem = this[ 0 ];
-
-                        if ( !elem ) {
-                            return;
-                        }
-
-                        // Return zeros for disconnected and hidden (display: none) elements (gh-2310)
-                        // Support: IE <=11 only
-                        // Running getBoundingClientRect on a
-                        // disconnected node in IE throws an error
-                        if ( !elem.getClientRects().length ) {
-                            return { top: 0, left: 0 };
-                        }
-
-                        // Get document-relative position by adding viewport scroll to viewport-relative gBCR
-                        rect = elem.getBoundingClientRect();
-                        win = elem.ownerDocument.defaultView;
-                        return {
-                            top: rect.top + win.pageYOffset,
-                            left: rect.left + win.pageXOffset
-                        };
-                    },
-
-                    // position() relates an element's margin box to its offset parent's padding box
-                    // This corresponds to the behavior of CSS absolute positioning
-                    position: function() {
-                        if ( !this[ 0 ] ) {
-                            return;
-                        }
-
-                        var offsetParent, offset, doc,
-                            elem = this[ 0 ],
-                            parentOffset = { top: 0, left: 0 };
-
-                        // position:fixed elements are offset from the viewport, which itself always has zero offset
-                        if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
-                            // Assume position:fixed implies availability of getBoundingClientRect
-                            offset = elem.getBoundingClientRect();
-
-                        } else {
-                            offset = this.offset();
-
-                            // Account for the *real* offset parent, which can be the document or its root element
-                            // when a statically positioned element is identified
-                            doc = elem.ownerDocument;
-                            offsetParent = elem.offsetParent || doc.documentElement;
-                            while ( offsetParent &&
-                            ( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
-                            jQuery.css( offsetParent, "position" ) === "static" ) {
-
-                                offsetParent = offsetParent.parentNode;
-                            }
-                            if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
-
-                                // Incorporate borders into its offset, since they are outside its content origin
-                                parentOffset = jQuery( offsetParent ).offset();
-                                parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
-                                parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
-                            }
-                        }
-
-                        // Subtract parent offsets and element margins
-                        return {
-                            top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
-                            left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
-                        };
-                    },
-
-                    // This method will return documentElement in the following cases:
-                    // 1) For the element inside the iframe without offsetParent, this method will return
-                    //    documentElement of the parent window
-                    // 2) For the hidden or detached element
-                    // 3) For body or html element, i.e. in case of the html node - it will return itself
-                    //
-                    // but those exceptions were never presented as a real life use-cases
-                    // and might be considered as more preferable results.
-                    //
-                    // This logic, however, is not guaranteed and can change at any point in the future
-                    offsetParent: function() {
-                        return this.map( function() {
-                            var offsetParent = this.offsetParent;
-
-                            while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
-                                offsetParent = offsetParent.offsetParent;
-                            }
-
-                            return offsetParent || documentElement;
-                        } );
-                    }
-                } );
-
-// Create scrollLeft and scrollTop methods
-                jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
-                    var top = "pageYOffset" === prop;
-
-                    jQuery.fn[ method ] = function( val ) {
-                        return access( this, function( elem, method, val ) {
-
-                            // Coalesce documents and windows
-                            var win;
-                            if ( isWindow( elem ) ) {
-                                win = elem;
-                            } else if ( elem.nodeType === 9 ) {
-                                win = elem.defaultView;
-                            }
-
-                            if ( val === undefined ) {
-                                return win ? win[ prop ] : elem[ method ];
-                            }
-
-                            if ( win ) {
-                                win.scrollTo(
-                                    !top ? val : win.pageXOffset,
-                                    top ? val : win.pageYOffset
-                                );
-
-                            } else {
-                                elem[ method ] = val;
-                            }
-                        }, method, val, arguments.length );
-                    };
-                } );
-
-// Support: Safari <=7 - 9.1, Chrome <=37 - 49
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-                jQuery.each( [ "top", "left" ], function( _i, prop ) {
-                    jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
-                        function( elem, computed ) {
-                            if ( computed ) {
-                                computed = curCSS( elem, prop );
-
-                                // If curCSS returns percentage, fallback to offset
-                                return rnumnonpx.test( computed ) ?
-                                    jQuery( elem ).position()[ prop ] + "px" :
-                                    computed;
-                            }
-                        }
-                    );
-                } );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-                jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
-                    jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
-                        function( defaultExtra, funcName ) {
-
-                            // Margin is only for outerHeight, outerWidth
-                            jQuery.fn[ funcName ] = function( margin, value ) {
-                                var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
-                                    extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
-                                return access( this, function( elem, type, value ) {
-                                    var doc;
-
-                                    if ( isWindow( elem ) ) {
-
-                                        // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
-                                        return funcName.indexOf( "outer" ) === 0 ?
-                                            elem[ "inner" + name ] :
-                                            elem.document.documentElement[ "client" + name ];
-                                    }
-
-                                    // Get document width or height
-                                    if ( elem.nodeType === 9 ) {
-                                        doc = elem.documentElement;
-
-                                        // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
-                                        // whichever is greatest
-                                        return Math.max(
-                                            elem.body[ "scroll" + name ], doc[ "scroll" + name ],
-                                            elem.body[ "offset" + name ], doc[ "offset" + name ],
-                                            doc[ "client" + name ]
-                                        );
-                                    }
-
-                                    return value === undefined ?
-
-                                        // Get width or height on the element, requesting but not forcing parseFloat
-                                        jQuery.css( elem, type, extra ) :
-
-                                        // Set width or height on the element
-                                        jQuery.style( elem, type, value, extra );
-                                }, type, chainable ? margin : undefined, chainable );
-                            };
-                        } );
-                } );
-
-
-                jQuery.each( [
-                    "ajaxStart",
-                    "ajaxStop",
-                    "ajaxComplete",
-                    "ajaxError",
-                    "ajaxSuccess",
-                    "ajaxSend"
-                ], function( _i, type ) {
-                    jQuery.fn[ type ] = function( fn ) {
-                        return this.on( type, fn );
-                    };
-                } );
-
-
-
-
-                jQuery.fn.extend( {
-
-                    bind: function( types, data, fn ) {
-                        return this.on( types, null, data, fn );
-                    },
-                    unbind: function( types, fn ) {
-                        return this.off( types, null, fn );
-                    },
-
-                    delegate: function( selector, types, data, fn ) {
-                        return this.on( types, selector, data, fn );
-                    },
-                    undelegate: function( selector, types, fn ) {
-
-                        // ( namespace ) or ( selector, types [, fn] )
-                        return arguments.length === 1 ?
-                            this.off( selector, "**" ) :
-                            this.off( types, selector || "**", fn );
-                    },
-
-                    hover: function( fnOver, fnOut ) {
-                        return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-                    }
-                } );
-
-                jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
-                        "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-                        "change select submit keydown keypress keyup contextmenu" ).split( " " ),
-                    function( _i, name ) {
-
-                        // Handle event binding
-                        jQuery.fn[ name ] = function( data, fn ) {
-                            return arguments.length > 0 ?
-                                this.on( name, null, data, fn ) :
-                                this.trigger( name );
-                        };
-                    } );
-
-
-
-
-// Support: Android <=4.0 only
-// Make sure we trim BOM and NBSP
-                var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
-
-// Bind a function to a context, optionally partially applying any
-// arguments.
-// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
-// However, it is not slated for removal any time soon
-                jQuery.proxy = function( fn, context ) {
-                    var tmp, args, proxy;
-
-                    if ( typeof context === "string" ) {
-                        tmp = fn[ context ];
-                        context = fn;
-                        fn = tmp;
-                    }
-
-                    // Quick check to determine if target is callable, in the spec
-                    // this throws a TypeError, but we will just return undefined.
-                    if ( !isFunction( fn ) ) {
-                        return undefined;
-                    }
-
-                    // Simulated bind
-                    args = slice.call( arguments, 2 );
-                    proxy = function() {
-                        return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
-                    };
-
-                    // Set the guid of unique handler to the same of original handler, so it can be removed
-                    proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
-                    return proxy;
-                };
-
-                jQuery.holdReady = function( hold ) {
-                    if ( hold ) {
-                        jQuery.readyWait++;
-                    } else {
-                        jQuery.ready( true );
-                    }
-                };
-                jQuery.isArray = Array.isArray;
-                jQuery.parseJSON = JSON.parse;
-                jQuery.nodeName = nodeName;
-                jQuery.isFunction = isFunction;
-                jQuery.isWindow = isWindow;
-                jQuery.camelCase = camelCase;
-                jQuery.type = toType;
-
-                jQuery.now = Date.now;
-
-                jQuery.isNumeric = function( obj ) {
-
-                    // As of jQuery 3.0, isNumeric is limited to
-                    // strings and numbers (primitives or objects)
-                    // that can be coerced to finite numbers (gh-2662)
-                    var type = jQuery.type( obj );
-                    return ( type === "number" || type === "string" ) &&
-
-                        // parseFloat NaNs numeric-cast false positives ("")
-                        // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
-                        // subtraction forces infinities to NaN
-                        !isNaN( obj - parseFloat( obj ) );
-                };
-
-                jQuery.trim = function( text ) {
-                    return text == null ?
-                        "" :
-                        ( text + "" ).replace( rtrim, "" );
-                };
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-                if ( true ) {
-                    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() {
-                        return jQuery;
-                    }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
-                    __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-                }
-
-
-
-
-                var
-
-                    // Map over jQuery in case of overwrite
-                    _jQuery = window.jQuery,
-
-                    // Map over the $ in case of overwrite
-                    _$ = window.$;
-
-                jQuery.noConflict = function( deep ) {
-                    if ( window.$ === jQuery ) {
-                        window.$ = _$;
-                    }
-
-                    if ( deep && window.jQuery === jQuery ) {
-                        window.jQuery = _jQuery;
-                    }
-
-                    return jQuery;
-                };
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-                if ( typeof noGlobal === "undefined" ) {
-                    window.jQuery = window.$ = jQuery;
-                }
-
-
-
-
-                return jQuery;
-            } );
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash.debounce/index.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash.debounce/index.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(global) {/**
-             * lodash (Custom Build) <https://lodash.com/>
-             * Build: `lodash modularize exports="npm" -o ./`
-             * Copyright jQuery Foundation and other contributors <https://jquery.org/>
-             * Released under MIT license <https://lodash.com/license>
-             * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
-             * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-             */
-
-                /** Used as the `TypeError` message for "Functions" methods. */
-                var FUNC_ERROR_TEXT = 'Expected a function';
-
-                /** Used as references for various `Number` constants. */
-                var NAN = 0 / 0;
-
-                /** `Object#toString` result references. */
-                var symbolTag = '[object Symbol]';
-
-                /** Used to match leading and trailing whitespace. */
-                var reTrim = /^\s+|\s+$/g;
-
-                /** Used to detect bad signed hexadecimal string values. */
-                var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
-                /** Used to detect binary string values. */
-                var reIsBinary = /^0b[01]+$/i;
-
-                /** Used to detect octal string values. */
-                var reIsOctal = /^0o[0-7]+$/i;
-
-                /** Built-in method references without a dependency on `root`. */
-                var freeParseInt = parseInt;
-
-                /** Detect free variable `global` from Node.js. */
-                var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
-                /** Detect free variable `self`. */
-                var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
-                /** Used as a reference to the global object. */
-                var root = freeGlobal || freeSelf || Function('return this')();
-
-                /** Used for built-in method references. */
-                var objectProto = Object.prototype;
-
-                /**
-                 * Used to resolve the
-                 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
-                 * of values.
-                 */
-                var objectToString = objectProto.toString;
-
-                /* Built-in method references for those with the same name as other `lodash` methods. */
-                var nativeMax = Math.max,
-                    nativeMin = Math.min;
-
-                /**
-                 * Gets the timestamp of the number of milliseconds that have elapsed since
-                 * the Unix epoch (1 January 1970 00:00:00 UTC).
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 2.4.0
-                 * @category Date
-                 * @returns {number} Returns the timestamp.
-                 * @example
-                 *
-                 * _.defer(function(stamp) {
-                 *   console.log(_.now() - stamp);
-                 * }, _.now());
-                 * // => Logs the number of milliseconds it took for the deferred invocation.
-                 */
-                var now = function() {
-                    return root.Date.now();
-                };
-
-                /**
-                 * Creates a debounced function that delays invoking `func` until after `wait`
-                 * milliseconds have elapsed since the last time the debounced function was
-                 * invoked. The debounced function comes with a `cancel` method to cancel
-                 * delayed `func` invocations and a `flush` method to immediately invoke them.
-                 * Provide `options` to indicate whether `func` should be invoked on the
-                 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
-                 * with the last arguments provided to the debounced function. Subsequent
-                 * calls to the debounced function return the result of the last `func`
-                 * invocation.
-                 *
-                 * **Note:** If `leading` and `trailing` options are `true`, `func` is
-                 * invoked on the trailing edge of the timeout only if the debounced function
-                 * is invoked more than once during the `wait` timeout.
-                 *
-                 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
-                 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
-                 *
-                 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
-                 * for details over the differences between `_.debounce` and `_.throttle`.
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 0.1.0
-                 * @category Function
-                 * @param {Function} func The function to debounce.
-                 * @param {number} [wait=0] The number of milliseconds to delay.
-                 * @param {Object} [options={}] The options object.
-                 * @param {boolean} [options.leading=false]
-                 *  Specify invoking on the leading edge of the timeout.
-                 * @param {number} [options.maxWait]
-                 *  The maximum time `func` is allowed to be delayed before it's invoked.
-                 * @param {boolean} [options.trailing=true]
-                 *  Specify invoking on the trailing edge of the timeout.
-                 * @returns {Function} Returns the new debounced function.
-                 * @example
-                 *
-                 * // Avoid costly calculations while the window size is in flux.
-                 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
-                 *
-                 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
-                 * jQuery(element).on('click', _.debounce(sendMail, 300, {
-                 *   'leading': true,
-                 *   'trailing': false
-                 * }));
-                 *
-                 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
-                 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
-                 * var source = new EventSource('/stream');
-                 * jQuery(source).on('message', debounced);
-                 *
-                 * // Cancel the trailing debounced invocation.
-                 * jQuery(window).on('popstate', debounced.cancel);
-                 */
-                function debounce(func, wait, options) {
-                    var lastArgs,
-                        lastThis,
-                        maxWait,
-                        result,
-                        timerId,
-                        lastCallTime,
-                        lastInvokeTime = 0,
-                        leading = false,
-                        maxing = false,
-                        trailing = true;
-
-                    if (typeof func != 'function') {
-                        throw new TypeError(FUNC_ERROR_TEXT);
-                    }
-                    wait = toNumber(wait) || 0;
-                    if (isObject(options)) {
-                        leading = !!options.leading;
-                        maxing = 'maxWait' in options;
-                        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
-                        trailing = 'trailing' in options ? !!options.trailing : trailing;
-                    }
-
-                    function invokeFunc(time) {
-                        var args = lastArgs,
-                            thisArg = lastThis;
-
-                        lastArgs = lastThis = undefined;
-                        lastInvokeTime = time;
-                        result = func.apply(thisArg, args);
-                        return result;
-                    }
-
-                    function leadingEdge(time) {
-                        // Reset any `maxWait` timer.
-                        lastInvokeTime = time;
-                        // Start the timer for the trailing edge.
-                        timerId = setTimeout(timerExpired, wait);
-                        // Invoke the leading edge.
-                        return leading ? invokeFunc(time) : result;
-                    }
-
-                    function remainingWait(time) {
-                        var timeSinceLastCall = time - lastCallTime,
-                            timeSinceLastInvoke = time - lastInvokeTime,
-                            result = wait - timeSinceLastCall;
-
-                        return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
-                    }
-
-                    function shouldInvoke(time) {
-                        var timeSinceLastCall = time - lastCallTime,
-                            timeSinceLastInvoke = time - lastInvokeTime;
-
-                        // Either this is the first call, activity has stopped and we're at the
-                        // trailing edge, the system time has gone backwards and we're treating
-                        // it as the trailing edge, or we've hit the `maxWait` limit.
-                        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
-                            (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
-                    }
-
-                    function timerExpired() {
-                        var time = now();
-                        if (shouldInvoke(time)) {
-                            return trailingEdge(time);
-                        }
-                        // Restart the timer.
-                        timerId = setTimeout(timerExpired, remainingWait(time));
-                    }
-
-                    function trailingEdge(time) {
-                        timerId = undefined;
-
-                        // Only invoke if we have `lastArgs` which means `func` has been
-                        // debounced at least once.
-                        if (trailing && lastArgs) {
-                            return invokeFunc(time);
-                        }
-                        lastArgs = lastThis = undefined;
-                        return result;
-                    }
-
-                    function cancel() {
-                        if (timerId !== undefined) {
-                            clearTimeout(timerId);
-                        }
-                        lastInvokeTime = 0;
-                        lastArgs = lastCallTime = lastThis = timerId = undefined;
-                    }
-
-                    function flush() {
-                        return timerId === undefined ? result : trailingEdge(now());
-                    }
-
-                    function debounced() {
-                        var time = now(),
-                            isInvoking = shouldInvoke(time);
-
-                        lastArgs = arguments;
-                        lastThis = this;
-                        lastCallTime = time;
-
-                        if (isInvoking) {
-                            if (timerId === undefined) {
-                                return leadingEdge(lastCallTime);
-                            }
-                            if (maxing) {
-                                // Handle invocations in a tight loop.
-                                timerId = setTimeout(timerExpired, wait);
-                                return invokeFunc(lastCallTime);
-                            }
-                        }
-                        if (timerId === undefined) {
-                            timerId = setTimeout(timerExpired, wait);
-                        }
-                        return result;
-                    }
-                    debounced.cancel = cancel;
-                    debounced.flush = flush;
-                    return debounced;
-                }
-
-                /**
-                 * Checks if `value` is the
-                 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
-                 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 0.1.0
-                 * @category Lang
-                 * @param {*} value The value to check.
-                 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
-                 * @example
-                 *
-                 * _.isObject({});
-                 * // => true
-                 *
-                 * _.isObject([1, 2, 3]);
-                 * // => true
-                 *
-                 * _.isObject(_.noop);
-                 * // => true
-                 *
-                 * _.isObject(null);
-                 * // => false
-                 */
-                function isObject(value) {
-                    var type = typeof value;
-                    return !!value && (type == 'object' || type == 'function');
-                }
-
-                /**
-                 * Checks if `value` is object-like. A value is object-like if it's not `null`
-                 * and has a `typeof` result of "object".
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 4.0.0
-                 * @category Lang
-                 * @param {*} value The value to check.
-                 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
-                 * @example
-                 *
-                 * _.isObjectLike({});
-                 * // => true
-                 *
-                 * _.isObjectLike([1, 2, 3]);
-                 * // => true
-                 *
-                 * _.isObjectLike(_.noop);
-                 * // => false
-                 *
-                 * _.isObjectLike(null);
-                 * // => false
-                 */
-                function isObjectLike(value) {
-                    return !!value && typeof value == 'object';
-                }
-
-                /**
-                 * Checks if `value` is classified as a `Symbol` primitive or object.
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 4.0.0
-                 * @category Lang
-                 * @param {*} value The value to check.
-                 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
-                 * @example
-                 *
-                 * _.isSymbol(Symbol.iterator);
-                 * // => true
-                 *
-                 * _.isSymbol('abc');
-                 * // => false
-                 */
-                function isSymbol(value) {
-                    return typeof value == 'symbol' ||
-                        (isObjectLike(value) && objectToString.call(value) == symbolTag);
-                }
-
-                /**
-                 * Converts `value` to a number.
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 4.0.0
-                 * @category Lang
-                 * @param {*} value The value to process.
-                 * @returns {number} Returns the number.
-                 * @example
-                 *
-                 * _.toNumber(3.2);
-                 * // => 3.2
-                 *
-                 * _.toNumber(Number.MIN_VALUE);
-                 * // => 5e-324
-                 *
-                 * _.toNumber(Infinity);
-                 * // => Infinity
-                 *
-                 * _.toNumber('3.2');
-                 * // => 3.2
-                 */
-                function toNumber(value) {
-                    if (typeof value == 'number') {
-                        return value;
-                    }
-                    if (isSymbol(value)) {
-                        return NAN;
-                    }
-                    if (isObject(value)) {
-                        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
-                        value = isObject(other) ? (other + '') : other;
-                    }
-                    if (typeof value != 'string') {
-                        return value === 0 ? value : +value;
-                    }
-                    value = value.replace(reTrim, '');
-                    var isBinary = reIsBinary.test(value);
-                    return (isBinary || reIsOctal.test(value))
-                        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
-                        : (reIsBadHex.test(value) ? NAN : +value);
-                }
-
-                module.exports = debounce;
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_DataView.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_DataView.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
-                root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /* Built-in method references that are verified to be native. */
-            var DataView = getNative(root, 'DataView');
-
-            module.exports = DataView;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Hash.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/_Hash.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
-                hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
-                hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
-                hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
-                hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
-
-            /**
-             * Creates a hash object.
-             *
-             * @private
-             * @constructor
-             * @param {Array} [entries] The key-value pairs to cache.
-             */
-            function Hash(entries) {
-                var index = -1,
-                    length = entries == null ? 0 : entries.length;
-
-                this.clear();
-                while (++index < length) {
-                    var entry = entries[index];
-                    this.set(entry[0], entry[1]);
-                }
-            }
-
-// Add methods to `Hash`.
-            Hash.prototype.clear = hashClear;
-            Hash.prototype['delete'] = hashDelete;
-            Hash.prototype.get = hashGet;
-            Hash.prototype.has = hashHas;
-            Hash.prototype.set = hashSet;
-
-            module.exports = Hash;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_ListCache.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_ListCache.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
-                listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
-                listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
-                listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
-                listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
-
-            /**
-             * Creates an list cache object.
-             *
-             * @private
-             * @constructor
-             * @param {Array} [entries] The key-value pairs to cache.
-             */
-            function ListCache(entries) {
-                var index = -1,
-                    length = entries == null ? 0 : entries.length;
-
-                this.clear();
-                while (++index < length) {
-                    var entry = entries[index];
-                    this.set(entry[0], entry[1]);
-                }
-            }
-
-// Add methods to `ListCache`.
-            ListCache.prototype.clear = listCacheClear;
-            ListCache.prototype['delete'] = listCacheDelete;
-            ListCache.prototype.get = listCacheGet;
-            ListCache.prototype.has = listCacheHas;
-            ListCache.prototype.set = listCacheSet;
-
-            module.exports = ListCache;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Map.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/_Map.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
-                root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /* Built-in method references that are verified to be native. */
-            var Map = getNative(root, 'Map');
-
-            module.exports = Map;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_MapCache.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_MapCache.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
-                mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
-                mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
-                mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
-                mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
-
-            /**
-             * Creates a map cache object to store key-value pairs.
-             *
-             * @private
-             * @constructor
-             * @param {Array} [entries] The key-value pairs to cache.
-             */
-            function MapCache(entries) {
-                var index = -1,
-                    length = entries == null ? 0 : entries.length;
-
-                this.clear();
-                while (++index < length) {
-                    var entry = entries[index];
-                    this.set(entry[0], entry[1]);
-                }
-            }
-
-// Add methods to `MapCache`.
-            MapCache.prototype.clear = mapCacheClear;
-            MapCache.prototype['delete'] = mapCacheDelete;
-            MapCache.prototype.get = mapCacheGet;
-            MapCache.prototype.has = mapCacheHas;
-            MapCache.prototype.set = mapCacheSet;
-
-            module.exports = MapCache;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Promise.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_Promise.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
-                root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /* Built-in method references that are verified to be native. */
-            var Promise = getNative(root, 'Promise');
-
-            module.exports = Promise;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Set.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/_Set.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
-                root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /* Built-in method references that are verified to be native. */
-            var Set = getNative(root, 'Set');
-
-            module.exports = Set;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_SetCache.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_SetCache.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
-                setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
-                setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
-
-            /**
-             *
-             * Creates an array cache object to store unique values.
-             *
-             * @private
-             * @constructor
-             * @param {Array} [values] The values to cache.
-             */
-            function SetCache(values) {
-                var index = -1,
-                    length = values == null ? 0 : values.length;
-
-                this.__data__ = new MapCache;
-                while (++index < length) {
-                    this.add(values[index]);
-                }
-            }
-
-// Add methods to `SetCache`.
-            SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
-            SetCache.prototype.has = setCacheHas;
-
-            module.exports = SetCache;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Stack.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/_Stack.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
-                stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
-                stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
-                stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
-                stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
-                stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
-
-            /**
-             * Creates a stack cache object to store key-value pairs.
-             *
-             * @private
-             * @constructor
-             * @param {Array} [entries] The key-value pairs to cache.
-             */
-            function Stack(entries) {
-                var data = this.__data__ = new ListCache(entries);
-                this.size = data.size;
-            }
-
-// Add methods to `Stack`.
-            Stack.prototype.clear = stackClear;
-            Stack.prototype['delete'] = stackDelete;
-            Stack.prototype.get = stackGet;
-            Stack.prototype.has = stackHas;
-            Stack.prototype.set = stackSet;
-
-            module.exports = Stack;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Symbol.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/_Symbol.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /** Built-in value references. */
-            var Symbol = root.Symbol;
-
-            module.exports = Symbol;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_Uint8Array.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_Uint8Array.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /** Built-in value references. */
-            var Uint8Array = root.Uint8Array;
-
-            module.exports = Uint8Array;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_WeakMap.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_WeakMap.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
-                root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /* Built-in method references that are verified to be native. */
-            var WeakMap = getNative(root, 'WeakMap');
-
-            module.exports = WeakMap;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_apply.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/_apply.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A faster alternative to `Function#apply`, this function invokes `func`
-             * with the `this` binding of `thisArg` and the arguments of `args`.
-             *
-             * @private
-             * @param {Function} func The function to invoke.
-             * @param {*} thisArg The `this` binding of `func`.
-             * @param {Array} args The arguments to invoke `func` with.
-             * @returns {*} Returns the result of `func`.
-             */
-            function apply(func, thisArg, args) {
-                switch (args.length) {
-                    case 0: return func.call(thisArg);
-                    case 1: return func.call(thisArg, args[0]);
-                    case 2: return func.call(thisArg, args[0], args[1]);
-                    case 3: return func.call(thisArg, args[0], args[1], args[2]);
-                }
-                return func.apply(thisArg, args);
-            }
-
-            module.exports = apply;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayEach.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_arrayEach.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.forEach` for arrays without support for
-             * iteratee shorthands.
-             *
-             * @private
-             * @param {Array} [array] The array to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Array} Returns `array`.
-             */
-            function arrayEach(array, iteratee) {
-                var index = -1,
-                    length = array == null ? 0 : array.length;
-
-                while (++index < length) {
-                    if (iteratee(array[index], index, array) === false) {
-                        break;
-                    }
-                }
-                return array;
-            }
-
-            module.exports = arrayEach;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayFilter.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_arrayFilter.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.filter` for arrays without support for
-             * iteratee shorthands.
-             *
-             * @private
-             * @param {Array} [array] The array to iterate over.
-             * @param {Function} predicate The function invoked per iteration.
-             * @returns {Array} Returns the new filtered array.
-             */
-            function arrayFilter(array, predicate) {
-                var index = -1,
-                    length = array == null ? 0 : array.length,
-                    resIndex = 0,
-                    result = [];
-
-                while (++index < length) {
-                    var value = array[index];
-                    if (predicate(value, index, array)) {
-                        result[resIndex++] = value;
-                    }
-                }
-                return result;
-            }
-
-            module.exports = arrayFilter;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayIncludes.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_arrayIncludes.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
-
-            /**
-             * A specialized version of `_.includes` for arrays without support for
-             * specifying an index to search from.
-             *
-             * @private
-             * @param {Array} [array] The array to inspect.
-             * @param {*} target The value to search for.
-             * @returns {boolean} Returns `true` if `target` is found, else `false`.
-             */
-            function arrayIncludes(array, value) {
-                var length = array == null ? 0 : array.length;
-                return !!length && baseIndexOf(array, value, 0) > -1;
-            }
-
-            module.exports = arrayIncludes;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayIncludesWith.js":
-        /*!***************************************************!*\
-  !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
-  \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This function is like `arrayIncludes` except that it accepts a comparator.
-             *
-             * @private
-             * @param {Array} [array] The array to inspect.
-             * @param {*} target The value to search for.
-             * @param {Function} comparator The comparator invoked per element.
-             * @returns {boolean} Returns `true` if `target` is found, else `false`.
-             */
-            function arrayIncludesWith(array, value, comparator) {
-                var index = -1,
-                    length = array == null ? 0 : array.length;
-
-                while (++index < length) {
-                    if (comparator(value, array[index])) {
-                        return true;
-                    }
-                }
-                return false;
-            }
-
-            module.exports = arrayIncludesWith;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayLikeKeys.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
-                isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
-                isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Creates an array of the enumerable property names of the array-like `value`.
-             *
-             * @private
-             * @param {*} value The value to query.
-             * @param {boolean} inherited Specify returning inherited property names.
-             * @returns {Array} Returns the array of property names.
-             */
-            function arrayLikeKeys(value, inherited) {
-                var isArr = isArray(value),
-                    isArg = !isArr && isArguments(value),
-                    isBuff = !isArr && !isArg && isBuffer(value),
-                    isType = !isArr && !isArg && !isBuff && isTypedArray(value),
-                    skipIndexes = isArr || isArg || isBuff || isType,
-                    result = skipIndexes ? baseTimes(value.length, String) : [],
-                    length = result.length;
-
-                for (var key in value) {
-                    if ((inherited || hasOwnProperty.call(value, key)) &&
-                        !(skipIndexes && (
-                            // Safari 9 has enumerable `arguments.length` in strict mode.
-                            key == 'length' ||
-                            // Node.js 0.10 has enumerable non-index properties on buffers.
-                            (isBuff && (key == 'offset' || key == 'parent')) ||
-                            // PhantomJS 2 has enumerable non-index properties on typed arrays.
-                            (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
-                            // Skip index properties.
-                            isIndex(key, length)
-                        ))) {
-                        result.push(key);
-                    }
-                }
-                return result;
-            }
-
-            module.exports = arrayLikeKeys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayMap.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_arrayMap.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.map` for arrays without support for iteratee
-             * shorthands.
-             *
-             * @private
-             * @param {Array} [array] The array to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Array} Returns the new mapped array.
-             */
-            function arrayMap(array, iteratee) {
-                var index = -1,
-                    length = array == null ? 0 : array.length,
-                    result = Array(length);
-
-                while (++index < length) {
-                    result[index] = iteratee(array[index], index, array);
-                }
-                return result;
-            }
-
-            module.exports = arrayMap;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayPush.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_arrayPush.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Appends the elements of `values` to `array`.
-             *
-             * @private
-             * @param {Array} array The array to modify.
-             * @param {Array} values The values to append.
-             * @returns {Array} Returns `array`.
-             */
-            function arrayPush(array, values) {
-                var index = -1,
-                    length = values.length,
-                    offset = array.length;
-
-                while (++index < length) {
-                    array[offset + index] = values[index];
-                }
-                return array;
-            }
-
-            module.exports = arrayPush;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arrayReduce.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_arrayReduce.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.reduce` for arrays without support for
-             * iteratee shorthands.
-             *
-             * @private
-             * @param {Array} [array] The array to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @param {*} [accumulator] The initial value.
-             * @param {boolean} [initAccum] Specify using the first element of `array` as
-             *  the initial value.
-             * @returns {*} Returns the accumulated value.
-             */
-            function arrayReduce(array, iteratee, accumulator, initAccum) {
-                var index = -1,
-                    length = array == null ? 0 : array.length;
-
-                if (initAccum && length) {
-                    accumulator = array[++index];
-                }
-                while (++index < length) {
-                    accumulator = iteratee(accumulator, array[index], index, array);
-                }
-                return accumulator;
-            }
-
-            module.exports = arrayReduce;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_arraySome.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_arraySome.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.some` for arrays without support for iteratee
-             * shorthands.
-             *
-             * @private
-             * @param {Array} [array] The array to iterate over.
-             * @param {Function} predicate The function invoked per iteration.
-             * @returns {boolean} Returns `true` if any element passes the predicate check,
-             *  else `false`.
-             */
-            function arraySome(array, predicate) {
-                var index = -1,
-                    length = array == null ? 0 : array.length;
-
-                while (++index < length) {
-                    if (predicate(array[index], index, array)) {
-                        return true;
-                    }
-                }
-                return false;
-            }
-
-            module.exports = arraySome;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_asciiSize.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_asciiSize.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
-
-            /**
-             * Gets the size of an ASCII `string`.
-             *
-             * @private
-             * @param {string} string The string inspect.
-             * @returns {number} Returns the string size.
-             */
-            var asciiSize = baseProperty('length');
-
-            module.exports = asciiSize;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_assignMergeValue.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/_assignMergeValue.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
-                eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
-
-            /**
-             * This function is like `assignValue` except that it doesn't assign
-             * `undefined` values.
-             *
-             * @private
-             * @param {Object} object The object to modify.
-             * @param {string} key The key of the property to assign.
-             * @param {*} value The value to assign.
-             */
-            function assignMergeValue(object, key, value) {
-                if ((value !== undefined && !eq(object[key], value)) ||
-                    (value === undefined && !(key in object))) {
-                    baseAssignValue(object, key, value);
-                }
-            }
-
-            module.exports = assignMergeValue;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_assignValue.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_assignValue.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
-                eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Assigns `value` to `key` of `object` if the existing value is not equivalent
-             * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-             * for equality comparisons.
-             *
-             * @private
-             * @param {Object} object The object to modify.
-             * @param {string} key The key of the property to assign.
-             * @param {*} value The value to assign.
-             */
-            function assignValue(object, key, value) {
-                var objValue = object[key];
-                if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
-                    (value === undefined && !(key in object))) {
-                    baseAssignValue(object, key, value);
-                }
-            }
-
-            module.exports = assignValue;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_assocIndexOf.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_assocIndexOf.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
-
-            /**
-             * Gets the index at which the `key` is found in `array` of key-value pairs.
-             *
-             * @private
-             * @param {Array} array The array to inspect.
-             * @param {*} key The key to search for.
-             * @returns {number} Returns the index of the matched value, else `-1`.
-             */
-            function assocIndexOf(array, key) {
-                var length = array.length;
-                while (length--) {
-                    if (eq(array[length][0], key)) {
-                        return length;
-                    }
-                }
-                return -1;
-            }
-
-            module.exports = assocIndexOf;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseAssign.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseAssign.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * The base implementation of `_.assign` without support for multiple sources
-             * or `customizer` functions.
-             *
-             * @private
-             * @param {Object} object The destination object.
-             * @param {Object} source The source object.
-             * @returns {Object} Returns `object`.
-             */
-            function baseAssign(object, source) {
-                return object && copyObject(source, keys(source), object);
-            }
-
-            module.exports = baseAssign;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseAssignIn.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseAssignIn.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /**
-             * The base implementation of `_.assignIn` without support for multiple sources
-             * or `customizer` functions.
-             *
-             * @private
-             * @param {Object} object The destination object.
-             * @param {Object} source The source object.
-             * @returns {Object} Returns `object`.
-             */
-            function baseAssignIn(object, source) {
-                return object && copyObject(source, keysIn(source), object);
-            }
-
-            module.exports = baseAssignIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseAssignValue.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_baseAssignValue.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
-
-            /**
-             * The base implementation of `assignValue` and `assignMergeValue` without
-             * value checks.
-             *
-             * @private
-             * @param {Object} object The object to modify.
-             * @param {string} key The key of the property to assign.
-             * @param {*} value The value to assign.
-             */
-            function baseAssignValue(object, key, value) {
-                if (key == '__proto__' && defineProperty) {
-                    defineProperty(object, key, {
-                        'configurable': true,
-                        'enumerable': true,
-                        'value': value,
-                        'writable': true
-                    });
-                } else {
-                    object[key] = value;
-                }
-            }
-
-            module.exports = baseAssignValue;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseClone.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseClone.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
-                arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
-                assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
-                baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
-                baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
-                cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
-                copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
-                copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
-                copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
-                getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
-                getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
-                getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
-                initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
-                initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /** Used to compose bitmasks for cloning. */
-            var CLONE_DEEP_FLAG = 1,
-                CLONE_FLAT_FLAG = 2,
-                CLONE_SYMBOLS_FLAG = 4;
-
-            /** `Object#toString` result references. */
-            var argsTag = '[object Arguments]',
-                arrayTag = '[object Array]',
-                boolTag = '[object Boolean]',
-                dateTag = '[object Date]',
-                errorTag = '[object Error]',
-                funcTag = '[object Function]',
-                genTag = '[object GeneratorFunction]',
-                mapTag = '[object Map]',
-                numberTag = '[object Number]',
-                objectTag = '[object Object]',
-                regexpTag = '[object RegExp]',
-                setTag = '[object Set]',
-                stringTag = '[object String]',
-                symbolTag = '[object Symbol]',
-                weakMapTag = '[object WeakMap]';
-
-            var arrayBufferTag = '[object ArrayBuffer]',
-                dataViewTag = '[object DataView]',
-                float32Tag = '[object Float32Array]',
-                float64Tag = '[object Float64Array]',
-                int8Tag = '[object Int8Array]',
-                int16Tag = '[object Int16Array]',
-                int32Tag = '[object Int32Array]',
-                uint8Tag = '[object Uint8Array]',
-                uint8ClampedTag = '[object Uint8ClampedArray]',
-                uint16Tag = '[object Uint16Array]',
-                uint32Tag = '[object Uint32Array]';
-
-            /** Used to identify `toStringTag` values supported by `_.clone`. */
-            var cloneableTags = {};
-            cloneableTags[argsTag] = cloneableTags[arrayTag] =
-                cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
-                    cloneableTags[boolTag] = cloneableTags[dateTag] =
-                        cloneableTags[float32Tag] = cloneableTags[float64Tag] =
-                            cloneableTags[int8Tag] = cloneableTags[int16Tag] =
-                                cloneableTags[int32Tag] = cloneableTags[mapTag] =
-                                    cloneableTags[numberTag] = cloneableTags[objectTag] =
-                                        cloneableTags[regexpTag] = cloneableTags[setTag] =
-                                            cloneableTags[stringTag] = cloneableTags[symbolTag] =
-                                                cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
-                                                    cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
-            cloneableTags[errorTag] = cloneableTags[funcTag] =
-                cloneableTags[weakMapTag] = false;
-
-            /**
-             * The base implementation of `_.clone` and `_.cloneDeep` which tracks
-             * traversed objects.
-             *
-             * @private
-             * @param {*} value The value to clone.
-             * @param {boolean} bitmask The bitmask flags.
-             *  1 - Deep clone
-             *  2 - Flatten inherited properties
-             *  4 - Clone symbols
-             * @param {Function} [customizer] The function to customize cloning.
-             * @param {string} [key] The key of `value`.
-             * @param {Object} [object] The parent object of `value`.
-             * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
-             * @returns {*} Returns the cloned value.
-             */
-            function baseClone(value, bitmask, customizer, key, object, stack) {
-                var result,
-                    isDeep = bitmask & CLONE_DEEP_FLAG,
-                    isFlat = bitmask & CLONE_FLAT_FLAG,
-                    isFull = bitmask & CLONE_SYMBOLS_FLAG;
-
-                if (customizer) {
-                    result = object ? customizer(value, key, object, stack) : customizer(value);
-                }
-                if (result !== undefined) {
-                    return result;
-                }
-                if (!isObject(value)) {
-                    return value;
-                }
-                var isArr = isArray(value);
-                if (isArr) {
-                    result = initCloneArray(value);
-                    if (!isDeep) {
-                        return copyArray(value, result);
-                    }
-                } else {
-                    var tag = getTag(value),
-                        isFunc = tag == funcTag || tag == genTag;
-
-                    if (isBuffer(value)) {
-                        return cloneBuffer(value, isDeep);
-                    }
-                    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
-                        result = (isFlat || isFunc) ? {} : initCloneObject(value);
-                        if (!isDeep) {
-                            return isFlat
-                                ? copySymbolsIn(value, baseAssignIn(result, value))
-                                : copySymbols(value, baseAssign(result, value));
-                        }
-                    } else {
-                        if (!cloneableTags[tag]) {
-                            return object ? value : {};
-                        }
-                        result = initCloneByTag(value, tag, isDeep);
-                    }
-                }
-                // Check for circular references and return its corresponding clone.
-                stack || (stack = new Stack);
-                var stacked = stack.get(value);
-                if (stacked) {
-                    return stacked;
-                }
-                stack.set(value, result);
-
-                if (isSet(value)) {
-                    value.forEach(function(subValue) {
-                        result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
-                    });
-                } else if (isMap(value)) {
-                    value.forEach(function(subValue, key) {
-                        result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
-                    });
-                }
-
-                var keysFunc = isFull
-                    ? (isFlat ? getAllKeysIn : getAllKeys)
-                    : (isFlat ? keysIn : keys);
-
-                var props = isArr ? undefined : keysFunc(value);
-                arrayEach(props || value, function(subValue, key) {
-                    if (props) {
-                        key = subValue;
-                        subValue = value[key];
-                    }
-                    // Recursively populate clone (susceptible to call stack limits).
-                    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
-                });
-                return result;
-            }
-
-            module.exports = baseClone;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseCreate.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseCreate.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
-
-            /** Built-in value references. */
-            var objectCreate = Object.create;
-
-            /**
-             * The base implementation of `_.create` without support for assigning
-             * properties to the created object.
-             *
-             * @private
-             * @param {Object} proto The object to inherit from.
-             * @returns {Object} Returns the new object.
-             */
-            var baseCreate = (function() {
-                function object() {}
-                return function(proto) {
-                    if (!isObject(proto)) {
-                        return {};
-                    }
-                    if (objectCreate) {
-                        return objectCreate(proto);
-                    }
-                    object.prototype = proto;
-                    var result = new object;
-                    object.prototype = undefined;
-                    return result;
-                };
-            }());
-
-            module.exports = baseCreate;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseEach.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_baseEach.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
-                createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
-
-            /**
-             * The base implementation of `_.forEach` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Array|Object} Returns `collection`.
-             */
-            var baseEach = createBaseEach(baseForOwn);
-
-            module.exports = baseEach;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseExtremum.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseExtremum.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /**
-             * The base implementation of methods like `_.max` and `_.min` which accepts a
-             * `comparator` to determine the extremum value.
-             *
-             * @private
-             * @param {Array} array The array to iterate over.
-             * @param {Function} iteratee The iteratee invoked per iteration.
-             * @param {Function} comparator The comparator used to compare values.
-             * @returns {*} Returns the extremum value.
-             */
-            function baseExtremum(array, iteratee, comparator) {
-                var index = -1,
-                    length = array.length;
-
-                while (++index < length) {
-                    var value = array[index],
-                        current = iteratee(value);
-
-                    if (current != null && (computed === undefined
-                            ? (current === current && !isSymbol(current))
-                            : comparator(current, computed)
-                    )) {
-                        var computed = current,
-                            result = value;
-                    }
-                }
-                return result;
-            }
-
-            module.exports = baseExtremum;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseFilter.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseFilter.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
-
-            /**
-             * The base implementation of `_.filter` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} predicate The function invoked per iteration.
-             * @returns {Array} Returns the new filtered array.
-             */
-            function baseFilter(collection, predicate) {
-                var result = [];
-                baseEach(collection, function(value, index, collection) {
-                    if (predicate(value, index, collection)) {
-                        result.push(value);
-                    }
-                });
-                return result;
-            }
-
-            module.exports = baseFilter;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseFindIndex.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_baseFindIndex.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.findIndex` and `_.findLastIndex` without
-             * support for iteratee shorthands.
-             *
-             * @private
-             * @param {Array} array The array to inspect.
-             * @param {Function} predicate The function invoked per iteration.
-             * @param {number} fromIndex The index to search from.
-             * @param {boolean} [fromRight] Specify iterating from right to left.
-             * @returns {number} Returns the index of the matched value, else `-1`.
-             */
-            function baseFindIndex(array, predicate, fromIndex, fromRight) {
-                var length = array.length,
-                    index = fromIndex + (fromRight ? 1 : -1);
-
-                while ((fromRight ? index-- : ++index < length)) {
-                    if (predicate(array[index], index, array)) {
-                        return index;
-                    }
-                }
-                return -1;
-            }
-
-            module.exports = baseFindIndex;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseFlatten.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseFlatten.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
-                isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
-
-            /**
-             * The base implementation of `_.flatten` with support for restricting flattening.
-             *
-             * @private
-             * @param {Array} array The array to flatten.
-             * @param {number} depth The maximum recursion depth.
-             * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
-             * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
-             * @param {Array} [result=[]] The initial result value.
-             * @returns {Array} Returns the new flattened array.
-             */
-            function baseFlatten(array, depth, predicate, isStrict, result) {
-                var index = -1,
-                    length = array.length;
-
-                predicate || (predicate = isFlattenable);
-                result || (result = []);
-
-                while (++index < length) {
-                    var value = array[index];
-                    if (depth > 0 && predicate(value)) {
-                        if (depth > 1) {
-                            // Recursively flatten arrays (susceptible to call stack limits).
-                            baseFlatten(value, depth - 1, predicate, isStrict, result);
-                        } else {
-                            arrayPush(result, value);
-                        }
-                    } else if (!isStrict) {
-                        result[result.length] = value;
-                    }
-                }
-                return result;
-            }
-
-            module.exports = baseFlatten;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseFor.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_baseFor.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
-
-            /**
-             * The base implementation of `baseForOwn` which iterates over `object`
-             * properties returned by `keysFunc` and invokes `iteratee` for each property.
-             * Iteratee functions may exit iteration early by explicitly returning `false`.
-             *
-             * @private
-             * @param {Object} object The object to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @param {Function} keysFunc The function to get the keys of `object`.
-             * @returns {Object} Returns `object`.
-             */
-            var baseFor = createBaseFor();
-
-            module.exports = baseFor;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseForOwn.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseForOwn.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * The base implementation of `_.forOwn` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Object} object The object to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Object} Returns `object`.
-             */
-            function baseForOwn(object, iteratee) {
-                return object && baseFor(object, iteratee, keys);
-            }
-
-            module.exports = baseForOwn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseGet.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_baseGet.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
-                toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
-
-            /**
-             * The base implementation of `_.get` without support for default values.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {Array|string} path The path of the property to get.
-             * @returns {*} Returns the resolved value.
-             */
-            function baseGet(object, path) {
-                path = castPath(path, object);
-
-                var index = 0,
-                    length = path.length;
-
-                while (object != null && index < length) {
-                    object = object[toKey(path[index++])];
-                }
-                return (index && index == length) ? object : undefined;
-            }
-
-            module.exports = baseGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseGetAllKeys.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
-             * `keysFunc` and `symbolsFunc` to get the enumerable property names and
-             * symbols of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {Function} keysFunc The function to get the keys of `object`.
-             * @param {Function} symbolsFunc The function to get the symbols of `object`.
-             * @returns {Array} Returns the array of property names and symbols.
-             */
-            function baseGetAllKeys(object, keysFunc, symbolsFunc) {
-                var result = keysFunc(object);
-                return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
-            }
-
-            module.exports = baseGetAllKeys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseGetTag.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseGetTag.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
-                getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
-                objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
-
-            /** `Object#toString` result references. */
-            var nullTag = '[object Null]',
-                undefinedTag = '[object Undefined]';
-
-            /** Built-in value references. */
-            var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
-            /**
-             * The base implementation of `getTag` without fallbacks for buggy environments.
-             *
-             * @private
-             * @param {*} value The value to query.
-             * @returns {string} Returns the `toStringTag`.
-             */
-            function baseGetTag(value) {
-                if (value == null) {
-                    return value === undefined ? undefinedTag : nullTag;
-                }
-                return (symToStringTag && symToStringTag in Object(value))
-                    ? getRawTag(value)
-                    : objectToString(value);
-            }
-
-            module.exports = baseGetTag;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseGt.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/_baseGt.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.gt` which doesn't coerce arguments.
-             *
-             * @private
-             * @param {*} value The value to compare.
-             * @param {*} other The other value to compare.
-             * @returns {boolean} Returns `true` if `value` is greater than `other`,
-             *  else `false`.
-             */
-            function baseGt(value, other) {
-                return value > other;
-            }
-
-            module.exports = baseGt;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseHas.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_baseHas.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * The base implementation of `_.has` without support for deep paths.
-             *
-             * @private
-             * @param {Object} [object] The object to query.
-             * @param {Array|string} key The key to check.
-             * @returns {boolean} Returns `true` if `key` exists, else `false`.
-             */
-            function baseHas(object, key) {
-                return object != null && hasOwnProperty.call(object, key);
-            }
-
-            module.exports = baseHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseHasIn.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseHasIn.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.hasIn` without support for deep paths.
-             *
-             * @private
-             * @param {Object} [object] The object to query.
-             * @param {Array|string} key The key to check.
-             * @returns {boolean} Returns `true` if `key` exists, else `false`.
-             */
-            function baseHasIn(object, key) {
-                return object != null && key in Object(object);
-            }
-
-            module.exports = baseHasIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIndexOf.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseIndexOf.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
-                baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
-                strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
-
-            /**
-             * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
-             *
-             * @private
-             * @param {Array} array The array to inspect.
-             * @param {*} value The value to search for.
-             * @param {number} fromIndex The index to search from.
-             * @returns {number} Returns the index of the matched value, else `-1`.
-             */
-            function baseIndexOf(array, value, fromIndex) {
-                return value === value
-                    ? strictIndexOf(array, value, fromIndex)
-                    : baseFindIndex(array, baseIsNaN, fromIndex);
-            }
-
-            module.exports = baseIndexOf;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsArguments.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_baseIsArguments.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var argsTag = '[object Arguments]';
-
-            /**
-             * The base implementation of `_.isArguments`.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is an `arguments` object,
-             */
-            function baseIsArguments(value) {
-                return isObjectLike(value) && baseGetTag(value) == argsTag;
-            }
-
-            module.exports = baseIsArguments;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsEqual.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseIsEqual.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /**
-             * The base implementation of `_.isEqual` which supports partial comparisons
-             * and tracks traversed objects.
-             *
-             * @private
-             * @param {*} value The value to compare.
-             * @param {*} other The other value to compare.
-             * @param {boolean} bitmask The bitmask flags.
-             *  1 - Unordered comparison
-             *  2 - Partial comparison
-             * @param {Function} [customizer] The function to customize comparisons.
-             * @param {Object} [stack] Tracks traversed `value` and `other` objects.
-             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-             */
-            function baseIsEqual(value, other, bitmask, customizer, stack) {
-                if (value === other) {
-                    return true;
-                }
-                if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
-                    return value !== value && other !== other;
-                }
-                return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
-            }
-
-            module.exports = baseIsEqual;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsEqualDeep.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
-                equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
-                equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
-                equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
-                getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1;
-
-            /** `Object#toString` result references. */
-            var argsTag = '[object Arguments]',
-                arrayTag = '[object Array]',
-                objectTag = '[object Object]';
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * A specialized version of `baseIsEqual` for arrays and objects which performs
-             * deep comparisons and tracks traversed objects enabling objects with circular
-             * references to be compared.
-             *
-             * @private
-             * @param {Object} object The object to compare.
-             * @param {Object} other The other object to compare.
-             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-             * @param {Function} customizer The function to customize comparisons.
-             * @param {Function} equalFunc The function to determine equivalents of values.
-             * @param {Object} [stack] Tracks traversed `object` and `other` objects.
-             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-             */
-            function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
-                var objIsArr = isArray(object),
-                    othIsArr = isArray(other),
-                    objTag = objIsArr ? arrayTag : getTag(object),
-                    othTag = othIsArr ? arrayTag : getTag(other);
-
-                objTag = objTag == argsTag ? objectTag : objTag;
-                othTag = othTag == argsTag ? objectTag : othTag;
-
-                var objIsObj = objTag == objectTag,
-                    othIsObj = othTag == objectTag,
-                    isSameTag = objTag == othTag;
-
-                if (isSameTag && isBuffer(object)) {
-                    if (!isBuffer(other)) {
-                        return false;
-                    }
-                    objIsArr = true;
-                    objIsObj = false;
-                }
-                if (isSameTag && !objIsObj) {
-                    stack || (stack = new Stack);
-                    return (objIsArr || isTypedArray(object))
-                        ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
-                        : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
-                }
-                if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
-                    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
-                        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
-                    if (objIsWrapped || othIsWrapped) {
-                        var objUnwrapped = objIsWrapped ? object.value() : object,
-                            othUnwrapped = othIsWrapped ? other.value() : other;
-
-                        stack || (stack = new Stack);
-                        return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
-                    }
-                }
-                if (!isSameTag) {
-                    return false;
-                }
-                stack || (stack = new Stack);
-                return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
-            }
-
-            module.exports = baseIsEqualDeep;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsMap.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseIsMap.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var mapTag = '[object Map]';
-
-            /**
-             * The base implementation of `_.isMap` without Node.js optimizations.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a map, else `false`.
-             */
-            function baseIsMap(value) {
-                return isObjectLike(value) && getTag(value) == mapTag;
-            }
-
-            module.exports = baseIsMap;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsMatch.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseIsMatch.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
-                baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1,
-                COMPARE_UNORDERED_FLAG = 2;
-
-            /**
-             * The base implementation of `_.isMatch` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Object} object The object to inspect.
-             * @param {Object} source The object of property values to match.
-             * @param {Array} matchData The property names, values, and compare flags to match.
-             * @param {Function} [customizer] The function to customize comparisons.
-             * @returns {boolean} Returns `true` if `object` is a match, else `false`.
-             */
-            function baseIsMatch(object, source, matchData, customizer) {
-                var index = matchData.length,
-                    length = index,
-                    noCustomizer = !customizer;
-
-                if (object == null) {
-                    return !length;
-                }
-                object = Object(object);
-                while (index--) {
-                    var data = matchData[index];
-                    if ((noCustomizer && data[2])
-                        ? data[1] !== object[data[0]]
-                        : !(data[0] in object)
-                    ) {
-                        return false;
-                    }
-                }
-                while (++index < length) {
-                    data = matchData[index];
-                    var key = data[0],
-                        objValue = object[key],
-                        srcValue = data[1];
-
-                    if (noCustomizer && data[2]) {
-                        if (objValue === undefined && !(key in object)) {
-                            return false;
-                        }
-                    } else {
-                        var stack = new Stack;
-                        if (customizer) {
-                            var result = customizer(objValue, srcValue, key, object, source, stack);
-                        }
-                        if (!(result === undefined
-                                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
-                                : result
-                        )) {
-                            return false;
-                        }
-                    }
-                }
-                return true;
-            }
-
-            module.exports = baseIsMatch;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsNaN.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseIsNaN.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.isNaN` without support for number objects.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
-             */
-            function baseIsNaN(value) {
-                return value !== value;
-            }
-
-            module.exports = baseIsNaN;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsNative.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseIsNative.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
-                isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
-
-            /**
-             * Used to match `RegExp`
-             * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
-             */
-            var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-
-            /** Used to detect host constructors (Safari). */
-            var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
-            /** Used for built-in method references. */
-            var funcProto = Function.prototype,
-                objectProto = Object.prototype;
-
-            /** Used to resolve the decompiled source of functions. */
-            var funcToString = funcProto.toString;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /** Used to detect if a method is native. */
-            var reIsNative = RegExp('^' +
-                funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
-                    .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
-            );
-
-            /**
-             * The base implementation of `_.isNative` without bad shim checks.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a native function,
-             *  else `false`.
-             */
-            function baseIsNative(value) {
-                if (!isObject(value) || isMasked(value)) {
-                    return false;
-                }
-                var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
-                return pattern.test(toSource(value));
-            }
-
-            module.exports = baseIsNative;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsSet.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseIsSet.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var setTag = '[object Set]';
-
-            /**
-             * The base implementation of `_.isSet` without Node.js optimizations.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a set, else `false`.
-             */
-            function baseIsSet(value) {
-                return isObjectLike(value) && getTag(value) == setTag;
-            }
-
-            module.exports = baseIsSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIsTypedArray.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var argsTag = '[object Arguments]',
-                arrayTag = '[object Array]',
-                boolTag = '[object Boolean]',
-                dateTag = '[object Date]',
-                errorTag = '[object Error]',
-                funcTag = '[object Function]',
-                mapTag = '[object Map]',
-                numberTag = '[object Number]',
-                objectTag = '[object Object]',
-                regexpTag = '[object RegExp]',
-                setTag = '[object Set]',
-                stringTag = '[object String]',
-                weakMapTag = '[object WeakMap]';
-
-            var arrayBufferTag = '[object ArrayBuffer]',
-                dataViewTag = '[object DataView]',
-                float32Tag = '[object Float32Array]',
-                float64Tag = '[object Float64Array]',
-                int8Tag = '[object Int8Array]',
-                int16Tag = '[object Int16Array]',
-                int32Tag = '[object Int32Array]',
-                uint8Tag = '[object Uint8Array]',
-                uint8ClampedTag = '[object Uint8ClampedArray]',
-                uint16Tag = '[object Uint16Array]',
-                uint32Tag = '[object Uint32Array]';
-
-            /** Used to identify `toStringTag` values of typed arrays. */
-            var typedArrayTags = {};
-            typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
-                typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
-                    typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
-                        typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
-                            typedArrayTags[uint32Tag] = true;
-            typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
-                typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
-                    typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
-                        typedArrayTags[errorTag] = typedArrayTags[funcTag] =
-                            typedArrayTags[mapTag] = typedArrayTags[numberTag] =
-                                typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
-                                    typedArrayTags[setTag] = typedArrayTags[stringTag] =
-                                        typedArrayTags[weakMapTag] = false;
-
-            /**
-             * The base implementation of `_.isTypedArray` without Node.js optimizations.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
-             */
-            function baseIsTypedArray(value) {
-                return isObjectLike(value) &&
-                    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
-            }
-
-            module.exports = baseIsTypedArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseIteratee.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseIteratee.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
-                baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
-                identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
-
-            /**
-             * The base implementation of `_.iteratee`.
-             *
-             * @private
-             * @param {*} [value=_.identity] The value to convert to an iteratee.
-             * @returns {Function} Returns the iteratee.
-             */
-            function baseIteratee(value) {
-                // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
-                // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
-                if (typeof value == 'function') {
-                    return value;
-                }
-                if (value == null) {
-                    return identity;
-                }
-                if (typeof value == 'object') {
-                    return isArray(value)
-                        ? baseMatchesProperty(value[0], value[1])
-                        : baseMatches(value);
-                }
-                return property(value);
-            }
-
-            module.exports = baseIteratee;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseKeys.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_baseKeys.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
-                nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names.
-             */
-            function baseKeys(object) {
-                if (!isPrototype(object)) {
-                    return nativeKeys(object);
-                }
-                var result = [];
-                for (var key in Object(object)) {
-                    if (hasOwnProperty.call(object, key) && key != 'constructor') {
-                        result.push(key);
-                    }
-                }
-                return result;
-            }
-
-            module.exports = baseKeys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseKeysIn.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseKeysIn.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
-                nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names.
-             */
-            function baseKeysIn(object) {
-                if (!isObject(object)) {
-                    return nativeKeysIn(object);
-                }
-                var isProto = isPrototype(object),
-                    result = [];
-
-                for (var key in object) {
-                    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
-                        result.push(key);
-                    }
-                }
-                return result;
-            }
-
-            module.exports = baseKeysIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseLt.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/_baseLt.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.lt` which doesn't coerce arguments.
-             *
-             * @private
-             * @param {*} value The value to compare.
-             * @param {*} other The other value to compare.
-             * @returns {boolean} Returns `true` if `value` is less than `other`,
-             *  else `false`.
-             */
-            function baseLt(value, other) {
-                return value < other;
-            }
-
-            module.exports = baseLt;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseMap.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_baseMap.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
-
-            /**
-             * The base implementation of `_.map` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Array} Returns the new mapped array.
-             */
-            function baseMap(collection, iteratee) {
-                var index = -1,
-                    result = isArrayLike(collection) ? Array(collection.length) : [];
-
-                baseEach(collection, function(value, key, collection) {
-                    result[++index] = iteratee(value, key, collection);
-                });
-                return result;
-            }
-
-            module.exports = baseMap;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseMatches.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseMatches.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
-                getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
-                matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
-
-            /**
-             * The base implementation of `_.matches` which doesn't clone `source`.
-             *
-             * @private
-             * @param {Object} source The object of property values to match.
-             * @returns {Function} Returns the new spec function.
-             */
-            function baseMatches(source) {
-                var matchData = getMatchData(source);
-                if (matchData.length == 1 && matchData[0][2]) {
-                    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
-                }
-                return function(object) {
-                    return object === source || baseIsMatch(object, source, matchData);
-                };
-            }
-
-            module.exports = baseMatches;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseMatchesProperty.js":
-        /*!*****************************************************!*\
-  !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
-  \*****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
-                get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
-                hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
-                isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
-                isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
-                matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
-                toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1,
-                COMPARE_UNORDERED_FLAG = 2;
-
-            /**
-             * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
-             *
-             * @private
-             * @param {string} path The path of the property to get.
-             * @param {*} srcValue The value to match.
-             * @returns {Function} Returns the new spec function.
-             */
-            function baseMatchesProperty(path, srcValue) {
-                if (isKey(path) && isStrictComparable(srcValue)) {
-                    return matchesStrictComparable(toKey(path), srcValue);
-                }
-                return function(object) {
-                    var objValue = get(object, path);
-                    return (objValue === undefined && objValue === srcValue)
-                        ? hasIn(object, path)
-                        : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
-                };
-            }
-
-            module.exports = baseMatchesProperty;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseMerge.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseMerge.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
-                assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
-                baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
-                baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
-                safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
-
-            /**
-             * The base implementation of `_.merge` without support for multiple sources.
-             *
-             * @private
-             * @param {Object} object The destination object.
-             * @param {Object} source The source object.
-             * @param {number} srcIndex The index of `source`.
-             * @param {Function} [customizer] The function to customize merged values.
-             * @param {Object} [stack] Tracks traversed source values and their merged
-             *  counterparts.
-             */
-            function baseMerge(object, source, srcIndex, customizer, stack) {
-                if (object === source) {
-                    return;
-                }
-                baseFor(source, function(srcValue, key) {
-                    stack || (stack = new Stack);
-                    if (isObject(srcValue)) {
-                        baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
-                    }
-                    else {
-                        var newValue = customizer
-                            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
-                            : undefined;
-
-                        if (newValue === undefined) {
-                            newValue = srcValue;
-                        }
-                        assignMergeValue(object, key, newValue);
-                    }
-                }, keysIn);
-            }
-
-            module.exports = baseMerge;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseMergeDeep.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_baseMergeDeep.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
-                cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
-                cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
-                copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
-                initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
-                isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
-                isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
-                safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
-                toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
-
-            /**
-             * A specialized version of `baseMerge` for arrays and objects which performs
-             * deep merges and tracks traversed objects enabling objects with circular
-             * references to be merged.
-             *
-             * @private
-             * @param {Object} object The destination object.
-             * @param {Object} source The source object.
-             * @param {string} key The key of the value to merge.
-             * @param {number} srcIndex The index of `source`.
-             * @param {Function} mergeFunc The function to merge values.
-             * @param {Function} [customizer] The function to customize assigned values.
-             * @param {Object} [stack] Tracks traversed source values and their merged
-             *  counterparts.
-             */
-            function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
-                var objValue = safeGet(object, key),
-                    srcValue = safeGet(source, key),
-                    stacked = stack.get(srcValue);
-
-                if (stacked) {
-                    assignMergeValue(object, key, stacked);
-                    return;
-                }
-                var newValue = customizer
-                    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
-                    : undefined;
-
-                var isCommon = newValue === undefined;
-
-                if (isCommon) {
-                    var isArr = isArray(srcValue),
-                        isBuff = !isArr && isBuffer(srcValue),
-                        isTyped = !isArr && !isBuff && isTypedArray(srcValue);
-
-                    newValue = srcValue;
-                    if (isArr || isBuff || isTyped) {
-                        if (isArray(objValue)) {
-                            newValue = objValue;
-                        }
-                        else if (isArrayLikeObject(objValue)) {
-                            newValue = copyArray(objValue);
-                        }
-                        else if (isBuff) {
-                            isCommon = false;
-                            newValue = cloneBuffer(srcValue, true);
-                        }
-                        else if (isTyped) {
-                            isCommon = false;
-                            newValue = cloneTypedArray(srcValue, true);
-                        }
-                        else {
-                            newValue = [];
-                        }
-                    }
-                    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
-                        newValue = objValue;
-                        if (isArguments(objValue)) {
-                            newValue = toPlainObject(objValue);
-                        }
-                        else if (!isObject(objValue) || isFunction(objValue)) {
-                            newValue = initCloneObject(srcValue);
-                        }
-                    }
-                    else {
-                        isCommon = false;
-                    }
-                }
-                if (isCommon) {
-                    // Recursively merge objects and arrays (susceptible to call stack limits).
-                    stack.set(srcValue, newValue);
-                    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
-                    stack['delete'](srcValue);
-                }
-                assignMergeValue(object, key, newValue);
-            }
-
-            module.exports = baseMergeDeep;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseOrderBy.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_baseOrderBy.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
-                baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
-                baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"),
-                baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
-                compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"),
-                identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * The base implementation of `_.orderBy` without param guards.
-             *
-             * @private
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
-             * @param {string[]} orders The sort orders of `iteratees`.
-             * @returns {Array} Returns the new sorted array.
-             */
-            function baseOrderBy(collection, iteratees, orders) {
-                if (iteratees.length) {
-                    iteratees = arrayMap(iteratees, function(iteratee) {
-                        if (isArray(iteratee)) {
-                            return function(value) {
-                                return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
-                            }
-                        }
-                        return iteratee;
-                    });
-                } else {
-                    iteratees = [identity];
-                }
-
-                var index = -1;
-                iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
-
-                var result = baseMap(collection, function(value, key, collection) {
-                    var criteria = arrayMap(iteratees, function(iteratee) {
-                        return iteratee(value);
-                    });
-                    return { 'criteria': criteria, 'index': ++index, 'value': value };
-                });
-
-                return baseSortBy(result, function(object, other) {
-                    return compareMultiple(object, other, orders);
-                });
-            }
-
-            module.exports = baseOrderBy;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_basePick.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_basePick.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
-                hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
-
-            /**
-             * The base implementation of `_.pick` without support for individual
-             * property identifiers.
-             *
-             * @private
-             * @param {Object} object The source object.
-             * @param {string[]} paths The property paths to pick.
-             * @returns {Object} Returns the new object.
-             */
-            function basePick(object, paths) {
-                return basePickBy(object, paths, function(value, path) {
-                    return hasIn(object, path);
-                });
-            }
-
-            module.exports = basePick;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_basePickBy.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_basePickBy.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
-                baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
-                castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
-
-            /**
-             * The base implementation of  `_.pickBy` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Object} object The source object.
-             * @param {string[]} paths The property paths to pick.
-             * @param {Function} predicate The function invoked per property.
-             * @returns {Object} Returns the new object.
-             */
-            function basePickBy(object, paths, predicate) {
-                var index = -1,
-                    length = paths.length,
-                    result = {};
-
-                while (++index < length) {
-                    var path = paths[index],
-                        value = baseGet(object, path);
-
-                    if (predicate(value, path)) {
-                        baseSet(result, castPath(path, object), value);
-                    }
-                }
-                return result;
-            }
-
-            module.exports = basePickBy;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseProperty.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseProperty.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.property` without support for deep paths.
-             *
-             * @private
-             * @param {string} key The key of the property to get.
-             * @returns {Function} Returns the new accessor function.
-             */
-            function baseProperty(key) {
-                return function(object) {
-                    return object == null ? undefined : object[key];
-                };
-            }
-
-            module.exports = baseProperty;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_basePropertyDeep.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/_basePropertyDeep.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
-
-            /**
-             * A specialized version of `baseProperty` which supports deep paths.
-             *
-             * @private
-             * @param {Array|string} path The path of the property to get.
-             * @returns {Function} Returns the new accessor function.
-             */
-            function basePropertyDeep(path) {
-                return function(object) {
-                    return baseGet(object, path);
-                };
-            }
-
-            module.exports = basePropertyDeep;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseRange.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseRange.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeCeil = Math.ceil,
-                nativeMax = Math.max;
-
-            /**
-             * The base implementation of `_.range` and `_.rangeRight` which doesn't
-             * coerce arguments.
-             *
-             * @private
-             * @param {number} start The start of the range.
-             * @param {number} end The end of the range.
-             * @param {number} step The value to increment or decrement by.
-             * @param {boolean} [fromRight] Specify iterating from right to left.
-             * @returns {Array} Returns the range of numbers.
-             */
-            function baseRange(start, end, step, fromRight) {
-                var index = -1,
-                    length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
-                    result = Array(length);
-
-                while (length--) {
-                    result[fromRight ? length : ++index] = start;
-                    start += step;
-                }
-                return result;
-            }
-
-            module.exports = baseRange;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseReduce.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseReduce.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.reduce` and `_.reduceRight`, without support
-             * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
-             *
-             * @private
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @param {*} accumulator The initial value.
-             * @param {boolean} initAccum Specify using the first or last element of
-             *  `collection` as the initial value.
-             * @param {Function} eachFunc The function to iterate over `collection`.
-             * @returns {*} Returns the accumulated value.
-             */
-            function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
-                eachFunc(collection, function(value, index, collection) {
-                    accumulator = initAccum
-                        ? (initAccum = false, value)
-                        : iteratee(accumulator, value, index, collection);
-                });
-                return accumulator;
-            }
-
-            module.exports = baseReduce;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseRest.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_baseRest.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
-                overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
-                setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
-
-            /**
-             * The base implementation of `_.rest` which doesn't validate or coerce arguments.
-             *
-             * @private
-             * @param {Function} func The function to apply a rest parameter to.
-             * @param {number} [start=func.length-1] The start position of the rest parameter.
-             * @returns {Function} Returns the new function.
-             */
-            function baseRest(func, start) {
-                return setToString(overRest(func, start, identity), func + '');
-            }
-
-            module.exports = baseRest;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseSet.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_baseSet.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
-                castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
-                isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
-
-            /**
-             * The base implementation of `_.set`.
-             *
-             * @private
-             * @param {Object} object The object to modify.
-             * @param {Array|string} path The path of the property to set.
-             * @param {*} value The value to set.
-             * @param {Function} [customizer] The function to customize path creation.
-             * @returns {Object} Returns `object`.
-             */
-            function baseSet(object, path, value, customizer) {
-                if (!isObject(object)) {
-                    return object;
-                }
-                path = castPath(path, object);
-
-                var index = -1,
-                    length = path.length,
-                    lastIndex = length - 1,
-                    nested = object;
-
-                while (nested != null && ++index < length) {
-                    var key = toKey(path[index]),
-                        newValue = value;
-
-                    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
-                        return object;
-                    }
-
-                    if (index != lastIndex) {
-                        var objValue = nested[key];
-                        newValue = customizer ? customizer(objValue, key, nested) : undefined;
-                        if (newValue === undefined) {
-                            newValue = isObject(objValue)
-                                ? objValue
-                                : (isIndex(path[index + 1]) ? [] : {});
-                        }
-                    }
-                    assignValue(nested, key, newValue);
-                    nested = nested[key];
-                }
-                return object;
-            }
-
-            module.exports = baseSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseSetToString.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_baseSetToString.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
-                defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
-                identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
-
-            /**
-             * The base implementation of `setToString` without support for hot loop shorting.
-             *
-             * @private
-             * @param {Function} func The function to modify.
-             * @param {Function} string The `toString` result.
-             * @returns {Function} Returns `func`.
-             */
-            var baseSetToString = !defineProperty ? identity : function(func, string) {
-                return defineProperty(func, 'toString', {
-                    'configurable': true,
-                    'enumerable': false,
-                    'value': constant(string),
-                    'writable': true
-                });
-            };
-
-            module.exports = baseSetToString;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseSortBy.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseSortBy.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.sortBy` which uses `comparer` to define the
-             * sort order of `array` and replaces criteria objects with their corresponding
-             * values.
-             *
-             * @private
-             * @param {Array} array The array to sort.
-             * @param {Function} comparer The function to define sort order.
-             * @returns {Array} Returns `array`.
-             */
-            function baseSortBy(array, comparer) {
-                var length = array.length;
-
-                array.sort(comparer);
-                while (length--) {
-                    array[length] = array[length].value;
-                }
-                return array;
-            }
-
-            module.exports = baseSortBy;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseTimes.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseTimes.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.times` without support for iteratee shorthands
-             * or max array length checks.
-             *
-             * @private
-             * @param {number} n The number of times to invoke `iteratee`.
-             * @param {Function} iteratee The function invoked per iteration.
-             * @returns {Array} Returns the array of results.
-             */
-            function baseTimes(n, iteratee) {
-                var index = -1,
-                    result = Array(n);
-
-                while (++index < n) {
-                    result[index] = iteratee(index);
-                }
-                return result;
-            }
-
-            module.exports = baseTimes;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseToString.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_baseToString.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
-                arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /** Used as references for various `Number` constants. */
-            var INFINITY = 1 / 0;
-
-            /** Used to convert symbols to primitives and strings. */
-            var symbolProto = Symbol ? Symbol.prototype : undefined,
-                symbolToString = symbolProto ? symbolProto.toString : undefined;
-
-            /**
-             * The base implementation of `_.toString` which doesn't convert nullish
-             * values to empty strings.
-             *
-             * @private
-             * @param {*} value The value to process.
-             * @returns {string} Returns the string.
-             */
-            function baseToString(value) {
-                // Exit early for strings to avoid a performance hit in some environments.
-                if (typeof value == 'string') {
-                    return value;
-                }
-                if (isArray(value)) {
-                    // Recursively convert values (susceptible to call stack limits).
-                    return arrayMap(value, baseToString) + '';
-                }
-                if (isSymbol(value)) {
-                    return symbolToString ? symbolToString.call(value) : '';
-                }
-                var result = (value + '');
-                return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-            }
-
-            module.exports = baseToString;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseUnary.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_baseUnary.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * The base implementation of `_.unary` without support for storing metadata.
-             *
-             * @private
-             * @param {Function} func The function to cap arguments for.
-             * @returns {Function} Returns the new capped function.
-             */
-            function baseUnary(func) {
-                return function(value) {
-                    return func(value);
-                };
-            }
-
-            module.exports = baseUnary;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseUniq.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_baseUniq.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
-                arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
-                arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
-                cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
-                createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
-                setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
-
-            /** Used as the size to enable large array optimizations. */
-            var LARGE_ARRAY_SIZE = 200;
-
-            /**
-             * The base implementation of `_.uniqBy` without support for iteratee shorthands.
-             *
-             * @private
-             * @param {Array} array The array to inspect.
-             * @param {Function} [iteratee] The iteratee invoked per element.
-             * @param {Function} [comparator] The comparator invoked per element.
-             * @returns {Array} Returns the new duplicate free array.
-             */
-            function baseUniq(array, iteratee, comparator) {
-                var index = -1,
-                    includes = arrayIncludes,
-                    length = array.length,
-                    isCommon = true,
-                    result = [],
-                    seen = result;
-
-                if (comparator) {
-                    isCommon = false;
-                    includes = arrayIncludesWith;
-                }
-                else if (length >= LARGE_ARRAY_SIZE) {
-                    var set = iteratee ? null : createSet(array);
-                    if (set) {
-                        return setToArray(set);
-                    }
-                    isCommon = false;
-                    includes = cacheHas;
-                    seen = new SetCache;
-                }
-                else {
-                    seen = iteratee ? [] : result;
-                }
-                outer:
-                    while (++index < length) {
-                        var value = array[index],
-                            computed = iteratee ? iteratee(value) : value;
-
-                        value = (comparator || value !== 0) ? value : 0;
-                        if (isCommon && computed === computed) {
-                            var seenIndex = seen.length;
-                            while (seenIndex--) {
-                                if (seen[seenIndex] === computed) {
-                                    continue outer;
-                                }
-                            }
-                            if (iteratee) {
-                                seen.push(computed);
-                            }
-                            result.push(value);
-                        }
-                        else if (!includes(seen, computed, comparator)) {
-                            if (seen !== result) {
-                                seen.push(computed);
-                            }
-                            result.push(value);
-                        }
-                    }
-                return result;
-            }
-
-            module.exports = baseUniq;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseValues.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_baseValues.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js");
-
-            /**
-             * The base implementation of `_.values` and `_.valuesIn` which creates an
-             * array of `object` property values corresponding to the property names
-             * of `props`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {Array} props The property names to get values for.
-             * @returns {Object} Returns the array of property values.
-             */
-            function baseValues(object, props) {
-                return arrayMap(props, function(key) {
-                    return object[key];
-                });
-            }
-
-            module.exports = baseValues;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_baseZipObject.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_baseZipObject.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
-             *
-             * @private
-             * @param {Array} props The property identifiers.
-             * @param {Array} values The property values.
-             * @param {Function} assignFunc The function to assign values.
-             * @returns {Object} Returns the new object.
-             */
-            function baseZipObject(props, values, assignFunc) {
-                var index = -1,
-                    length = props.length,
-                    valsLength = values.length,
-                    result = {};
-
-                while (++index < length) {
-                    var value = index < valsLength ? values[index] : undefined;
-                    assignFunc(result, props[index], value);
-                }
-                return result;
-            }
-
-            module.exports = baseZipObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cacheHas.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_cacheHas.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if a `cache` value for `key` exists.
-             *
-             * @private
-             * @param {Object} cache The cache to query.
-             * @param {string} key The key of the entry to check.
-             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-             */
-            function cacheHas(cache, key) {
-                return cache.has(key);
-            }
-
-            module.exports = cacheHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_castFunction.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_castFunction.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
-
-            /**
-             * Casts `value` to `identity` if it's not a function.
-             *
-             * @private
-             * @param {*} value The value to inspect.
-             * @returns {Function} Returns cast function.
-             */
-            function castFunction(value) {
-                return typeof value == 'function' ? value : identity;
-            }
-
-            module.exports = castFunction;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_castPath.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_castPath.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
-                stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
-                toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
-
-            /**
-             * Casts `value` to a path array if it's not one.
-             *
-             * @private
-             * @param {*} value The value to inspect.
-             * @param {Object} [object] The object to query keys on.
-             * @returns {Array} Returns the cast property path array.
-             */
-            function castPath(value, object) {
-                if (isArray(value)) {
-                    return value;
-                }
-                return isKey(value, object) ? [value] : stringToPath(toString(value));
-            }
-
-            module.exports = castPath;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneArrayBuffer.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
-
-            /**
-             * Creates a clone of `arrayBuffer`.
-             *
-             * @private
-             * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
-             * @returns {ArrayBuffer} Returns the cloned array buffer.
-             */
-            function cloneArrayBuffer(arrayBuffer) {
-                var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
-                new Uint8Array(result).set(new Uint8Array(arrayBuffer));
-                return result;
-            }
-
-            module.exports = cloneArrayBuffer;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneBuffer.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_cloneBuffer.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-                /** Detect free variable `exports`. */
-                var freeExports =  true && exports && !exports.nodeType && exports;
-
-                /** Detect free variable `module`. */
-                var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-                /** Detect the popular CommonJS extension `module.exports`. */
-                var moduleExports = freeModule && freeModule.exports === freeExports;
-
-                /** Built-in value references. */
-                var Buffer = moduleExports ? root.Buffer : undefined,
-                    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
-
-                /**
-                 * Creates a clone of  `buffer`.
-                 *
-                 * @private
-                 * @param {Buffer} buffer The buffer to clone.
-                 * @param {boolean} [isDeep] Specify a deep clone.
-                 * @returns {Buffer} Returns the cloned buffer.
-                 */
-                function cloneBuffer(buffer, isDeep) {
-                    if (isDeep) {
-                        return buffer.slice();
-                    }
-                    var length = buffer.length,
-                        result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
-
-                    buffer.copy(result);
-                    return result;
-                }
-
-                module.exports = cloneBuffer;
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneDataView.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_cloneDataView.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
-
-            /**
-             * Creates a clone of `dataView`.
-             *
-             * @private
-             * @param {Object} dataView The data view to clone.
-             * @param {boolean} [isDeep] Specify a deep clone.
-             * @returns {Object} Returns the cloned data view.
-             */
-            function cloneDataView(dataView, isDeep) {
-                var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
-                return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
-            }
-
-            module.exports = cloneDataView;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneRegExp.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_cloneRegExp.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used to match `RegExp` flags from their coerced string values. */
-            var reFlags = /\w*$/;
-
-            /**
-             * Creates a clone of `regexp`.
-             *
-             * @private
-             * @param {Object} regexp The regexp to clone.
-             * @returns {Object} Returns the cloned regexp.
-             */
-            function cloneRegExp(regexp) {
-                var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
-                result.lastIndex = regexp.lastIndex;
-                return result;
-            }
-
-            module.exports = cloneRegExp;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneSymbol.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_cloneSymbol.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
-
-            /** Used to convert symbols to primitives and strings. */
-            var symbolProto = Symbol ? Symbol.prototype : undefined,
-                symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
-
-            /**
-             * Creates a clone of the `symbol` object.
-             *
-             * @private
-             * @param {Object} symbol The symbol object to clone.
-             * @returns {Object} Returns the cloned symbol object.
-             */
-            function cloneSymbol(symbol) {
-                return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
-            }
-
-            module.exports = cloneSymbol;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_cloneTypedArray.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_cloneTypedArray.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
-
-            /**
-             * Creates a clone of `typedArray`.
-             *
-             * @private
-             * @param {Object} typedArray The typed array to clone.
-             * @param {boolean} [isDeep] Specify a deep clone.
-             * @returns {Object} Returns the cloned typed array.
-             */
-            function cloneTypedArray(typedArray, isDeep) {
-                var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
-                return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
-            }
-
-            module.exports = cloneTypedArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_compareAscending.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/_compareAscending.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /**
-             * Compares values to sort them in ascending order.
-             *
-             * @private
-             * @param {*} value The value to compare.
-             * @param {*} other The other value to compare.
-             * @returns {number} Returns the sort order indicator for `value`.
-             */
-            function compareAscending(value, other) {
-                if (value !== other) {
-                    var valIsDefined = value !== undefined,
-                        valIsNull = value === null,
-                        valIsReflexive = value === value,
-                        valIsSymbol = isSymbol(value);
-
-                    var othIsDefined = other !== undefined,
-                        othIsNull = other === null,
-                        othIsReflexive = other === other,
-                        othIsSymbol = isSymbol(other);
-
-                    if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
-                        (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
-                        (valIsNull && othIsDefined && othIsReflexive) ||
-                        (!valIsDefined && othIsReflexive) ||
-                        !valIsReflexive) {
-                        return 1;
-                    }
-                    if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
-                        (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
-                        (othIsNull && valIsDefined && valIsReflexive) ||
-                        (!othIsDefined && valIsReflexive) ||
-                        !othIsReflexive) {
-                        return -1;
-                    }
-                }
-                return 0;
-            }
-
-            module.exports = compareAscending;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_compareMultiple.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_compareMultiple.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js");
-
-            /**
-             * Used by `_.orderBy` to compare multiple properties of a value to another
-             * and stable sort them.
-             *
-             * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
-             * specify an order of "desc" for descending or "asc" for ascending sort order
-             * of corresponding values.
-             *
-             * @private
-             * @param {Object} object The object to compare.
-             * @param {Object} other The other object to compare.
-             * @param {boolean[]|string[]} orders The order to sort by for each property.
-             * @returns {number} Returns the sort order indicator for `object`.
-             */
-            function compareMultiple(object, other, orders) {
-                var index = -1,
-                    objCriteria = object.criteria,
-                    othCriteria = other.criteria,
-                    length = objCriteria.length,
-                    ordersLength = orders.length;
-
-                while (++index < length) {
-                    var result = compareAscending(objCriteria[index], othCriteria[index]);
-                    if (result) {
-                        if (index >= ordersLength) {
-                            return result;
-                        }
-                        var order = orders[index];
-                        return result * (order == 'desc' ? -1 : 1);
-                    }
-                }
-                // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
-                // that causes it, under certain circumstances, to provide the same value for
-                // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
-                // for more details.
-                //
-                // This also ensures a stable sort in V8 and other engines.
-                // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
-                return object.index - other.index;
-            }
-
-            module.exports = compareMultiple;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_copyArray.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_copyArray.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Copies the values of `source` to `array`.
-             *
-             * @private
-             * @param {Array} source The array to copy values from.
-             * @param {Array} [array=[]] The array to copy values to.
-             * @returns {Array} Returns `array`.
-             */
-            function copyArray(source, array) {
-                var index = -1,
-                    length = source.length;
-
-                array || (array = Array(length));
-                while (++index < length) {
-                    array[index] = source[index];
-                }
-                return array;
-            }
-
-            module.exports = copyArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_copyObject.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_copyObject.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
-                baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
-
-            /**
-             * Copies properties of `source` to `object`.
-             *
-             * @private
-             * @param {Object} source The object to copy properties from.
-             * @param {Array} props The property identifiers to copy.
-             * @param {Object} [object={}] The object to copy properties to.
-             * @param {Function} [customizer] The function to customize copied values.
-             * @returns {Object} Returns `object`.
-             */
-            function copyObject(source, props, object, customizer) {
-                var isNew = !object;
-                object || (object = {});
-
-                var index = -1,
-                    length = props.length;
-
-                while (++index < length) {
-                    var key = props[index];
-
-                    var newValue = customizer
-                        ? customizer(object[key], source[key], key, object, source)
-                        : undefined;
-
-                    if (newValue === undefined) {
-                        newValue = source[key];
-                    }
-                    if (isNew) {
-                        baseAssignValue(object, key, newValue);
-                    } else {
-                        assignValue(object, key, newValue);
-                    }
-                }
-                return object;
-            }
-
-            module.exports = copyObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_copySymbols.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_copySymbols.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
-                getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
-
-            /**
-             * Copies own symbols of `source` to `object`.
-             *
-             * @private
-             * @param {Object} source The object to copy symbols from.
-             * @param {Object} [object={}] The object to copy symbols to.
-             * @returns {Object} Returns `object`.
-             */
-            function copySymbols(source, object) {
-                return copyObject(source, getSymbols(source), object);
-            }
-
-            module.exports = copySymbols;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_copySymbolsIn.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_copySymbolsIn.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
-                getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
-
-            /**
-             * Copies own and inherited symbols of `source` to `object`.
-             *
-             * @private
-             * @param {Object} source The object to copy symbols from.
-             * @param {Object} [object={}] The object to copy symbols to.
-             * @returns {Object} Returns `object`.
-             */
-            function copySymbolsIn(source, object) {
-                return copyObject(source, getSymbolsIn(source), object);
-            }
-
-            module.exports = copySymbolsIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_coreJsData.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_coreJsData.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /** Used to detect overreaching core-js shims. */
-            var coreJsData = root['__core-js_shared__'];
-
-            module.exports = coreJsData;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createAssigner.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_createAssigner.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
-                isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
-
-            /**
-             * Creates a function like `_.assign`.
-             *
-             * @private
-             * @param {Function} assigner The function to assign values.
-             * @returns {Function} Returns the new assigner function.
-             */
-            function createAssigner(assigner) {
-                return baseRest(function(object, sources) {
-                    var index = -1,
-                        length = sources.length,
-                        customizer = length > 1 ? sources[length - 1] : undefined,
-                        guard = length > 2 ? sources[2] : undefined;
-
-                    customizer = (assigner.length > 3 && typeof customizer == 'function')
-                        ? (length--, customizer)
-                        : undefined;
-
-                    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
-                        customizer = length < 3 ? undefined : customizer;
-                        length = 1;
-                    }
-                    object = Object(object);
-                    while (++index < length) {
-                        var source = sources[index];
-                        if (source) {
-                            assigner(object, source, index, customizer);
-                        }
-                    }
-                    return object;
-                });
-            }
-
-            module.exports = createAssigner;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createBaseEach.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_createBaseEach.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
-
-            /**
-             * Creates a `baseEach` or `baseEachRight` function.
-             *
-             * @private
-             * @param {Function} eachFunc The function to iterate over a collection.
-             * @param {boolean} [fromRight] Specify iterating from right to left.
-             * @returns {Function} Returns the new base function.
-             */
-            function createBaseEach(eachFunc, fromRight) {
-                return function(collection, iteratee) {
-                    if (collection == null) {
-                        return collection;
-                    }
-                    if (!isArrayLike(collection)) {
-                        return eachFunc(collection, iteratee);
-                    }
-                    var length = collection.length,
-                        index = fromRight ? length : -1,
-                        iterable = Object(collection);
-
-                    while ((fromRight ? index-- : ++index < length)) {
-                        if (iteratee(iterable[index], index, iterable) === false) {
-                            break;
-                        }
-                    }
-                    return collection;
-                };
-            }
-
-            module.exports = createBaseEach;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createBaseFor.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_createBaseFor.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Creates a base function for methods like `_.forIn` and `_.forOwn`.
-             *
-             * @private
-             * @param {boolean} [fromRight] Specify iterating from right to left.
-             * @returns {Function} Returns the new base function.
-             */
-            function createBaseFor(fromRight) {
-                return function(object, iteratee, keysFunc) {
-                    var index = -1,
-                        iterable = Object(object),
-                        props = keysFunc(object),
-                        length = props.length;
-
-                    while (length--) {
-                        var key = props[fromRight ? length : ++index];
-                        if (iteratee(iterable[key], key, iterable) === false) {
-                            break;
-                        }
-                    }
-                    return object;
-                };
-            }
-
-            module.exports = createBaseFor;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createFind.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_createFind.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * Creates a `_.find` or `_.findLast` function.
-             *
-             * @private
-             * @param {Function} findIndexFunc The function to find the collection index.
-             * @returns {Function} Returns the new find function.
-             */
-            function createFind(findIndexFunc) {
-                return function(collection, predicate, fromIndex) {
-                    var iterable = Object(collection);
-                    if (!isArrayLike(collection)) {
-                        var iteratee = baseIteratee(predicate, 3);
-                        collection = keys(collection);
-                        predicate = function(key) { return iteratee(iterable[key], key, iterable); };
-                    }
-                    var index = findIndexFunc(collection, predicate, fromIndex);
-                    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
-                };
-            }
-
-            module.exports = createFind;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createRange.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_createRange.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseRange = __webpack_require__(/*! ./_baseRange */ "./node_modules/lodash/_baseRange.js"),
-                isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
-                toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
-
-            /**
-             * Creates a `_.range` or `_.rangeRight` function.
-             *
-             * @private
-             * @param {boolean} [fromRight] Specify iterating from right to left.
-             * @returns {Function} Returns the new range function.
-             */
-            function createRange(fromRight) {
-                return function(start, end, step) {
-                    if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
-                        end = step = undefined;
-                    }
-                    // Ensure the sign of `-0` is preserved.
-                    start = toFinite(start);
-                    if (end === undefined) {
-                        end = start;
-                        start = 0;
-                    } else {
-                        end = toFinite(end);
-                    }
-                    step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
-                    return baseRange(start, end, step, fromRight);
-                };
-            }
-
-            module.exports = createRange;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_createSet.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_createSet.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
-                noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
-                setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
-
-            /** Used as references for various `Number` constants. */
-            var INFINITY = 1 / 0;
-
-            /**
-             * Creates a set object of `values`.
-             *
-             * @private
-             * @param {Array} values The values to add to the set.
-             * @returns {Object} Returns the new set.
-             */
-            var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
-                return new Set(values);
-            };
-
-            module.exports = createSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_defineProperty.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_defineProperty.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
-
-            var defineProperty = (function() {
-                try {
-                    var func = getNative(Object, 'defineProperty');
-                    func({}, '', {});
-                    return func;
-                } catch (e) {}
-            }());
-
-            module.exports = defineProperty;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_equalArrays.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_equalArrays.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
-                arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
-                cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1,
-                COMPARE_UNORDERED_FLAG = 2;
-
-            /**
-             * A specialized version of `baseIsEqualDeep` for arrays with support for
-             * partial deep comparisons.
-             *
-             * @private
-             * @param {Array} array The array to compare.
-             * @param {Array} other The other array to compare.
-             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-             * @param {Function} customizer The function to customize comparisons.
-             * @param {Function} equalFunc The function to determine equivalents of values.
-             * @param {Object} stack Tracks traversed `array` and `other` objects.
-             * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
-             */
-            function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
-                var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
-                    arrLength = array.length,
-                    othLength = other.length;
-
-                if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
-                    return false;
-                }
-                // Check that cyclic values are equal.
-                var arrStacked = stack.get(array);
-                var othStacked = stack.get(other);
-                if (arrStacked && othStacked) {
-                    return arrStacked == other && othStacked == array;
-                }
-                var index = -1,
-                    result = true,
-                    seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
-
-                stack.set(array, other);
-                stack.set(other, array);
-
-                // Ignore non-index properties.
-                while (++index < arrLength) {
-                    var arrValue = array[index],
-                        othValue = other[index];
-
-                    if (customizer) {
-                        var compared = isPartial
-                            ? customizer(othValue, arrValue, index, other, array, stack)
-                            : customizer(arrValue, othValue, index, array, other, stack);
-                    }
-                    if (compared !== undefined) {
-                        if (compared) {
-                            continue;
-                        }
-                        result = false;
-                        break;
-                    }
-                    // Recursively compare arrays (susceptible to call stack limits).
-                    if (seen) {
-                        if (!arraySome(other, function(othValue, othIndex) {
-                            if (!cacheHas(seen, othIndex) &&
-                                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
-                                return seen.push(othIndex);
-                            }
-                        })) {
-                            result = false;
-                            break;
-                        }
-                    } else if (!(
-                        arrValue === othValue ||
-                        equalFunc(arrValue, othValue, bitmask, customizer, stack)
-                    )) {
-                        result = false;
-                        break;
-                    }
-                }
-                stack['delete'](array);
-                stack['delete'](other);
-                return result;
-            }
-
-            module.exports = equalArrays;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_equalByTag.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_equalByTag.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
-                Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
-                eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
-                equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
-                mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
-                setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1,
-                COMPARE_UNORDERED_FLAG = 2;
-
-            /** `Object#toString` result references. */
-            var boolTag = '[object Boolean]',
-                dateTag = '[object Date]',
-                errorTag = '[object Error]',
-                mapTag = '[object Map]',
-                numberTag = '[object Number]',
-                regexpTag = '[object RegExp]',
-                setTag = '[object Set]',
-                stringTag = '[object String]',
-                symbolTag = '[object Symbol]';
-
-            var arrayBufferTag = '[object ArrayBuffer]',
-                dataViewTag = '[object DataView]';
-
-            /** Used to convert symbols to primitives and strings. */
-            var symbolProto = Symbol ? Symbol.prototype : undefined,
-                symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
-
-            /**
-             * A specialized version of `baseIsEqualDeep` for comparing objects of
-             * the same `toStringTag`.
-             *
-             * **Note:** This function only supports comparing values with tags of
-             * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
-             *
-             * @private
-             * @param {Object} object The object to compare.
-             * @param {Object} other The other object to compare.
-             * @param {string} tag The `toStringTag` of the objects to compare.
-             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-             * @param {Function} customizer The function to customize comparisons.
-             * @param {Function} equalFunc The function to determine equivalents of values.
-             * @param {Object} stack Tracks traversed `object` and `other` objects.
-             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-             */
-            function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
-                switch (tag) {
-                    case dataViewTag:
-                        if ((object.byteLength != other.byteLength) ||
-                            (object.byteOffset != other.byteOffset)) {
-                            return false;
-                        }
-                        object = object.buffer;
-                        other = other.buffer;
-
-                    case arrayBufferTag:
-                        if ((object.byteLength != other.byteLength) ||
-                            !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
-                            return false;
-                        }
-                        return true;
-
-                    case boolTag:
-                    case dateTag:
-                    case numberTag:
-                        // Coerce booleans to `1` or `0` and dates to milliseconds.
-                        // Invalid dates are coerced to `NaN`.
-                        return eq(+object, +other);
-
-                    case errorTag:
-                        return object.name == other.name && object.message == other.message;
-
-                    case regexpTag:
-                    case stringTag:
-                        // Coerce regexes to strings and treat strings, primitives and objects,
-                        // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
-                        // for more details.
-                        return object == (other + '');
-
-                    case mapTag:
-                        var convert = mapToArray;
-
-                    case setTag:
-                        var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
-                        convert || (convert = setToArray);
-
-                        if (object.size != other.size && !isPartial) {
-                            return false;
-                        }
-                        // Assume cyclic values are equal.
-                        var stacked = stack.get(object);
-                        if (stacked) {
-                            return stacked == other;
-                        }
-                        bitmask |= COMPARE_UNORDERED_FLAG;
-
-                        // Recursively compare objects (susceptible to call stack limits).
-                        stack.set(object, other);
-                        var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
-                        stack['delete'](object);
-                        return result;
-
-                    case symbolTag:
-                        if (symbolValueOf) {
-                            return symbolValueOf.call(object) == symbolValueOf.call(other);
-                        }
-                }
-                return false;
-            }
-
-            module.exports = equalByTag;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_equalObjects.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_equalObjects.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
-
-            /** Used to compose bitmasks for value comparisons. */
-            var COMPARE_PARTIAL_FLAG = 1;
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * A specialized version of `baseIsEqualDeep` for objects with support for
-             * partial deep comparisons.
-             *
-             * @private
-             * @param {Object} object The object to compare.
-             * @param {Object} other The other object to compare.
-             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-             * @param {Function} customizer The function to customize comparisons.
-             * @param {Function} equalFunc The function to determine equivalents of values.
-             * @param {Object} stack Tracks traversed `object` and `other` objects.
-             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-             */
-            function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
-                var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
-                    objProps = getAllKeys(object),
-                    objLength = objProps.length,
-                    othProps = getAllKeys(other),
-                    othLength = othProps.length;
-
-                if (objLength != othLength && !isPartial) {
-                    return false;
-                }
-                var index = objLength;
-                while (index--) {
-                    var key = objProps[index];
-                    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
-                        return false;
-                    }
-                }
-                // Check that cyclic values are equal.
-                var objStacked = stack.get(object);
-                var othStacked = stack.get(other);
-                if (objStacked && othStacked) {
-                    return objStacked == other && othStacked == object;
-                }
-                var result = true;
-                stack.set(object, other);
-                stack.set(other, object);
-
-                var skipCtor = isPartial;
-                while (++index < objLength) {
-                    key = objProps[index];
-                    var objValue = object[key],
-                        othValue = other[key];
-
-                    if (customizer) {
-                        var compared = isPartial
-                            ? customizer(othValue, objValue, key, other, object, stack)
-                            : customizer(objValue, othValue, key, object, other, stack);
-                    }
-                    // Recursively compare objects (susceptible to call stack limits).
-                    if (!(compared === undefined
-                            ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
-                            : compared
-                    )) {
-                        result = false;
-                        break;
-                    }
-                    skipCtor || (skipCtor = key == 'constructor');
-                }
-                if (result && !skipCtor) {
-                    var objCtor = object.constructor,
-                        othCtor = other.constructor;
-
-                    // Non `Object` object instances with different constructors are not equal.
-                    if (objCtor != othCtor &&
-                        ('constructor' in object && 'constructor' in other) &&
-                        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
-                            typeof othCtor == 'function' && othCtor instanceof othCtor)) {
-                        result = false;
-                    }
-                }
-                stack['delete'](object);
-                stack['delete'](other);
-                return result;
-            }
-
-            module.exports = equalObjects;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_flatRest.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_flatRest.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
-                overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
-                setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
-
-            /**
-             * A specialized version of `baseRest` which flattens the rest array.
-             *
-             * @private
-             * @param {Function} func The function to apply a rest parameter to.
-             * @returns {Function} Returns the new function.
-             */
-            function flatRest(func) {
-                return setToString(overRest(func, undefined, flatten), func + '');
-            }
-
-            module.exports = flatRest;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_freeGlobal.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_freeGlobal.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
-            var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
-                module.exports = freeGlobal;
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getAllKeys.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_getAllKeys.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
-                getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * Creates an array of own enumerable property names and symbols of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names and symbols.
-             */
-            function getAllKeys(object) {
-                return baseGetAllKeys(object, keys, getSymbols);
-            }
-
-            module.exports = getAllKeys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getAllKeysIn.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_getAllKeysIn.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
-                getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /**
-             * Creates an array of own and inherited enumerable property names and
-             * symbols of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names and symbols.
-             */
-            function getAllKeysIn(object) {
-                return baseGetAllKeys(object, keysIn, getSymbolsIn);
-            }
-
-            module.exports = getAllKeysIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getMapData.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_getMapData.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
-
-            /**
-             * Gets the data for `map`.
-             *
-             * @private
-             * @param {Object} map The map to query.
-             * @param {string} key The reference key.
-             * @returns {*} Returns the map data.
-             */
-            function getMapData(map, key) {
-                var data = map.__data__;
-                return isKeyable(key)
-                    ? data[typeof key == 'string' ? 'string' : 'hash']
-                    : data.map;
-            }
-
-            module.exports = getMapData;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getMatchData.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_getMatchData.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * Gets the property names, values, and compare flags of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the match data of `object`.
-             */
-            function getMatchData(object) {
-                var result = keys(object),
-                    length = result.length;
-
-                while (length--) {
-                    var key = result[length],
-                        value = object[key];
-
-                    result[length] = [key, value, isStrictComparable(value)];
-                }
-                return result;
-            }
-
-            module.exports = getMatchData;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getNative.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_getNative.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
-                getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
-
-            /**
-             * Gets the native function at `key` of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {string} key The key of the method to get.
-             * @returns {*} Returns the function if it's native, else `undefined`.
-             */
-            function getNative(object, key) {
-                var value = getValue(object, key);
-                return baseIsNative(value) ? value : undefined;
-            }
-
-            module.exports = getNative;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getPrototype.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_getPrototype.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
-
-            /** Built-in value references. */
-            var getPrototype = overArg(Object.getPrototypeOf, Object);
-
-            module.exports = getPrototype;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getRawTag.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_getRawTag.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Used to resolve the
-             * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
-             * of values.
-             */
-            var nativeObjectToString = objectProto.toString;
-
-            /** Built-in value references. */
-            var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
-            /**
-             * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
-             *
-             * @private
-             * @param {*} value The value to query.
-             * @returns {string} Returns the raw `toStringTag`.
-             */
-            function getRawTag(value) {
-                var isOwn = hasOwnProperty.call(value, symToStringTag),
-                    tag = value[symToStringTag];
-
-                try {
-                    value[symToStringTag] = undefined;
-                    var unmasked = true;
-                } catch (e) {}
-
-                var result = nativeObjectToString.call(value);
-                if (unmasked) {
-                    if (isOwn) {
-                        value[symToStringTag] = tag;
-                    } else {
-                        delete value[symToStringTag];
-                    }
-                }
-                return result;
-            }
-
-            module.exports = getRawTag;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getSymbols.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_getSymbols.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
-                stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Built-in value references. */
-            var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeGetSymbols = Object.getOwnPropertySymbols;
-
-            /**
-             * Creates an array of the own enumerable symbols of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of symbols.
-             */
-            var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
-                if (object == null) {
-                    return [];
-                }
-                object = Object(object);
-                return arrayFilter(nativeGetSymbols(object), function(symbol) {
-                    return propertyIsEnumerable.call(object, symbol);
-                });
-            };
-
-            module.exports = getSymbols;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getSymbolsIn.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_getSymbolsIn.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
-                getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
-                getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
-                stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeGetSymbols = Object.getOwnPropertySymbols;
-
-            /**
-             * Creates an array of the own and inherited enumerable symbols of `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of symbols.
-             */
-            var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
-                var result = [];
-                while (object) {
-                    arrayPush(result, getSymbols(object));
-                    object = getPrototype(object);
-                }
-                return result;
-            };
-
-            module.exports = getSymbolsIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getTag.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/_getTag.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
-                Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
-                Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
-                Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
-                WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
-                baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
-
-            /** `Object#toString` result references. */
-            var mapTag = '[object Map]',
-                objectTag = '[object Object]',
-                promiseTag = '[object Promise]',
-                setTag = '[object Set]',
-                weakMapTag = '[object WeakMap]';
-
-            var dataViewTag = '[object DataView]';
-
-            /** Used to detect maps, sets, and weakmaps. */
-            var dataViewCtorString = toSource(DataView),
-                mapCtorString = toSource(Map),
-                promiseCtorString = toSource(Promise),
-                setCtorString = toSource(Set),
-                weakMapCtorString = toSource(WeakMap);
-
-            /**
-             * Gets the `toStringTag` of `value`.
-             *
-             * @private
-             * @param {*} value The value to query.
-             * @returns {string} Returns the `toStringTag`.
-             */
-            var getTag = baseGetTag;
-
-// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
-            if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
-                (Map && getTag(new Map) != mapTag) ||
-                (Promise && getTag(Promise.resolve()) != promiseTag) ||
-                (Set && getTag(new Set) != setTag) ||
-                (WeakMap && getTag(new WeakMap) != weakMapTag)) {
-                getTag = function(value) {
-                    var result = baseGetTag(value),
-                        Ctor = result == objectTag ? value.constructor : undefined,
-                        ctorString = Ctor ? toSource(Ctor) : '';
-
-                    if (ctorString) {
-                        switch (ctorString) {
-                            case dataViewCtorString: return dataViewTag;
-                            case mapCtorString: return mapTag;
-                            case promiseCtorString: return promiseTag;
-                            case setCtorString: return setTag;
-                            case weakMapCtorString: return weakMapTag;
-                        }
-                    }
-                    return result;
-                };
-            }
-
-            module.exports = getTag;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_getValue.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_getValue.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Gets the value at `key` of `object`.
-             *
-             * @private
-             * @param {Object} [object] The object to query.
-             * @param {string} key The key of the property to get.
-             * @returns {*} Returns the property value.
-             */
-            function getValue(object, key) {
-                return object == null ? undefined : object[key];
-            }
-
-            module.exports = getValue;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hasPath.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_hasPath.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
-                isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
-                isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
-                toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
-
-            /**
-             * Checks if `path` exists on `object`.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {Array|string} path The path to check.
-             * @param {Function} hasFunc The function to check properties.
-             * @returns {boolean} Returns `true` if `path` exists, else `false`.
-             */
-            function hasPath(object, path, hasFunc) {
-                path = castPath(path, object);
-
-                var index = -1,
-                    length = path.length,
-                    result = false;
-
-                while (++index < length) {
-                    var key = toKey(path[index]);
-                    if (!(result = object != null && hasFunc(object, key))) {
-                        break;
-                    }
-                    object = object[key];
-                }
-                if (result || ++index != length) {
-                    return result;
-                }
-                length = object == null ? 0 : object.length;
-                return !!length && isLength(length) && isIndex(key, length) &&
-                    (isArray(object) || isArguments(object));
-            }
-
-            module.exports = hasPath;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hasUnicode.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_hasUnicode.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used to compose unicode character classes. */
-            var rsAstralRange = '\\ud800-\\udfff',
-                rsComboMarksRange = '\\u0300-\\u036f',
-                reComboHalfMarksRange = '\\ufe20-\\ufe2f',
-                rsComboSymbolsRange = '\\u20d0-\\u20ff',
-                rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
-                rsVarRange = '\\ufe0e\\ufe0f';
-
-            /** Used to compose unicode capture groups. */
-            var rsZWJ = '\\u200d';
-
-            /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-            var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');
-
-            /**
-             * Checks if `string` contains Unicode symbols.
-             *
-             * @private
-             * @param {string} string The string to inspect.
-             * @returns {boolean} Returns `true` if a symbol is found, else `false`.
-             */
-            function hasUnicode(string) {
-                return reHasUnicode.test(string);
-            }
-
-            module.exports = hasUnicode;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hashClear.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_hashClear.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
-
-            /**
-             * Removes all key-value entries from the hash.
-             *
-             * @private
-             * @name clear
-             * @memberOf Hash
-             */
-            function hashClear() {
-                this.__data__ = nativeCreate ? nativeCreate(null) : {};
-                this.size = 0;
-            }
-
-            module.exports = hashClear;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hashDelete.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_hashDelete.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Removes `key` and its value from the hash.
-             *
-             * @private
-             * @name delete
-             * @memberOf Hash
-             * @param {Object} hash The hash to modify.
-             * @param {string} key The key of the value to remove.
-             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-             */
-            function hashDelete(key) {
-                var result = this.has(key) && delete this.__data__[key];
-                this.size -= result ? 1 : 0;
-                return result;
-            }
-
-            module.exports = hashDelete;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hashGet.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_hashGet.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
-
-            /** Used to stand-in for `undefined` hash values. */
-            var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Gets the hash value for `key`.
-             *
-             * @private
-             * @name get
-             * @memberOf Hash
-             * @param {string} key The key of the value to get.
-             * @returns {*} Returns the entry value.
-             */
-            function hashGet(key) {
-                var data = this.__data__;
-                if (nativeCreate) {
-                    var result = data[key];
-                    return result === HASH_UNDEFINED ? undefined : result;
-                }
-                return hasOwnProperty.call(data, key) ? data[key] : undefined;
-            }
-
-            module.exports = hashGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hashHas.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_hashHas.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Checks if a hash value for `key` exists.
-             *
-             * @private
-             * @name has
-             * @memberOf Hash
-             * @param {string} key The key of the entry to check.
-             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-             */
-            function hashHas(key) {
-                var data = this.__data__;
-                return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
-            }
-
-            module.exports = hashHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_hashSet.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_hashSet.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
-
-            /** Used to stand-in for `undefined` hash values. */
-            var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-            /**
-             * Sets the hash `key` to `value`.
-             *
-             * @private
-             * @name set
-             * @memberOf Hash
-             * @param {string} key The key of the value to set.
-             * @param {*} value The value to set.
-             * @returns {Object} Returns the hash instance.
-             */
-            function hashSet(key, value) {
-                var data = this.__data__;
-                this.size += this.has(key) ? 0 : 1;
-                data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
-                return this;
-            }
-
-            module.exports = hashSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_initCloneArray.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_initCloneArray.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Initializes an array clone.
-             *
-             * @private
-             * @param {Array} array The array to clone.
-             * @returns {Array} Returns the initialized clone.
-             */
-            function initCloneArray(array) {
-                var length = array.length,
-                    result = new array.constructor(length);
-
-                // Add properties assigned by `RegExp#exec`.
-                if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
-                    result.index = array.index;
-                    result.input = array.input;
-                }
-                return result;
-            }
-
-            module.exports = initCloneArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_initCloneByTag.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_initCloneByTag.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
-                cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
-                cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
-                cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
-                cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
-
-            /** `Object#toString` result references. */
-            var boolTag = '[object Boolean]',
-                dateTag = '[object Date]',
-                mapTag = '[object Map]',
-                numberTag = '[object Number]',
-                regexpTag = '[object RegExp]',
-                setTag = '[object Set]',
-                stringTag = '[object String]',
-                symbolTag = '[object Symbol]';
-
-            var arrayBufferTag = '[object ArrayBuffer]',
-                dataViewTag = '[object DataView]',
-                float32Tag = '[object Float32Array]',
-                float64Tag = '[object Float64Array]',
-                int8Tag = '[object Int8Array]',
-                int16Tag = '[object Int16Array]',
-                int32Tag = '[object Int32Array]',
-                uint8Tag = '[object Uint8Array]',
-                uint8ClampedTag = '[object Uint8ClampedArray]',
-                uint16Tag = '[object Uint16Array]',
-                uint32Tag = '[object Uint32Array]';
-
-            /**
-             * Initializes an object clone based on its `toStringTag`.
-             *
-             * **Note:** This function only supports cloning values with tags of
-             * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
-             *
-             * @private
-             * @param {Object} object The object to clone.
-             * @param {string} tag The `toStringTag` of the object to clone.
-             * @param {boolean} [isDeep] Specify a deep clone.
-             * @returns {Object} Returns the initialized clone.
-             */
-            function initCloneByTag(object, tag, isDeep) {
-                var Ctor = object.constructor;
-                switch (tag) {
-                    case arrayBufferTag:
-                        return cloneArrayBuffer(object);
-
-                    case boolTag:
-                    case dateTag:
-                        return new Ctor(+object);
-
-                    case dataViewTag:
-                        return cloneDataView(object, isDeep);
-
-                    case float32Tag: case float64Tag:
-                    case int8Tag: case int16Tag: case int32Tag:
-                    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
-                        return cloneTypedArray(object, isDeep);
-
-                    case mapTag:
-                        return new Ctor;
-
-                    case numberTag:
-                    case stringTag:
-                        return new Ctor(object);
-
-                    case regexpTag:
-                        return cloneRegExp(object);
-
-                    case setTag:
-                        return new Ctor;
-
-                    case symbolTag:
-                        return cloneSymbol(object);
-                }
-            }
-
-            module.exports = initCloneByTag;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_initCloneObject.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_initCloneObject.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
-                getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
-                isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
-
-            /**
-             * Initializes an object clone.
-             *
-             * @private
-             * @param {Object} object The object to clone.
-             * @returns {Object} Returns the initialized clone.
-             */
-            function initCloneObject(object) {
-                return (typeof object.constructor == 'function' && !isPrototype(object))
-                    ? baseCreate(getPrototype(object))
-                    : {};
-            }
-
-            module.exports = initCloneObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isFlattenable.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_isFlattenable.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
-                isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /** Built-in value references. */
-            var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
-
-            /**
-             * Checks if `value` is a flattenable `arguments` object or array.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
-             */
-            function isFlattenable(value) {
-                return isArray(value) || isArguments(value) ||
-                    !!(spreadableSymbol && value && value[spreadableSymbol]);
-            }
-
-            module.exports = isFlattenable;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isIndex.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_isIndex.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used as references for various `Number` constants. */
-            var MAX_SAFE_INTEGER = 9007199254740991;
-
-            /** Used to detect unsigned integer values. */
-            var reIsUint = /^(?:0|[1-9]\d*)$/;
-
-            /**
-             * Checks if `value` is a valid array-like index.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
-             * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
-             */
-            function isIndex(value, length) {
-                var type = typeof value;
-                length = length == null ? MAX_SAFE_INTEGER : length;
-
-                return !!length &&
-                    (type == 'number' ||
-                        (type != 'symbol' && reIsUint.test(value))) &&
-                    (value > -1 && value % 1 == 0 && value < length);
-            }
-
-            module.exports = isIndex;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isIterateeCall.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_isIterateeCall.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
-                isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
-
-            /**
-             * Checks if the given arguments are from an iteratee call.
-             *
-             * @private
-             * @param {*} value The potential iteratee value argument.
-             * @param {*} index The potential iteratee index or key argument.
-             * @param {*} object The potential iteratee object argument.
-             * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
-             *  else `false`.
-             */
-            function isIterateeCall(value, index, object) {
-                if (!isObject(object)) {
-                    return false;
-                }
-                var type = typeof index;
-                if (type == 'number'
-                    ? (isArrayLike(object) && isIndex(index, object.length))
-                    : (type == 'string' && index in object)
-                ) {
-                    return eq(object[index], value);
-                }
-                return false;
-            }
-
-            module.exports = isIterateeCall;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isKey.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/_isKey.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /** Used to match property names within property paths. */
-            var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
-                reIsPlainProp = /^\w*$/;
-
-            /**
-             * Checks if `value` is a property name and not a property path.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @param {Object} [object] The object to query keys on.
-             * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
-             */
-            function isKey(value, object) {
-                if (isArray(value)) {
-                    return false;
-                }
-                var type = typeof value;
-                if (type == 'number' || type == 'symbol' || type == 'boolean' ||
-                    value == null || isSymbol(value)) {
-                    return true;
-                }
-                return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
-                    (object != null && value in Object(object));
-            }
-
-            module.exports = isKey;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isKeyable.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/_isKeyable.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is suitable for use as unique object key.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
-             */
-            function isKeyable(value) {
-                var type = typeof value;
-                return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
-                    ? (value !== '__proto__')
-                    : (value === null);
-            }
-
-            module.exports = isKeyable;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isMasked.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_isMasked.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
-
-            /** Used to detect methods masquerading as native. */
-            var maskSrcKey = (function() {
-                var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
-                return uid ? ('Symbol(src)_1.' + uid) : '';
-            }());
-
-            /**
-             * Checks if `func` has its source masked.
-             *
-             * @private
-             * @param {Function} func The function to check.
-             * @returns {boolean} Returns `true` if `func` is masked, else `false`.
-             */
-            function isMasked(func) {
-                return !!maskSrcKey && (maskSrcKey in func);
-            }
-
-            module.exports = isMasked;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isPrototype.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_isPrototype.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /**
-             * Checks if `value` is likely a prototype object.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
-             */
-            function isPrototype(value) {
-                var Ctor = value && value.constructor,
-                    proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
-                return value === proto;
-            }
-
-            module.exports = isPrototype;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_isStrictComparable.js":
-        /*!****************************************************!*\
-  !*** ./node_modules/lodash/_isStrictComparable.js ***!
-  \****************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
-
-            /**
-             * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
-             *
-             * @private
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` if suitable for strict
-             *  equality comparisons, else `false`.
-             */
-            function isStrictComparable(value) {
-                return value === value && !isObject(value);
-            }
-
-            module.exports = isStrictComparable;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_listCacheClear.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_listCacheClear.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Removes all key-value entries from the list cache.
-             *
-             * @private
-             * @name clear
-             * @memberOf ListCache
-             */
-            function listCacheClear() {
-                this.__data__ = [];
-                this.size = 0;
-            }
-
-            module.exports = listCacheClear;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_listCacheDelete.js":
-        /*!*************************************************!*\
-  !*** ./node_modules/lodash/_listCacheDelete.js ***!
-  \*************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
-
-            /** Used for built-in method references. */
-            var arrayProto = Array.prototype;
-
-            /** Built-in value references. */
-            var splice = arrayProto.splice;
-
-            /**
-             * Removes `key` and its value from the list cache.
-             *
-             * @private
-             * @name delete
-             * @memberOf ListCache
-             * @param {string} key The key of the value to remove.
-             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-             */
-            function listCacheDelete(key) {
-                var data = this.__data__,
-                    index = assocIndexOf(data, key);
-
-                if (index < 0) {
-                    return false;
-                }
-                var lastIndex = data.length - 1;
-                if (index == lastIndex) {
-                    data.pop();
-                } else {
-                    splice.call(data, index, 1);
-                }
-                --this.size;
-                return true;
-            }
-
-            module.exports = listCacheDelete;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_listCacheGet.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_listCacheGet.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
-
-            /**
-             * Gets the list cache value for `key`.
-             *
-             * @private
-             * @name get
-             * @memberOf ListCache
-             * @param {string} key The key of the value to get.
-             * @returns {*} Returns the entry value.
-             */
-            function listCacheGet(key) {
-                var data = this.__data__,
-                    index = assocIndexOf(data, key);
-
-                return index < 0 ? undefined : data[index][1];
-            }
-
-            module.exports = listCacheGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_listCacheHas.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_listCacheHas.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
-
-            /**
-             * Checks if a list cache value for `key` exists.
-             *
-             * @private
-             * @name has
-             * @memberOf ListCache
-             * @param {string} key The key of the entry to check.
-             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-             */
-            function listCacheHas(key) {
-                return assocIndexOf(this.__data__, key) > -1;
-            }
-
-            module.exports = listCacheHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_listCacheSet.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_listCacheSet.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
-
-            /**
-             * Sets the list cache `key` to `value`.
-             *
-             * @private
-             * @name set
-             * @memberOf ListCache
-             * @param {string} key The key of the value to set.
-             * @param {*} value The value to set.
-             * @returns {Object} Returns the list cache instance.
-             */
-            function listCacheSet(key, value) {
-                var data = this.__data__,
-                    index = assocIndexOf(data, key);
-
-                if (index < 0) {
-                    ++this.size;
-                    data.push([key, value]);
-                } else {
-                    data[index][1] = value;
-                }
-                return this;
-            }
-
-            module.exports = listCacheSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapCacheClear.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_mapCacheClear.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
-                ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
-                Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
-
-            /**
-             * Removes all key-value entries from the map.
-             *
-             * @private
-             * @name clear
-             * @memberOf MapCache
-             */
-            function mapCacheClear() {
-                this.size = 0;
-                this.__data__ = {
-                    'hash': new Hash,
-                    'map': new (Map || ListCache),
-                    'string': new Hash
-                };
-            }
-
-            module.exports = mapCacheClear;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapCacheDelete.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_mapCacheDelete.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
-
-            /**
-             * Removes `key` and its value from the map.
-             *
-             * @private
-             * @name delete
-             * @memberOf MapCache
-             * @param {string} key The key of the value to remove.
-             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-             */
-            function mapCacheDelete(key) {
-                var result = getMapData(this, key)['delete'](key);
-                this.size -= result ? 1 : 0;
-                return result;
-            }
-
-            module.exports = mapCacheDelete;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapCacheGet.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_mapCacheGet.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
-
-            /**
-             * Gets the map value for `key`.
-             *
-             * @private
-             * @name get
-             * @memberOf MapCache
-             * @param {string} key The key of the value to get.
-             * @returns {*} Returns the entry value.
-             */
-            function mapCacheGet(key) {
-                return getMapData(this, key).get(key);
-            }
-
-            module.exports = mapCacheGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapCacheHas.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_mapCacheHas.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
-
-            /**
-             * Checks if a map value for `key` exists.
-             *
-             * @private
-             * @name has
-             * @memberOf MapCache
-             * @param {string} key The key of the entry to check.
-             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-             */
-            function mapCacheHas(key) {
-                return getMapData(this, key).has(key);
-            }
-
-            module.exports = mapCacheHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapCacheSet.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_mapCacheSet.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
-
-            /**
-             * Sets the map `key` to `value`.
-             *
-             * @private
-             * @name set
-             * @memberOf MapCache
-             * @param {string} key The key of the value to set.
-             * @param {*} value The value to set.
-             * @returns {Object} Returns the map cache instance.
-             */
-            function mapCacheSet(key, value) {
-                var data = getMapData(this, key),
-                    size = data.size;
-
-                data.set(key, value);
-                this.size += data.size == size ? 0 : 1;
-                return this;
-            }
-
-            module.exports = mapCacheSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_mapToArray.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_mapToArray.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Converts `map` to its key-value pairs.
-             *
-             * @private
-             * @param {Object} map The map to convert.
-             * @returns {Array} Returns the key-value pairs.
-             */
-            function mapToArray(map) {
-                var index = -1,
-                    result = Array(map.size);
-
-                map.forEach(function(value, key) {
-                    result[++index] = [key, value];
-                });
-                return result;
-            }
-
-            module.exports = mapToArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_matchesStrictComparable.js":
-        /*!*********************************************************!*\
-  !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
-  \*********************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `matchesProperty` for source values suitable
-             * for strict equality comparisons, i.e. `===`.
-             *
-             * @private
-             * @param {string} key The key of the property to get.
-             * @param {*} srcValue The value to match.
-             * @returns {Function} Returns the new spec function.
-             */
-            function matchesStrictComparable(key, srcValue) {
-                return function(object) {
-                    if (object == null) {
-                        return false;
-                    }
-                    return object[key] === srcValue &&
-                        (srcValue !== undefined || (key in Object(object)));
-                };
-            }
-
-            module.exports = matchesStrictComparable;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_memoizeCapped.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_memoizeCapped.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
-
-            /** Used as the maximum memoize cache size. */
-            var MAX_MEMOIZE_SIZE = 500;
-
-            /**
-             * A specialized version of `_.memoize` which clears the memoized function's
-             * cache when it exceeds `MAX_MEMOIZE_SIZE`.
-             *
-             * @private
-             * @param {Function} func The function to have its output memoized.
-             * @returns {Function} Returns the new memoized function.
-             */
-            function memoizeCapped(func) {
-                var result = memoize(func, function(key) {
-                    if (cache.size === MAX_MEMOIZE_SIZE) {
-                        cache.clear();
-                    }
-                    return key;
-                });
-
-                var cache = result.cache;
-                return result;
-            }
-
-            module.exports = memoizeCapped;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_nativeCreate.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_nativeCreate.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
-
-            /* Built-in method references that are verified to be native. */
-            var nativeCreate = getNative(Object, 'create');
-
-            module.exports = nativeCreate;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_nativeKeys.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_nativeKeys.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeKeys = overArg(Object.keys, Object);
-
-            module.exports = nativeKeys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_nativeKeysIn.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_nativeKeysIn.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This function is like
-             * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
-             * except that it includes inherited enumerable properties.
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names.
-             */
-            function nativeKeysIn(object) {
-                var result = [];
-                if (object != null) {
-                    for (var key in Object(object)) {
-                        result.push(key);
-                    }
-                }
-                return result;
-            }
-
-            module.exports = nativeKeysIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_nodeUtil.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_nodeUtil.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
-
-                /** Detect free variable `exports`. */
-                var freeExports =  true && exports && !exports.nodeType && exports;
-
-                /** Detect free variable `module`. */
-                var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-                /** Detect the popular CommonJS extension `module.exports`. */
-                var moduleExports = freeModule && freeModule.exports === freeExports;
-
-                /** Detect free variable `process` from Node.js. */
-                var freeProcess = moduleExports && freeGlobal.process;
-
-                /** Used to access faster Node.js helpers. */
-                var nodeUtil = (function() {
-                    try {
-                        // Use `util.types` for Node.js 10+.
-                        var types = freeModule && freeModule.require && freeModule.require('util').types;
-
-                        if (types) {
-                            return types;
-                        }
-
-                        // Legacy `process.binding('util')` for Node.js < 10.
-                        return freeProcess && freeProcess.binding && freeProcess.binding('util');
-                    } catch (e) {}
-                }());
-
-                module.exports = nodeUtil;
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_objectToString.js":
-        /*!************************************************!*\
-  !*** ./node_modules/lodash/_objectToString.js ***!
-  \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /**
-             * Used to resolve the
-             * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
-             * of values.
-             */
-            var nativeObjectToString = objectProto.toString;
-
-            /**
-             * Converts `value` to a string using `Object.prototype.toString`.
-             *
-             * @private
-             * @param {*} value The value to convert.
-             * @returns {string} Returns the converted string.
-             */
-            function objectToString(value) {
-                return nativeObjectToString.call(value);
-            }
-
-            module.exports = objectToString;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_overArg.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_overArg.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Creates a unary function that invokes `func` with its argument transformed.
-             *
-             * @private
-             * @param {Function} func The function to wrap.
-             * @param {Function} transform The argument transform.
-             * @returns {Function} Returns the new function.
-             */
-            function overArg(func, transform) {
-                return function(arg) {
-                    return func(transform(arg));
-                };
-            }
-
-            module.exports = overArg;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_overRest.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_overRest.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeMax = Math.max;
-
-            /**
-             * A specialized version of `baseRest` which transforms the rest array.
-             *
-             * @private
-             * @param {Function} func The function to apply a rest parameter to.
-             * @param {number} [start=func.length-1] The start position of the rest parameter.
-             * @param {Function} transform The rest array transform.
-             * @returns {Function} Returns the new function.
-             */
-            function overRest(func, start, transform) {
-                start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
-                return function() {
-                    var args = arguments,
-                        index = -1,
-                        length = nativeMax(args.length - start, 0),
-                        array = Array(length);
-
-                    while (++index < length) {
-                        array[index] = args[start + index];
-                    }
-                    index = -1;
-                    var otherArgs = Array(start + 1);
-                    while (++index < start) {
-                        otherArgs[index] = args[index];
-                    }
-                    otherArgs[start] = transform(array);
-                    return apply(func, this, otherArgs);
-                };
-            }
-
-            module.exports = overRest;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_root.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/_root.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
-
-            /** Detect free variable `self`. */
-            var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
-            /** Used as a reference to the global object. */
-            var root = freeGlobal || freeSelf || Function('return this')();
-
-            module.exports = root;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_safeGet.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/_safeGet.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
-             *
-             * @private
-             * @param {Object} object The object to query.
-             * @param {string} key The key of the property to get.
-             * @returns {*} Returns the property value.
-             */
-            function safeGet(object, key) {
-                if (key === 'constructor' && typeof object[key] === 'function') {
-                    return;
-                }
-
-                if (key == '__proto__') {
-                    return;
-                }
-
-                return object[key];
-            }
-
-            module.exports = safeGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_setCacheAdd.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_setCacheAdd.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used to stand-in for `undefined` hash values. */
-            var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-            /**
-             * Adds `value` to the array cache.
-             *
-             * @private
-             * @name add
-             * @memberOf SetCache
-             * @alias push
-             * @param {*} value The value to cache.
-             * @returns {Object} Returns the cache instance.
-             */
-            function setCacheAdd(value) {
-                this.__data__.set(value, HASH_UNDEFINED);
-                return this;
-            }
-
-            module.exports = setCacheAdd;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_setCacheHas.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_setCacheHas.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is in the array cache.
-             *
-             * @private
-             * @name has
-             * @memberOf SetCache
-             * @param {*} value The value to search for.
-             * @returns {number} Returns `true` if `value` is found, else `false`.
-             */
-            function setCacheHas(value) {
-                return this.__data__.has(value);
-            }
-
-            module.exports = setCacheHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_setToArray.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_setToArray.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Converts `set` to an array of its values.
-             *
-             * @private
-             * @param {Object} set The set to convert.
-             * @returns {Array} Returns the values.
-             */
-            function setToArray(set) {
-                var index = -1,
-                    result = Array(set.size);
-
-                set.forEach(function(value) {
-                    result[++index] = value;
-                });
-                return result;
-            }
-
-            module.exports = setToArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_setToString.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_setToString.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
-                shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
-
-            /**
-             * Sets the `toString` method of `func` to return `string`.
-             *
-             * @private
-             * @param {Function} func The function to modify.
-             * @param {Function} string The `toString` result.
-             * @returns {Function} Returns `func`.
-             */
-            var setToString = shortOut(baseSetToString);
-
-            module.exports = setToString;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_shortOut.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_shortOut.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used to detect hot functions by number of calls within a span of milliseconds. */
-            var HOT_COUNT = 800,
-                HOT_SPAN = 16;
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeNow = Date.now;
-
-            /**
-             * Creates a function that'll short out and invoke `identity` instead
-             * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
-             * milliseconds.
-             *
-             * @private
-             * @param {Function} func The function to restrict.
-             * @returns {Function} Returns the new shortable function.
-             */
-            function shortOut(func) {
-                var count = 0,
-                    lastCalled = 0;
-
-                return function() {
-                    var stamp = nativeNow(),
-                        remaining = HOT_SPAN - (stamp - lastCalled);
-
-                    lastCalled = stamp;
-                    if (remaining > 0) {
-                        if (++count >= HOT_COUNT) {
-                            return arguments[0];
-                        }
-                    } else {
-                        count = 0;
-                    }
-                    return func.apply(undefined, arguments);
-                };
-            }
-
-            module.exports = shortOut;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stackClear.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_stackClear.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
-
-            /**
-             * Removes all key-value entries from the stack.
-             *
-             * @private
-             * @name clear
-             * @memberOf Stack
-             */
-            function stackClear() {
-                this.__data__ = new ListCache;
-                this.size = 0;
-            }
-
-            module.exports = stackClear;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stackDelete.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_stackDelete.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Removes `key` and its value from the stack.
-             *
-             * @private
-             * @name delete
-             * @memberOf Stack
-             * @param {string} key The key of the value to remove.
-             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-             */
-            function stackDelete(key) {
-                var data = this.__data__,
-                    result = data['delete'](key);
-
-                this.size = data.size;
-                return result;
-            }
-
-            module.exports = stackDelete;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stackGet.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_stackGet.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Gets the stack value for `key`.
-             *
-             * @private
-             * @name get
-             * @memberOf Stack
-             * @param {string} key The key of the value to get.
-             * @returns {*} Returns the entry value.
-             */
-            function stackGet(key) {
-                return this.__data__.get(key);
-            }
-
-            module.exports = stackGet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stackHas.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_stackHas.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if a stack value for `key` exists.
-             *
-             * @private
-             * @name has
-             * @memberOf Stack
-             * @param {string} key The key of the entry to check.
-             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-             */
-            function stackHas(key) {
-                return this.__data__.has(key);
-            }
-
-            module.exports = stackHas;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stackSet.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_stackSet.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
-                Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
-                MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
-
-            /** Used as the size to enable large array optimizations. */
-            var LARGE_ARRAY_SIZE = 200;
-
-            /**
-             * Sets the stack `key` to `value`.
-             *
-             * @private
-             * @name set
-             * @memberOf Stack
-             * @param {string} key The key of the value to set.
-             * @param {*} value The value to set.
-             * @returns {Object} Returns the stack cache instance.
-             */
-            function stackSet(key, value) {
-                var data = this.__data__;
-                if (data instanceof ListCache) {
-                    var pairs = data.__data__;
-                    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
-                        pairs.push([key, value]);
-                        this.size = ++data.size;
-                        return this;
-                    }
-                    data = this.__data__ = new MapCache(pairs);
-                }
-                data.set(key, value);
-                this.size = data.size;
-                return this;
-            }
-
-            module.exports = stackSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_strictIndexOf.js":
-        /*!***********************************************!*\
-  !*** ./node_modules/lodash/_strictIndexOf.js ***!
-  \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * A specialized version of `_.indexOf` which performs strict equality
-             * comparisons of values, i.e. `===`.
-             *
-             * @private
-             * @param {Array} array The array to inspect.
-             * @param {*} value The value to search for.
-             * @param {number} fromIndex The index to search from.
-             * @returns {number} Returns the index of the matched value, else `-1`.
-             */
-            function strictIndexOf(array, value, fromIndex) {
-                var index = fromIndex - 1,
-                    length = array.length;
-
-                while (++index < length) {
-                    if (array[index] === value) {
-                        return index;
-                    }
-                }
-                return -1;
-            }
-
-            module.exports = strictIndexOf;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stringSize.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/_stringSize.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
-                hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
-                unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
-
-            /**
-             * Gets the number of symbols in `string`.
-             *
-             * @private
-             * @param {string} string The string to inspect.
-             * @returns {number} Returns the string size.
-             */
-            function stringSize(string) {
-                return hasUnicode(string)
-                    ? unicodeSize(string)
-                    : asciiSize(string);
-            }
-
-            module.exports = stringSize;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_stringToPath.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/_stringToPath.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
-
-            /** Used to match property names within property paths. */
-            var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
-            /** Used to match backslashes in property paths. */
-            var reEscapeChar = /\\(\\)?/g;
-
-            /**
-             * Converts `string` to a property path array.
-             *
-             * @private
-             * @param {string} string The string to convert.
-             * @returns {Array} Returns the property path array.
-             */
-            var stringToPath = memoizeCapped(function(string) {
-                var result = [];
-                if (string.charCodeAt(0) === 46 /* . */) {
-                    result.push('');
-                }
-                string.replace(rePropName, function(match, number, quote, subString) {
-                    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
-                });
-                return result;
-            });
-
-            module.exports = stringToPath;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_toKey.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/_toKey.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /** Used as references for various `Number` constants. */
-            var INFINITY = 1 / 0;
-
-            /**
-             * Converts `value` to a string key if it's not a string or symbol.
-             *
-             * @private
-             * @param {*} value The value to inspect.
-             * @returns {string|symbol} Returns the key.
-             */
-            function toKey(value) {
-                if (typeof value == 'string' || isSymbol(value)) {
-                    return value;
-                }
-                var result = (value + '');
-                return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-            }
-
-            module.exports = toKey;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_toSource.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/_toSource.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used for built-in method references. */
-            var funcProto = Function.prototype;
-
-            /** Used to resolve the decompiled source of functions. */
-            var funcToString = funcProto.toString;
-
-            /**
-             * Converts `func` to its source code.
-             *
-             * @private
-             * @param {Function} func The function to convert.
-             * @returns {string} Returns the source code.
-             */
-            function toSource(func) {
-                if (func != null) {
-                    try {
-                        return funcToString.call(func);
-                    } catch (e) {}
-                    try {
-                        return (func + '');
-                    } catch (e) {}
-                }
-                return '';
-            }
-
-            module.exports = toSource;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/_unicodeSize.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/_unicodeSize.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used to compose unicode character classes. */
-            var rsAstralRange = '\\ud800-\\udfff',
-                rsComboMarksRange = '\\u0300-\\u036f',
-                reComboHalfMarksRange = '\\ufe20-\\ufe2f',
-                rsComboSymbolsRange = '\\u20d0-\\u20ff',
-                rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
-                rsVarRange = '\\ufe0e\\ufe0f';
-
-            /** Used to compose unicode capture groups. */
-            var rsAstral = '[' + rsAstralRange + ']',
-                rsCombo = '[' + rsComboRange + ']',
-                rsFitz = '\\ud83c[\\udffb-\\udfff]',
-                rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
-                rsNonAstral = '[^' + rsAstralRange + ']',
-                rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
-                rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
-                rsZWJ = '\\u200d';
-
-            /** Used to compose unicode regexes. */
-            var reOptMod = rsModifier + '?',
-                rsOptVar = '[' + rsVarRange + ']?',
-                rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
-                rsSeq = rsOptVar + reOptMod + rsOptJoin,
-                rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
-            /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-            var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
-            /**
-             * Gets the size of a Unicode `string`.
-             *
-             * @private
-             * @param {string} string The string inspect.
-             * @returns {number} Returns the string size.
-             */
-            function unicodeSize(string) {
-                var result = reUnicode.lastIndex = 0;
-                while (reUnicode.test(string)) {
-                    ++result;
-                }
-                return result;
-            }
-
-            module.exports = unicodeSize;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/clone.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/clone.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
-
-            /** Used to compose bitmasks for cloning. */
-            var CLONE_SYMBOLS_FLAG = 4;
-
-            /**
-             * Creates a shallow clone of `value`.
-             *
-             * **Note:** This method is loosely based on the
-             * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
-             * and supports cloning arrays, array buffers, booleans, date objects, maps,
-             * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
-             * arrays. The own enumerable properties of `arguments` objects are cloned
-             * as plain objects. An empty object is returned for uncloneable values such
-             * as error objects, functions, DOM nodes, and WeakMaps.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to clone.
-             * @returns {*} Returns the cloned value.
-             * @see _.cloneDeep
-             * @example
-             *
-             * var objects = [{ 'a': 1 }, { 'b': 2 }];
-             *
-             * var shallow = _.clone(objects);
-             * console.log(shallow[0] === objects[0]);
-             * // => true
-             */
-            function clone(value) {
-                return baseClone(value, CLONE_SYMBOLS_FLAG);
-            }
-
-            module.exports = clone;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/cloneDeep.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/cloneDeep.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
-
-            /** Used to compose bitmasks for cloning. */
-            var CLONE_DEEP_FLAG = 1,
-                CLONE_SYMBOLS_FLAG = 4;
-
-            /**
-             * This method is like `_.clone` except that it recursively clones `value`.
-             *
-             * @static
-             * @memberOf _
-             * @since 1.0.0
-             * @category Lang
-             * @param {*} value The value to recursively clone.
-             * @returns {*} Returns the deep cloned value.
-             * @see _.clone
-             * @example
-             *
-             * var objects = [{ 'a': 1 }, { 'b': 2 }];
-             *
-             * var deep = _.cloneDeep(objects);
-             * console.log(deep[0] === objects[0]);
-             * // => false
-             */
-            function cloneDeep(value) {
-                return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
-            }
-
-            module.exports = cloneDeep;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/constant.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/constant.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Creates a function that returns `value`.
-             *
-             * @static
-             * @memberOf _
-             * @since 2.4.0
-             * @category Util
-             * @param {*} value The value to return from the new function.
-             * @returns {Function} Returns the new constant function.
-             * @example
-             *
-             * var objects = _.times(2, _.constant({ 'a': 1 }));
-             *
-             * console.log(objects);
-             * // => [{ 'a': 1 }, { 'a': 1 }]
-             *
-             * console.log(objects[0] === objects[1]);
-             * // => true
-             */
-            function constant(value) {
-                return function() {
-                    return value;
-                };
-            }
-
-            module.exports = constant;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/defaults.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/defaults.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
-                eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
-                isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Assigns own and inherited enumerable string keyed properties of source
-             * objects to the destination object for all destination properties that
-             * resolve to `undefined`. Source objects are applied from left to right.
-             * Once a property is set, additional values of the same property are ignored.
-             *
-             * **Note:** This method mutates `object`.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Object
-             * @param {Object} object The destination object.
-             * @param {...Object} [sources] The source objects.
-             * @returns {Object} Returns `object`.
-             * @see _.defaultsDeep
-             * @example
-             *
-             * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-             * // => { 'a': 1, 'b': 2 }
-             */
-            var defaults = baseRest(function(object, sources) {
-                object = Object(object);
-
-                var index = -1;
-                var length = sources.length;
-                var guard = length > 2 ? sources[2] : undefined;
-
-                if (guard && isIterateeCall(sources[0], sources[1], guard)) {
-                    length = 1;
-                }
-
-                while (++index < length) {
-                    var source = sources[index];
-                    var props = keysIn(source);
-                    var propsIndex = -1;
-                    var propsLength = props.length;
-
-                    while (++propsIndex < propsLength) {
-                        var key = props[propsIndex];
-                        var value = object[key];
-
-                        if (value === undefined ||
-                            (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
-                            object[key] = source[key];
-                        }
-                    }
-                }
-
-                return object;
-            });
-
-            module.exports = defaults;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/each.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/each.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            module.exports = __webpack_require__(/*! ./forEach */ "./node_modules/lodash/forEach.js");
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/eq.js":
-        /*!***********************************!*\
-  !*** ./node_modules/lodash/eq.js ***!
-  \***********************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Performs a
-             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-             * comparison between two values to determine if they are equivalent.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to compare.
-             * @param {*} other The other value to compare.
-             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-             * @example
-             *
-             * var object = { 'a': 1 };
-             * var other = { 'a': 1 };
-             *
-             * _.eq(object, object);
-             * // => true
-             *
-             * _.eq(object, other);
-             * // => false
-             *
-             * _.eq('a', 'a');
-             * // => true
-             *
-             * _.eq('a', Object('a'));
-             * // => false
-             *
-             * _.eq(NaN, NaN);
-             * // => true
-             */
-            function eq(value, other) {
-                return value === other || (value !== value && other !== other);
-            }
-
-            module.exports = eq;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/filter.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/filter.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
-                baseFilter = __webpack_require__(/*! ./_baseFilter */ "./node_modules/lodash/_baseFilter.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * Iterates over elements of `collection`, returning an array of all elements
-             * `predicate` returns truthy for. The predicate is invoked with three
-             * arguments: (value, index|key, collection).
-             *
-             * **Note:** Unlike `_.remove`, this method returns a new array.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} [predicate=_.identity] The function invoked per iteration.
-             * @returns {Array} Returns the new filtered array.
-             * @see _.reject
-             * @example
-             *
-             * var users = [
-             *   { 'user': 'barney', 'age': 36, 'active': true },
-             *   { 'user': 'fred',   'age': 40, 'active': false }
-             * ];
-             *
-             * _.filter(users, function(o) { return !o.active; });
-             * // => objects for ['fred']
-             *
-             * // The `_.matches` iteratee shorthand.
-             * _.filter(users, { 'age': 36, 'active': true });
-             * // => objects for ['barney']
-             *
-             * // The `_.matchesProperty` iteratee shorthand.
-             * _.filter(users, ['active', false]);
-             * // => objects for ['fred']
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.filter(users, 'active');
-             * // => objects for ['barney']
-             *
-             * // Combining several predicates using `_.overEvery` or `_.overSome`.
-             * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
-             * // => objects for ['fred', 'barney']
-             */
-            function filter(collection, predicate) {
-                var func = isArray(collection) ? arrayFilter : baseFilter;
-                return func(collection, baseIteratee(predicate, 3));
-            }
-
-            module.exports = filter;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/find.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/find.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
-                findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
-
-            /**
-             * Iterates over elements of `collection`, returning the first element
-             * `predicate` returns truthy for. The predicate is invoked with three
-             * arguments: (value, index|key, collection).
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object} collection The collection to inspect.
-             * @param {Function} [predicate=_.identity] The function invoked per iteration.
-             * @param {number} [fromIndex=0] The index to search from.
-             * @returns {*} Returns the matched element, else `undefined`.
-             * @example
-             *
-             * var users = [
-             *   { 'user': 'barney',  'age': 36, 'active': true },
-             *   { 'user': 'fred',    'age': 40, 'active': false },
-             *   { 'user': 'pebbles', 'age': 1,  'active': true }
-             * ];
-             *
-             * _.find(users, function(o) { return o.age < 40; });
-             * // => object for 'barney'
-             *
-             * // The `_.matches` iteratee shorthand.
-             * _.find(users, { 'age': 1, 'active': true });
-             * // => object for 'pebbles'
-             *
-             * // The `_.matchesProperty` iteratee shorthand.
-             * _.find(users, ['active', false]);
-             * // => object for 'fred'
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.find(users, 'active');
-             * // => object for 'barney'
-             */
-            var find = createFind(findIndex);
-
-            module.exports = find;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/findIndex.js":
-        /*!******************************************!*\
-  !*** ./node_modules/lodash/findIndex.js ***!
-  \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
-
-            /* Built-in method references for those with the same name as other `lodash` methods. */
-            var nativeMax = Math.max;
-
-            /**
-             * This method is like `_.find` except that it returns the index of the first
-             * element `predicate` returns truthy for instead of the element itself.
-             *
-             * @static
-             * @memberOf _
-             * @since 1.1.0
-             * @category Array
-             * @param {Array} array The array to inspect.
-             * @param {Function} [predicate=_.identity] The function invoked per iteration.
-             * @param {number} [fromIndex=0] The index to search from.
-             * @returns {number} Returns the index of the found element, else `-1`.
-             * @example
-             *
-             * var users = [
-             *   { 'user': 'barney',  'active': false },
-             *   { 'user': 'fred',    'active': false },
-             *   { 'user': 'pebbles', 'active': true }
-             * ];
-             *
-             * _.findIndex(users, function(o) { return o.user == 'barney'; });
-             * // => 0
-             *
-             * // The `_.matches` iteratee shorthand.
-             * _.findIndex(users, { 'user': 'fred', 'active': false });
-             * // => 1
-             *
-             * // The `_.matchesProperty` iteratee shorthand.
-             * _.findIndex(users, ['active', false]);
-             * // => 0
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.findIndex(users, 'active');
-             * // => 2
-             */
-            function findIndex(array, predicate, fromIndex) {
-                var length = array == null ? 0 : array.length;
-                if (!length) {
-                    return -1;
-                }
-                var index = fromIndex == null ? 0 : toInteger(fromIndex);
-                if (index < 0) {
-                    index = nativeMax(length + index, 0);
-                }
-                return baseFindIndex(array, baseIteratee(predicate, 3), index);
-            }
-
-            module.exports = findIndex;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/flatten.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/flatten.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
-
-            /**
-             * Flattens `array` a single level deep.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Array
-             * @param {Array} array The array to flatten.
-             * @returns {Array} Returns the new flattened array.
-             * @example
-             *
-             * _.flatten([1, [2, [3, [4]], 5]]);
-             * // => [1, 2, [3, [4]], 5]
-             */
-            function flatten(array) {
-                var length = array == null ? 0 : array.length;
-                return length ? baseFlatten(array, 1) : [];
-            }
-
-            module.exports = flatten;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/forEach.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/forEach.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
-                baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
-                castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * Iterates over elements of `collection` and invokes `iteratee` for each element.
-             * The iteratee is invoked with three arguments: (value, index|key, collection).
-             * Iteratee functions may exit iteration early by explicitly returning `false`.
-             *
-             * **Note:** As with other "Collections" methods, objects with a "length"
-             * property are iterated like arrays. To avoid this behavior use `_.forIn`
-             * or `_.forOwn` for object iteration.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @alias each
-             * @category Collection
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @returns {Array|Object} Returns `collection`.
-             * @see _.forEachRight
-             * @example
-             *
-             * _.forEach([1, 2], function(value) {
-             *   console.log(value);
-             * });
-             * // => Logs `1` then `2`.
-             *
-             * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
-             *   console.log(key);
-             * });
-             * // => Logs 'a' then 'b' (iteration order is not guaranteed).
-             */
-            function forEach(collection, iteratee) {
-                var func = isArray(collection) ? arrayEach : baseEach;
-                return func(collection, castFunction(iteratee));
-            }
-
-            module.exports = forEach;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/forIn.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/forIn.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
-                castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /**
-             * Iterates over own and inherited enumerable string keyed properties of an
-             * object and invokes `iteratee` for each property. The iteratee is invoked
-             * with three arguments: (value, key, object). Iteratee functions may exit
-             * iteration early by explicitly returning `false`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.3.0
-             * @category Object
-             * @param {Object} object The object to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @returns {Object} Returns `object`.
-             * @see _.forInRight
-             * @example
-             *
-             * function Foo() {
-             *   this.a = 1;
-             *   this.b = 2;
-             * }
-             *
-             * Foo.prototype.c = 3;
-             *
-             * _.forIn(new Foo, function(value, key) {
-             *   console.log(key);
-             * });
-             * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
-             */
-            function forIn(object, iteratee) {
-                return object == null
-                    ? object
-                    : baseFor(object, castFunction(iteratee), keysIn);
-            }
-
-            module.exports = forIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/get.js":
-        /*!************************************!*\
-  !*** ./node_modules/lodash/get.js ***!
-  \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
-
-            /**
-             * Gets the value at `path` of `object`. If the resolved value is
-             * `undefined`, the `defaultValue` is returned in its place.
-             *
-             * @static
-             * @memberOf _
-             * @since 3.7.0
-             * @category Object
-             * @param {Object} object The object to query.
-             * @param {Array|string} path The path of the property to get.
-             * @param {*} [defaultValue] The value returned for `undefined` resolved values.
-             * @returns {*} Returns the resolved value.
-             * @example
-             *
-             * var object = { 'a': [{ 'b': { 'c': 3 } }] };
-             *
-             * _.get(object, 'a[0].b.c');
-             * // => 3
-             *
-             * _.get(object, ['a', '0', 'b', 'c']);
-             * // => 3
-             *
-             * _.get(object, 'a.b.c', 'default');
-             * // => 'default'
-             */
-            function get(object, path, defaultValue) {
-                var result = object == null ? undefined : baseGet(object, path);
-                return result === undefined ? defaultValue : result;
-            }
-
-            module.exports = get;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/has.js":
-        /*!************************************!*\
-  !*** ./node_modules/lodash/has.js ***!
-  \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
-                hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
-
-            /**
-             * Checks if `path` is a direct property of `object`.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Object
-             * @param {Object} object The object to query.
-             * @param {Array|string} path The path to check.
-             * @returns {boolean} Returns `true` if `path` exists, else `false`.
-             * @example
-             *
-             * var object = { 'a': { 'b': 2 } };
-             * var other = _.create({ 'a': _.create({ 'b': 2 }) });
-             *
-             * _.has(object, 'a');
-             * // => true
-             *
-             * _.has(object, 'a.b');
-             * // => true
-             *
-             * _.has(object, ['a', 'b']);
-             * // => true
-             *
-             * _.has(other, 'a');
-             * // => false
-             */
-            function has(object, path) {
-                return object != null && hasPath(object, path, baseHas);
-            }
-
-            module.exports = has;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/hasIn.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/hasIn.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
-                hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
-
-            /**
-             * Checks if `path` is a direct or inherited property of `object`.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Object
-             * @param {Object} object The object to query.
-             * @param {Array|string} path The path to check.
-             * @returns {boolean} Returns `true` if `path` exists, else `false`.
-             * @example
-             *
-             * var object = _.create({ 'a': _.create({ 'b': 2 }) });
-             *
-             * _.hasIn(object, 'a');
-             * // => true
-             *
-             * _.hasIn(object, 'a.b');
-             * // => true
-             *
-             * _.hasIn(object, ['a', 'b']);
-             * // => true
-             *
-             * _.hasIn(object, 'b');
-             * // => false
-             */
-            function hasIn(object, path) {
-                return object != null && hasPath(object, path, baseHasIn);
-            }
-
-            module.exports = hasIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/identity.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/identity.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This method returns the first argument it receives.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Util
-             * @param {*} value Any value.
-             * @returns {*} Returns `value`.
-             * @example
-             *
-             * var object = { 'a': 1 };
-             *
-             * console.log(_.identity(object) === object);
-             * // => true
-             */
-            function identity(value) {
-                return value;
-            }
-
-            module.exports = identity;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isArguments.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/isArguments.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /** Built-in value references. */
-            var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-            /**
-             * Checks if `value` is likely an `arguments` object.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is an `arguments` object,
-             *  else `false`.
-             * @example
-             *
-             * _.isArguments(function() { return arguments; }());
-             * // => true
-             *
-             * _.isArguments([1, 2, 3]);
-             * // => false
-             */
-            var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
-                return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
-                    !propertyIsEnumerable.call(value, 'callee');
-            };
-
-            module.exports = isArguments;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isArray.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/isArray.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is classified as an `Array` object.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is an array, else `false`.
-             * @example
-             *
-             * _.isArray([1, 2, 3]);
-             * // => true
-             *
-             * _.isArray(document.body.children);
-             * // => false
-             *
-             * _.isArray('abc');
-             * // => false
-             *
-             * _.isArray(_.noop);
-             * // => false
-             */
-            var isArray = Array.isArray;
-
-            module.exports = isArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isArrayLike.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/isArrayLike.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
-                isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
-
-            /**
-             * Checks if `value` is array-like. A value is considered array-like if it's
-             * not a function and has a `value.length` that's an integer greater than or
-             * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
-             * @example
-             *
-             * _.isArrayLike([1, 2, 3]);
-             * // => true
-             *
-             * _.isArrayLike(document.body.children);
-             * // => true
-             *
-             * _.isArrayLike('abc');
-             * // => true
-             *
-             * _.isArrayLike(_.noop);
-             * // => false
-             */
-            function isArrayLike(value) {
-                return value != null && isLength(value.length) && !isFunction(value);
-            }
-
-            module.exports = isArrayLike;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isArrayLikeObject.js":
-        /*!**************************************************!*\
-  !*** ./node_modules/lodash/isArrayLikeObject.js ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /**
-             * This method is like `_.isArrayLike` except that it also checks if `value`
-             * is an object.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is an array-like object,
-             *  else `false`.
-             * @example
-             *
-             * _.isArrayLikeObject([1, 2, 3]);
-             * // => true
-             *
-             * _.isArrayLikeObject(document.body.children);
-             * // => true
-             *
-             * _.isArrayLikeObject('abc');
-             * // => false
-             *
-             * _.isArrayLikeObject(_.noop);
-             * // => false
-             */
-            function isArrayLikeObject(value) {
-                return isObjectLike(value) && isArrayLike(value);
-            }
-
-            module.exports = isArrayLikeObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isBuffer.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/isBuffer.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
-                stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
-
-                /** Detect free variable `exports`. */
-                var freeExports =  true && exports && !exports.nodeType && exports;
-
-                /** Detect free variable `module`. */
-                var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-                /** Detect the popular CommonJS extension `module.exports`. */
-                var moduleExports = freeModule && freeModule.exports === freeExports;
-
-                /** Built-in value references. */
-                var Buffer = moduleExports ? root.Buffer : undefined;
-
-                /* Built-in method references for those with the same name as other `lodash` methods. */
-                var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
-
-                /**
-                 * Checks if `value` is a buffer.
-                 *
-                 * @static
-                 * @memberOf _
-                 * @since 4.3.0
-                 * @category Lang
-                 * @param {*} value The value to check.
-                 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
-                 * @example
-                 *
-                 * _.isBuffer(new Buffer(2));
-                 * // => true
-                 *
-                 * _.isBuffer(new Uint8Array(2));
-                 * // => false
-                 */
-                var isBuffer = nativeIsBuffer || stubFalse;
-
-                module.exports = isBuffer;
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isEmpty.js":
-        /*!****************************************!*\
-  !*** ./node_modules/lodash/isEmpty.js ***!
-  \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
-                getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
-                isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
-
-            /** `Object#toString` result references. */
-            var mapTag = '[object Map]',
-                setTag = '[object Set]';
-
-            /** Used for built-in method references. */
-            var objectProto = Object.prototype;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /**
-             * Checks if `value` is an empty object, collection, map, or set.
-             *
-             * Objects are considered empty if they have no own enumerable string keyed
-             * properties.
-             *
-             * Array-like values such as `arguments` objects, arrays, buffers, strings, or
-             * jQuery-like collections are considered empty if they have a `length` of `0`.
-             * Similarly, maps and sets are considered empty if they have a `size` of `0`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is empty, else `false`.
-             * @example
-             *
-             * _.isEmpty(null);
-             * // => true
-             *
-             * _.isEmpty(true);
-             * // => true
-             *
-             * _.isEmpty(1);
-             * // => true
-             *
-             * _.isEmpty([1, 2, 3]);
-             * // => false
-             *
-             * _.isEmpty({ 'a': 1 });
-             * // => false
-             */
-            function isEmpty(value) {
-                if (value == null) {
-                    return true;
-                }
-                if (isArrayLike(value) &&
-                    (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
-                        isBuffer(value) || isTypedArray(value) || isArguments(value))) {
-                    return !value.length;
-                }
-                var tag = getTag(value);
-                if (tag == mapTag || tag == setTag) {
-                    return !value.size;
-                }
-                if (isPrototype(value)) {
-                    return !baseKeys(value).length;
-                }
-                for (var key in value) {
-                    if (hasOwnProperty.call(value, key)) {
-                        return false;
-                    }
-                }
-                return true;
-            }
-
-            module.exports = isEmpty;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isFunction.js":
-        /*!*******************************************!*\
-  !*** ./node_modules/lodash/isFunction.js ***!
-  \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
-
-            /** `Object#toString` result references. */
-            var asyncTag = '[object AsyncFunction]',
-                funcTag = '[object Function]',
-                genTag = '[object GeneratorFunction]',
-                proxyTag = '[object Proxy]';
-
-            /**
-             * Checks if `value` is classified as a `Function` object.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a function, else `false`.
-             * @example
-             *
-             * _.isFunction(_);
-             * // => true
-             *
-             * _.isFunction(/abc/);
-             * // => false
-             */
-            function isFunction(value) {
-                if (!isObject(value)) {
-                    return false;
-                }
-                // The use of `Object#toString` avoids issues with the `typeof` operator
-                // in Safari 9 which returns 'object' for typed arrays and other constructors.
-                var tag = baseGetTag(value);
-                return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
-            }
-
-            module.exports = isFunction;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isLength.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/isLength.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /** Used as references for various `Number` constants. */
-            var MAX_SAFE_INTEGER = 9007199254740991;
-
-            /**
-             * Checks if `value` is a valid array-like length.
-             *
-             * **Note:** This method is loosely based on
-             * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
-             * @example
-             *
-             * _.isLength(3);
-             * // => true
-             *
-             * _.isLength(Number.MIN_VALUE);
-             * // => false
-             *
-             * _.isLength(Infinity);
-             * // => false
-             *
-             * _.isLength('3');
-             * // => false
-             */
-            function isLength(value) {
-                return typeof value == 'number' &&
-                    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
-            }
-
-            module.exports = isLength;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isMap.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/isMap.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
-                baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
-                nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
-
-            /* Node.js helper references. */
-            var nodeIsMap = nodeUtil && nodeUtil.isMap;
-
-            /**
-             * Checks if `value` is classified as a `Map` object.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.3.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a map, else `false`.
-             * @example
-             *
-             * _.isMap(new Map);
-             * // => true
-             *
-             * _.isMap(new WeakMap);
-             * // => false
-             */
-            var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
-
-            module.exports = isMap;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isObject.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/isObject.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is the
-             * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
-             * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is an object, else `false`.
-             * @example
-             *
-             * _.isObject({});
-             * // => true
-             *
-             * _.isObject([1, 2, 3]);
-             * // => true
-             *
-             * _.isObject(_.noop);
-             * // => true
-             *
-             * _.isObject(null);
-             * // => false
-             */
-            function isObject(value) {
-                var type = typeof value;
-                return value != null && (type == 'object' || type == 'function');
-            }
-
-            module.exports = isObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isObjectLike.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/isObjectLike.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is object-like. A value is object-like if it's not `null`
-             * and has a `typeof` result of "object".
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
-             * @example
-             *
-             * _.isObjectLike({});
-             * // => true
-             *
-             * _.isObjectLike([1, 2, 3]);
-             * // => true
-             *
-             * _.isObjectLike(_.noop);
-             * // => false
-             *
-             * _.isObjectLike(null);
-             * // => false
-             */
-            function isObjectLike(value) {
-                return value != null && typeof value == 'object';
-            }
-
-            module.exports = isObjectLike;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isPlainObject.js":
-        /*!**********************************************!*\
-  !*** ./node_modules/lodash/isPlainObject.js ***!
-  \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var objectTag = '[object Object]';
-
-            /** Used for built-in method references. */
-            var funcProto = Function.prototype,
-                objectProto = Object.prototype;
-
-            /** Used to resolve the decompiled source of functions. */
-            var funcToString = funcProto.toString;
-
-            /** Used to check objects for own properties. */
-            var hasOwnProperty = objectProto.hasOwnProperty;
-
-            /** Used to infer the `Object` constructor. */
-            var objectCtorString = funcToString.call(Object);
-
-            /**
-             * Checks if `value` is a plain object, that is, an object created by the
-             * `Object` constructor or one with a `[[Prototype]]` of `null`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.8.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
-             * @example
-             *
-             * function Foo() {
-             *   this.a = 1;
-             * }
-             *
-             * _.isPlainObject(new Foo);
-             * // => false
-             *
-             * _.isPlainObject([1, 2, 3]);
-             * // => false
-             *
-             * _.isPlainObject({ 'x': 0, 'y': 0 });
-             * // => true
-             *
-             * _.isPlainObject(Object.create(null));
-             * // => true
-             */
-            function isPlainObject(value) {
-                if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
-                    return false;
-                }
-                var proto = getPrototype(value);
-                if (proto === null) {
-                    return true;
-                }
-                var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
-                return typeof Ctor == 'function' && Ctor instanceof Ctor &&
-                    funcToString.call(Ctor) == objectCtorString;
-            }
-
-            module.exports = isPlainObject;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isSet.js":
-        /*!**************************************!*\
-  !*** ./node_modules/lodash/isSet.js ***!
-  \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
-                baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
-                nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
-
-            /* Node.js helper references. */
-            var nodeIsSet = nodeUtil && nodeUtil.isSet;
-
-            /**
-             * Checks if `value` is classified as a `Set` object.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.3.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a set, else `false`.
-             * @example
-             *
-             * _.isSet(new Set);
-             * // => true
-             *
-             * _.isSet(new WeakSet);
-             * // => false
-             */
-            var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
-
-            module.exports = isSet;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isString.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/isString.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var stringTag = '[object String]';
-
-            /**
-             * Checks if `value` is classified as a `String` primitive or object.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a string, else `false`.
-             * @example
-             *
-             * _.isString('abc');
-             * // => true
-             *
-             * _.isString(1);
-             * // => false
-             */
-            function isString(value) {
-                return typeof value == 'string' ||
-                    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
-            }
-
-            module.exports = isString;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isSymbol.js":
-        /*!*****************************************!*\
-  !*** ./node_modules/lodash/isSymbol.js ***!
-  \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
-                isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
-
-            /** `Object#toString` result references. */
-            var symbolTag = '[object Symbol]';
-
-            /**
-             * Checks if `value` is classified as a `Symbol` primitive or object.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
-             * @example
-             *
-             * _.isSymbol(Symbol.iterator);
-             * // => true
-             *
-             * _.isSymbol('abc');
-             * // => false
-             */
-            function isSymbol(value) {
-                return typeof value == 'symbol' ||
-                    (isObjectLike(value) && baseGetTag(value) == symbolTag);
-            }
-
-            module.exports = isSymbol;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isTypedArray.js":
-        /*!*********************************************!*\
-  !*** ./node_modules/lodash/isTypedArray.js ***!
-  \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
-                baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
-                nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
-
-            /* Node.js helper references. */
-            var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
-
-            /**
-             * Checks if `value` is classified as a typed array.
-             *
-             * @static
-             * @memberOf _
-             * @since 3.0.0
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
-             * @example
-             *
-             * _.isTypedArray(new Uint8Array);
-             * // => true
-             *
-             * _.isTypedArray([]);
-             * // => false
-             */
-            var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
-
-            module.exports = isTypedArray;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/isUndefined.js":
-        /*!********************************************!*\
-  !*** ./node_modules/lodash/isUndefined.js ***!
-  \********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Checks if `value` is `undefined`.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Lang
-             * @param {*} value The value to check.
-             * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
-             * @example
-             *
-             * _.isUndefined(void 0);
-             * // => true
-             *
-             * _.isUndefined(null);
-             * // => false
-             */
-            function isUndefined(value) {
-                return value === undefined;
-            }
-
-            module.exports = isUndefined;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/keys.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/keys.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
-                baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
-
-            /**
-             * Creates an array of the own enumerable property names of `object`.
-             *
-             * **Note:** Non-object values are coerced to objects. See the
-             * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
-             * for more details.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Object
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names.
-             * @example
-             *
-             * function Foo() {
-             *   this.a = 1;
-             *   this.b = 2;
-             * }
-             *
-             * Foo.prototype.c = 3;
-             *
-             * _.keys(new Foo);
-             * // => ['a', 'b'] (iteration order is not guaranteed)
-             *
-             * _.keys('hi');
-             * // => ['0', '1']
-             */
-            function keys(object) {
-                return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
-            }
-
-            module.exports = keys;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/keysIn.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/keysIn.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
-                baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
-
-            /**
-             * Creates an array of the own and inherited enumerable property names of `object`.
-             *
-             * **Note:** Non-object values are coerced to objects.
-             *
-             * @static
-             * @memberOf _
-             * @since 3.0.0
-             * @category Object
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property names.
-             * @example
-             *
-             * function Foo() {
-             *   this.a = 1;
-             *   this.b = 2;
-             * }
-             *
-             * Foo.prototype.c = 3;
-             *
-             * _.keysIn(new Foo);
-             * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
-             */
-            function keysIn(object) {
-                return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
-            }
-
-            module.exports = keysIn;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/last.js":
-        /*!*************************************!*\
-  !*** ./node_modules/lodash/last.js ***!
-  \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * Gets the last element of `array`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Array
-             * @param {Array} array The array to query.
-             * @returns {*} Returns the last element of `array`.
-             * @example
-             *
-             * _.last([1, 2, 3]);
-             * // => 3
-             */
-            function last(array) {
-                var length = array == null ? 0 : array.length;
-                return length ? array[length - 1] : undefined;
-            }
-
-            module.exports = last;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/lodash.js":
-        /*!***************************************!*\
-  !*** ./node_modules/lodash/lodash.js ***!
-  \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
-             * @license
-             * Lodash <https://lodash.com/>
-             * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
-             * Released under MIT license <https://lodash.com/license>
-             * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
-             * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-             */
-                ;(function() {
-
-                    /** Used as a safe reference for `undefined` in pre-ES5 environments. */
-                    var undefined;
-
-                    /** Used as the semantic version number. */
-                    var VERSION = '4.17.20';
-
-                    /** Used as the size to enable large array optimizations. */
-                    var LARGE_ARRAY_SIZE = 200;
-
-                    /** Error message constants. */
-                    var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
-                        FUNC_ERROR_TEXT = 'Expected a function';
-
-                    /** Used to stand-in for `undefined` hash values. */
-                    var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-                    /** Used as the maximum memoize cache size. */
-                    var MAX_MEMOIZE_SIZE = 500;
-
-                    /** Used as the internal argument placeholder. */
-                    var PLACEHOLDER = '__lodash_placeholder__';
-
-                    /** Used to compose bitmasks for cloning. */
-                    var CLONE_DEEP_FLAG = 1,
-                        CLONE_FLAT_FLAG = 2,
-                        CLONE_SYMBOLS_FLAG = 4;
-
-                    /** Used to compose bitmasks for value comparisons. */
-                    var COMPARE_PARTIAL_FLAG = 1,
-                        COMPARE_UNORDERED_FLAG = 2;
-
-                    /** Used to compose bitmasks for function metadata. */
-                    var WRAP_BIND_FLAG = 1,
-                        WRAP_BIND_KEY_FLAG = 2,
-                        WRAP_CURRY_BOUND_FLAG = 4,
-                        WRAP_CURRY_FLAG = 8,
-                        WRAP_CURRY_RIGHT_FLAG = 16,
-                        WRAP_PARTIAL_FLAG = 32,
-                        WRAP_PARTIAL_RIGHT_FLAG = 64,
-                        WRAP_ARY_FLAG = 128,
-                        WRAP_REARG_FLAG = 256,
-                        WRAP_FLIP_FLAG = 512;
-
-                    /** Used as default options for `_.truncate`. */
-                    var DEFAULT_TRUNC_LENGTH = 30,
-                        DEFAULT_TRUNC_OMISSION = '...';
-
-                    /** Used to detect hot functions by number of calls within a span of milliseconds. */
-                    var HOT_COUNT = 800,
-                        HOT_SPAN = 16;
-
-                    /** Used to indicate the type of lazy iteratees. */
-                    var LAZY_FILTER_FLAG = 1,
-                        LAZY_MAP_FLAG = 2,
-                        LAZY_WHILE_FLAG = 3;
-
-                    /** Used as references for various `Number` constants. */
-                    var INFINITY = 1 / 0,
-                        MAX_SAFE_INTEGER = 9007199254740991,
-                        MAX_INTEGER = 1.7976931348623157e+308,
-                        NAN = 0 / 0;
-
-                    /** Used as references for the maximum length and index of an array. */
-                    var MAX_ARRAY_LENGTH = 4294967295,
-                        MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
-                        HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
-
-                    /** Used to associate wrap methods with their bit flags. */
-                    var wrapFlags = [
-                        ['ary', WRAP_ARY_FLAG],
-                        ['bind', WRAP_BIND_FLAG],
-                        ['bindKey', WRAP_BIND_KEY_FLAG],
-                        ['curry', WRAP_CURRY_FLAG],
-                        ['curryRight', WRAP_CURRY_RIGHT_FLAG],
-                        ['flip', WRAP_FLIP_FLAG],
-                        ['partial', WRAP_PARTIAL_FLAG],
-                        ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
-                        ['rearg', WRAP_REARG_FLAG]
-                    ];
-
-                    /** `Object#toString` result references. */
-                    var argsTag = '[object Arguments]',
-                        arrayTag = '[object Array]',
-                        asyncTag = '[object AsyncFunction]',
-                        boolTag = '[object Boolean]',
-                        dateTag = '[object Date]',
-                        domExcTag = '[object DOMException]',
-                        errorTag = '[object Error]',
-                        funcTag = '[object Function]',
-                        genTag = '[object GeneratorFunction]',
-                        mapTag = '[object Map]',
-                        numberTag = '[object Number]',
-                        nullTag = '[object Null]',
-                        objectTag = '[object Object]',
-                        promiseTag = '[object Promise]',
-                        proxyTag = '[object Proxy]',
-                        regexpTag = '[object RegExp]',
-                        setTag = '[object Set]',
-                        stringTag = '[object String]',
-                        symbolTag = '[object Symbol]',
-                        undefinedTag = '[object Undefined]',
-                        weakMapTag = '[object WeakMap]',
-                        weakSetTag = '[object WeakSet]';
-
-                    var arrayBufferTag = '[object ArrayBuffer]',
-                        dataViewTag = '[object DataView]',
-                        float32Tag = '[object Float32Array]',
-                        float64Tag = '[object Float64Array]',
-                        int8Tag = '[object Int8Array]',
-                        int16Tag = '[object Int16Array]',
-                        int32Tag = '[object Int32Array]',
-                        uint8Tag = '[object Uint8Array]',
-                        uint8ClampedTag = '[object Uint8ClampedArray]',
-                        uint16Tag = '[object Uint16Array]',
-                        uint32Tag = '[object Uint32Array]';
-
-                    /** Used to match empty string literals in compiled template source. */
-                    var reEmptyStringLeading = /\b__p \+= '';/g,
-                        reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
-                        reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
-
-                    /** Used to match HTML entities and HTML characters. */
-                    var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
-                        reUnescapedHtml = /[&<>"']/g,
-                        reHasEscapedHtml = RegExp(reEscapedHtml.source),
-                        reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
-                    /** Used to match template delimiters. */
-                    var reEscape = /<%-([\s\S]+?)%>/g,
-                        reEvaluate = /<%([\s\S]+?)%>/g,
-                        reInterpolate = /<%=([\s\S]+?)%>/g;
-
-                    /** Used to match property names within property paths. */
-                    var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
-                        reIsPlainProp = /^\w*$/,
-                        rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
-                    /**
-                     * Used to match `RegExp`
-                     * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
-                     */
-                    var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
-                        reHasRegExpChar = RegExp(reRegExpChar.source);
-
-                    /** Used to match leading and trailing whitespace. */
-                    var reTrim = /^\s+|\s+$/g,
-                        reTrimStart = /^\s+/,
-                        reTrimEnd = /\s+$/;
-
-                    /** Used to match wrap detail comments. */
-                    var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
-                        reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
-                        reSplitDetails = /,? & /;
-
-                    /** Used to match words composed of alphanumeric characters. */
-                    var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
-
-                    /** Used to match backslashes in property paths. */
-                    var reEscapeChar = /\\(\\)?/g;
-
-                    /**
-                     * Used to match
-                     * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
-                     */
-                    var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
-
-                    /** Used to match `RegExp` flags from their coerced string values. */
-                    var reFlags = /\w*$/;
-
-                    /** Used to detect bad signed hexadecimal string values. */
-                    var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
-                    /** Used to detect binary string values. */
-                    var reIsBinary = /^0b[01]+$/i;
-
-                    /** Used to detect host constructors (Safari). */
-                    var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
-                    /** Used to detect octal string values. */
-                    var reIsOctal = /^0o[0-7]+$/i;
-
-                    /** Used to detect unsigned integer values. */
-                    var reIsUint = /^(?:0|[1-9]\d*)$/;
-
-                    /** Used to match Latin Unicode letters (excluding mathematical operators). */
-                    var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
-
-                    /** Used to ensure capturing order of template delimiters. */
-                    var reNoMatch = /($^)/;
-
-                    /** Used to match unescaped characters in compiled string literals. */
-                    var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
-
-                    /** Used to compose unicode character classes. */
-                    var rsAstralRange = '\\ud800-\\udfff',
-                        rsComboMarksRange = '\\u0300-\\u036f',
-                        reComboHalfMarksRange = '\\ufe20-\\ufe2f',
-                        rsComboSymbolsRange = '\\u20d0-\\u20ff',
-                        rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
-                        rsDingbatRange = '\\u2700-\\u27bf',
-                        rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
-                        rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
-                        rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
-                        rsPunctuationRange = '\\u2000-\\u206f',
-                        rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
-                        rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
-                        rsVarRange = '\\ufe0e\\ufe0f',
-                        rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
-
-                    /** Used to compose unicode capture groups. */
-                    var rsApos = "['\u2019]",
-                        rsAstral = '[' + rsAstralRange + ']',
-                        rsBreak = '[' + rsBreakRange + ']',
-                        rsCombo = '[' + rsComboRange + ']',
-                        rsDigits = '\\d+',
-                        rsDingbat = '[' + rsDingbatRange + ']',
-                        rsLower = '[' + rsLowerRange + ']',
-                        rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
-                        rsFitz = '\\ud83c[\\udffb-\\udfff]',
-                        rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
-                        rsNonAstral = '[^' + rsAstralRange + ']',
-                        rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
-                        rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
-                        rsUpper = '[' + rsUpperRange + ']',
-                        rsZWJ = '\\u200d';
-
-                    /** Used to compose unicode regexes. */
-                    var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
-                        rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
-                        rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
-                        rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
-                        reOptMod = rsModifier + '?',
-                        rsOptVar = '[' + rsVarRange + ']?',
-                        rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
-                        rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
-                        rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
-                        rsSeq = rsOptVar + reOptMod + rsOptJoin,
-                        rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
-                        rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
-                    /** Used to match apostrophes. */
-                    var reApos = RegExp(rsApos, 'g');
-
-                    /**
-                     * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
-                     * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
-                     */
-                    var reComboMark = RegExp(rsCombo, 'g');
-
-                    /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-                    var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
-                    /** Used to match complex or compound words. */
-                    var reUnicodeWord = RegExp([
-                        rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
-                        rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
-                        rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
-                        rsUpper + '+' + rsOptContrUpper,
-                        rsOrdUpper,
-                        rsOrdLower,
-                        rsDigits,
-                        rsEmoji
-                    ].join('|'), 'g');
-
-                    /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-                    var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');
-
-                    /** Used to detect strings that need a more robust regexp to match words. */
-                    var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
-
-                    /** Used to assign default `context` object properties. */
-                    var contextProps = [
-                        'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
-                        'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
-                        'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
-                        'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
-                        '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
-                    ];
-
-                    /** Used to make template sourceURLs easier to identify. */
-                    var templateCounter = -1;
-
-                    /** Used to identify `toStringTag` values of typed arrays. */
-                    var typedArrayTags = {};
-                    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
-                        typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
-                            typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
-                                typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
-                                    typedArrayTags[uint32Tag] = true;
-                    typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
-                        typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
-                            typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
-                                typedArrayTags[errorTag] = typedArrayTags[funcTag] =
-                                    typedArrayTags[mapTag] = typedArrayTags[numberTag] =
-                                        typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
-                                            typedArrayTags[setTag] = typedArrayTags[stringTag] =
-                                                typedArrayTags[weakMapTag] = false;
-
-                    /** Used to identify `toStringTag` values supported by `_.clone`. */
-                    var cloneableTags = {};
-                    cloneableTags[argsTag] = cloneableTags[arrayTag] =
-                        cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
-                            cloneableTags[boolTag] = cloneableTags[dateTag] =
-                                cloneableTags[float32Tag] = cloneableTags[float64Tag] =
-                                    cloneableTags[int8Tag] = cloneableTags[int16Tag] =
-                                        cloneableTags[int32Tag] = cloneableTags[mapTag] =
-                                            cloneableTags[numberTag] = cloneableTags[objectTag] =
-                                                cloneableTags[regexpTag] = cloneableTags[setTag] =
-                                                    cloneableTags[stringTag] = cloneableTags[symbolTag] =
-                                                        cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
-                                                            cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
-                    cloneableTags[errorTag] = cloneableTags[funcTag] =
-                        cloneableTags[weakMapTag] = false;
-
-                    /** Used to map Latin Unicode letters to basic Latin letters. */
-                    var deburredLetters = {
-                        // Latin-1 Supplement block.
-                        '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
-                        '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
-                        '\xc7': 'C',  '\xe7': 'c',
-                        '\xd0': 'D',  '\xf0': 'd',
-                        '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
-                        '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
-                        '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
-                        '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
-                        '\xd1': 'N',  '\xf1': 'n',
-                        '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
-                        '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
-                        '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
-                        '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
-                        '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
-                        '\xc6': 'Ae', '\xe6': 'ae',
-                        '\xde': 'Th', '\xfe': 'th',
-                        '\xdf': 'ss',
-                        // Latin Extended-A block.
-                        '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
-                        '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
-                        '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
-                        '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
-                        '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
-                        '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
-                        '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
-                        '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
-                        '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
-                        '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
-                        '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
-                        '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
-                        '\u0134': 'J',  '\u0135': 'j',
-                        '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
-                        '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
-                        '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
-                        '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
-                        '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
-                        '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
-                        '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
-                        '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
-                        '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
-                        '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
-                        '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
-                        '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
-                        '\u0163': 't',  '\u0165': 't', '\u0167': 't',
-                        '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
-                        '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
-                        '\u0174': 'W',  '\u0175': 'w',
-                        '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
-                        '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
-                        '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
-                        '\u0132': 'IJ', '\u0133': 'ij',
-                        '\u0152': 'Oe', '\u0153': 'oe',
-                        '\u0149': "'n", '\u017f': 's'
-                    };
-
-                    /** Used to map characters to HTML entities. */
-                    var htmlEscapes = {
-                        '&': '&amp;',
-                        '<': '&lt;',
-                        '>': '&gt;',
-                        '"': '&quot;',
-                        "'": '&#39;'
-                    };
-
-                    /** Used to map HTML entities to characters. */
-                    var htmlUnescapes = {
-                        '&amp;': '&',
-                        '&lt;': '<',
-                        '&gt;': '>',
-                        '&quot;': '"',
-                        '&#39;': "'"
-                    };
-
-                    /** Used to escape characters for inclusion in compiled string literals. */
-                    var stringEscapes = {
-                        '\\': '\\',
-                        "'": "'",
-                        '\n': 'n',
-                        '\r': 'r',
-                        '\u2028': 'u2028',
-                        '\u2029': 'u2029'
-                    };
-
-                    /** Built-in method references without a dependency on `root`. */
-                    var freeParseFloat = parseFloat,
-                        freeParseInt = parseInt;
-
-                    /** Detect free variable `global` from Node.js. */
-                    var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
-                    /** Detect free variable `self`. */
-                    var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
-                    /** Used as a reference to the global object. */
-                    var root = freeGlobal || freeSelf || Function('return this')();
-
-                    /** Detect free variable `exports`. */
-                    var freeExports =  true && exports && !exports.nodeType && exports;
-
-                    /** Detect free variable `module`. */
-                    var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-                    /** Detect the popular CommonJS extension `module.exports`. */
-                    var moduleExports = freeModule && freeModule.exports === freeExports;
-
-                    /** Detect free variable `process` from Node.js. */
-                    var freeProcess = moduleExports && freeGlobal.process;
-
-                    /** Used to access faster Node.js helpers. */
-                    var nodeUtil = (function() {
-                        try {
-                            // Use `util.types` for Node.js 10+.
-                            var types = freeModule && freeModule.require && freeModule.require('util').types;
-
-                            if (types) {
-                                return types;
-                            }
-
-                            // Legacy `process.binding('util')` for Node.js < 10.
-                            return freeProcess && freeProcess.binding && freeProcess.binding('util');
-                        } catch (e) {}
-                    }());
-
-                    /* Node.js helper references. */
-                    var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
-                        nodeIsDate = nodeUtil && nodeUtil.isDate,
-                        nodeIsMap = nodeUtil && nodeUtil.isMap,
-                        nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
-                        nodeIsSet = nodeUtil && nodeUtil.isSet,
-                        nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
-
-                    /*--------------------------------------------------------------------------*/
-
-                    /**
-                     * A faster alternative to `Function#apply`, this function invokes `func`
-                     * with the `this` binding of `thisArg` and the arguments of `args`.
-                     *
-                     * @private
-                     * @param {Function} func The function to invoke.
-                     * @param {*} thisArg The `this` binding of `func`.
-                     * @param {Array} args The arguments to invoke `func` with.
-                     * @returns {*} Returns the result of `func`.
-                     */
-                    function apply(func, thisArg, args) {
-                        switch (args.length) {
-                            case 0: return func.call(thisArg);
-                            case 1: return func.call(thisArg, args[0]);
-                            case 2: return func.call(thisArg, args[0], args[1]);
-                            case 3: return func.call(thisArg, args[0], args[1], args[2]);
-                        }
-                        return func.apply(thisArg, args);
-                    }
-
-                    /**
-                     * A specialized version of `baseAggregator` for arrays.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} setter The function to set `accumulator` values.
-                     * @param {Function} iteratee The iteratee to transform keys.
-                     * @param {Object} accumulator The initial aggregated object.
-                     * @returns {Function} Returns `accumulator`.
-                     */
-                    function arrayAggregator(array, setter, iteratee, accumulator) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        while (++index < length) {
-                            var value = array[index];
-                            setter(accumulator, value, iteratee(value), array);
-                        }
-                        return accumulator;
-                    }
-
-                    /**
-                     * A specialized version of `_.forEach` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {Array} Returns `array`.
-                     */
-                    function arrayEach(array, iteratee) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        while (++index < length) {
-                            if (iteratee(array[index], index, array) === false) {
-                                break;
-                            }
-                        }
-                        return array;
-                    }
-
-                    /**
-                     * A specialized version of `_.forEachRight` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {Array} Returns `array`.
-                     */
-                    function arrayEachRight(array, iteratee) {
-                        var length = array == null ? 0 : array.length;
-
-                        while (length--) {
-                            if (iteratee(array[length], length, array) === false) {
-                                break;
-                            }
-                        }
-                        return array;
-                    }
-
-                    /**
-                     * A specialized version of `_.every` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} predicate The function invoked per iteration.
-                     * @returns {boolean} Returns `true` if all elements pass the predicate check,
-                     *  else `false`.
-                     */
-                    function arrayEvery(array, predicate) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        while (++index < length) {
-                            if (!predicate(array[index], index, array)) {
-                                return false;
-                            }
-                        }
-                        return true;
-                    }
-
-                    /**
-                     * A specialized version of `_.filter` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} predicate The function invoked per iteration.
-                     * @returns {Array} Returns the new filtered array.
-                     */
-                    function arrayFilter(array, predicate) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length,
-                            resIndex = 0,
-                            result = [];
-
-                        while (++index < length) {
-                            var value = array[index];
-                            if (predicate(value, index, array)) {
-                                result[resIndex++] = value;
-                            }
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * A specialized version of `_.includes` for arrays without support for
-                     * specifying an index to search from.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to inspect.
-                     * @param {*} target The value to search for.
-                     * @returns {boolean} Returns `true` if `target` is found, else `false`.
-                     */
-                    function arrayIncludes(array, value) {
-                        var length = array == null ? 0 : array.length;
-                        return !!length && baseIndexOf(array, value, 0) > -1;
-                    }
-
-                    /**
-                     * This function is like `arrayIncludes` except that it accepts a comparator.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to inspect.
-                     * @param {*} target The value to search for.
-                     * @param {Function} comparator The comparator invoked per element.
-                     * @returns {boolean} Returns `true` if `target` is found, else `false`.
-                     */
-                    function arrayIncludesWith(array, value, comparator) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        while (++index < length) {
-                            if (comparator(value, array[index])) {
-                                return true;
-                            }
-                        }
-                        return false;
-                    }
-
-                    /**
-                     * A specialized version of `_.map` for arrays without support for iteratee
-                     * shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {Array} Returns the new mapped array.
-                     */
-                    function arrayMap(array, iteratee) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length,
-                            result = Array(length);
-
-                        while (++index < length) {
-                            result[index] = iteratee(array[index], index, array);
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * Appends the elements of `values` to `array`.
-                     *
-                     * @private
-                     * @param {Array} array The array to modify.
-                     * @param {Array} values The values to append.
-                     * @returns {Array} Returns `array`.
-                     */
-                    function arrayPush(array, values) {
-                        var index = -1,
-                            length = values.length,
-                            offset = array.length;
-
-                        while (++index < length) {
-                            array[offset + index] = values[index];
-                        }
-                        return array;
-                    }
-
-                    /**
-                     * A specialized version of `_.reduce` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @param {*} [accumulator] The initial value.
-                     * @param {boolean} [initAccum] Specify using the first element of `array` as
-                     *  the initial value.
-                     * @returns {*} Returns the accumulated value.
-                     */
-                    function arrayReduce(array, iteratee, accumulator, initAccum) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        if (initAccum && length) {
-                            accumulator = array[++index];
-                        }
-                        while (++index < length) {
-                            accumulator = iteratee(accumulator, array[index], index, array);
-                        }
-                        return accumulator;
-                    }
-
-                    /**
-                     * A specialized version of `_.reduceRight` for arrays without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @param {*} [accumulator] The initial value.
-                     * @param {boolean} [initAccum] Specify using the last element of `array` as
-                     *  the initial value.
-                     * @returns {*} Returns the accumulated value.
-                     */
-                    function arrayReduceRight(array, iteratee, accumulator, initAccum) {
-                        var length = array == null ? 0 : array.length;
-                        if (initAccum && length) {
-                            accumulator = array[--length];
-                        }
-                        while (length--) {
-                            accumulator = iteratee(accumulator, array[length], length, array);
-                        }
-                        return accumulator;
-                    }
-
-                    /**
-                     * A specialized version of `_.some` for arrays without support for iteratee
-                     * shorthands.
-                     *
-                     * @private
-                     * @param {Array} [array] The array to iterate over.
-                     * @param {Function} predicate The function invoked per iteration.
-                     * @returns {boolean} Returns `true` if any element passes the predicate check,
-                     *  else `false`.
-                     */
-                    function arraySome(array, predicate) {
-                        var index = -1,
-                            length = array == null ? 0 : array.length;
-
-                        while (++index < length) {
-                            if (predicate(array[index], index, array)) {
-                                return true;
-                            }
-                        }
-                        return false;
-                    }
-
-                    /**
-                     * Gets the size of an ASCII `string`.
-                     *
-                     * @private
-                     * @param {string} string The string inspect.
-                     * @returns {number} Returns the string size.
-                     */
-                    var asciiSize = baseProperty('length');
-
-                    /**
-                     * Converts an ASCII `string` to an array.
-                     *
-                     * @private
-                     * @param {string} string The string to convert.
-                     * @returns {Array} Returns the converted array.
-                     */
-                    function asciiToArray(string) {
-                        return string.split('');
-                    }
-
-                    /**
-                     * Splits an ASCII `string` into an array of its words.
-                     *
-                     * @private
-                     * @param {string} The string to inspect.
-                     * @returns {Array} Returns the words of `string`.
-                     */
-                    function asciiWords(string) {
-                        return string.match(reAsciiWord) || [];
-                    }
-
-                    /**
-                     * The base implementation of methods like `_.findKey` and `_.findLastKey`,
-                     * without support for iteratee shorthands, which iterates over `collection`
-                     * using `eachFunc`.
-                     *
-                     * @private
-                     * @param {Array|Object} collection The collection to inspect.
-                     * @param {Function} predicate The function invoked per iteration.
-                     * @param {Function} eachFunc The function to iterate over `collection`.
-                     * @returns {*} Returns the found element or its key, else `undefined`.
-                     */
-                    function baseFindKey(collection, predicate, eachFunc) {
-                        var result;
-                        eachFunc(collection, function(value, key, collection) {
-                            if (predicate(value, key, collection)) {
-                                result = key;
-                                return false;
-                            }
-                        });
-                        return result;
-                    }
-
-                    /**
-                     * The base implementation of `_.findIndex` and `_.findLastIndex` without
-                     * support for iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {Function} predicate The function invoked per iteration.
-                     * @param {number} fromIndex The index to search from.
-                     * @param {boolean} [fromRight] Specify iterating from right to left.
-                     * @returns {number} Returns the index of the matched value, else `-1`.
-                     */
-                    function baseFindIndex(array, predicate, fromIndex, fromRight) {
-                        var length = array.length,
-                            index = fromIndex + (fromRight ? 1 : -1);
-
-                        while ((fromRight ? index-- : ++index < length)) {
-                            if (predicate(array[index], index, array)) {
-                                return index;
-                            }
-                        }
-                        return -1;
-                    }
-
-                    /**
-                     * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {*} value The value to search for.
-                     * @param {number} fromIndex The index to search from.
-                     * @returns {number} Returns the index of the matched value, else `-1`.
-                     */
-                    function baseIndexOf(array, value, fromIndex) {
-                        return value === value
-                            ? strictIndexOf(array, value, fromIndex)
-                            : baseFindIndex(array, baseIsNaN, fromIndex);
-                    }
-
-                    /**
-                     * This function is like `baseIndexOf` except that it accepts a comparator.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {*} value The value to search for.
-                     * @param {number} fromIndex The index to search from.
-                     * @param {Function} comparator The comparator invoked per element.
-                     * @returns {number} Returns the index of the matched value, else `-1`.
-                     */
-                    function baseIndexOfWith(array, value, fromIndex, comparator) {
-                        var index = fromIndex - 1,
-                            length = array.length;
-
-                        while (++index < length) {
-                            if (comparator(array[index], value)) {
-                                return index;
-                            }
-                        }
-                        return -1;
-                    }
-
-                    /**
-                     * The base implementation of `_.isNaN` without support for number objects.
-                     *
-                     * @private
-                     * @param {*} value The value to check.
-                     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
-                     */
-                    function baseIsNaN(value) {
-                        return value !== value;
-                    }
-
-                    /**
-                     * The base implementation of `_.mean` and `_.meanBy` without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} array The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {number} Returns the mean.
-                     */
-                    function baseMean(array, iteratee) {
-                        var length = array == null ? 0 : array.length;
-                        return length ? (baseSum(array, iteratee) / length) : NAN;
-                    }
-
-                    /**
-                     * The base implementation of `_.property` without support for deep paths.
-                     *
-                     * @private
-                     * @param {string} key The key of the property to get.
-                     * @returns {Function} Returns the new accessor function.
-                     */
-                    function baseProperty(key) {
-                        return function(object) {
-                            return object == null ? undefined : object[key];
-                        };
-                    }
-
-                    /**
-                     * The base implementation of `_.propertyOf` without support for deep paths.
-                     *
-                     * @private
-                     * @param {Object} object The object to query.
-                     * @returns {Function} Returns the new accessor function.
-                     */
-                    function basePropertyOf(object) {
-                        return function(key) {
-                            return object == null ? undefined : object[key];
-                        };
-                    }
-
-                    /**
-                     * The base implementation of `_.reduce` and `_.reduceRight`, without support
-                     * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
-                     *
-                     * @private
-                     * @param {Array|Object} collection The collection to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @param {*} accumulator The initial value.
-                     * @param {boolean} initAccum Specify using the first or last element of
-                     *  `collection` as the initial value.
-                     * @param {Function} eachFunc The function to iterate over `collection`.
-                     * @returns {*} Returns the accumulated value.
-                     */
-                    function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
-                        eachFunc(collection, function(value, index, collection) {
-                            accumulator = initAccum
-                                ? (initAccum = false, value)
-                                : iteratee(accumulator, value, index, collection);
-                        });
-                        return accumulator;
-                    }
-
-                    /**
-                     * The base implementation of `_.sortBy` which uses `comparer` to define the
-                     * sort order of `array` and replaces criteria objects with their corresponding
-                     * values.
-                     *
-                     * @private
-                     * @param {Array} array The array to sort.
-                     * @param {Function} comparer The function to define sort order.
-                     * @returns {Array} Returns `array`.
-                     */
-                    function baseSortBy(array, comparer) {
-                        var length = array.length;
-
-                        array.sort(comparer);
-                        while (length--) {
-                            array[length] = array[length].value;
-                        }
-                        return array;
-                    }
-
-                    /**
-                     * The base implementation of `_.sum` and `_.sumBy` without support for
-                     * iteratee shorthands.
-                     *
-                     * @private
-                     * @param {Array} array The array to iterate over.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {number} Returns the sum.
-                     */
-                    function baseSum(array, iteratee) {
-                        var result,
-                            index = -1,
-                            length = array.length;
-
-                        while (++index < length) {
-                            var current = iteratee(array[index]);
-                            if (current !== undefined) {
-                                result = result === undefined ? current : (result + current);
-                            }
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * The base implementation of `_.times` without support for iteratee shorthands
-                     * or max array length checks.
-                     *
-                     * @private
-                     * @param {number} n The number of times to invoke `iteratee`.
-                     * @param {Function} iteratee The function invoked per iteration.
-                     * @returns {Array} Returns the array of results.
-                     */
-                    function baseTimes(n, iteratee) {
-                        var index = -1,
-                            result = Array(n);
-
-                        while (++index < n) {
-                            result[index] = iteratee(index);
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
-                     * of key-value pairs for `object` corresponding to the property names of `props`.
-                     *
-                     * @private
-                     * @param {Object} object The object to query.
-                     * @param {Array} props The property names to get values for.
-                     * @returns {Object} Returns the key-value pairs.
-                     */
-                    function baseToPairs(object, props) {
-                        return arrayMap(props, function(key) {
-                            return [key, object[key]];
-                        });
-                    }
-
-                    /**
-                     * The base implementation of `_.unary` without support for storing metadata.
-                     *
-                     * @private
-                     * @param {Function} func The function to cap arguments for.
-                     * @returns {Function} Returns the new capped function.
-                     */
-                    function baseUnary(func) {
-                        return function(value) {
-                            return func(value);
-                        };
-                    }
-
-                    /**
-                     * The base implementation of `_.values` and `_.valuesIn` which creates an
-                     * array of `object` property values corresponding to the property names
-                     * of `props`.
-                     *
-                     * @private
-                     * @param {Object} object The object to query.
-                     * @param {Array} props The property names to get values for.
-                     * @returns {Object} Returns the array of property values.
-                     */
-                    function baseValues(object, props) {
-                        return arrayMap(props, function(key) {
-                            return object[key];
-                        });
-                    }
-
-                    /**
-                     * Checks if a `cache` value for `key` exists.
-                     *
-                     * @private
-                     * @param {Object} cache The cache to query.
-                     * @param {string} key The key of the entry to check.
-                     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-                     */
-                    function cacheHas(cache, key) {
-                        return cache.has(key);
-                    }
-
-                    /**
-                     * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
-                     * that is not found in the character symbols.
-                     *
-                     * @private
-                     * @param {Array} strSymbols The string symbols to inspect.
-                     * @param {Array} chrSymbols The character symbols to find.
-                     * @returns {number} Returns the index of the first unmatched string symbol.
-                     */
-                    function charsStartIndex(strSymbols, chrSymbols) {
-                        var index = -1,
-                            length = strSymbols.length;
-
-                        while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
-                        return index;
-                    }
-
-                    /**
-                     * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
-                     * that is not found in the character symbols.
-                     *
-                     * @private
-                     * @param {Array} strSymbols The string symbols to inspect.
-                     * @param {Array} chrSymbols The character symbols to find.
-                     * @returns {number} Returns the index of the last unmatched string symbol.
-                     */
-                    function charsEndIndex(strSymbols, chrSymbols) {
-                        var index = strSymbols.length;
-
-                        while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
-                        return index;
-                    }
-
-                    /**
-                     * Gets the number of `placeholder` occurrences in `array`.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {*} placeholder The placeholder to search for.
-                     * @returns {number} Returns the placeholder count.
-                     */
-                    function countHolders(array, placeholder) {
-                        var length = array.length,
-                            result = 0;
-
-                        while (length--) {
-                            if (array[length] === placeholder) {
-                                ++result;
-                            }
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
-                     * letters to basic Latin letters.
-                     *
-                     * @private
-                     * @param {string} letter The matched letter to deburr.
-                     * @returns {string} Returns the deburred letter.
-                     */
-                    var deburrLetter = basePropertyOf(deburredLetters);
-
-                    /**
-                     * Used by `_.escape` to convert characters to HTML entities.
-                     *
-                     * @private
-                     * @param {string} chr The matched character to escape.
-                     * @returns {string} Returns the escaped character.
-                     */
-                    var escapeHtmlChar = basePropertyOf(htmlEscapes);
-
-                    /**
-                     * Used by `_.template` to escape characters for inclusion in compiled string literals.
-                     *
-                     * @private
-                     * @param {string} chr The matched character to escape.
-                     * @returns {string} Returns the escaped character.
-                     */
-                    function escapeStringChar(chr) {
-                        return '\\' + stringEscapes[chr];
-                    }
-
-                    /**
-                     * Gets the value at `key` of `object`.
-                     *
-                     * @private
-                     * @param {Object} [object] The object to query.
-                     * @param {string} key The key of the property to get.
-                     * @returns {*} Returns the property value.
-                     */
-                    function getValue(object, key) {
-                        return object == null ? undefined : object[key];
-                    }
-
-                    /**
-                     * Checks if `string` contains Unicode symbols.
-                     *
-                     * @private
-                     * @param {string} string The string to inspect.
-                     * @returns {boolean} Returns `true` if a symbol is found, else `false`.
-                     */
-                    function hasUnicode(string) {
-                        return reHasUnicode.test(string);
-                    }
-
-                    /**
-                     * Checks if `string` contains a word composed of Unicode symbols.
-                     *
-                     * @private
-                     * @param {string} string The string to inspect.
-                     * @returns {boolean} Returns `true` if a word is found, else `false`.
-                     */
-                    function hasUnicodeWord(string) {
-                        return reHasUnicodeWord.test(string);
-                    }
-
-                    /**
-                     * Converts `iterator` to an array.
-                     *
-                     * @private
-                     * @param {Object} iterator The iterator to convert.
-                     * @returns {Array} Returns the converted array.
-                     */
-                    function iteratorToArray(iterator) {
-                        var data,
-                            result = [];
-
-                        while (!(data = iterator.next()).done) {
-                            result.push(data.value);
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * Converts `map` to its key-value pairs.
-                     *
-                     * @private
-                     * @param {Object} map The map to convert.
-                     * @returns {Array} Returns the key-value pairs.
-                     */
-                    function mapToArray(map) {
-                        var index = -1,
-                            result = Array(map.size);
-
-                        map.forEach(function(value, key) {
-                            result[++index] = [key, value];
-                        });
-                        return result;
-                    }
-
-                    /**
-                     * Creates a unary function that invokes `func` with its argument transformed.
-                     *
-                     * @private
-                     * @param {Function} func The function to wrap.
-                     * @param {Function} transform The argument transform.
-                     * @returns {Function} Returns the new function.
-                     */
-                    function overArg(func, transform) {
-                        return function(arg) {
-                            return func(transform(arg));
-                        };
-                    }
-
-                    /**
-                     * Replaces all `placeholder` elements in `array` with an internal placeholder
-                     * and returns an array of their indexes.
-                     *
-                     * @private
-                     * @param {Array} array The array to modify.
-                     * @param {*} placeholder The placeholder to replace.
-                     * @returns {Array} Returns the new array of placeholder indexes.
-                     */
-                    function replaceHolders(array, placeholder) {
-                        var index = -1,
-                            length = array.length,
-                            resIndex = 0,
-                            result = [];
-
-                        while (++index < length) {
-                            var value = array[index];
-                            if (value === placeholder || value === PLACEHOLDER) {
-                                array[index] = PLACEHOLDER;
-                                result[resIndex++] = index;
-                            }
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * Converts `set` to an array of its values.
-                     *
-                     * @private
-                     * @param {Object} set The set to convert.
-                     * @returns {Array} Returns the values.
-                     */
-                    function setToArray(set) {
-                        var index = -1,
-                            result = Array(set.size);
-
-                        set.forEach(function(value) {
-                            result[++index] = value;
-                        });
-                        return result;
-                    }
-
-                    /**
-                     * Converts `set` to its value-value pairs.
-                     *
-                     * @private
-                     * @param {Object} set The set to convert.
-                     * @returns {Array} Returns the value-value pairs.
-                     */
-                    function setToPairs(set) {
-                        var index = -1,
-                            result = Array(set.size);
-
-                        set.forEach(function(value) {
-                            result[++index] = [value, value];
-                        });
-                        return result;
-                    }
-
-                    /**
-                     * A specialized version of `_.indexOf` which performs strict equality
-                     * comparisons of values, i.e. `===`.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {*} value The value to search for.
-                     * @param {number} fromIndex The index to search from.
-                     * @returns {number} Returns the index of the matched value, else `-1`.
-                     */
-                    function strictIndexOf(array, value, fromIndex) {
-                        var index = fromIndex - 1,
-                            length = array.length;
-
-                        while (++index < length) {
-                            if (array[index] === value) {
-                                return index;
-                            }
-                        }
-                        return -1;
-                    }
-
-                    /**
-                     * A specialized version of `_.lastIndexOf` which performs strict equality
-                     * comparisons of values, i.e. `===`.
-                     *
-                     * @private
-                     * @param {Array} array The array to inspect.
-                     * @param {*} value The value to search for.
-                     * @param {number} fromIndex The index to search from.
-                     * @returns {number} Returns the index of the matched value, else `-1`.
-                     */
-                    function strictLastIndexOf(array, value, fromIndex) {
-                        var index = fromIndex + 1;
-                        while (index--) {
-                            if (array[index] === value) {
-                                return index;
-                            }
-                        }
-                        return index;
-                    }
-
-                    /**
-                     * Gets the number of symbols in `string`.
-                     *
-                     * @private
-                     * @param {string} string The string to inspect.
-                     * @returns {number} Returns the string size.
-                     */
-                    function stringSize(string) {
-                        return hasUnicode(string)
-                            ? unicodeSize(string)
-                            : asciiSize(string);
-                    }
-
-                    /**
-                     * Converts `string` to an array.
-                     *
-                     * @private
-                     * @param {string} string The string to convert.
-                     * @returns {Array} Returns the converted array.
-                     */
-                    function stringToArray(string) {
-                        return hasUnicode(string)
-                            ? unicodeToArray(string)
-                            : asciiToArray(string);
-                    }
-
-                    /**
-                     * Used by `_.unescape` to convert HTML entities to characters.
-                     *
-                     * @private
-                     * @param {string} chr The matched character to unescape.
-                     * @returns {string} Returns the unescaped character.
-                     */
-                    var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
-
-                    /**
-                     * Gets the size of a Unicode `string`.
-                     *
-                     * @private
-                     * @param {string} string The string inspect.
-                     * @returns {number} Returns the string size.
-                     */
-                    function unicodeSize(string) {
-                        var result = reUnicode.lastIndex = 0;
-                        while (reUnicode.test(string)) {
-                            ++result;
-                        }
-                        return result;
-                    }
-
-                    /**
-                     * Converts a Unicode `string` to an array.
-                     *
-                     * @private
-                     * @param {string} string The string to convert.
-                     * @returns {Array} Returns the converted array.
-                     */
-                    function unicodeToArray(string) {
-                        return string.match(reUnicode) || [];
-                    }
-
-                    /**
-                     * Splits a Unicode `string` into an array of its words.
-                     *
-                     * @private
-                     * @param {string} The string to inspect.
-                     * @returns {Array} Returns the words of `string`.
-                     */
-                    function unicodeWords(string) {
-                        return string.match(reUnicodeWord) || [];
-                    }
-
-                    /*--------------------------------------------------------------------------*/
-
-                    /**
-                     * Create a new pristine `lodash` function using the `context` object.
-                     *
-                     * @static
-                     * @memberOf _
-                     * @since 1.1.0
-                     * @category Util
-                     * @param {Object} [context=root] The context object.
-                     * @returns {Function} Returns a new `lodash` function.
-                     * @example
-                     *
-                     * _.mixin({ 'foo': _.constant('foo') });
-                     *
-                     * var lodash = _.runInContext();
-                     * lodash.mixin({ 'bar': lodash.constant('bar') });
-                     *
-                     * _.isFunction(_.foo);
-                     * // => true
-                     * _.isFunction(_.bar);
-                     * // => false
-                     *
-                     * lodash.isFunction(lodash.foo);
-                     * // => false
-                     * lodash.isFunction(lodash.bar);
-                     * // => true
-                     *
-                     * // Create a suped-up `defer` in Node.js.
-                     * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
-                     */
-                    var runInContext = (function runInContext(context) {
-                        context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
-
-                        /** Built-in constructor references. */
-                        var Array = context.Array,
-                            Date = context.Date,
-                            Error = context.Error,
-                            Function = context.Function,
-                            Math = context.Math,
-                            Object = context.Object,
-                            RegExp = context.RegExp,
-                            String = context.String,
-                            TypeError = context.TypeError;
-
-                        /** Used for built-in method references. */
-                        var arrayProto = Array.prototype,
-                            funcProto = Function.prototype,
-                            objectProto = Object.prototype;
-
-                        /** Used to detect overreaching core-js shims. */
-                        var coreJsData = context['__core-js_shared__'];
-
-                        /** Used to resolve the decompiled source of functions. */
-                        var funcToString = funcProto.toString;
-
-                        /** Used to check objects for own properties. */
-                        var hasOwnProperty = objectProto.hasOwnProperty;
-
-                        /** Used to generate unique IDs. */
-                        var idCounter = 0;
-
-                        /** Used to detect methods masquerading as native. */
-                        var maskSrcKey = (function() {
-                            var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
-                            return uid ? ('Symbol(src)_1.' + uid) : '';
-                        }());
-
-                        /**
-                         * Used to resolve the
-                         * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
-                         * of values.
-                         */
-                        var nativeObjectToString = objectProto.toString;
-
-                        /** Used to infer the `Object` constructor. */
-                        var objectCtorString = funcToString.call(Object);
-
-                        /** Used to restore the original `_` reference in `_.noConflict`. */
-                        var oldDash = root._;
-
-                        /** Used to detect if a method is native. */
-                        var reIsNative = RegExp('^' +
-                            funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
-                                .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
-                        );
-
-                        /** Built-in value references. */
-                        var Buffer = moduleExports ? context.Buffer : undefined,
-                            Symbol = context.Symbol,
-                            Uint8Array = context.Uint8Array,
-                            allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
-                            getPrototype = overArg(Object.getPrototypeOf, Object),
-                            objectCreate = Object.create,
-                            propertyIsEnumerable = objectProto.propertyIsEnumerable,
-                            splice = arrayProto.splice,
-                            spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
-                            symIterator = Symbol ? Symbol.iterator : undefined,
-                            symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
-                        var defineProperty = (function() {
-                            try {
-                                var func = getNative(Object, 'defineProperty');
-                                func({}, '', {});
-                                return func;
-                            } catch (e) {}
-                        }());
-
-                        /** Mocked built-ins. */
-                        var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
-                            ctxNow = Date && Date.now !== root.Date.now && Date.now,
-                            ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
-
-                        /* Built-in method references for those with the same name as other `lodash` methods. */
-                        var nativeCeil = Math.ceil,
-                            nativeFloor = Math.floor,
-                            nativeGetSymbols = Object.getOwnPropertySymbols,
-                            nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
-                            nativeIsFinite = context.isFinite,
-                            nativeJoin = arrayProto.join,
-                            nativeKeys = overArg(Object.keys, Object),
-                            nativeMax = Math.max,
-                            nativeMin = Math.min,
-                            nativeNow = Date.now,
-                            nativeParseInt = context.parseInt,
-                            nativeRandom = Math.random,
-                            nativeReverse = arrayProto.reverse;
-
-                        /* Built-in method references that are verified to be native. */
-                        var DataView = getNative(context, 'DataView'),
-                            Map = getNative(context, 'Map'),
-                            Promise = getNative(context, 'Promise'),
-                            Set = getNative(context, 'Set'),
-                            WeakMap = getNative(context, 'WeakMap'),
-                            nativeCreate = getNative(Object, 'create');
-
-                        /** Used to store function metadata. */
-                        var metaMap = WeakMap && new WeakMap;
-
-                        /** Used to lookup unminified function names. */
-                        var realNames = {};
-
-                        /** Used to detect maps, sets, and weakmaps. */
-                        var dataViewCtorString = toSource(DataView),
-                            mapCtorString = toSource(Map),
-                            promiseCtorString = toSource(Promise),
-                            setCtorString = toSource(Set),
-                            weakMapCtorString = toSource(WeakMap);
-
-                        /** Used to convert symbols to primitives and strings. */
-                        var symbolProto = Symbol ? Symbol.prototype : undefined,
-                            symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
-                            symbolToString = symbolProto ? symbolProto.toString : undefined;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a `lodash` object which wraps `value` to enable implicit method
-                         * chain sequences. Methods that operate on and return arrays, collections,
-                         * and functions can be chained together. Methods that retrieve a single value
-                         * or may return a primitive value will automatically end the chain sequence
-                         * and return the unwrapped value. Otherwise, the value must be unwrapped
-                         * with `_#value`.
-                         *
-                         * Explicit chain sequences, which must be unwrapped with `_#value`, may be
-                         * enabled using `_.chain`.
-                         *
-                         * The execution of chained methods is lazy, that is, it's deferred until
-                         * `_#value` is implicitly or explicitly called.
-                         *
-                         * Lazy evaluation allows several methods to support shortcut fusion.
-                         * Shortcut fusion is an optimization to merge iteratee calls; this avoids
-                         * the creation of intermediate arrays and can greatly reduce the number of
-                         * iteratee executions. Sections of a chain sequence qualify for shortcut
-                         * fusion if the section is applied to an array and iteratees accept only
-                         * one argument. The heuristic for whether a section qualifies for shortcut
-                         * fusion is subject to change.
-                         *
-                         * Chaining is supported in custom builds as long as the `_#value` method is
-                         * directly or indirectly included in the build.
-                         *
-                         * In addition to lodash methods, wrappers have `Array` and `String` methods.
-                         *
-                         * The wrapper `Array` methods are:
-                         * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
-                         *
-                         * The wrapper `String` methods are:
-                         * `replace` and `split`
-                         *
-                         * The wrapper methods that support shortcut fusion are:
-                         * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
-                         * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
-                         * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
-                         *
-                         * The chainable wrapper methods are:
-                         * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
-                         * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
-                         * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
-                         * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
-                         * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
-                         * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
-                         * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
-                         * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
-                         * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
-                         * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
-                         * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
-                         * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
-                         * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
-                         * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
-                         * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
-                         * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
-                         * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
-                         * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
-                         * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
-                         * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
-                         * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
-                         * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
-                         * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
-                         * `zipObject`, `zipObjectDeep`, and `zipWith`
-                         *
-                         * The wrapper methods that are **not** chainable by default are:
-                         * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
-                         * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
-                         * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
-                         * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
-                         * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
-                         * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
-                         * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
-                         * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
-                         * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
-                         * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
-                         * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
-                         * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
-                         * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
-                         * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
-                         * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
-                         * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
-                         * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
-                         * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
-                         * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
-                         * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
-                         * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
-                         * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
-                         * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
-                         * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
-                         * `upperFirst`, `value`, and `words`
-                         *
-                         * @name _
-                         * @constructor
-                         * @category Seq
-                         * @param {*} value The value to wrap in a `lodash` instance.
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * var wrapped = _([1, 2, 3]);
-                         *
-                         * // Returns an unwrapped value.
-                         * wrapped.reduce(_.add);
-                         * // => 6
-                         *
-                         * // Returns a wrapped value.
-                         * var squares = wrapped.map(square);
-                         *
-                         * _.isArray(squares);
-                         * // => false
-                         *
-                         * _.isArray(squares.value());
-                         * // => true
-                         */
-                        function lodash(value) {
-                            if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
-                                if (value instanceof LodashWrapper) {
-                                    return value;
-                                }
-                                if (hasOwnProperty.call(value, '__wrapped__')) {
-                                    return wrapperClone(value);
-                                }
-                            }
-                            return new LodashWrapper(value);
-                        }
-
-                        /**
-                         * The base implementation of `_.create` without support for assigning
-                         * properties to the created object.
-                         *
-                         * @private
-                         * @param {Object} proto The object to inherit from.
-                         * @returns {Object} Returns the new object.
-                         */
-                        var baseCreate = (function() {
-                            function object() {}
-                            return function(proto) {
-                                if (!isObject(proto)) {
-                                    return {};
-                                }
-                                if (objectCreate) {
-                                    return objectCreate(proto);
-                                }
-                                object.prototype = proto;
-                                var result = new object;
-                                object.prototype = undefined;
-                                return result;
-                            };
-                        }());
-
-                        /**
-                         * The function whose prototype chain sequence wrappers inherit from.
-                         *
-                         * @private
-                         */
-                        function baseLodash() {
-                            // No operation performed.
-                        }
-
-                        /**
-                         * The base constructor for creating `lodash` wrapper objects.
-                         *
-                         * @private
-                         * @param {*} value The value to wrap.
-                         * @param {boolean} [chainAll] Enable explicit method chain sequences.
-                         */
-                        function LodashWrapper(value, chainAll) {
-                            this.__wrapped__ = value;
-                            this.__actions__ = [];
-                            this.__chain__ = !!chainAll;
-                            this.__index__ = 0;
-                            this.__values__ = undefined;
-                        }
-
-                        /**
-                         * By default, the template delimiters used by lodash are like those in
-                         * embedded Ruby (ERB) as well as ES2015 template strings. Change the
-                         * following template settings to use alternative delimiters.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @type {Object}
-                         */
-                        lodash.templateSettings = {
-
-                            /**
-                             * Used to detect `data` property values to be HTML-escaped.
-                             *
-                             * @memberOf _.templateSettings
-                             * @type {RegExp}
-                             */
-                            'escape': reEscape,
-
-                            /**
-                             * Used to detect code to be evaluated.
-                             *
-                             * @memberOf _.templateSettings
-                             * @type {RegExp}
-                             */
-                            'evaluate': reEvaluate,
-
-                            /**
-                             * Used to detect `data` property values to inject.
-                             *
-                             * @memberOf _.templateSettings
-                             * @type {RegExp}
-                             */
-                            'interpolate': reInterpolate,
-
-                            /**
-                             * Used to reference the data object in the template text.
-                             *
-                             * @memberOf _.templateSettings
-                             * @type {string}
-                             */
-                            'variable': '',
-
-                            /**
-                             * Used to import variables into the compiled template.
-                             *
-                             * @memberOf _.templateSettings
-                             * @type {Object}
-                             */
-                            'imports': {
-
-                                /**
-                                 * A reference to the `lodash` function.
-                                 *
-                                 * @memberOf _.templateSettings.imports
-                                 * @type {Function}
-                                 */
-                                '_': lodash
-                            }
-                        };
-
-                        // Ensure wrappers are instances of `baseLodash`.
-                        lodash.prototype = baseLodash.prototype;
-                        lodash.prototype.constructor = lodash;
-
-                        LodashWrapper.prototype = baseCreate(baseLodash.prototype);
-                        LodashWrapper.prototype.constructor = LodashWrapper;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {*} value The value to wrap.
-                         */
-                        function LazyWrapper(value) {
-                            this.__wrapped__ = value;
-                            this.__actions__ = [];
-                            this.__dir__ = 1;
-                            this.__filtered__ = false;
-                            this.__iteratees__ = [];
-                            this.__takeCount__ = MAX_ARRAY_LENGTH;
-                            this.__views__ = [];
-                        }
-
-                        /**
-                         * Creates a clone of the lazy wrapper object.
-                         *
-                         * @private
-                         * @name clone
-                         * @memberOf LazyWrapper
-                         * @returns {Object} Returns the cloned `LazyWrapper` object.
-                         */
-                        function lazyClone() {
-                            var result = new LazyWrapper(this.__wrapped__);
-                            result.__actions__ = copyArray(this.__actions__);
-                            result.__dir__ = this.__dir__;
-                            result.__filtered__ = this.__filtered__;
-                            result.__iteratees__ = copyArray(this.__iteratees__);
-                            result.__takeCount__ = this.__takeCount__;
-                            result.__views__ = copyArray(this.__views__);
-                            return result;
-                        }
-
-                        /**
-                         * Reverses the direction of lazy iteration.
-                         *
-                         * @private
-                         * @name reverse
-                         * @memberOf LazyWrapper
-                         * @returns {Object} Returns the new reversed `LazyWrapper` object.
-                         */
-                        function lazyReverse() {
-                            if (this.__filtered__) {
-                                var result = new LazyWrapper(this);
-                                result.__dir__ = -1;
-                                result.__filtered__ = true;
-                            } else {
-                                result = this.clone();
-                                result.__dir__ *= -1;
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * Extracts the unwrapped value from its lazy wrapper.
-                         *
-                         * @private
-                         * @name value
-                         * @memberOf LazyWrapper
-                         * @returns {*} Returns the unwrapped value.
-                         */
-                        function lazyValue() {
-                            var array = this.__wrapped__.value(),
-                                dir = this.__dir__,
-                                isArr = isArray(array),
-                                isRight = dir < 0,
-                                arrLength = isArr ? array.length : 0,
-                                view = getView(0, arrLength, this.__views__),
-                                start = view.start,
-                                end = view.end,
-                                length = end - start,
-                                index = isRight ? end : (start - 1),
-                                iteratees = this.__iteratees__,
-                                iterLength = iteratees.length,
-                                resIndex = 0,
-                                takeCount = nativeMin(length, this.__takeCount__);
-
-                            if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
-                                return baseWrapperValue(array, this.__actions__);
-                            }
-                            var result = [];
-
-                            outer:
-                                while (length-- && resIndex < takeCount) {
-                                    index += dir;
-
-                                    var iterIndex = -1,
-                                        value = array[index];
-
-                                    while (++iterIndex < iterLength) {
-                                        var data = iteratees[iterIndex],
-                                            iteratee = data.iteratee,
-                                            type = data.type,
-                                            computed = iteratee(value);
-
-                                        if (type == LAZY_MAP_FLAG) {
-                                            value = computed;
-                                        } else if (!computed) {
-                                            if (type == LAZY_FILTER_FLAG) {
-                                                continue outer;
-                                            } else {
-                                                break outer;
-                                            }
-                                        }
-                                    }
-                                    result[resIndex++] = value;
-                                }
-                            return result;
-                        }
-
-                        // Ensure `LazyWrapper` is an instance of `baseLodash`.
-                        LazyWrapper.prototype = baseCreate(baseLodash.prototype);
-                        LazyWrapper.prototype.constructor = LazyWrapper;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a hash object.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {Array} [entries] The key-value pairs to cache.
-                         */
-                        function Hash(entries) {
-                            var index = -1,
-                                length = entries == null ? 0 : entries.length;
-
-                            this.clear();
-                            while (++index < length) {
-                                var entry = entries[index];
-                                this.set(entry[0], entry[1]);
-                            }
-                        }
-
-                        /**
-                         * Removes all key-value entries from the hash.
-                         *
-                         * @private
-                         * @name clear
-                         * @memberOf Hash
-                         */
-                        function hashClear() {
-                            this.__data__ = nativeCreate ? nativeCreate(null) : {};
-                            this.size = 0;
-                        }
-
-                        /**
-                         * Removes `key` and its value from the hash.
-                         *
-                         * @private
-                         * @name delete
-                         * @memberOf Hash
-                         * @param {Object} hash The hash to modify.
-                         * @param {string} key The key of the value to remove.
-                         * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-                         */
-                        function hashDelete(key) {
-                            var result = this.has(key) && delete this.__data__[key];
-                            this.size -= result ? 1 : 0;
-                            return result;
-                        }
-
-                        /**
-                         * Gets the hash value for `key`.
-                         *
-                         * @private
-                         * @name get
-                         * @memberOf Hash
-                         * @param {string} key The key of the value to get.
-                         * @returns {*} Returns the entry value.
-                         */
-                        function hashGet(key) {
-                            var data = this.__data__;
-                            if (nativeCreate) {
-                                var result = data[key];
-                                return result === HASH_UNDEFINED ? undefined : result;
-                            }
-                            return hasOwnProperty.call(data, key) ? data[key] : undefined;
-                        }
-
-                        /**
-                         * Checks if a hash value for `key` exists.
-                         *
-                         * @private
-                         * @name has
-                         * @memberOf Hash
-                         * @param {string} key The key of the entry to check.
-                         * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-                         */
-                        function hashHas(key) {
-                            var data = this.__data__;
-                            return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
-                        }
-
-                        /**
-                         * Sets the hash `key` to `value`.
-                         *
-                         * @private
-                         * @name set
-                         * @memberOf Hash
-                         * @param {string} key The key of the value to set.
-                         * @param {*} value The value to set.
-                         * @returns {Object} Returns the hash instance.
-                         */
-                        function hashSet(key, value) {
-                            var data = this.__data__;
-                            this.size += this.has(key) ? 0 : 1;
-                            data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
-                            return this;
-                        }
-
-                        // Add methods to `Hash`.
-                        Hash.prototype.clear = hashClear;
-                        Hash.prototype['delete'] = hashDelete;
-                        Hash.prototype.get = hashGet;
-                        Hash.prototype.has = hashHas;
-                        Hash.prototype.set = hashSet;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates an list cache object.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {Array} [entries] The key-value pairs to cache.
-                         */
-                        function ListCache(entries) {
-                            var index = -1,
-                                length = entries == null ? 0 : entries.length;
-
-                            this.clear();
-                            while (++index < length) {
-                                var entry = entries[index];
-                                this.set(entry[0], entry[1]);
-                            }
-                        }
-
-                        /**
-                         * Removes all key-value entries from the list cache.
-                         *
-                         * @private
-                         * @name clear
-                         * @memberOf ListCache
-                         */
-                        function listCacheClear() {
-                            this.__data__ = [];
-                            this.size = 0;
-                        }
-
-                        /**
-                         * Removes `key` and its value from the list cache.
-                         *
-                         * @private
-                         * @name delete
-                         * @memberOf ListCache
-                         * @param {string} key The key of the value to remove.
-                         * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-                         */
-                        function listCacheDelete(key) {
-                            var data = this.__data__,
-                                index = assocIndexOf(data, key);
-
-                            if (index < 0) {
-                                return false;
-                            }
-                            var lastIndex = data.length - 1;
-                            if (index == lastIndex) {
-                                data.pop();
-                            } else {
-                                splice.call(data, index, 1);
-                            }
-                            --this.size;
-                            return true;
-                        }
-
-                        /**
-                         * Gets the list cache value for `key`.
-                         *
-                         * @private
-                         * @name get
-                         * @memberOf ListCache
-                         * @param {string} key The key of the value to get.
-                         * @returns {*} Returns the entry value.
-                         */
-                        function listCacheGet(key) {
-                            var data = this.__data__,
-                                index = assocIndexOf(data, key);
-
-                            return index < 0 ? undefined : data[index][1];
-                        }
-
-                        /**
-                         * Checks if a list cache value for `key` exists.
-                         *
-                         * @private
-                         * @name has
-                         * @memberOf ListCache
-                         * @param {string} key The key of the entry to check.
-                         * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-                         */
-                        function listCacheHas(key) {
-                            return assocIndexOf(this.__data__, key) > -1;
-                        }
-
-                        /**
-                         * Sets the list cache `key` to `value`.
-                         *
-                         * @private
-                         * @name set
-                         * @memberOf ListCache
-                         * @param {string} key The key of the value to set.
-                         * @param {*} value The value to set.
-                         * @returns {Object} Returns the list cache instance.
-                         */
-                        function listCacheSet(key, value) {
-                            var data = this.__data__,
-                                index = assocIndexOf(data, key);
-
-                            if (index < 0) {
-                                ++this.size;
-                                data.push([key, value]);
-                            } else {
-                                data[index][1] = value;
-                            }
-                            return this;
-                        }
-
-                        // Add methods to `ListCache`.
-                        ListCache.prototype.clear = listCacheClear;
-                        ListCache.prototype['delete'] = listCacheDelete;
-                        ListCache.prototype.get = listCacheGet;
-                        ListCache.prototype.has = listCacheHas;
-                        ListCache.prototype.set = listCacheSet;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a map cache object to store key-value pairs.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {Array} [entries] The key-value pairs to cache.
-                         */
-                        function MapCache(entries) {
-                            var index = -1,
-                                length = entries == null ? 0 : entries.length;
-
-                            this.clear();
-                            while (++index < length) {
-                                var entry = entries[index];
-                                this.set(entry[0], entry[1]);
-                            }
-                        }
-
-                        /**
-                         * Removes all key-value entries from the map.
-                         *
-                         * @private
-                         * @name clear
-                         * @memberOf MapCache
-                         */
-                        function mapCacheClear() {
-                            this.size = 0;
-                            this.__data__ = {
-                                'hash': new Hash,
-                                'map': new (Map || ListCache),
-                                'string': new Hash
-                            };
-                        }
-
-                        /**
-                         * Removes `key` and its value from the map.
-                         *
-                         * @private
-                         * @name delete
-                         * @memberOf MapCache
-                         * @param {string} key The key of the value to remove.
-                         * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-                         */
-                        function mapCacheDelete(key) {
-                            var result = getMapData(this, key)['delete'](key);
-                            this.size -= result ? 1 : 0;
-                            return result;
-                        }
-
-                        /**
-                         * Gets the map value for `key`.
-                         *
-                         * @private
-                         * @name get
-                         * @memberOf MapCache
-                         * @param {string} key The key of the value to get.
-                         * @returns {*} Returns the entry value.
-                         */
-                        function mapCacheGet(key) {
-                            return getMapData(this, key).get(key);
-                        }
-
-                        /**
-                         * Checks if a map value for `key` exists.
-                         *
-                         * @private
-                         * @name has
-                         * @memberOf MapCache
-                         * @param {string} key The key of the entry to check.
-                         * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-                         */
-                        function mapCacheHas(key) {
-                            return getMapData(this, key).has(key);
-                        }
-
-                        /**
-                         * Sets the map `key` to `value`.
-                         *
-                         * @private
-                         * @name set
-                         * @memberOf MapCache
-                         * @param {string} key The key of the value to set.
-                         * @param {*} value The value to set.
-                         * @returns {Object} Returns the map cache instance.
-                         */
-                        function mapCacheSet(key, value) {
-                            var data = getMapData(this, key),
-                                size = data.size;
-
-                            data.set(key, value);
-                            this.size += data.size == size ? 0 : 1;
-                            return this;
-                        }
-
-                        // Add methods to `MapCache`.
-                        MapCache.prototype.clear = mapCacheClear;
-                        MapCache.prototype['delete'] = mapCacheDelete;
-                        MapCache.prototype.get = mapCacheGet;
-                        MapCache.prototype.has = mapCacheHas;
-                        MapCache.prototype.set = mapCacheSet;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         *
-                         * Creates an array cache object to store unique values.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {Array} [values] The values to cache.
-                         */
-                        function SetCache(values) {
-                            var index = -1,
-                                length = values == null ? 0 : values.length;
-
-                            this.__data__ = new MapCache;
-                            while (++index < length) {
-                                this.add(values[index]);
-                            }
-                        }
-
-                        /**
-                         * Adds `value` to the array cache.
-                         *
-                         * @private
-                         * @name add
-                         * @memberOf SetCache
-                         * @alias push
-                         * @param {*} value The value to cache.
-                         * @returns {Object} Returns the cache instance.
-                         */
-                        function setCacheAdd(value) {
-                            this.__data__.set(value, HASH_UNDEFINED);
-                            return this;
-                        }
-
-                        /**
-                         * Checks if `value` is in the array cache.
-                         *
-                         * @private
-                         * @name has
-                         * @memberOf SetCache
-                         * @param {*} value The value to search for.
-                         * @returns {number} Returns `true` if `value` is found, else `false`.
-                         */
-                        function setCacheHas(value) {
-                            return this.__data__.has(value);
-                        }
-
-                        // Add methods to `SetCache`.
-                        SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
-                        SetCache.prototype.has = setCacheHas;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a stack cache object to store key-value pairs.
-                         *
-                         * @private
-                         * @constructor
-                         * @param {Array} [entries] The key-value pairs to cache.
-                         */
-                        function Stack(entries) {
-                            var data = this.__data__ = new ListCache(entries);
-                            this.size = data.size;
-                        }
-
-                        /**
-                         * Removes all key-value entries from the stack.
-                         *
-                         * @private
-                         * @name clear
-                         * @memberOf Stack
-                         */
-                        function stackClear() {
-                            this.__data__ = new ListCache;
-                            this.size = 0;
-                        }
-
-                        /**
-                         * Removes `key` and its value from the stack.
-                         *
-                         * @private
-                         * @name delete
-                         * @memberOf Stack
-                         * @param {string} key The key of the value to remove.
-                         * @returns {boolean} Returns `true` if the entry was removed, else `false`.
-                         */
-                        function stackDelete(key) {
-                            var data = this.__data__,
-                                result = data['delete'](key);
-
-                            this.size = data.size;
-                            return result;
-                        }
-
-                        /**
-                         * Gets the stack value for `key`.
-                         *
-                         * @private
-                         * @name get
-                         * @memberOf Stack
-                         * @param {string} key The key of the value to get.
-                         * @returns {*} Returns the entry value.
-                         */
-                        function stackGet(key) {
-                            return this.__data__.get(key);
-                        }
-
-                        /**
-                         * Checks if a stack value for `key` exists.
-                         *
-                         * @private
-                         * @name has
-                         * @memberOf Stack
-                         * @param {string} key The key of the entry to check.
-                         * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
-                         */
-                        function stackHas(key) {
-                            return this.__data__.has(key);
-                        }
-
-                        /**
-                         * Sets the stack `key` to `value`.
-                         *
-                         * @private
-                         * @name set
-                         * @memberOf Stack
-                         * @param {string} key The key of the value to set.
-                         * @param {*} value The value to set.
-                         * @returns {Object} Returns the stack cache instance.
-                         */
-                        function stackSet(key, value) {
-                            var data = this.__data__;
-                            if (data instanceof ListCache) {
-                                var pairs = data.__data__;
-                                if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
-                                    pairs.push([key, value]);
-                                    this.size = ++data.size;
-                                    return this;
-                                }
-                                data = this.__data__ = new MapCache(pairs);
-                            }
-                            data.set(key, value);
-                            this.size = data.size;
-                            return this;
-                        }
-
-                        // Add methods to `Stack`.
-                        Stack.prototype.clear = stackClear;
-                        Stack.prototype['delete'] = stackDelete;
-                        Stack.prototype.get = stackGet;
-                        Stack.prototype.has = stackHas;
-                        Stack.prototype.set = stackSet;
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates an array of the enumerable property names of the array-like `value`.
-                         *
-                         * @private
-                         * @param {*} value The value to query.
-                         * @param {boolean} inherited Specify returning inherited property names.
-                         * @returns {Array} Returns the array of property names.
-                         */
-                        function arrayLikeKeys(value, inherited) {
-                            var isArr = isArray(value),
-                                isArg = !isArr && isArguments(value),
-                                isBuff = !isArr && !isArg && isBuffer(value),
-                                isType = !isArr && !isArg && !isBuff && isTypedArray(value),
-                                skipIndexes = isArr || isArg || isBuff || isType,
-                                result = skipIndexes ? baseTimes(value.length, String) : [],
-                                length = result.length;
-
-                            for (var key in value) {
-                                if ((inherited || hasOwnProperty.call(value, key)) &&
-                                    !(skipIndexes && (
-                                        // Safari 9 has enumerable `arguments.length` in strict mode.
-                                        key == 'length' ||
-                                        // Node.js 0.10 has enumerable non-index properties on buffers.
-                                        (isBuff && (key == 'offset' || key == 'parent')) ||
-                                        // PhantomJS 2 has enumerable non-index properties on typed arrays.
-                                        (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
-                                        // Skip index properties.
-                                        isIndex(key, length)
-                                    ))) {
-                                    result.push(key);
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * A specialized version of `_.sample` for arrays.
-                         *
-                         * @private
-                         * @param {Array} array The array to sample.
-                         * @returns {*} Returns the random element.
-                         */
-                        function arraySample(array) {
-                            var length = array.length;
-                            return length ? array[baseRandom(0, length - 1)] : undefined;
-                        }
-
-                        /**
-                         * A specialized version of `_.sampleSize` for arrays.
-                         *
-                         * @private
-                         * @param {Array} array The array to sample.
-                         * @param {number} n The number of elements to sample.
-                         * @returns {Array} Returns the random elements.
-                         */
-                        function arraySampleSize(array, n) {
-                            return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
-                        }
-
-                        /**
-                         * A specialized version of `_.shuffle` for arrays.
-                         *
-                         * @private
-                         * @param {Array} array The array to shuffle.
-                         * @returns {Array} Returns the new shuffled array.
-                         */
-                        function arrayShuffle(array) {
-                            return shuffleSelf(copyArray(array));
-                        }
-
-                        /**
-                         * This function is like `assignValue` except that it doesn't assign
-                         * `undefined` values.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {string} key The key of the property to assign.
-                         * @param {*} value The value to assign.
-                         */
-                        function assignMergeValue(object, key, value) {
-                            if ((value !== undefined && !eq(object[key], value)) ||
-                                (value === undefined && !(key in object))) {
-                                baseAssignValue(object, key, value);
-                            }
-                        }
-
-                        /**
-                         * Assigns `value` to `key` of `object` if the existing value is not equivalent
-                         * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {string} key The key of the property to assign.
-                         * @param {*} value The value to assign.
-                         */
-                        function assignValue(object, key, value) {
-                            var objValue = object[key];
-                            if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
-                                (value === undefined && !(key in object))) {
-                                baseAssignValue(object, key, value);
-                            }
-                        }
-
-                        /**
-                         * Gets the index at which the `key` is found in `array` of key-value pairs.
-                         *
-                         * @private
-                         * @param {Array} array The array to inspect.
-                         * @param {*} key The key to search for.
-                         * @returns {number} Returns the index of the matched value, else `-1`.
-                         */
-                        function assocIndexOf(array, key) {
-                            var length = array.length;
-                            while (length--) {
-                                if (eq(array[length][0], key)) {
-                                    return length;
-                                }
-                            }
-                            return -1;
-                        }
-
-                        /**
-                         * Aggregates elements of `collection` on `accumulator` with keys transformed
-                         * by `iteratee` and values set by `setter`.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} setter The function to set `accumulator` values.
-                         * @param {Function} iteratee The iteratee to transform keys.
-                         * @param {Object} accumulator The initial aggregated object.
-                         * @returns {Function} Returns `accumulator`.
-                         */
-                        function baseAggregator(collection, setter, iteratee, accumulator) {
-                            baseEach(collection, function(value, key, collection) {
-                                setter(accumulator, value, iteratee(value), collection);
-                            });
-                            return accumulator;
-                        }
-
-                        /**
-                         * The base implementation of `_.assign` without support for multiple sources
-                         * or `customizer` functions.
-                         *
-                         * @private
-                         * @param {Object} object The destination object.
-                         * @param {Object} source The source object.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseAssign(object, source) {
-                            return object && copyObject(source, keys(source), object);
-                        }
-
-                        /**
-                         * The base implementation of `_.assignIn` without support for multiple sources
-                         * or `customizer` functions.
-                         *
-                         * @private
-                         * @param {Object} object The destination object.
-                         * @param {Object} source The source object.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseAssignIn(object, source) {
-                            return object && copyObject(source, keysIn(source), object);
-                        }
-
-                        /**
-                         * The base implementation of `assignValue` and `assignMergeValue` without
-                         * value checks.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {string} key The key of the property to assign.
-                         * @param {*} value The value to assign.
-                         */
-                        function baseAssignValue(object, key, value) {
-                            if (key == '__proto__' && defineProperty) {
-                                defineProperty(object, key, {
-                                    'configurable': true,
-                                    'enumerable': true,
-                                    'value': value,
-                                    'writable': true
-                                });
-                            } else {
-                                object[key] = value;
-                            }
-                        }
-
-                        /**
-                         * The base implementation of `_.at` without support for individual paths.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {string[]} paths The property paths to pick.
-                         * @returns {Array} Returns the picked elements.
-                         */
-                        function baseAt(object, paths) {
-                            var index = -1,
-                                length = paths.length,
-                                result = Array(length),
-                                skip = object == null;
-
-                            while (++index < length) {
-                                result[index] = skip ? undefined : get(object, paths[index]);
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.clamp` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {number} number The number to clamp.
-                         * @param {number} [lower] The lower bound.
-                         * @param {number} upper The upper bound.
-                         * @returns {number} Returns the clamped number.
-                         */
-                        function baseClamp(number, lower, upper) {
-                            if (number === number) {
-                                if (upper !== undefined) {
-                                    number = number <= upper ? number : upper;
-                                }
-                                if (lower !== undefined) {
-                                    number = number >= lower ? number : lower;
-                                }
-                            }
-                            return number;
-                        }
-
-                        /**
-                         * The base implementation of `_.clone` and `_.cloneDeep` which tracks
-                         * traversed objects.
-                         *
-                         * @private
-                         * @param {*} value The value to clone.
-                         * @param {boolean} bitmask The bitmask flags.
-                         *  1 - Deep clone
-                         *  2 - Flatten inherited properties
-                         *  4 - Clone symbols
-                         * @param {Function} [customizer] The function to customize cloning.
-                         * @param {string} [key] The key of `value`.
-                         * @param {Object} [object] The parent object of `value`.
-                         * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
-                         * @returns {*} Returns the cloned value.
-                         */
-                        function baseClone(value, bitmask, customizer, key, object, stack) {
-                            var result,
-                                isDeep = bitmask & CLONE_DEEP_FLAG,
-                                isFlat = bitmask & CLONE_FLAT_FLAG,
-                                isFull = bitmask & CLONE_SYMBOLS_FLAG;
-
-                            if (customizer) {
-                                result = object ? customizer(value, key, object, stack) : customizer(value);
-                            }
-                            if (result !== undefined) {
-                                return result;
-                            }
-                            if (!isObject(value)) {
-                                return value;
-                            }
-                            var isArr = isArray(value);
-                            if (isArr) {
-                                result = initCloneArray(value);
-                                if (!isDeep) {
-                                    return copyArray(value, result);
-                                }
-                            } else {
-                                var tag = getTag(value),
-                                    isFunc = tag == funcTag || tag == genTag;
-
-                                if (isBuffer(value)) {
-                                    return cloneBuffer(value, isDeep);
-                                }
-                                if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
-                                    result = (isFlat || isFunc) ? {} : initCloneObject(value);
-                                    if (!isDeep) {
-                                        return isFlat
-                                            ? copySymbolsIn(value, baseAssignIn(result, value))
-                                            : copySymbols(value, baseAssign(result, value));
-                                    }
-                                } else {
-                                    if (!cloneableTags[tag]) {
-                                        return object ? value : {};
-                                    }
-                                    result = initCloneByTag(value, tag, isDeep);
-                                }
-                            }
-                            // Check for circular references and return its corresponding clone.
-                            stack || (stack = new Stack);
-                            var stacked = stack.get(value);
-                            if (stacked) {
-                                return stacked;
-                            }
-                            stack.set(value, result);
-
-                            if (isSet(value)) {
-                                value.forEach(function(subValue) {
-                                    result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
-                                });
-                            } else if (isMap(value)) {
-                                value.forEach(function(subValue, key) {
-                                    result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
-                                });
-                            }
-
-                            var keysFunc = isFull
-                                ? (isFlat ? getAllKeysIn : getAllKeys)
-                                : (isFlat ? keysIn : keys);
-
-                            var props = isArr ? undefined : keysFunc(value);
-                            arrayEach(props || value, function(subValue, key) {
-                                if (props) {
-                                    key = subValue;
-                                    subValue = value[key];
-                                }
-                                // Recursively populate clone (susceptible to call stack limits).
-                                assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
-                            });
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.conforms` which doesn't clone `source`.
-                         *
-                         * @private
-                         * @param {Object} source The object of property predicates to conform to.
-                         * @returns {Function} Returns the new spec function.
-                         */
-                        function baseConforms(source) {
-                            var props = keys(source);
-                            return function(object) {
-                                return baseConformsTo(object, source, props);
-                            };
-                        }
-
-                        /**
-                         * The base implementation of `_.conformsTo` which accepts `props` to check.
-                         *
-                         * @private
-                         * @param {Object} object The object to inspect.
-                         * @param {Object} source The object of property predicates to conform to.
-                         * @returns {boolean} Returns `true` if `object` conforms, else `false`.
-                         */
-                        function baseConformsTo(object, source, props) {
-                            var length = props.length;
-                            if (object == null) {
-                                return !length;
-                            }
-                            object = Object(object);
-                            while (length--) {
-                                var key = props[length],
-                                    predicate = source[key],
-                                    value = object[key];
-
-                                if ((value === undefined && !(key in object)) || !predicate(value)) {
-                                    return false;
-                                }
-                            }
-                            return true;
-                        }
-
-                        /**
-                         * The base implementation of `_.delay` and `_.defer` which accepts `args`
-                         * to provide to `func`.
-                         *
-                         * @private
-                         * @param {Function} func The function to delay.
-                         * @param {number} wait The number of milliseconds to delay invocation.
-                         * @param {Array} args The arguments to provide to `func`.
-                         * @returns {number|Object} Returns the timer id or timeout object.
-                         */
-                        function baseDelay(func, wait, args) {
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            return setTimeout(function() { func.apply(undefined, args); }, wait);
-                        }
-
-                        /**
-                         * The base implementation of methods like `_.difference` without support
-                         * for excluding multiple arrays or iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array} array The array to inspect.
-                         * @param {Array} values The values to exclude.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of filtered values.
-                         */
-                        function baseDifference(array, values, iteratee, comparator) {
-                            var index = -1,
-                                includes = arrayIncludes,
-                                isCommon = true,
-                                length = array.length,
-                                result = [],
-                                valuesLength = values.length;
-
-                            if (!length) {
-                                return result;
-                            }
-                            if (iteratee) {
-                                values = arrayMap(values, baseUnary(iteratee));
-                            }
-                            if (comparator) {
-                                includes = arrayIncludesWith;
-                                isCommon = false;
-                            }
-                            else if (values.length >= LARGE_ARRAY_SIZE) {
-                                includes = cacheHas;
-                                isCommon = false;
-                                values = new SetCache(values);
-                            }
-                            outer:
-                                while (++index < length) {
-                                    var value = array[index],
-                                        computed = iteratee == null ? value : iteratee(value);
-
-                                    value = (comparator || value !== 0) ? value : 0;
-                                    if (isCommon && computed === computed) {
-                                        var valuesIndex = valuesLength;
-                                        while (valuesIndex--) {
-                                            if (values[valuesIndex] === computed) {
-                                                continue outer;
-                                            }
-                                        }
-                                        result.push(value);
-                                    }
-                                    else if (!includes(values, computed, comparator)) {
-                                        result.push(value);
-                                    }
-                                }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.forEach` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @returns {Array|Object} Returns `collection`.
-                         */
-                        var baseEach = createBaseEach(baseForOwn);
-
-                        /**
-                         * The base implementation of `_.forEachRight` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @returns {Array|Object} Returns `collection`.
-                         */
-                        var baseEachRight = createBaseEach(baseForOwnRight, true);
-
-                        /**
-                         * The base implementation of `_.every` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} predicate The function invoked per iteration.
-                         * @returns {boolean} Returns `true` if all elements pass the predicate check,
-                         *  else `false`
-                         */
-                        function baseEvery(collection, predicate) {
-                            var result = true;
-                            baseEach(collection, function(value, index, collection) {
-                                result = !!predicate(value, index, collection);
-                                return result;
-                            });
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of methods like `_.max` and `_.min` which accepts a
-                         * `comparator` to determine the extremum value.
-                         *
-                         * @private
-                         * @param {Array} array The array to iterate over.
-                         * @param {Function} iteratee The iteratee invoked per iteration.
-                         * @param {Function} comparator The comparator used to compare values.
-                         * @returns {*} Returns the extremum value.
-                         */
-                        function baseExtremum(array, iteratee, comparator) {
-                            var index = -1,
-                                length = array.length;
-
-                            while (++index < length) {
-                                var value = array[index],
-                                    current = iteratee(value);
-
-                                if (current != null && (computed === undefined
-                                        ? (current === current && !isSymbol(current))
-                                        : comparator(current, computed)
-                                )) {
-                                    var computed = current,
-                                        result = value;
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.fill` without an iteratee call guard.
-                         *
-                         * @private
-                         * @param {Array} array The array to fill.
-                         * @param {*} value The value to fill `array` with.
-                         * @param {number} [start=0] The start position.
-                         * @param {number} [end=array.length] The end position.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function baseFill(array, value, start, end) {
-                            var length = array.length;
-
-                            start = toInteger(start);
-                            if (start < 0) {
-                                start = -start > length ? 0 : (length + start);
-                            }
-                            end = (end === undefined || end > length) ? length : toInteger(end);
-                            if (end < 0) {
-                                end += length;
-                            }
-                            end = start > end ? 0 : toLength(end);
-                            while (start < end) {
-                                array[start++] = value;
-                            }
-                            return array;
-                        }
-
-                        /**
-                         * The base implementation of `_.filter` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} predicate The function invoked per iteration.
-                         * @returns {Array} Returns the new filtered array.
-                         */
-                        function baseFilter(collection, predicate) {
-                            var result = [];
-                            baseEach(collection, function(value, index, collection) {
-                                if (predicate(value, index, collection)) {
-                                    result.push(value);
-                                }
-                            });
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.flatten` with support for restricting flattening.
-                         *
-                         * @private
-                         * @param {Array} array The array to flatten.
-                         * @param {number} depth The maximum recursion depth.
-                         * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
-                         * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
-                         * @param {Array} [result=[]] The initial result value.
-                         * @returns {Array} Returns the new flattened array.
-                         */
-                        function baseFlatten(array, depth, predicate, isStrict, result) {
-                            var index = -1,
-                                length = array.length;
-
-                            predicate || (predicate = isFlattenable);
-                            result || (result = []);
-
-                            while (++index < length) {
-                                var value = array[index];
-                                if (depth > 0 && predicate(value)) {
-                                    if (depth > 1) {
-                                        // Recursively flatten arrays (susceptible to call stack limits).
-                                        baseFlatten(value, depth - 1, predicate, isStrict, result);
-                                    } else {
-                                        arrayPush(result, value);
-                                    }
-                                } else if (!isStrict) {
-                                    result[result.length] = value;
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `baseForOwn` which iterates over `object`
-                         * properties returned by `keysFunc` and invokes `iteratee` for each property.
-                         * Iteratee functions may exit iteration early by explicitly returning `false`.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @param {Function} keysFunc The function to get the keys of `object`.
-                         * @returns {Object} Returns `object`.
-                         */
-                        var baseFor = createBaseFor();
-
-                        /**
-                         * This function is like `baseFor` except that it iterates over properties
-                         * in the opposite order.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @param {Function} keysFunc The function to get the keys of `object`.
-                         * @returns {Object} Returns `object`.
-                         */
-                        var baseForRight = createBaseFor(true);
-
-                        /**
-                         * The base implementation of `_.forOwn` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseForOwn(object, iteratee) {
-                            return object && baseFor(object, iteratee, keys);
-                        }
-
-                        /**
-                         * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseForOwnRight(object, iteratee) {
-                            return object && baseForRight(object, iteratee, keys);
-                        }
-
-                        /**
-                         * The base implementation of `_.functions` which creates an array of
-                         * `object` function property names filtered from `props`.
-                         *
-                         * @private
-                         * @param {Object} object The object to inspect.
-                         * @param {Array} props The property names to filter.
-                         * @returns {Array} Returns the function names.
-                         */
-                        function baseFunctions(object, props) {
-                            return arrayFilter(props, function(key) {
-                                return isFunction(object[key]);
-                            });
-                        }
-
-                        /**
-                         * The base implementation of `_.get` without support for default values.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path of the property to get.
-                         * @returns {*} Returns the resolved value.
-                         */
-                        function baseGet(object, path) {
-                            path = castPath(path, object);
-
-                            var index = 0,
-                                length = path.length;
-
-                            while (object != null && index < length) {
-                                object = object[toKey(path[index++])];
-                            }
-                            return (index && index == length) ? object : undefined;
-                        }
-
-                        /**
-                         * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
-                         * `keysFunc` and `symbolsFunc` to get the enumerable property names and
-                         * symbols of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {Function} keysFunc The function to get the keys of `object`.
-                         * @param {Function} symbolsFunc The function to get the symbols of `object`.
-                         * @returns {Array} Returns the array of property names and symbols.
-                         */
-                        function baseGetAllKeys(object, keysFunc, symbolsFunc) {
-                            var result = keysFunc(object);
-                            return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
-                        }
-
-                        /**
-                         * The base implementation of `getTag` without fallbacks for buggy environments.
-                         *
-                         * @private
-                         * @param {*} value The value to query.
-                         * @returns {string} Returns the `toStringTag`.
-                         */
-                        function baseGetTag(value) {
-                            if (value == null) {
-                                return value === undefined ? undefinedTag : nullTag;
-                            }
-                            return (symToStringTag && symToStringTag in Object(value))
-                                ? getRawTag(value)
-                                : objectToString(value);
-                        }
-
-                        /**
-                         * The base implementation of `_.gt` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is greater than `other`,
-                         *  else `false`.
-                         */
-                        function baseGt(value, other) {
-                            return value > other;
-                        }
-
-                        /**
-                         * The base implementation of `_.has` without support for deep paths.
-                         *
-                         * @private
-                         * @param {Object} [object] The object to query.
-                         * @param {Array|string} key The key to check.
-                         * @returns {boolean} Returns `true` if `key` exists, else `false`.
-                         */
-                        function baseHas(object, key) {
-                            return object != null && hasOwnProperty.call(object, key);
-                        }
-
-                        /**
-                         * The base implementation of `_.hasIn` without support for deep paths.
-                         *
-                         * @private
-                         * @param {Object} [object] The object to query.
-                         * @param {Array|string} key The key to check.
-                         * @returns {boolean} Returns `true` if `key` exists, else `false`.
-                         */
-                        function baseHasIn(object, key) {
-                            return object != null && key in Object(object);
-                        }
-
-                        /**
-                         * The base implementation of `_.inRange` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {number} number The number to check.
-                         * @param {number} start The start of the range.
-                         * @param {number} end The end of the range.
-                         * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
-                         */
-                        function baseInRange(number, start, end) {
-                            return number >= nativeMin(start, end) && number < nativeMax(start, end);
-                        }
-
-                        /**
-                         * The base implementation of methods like `_.intersection`, without support
-                         * for iteratee shorthands, that accepts an array of arrays to inspect.
-                         *
-                         * @private
-                         * @param {Array} arrays The arrays to inspect.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of shared values.
-                         */
-                        function baseIntersection(arrays, iteratee, comparator) {
-                            var includes = comparator ? arrayIncludesWith : arrayIncludes,
-                                length = arrays[0].length,
-                                othLength = arrays.length,
-                                othIndex = othLength,
-                                caches = Array(othLength),
-                                maxLength = Infinity,
-                                result = [];
-
-                            while (othIndex--) {
-                                var array = arrays[othIndex];
-                                if (othIndex && iteratee) {
-                                    array = arrayMap(array, baseUnary(iteratee));
-                                }
-                                maxLength = nativeMin(array.length, maxLength);
-                                caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
-                                    ? new SetCache(othIndex && array)
-                                    : undefined;
-                            }
-                            array = arrays[0];
-
-                            var index = -1,
-                                seen = caches[0];
-
-                            outer:
-                                while (++index < length && result.length < maxLength) {
-                                    var value = array[index],
-                                        computed = iteratee ? iteratee(value) : value;
-
-                                    value = (comparator || value !== 0) ? value : 0;
-                                    if (!(seen
-                                            ? cacheHas(seen, computed)
-                                            : includes(result, computed, comparator)
-                                    )) {
-                                        othIndex = othLength;
-                                        while (--othIndex) {
-                                            var cache = caches[othIndex];
-                                            if (!(cache
-                                                ? cacheHas(cache, computed)
-                                                : includes(arrays[othIndex], computed, comparator))
-                                            ) {
-                                                continue outer;
-                                            }
-                                        }
-                                        if (seen) {
-                                            seen.push(computed);
-                                        }
-                                        result.push(value);
-                                    }
-                                }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.invert` and `_.invertBy` which inverts
-                         * `object` with values transformed by `iteratee` and set by `setter`.
-                         *
-                         * @private
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} setter The function to set `accumulator` values.
-                         * @param {Function} iteratee The iteratee to transform values.
-                         * @param {Object} accumulator The initial inverted object.
-                         * @returns {Function} Returns `accumulator`.
-                         */
-                        function baseInverter(object, setter, iteratee, accumulator) {
-                            baseForOwn(object, function(value, key, object) {
-                                setter(accumulator, iteratee(value), key, object);
-                            });
-                            return accumulator;
-                        }
-
-                        /**
-                         * The base implementation of `_.invoke` without support for individual
-                         * method arguments.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path of the method to invoke.
-                         * @param {Array} args The arguments to invoke the method with.
-                         * @returns {*} Returns the result of the invoked method.
-                         */
-                        function baseInvoke(object, path, args) {
-                            path = castPath(path, object);
-                            object = parent(object, path);
-                            var func = object == null ? object : object[toKey(last(path))];
-                            return func == null ? undefined : apply(func, object, args);
-                        }
-
-                        /**
-                         * The base implementation of `_.isArguments`.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an `arguments` object,
-                         */
-                        function baseIsArguments(value) {
-                            return isObjectLike(value) && baseGetTag(value) == argsTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
-                         */
-                        function baseIsArrayBuffer(value) {
-                            return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isDate` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
-                         */
-                        function baseIsDate(value) {
-                            return isObjectLike(value) && baseGetTag(value) == dateTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isEqual` which supports partial comparisons
-                         * and tracks traversed objects.
-                         *
-                         * @private
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @param {boolean} bitmask The bitmask flags.
-                         *  1 - Unordered comparison
-                         *  2 - Partial comparison
-                         * @param {Function} [customizer] The function to customize comparisons.
-                         * @param {Object} [stack] Tracks traversed `value` and `other` objects.
-                         * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-                         */
-                        function baseIsEqual(value, other, bitmask, customizer, stack) {
-                            if (value === other) {
-                                return true;
-                            }
-                            if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
-                                return value !== value && other !== other;
-                            }
-                            return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
-                        }
-
-                        /**
-                         * A specialized version of `baseIsEqual` for arrays and objects which performs
-                         * deep comparisons and tracks traversed objects enabling objects with circular
-                         * references to be compared.
-                         *
-                         * @private
-                         * @param {Object} object The object to compare.
-                         * @param {Object} other The other object to compare.
-                         * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-                         * @param {Function} customizer The function to customize comparisons.
-                         * @param {Function} equalFunc The function to determine equivalents of values.
-                         * @param {Object} [stack] Tracks traversed `object` and `other` objects.
-                         * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-                         */
-                        function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
-                            var objIsArr = isArray(object),
-                                othIsArr = isArray(other),
-                                objTag = objIsArr ? arrayTag : getTag(object),
-                                othTag = othIsArr ? arrayTag : getTag(other);
-
-                            objTag = objTag == argsTag ? objectTag : objTag;
-                            othTag = othTag == argsTag ? objectTag : othTag;
-
-                            var objIsObj = objTag == objectTag,
-                                othIsObj = othTag == objectTag,
-                                isSameTag = objTag == othTag;
-
-                            if (isSameTag && isBuffer(object)) {
-                                if (!isBuffer(other)) {
-                                    return false;
-                                }
-                                objIsArr = true;
-                                objIsObj = false;
-                            }
-                            if (isSameTag && !objIsObj) {
-                                stack || (stack = new Stack);
-                                return (objIsArr || isTypedArray(object))
-                                    ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
-                                    : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
-                            }
-                            if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
-                                var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
-                                    othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
-                                if (objIsWrapped || othIsWrapped) {
-                                    var objUnwrapped = objIsWrapped ? object.value() : object,
-                                        othUnwrapped = othIsWrapped ? other.value() : other;
-
-                                    stack || (stack = new Stack);
-                                    return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
-                                }
-                            }
-                            if (!isSameTag) {
-                                return false;
-                            }
-                            stack || (stack = new Stack);
-                            return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
-                        }
-
-                        /**
-                         * The base implementation of `_.isMap` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a map, else `false`.
-                         */
-                        function baseIsMap(value) {
-                            return isObjectLike(value) && getTag(value) == mapTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isMatch` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Object} object The object to inspect.
-                         * @param {Object} source The object of property values to match.
-                         * @param {Array} matchData The property names, values, and compare flags to match.
-                         * @param {Function} [customizer] The function to customize comparisons.
-                         * @returns {boolean} Returns `true` if `object` is a match, else `false`.
-                         */
-                        function baseIsMatch(object, source, matchData, customizer) {
-                            var index = matchData.length,
-                                length = index,
-                                noCustomizer = !customizer;
-
-                            if (object == null) {
-                                return !length;
-                            }
-                            object = Object(object);
-                            while (index--) {
-                                var data = matchData[index];
-                                if ((noCustomizer && data[2])
-                                    ? data[1] !== object[data[0]]
-                                    : !(data[0] in object)
-                                ) {
-                                    return false;
-                                }
-                            }
-                            while (++index < length) {
-                                data = matchData[index];
-                                var key = data[0],
-                                    objValue = object[key],
-                                    srcValue = data[1];
-
-                                if (noCustomizer && data[2]) {
-                                    if (objValue === undefined && !(key in object)) {
-                                        return false;
-                                    }
-                                } else {
-                                    var stack = new Stack;
-                                    if (customizer) {
-                                        var result = customizer(objValue, srcValue, key, object, source, stack);
-                                    }
-                                    if (!(result === undefined
-                                            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
-                                            : result
-                                    )) {
-                                        return false;
-                                    }
-                                }
-                            }
-                            return true;
-                        }
-
-                        /**
-                         * The base implementation of `_.isNative` without bad shim checks.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a native function,
-                         *  else `false`.
-                         */
-                        function baseIsNative(value) {
-                            if (!isObject(value) || isMasked(value)) {
-                                return false;
-                            }
-                            var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
-                            return pattern.test(toSource(value));
-                        }
-
-                        /**
-                         * The base implementation of `_.isRegExp` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
-                         */
-                        function baseIsRegExp(value) {
-                            return isObjectLike(value) && baseGetTag(value) == regexpTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isSet` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a set, else `false`.
-                         */
-                        function baseIsSet(value) {
-                            return isObjectLike(value) && getTag(value) == setTag;
-                        }
-
-                        /**
-                         * The base implementation of `_.isTypedArray` without Node.js optimizations.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
-                         */
-                        function baseIsTypedArray(value) {
-                            return isObjectLike(value) &&
-                                isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
-                        }
-
-                        /**
-                         * The base implementation of `_.iteratee`.
-                         *
-                         * @private
-                         * @param {*} [value=_.identity] The value to convert to an iteratee.
-                         * @returns {Function} Returns the iteratee.
-                         */
-                        function baseIteratee(value) {
-                            // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
-                            // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
-                            if (typeof value == 'function') {
-                                return value;
-                            }
-                            if (value == null) {
-                                return identity;
-                            }
-                            if (typeof value == 'object') {
-                                return isArray(value)
-                                    ? baseMatchesProperty(value[0], value[1])
-                                    : baseMatches(value);
-                            }
-                            return property(value);
-                        }
-
-                        /**
-                         * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names.
-                         */
-                        function baseKeys(object) {
-                            if (!isPrototype(object)) {
-                                return nativeKeys(object);
-                            }
-                            var result = [];
-                            for (var key in Object(object)) {
-                                if (hasOwnProperty.call(object, key) && key != 'constructor') {
-                                    result.push(key);
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names.
-                         */
-                        function baseKeysIn(object) {
-                            if (!isObject(object)) {
-                                return nativeKeysIn(object);
-                            }
-                            var isProto = isPrototype(object),
-                                result = [];
-
-                            for (var key in object) {
-                                if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
-                                    result.push(key);
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.lt` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is less than `other`,
-                         *  else `false`.
-                         */
-                        function baseLt(value, other) {
-                            return value < other;
-                        }
-
-                        /**
-                         * The base implementation of `_.map` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} iteratee The function invoked per iteration.
-                         * @returns {Array} Returns the new mapped array.
-                         */
-                        function baseMap(collection, iteratee) {
-                            var index = -1,
-                                result = isArrayLike(collection) ? Array(collection.length) : [];
-
-                            baseEach(collection, function(value, key, collection) {
-                                result[++index] = iteratee(value, key, collection);
-                            });
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.matches` which doesn't clone `source`.
-                         *
-                         * @private
-                         * @param {Object} source The object of property values to match.
-                         * @returns {Function} Returns the new spec function.
-                         */
-                        function baseMatches(source) {
-                            var matchData = getMatchData(source);
-                            if (matchData.length == 1 && matchData[0][2]) {
-                                return matchesStrictComparable(matchData[0][0], matchData[0][1]);
-                            }
-                            return function(object) {
-                                return object === source || baseIsMatch(object, source, matchData);
-                            };
-                        }
-
-                        /**
-                         * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
-                         *
-                         * @private
-                         * @param {string} path The path of the property to get.
-                         * @param {*} srcValue The value to match.
-                         * @returns {Function} Returns the new spec function.
-                         */
-                        function baseMatchesProperty(path, srcValue) {
-                            if (isKey(path) && isStrictComparable(srcValue)) {
-                                return matchesStrictComparable(toKey(path), srcValue);
-                            }
-                            return function(object) {
-                                var objValue = get(object, path);
-                                return (objValue === undefined && objValue === srcValue)
-                                    ? hasIn(object, path)
-                                    : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
-                            };
-                        }
-
-                        /**
-                         * The base implementation of `_.merge` without support for multiple sources.
-                         *
-                         * @private
-                         * @param {Object} object The destination object.
-                         * @param {Object} source The source object.
-                         * @param {number} srcIndex The index of `source`.
-                         * @param {Function} [customizer] The function to customize merged values.
-                         * @param {Object} [stack] Tracks traversed source values and their merged
-                         *  counterparts.
-                         */
-                        function baseMerge(object, source, srcIndex, customizer, stack) {
-                            if (object === source) {
-                                return;
-                            }
-                            baseFor(source, function(srcValue, key) {
-                                stack || (stack = new Stack);
-                                if (isObject(srcValue)) {
-                                    baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
-                                }
-                                else {
-                                    var newValue = customizer
-                                        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
-                                        : undefined;
-
-                                    if (newValue === undefined) {
-                                        newValue = srcValue;
-                                    }
-                                    assignMergeValue(object, key, newValue);
-                                }
-                            }, keysIn);
-                        }
-
-                        /**
-                         * A specialized version of `baseMerge` for arrays and objects which performs
-                         * deep merges and tracks traversed objects enabling objects with circular
-                         * references to be merged.
-                         *
-                         * @private
-                         * @param {Object} object The destination object.
-                         * @param {Object} source The source object.
-                         * @param {string} key The key of the value to merge.
-                         * @param {number} srcIndex The index of `source`.
-                         * @param {Function} mergeFunc The function to merge values.
-                         * @param {Function} [customizer] The function to customize assigned values.
-                         * @param {Object} [stack] Tracks traversed source values and their merged
-                         *  counterparts.
-                         */
-                        function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
-                            var objValue = safeGet(object, key),
-                                srcValue = safeGet(source, key),
-                                stacked = stack.get(srcValue);
-
-                            if (stacked) {
-                                assignMergeValue(object, key, stacked);
-                                return;
-                            }
-                            var newValue = customizer
-                                ? customizer(objValue, srcValue, (key + ''), object, source, stack)
-                                : undefined;
-
-                            var isCommon = newValue === undefined;
-
-                            if (isCommon) {
-                                var isArr = isArray(srcValue),
-                                    isBuff = !isArr && isBuffer(srcValue),
-                                    isTyped = !isArr && !isBuff && isTypedArray(srcValue);
-
-                                newValue = srcValue;
-                                if (isArr || isBuff || isTyped) {
-                                    if (isArray(objValue)) {
-                                        newValue = objValue;
-                                    }
-                                    else if (isArrayLikeObject(objValue)) {
-                                        newValue = copyArray(objValue);
-                                    }
-                                    else if (isBuff) {
-                                        isCommon = false;
-                                        newValue = cloneBuffer(srcValue, true);
-                                    }
-                                    else if (isTyped) {
-                                        isCommon = false;
-                                        newValue = cloneTypedArray(srcValue, true);
-                                    }
-                                    else {
-                                        newValue = [];
-                                    }
-                                }
-                                else if (isPlainObject(srcValue) || isArguments(srcValue)) {
-                                    newValue = objValue;
-                                    if (isArguments(objValue)) {
-                                        newValue = toPlainObject(objValue);
-                                    }
-                                    else if (!isObject(objValue) || isFunction(objValue)) {
-                                        newValue = initCloneObject(srcValue);
-                                    }
-                                }
-                                else {
-                                    isCommon = false;
-                                }
-                            }
-                            if (isCommon) {
-                                // Recursively merge objects and arrays (susceptible to call stack limits).
-                                stack.set(srcValue, newValue);
-                                mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
-                                stack['delete'](srcValue);
-                            }
-                            assignMergeValue(object, key, newValue);
-                        }
-
-                        /**
-                         * The base implementation of `_.nth` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {Array} array The array to query.
-                         * @param {number} n The index of the element to return.
-                         * @returns {*} Returns the nth element of `array`.
-                         */
-                        function baseNth(array, n) {
-                            var length = array.length;
-                            if (!length) {
-                                return;
-                            }
-                            n += n < 0 ? length : 0;
-                            return isIndex(n, length) ? array[n] : undefined;
-                        }
-
-                        /**
-                         * The base implementation of `_.orderBy` without param guards.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
-                         * @param {string[]} orders The sort orders of `iteratees`.
-                         * @returns {Array} Returns the new sorted array.
-                         */
-                        function baseOrderBy(collection, iteratees, orders) {
-                            if (iteratees.length) {
-                                iteratees = arrayMap(iteratees, function(iteratee) {
-                                    if (isArray(iteratee)) {
-                                        return function(value) {
-                                            return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
-                                        }
-                                    }
-                                    return iteratee;
-                                });
-                            } else {
-                                iteratees = [identity];
-                            }
-
-                            var index = -1;
-                            iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
-
-                            var result = baseMap(collection, function(value, key, collection) {
-                                var criteria = arrayMap(iteratees, function(iteratee) {
-                                    return iteratee(value);
-                                });
-                                return { 'criteria': criteria, 'index': ++index, 'value': value };
-                            });
-
-                            return baseSortBy(result, function(object, other) {
-                                return compareMultiple(object, other, orders);
-                            });
-                        }
-
-                        /**
-                         * The base implementation of `_.pick` without support for individual
-                         * property identifiers.
-                         *
-                         * @private
-                         * @param {Object} object The source object.
-                         * @param {string[]} paths The property paths to pick.
-                         * @returns {Object} Returns the new object.
-                         */
-                        function basePick(object, paths) {
-                            return basePickBy(object, paths, function(value, path) {
-                                return hasIn(object, path);
-                            });
-                        }
-
-                        /**
-                         * The base implementation of  `_.pickBy` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Object} object The source object.
-                         * @param {string[]} paths The property paths to pick.
-                         * @param {Function} predicate The function invoked per property.
-                         * @returns {Object} Returns the new object.
-                         */
-                        function basePickBy(object, paths, predicate) {
-                            var index = -1,
-                                length = paths.length,
-                                result = {};
-
-                            while (++index < length) {
-                                var path = paths[index],
-                                    value = baseGet(object, path);
-
-                                if (predicate(value, path)) {
-                                    baseSet(result, castPath(path, object), value);
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * A specialized version of `baseProperty` which supports deep paths.
-                         *
-                         * @private
-                         * @param {Array|string} path The path of the property to get.
-                         * @returns {Function} Returns the new accessor function.
-                         */
-                        function basePropertyDeep(path) {
-                            return function(object) {
-                                return baseGet(object, path);
-                            };
-                        }
-
-                        /**
-                         * The base implementation of `_.pullAllBy` without support for iteratee
-                         * shorthands.
-                         *
-                         * @private
-                         * @param {Array} array The array to modify.
-                         * @param {Array} values The values to remove.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function basePullAll(array, values, iteratee, comparator) {
-                            var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
-                                index = -1,
-                                length = values.length,
-                                seen = array;
-
-                            if (array === values) {
-                                values = copyArray(values);
-                            }
-                            if (iteratee) {
-                                seen = arrayMap(array, baseUnary(iteratee));
-                            }
-                            while (++index < length) {
-                                var fromIndex = 0,
-                                    value = values[index],
-                                    computed = iteratee ? iteratee(value) : value;
-
-                                while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
-                                    if (seen !== array) {
-                                        splice.call(seen, fromIndex, 1);
-                                    }
-                                    splice.call(array, fromIndex, 1);
-                                }
-                            }
-                            return array;
-                        }
-
-                        /**
-                         * The base implementation of `_.pullAt` without support for individual
-                         * indexes or capturing the removed elements.
-                         *
-                         * @private
-                         * @param {Array} array The array to modify.
-                         * @param {number[]} indexes The indexes of elements to remove.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function basePullAt(array, indexes) {
-                            var length = array ? indexes.length : 0,
-                                lastIndex = length - 1;
-
-                            while (length--) {
-                                var index = indexes[length];
-                                if (length == lastIndex || index !== previous) {
-                                    var previous = index;
-                                    if (isIndex(index)) {
-                                        splice.call(array, index, 1);
-                                    } else {
-                                        baseUnset(array, index);
-                                    }
-                                }
-                            }
-                            return array;
-                        }
-
-                        /**
-                         * The base implementation of `_.random` without support for returning
-                         * floating-point numbers.
-                         *
-                         * @private
-                         * @param {number} lower The lower bound.
-                         * @param {number} upper The upper bound.
-                         * @returns {number} Returns the random number.
-                         */
-                        function baseRandom(lower, upper) {
-                            return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
-                        }
-
-                        /**
-                         * The base implementation of `_.range` and `_.rangeRight` which doesn't
-                         * coerce arguments.
-                         *
-                         * @private
-                         * @param {number} start The start of the range.
-                         * @param {number} end The end of the range.
-                         * @param {number} step The value to increment or decrement by.
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Array} Returns the range of numbers.
-                         */
-                        function baseRange(start, end, step, fromRight) {
-                            var index = -1,
-                                length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
-                                result = Array(length);
-
-                            while (length--) {
-                                result[fromRight ? length : ++index] = start;
-                                start += step;
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.repeat` which doesn't coerce arguments.
-                         *
-                         * @private
-                         * @param {string} string The string to repeat.
-                         * @param {number} n The number of times to repeat the string.
-                         * @returns {string} Returns the repeated string.
-                         */
-                        function baseRepeat(string, n) {
-                            var result = '';
-                            if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
-                                return result;
-                            }
-                            // Leverage the exponentiation by squaring algorithm for a faster repeat.
-                            // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
-                            do {
-                                if (n % 2) {
-                                    result += string;
-                                }
-                                n = nativeFloor(n / 2);
-                                if (n) {
-                                    string += string;
-                                }
-                            } while (n);
-
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.rest` which doesn't validate or coerce arguments.
-                         *
-                         * @private
-                         * @param {Function} func The function to apply a rest parameter to.
-                         * @param {number} [start=func.length-1] The start position of the rest parameter.
-                         * @returns {Function} Returns the new function.
-                         */
-                        function baseRest(func, start) {
-                            return setToString(overRest(func, start, identity), func + '');
-                        }
-
-                        /**
-                         * The base implementation of `_.sample`.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to sample.
-                         * @returns {*} Returns the random element.
-                         */
-                        function baseSample(collection) {
-                            return arraySample(values(collection));
-                        }
-
-                        /**
-                         * The base implementation of `_.sampleSize` without param guards.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to sample.
-                         * @param {number} n The number of elements to sample.
-                         * @returns {Array} Returns the random elements.
-                         */
-                        function baseSampleSize(collection, n) {
-                            var array = values(collection);
-                            return shuffleSelf(array, baseClamp(n, 0, array.length));
-                        }
-
-                        /**
-                         * The base implementation of `_.set`.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to set.
-                         * @param {*} value The value to set.
-                         * @param {Function} [customizer] The function to customize path creation.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseSet(object, path, value, customizer) {
-                            if (!isObject(object)) {
-                                return object;
-                            }
-                            path = castPath(path, object);
-
-                            var index = -1,
-                                length = path.length,
-                                lastIndex = length - 1,
-                                nested = object;
-
-                            while (nested != null && ++index < length) {
-                                var key = toKey(path[index]),
-                                    newValue = value;
-
-                                if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
-                                    return object;
-                                }
-
-                                if (index != lastIndex) {
-                                    var objValue = nested[key];
-                                    newValue = customizer ? customizer(objValue, key, nested) : undefined;
-                                    if (newValue === undefined) {
-                                        newValue = isObject(objValue)
-                                            ? objValue
-                                            : (isIndex(path[index + 1]) ? [] : {});
-                                    }
-                                }
-                                assignValue(nested, key, newValue);
-                                nested = nested[key];
-                            }
-                            return object;
-                        }
-
-                        /**
-                         * The base implementation of `setData` without support for hot loop shorting.
-                         *
-                         * @private
-                         * @param {Function} func The function to associate metadata with.
-                         * @param {*} data The metadata.
-                         * @returns {Function} Returns `func`.
-                         */
-                        var baseSetData = !metaMap ? identity : function(func, data) {
-                            metaMap.set(func, data);
-                            return func;
-                        };
-
-                        /**
-                         * The base implementation of `setToString` without support for hot loop shorting.
-                         *
-                         * @private
-                         * @param {Function} func The function to modify.
-                         * @param {Function} string The `toString` result.
-                         * @returns {Function} Returns `func`.
-                         */
-                        var baseSetToString = !defineProperty ? identity : function(func, string) {
-                            return defineProperty(func, 'toString', {
-                                'configurable': true,
-                                'enumerable': false,
-                                'value': constant(string),
-                                'writable': true
-                            });
-                        };
-
-                        /**
-                         * The base implementation of `_.shuffle`.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to shuffle.
-                         * @returns {Array} Returns the new shuffled array.
-                         */
-                        function baseShuffle(collection) {
-                            return shuffleSelf(values(collection));
-                        }
-
-                        /**
-                         * The base implementation of `_.slice` without an iteratee call guard.
-                         *
-                         * @private
-                         * @param {Array} array The array to slice.
-                         * @param {number} [start=0] The start position.
-                         * @param {number} [end=array.length] The end position.
-                         * @returns {Array} Returns the slice of `array`.
-                         */
-                        function baseSlice(array, start, end) {
-                            var index = -1,
-                                length = array.length;
-
-                            if (start < 0) {
-                                start = -start > length ? 0 : (length + start);
-                            }
-                            end = end > length ? length : end;
-                            if (end < 0) {
-                                end += length;
-                            }
-                            length = start > end ? 0 : ((end - start) >>> 0);
-                            start >>>= 0;
-
-                            var result = Array(length);
-                            while (++index < length) {
-                                result[index] = array[index + start];
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.some` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} predicate The function invoked per iteration.
-                         * @returns {boolean} Returns `true` if any element passes the predicate check,
-                         *  else `false`.
-                         */
-                        function baseSome(collection, predicate) {
-                            var result;
-
-                            baseEach(collection, function(value, index, collection) {
-                                result = predicate(value, index, collection);
-                                return !result;
-                            });
-                            return !!result;
-                        }
-
-                        /**
-                         * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
-                         * performs a binary search of `array` to determine the index at which `value`
-                         * should be inserted into `array` in order to maintain its sort order.
-                         *
-                         * @private
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @param {boolean} [retHighest] Specify returning the highest qualified index.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         */
-                        function baseSortedIndex(array, value, retHighest) {
-                            var low = 0,
-                                high = array == null ? low : array.length;
-
-                            if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
-                                while (low < high) {
-                                    var mid = (low + high) >>> 1,
-                                        computed = array[mid];
-
-                                    if (computed !== null && !isSymbol(computed) &&
-                                        (retHighest ? (computed <= value) : (computed < value))) {
-                                        low = mid + 1;
-                                    } else {
-                                        high = mid;
-                                    }
-                                }
-                                return high;
-                            }
-                            return baseSortedIndexBy(array, value, identity, retHighest);
-                        }
-
-                        /**
-                         * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
-                         * which invokes `iteratee` for `value` and each element of `array` to compute
-                         * their sort ranking. The iteratee is invoked with one argument; (value).
-                         *
-                         * @private
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @param {Function} iteratee The iteratee invoked per element.
-                         * @param {boolean} [retHighest] Specify returning the highest qualified index.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         */
-                        function baseSortedIndexBy(array, value, iteratee, retHighest) {
-                            var low = 0,
-                                high = array == null ? 0 : array.length;
-                            if (high === 0) {
-                                return 0;
-                            }
-
-                            value = iteratee(value);
-                            var valIsNaN = value !== value,
-                                valIsNull = value === null,
-                                valIsSymbol = isSymbol(value),
-                                valIsUndefined = value === undefined;
-
-                            while (low < high) {
-                                var mid = nativeFloor((low + high) / 2),
-                                    computed = iteratee(array[mid]),
-                                    othIsDefined = computed !== undefined,
-                                    othIsNull = computed === null,
-                                    othIsReflexive = computed === computed,
-                                    othIsSymbol = isSymbol(computed);
-
-                                if (valIsNaN) {
-                                    var setLow = retHighest || othIsReflexive;
-                                } else if (valIsUndefined) {
-                                    setLow = othIsReflexive && (retHighest || othIsDefined);
-                                } else if (valIsNull) {
-                                    setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
-                                } else if (valIsSymbol) {
-                                    setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
-                                } else if (othIsNull || othIsSymbol) {
-                                    setLow = false;
-                                } else {
-                                    setLow = retHighest ? (computed <= value) : (computed < value);
-                                }
-                                if (setLow) {
-                                    low = mid + 1;
-                                } else {
-                                    high = mid;
-                                }
-                            }
-                            return nativeMin(high, MAX_ARRAY_INDEX);
-                        }
-
-                        /**
-                         * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
-                         * support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @returns {Array} Returns the new duplicate free array.
-                         */
-                        function baseSortedUniq(array, iteratee) {
-                            var index = -1,
-                                length = array.length,
-                                resIndex = 0,
-                                result = [];
-
-                            while (++index < length) {
-                                var value = array[index],
-                                    computed = iteratee ? iteratee(value) : value;
-
-                                if (!index || !eq(computed, seen)) {
-                                    var seen = computed;
-                                    result[resIndex++] = value === 0 ? 0 : value;
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.toNumber` which doesn't ensure correct
-                         * conversions of binary, hexadecimal, or octal string values.
-                         *
-                         * @private
-                         * @param {*} value The value to process.
-                         * @returns {number} Returns the number.
-                         */
-                        function baseToNumber(value) {
-                            if (typeof value == 'number') {
-                                return value;
-                            }
-                            if (isSymbol(value)) {
-                                return NAN;
-                            }
-                            return +value;
-                        }
-
-                        /**
-                         * The base implementation of `_.toString` which doesn't convert nullish
-                         * values to empty strings.
-                         *
-                         * @private
-                         * @param {*} value The value to process.
-                         * @returns {string} Returns the string.
-                         */
-                        function baseToString(value) {
-                            // Exit early for strings to avoid a performance hit in some environments.
-                            if (typeof value == 'string') {
-                                return value;
-                            }
-                            if (isArray(value)) {
-                                // Recursively convert values (susceptible to call stack limits).
-                                return arrayMap(value, baseToString) + '';
-                            }
-                            if (isSymbol(value)) {
-                                return symbolToString ? symbolToString.call(value) : '';
-                            }
-                            var result = (value + '');
-                            return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-                        }
-
-                        /**
-                         * The base implementation of `_.uniqBy` without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new duplicate free array.
-                         */
-                        function baseUniq(array, iteratee, comparator) {
-                            var index = -1,
-                                includes = arrayIncludes,
-                                length = array.length,
-                                isCommon = true,
-                                result = [],
-                                seen = result;
-
-                            if (comparator) {
-                                isCommon = false;
-                                includes = arrayIncludesWith;
-                            }
-                            else if (length >= LARGE_ARRAY_SIZE) {
-                                var set = iteratee ? null : createSet(array);
-                                if (set) {
-                                    return setToArray(set);
-                                }
-                                isCommon = false;
-                                includes = cacheHas;
-                                seen = new SetCache;
-                            }
-                            else {
-                                seen = iteratee ? [] : result;
-                            }
-                            outer:
-                                while (++index < length) {
-                                    var value = array[index],
-                                        computed = iteratee ? iteratee(value) : value;
-
-                                    value = (comparator || value !== 0) ? value : 0;
-                                    if (isCommon && computed === computed) {
-                                        var seenIndex = seen.length;
-                                        while (seenIndex--) {
-                                            if (seen[seenIndex] === computed) {
-                                                continue outer;
-                                            }
-                                        }
-                                        if (iteratee) {
-                                            seen.push(computed);
-                                        }
-                                        result.push(value);
-                                    }
-                                    else if (!includes(seen, computed, comparator)) {
-                                        if (seen !== result) {
-                                            seen.push(computed);
-                                        }
-                                        result.push(value);
-                                    }
-                                }
-                            return result;
-                        }
-
-                        /**
-                         * The base implementation of `_.unset`.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The property path to unset.
-                         * @returns {boolean} Returns `true` if the property is deleted, else `false`.
-                         */
-                        function baseUnset(object, path) {
-                            path = castPath(path, object);
-                            object = parent(object, path);
-                            return object == null || delete object[toKey(last(path))];
-                        }
-
-                        /**
-                         * The base implementation of `_.update`.
-                         *
-                         * @private
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to update.
-                         * @param {Function} updater The function to produce the updated value.
-                         * @param {Function} [customizer] The function to customize path creation.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function baseUpdate(object, path, updater, customizer) {
-                            return baseSet(object, path, updater(baseGet(object, path)), customizer);
-                        }
-
-                        /**
-                         * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
-                         * without support for iteratee shorthands.
-                         *
-                         * @private
-                         * @param {Array} array The array to query.
-                         * @param {Function} predicate The function invoked per iteration.
-                         * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Array} Returns the slice of `array`.
-                         */
-                        function baseWhile(array, predicate, isDrop, fromRight) {
-                            var length = array.length,
-                                index = fromRight ? length : -1;
-
-                            while ((fromRight ? index-- : ++index < length) &&
-                            predicate(array[index], index, array)) {}
-
-                            return isDrop
-                                ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
-                                : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
-                        }
-
-                        /**
-                         * The base implementation of `wrapperValue` which returns the result of
-                         * performing a sequence of actions on the unwrapped `value`, where each
-                         * successive action is supplied the return value of the previous.
-                         *
-                         * @private
-                         * @param {*} value The unwrapped value.
-                         * @param {Array} actions Actions to perform to resolve the unwrapped value.
-                         * @returns {*} Returns the resolved value.
-                         */
-                        function baseWrapperValue(value, actions) {
-                            var result = value;
-                            if (result instanceof LazyWrapper) {
-                                result = result.value();
-                            }
-                            return arrayReduce(actions, function(result, action) {
-                                return action.func.apply(action.thisArg, arrayPush([result], action.args));
-                            }, result);
-                        }
-
-                        /**
-                         * The base implementation of methods like `_.xor`, without support for
-                         * iteratee shorthands, that accepts an array of arrays to inspect.
-                         *
-                         * @private
-                         * @param {Array} arrays The arrays to inspect.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of values.
-                         */
-                        function baseXor(arrays, iteratee, comparator) {
-                            var length = arrays.length;
-                            if (length < 2) {
-                                return length ? baseUniq(arrays[0]) : [];
-                            }
-                            var index = -1,
-                                result = Array(length);
-
-                            while (++index < length) {
-                                var array = arrays[index],
-                                    othIndex = -1;
-
-                                while (++othIndex < length) {
-                                    if (othIndex != index) {
-                                        result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
-                                    }
-                                }
-                            }
-                            return baseUniq(baseFlatten(result, 1), iteratee, comparator);
-                        }
-
-                        /**
-                         * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
-                         *
-                         * @private
-                         * @param {Array} props The property identifiers.
-                         * @param {Array} values The property values.
-                         * @param {Function} assignFunc The function to assign values.
-                         * @returns {Object} Returns the new object.
-                         */
-                        function baseZipObject(props, values, assignFunc) {
-                            var index = -1,
-                                length = props.length,
-                                valsLength = values.length,
-                                result = {};
-
-                            while (++index < length) {
-                                var value = index < valsLength ? values[index] : undefined;
-                                assignFunc(result, props[index], value);
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * Casts `value` to an empty array if it's not an array like object.
-                         *
-                         * @private
-                         * @param {*} value The value to inspect.
-                         * @returns {Array|Object} Returns the cast array-like object.
-                         */
-                        function castArrayLikeObject(value) {
-                            return isArrayLikeObject(value) ? value : [];
-                        }
-
-                        /**
-                         * Casts `value` to `identity` if it's not a function.
-                         *
-                         * @private
-                         * @param {*} value The value to inspect.
-                         * @returns {Function} Returns cast function.
-                         */
-                        function castFunction(value) {
-                            return typeof value == 'function' ? value : identity;
-                        }
-
-                        /**
-                         * Casts `value` to a path array if it's not one.
-                         *
-                         * @private
-                         * @param {*} value The value to inspect.
-                         * @param {Object} [object] The object to query keys on.
-                         * @returns {Array} Returns the cast property path array.
-                         */
-                        function castPath(value, object) {
-                            if (isArray(value)) {
-                                return value;
-                            }
-                            return isKey(value, object) ? [value] : stringToPath(toString(value));
-                        }
-
-                        /**
-                         * A `baseRest` alias which can be replaced with `identity` by module
-                         * replacement plugins.
-                         *
-                         * @private
-                         * @type {Function}
-                         * @param {Function} func The function to apply a rest parameter to.
-                         * @returns {Function} Returns the new function.
-                         */
-                        var castRest = baseRest;
-
-                        /**
-                         * Casts `array` to a slice if it's needed.
-                         *
-                         * @private
-                         * @param {Array} array The array to inspect.
-                         * @param {number} start The start position.
-                         * @param {number} [end=array.length] The end position.
-                         * @returns {Array} Returns the cast slice.
-                         */
-                        function castSlice(array, start, end) {
-                            var length = array.length;
-                            end = end === undefined ? length : end;
-                            return (!start && end >= length) ? array : baseSlice(array, start, end);
-                        }
-
-                        /**
-                         * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
-                         *
-                         * @private
-                         * @param {number|Object} id The timer id or timeout object of the timer to clear.
-                         */
-                        var clearTimeout = ctxClearTimeout || function(id) {
-                            return root.clearTimeout(id);
-                        };
-
-                        /**
-                         * Creates a clone of  `buffer`.
-                         *
-                         * @private
-                         * @param {Buffer} buffer The buffer to clone.
-                         * @param {boolean} [isDeep] Specify a deep clone.
-                         * @returns {Buffer} Returns the cloned buffer.
-                         */
-                        function cloneBuffer(buffer, isDeep) {
-                            if (isDeep) {
-                                return buffer.slice();
-                            }
-                            var length = buffer.length,
-                                result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
-
-                            buffer.copy(result);
-                            return result;
-                        }
-
-                        /**
-                         * Creates a clone of `arrayBuffer`.
-                         *
-                         * @private
-                         * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
-                         * @returns {ArrayBuffer} Returns the cloned array buffer.
-                         */
-                        function cloneArrayBuffer(arrayBuffer) {
-                            var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
-                            new Uint8Array(result).set(new Uint8Array(arrayBuffer));
-                            return result;
-                        }
-
-                        /**
-                         * Creates a clone of `dataView`.
-                         *
-                         * @private
-                         * @param {Object} dataView The data view to clone.
-                         * @param {boolean} [isDeep] Specify a deep clone.
-                         * @returns {Object} Returns the cloned data view.
-                         */
-                        function cloneDataView(dataView, isDeep) {
-                            var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
-                            return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
-                        }
-
-                        /**
-                         * Creates a clone of `regexp`.
-                         *
-                         * @private
-                         * @param {Object} regexp The regexp to clone.
-                         * @returns {Object} Returns the cloned regexp.
-                         */
-                        function cloneRegExp(regexp) {
-                            var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
-                            result.lastIndex = regexp.lastIndex;
-                            return result;
-                        }
-
-                        /**
-                         * Creates a clone of the `symbol` object.
-                         *
-                         * @private
-                         * @param {Object} symbol The symbol object to clone.
-                         * @returns {Object} Returns the cloned symbol object.
-                         */
-                        function cloneSymbol(symbol) {
-                            return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
-                        }
-
-                        /**
-                         * Creates a clone of `typedArray`.
-                         *
-                         * @private
-                         * @param {Object} typedArray The typed array to clone.
-                         * @param {boolean} [isDeep] Specify a deep clone.
-                         * @returns {Object} Returns the cloned typed array.
-                         */
-                        function cloneTypedArray(typedArray, isDeep) {
-                            var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
-                            return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
-                        }
-
-                        /**
-                         * Compares values to sort them in ascending order.
-                         *
-                         * @private
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {number} Returns the sort order indicator for `value`.
-                         */
-                        function compareAscending(value, other) {
-                            if (value !== other) {
-                                var valIsDefined = value !== undefined,
-                                    valIsNull = value === null,
-                                    valIsReflexive = value === value,
-                                    valIsSymbol = isSymbol(value);
-
-                                var othIsDefined = other !== undefined,
-                                    othIsNull = other === null,
-                                    othIsReflexive = other === other,
-                                    othIsSymbol = isSymbol(other);
-
-                                if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
-                                    (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
-                                    (valIsNull && othIsDefined && othIsReflexive) ||
-                                    (!valIsDefined && othIsReflexive) ||
-                                    !valIsReflexive) {
-                                    return 1;
-                                }
-                                if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
-                                    (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
-                                    (othIsNull && valIsDefined && valIsReflexive) ||
-                                    (!othIsDefined && valIsReflexive) ||
-                                    !othIsReflexive) {
-                                    return -1;
-                                }
-                            }
-                            return 0;
-                        }
-
-                        /**
-                         * Used by `_.orderBy` to compare multiple properties of a value to another
-                         * and stable sort them.
-                         *
-                         * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
-                         * specify an order of "desc" for descending or "asc" for ascending sort order
-                         * of corresponding values.
-                         *
-                         * @private
-                         * @param {Object} object The object to compare.
-                         * @param {Object} other The other object to compare.
-                         * @param {boolean[]|string[]} orders The order to sort by for each property.
-                         * @returns {number} Returns the sort order indicator for `object`.
-                         */
-                        function compareMultiple(object, other, orders) {
-                            var index = -1,
-                                objCriteria = object.criteria,
-                                othCriteria = other.criteria,
-                                length = objCriteria.length,
-                                ordersLength = orders.length;
-
-                            while (++index < length) {
-                                var result = compareAscending(objCriteria[index], othCriteria[index]);
-                                if (result) {
-                                    if (index >= ordersLength) {
-                                        return result;
-                                    }
-                                    var order = orders[index];
-                                    return result * (order == 'desc' ? -1 : 1);
-                                }
-                            }
-                            // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
-                            // that causes it, under certain circumstances, to provide the same value for
-                            // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
-                            // for more details.
-                            //
-                            // This also ensures a stable sort in V8 and other engines.
-                            // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
-                            return object.index - other.index;
-                        }
-
-                        /**
-                         * Creates an array that is the composition of partially applied arguments,
-                         * placeholders, and provided arguments into a single array of arguments.
-                         *
-                         * @private
-                         * @param {Array} args The provided arguments.
-                         * @param {Array} partials The arguments to prepend to those provided.
-                         * @param {Array} holders The `partials` placeholder indexes.
-                         * @params {boolean} [isCurried] Specify composing for a curried function.
-                         * @returns {Array} Returns the new array of composed arguments.
-                         */
-                        function composeArgs(args, partials, holders, isCurried) {
-                            var argsIndex = -1,
-                                argsLength = args.length,
-                                holdersLength = holders.length,
-                                leftIndex = -1,
-                                leftLength = partials.length,
-                                rangeLength = nativeMax(argsLength - holdersLength, 0),
-                                result = Array(leftLength + rangeLength),
-                                isUncurried = !isCurried;
-
-                            while (++leftIndex < leftLength) {
-                                result[leftIndex] = partials[leftIndex];
-                            }
-                            while (++argsIndex < holdersLength) {
-                                if (isUncurried || argsIndex < argsLength) {
-                                    result[holders[argsIndex]] = args[argsIndex];
-                                }
-                            }
-                            while (rangeLength--) {
-                                result[leftIndex++] = args[argsIndex++];
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * This function is like `composeArgs` except that the arguments composition
-                         * is tailored for `_.partialRight`.
-                         *
-                         * @private
-                         * @param {Array} args The provided arguments.
-                         * @param {Array} partials The arguments to append to those provided.
-                         * @param {Array} holders The `partials` placeholder indexes.
-                         * @params {boolean} [isCurried] Specify composing for a curried function.
-                         * @returns {Array} Returns the new array of composed arguments.
-                         */
-                        function composeArgsRight(args, partials, holders, isCurried) {
-                            var argsIndex = -1,
-                                argsLength = args.length,
-                                holdersIndex = -1,
-                                holdersLength = holders.length,
-                                rightIndex = -1,
-                                rightLength = partials.length,
-                                rangeLength = nativeMax(argsLength - holdersLength, 0),
-                                result = Array(rangeLength + rightLength),
-                                isUncurried = !isCurried;
-
-                            while (++argsIndex < rangeLength) {
-                                result[argsIndex] = args[argsIndex];
-                            }
-                            var offset = argsIndex;
-                            while (++rightIndex < rightLength) {
-                                result[offset + rightIndex] = partials[rightIndex];
-                            }
-                            while (++holdersIndex < holdersLength) {
-                                if (isUncurried || argsIndex < argsLength) {
-                                    result[offset + holders[holdersIndex]] = args[argsIndex++];
-                                }
-                            }
-                            return result;
-                        }
-
-                        /**
-                         * Copies the values of `source` to `array`.
-                         *
-                         * @private
-                         * @param {Array} source The array to copy values from.
-                         * @param {Array} [array=[]] The array to copy values to.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function copyArray(source, array) {
-                            var index = -1,
-                                length = source.length;
-
-                            array || (array = Array(length));
-                            while (++index < length) {
-                                array[index] = source[index];
-                            }
-                            return array;
-                        }
-
-                        /**
-                         * Copies properties of `source` to `object`.
-                         *
-                         * @private
-                         * @param {Object} source The object to copy properties from.
-                         * @param {Array} props The property identifiers to copy.
-                         * @param {Object} [object={}] The object to copy properties to.
-                         * @param {Function} [customizer] The function to customize copied values.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function copyObject(source, props, object, customizer) {
-                            var isNew = !object;
-                            object || (object = {});
-
-                            var index = -1,
-                                length = props.length;
-
-                            while (++index < length) {
-                                var key = props[index];
-
-                                var newValue = customizer
-                                    ? customizer(object[key], source[key], key, object, source)
-                                    : undefined;
-
-                                if (newValue === undefined) {
-                                    newValue = source[key];
-                                }
-                                if (isNew) {
-                                    baseAssignValue(object, key, newValue);
-                                } else {
-                                    assignValue(object, key, newValue);
-                                }
-                            }
-                            return object;
-                        }
-
-                        /**
-                         * Copies own symbols of `source` to `object`.
-                         *
-                         * @private
-                         * @param {Object} source The object to copy symbols from.
-                         * @param {Object} [object={}] The object to copy symbols to.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function copySymbols(source, object) {
-                            return copyObject(source, getSymbols(source), object);
-                        }
-
-                        /**
-                         * Copies own and inherited symbols of `source` to `object`.
-                         *
-                         * @private
-                         * @param {Object} source The object to copy symbols from.
-                         * @param {Object} [object={}] The object to copy symbols to.
-                         * @returns {Object} Returns `object`.
-                         */
-                        function copySymbolsIn(source, object) {
-                            return copyObject(source, getSymbolsIn(source), object);
-                        }
-
-                        /**
-                         * Creates a function like `_.groupBy`.
-                         *
-                         * @private
-                         * @param {Function} setter The function to set accumulator values.
-                         * @param {Function} [initializer] The accumulator object initializer.
-                         * @returns {Function} Returns the new aggregator function.
-                         */
-                        function createAggregator(setter, initializer) {
-                            return function(collection, iteratee) {
-                                var func = isArray(collection) ? arrayAggregator : baseAggregator,
-                                    accumulator = initializer ? initializer() : {};
-
-                                return func(collection, setter, getIteratee(iteratee, 2), accumulator);
-                            };
-                        }
-
-                        /**
-                         * Creates a function like `_.assign`.
-                         *
-                         * @private
-                         * @param {Function} assigner The function to assign values.
-                         * @returns {Function} Returns the new assigner function.
-                         */
-                        function createAssigner(assigner) {
-                            return baseRest(function(object, sources) {
-                                var index = -1,
-                                    length = sources.length,
-                                    customizer = length > 1 ? sources[length - 1] : undefined,
-                                    guard = length > 2 ? sources[2] : undefined;
-
-                                customizer = (assigner.length > 3 && typeof customizer == 'function')
-                                    ? (length--, customizer)
-                                    : undefined;
-
-                                if (guard && isIterateeCall(sources[0], sources[1], guard)) {
-                                    customizer = length < 3 ? undefined : customizer;
-                                    length = 1;
-                                }
-                                object = Object(object);
-                                while (++index < length) {
-                                    var source = sources[index];
-                                    if (source) {
-                                        assigner(object, source, index, customizer);
-                                    }
-                                }
-                                return object;
-                            });
-                        }
-
-                        /**
-                         * Creates a `baseEach` or `baseEachRight` function.
-                         *
-                         * @private
-                         * @param {Function} eachFunc The function to iterate over a collection.
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Function} Returns the new base function.
-                         */
-                        function createBaseEach(eachFunc, fromRight) {
-                            return function(collection, iteratee) {
-                                if (collection == null) {
-                                    return collection;
-                                }
-                                if (!isArrayLike(collection)) {
-                                    return eachFunc(collection, iteratee);
-                                }
-                                var length = collection.length,
-                                    index = fromRight ? length : -1,
-                                    iterable = Object(collection);
-
-                                while ((fromRight ? index-- : ++index < length)) {
-                                    if (iteratee(iterable[index], index, iterable) === false) {
-                                        break;
-                                    }
-                                }
-                                return collection;
-                            };
-                        }
-
-                        /**
-                         * Creates a base function for methods like `_.forIn` and `_.forOwn`.
-                         *
-                         * @private
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Function} Returns the new base function.
-                         */
-                        function createBaseFor(fromRight) {
-                            return function(object, iteratee, keysFunc) {
-                                var index = -1,
-                                    iterable = Object(object),
-                                    props = keysFunc(object),
-                                    length = props.length;
-
-                                while (length--) {
-                                    var key = props[fromRight ? length : ++index];
-                                    if (iteratee(iterable[key], key, iterable) === false) {
-                                        break;
-                                    }
-                                }
-                                return object;
-                            };
-                        }
-
-                        /**
-                         * Creates a function that wraps `func` to invoke it with the optional `this`
-                         * binding of `thisArg`.
-                         *
-                         * @private
-                         * @param {Function} func The function to wrap.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @param {*} [thisArg] The `this` binding of `func`.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createBind(func, bitmask, thisArg) {
-                            var isBind = bitmask & WRAP_BIND_FLAG,
-                                Ctor = createCtor(func);
-
-                            function wrapper() {
-                                var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-                                return fn.apply(isBind ? thisArg : this, arguments);
-                            }
-                            return wrapper;
-                        }
-
-                        /**
-                         * Creates a function like `_.lowerFirst`.
-                         *
-                         * @private
-                         * @param {string} methodName The name of the `String` case method to use.
-                         * @returns {Function} Returns the new case function.
-                         */
-                        function createCaseFirst(methodName) {
-                            return function(string) {
-                                string = toString(string);
-
-                                var strSymbols = hasUnicode(string)
-                                    ? stringToArray(string)
-                                    : undefined;
-
-                                var chr = strSymbols
-                                    ? strSymbols[0]
-                                    : string.charAt(0);
-
-                                var trailing = strSymbols
-                                    ? castSlice(strSymbols, 1).join('')
-                                    : string.slice(1);
-
-                                return chr[methodName]() + trailing;
-                            };
-                        }
-
-                        /**
-                         * Creates a function like `_.camelCase`.
-                         *
-                         * @private
-                         * @param {Function} callback The function to combine each word.
-                         * @returns {Function} Returns the new compounder function.
-                         */
-                        function createCompounder(callback) {
-                            return function(string) {
-                                return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
-                            };
-                        }
-
-                        /**
-                         * Creates a function that produces an instance of `Ctor` regardless of
-                         * whether it was invoked as part of a `new` expression or by `call` or `apply`.
-                         *
-                         * @private
-                         * @param {Function} Ctor The constructor to wrap.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createCtor(Ctor) {
-                            return function() {
-                                // Use a `switch` statement to work with class constructors. See
-                                // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
-                                // for more details.
-                                var args = arguments;
-                                switch (args.length) {
-                                    case 0: return new Ctor;
-                                    case 1: return new Ctor(args[0]);
-                                    case 2: return new Ctor(args[0], args[1]);
-                                    case 3: return new Ctor(args[0], args[1], args[2]);
-                                    case 4: return new Ctor(args[0], args[1], args[2], args[3]);
-                                    case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
-                                    case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
-                                    case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
-                                }
-                                var thisBinding = baseCreate(Ctor.prototype),
-                                    result = Ctor.apply(thisBinding, args);
-
-                                // Mimic the constructor's `return` behavior.
-                                // See https://es5.github.io/#x13.2.2 for more details.
-                                return isObject(result) ? result : thisBinding;
-                            };
-                        }
-
-                        /**
-                         * Creates a function that wraps `func` to enable currying.
-                         *
-                         * @private
-                         * @param {Function} func The function to wrap.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @param {number} arity The arity of `func`.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createCurry(func, bitmask, arity) {
-                            var Ctor = createCtor(func);
-
-                            function wrapper() {
-                                var length = arguments.length,
-                                    args = Array(length),
-                                    index = length,
-                                    placeholder = getHolder(wrapper);
-
-                                while (index--) {
-                                    args[index] = arguments[index];
-                                }
-                                var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
-                                    ? []
-                                    : replaceHolders(args, placeholder);
-
-                                length -= holders.length;
-                                if (length < arity) {
-                                    return createRecurry(
-                                        func, bitmask, createHybrid, wrapper.placeholder, undefined,
-                                        args, holders, undefined, undefined, arity - length);
-                                }
-                                var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-                                return apply(fn, this, args);
-                            }
-                            return wrapper;
-                        }
-
-                        /**
-                         * Creates a `_.find` or `_.findLast` function.
-                         *
-                         * @private
-                         * @param {Function} findIndexFunc The function to find the collection index.
-                         * @returns {Function} Returns the new find function.
-                         */
-                        function createFind(findIndexFunc) {
-                            return function(collection, predicate, fromIndex) {
-                                var iterable = Object(collection);
-                                if (!isArrayLike(collection)) {
-                                    var iteratee = getIteratee(predicate, 3);
-                                    collection = keys(collection);
-                                    predicate = function(key) { return iteratee(iterable[key], key, iterable); };
-                                }
-                                var index = findIndexFunc(collection, predicate, fromIndex);
-                                return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
-                            };
-                        }
-
-                        /**
-                         * Creates a `_.flow` or `_.flowRight` function.
-                         *
-                         * @private
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Function} Returns the new flow function.
-                         */
-                        function createFlow(fromRight) {
-                            return flatRest(function(funcs) {
-                                var length = funcs.length,
-                                    index = length,
-                                    prereq = LodashWrapper.prototype.thru;
-
-                                if (fromRight) {
-                                    funcs.reverse();
-                                }
-                                while (index--) {
-                                    var func = funcs[index];
-                                    if (typeof func != 'function') {
-                                        throw new TypeError(FUNC_ERROR_TEXT);
-                                    }
-                                    if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
-                                        var wrapper = new LodashWrapper([], true);
-                                    }
-                                }
-                                index = wrapper ? index : length;
-                                while (++index < length) {
-                                    func = funcs[index];
-
-                                    var funcName = getFuncName(func),
-                                        data = funcName == 'wrapper' ? getData(func) : undefined;
-
-                                    if (data && isLaziable(data[0]) &&
-                                        data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
-                                        !data[4].length && data[9] == 1
-                                    ) {
-                                        wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
-                                    } else {
-                                        wrapper = (func.length == 1 && isLaziable(func))
-                                            ? wrapper[funcName]()
-                                            : wrapper.thru(func);
-                                    }
-                                }
-                                return function() {
-                                    var args = arguments,
-                                        value = args[0];
-
-                                    if (wrapper && args.length == 1 && isArray(value)) {
-                                        return wrapper.plant(value).value();
-                                    }
-                                    var index = 0,
-                                        result = length ? funcs[index].apply(this, args) : value;
-
-                                    while (++index < length) {
-                                        result = funcs[index].call(this, result);
-                                    }
-                                    return result;
-                                };
-                            });
-                        }
-
-                        /**
-                         * Creates a function that wraps `func` to invoke it with optional `this`
-                         * binding of `thisArg`, partial application, and currying.
-                         *
-                         * @private
-                         * @param {Function|string} func The function or method name to wrap.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @param {*} [thisArg] The `this` binding of `func`.
-                         * @param {Array} [partials] The arguments to prepend to those provided to
-                         *  the new function.
-                         * @param {Array} [holders] The `partials` placeholder indexes.
-                         * @param {Array} [partialsRight] The arguments to append to those provided
-                         *  to the new function.
-                         * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
-                         * @param {Array} [argPos] The argument positions of the new function.
-                         * @param {number} [ary] The arity cap of `func`.
-                         * @param {number} [arity] The arity of `func`.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
-                            var isAry = bitmask & WRAP_ARY_FLAG,
-                                isBind = bitmask & WRAP_BIND_FLAG,
-                                isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
-                                isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
-                                isFlip = bitmask & WRAP_FLIP_FLAG,
-                                Ctor = isBindKey ? undefined : createCtor(func);
-
-                            function wrapper() {
-                                var length = arguments.length,
-                                    args = Array(length),
-                                    index = length;
-
-                                while (index--) {
-                                    args[index] = arguments[index];
-                                }
-                                if (isCurried) {
-                                    var placeholder = getHolder(wrapper),
-                                        holdersCount = countHolders(args, placeholder);
-                                }
-                                if (partials) {
-                                    args = composeArgs(args, partials, holders, isCurried);
-                                }
-                                if (partialsRight) {
-                                    args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
-                                }
-                                length -= holdersCount;
-                                if (isCurried && length < arity) {
-                                    var newHolders = replaceHolders(args, placeholder);
-                                    return createRecurry(
-                                        func, bitmask, createHybrid, wrapper.placeholder, thisArg,
-                                        args, newHolders, argPos, ary, arity - length
-                                    );
-                                }
-                                var thisBinding = isBind ? thisArg : this,
-                                    fn = isBindKey ? thisBinding[func] : func;
-
-                                length = args.length;
-                                if (argPos) {
-                                    args = reorder(args, argPos);
-                                } else if (isFlip && length > 1) {
-                                    args.reverse();
-                                }
-                                if (isAry && ary < length) {
-                                    args.length = ary;
-                                }
-                                if (this && this !== root && this instanceof wrapper) {
-                                    fn = Ctor || createCtor(fn);
-                                }
-                                return fn.apply(thisBinding, args);
-                            }
-                            return wrapper;
-                        }
-
-                        /**
-                         * Creates a function like `_.invertBy`.
-                         *
-                         * @private
-                         * @param {Function} setter The function to set accumulator values.
-                         * @param {Function} toIteratee The function to resolve iteratees.
-                         * @returns {Function} Returns the new inverter function.
-                         */
-                        function createInverter(setter, toIteratee) {
-                            return function(object, iteratee) {
-                                return baseInverter(object, setter, toIteratee(iteratee), {});
-                            };
-                        }
-
-                        /**
-                         * Creates a function that performs a mathematical operation on two values.
-                         *
-                         * @private
-                         * @param {Function} operator The function to perform the operation.
-                         * @param {number} [defaultValue] The value used for `undefined` arguments.
-                         * @returns {Function} Returns the new mathematical operation function.
-                         */
-                        function createMathOperation(operator, defaultValue) {
-                            return function(value, other) {
-                                var result;
-                                if (value === undefined && other === undefined) {
-                                    return defaultValue;
-                                }
-                                if (value !== undefined) {
-                                    result = value;
-                                }
-                                if (other !== undefined) {
-                                    if (result === undefined) {
-                                        return other;
-                                    }
-                                    if (typeof value == 'string' || typeof other == 'string') {
-                                        value = baseToString(value);
-                                        other = baseToString(other);
-                                    } else {
-                                        value = baseToNumber(value);
-                                        other = baseToNumber(other);
-                                    }
-                                    result = operator(value, other);
-                                }
-                                return result;
-                            };
-                        }
-
-                        /**
-                         * Creates a function like `_.over`.
-                         *
-                         * @private
-                         * @param {Function} arrayFunc The function to iterate over iteratees.
-                         * @returns {Function} Returns the new over function.
-                         */
-                        function createOver(arrayFunc) {
-                            return flatRest(function(iteratees) {
-                                iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
-                                return baseRest(function(args) {
-                                    var thisArg = this;
-                                    return arrayFunc(iteratees, function(iteratee) {
-                                        return apply(iteratee, thisArg, args);
-                                    });
-                                });
-                            });
-                        }
-
-                        /**
-                         * Creates the padding for `string` based on `length`. The `chars` string
-                         * is truncated if the number of characters exceeds `length`.
-                         *
-                         * @private
-                         * @param {number} length The padding length.
-                         * @param {string} [chars=' '] The string used as padding.
-                         * @returns {string} Returns the padding for `string`.
-                         */
-                        function createPadding(length, chars) {
-                            chars = chars === undefined ? ' ' : baseToString(chars);
-
-                            var charsLength = chars.length;
-                            if (charsLength < 2) {
-                                return charsLength ? baseRepeat(chars, length) : chars;
-                            }
-                            var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
-                            return hasUnicode(chars)
-                                ? castSlice(stringToArray(result), 0, length).join('')
-                                : result.slice(0, length);
-                        }
-
-                        /**
-                         * Creates a function that wraps `func` to invoke it with the `this` binding
-                         * of `thisArg` and `partials` prepended to the arguments it receives.
-                         *
-                         * @private
-                         * @param {Function} func The function to wrap.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @param {*} thisArg The `this` binding of `func`.
-                         * @param {Array} partials The arguments to prepend to those provided to
-                         *  the new function.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createPartial(func, bitmask, thisArg, partials) {
-                            var isBind = bitmask & WRAP_BIND_FLAG,
-                                Ctor = createCtor(func);
-
-                            function wrapper() {
-                                var argsIndex = -1,
-                                    argsLength = arguments.length,
-                                    leftIndex = -1,
-                                    leftLength = partials.length,
-                                    args = Array(leftLength + argsLength),
-                                    fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
-                                while (++leftIndex < leftLength) {
-                                    args[leftIndex] = partials[leftIndex];
-                                }
-                                while (argsLength--) {
-                                    args[leftIndex++] = arguments[++argsIndex];
-                                }
-                                return apply(fn, isBind ? thisArg : this, args);
-                            }
-                            return wrapper;
-                        }
-
-                        /**
-                         * Creates a `_.range` or `_.rangeRight` function.
-                         *
-                         * @private
-                         * @param {boolean} [fromRight] Specify iterating from right to left.
-                         * @returns {Function} Returns the new range function.
-                         */
-                        function createRange(fromRight) {
-                            return function(start, end, step) {
-                                if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
-                                    end = step = undefined;
-                                }
-                                // Ensure the sign of `-0` is preserved.
-                                start = toFinite(start);
-                                if (end === undefined) {
-                                    end = start;
-                                    start = 0;
-                                } else {
-                                    end = toFinite(end);
-                                }
-                                step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
-                                return baseRange(start, end, step, fromRight);
-                            };
-                        }
-
-                        /**
-                         * Creates a function that performs a relational operation on two values.
-                         *
-                         * @private
-                         * @param {Function} operator The function to perform the operation.
-                         * @returns {Function} Returns the new relational operation function.
-                         */
-                        function createRelationalOperation(operator) {
-                            return function(value, other) {
-                                if (!(typeof value == 'string' && typeof other == 'string')) {
-                                    value = toNumber(value);
-                                    other = toNumber(other);
-                                }
-                                return operator(value, other);
-                            };
-                        }
-
-                        /**
-                         * Creates a function that wraps `func` to continue currying.
-                         *
-                         * @private
-                         * @param {Function} func The function to wrap.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @param {Function} wrapFunc The function to create the `func` wrapper.
-                         * @param {*} placeholder The placeholder value.
-                         * @param {*} [thisArg] The `this` binding of `func`.
-                         * @param {Array} [partials] The arguments to prepend to those provided to
-                         *  the new function.
-                         * @param {Array} [holders] The `partials` placeholder indexes.
-                         * @param {Array} [argPos] The argument positions of the new function.
-                         * @param {number} [ary] The arity cap of `func`.
-                         * @param {number} [arity] The arity of `func`.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
-                            var isCurry = bitmask & WRAP_CURRY_FLAG,
-                                newHolders = isCurry ? holders : undefined,
-                                newHoldersRight = isCurry ? undefined : holders,
-                                newPartials = isCurry ? partials : undefined,
-                                newPartialsRight = isCurry ? undefined : partials;
-
-                            bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
-                            bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
-
-                            if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
-                                bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
-                            }
-                            var newData = [
-                                func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
-                                newHoldersRight, argPos, ary, arity
-                            ];
-
-                            var result = wrapFunc.apply(undefined, newData);
-                            if (isLaziable(func)) {
-                                setData(result, newData);
-                            }
-                            result.placeholder = placeholder;
-                            return setWrapToString(result, func, bitmask);
-                        }
-
-                        /**
-                         * Creates a function like `_.round`.
-                         *
-                         * @private
-                         * @param {string} methodName The name of the `Math` method to use when rounding.
-                         * @returns {Function} Returns the new round function.
-                         */
-                        function createRound(methodName) {
-                            var func = Math[methodName];
-                            return function(number, precision) {
-                                number = toNumber(number);
-                                precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
-                                if (precision && nativeIsFinite(number)) {
-                                    // Shift with exponential notation to avoid floating-point issues.
-                                    // See [MDN](https://mdn.io/round#Examples) for more details.
-                                    var pair = (toString(number) + 'e').split('e'),
-                                        value = func(pair[0] + 'e' + (+pair[1] + precision));
-
-                                    pair = (toString(value) + 'e').split('e');
-                                    return +(pair[0] + 'e' + (+pair[1] - precision));
-                                }
-                                return func(number);
-                            };
-                        }
-
-                        /**
-                         * Creates a set object of `values`.
-                         *
-                         * @private
-                         * @param {Array} values The values to add to the set.
-                         * @returns {Object} Returns the new set.
-                         */
-                        var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
-                            return new Set(values);
-                        };
-
-                        /**
-                         * Creates a `_.toPairs` or `_.toPairsIn` function.
-                         *
-                         * @private
-                         * @param {Function} keysFunc The function to get the keys of a given object.
-                         * @returns {Function} Returns the new pairs function.
-                         */
-                        function createToPairs(keysFunc) {
-                            return function(object) {
-                                var tag = getTag(object);
-                                if (tag == mapTag) {
-                                    return mapToArray(object);
-                                }
-                                if (tag == setTag) {
-                                    return setToPairs(object);
-                                }
-                                return baseToPairs(object, keysFunc(object));
-                            };
-                        }
-
-                        /**
-                         * Creates a function that either curries or invokes `func` with optional
-                         * `this` binding and partially applied arguments.
-                         *
-                         * @private
-                         * @param {Function|string} func The function or method name to wrap.
-                         * @param {number} bitmask The bitmask flags.
-                         *    1 - `_.bind`
-                         *    2 - `_.bindKey`
-                         *    4 - `_.curry` or `_.curryRight` of a bound function
-                         *    8 - `_.curry`
-                         *   16 - `_.curryRight`
-                         *   32 - `_.partial`
-                         *   64 - `_.partialRight`
-                         *  128 - `_.rearg`
-                         *  256 - `_.ary`
-                         *  512 - `_.flip`
-                         * @param {*} [thisArg] The `this` binding of `func`.
-                         * @param {Array} [partials] The arguments to be partially applied.
-                         * @param {Array} [holders] The `partials` placeholder indexes.
-                         * @param {Array} [argPos] The argument positions of the new function.
-                         * @param {number} [ary] The arity cap of `func`.
-                         * @param {number} [arity] The arity of `func`.
-                         * @returns {Function} Returns the new wrapped function.
-                         */
-                        function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
-                            var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
-                            if (!isBindKey && typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            var length = partials ? partials.length : 0;
-                            if (!length) {
-                                bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
-                                partials = holders = undefined;
-                            }
-                            ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
-                            arity = arity === undefined ? arity : toInteger(arity);
-                            length -= holders ? holders.length : 0;
-
-                            if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
-                                var partialsRight = partials,
-                                    holdersRight = holders;
-
-                                partials = holders = undefined;
-                            }
-                            var data = isBindKey ? undefined : getData(func);
-
-                            var newData = [
-                                func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
-                                argPos, ary, arity
-                            ];
-
-                            if (data) {
-                                mergeData(newData, data);
-                            }
-                            func = newData[0];
-                            bitmask = newData[1];
-                            thisArg = newData[2];
-                            partials = newData[3];
-                            holders = newData[4];
-                            arity = newData[9] = newData[9] === undefined
-                                ? (isBindKey ? 0 : func.length)
-                                : nativeMax(newData[9] - length, 0);
-
-                            if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
-                                bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
-                            }
-                            if (!bitmask || bitmask == WRAP_BIND_FLAG) {
-                                var result = createBind(func, bitmask, thisArg);
-                            } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
-                                result = createCurry(func, bitmask, arity);
-                            } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
-                                result = createPartial(func, bitmask, thisArg, partials);
-                            } else {
-                                result = createHybrid.apply(undefined, newData);
-                            }
-                            var setter = data ? baseSetData : setData;
-                            return setWrapToString(setter(result, newData), func, bitmask);
-                        }
-
-                        /**
-                         * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
-                         * of source objects to the destination object for all destination properties
-                         * that resolve to `undefined`.
-                         *
-                         * @private
-                         * @param {*} objValue The destination value.
-                         * @param {*} srcValue The source value.
-                         * @param {string} key The key of the property to assign.
-                         * @param {Object} object The parent object of `objValue`.
-                         * @returns {*} Returns the value to assign.
-                         */
-                        function customDefaultsAssignIn(objValue, srcValue, key, object) {
-                            if (objValue === undefined ||
-                                (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
-                                return srcValue;
-                            }
-                            return objValue;
-                        }
-
-                        /**
-                         * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
-                         * objects into destination objects that are passed thru.
-                         *
-                         * @private
-                         * @param {*} objValue The destination value.
-                         * @param {*} srcValue The source value.
-                         * @param {string} key The key of the property to merge.
-                         * @param {Object} object The parent object of `objValue`.
-                         * @param {Object} source The parent object of `srcValue`.
-                         * @param {Object} [stack] Tracks traversed source values and their merged
-                         *  counterparts.
-                         * @returns {*} Returns the value to assign.
-                         */
-                        function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
-                            if (isObject(objValue) && isObject(srcValue)) {
-                                // Recursively merge objects and arrays (susceptible to call stack limits).
-                                stack.set(srcValue, objValue);
-                                baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
-                                stack['delete'](srcValue);
-                            }
-                            return objValue;
-                        }
-
-                        /**
-                         * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
-                         * objects.
-                         *
-                         * @private
-                         * @param {*} value The value to inspect.
-                         * @param {string} key The key of the property to inspect.
-                         * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
-                         */
-                        function customOmitClone(value) {
-                            return isPlainObject(value) ? undefined : value;
-                        }
+    /**
+     * The base implementation of `_.isMatch` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Object} object The object to inspect.
+     * @param {Object} source The object of property values to match.
+     * @param {Array} matchData The property names, values, and compare flags to match.
+     * @param {Function} [customizer] The function to customize comparisons.
+     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+     */
+    function baseIsMatch(object, source, matchData, customizer) {
+      var index = matchData.length,
+          length = index,
+          noCustomizer = !customizer;
+
+      if (object == null) {
+        return !length;
+      }
+      object = Object(object);
+      while (index--) {
+        var data = matchData[index];
+        if ((noCustomizer && data[2])
+              ? data[1] !== object[data[0]]
+              : !(data[0] in object)
+            ) {
+          return false;
+        }
+      }
+      while (++index < length) {
+        data = matchData[index];
+        var key = data[0],
+            objValue = object[key],
+            srcValue = data[1];
+
+        if (noCustomizer && data[2]) {
+          if (objValue === undefined && !(key in object)) {
+            return false;
+          }
+        } else {
+          var stack = new Stack;
+          if (customizer) {
+            var result = customizer(objValue, srcValue, key, object, source, stack);
+          }
+          if (!(result === undefined
+                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
+                : result
+              )) {
+            return false;
+          }
+        }
+      }
+      return true;
+    }
 
-                        /**
-                         * A specialized version of `baseIsEqualDeep` for arrays with support for
-                         * partial deep comparisons.
-                         *
-                         * @private
-                         * @param {Array} array The array to compare.
-                         * @param {Array} other The other array to compare.
-                         * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-                         * @param {Function} customizer The function to customize comparisons.
-                         * @param {Function} equalFunc The function to determine equivalents of values.
-                         * @param {Object} stack Tracks traversed `array` and `other` objects.
-                         * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
-                         */
-                        function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
-                            var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
-                                arrLength = array.length,
-                                othLength = other.length;
-
-                            if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
-                                return false;
-                            }
-                            // Check that cyclic values are equal.
-                            var arrStacked = stack.get(array);
-                            var othStacked = stack.get(other);
-                            if (arrStacked && othStacked) {
-                                return arrStacked == other && othStacked == array;
-                            }
-                            var index = -1,
-                                result = true,
-                                seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
-
-                            stack.set(array, other);
-                            stack.set(other, array);
-
-                            // Ignore non-index properties.
-                            while (++index < arrLength) {
-                                var arrValue = array[index],
-                                    othValue = other[index];
-
-                                if (customizer) {
-                                    var compared = isPartial
-                                        ? customizer(othValue, arrValue, index, other, array, stack)
-                                        : customizer(arrValue, othValue, index, array, other, stack);
-                                }
-                                if (compared !== undefined) {
-                                    if (compared) {
-                                        continue;
-                                    }
-                                    result = false;
-                                    break;
-                                }
-                                // Recursively compare arrays (susceptible to call stack limits).
-                                if (seen) {
-                                    if (!arraySome(other, function(othValue, othIndex) {
-                                        if (!cacheHas(seen, othIndex) &&
-                                            (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
-                                            return seen.push(othIndex);
-                                        }
-                                    })) {
-                                        result = false;
-                                        break;
-                                    }
-                                } else if (!(
-                                    arrValue === othValue ||
-                                    equalFunc(arrValue, othValue, bitmask, customizer, stack)
-                                )) {
-                                    result = false;
-                                    break;
-                                }
-                            }
-                            stack['delete'](array);
-                            stack['delete'](other);
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.isNative` without bad shim checks.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a native function,
+     *  else `false`.
+     */
+    function baseIsNative(value) {
+      if (!isObject(value) || isMasked(value)) {
+        return false;
+      }
+      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
+      return pattern.test(toSource(value));
+    }
 
-                        /**
-                         * A specialized version of `baseIsEqualDeep` for comparing objects of
-                         * the same `toStringTag`.
-                         *
-                         * **Note:** This function only supports comparing values with tags of
-                         * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
-                         *
-                         * @private
-                         * @param {Object} object The object to compare.
-                         * @param {Object} other The other object to compare.
-                         * @param {string} tag The `toStringTag` of the objects to compare.
-                         * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-                         * @param {Function} customizer The function to customize comparisons.
-                         * @param {Function} equalFunc The function to determine equivalents of values.
-                         * @param {Object} stack Tracks traversed `object` and `other` objects.
-                         * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-                         */
-                        function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
-                            switch (tag) {
-                                case dataViewTag:
-                                    if ((object.byteLength != other.byteLength) ||
-                                        (object.byteOffset != other.byteOffset)) {
-                                        return false;
-                                    }
-                                    object = object.buffer;
-                                    other = other.buffer;
-
-                                case arrayBufferTag:
-                                    if ((object.byteLength != other.byteLength) ||
-                                        !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
-                                        return false;
-                                    }
-                                    return true;
-
-                                case boolTag:
-                                case dateTag:
-                                case numberTag:
-                                    // Coerce booleans to `1` or `0` and dates to milliseconds.
-                                    // Invalid dates are coerced to `NaN`.
-                                    return eq(+object, +other);
-
-                                case errorTag:
-                                    return object.name == other.name && object.message == other.message;
-
-                                case regexpTag:
-                                case stringTag:
-                                    // Coerce regexes to strings and treat strings, primitives and objects,
-                                    // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
-                                    // for more details.
-                                    return object == (other + '');
-
-                                case mapTag:
-                                    var convert = mapToArray;
-
-                                case setTag:
-                                    var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
-                                    convert || (convert = setToArray);
-
-                                    if (object.size != other.size && !isPartial) {
-                                        return false;
-                                    }
-                                    // Assume cyclic values are equal.
-                                    var stacked = stack.get(object);
-                                    if (stacked) {
-                                        return stacked == other;
-                                    }
-                                    bitmask |= COMPARE_UNORDERED_FLAG;
-
-                                    // Recursively compare objects (susceptible to call stack limits).
-                                    stack.set(object, other);
-                                    var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
-                                    stack['delete'](object);
-                                    return result;
-
-                                case symbolTag:
-                                    if (symbolValueOf) {
-                                        return symbolValueOf.call(object) == symbolValueOf.call(other);
-                                    }
-                            }
-                            return false;
-                        }
+    /**
+     * The base implementation of `_.isRegExp` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
+     */
+    function baseIsRegExp(value) {
+      return isObjectLike(value) && baseGetTag(value) == regexpTag;
+    }
 
-                        /**
-                         * A specialized version of `baseIsEqualDeep` for objects with support for
-                         * partial deep comparisons.
-                         *
-                         * @private
-                         * @param {Object} object The object to compare.
-                         * @param {Object} other The other object to compare.
-                         * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
-                         * @param {Function} customizer The function to customize comparisons.
-                         * @param {Function} equalFunc The function to determine equivalents of values.
-                         * @param {Object} stack Tracks traversed `object` and `other` objects.
-                         * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
-                         */
-                        function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
-                            var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
-                                objProps = getAllKeys(object),
-                                objLength = objProps.length,
-                                othProps = getAllKeys(other),
-                                othLength = othProps.length;
-
-                            if (objLength != othLength && !isPartial) {
-                                return false;
-                            }
-                            var index = objLength;
-                            while (index--) {
-                                var key = objProps[index];
-                                if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
-                                    return false;
-                                }
-                            }
-                            // Check that cyclic values are equal.
-                            var objStacked = stack.get(object);
-                            var othStacked = stack.get(other);
-                            if (objStacked && othStacked) {
-                                return objStacked == other && othStacked == object;
-                            }
-                            var result = true;
-                            stack.set(object, other);
-                            stack.set(other, object);
-
-                            var skipCtor = isPartial;
-                            while (++index < objLength) {
-                                key = objProps[index];
-                                var objValue = object[key],
-                                    othValue = other[key];
-
-                                if (customizer) {
-                                    var compared = isPartial
-                                        ? customizer(othValue, objValue, key, other, object, stack)
-                                        : customizer(objValue, othValue, key, object, other, stack);
-                                }
-                                // Recursively compare objects (susceptible to call stack limits).
-                                if (!(compared === undefined
-                                        ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
-                                        : compared
-                                )) {
-                                    result = false;
-                                    break;
-                                }
-                                skipCtor || (skipCtor = key == 'constructor');
-                            }
-                            if (result && !skipCtor) {
-                                var objCtor = object.constructor,
-                                    othCtor = other.constructor;
-
-                                // Non `Object` object instances with different constructors are not equal.
-                                if (objCtor != othCtor &&
-                                    ('constructor' in object && 'constructor' in other) &&
-                                    !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
-                                        typeof othCtor == 'function' && othCtor instanceof othCtor)) {
-                                    result = false;
-                                }
-                            }
-                            stack['delete'](object);
-                            stack['delete'](other);
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.isSet` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
+     */
+    function baseIsSet(value) {
+      return isObjectLike(value) && getTag(value) == setTag;
+    }
 
-                        /**
-                         * A specialized version of `baseRest` which flattens the rest array.
-                         *
-                         * @private
-                         * @param {Function} func The function to apply a rest parameter to.
-                         * @returns {Function} Returns the new function.
-                         */
-                        function flatRest(func) {
-                            return setToString(overRest(func, undefined, flatten), func + '');
-                        }
+    /**
+     * The base implementation of `_.isTypedArray` without Node.js optimizations.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+     */
+    function baseIsTypedArray(value) {
+      return isObjectLike(value) &&
+        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+    }
 
-                        /**
-                         * Creates an array of own enumerable property names and symbols of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names and symbols.
-                         */
-                        function getAllKeys(object) {
-                            return baseGetAllKeys(object, keys, getSymbols);
-                        }
+    /**
+     * The base implementation of `_.iteratee`.
+     *
+     * @private
+     * @param {*} [value=_.identity] The value to convert to an iteratee.
+     * @returns {Function} Returns the iteratee.
+     */
+    function baseIteratee(value) {
+      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
+      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
+      if (typeof value == 'function') {
+        return value;
+      }
+      if (value == null) {
+        return identity;
+      }
+      if (typeof value == 'object') {
+        return isArray(value)
+          ? baseMatchesProperty(value[0], value[1])
+          : baseMatches(value);
+      }
+      return property(value);
+    }
 
-                        /**
-                         * Creates an array of own and inherited enumerable property names and
-                         * symbols of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names and symbols.
-                         */
-                        function getAllKeysIn(object) {
-                            return baseGetAllKeys(object, keysIn, getSymbolsIn);
-                        }
+    /**
+     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names.
+     */
+    function baseKeys(object) {
+      if (!isPrototype(object)) {
+        return nativeKeys(object);
+      }
+      var result = [];
+      for (var key in Object(object)) {
+        if (hasOwnProperty.call(object, key) && key != 'constructor') {
+          result.push(key);
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Gets metadata for `func`.
-                         *
-                         * @private
-                         * @param {Function} func The function to query.
-                         * @returns {*} Returns the metadata for `func`.
-                         */
-                        var getData = !metaMap ? noop : function(func) {
-                            return metaMap.get(func);
-                        };
-
-                        /**
-                         * Gets the name of `func`.
-                         *
-                         * @private
-                         * @param {Function} func The function to query.
-                         * @returns {string} Returns the function name.
-                         */
-                        function getFuncName(func) {
-                            var result = (func.name + ''),
-                                array = realNames[result],
-                                length = hasOwnProperty.call(realNames, result) ? array.length : 0;
-
-                            while (length--) {
-                                var data = array[length],
-                                    otherFunc = data.func;
-                                if (otherFunc == null || otherFunc == func) {
-                                    return data.name;
-                                }
-                            }
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names.
+     */
+    function baseKeysIn(object) {
+      if (!isObject(object)) {
+        return nativeKeysIn(object);
+      }
+      var isProto = isPrototype(object),
+          result = [];
+
+      for (var key in object) {
+        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
+          result.push(key);
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Gets the argument placeholder value for `func`.
-                         *
-                         * @private
-                         * @param {Function} func The function to inspect.
-                         * @returns {*} Returns the placeholder value.
-                         */
-                        function getHolder(func) {
-                            var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
-                            return object.placeholder;
-                        }
+    /**
+     * The base implementation of `_.lt` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is less than `other`,
+     *  else `false`.
+     */
+    function baseLt(value, other) {
+      return value < other;
+    }
 
-                        /**
-                         * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
-                         * this function returns the custom method, otherwise it returns `baseIteratee`.
-                         * If arguments are provided, the chosen function is invoked with them and
-                         * its result is returned.
-                         *
-                         * @private
-                         * @param {*} [value] The value to convert to an iteratee.
-                         * @param {number} [arity] The arity of the created iteratee.
-                         * @returns {Function} Returns the chosen function or its result.
-                         */
-                        function getIteratee() {
-                            var result = lodash.iteratee || iteratee;
-                            result = result === iteratee ? baseIteratee : result;
-                            return arguments.length ? result(arguments[0], arguments[1]) : result;
-                        }
+    /**
+     * The base implementation of `_.map` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} iteratee The function invoked per iteration.
+     * @returns {Array} Returns the new mapped array.
+     */
+    function baseMap(collection, iteratee) {
+      var index = -1,
+          result = isArrayLike(collection) ? Array(collection.length) : [];
+
+      baseEach(collection, function(value, key, collection) {
+        result[++index] = iteratee(value, key, collection);
+      });
+      return result;
+    }
 
-                        /**
-                         * Gets the data for `map`.
-                         *
-                         * @private
-                         * @param {Object} map The map to query.
-                         * @param {string} key The reference key.
-                         * @returns {*} Returns the map data.
-                         */
-                        function getMapData(map, key) {
-                            var data = map.__data__;
-                            return isKeyable(key)
-                                ? data[typeof key == 'string' ? 'string' : 'hash']
-                                : data.map;
-                        }
+    /**
+     * The base implementation of `_.matches` which doesn't clone `source`.
+     *
+     * @private
+     * @param {Object} source The object of property values to match.
+     * @returns {Function} Returns the new spec function.
+     */
+    function baseMatches(source) {
+      var matchData = getMatchData(source);
+      if (matchData.length == 1 && matchData[0][2]) {
+        return matchesStrictComparable(matchData[0][0], matchData[0][1]);
+      }
+      return function(object) {
+        return object === source || baseIsMatch(object, source, matchData);
+      };
+    }
 
-                        /**
-                         * Gets the property names, values, and compare flags of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the match data of `object`.
-                         */
-                        function getMatchData(object) {
-                            var result = keys(object),
-                                length = result.length;
-
-                            while (length--) {
-                                var key = result[length],
-                                    value = object[key];
-
-                                result[length] = [key, value, isStrictComparable(value)];
-                            }
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
+     *
+     * @private
+     * @param {string} path The path of the property to get.
+     * @param {*} srcValue The value to match.
+     * @returns {Function} Returns the new spec function.
+     */
+    function baseMatchesProperty(path, srcValue) {
+      if (isKey(path) && isStrictComparable(srcValue)) {
+        return matchesStrictComparable(toKey(path), srcValue);
+      }
+      return function(object) {
+        var objValue = get(object, path);
+        return (objValue === undefined && objValue === srcValue)
+          ? hasIn(object, path)
+          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
+      };
+    }
 
-                        /**
-                         * Gets the native function at `key` of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {string} key The key of the method to get.
-                         * @returns {*} Returns the function if it's native, else `undefined`.
-                         */
-                        function getNative(object, key) {
-                            var value = getValue(object, key);
-                            return baseIsNative(value) ? value : undefined;
-                        }
+    /**
+     * The base implementation of `_.merge` without support for multiple sources.
+     *
+     * @private
+     * @param {Object} object The destination object.
+     * @param {Object} source The source object.
+     * @param {number} srcIndex The index of `source`.
+     * @param {Function} [customizer] The function to customize merged values.
+     * @param {Object} [stack] Tracks traversed source values and their merged
+     *  counterparts.
+     */
+    function baseMerge(object, source, srcIndex, customizer, stack) {
+      if (object === source) {
+        return;
+      }
+      baseFor(source, function(srcValue, key) {
+        stack || (stack = new Stack);
+        if (isObject(srcValue)) {
+          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
+        }
+        else {
+          var newValue = customizer
+            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
+            : undefined;
+
+          if (newValue === undefined) {
+            newValue = srcValue;
+          }
+          assignMergeValue(object, key, newValue);
+        }
+      }, keysIn);
+    }
 
-                        /**
-                         * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
-                         *
-                         * @private
-                         * @param {*} value The value to query.
-                         * @returns {string} Returns the raw `toStringTag`.
-                         */
-                        function getRawTag(value) {
-                            var isOwn = hasOwnProperty.call(value, symToStringTag),
-                                tag = value[symToStringTag];
-
-                            try {
-                                value[symToStringTag] = undefined;
-                                var unmasked = true;
-                            } catch (e) {}
-
-                            var result = nativeObjectToString.call(value);
-                            if (unmasked) {
-                                if (isOwn) {
-                                    value[symToStringTag] = tag;
-                                } else {
-                                    delete value[symToStringTag];
-                                }
-                            }
-                            return result;
-                        }
+    /**
+     * A specialized version of `baseMerge` for arrays and objects which performs
+     * deep merges and tracks traversed objects enabling objects with circular
+     * references to be merged.
+     *
+     * @private
+     * @param {Object} object The destination object.
+     * @param {Object} source The source object.
+     * @param {string} key The key of the value to merge.
+     * @param {number} srcIndex The index of `source`.
+     * @param {Function} mergeFunc The function to merge values.
+     * @param {Function} [customizer] The function to customize assigned values.
+     * @param {Object} [stack] Tracks traversed source values and their merged
+     *  counterparts.
+     */
+    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
+      var objValue = safeGet(object, key),
+          srcValue = safeGet(source, key),
+          stacked = stack.get(srcValue);
+
+      if (stacked) {
+        assignMergeValue(object, key, stacked);
+        return;
+      }
+      var newValue = customizer
+        ? customizer(objValue, srcValue, (key + ''), object, source, stack)
+        : undefined;
+
+      var isCommon = newValue === undefined;
+
+      if (isCommon) {
+        var isArr = isArray(srcValue),
+            isBuff = !isArr && isBuffer(srcValue),
+            isTyped = !isArr && !isBuff && isTypedArray(srcValue);
+
+        newValue = srcValue;
+        if (isArr || isBuff || isTyped) {
+          if (isArray(objValue)) {
+            newValue = objValue;
+          }
+          else if (isArrayLikeObject(objValue)) {
+            newValue = copyArray(objValue);
+          }
+          else if (isBuff) {
+            isCommon = false;
+            newValue = cloneBuffer(srcValue, true);
+          }
+          else if (isTyped) {
+            isCommon = false;
+            newValue = cloneTypedArray(srcValue, true);
+          }
+          else {
+            newValue = [];
+          }
+        }
+        else if (isPlainObject(srcValue) || isArguments(srcValue)) {
+          newValue = objValue;
+          if (isArguments(objValue)) {
+            newValue = toPlainObject(objValue);
+          }
+          else if (!isObject(objValue) || isFunction(objValue)) {
+            newValue = initCloneObject(srcValue);
+          }
+        }
+        else {
+          isCommon = false;
+        }
+      }
+      if (isCommon) {
+        // Recursively merge objects and arrays (susceptible to call stack limits).
+        stack.set(srcValue, newValue);
+        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
+        stack['delete'](srcValue);
+      }
+      assignMergeValue(object, key, newValue);
+    }
 
-                        /**
-                         * Creates an array of the own enumerable symbols of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of symbols.
-                         */
-                        var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
-                            if (object == null) {
-                                return [];
-                            }
-                            object = Object(object);
-                            return arrayFilter(nativeGetSymbols(object), function(symbol) {
-                                return propertyIsEnumerable.call(object, symbol);
-                            });
-                        };
-
-                        /**
-                         * Creates an array of the own and inherited enumerable symbols of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of symbols.
-                         */
-                        var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
-                            var result = [];
-                            while (object) {
-                                arrayPush(result, getSymbols(object));
-                                object = getPrototype(object);
-                            }
-                            return result;
-                        };
-
-                        /**
-                         * Gets the `toStringTag` of `value`.
-                         *
-                         * @private
-                         * @param {*} value The value to query.
-                         * @returns {string} Returns the `toStringTag`.
-                         */
-                        var getTag = baseGetTag;
-
-                        // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
-                        if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
-                            (Map && getTag(new Map) != mapTag) ||
-                            (Promise && getTag(Promise.resolve()) != promiseTag) ||
-                            (Set && getTag(new Set) != setTag) ||
-                            (WeakMap && getTag(new WeakMap) != weakMapTag)) {
-                            getTag = function(value) {
-                                var result = baseGetTag(value),
-                                    Ctor = result == objectTag ? value.constructor : undefined,
-                                    ctorString = Ctor ? toSource(Ctor) : '';
-
-                                if (ctorString) {
-                                    switch (ctorString) {
-                                        case dataViewCtorString: return dataViewTag;
-                                        case mapCtorString: return mapTag;
-                                        case promiseCtorString: return promiseTag;
-                                        case setCtorString: return setTag;
-                                        case weakMapCtorString: return weakMapTag;
-                                    }
-                                }
-                                return result;
-                            };
-                        }
+    /**
+     * The base implementation of `_.nth` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {Array} array The array to query.
+     * @param {number} n The index of the element to return.
+     * @returns {*} Returns the nth element of `array`.
+     */
+    function baseNth(array, n) {
+      var length = array.length;
+      if (!length) {
+        return;
+      }
+      n += n < 0 ? length : 0;
+      return isIndex(n, length) ? array[n] : undefined;
+    }
 
-                        /**
-                         * Gets the view, applying any `transforms` to the `start` and `end` positions.
-                         *
-                         * @private
-                         * @param {number} start The start of the view.
-                         * @param {number} end The end of the view.
-                         * @param {Array} transforms The transformations to apply to the view.
-                         * @returns {Object} Returns an object containing the `start` and `end`
-                         *  positions of the view.
-                         */
-                        function getView(start, end, transforms) {
-                            var index = -1,
-                                length = transforms.length;
-
-                            while (++index < length) {
-                                var data = transforms[index],
-                                    size = data.size;
-
-                                switch (data.type) {
-                                    case 'drop':      start += size; break;
-                                    case 'dropRight': end -= size; break;
-                                    case 'take':      end = nativeMin(end, start + size); break;
-                                    case 'takeRight': start = nativeMax(start, end - size); break;
-                                }
-                            }
-                            return { 'start': start, 'end': end };
-                        }
+    /**
+     * The base implementation of `_.orderBy` without param guards.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
+     * @param {string[]} orders The sort orders of `iteratees`.
+     * @returns {Array} Returns the new sorted array.
+     */
+    function baseOrderBy(collection, iteratees, orders) {
+      if (iteratees.length) {
+        iteratees = arrayMap(iteratees, function(iteratee) {
+          if (isArray(iteratee)) {
+            return function(value) {
+              return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
+            }
+          }
+          return iteratee;
+        });
+      } else {
+        iteratees = [identity];
+      }
+
+      var index = -1;
+      iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
+
+      var result = baseMap(collection, function(value, key, collection) {
+        var criteria = arrayMap(iteratees, function(iteratee) {
+          return iteratee(value);
+        });
+        return { 'criteria': criteria, 'index': ++index, 'value': value };
+      });
 
-                        /**
-                         * Extracts wrapper details from the `source` body comment.
-                         *
-                         * @private
-                         * @param {string} source The source to inspect.
-                         * @returns {Array} Returns the wrapper details.
-                         */
-                        function getWrapDetails(source) {
-                            var match = source.match(reWrapDetails);
-                            return match ? match[1].split(reSplitDetails) : [];
-                        }
+      return baseSortBy(result, function(object, other) {
+        return compareMultiple(object, other, orders);
+      });
+    }
 
-                        /**
-                         * Checks if `path` exists on `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path to check.
-                         * @param {Function} hasFunc The function to check properties.
-                         * @returns {boolean} Returns `true` if `path` exists, else `false`.
-                         */
-                        function hasPath(object, path, hasFunc) {
-                            path = castPath(path, object);
-
-                            var index = -1,
-                                length = path.length,
-                                result = false;
-
-                            while (++index < length) {
-                                var key = toKey(path[index]);
-                                if (!(result = object != null && hasFunc(object, key))) {
-                                    break;
-                                }
-                                object = object[key];
-                            }
-                            if (result || ++index != length) {
-                                return result;
-                            }
-                            length = object == null ? 0 : object.length;
-                            return !!length && isLength(length) && isIndex(key, length) &&
-                                (isArray(object) || isArguments(object));
-                        }
+    /**
+     * The base implementation of `_.pick` without support for individual
+     * property identifiers.
+     *
+     * @private
+     * @param {Object} object The source object.
+     * @param {string[]} paths The property paths to pick.
+     * @returns {Object} Returns the new object.
+     */
+    function basePick(object, paths) {
+      return basePickBy(object, paths, function(value, path) {
+        return hasIn(object, path);
+      });
+    }
 
-                        /**
-                         * Initializes an array clone.
-                         *
-                         * @private
-                         * @param {Array} array The array to clone.
-                         * @returns {Array} Returns the initialized clone.
-                         */
-                        function initCloneArray(array) {
-                            var length = array.length,
-                                result = new array.constructor(length);
-
-                            // Add properties assigned by `RegExp#exec`.
-                            if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
-                                result.index = array.index;
-                                result.input = array.input;
-                            }
-                            return result;
-                        }
+    /**
+     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Object} object The source object.
+     * @param {string[]} paths The property paths to pick.
+     * @param {Function} predicate The function invoked per property.
+     * @returns {Object} Returns the new object.
+     */
+    function basePickBy(object, paths, predicate) {
+      var index = -1,
+          length = paths.length,
+          result = {};
+
+      while (++index < length) {
+        var path = paths[index],
+            value = baseGet(object, path);
+
+        if (predicate(value, path)) {
+          baseSet(result, castPath(path, object), value);
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Initializes an object clone.
-                         *
-                         * @private
-                         * @param {Object} object The object to clone.
-                         * @returns {Object} Returns the initialized clone.
-                         */
-                        function initCloneObject(object) {
-                            return (typeof object.constructor == 'function' && !isPrototype(object))
-                                ? baseCreate(getPrototype(object))
-                                : {};
-                        }
+    /**
+     * A specialized version of `baseProperty` which supports deep paths.
+     *
+     * @private
+     * @param {Array|string} path The path of the property to get.
+     * @returns {Function} Returns the new accessor function.
+     */
+    function basePropertyDeep(path) {
+      return function(object) {
+        return baseGet(object, path);
+      };
+    }
 
-                        /**
-                         * Initializes an object clone based on its `toStringTag`.
-                         *
-                         * **Note:** This function only supports cloning values with tags of
-                         * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
-                         *
-                         * @private
-                         * @param {Object} object The object to clone.
-                         * @param {string} tag The `toStringTag` of the object to clone.
-                         * @param {boolean} [isDeep] Specify a deep clone.
-                         * @returns {Object} Returns the initialized clone.
-                         */
-                        function initCloneByTag(object, tag, isDeep) {
-                            var Ctor = object.constructor;
-                            switch (tag) {
-                                case arrayBufferTag:
-                                    return cloneArrayBuffer(object);
-
-                                case boolTag:
-                                case dateTag:
-                                    return new Ctor(+object);
-
-                                case dataViewTag:
-                                    return cloneDataView(object, isDeep);
-
-                                case float32Tag: case float64Tag:
-                                case int8Tag: case int16Tag: case int32Tag:
-                                case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
-                                    return cloneTypedArray(object, isDeep);
-
-                                case mapTag:
-                                    return new Ctor;
-
-                                case numberTag:
-                                case stringTag:
-                                    return new Ctor(object);
-
-                                case regexpTag:
-                                    return cloneRegExp(object);
-
-                                case setTag:
-                                    return new Ctor;
-
-                                case symbolTag:
-                                    return cloneSymbol(object);
-                            }
-                        }
+    /**
+     * The base implementation of `_.pullAllBy` without support for iteratee
+     * shorthands.
+     *
+     * @private
+     * @param {Array} array The array to modify.
+     * @param {Array} values The values to remove.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns `array`.
+     */
+    function basePullAll(array, values, iteratee, comparator) {
+      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
+          index = -1,
+          length = values.length,
+          seen = array;
+
+      if (array === values) {
+        values = copyArray(values);
+      }
+      if (iteratee) {
+        seen = arrayMap(array, baseUnary(iteratee));
+      }
+      while (++index < length) {
+        var fromIndex = 0,
+            value = values[index],
+            computed = iteratee ? iteratee(value) : value;
+
+        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
+          if (seen !== array) {
+            splice.call(seen, fromIndex, 1);
+          }
+          splice.call(array, fromIndex, 1);
+        }
+      }
+      return array;
+    }
 
-                        /**
-                         * Inserts wrapper `details` in a comment at the top of the `source` body.
-                         *
-                         * @private
-                         * @param {string} source The source to modify.
-                         * @returns {Array} details The details to insert.
-                         * @returns {string} Returns the modified source.
-                         */
-                        function insertWrapDetails(source, details) {
-                            var length = details.length;
-                            if (!length) {
-                                return source;
-                            }
-                            var lastIndex = length - 1;
-                            details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
-                            details = details.join(length > 2 ? ', ' : ' ');
-                            return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
-                        }
+    /**
+     * The base implementation of `_.pullAt` without support for individual
+     * indexes or capturing the removed elements.
+     *
+     * @private
+     * @param {Array} array The array to modify.
+     * @param {number[]} indexes The indexes of elements to remove.
+     * @returns {Array} Returns `array`.
+     */
+    function basePullAt(array, indexes) {
+      var length = array ? indexes.length : 0,
+          lastIndex = length - 1;
+
+      while (length--) {
+        var index = indexes[length];
+        if (length == lastIndex || index !== previous) {
+          var previous = index;
+          if (isIndex(index)) {
+            splice.call(array, index, 1);
+          } else {
+            baseUnset(array, index);
+          }
+        }
+      }
+      return array;
+    }
 
-                        /**
-                         * Checks if `value` is a flattenable `arguments` object or array.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
-                         */
-                        function isFlattenable(value) {
-                            return isArray(value) || isArguments(value) ||
-                                !!(spreadableSymbol && value && value[spreadableSymbol]);
-                        }
+    /**
+     * The base implementation of `_.random` without support for returning
+     * floating-point numbers.
+     *
+     * @private
+     * @param {number} lower The lower bound.
+     * @param {number} upper The upper bound.
+     * @returns {number} Returns the random number.
+     */
+    function baseRandom(lower, upper) {
+      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
+    }
 
-                        /**
-                         * Checks if `value` is a valid array-like index.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
-                         * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
-                         */
-                        function isIndex(value, length) {
-                            var type = typeof value;
-                            length = length == null ? MAX_SAFE_INTEGER : length;
-
-                            return !!length &&
-                                (type == 'number' ||
-                                    (type != 'symbol' && reIsUint.test(value))) &&
-                                (value > -1 && value % 1 == 0 && value < length);
-                        }
+    /**
+     * The base implementation of `_.range` and `_.rangeRight` which doesn't
+     * coerce arguments.
+     *
+     * @private
+     * @param {number} start The start of the range.
+     * @param {number} end The end of the range.
+     * @param {number} step The value to increment or decrement by.
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Array} Returns the range of numbers.
+     */
+    function baseRange(start, end, step, fromRight) {
+      var index = -1,
+          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
+          result = Array(length);
+
+      while (length--) {
+        result[fromRight ? length : ++index] = start;
+        start += step;
+      }
+      return result;
+    }
 
-                        /**
-                         * Checks if the given arguments are from an iteratee call.
-                         *
-                         * @private
-                         * @param {*} value The potential iteratee value argument.
-                         * @param {*} index The potential iteratee index or key argument.
-                         * @param {*} object The potential iteratee object argument.
-                         * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
-                         *  else `false`.
-                         */
-                        function isIterateeCall(value, index, object) {
-                            if (!isObject(object)) {
-                                return false;
-                            }
-                            var type = typeof index;
-                            if (type == 'number'
-                                ? (isArrayLike(object) && isIndex(index, object.length))
-                                : (type == 'string' && index in object)
-                            ) {
-                                return eq(object[index], value);
-                            }
-                            return false;
-                        }
+    /**
+     * The base implementation of `_.repeat` which doesn't coerce arguments.
+     *
+     * @private
+     * @param {string} string The string to repeat.
+     * @param {number} n The number of times to repeat the string.
+     * @returns {string} Returns the repeated string.
+     */
+    function baseRepeat(string, n) {
+      var result = '';
+      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
+        return result;
+      }
+      // Leverage the exponentiation by squaring algorithm for a faster repeat.
+      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
+      do {
+        if (n % 2) {
+          result += string;
+        }
+        n = nativeFloor(n / 2);
+        if (n) {
+          string += string;
+        }
+      } while (n);
 
-                        /**
-                         * Checks if `value` is a property name and not a property path.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @param {Object} [object] The object to query keys on.
-                         * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
-                         */
-                        function isKey(value, object) {
-                            if (isArray(value)) {
-                                return false;
-                            }
-                            var type = typeof value;
-                            if (type == 'number' || type == 'symbol' || type == 'boolean' ||
-                                value == null || isSymbol(value)) {
-                                return true;
-                            }
-                            return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
-                                (object != null && value in Object(object));
-                        }
+      return result;
+    }
 
-                        /**
-                         * Checks if `value` is suitable for use as unique object key.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
-                         */
-                        function isKeyable(value) {
-                            var type = typeof value;
-                            return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
-                                ? (value !== '__proto__')
-                                : (value === null);
-                        }
+    /**
+     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
+     *
+     * @private
+     * @param {Function} func The function to apply a rest parameter to.
+     * @param {number} [start=func.length-1] The start position of the rest parameter.
+     * @returns {Function} Returns the new function.
+     */
+    function baseRest(func, start) {
+      return setToString(overRest(func, start, identity), func + '');
+    }
 
-                        /**
-                         * Checks if `func` has a lazy counterpart.
-                         *
-                         * @private
-                         * @param {Function} func The function to check.
-                         * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
-                         *  else `false`.
-                         */
-                        function isLaziable(func) {
-                            var funcName = getFuncName(func),
-                                other = lodash[funcName];
-
-                            if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
-                                return false;
-                            }
-                            if (func === other) {
-                                return true;
-                            }
-                            var data = getData(other);
-                            return !!data && func === data[0];
-                        }
+    /**
+     * The base implementation of `_.sample`.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to sample.
+     * @returns {*} Returns the random element.
+     */
+    function baseSample(collection) {
+      return arraySample(values(collection));
+    }
 
-                        /**
-                         * Checks if `func` has its source masked.
-                         *
-                         * @private
-                         * @param {Function} func The function to check.
-                         * @returns {boolean} Returns `true` if `func` is masked, else `false`.
-                         */
-                        function isMasked(func) {
-                            return !!maskSrcKey && (maskSrcKey in func);
-                        }
+    /**
+     * The base implementation of `_.sampleSize` without param guards.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to sample.
+     * @param {number} n The number of elements to sample.
+     * @returns {Array} Returns the random elements.
+     */
+    function baseSampleSize(collection, n) {
+      var array = values(collection);
+      return shuffleSelf(array, baseClamp(n, 0, array.length));
+    }
 
-                        /**
-                         * Checks if `func` is capable of being masked.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
-                         */
-                        var isMaskable = coreJsData ? isFunction : stubFalse;
-
-                        /**
-                         * Checks if `value` is likely a prototype object.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
-                         */
-                        function isPrototype(value) {
-                            var Ctor = value && value.constructor,
-                                proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
-                            return value === proto;
-                        }
+    /**
+     * The base implementation of `_.set`.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to set.
+     * @param {*} value The value to set.
+     * @param {Function} [customizer] The function to customize path creation.
+     * @returns {Object} Returns `object`.
+     */
+    function baseSet(object, path, value, customizer) {
+      if (!isObject(object)) {
+        return object;
+      }
+      path = castPath(path, object);
+
+      var index = -1,
+          length = path.length,
+          lastIndex = length - 1,
+          nested = object;
+
+      while (nested != null && ++index < length) {
+        var key = toKey(path[index]),
+            newValue = value;
+
+        if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
+          return object;
+        }
 
-                        /**
-                         * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
-                         *
-                         * @private
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` if suitable for strict
-                         *  equality comparisons, else `false`.
-                         */
-                        function isStrictComparable(value) {
-                            return value === value && !isObject(value);
-                        }
+        if (index != lastIndex) {
+          var objValue = nested[key];
+          newValue = customizer ? customizer(objValue, key, nested) : undefined;
+          if (newValue === undefined) {
+            newValue = isObject(objValue)
+              ? objValue
+              : (isIndex(path[index + 1]) ? [] : {});
+          }
+        }
+        assignValue(nested, key, newValue);
+        nested = nested[key];
+      }
+      return object;
+    }
 
-                        /**
-                         * A specialized version of `matchesProperty` for source values suitable
-                         * for strict equality comparisons, i.e. `===`.
-                         *
-                         * @private
-                         * @param {string} key The key of the property to get.
-                         * @param {*} srcValue The value to match.
-                         * @returns {Function} Returns the new spec function.
-                         */
-                        function matchesStrictComparable(key, srcValue) {
-                            return function(object) {
-                                if (object == null) {
-                                    return false;
-                                }
-                                return object[key] === srcValue &&
-                                    (srcValue !== undefined || (key in Object(object)));
-                            };
-                        }
+    /**
+     * The base implementation of `setData` without support for hot loop shorting.
+     *
+     * @private
+     * @param {Function} func The function to associate metadata with.
+     * @param {*} data The metadata.
+     * @returns {Function} Returns `func`.
+     */
+    var baseSetData = !metaMap ? identity : function(func, data) {
+      metaMap.set(func, data);
+      return func;
+    };
+
+    /**
+     * The base implementation of `setToString` without support for hot loop shorting.
+     *
+     * @private
+     * @param {Function} func The function to modify.
+     * @param {Function} string The `toString` result.
+     * @returns {Function} Returns `func`.
+     */
+    var baseSetToString = !defineProperty ? identity : function(func, string) {
+      return defineProperty(func, 'toString', {
+        'configurable': true,
+        'enumerable': false,
+        'value': constant(string),
+        'writable': true
+      });
+    };
+
+    /**
+     * The base implementation of `_.shuffle`.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to shuffle.
+     * @returns {Array} Returns the new shuffled array.
+     */
+    function baseShuffle(collection) {
+      return shuffleSelf(values(collection));
+    }
 
-                        /**
-                         * A specialized version of `_.memoize` which clears the memoized function's
-                         * cache when it exceeds `MAX_MEMOIZE_SIZE`.
-                         *
-                         * @private
-                         * @param {Function} func The function to have its output memoized.
-                         * @returns {Function} Returns the new memoized function.
-                         */
-                        function memoizeCapped(func) {
-                            var result = memoize(func, function(key) {
-                                if (cache.size === MAX_MEMOIZE_SIZE) {
-                                    cache.clear();
-                                }
-                                return key;
-                            });
-
-                            var cache = result.cache;
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.slice` without an iteratee call guard.
+     *
+     * @private
+     * @param {Array} array The array to slice.
+     * @param {number} [start=0] The start position.
+     * @param {number} [end=array.length] The end position.
+     * @returns {Array} Returns the slice of `array`.
+     */
+    function baseSlice(array, start, end) {
+      var index = -1,
+          length = array.length;
+
+      if (start < 0) {
+        start = -start > length ? 0 : (length + start);
+      }
+      end = end > length ? length : end;
+      if (end < 0) {
+        end += length;
+      }
+      length = start > end ? 0 : ((end - start) >>> 0);
+      start >>>= 0;
+
+      var result = Array(length);
+      while (++index < length) {
+        result[index] = array[index + start];
+      }
+      return result;
+    }
 
-                        /**
-                         * Merges the function metadata of `source` into `data`.
-                         *
-                         * Merging metadata reduces the number of wrappers used to invoke a function.
-                         * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
-                         * may be applied regardless of execution order. Methods like `_.ary` and
-                         * `_.rearg` modify function arguments, making the order in which they are
-                         * executed important, preventing the merging of metadata. However, we make
-                         * an exception for a safe combined case where curried functions have `_.ary`
-                         * and or `_.rearg` applied.
-                         *
-                         * @private
-                         * @param {Array} data The destination metadata.
-                         * @param {Array} source The source metadata.
-                         * @returns {Array} Returns `data`.
-                         */
-                        function mergeData(data, source) {
-                            var bitmask = data[1],
-                                srcBitmask = source[1],
-                                newBitmask = bitmask | srcBitmask,
-                                isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
-
-                            var isCombo =
-                                ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
-                                ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
-                                ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
-
-                            // Exit early if metadata can't be merged.
-                            if (!(isCommon || isCombo)) {
-                                return data;
-                            }
-                            // Use source `thisArg` if available.
-                            if (srcBitmask & WRAP_BIND_FLAG) {
-                                data[2] = source[2];
-                                // Set when currying a bound function.
-                                newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
-                            }
-                            // Compose partial arguments.
-                            var value = source[3];
-                            if (value) {
-                                var partials = data[3];
-                                data[3] = partials ? composeArgs(partials, value, source[4]) : value;
-                                data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
-                            }
-                            // Compose partial right arguments.
-                            value = source[5];
-                            if (value) {
-                                partials = data[5];
-                                data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
-                                data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
-                            }
-                            // Use source `argPos` if available.
-                            value = source[7];
-                            if (value) {
-                                data[7] = value;
-                            }
-                            // Use source `ary` if it's smaller.
-                            if (srcBitmask & WRAP_ARY_FLAG) {
-                                data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
-                            }
-                            // Use source `arity` if one is not provided.
-                            if (data[9] == null) {
-                                data[9] = source[9];
-                            }
-                            // Use source `func` and merge bitmasks.
-                            data[0] = source[0];
-                            data[1] = newBitmask;
+    /**
+     * The base implementation of `_.some` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} predicate The function invoked per iteration.
+     * @returns {boolean} Returns `true` if any element passes the predicate check,
+     *  else `false`.
+     */
+    function baseSome(collection, predicate) {
+      var result;
+
+      baseEach(collection, function(value, index, collection) {
+        result = predicate(value, index, collection);
+        return !result;
+      });
+      return !!result;
+    }
 
-                            return data;
-                        }
+    /**
+     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
+     * performs a binary search of `array` to determine the index at which `value`
+     * should be inserted into `array` in order to maintain its sort order.
+     *
+     * @private
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @param {boolean} [retHighest] Specify returning the highest qualified index.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     */
+    function baseSortedIndex(array, value, retHighest) {
+      var low = 0,
+          high = array == null ? low : array.length;
+
+      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
+        while (low < high) {
+          var mid = (low + high) >>> 1,
+              computed = array[mid];
+
+          if (computed !== null && !isSymbol(computed) &&
+              (retHighest ? (computed <= value) : (computed < value))) {
+            low = mid + 1;
+          } else {
+            high = mid;
+          }
+        }
+        return high;
+      }
+      return baseSortedIndexBy(array, value, identity, retHighest);
+    }
 
-                        /**
-                         * This function is like
-                         * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
-                         * except that it includes inherited enumerable properties.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names.
-                         */
-                        function nativeKeysIn(object) {
-                            var result = [];
-                            if (object != null) {
-                                for (var key in Object(object)) {
-                                    result.push(key);
-                                }
-                            }
-                            return result;
-                        }
+    /**
+     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
+     * which invokes `iteratee` for `value` and each element of `array` to compute
+     * their sort ranking. The iteratee is invoked with one argument; (value).
+     *
+     * @private
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @param {Function} iteratee The iteratee invoked per element.
+     * @param {boolean} [retHighest] Specify returning the highest qualified index.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     */
+    function baseSortedIndexBy(array, value, iteratee, retHighest) {
+      var low = 0,
+          high = array == null ? 0 : array.length;
+      if (high === 0) {
+        return 0;
+      }
+
+      value = iteratee(value);
+      var valIsNaN = value !== value,
+          valIsNull = value === null,
+          valIsSymbol = isSymbol(value),
+          valIsUndefined = value === undefined;
+
+      while (low < high) {
+        var mid = nativeFloor((low + high) / 2),
+            computed = iteratee(array[mid]),
+            othIsDefined = computed !== undefined,
+            othIsNull = computed === null,
+            othIsReflexive = computed === computed,
+            othIsSymbol = isSymbol(computed);
+
+        if (valIsNaN) {
+          var setLow = retHighest || othIsReflexive;
+        } else if (valIsUndefined) {
+          setLow = othIsReflexive && (retHighest || othIsDefined);
+        } else if (valIsNull) {
+          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
+        } else if (valIsSymbol) {
+          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
+        } else if (othIsNull || othIsSymbol) {
+          setLow = false;
+        } else {
+          setLow = retHighest ? (computed <= value) : (computed < value);
+        }
+        if (setLow) {
+          low = mid + 1;
+        } else {
+          high = mid;
+        }
+      }
+      return nativeMin(high, MAX_ARRAY_INDEX);
+    }
 
-                        /**
-                         * Converts `value` to a string using `Object.prototype.toString`.
-                         *
-                         * @private
-                         * @param {*} value The value to convert.
-                         * @returns {string} Returns the converted string.
-                         */
-                        function objectToString(value) {
-                            return nativeObjectToString.call(value);
-                        }
+    /**
+     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
+     * support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array} array The array to inspect.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @returns {Array} Returns the new duplicate free array.
+     */
+    function baseSortedUniq(array, iteratee) {
+      var index = -1,
+          length = array.length,
+          resIndex = 0,
+          result = [];
+
+      while (++index < length) {
+        var value = array[index],
+            computed = iteratee ? iteratee(value) : value;
+
+        if (!index || !eq(computed, seen)) {
+          var seen = computed;
+          result[resIndex++] = value === 0 ? 0 : value;
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * A specialized version of `baseRest` which transforms the rest array.
-                         *
-                         * @private
-                         * @param {Function} func The function to apply a rest parameter to.
-                         * @param {number} [start=func.length-1] The start position of the rest parameter.
-                         * @param {Function} transform The rest array transform.
-                         * @returns {Function} Returns the new function.
-                         */
-                        function overRest(func, start, transform) {
-                            start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
-                            return function() {
-                                var args = arguments,
-                                    index = -1,
-                                    length = nativeMax(args.length - start, 0),
-                                    array = Array(length);
-
-                                while (++index < length) {
-                                    array[index] = args[start + index];
-                                }
-                                index = -1;
-                                var otherArgs = Array(start + 1);
-                                while (++index < start) {
-                                    otherArgs[index] = args[index];
-                                }
-                                otherArgs[start] = transform(array);
-                                return apply(func, this, otherArgs);
-                            };
-                        }
+    /**
+     * The base implementation of `_.toNumber` which doesn't ensure correct
+     * conversions of binary, hexadecimal, or octal string values.
+     *
+     * @private
+     * @param {*} value The value to process.
+     * @returns {number} Returns the number.
+     */
+    function baseToNumber(value) {
+      if (typeof value == 'number') {
+        return value;
+      }
+      if (isSymbol(value)) {
+        return NAN;
+      }
+      return +value;
+    }
 
-                        /**
-                         * Gets the parent value at `path` of `object`.
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {Array} path The path to get the parent value of.
-                         * @returns {*} Returns the parent value.
-                         */
-                        function parent(object, path) {
-                            return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
-                        }
+    /**
+     * The base implementation of `_.toString` which doesn't convert nullish
+     * values to empty strings.
+     *
+     * @private
+     * @param {*} value The value to process.
+     * @returns {string} Returns the string.
+     */
+    function baseToString(value) {
+      // Exit early for strings to avoid a performance hit in some environments.
+      if (typeof value == 'string') {
+        return value;
+      }
+      if (isArray(value)) {
+        // Recursively convert values (susceptible to call stack limits).
+        return arrayMap(value, baseToString) + '';
+      }
+      if (isSymbol(value)) {
+        return symbolToString ? symbolToString.call(value) : '';
+      }
+      var result = (value + '');
+      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+    }
 
-                        /**
-                         * Reorder `array` according to the specified indexes where the element at
-                         * the first index is assigned as the first element, the element at
-                         * the second index is assigned as the second element, and so on.
-                         *
-                         * @private
-                         * @param {Array} array The array to reorder.
-                         * @param {Array} indexes The arranged array indexes.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function reorder(array, indexes) {
-                            var arrLength = array.length,
-                                length = nativeMin(indexes.length, arrLength),
-                                oldArray = copyArray(array);
-
-                            while (length--) {
-                                var index = indexes[length];
-                                array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
-                            }
-                            return array;
-                        }
+    /**
+     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array} array The array to inspect.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new duplicate free array.
+     */
+    function baseUniq(array, iteratee, comparator) {
+      var index = -1,
+          includes = arrayIncludes,
+          length = array.length,
+          isCommon = true,
+          result = [],
+          seen = result;
+
+      if (comparator) {
+        isCommon = false;
+        includes = arrayIncludesWith;
+      }
+      else if (length >= LARGE_ARRAY_SIZE) {
+        var set = iteratee ? null : createSet(array);
+        if (set) {
+          return setToArray(set);
+        }
+        isCommon = false;
+        includes = cacheHas;
+        seen = new SetCache;
+      }
+      else {
+        seen = iteratee ? [] : result;
+      }
+      outer:
+      while (++index < length) {
+        var value = array[index],
+            computed = iteratee ? iteratee(value) : value;
+
+        value = (comparator || value !== 0) ? value : 0;
+        if (isCommon && computed === computed) {
+          var seenIndex = seen.length;
+          while (seenIndex--) {
+            if (seen[seenIndex] === computed) {
+              continue outer;
+            }
+          }
+          if (iteratee) {
+            seen.push(computed);
+          }
+          result.push(value);
+        }
+        else if (!includes(seen, computed, comparator)) {
+          if (seen !== result) {
+            seen.push(computed);
+          }
+          result.push(value);
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
-                         *
-                         * @private
-                         * @param {Object} object The object to query.
-                         * @param {string} key The key of the property to get.
-                         * @returns {*} Returns the property value.
-                         */
-                        function safeGet(object, key) {
-                            if (key === 'constructor' && typeof object[key] === 'function') {
-                                return;
-                            }
+    /**
+     * The base implementation of `_.unset`.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The property path to unset.
+     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
+     */
+    function baseUnset(object, path) {
+      path = castPath(path, object);
+      object = parent(object, path);
+      return object == null || delete object[toKey(last(path))];
+    }
 
-                            if (key == '__proto__') {
-                                return;
-                            }
+    /**
+     * The base implementation of `_.update`.
+     *
+     * @private
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to update.
+     * @param {Function} updater The function to produce the updated value.
+     * @param {Function} [customizer] The function to customize path creation.
+     * @returns {Object} Returns `object`.
+     */
+    function baseUpdate(object, path, updater, customizer) {
+      return baseSet(object, path, updater(baseGet(object, path)), customizer);
+    }
 
-                            return object[key];
-                        }
+    /**
+     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
+     * without support for iteratee shorthands.
+     *
+     * @private
+     * @param {Array} array The array to query.
+     * @param {Function} predicate The function invoked per iteration.
+     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Array} Returns the slice of `array`.
+     */
+    function baseWhile(array, predicate, isDrop, fromRight) {
+      var length = array.length,
+          index = fromRight ? length : -1;
+
+      while ((fromRight ? index-- : ++index < length) &&
+        predicate(array[index], index, array)) {}
+
+      return isDrop
+        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
+        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
+    }
 
-                        /**
-                         * Sets metadata for `func`.
-                         *
-                         * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
-                         * period of time, it will trip its breaker and transition to an identity
-                         * function to avoid garbage collection pauses in V8. See
-                         * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
-                         * for more details.
-                         *
-                         * @private
-                         * @param {Function} func The function to associate metadata with.
-                         * @param {*} data The metadata.
-                         * @returns {Function} Returns `func`.
-                         */
-                        var setData = shortOut(baseSetData);
-
-                        /**
-                         * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
-                         *
-                         * @private
-                         * @param {Function} func The function to delay.
-                         * @param {number} wait The number of milliseconds to delay invocation.
-                         * @returns {number|Object} Returns the timer id or timeout object.
-                         */
-                        var setTimeout = ctxSetTimeout || function(func, wait) {
-                            return root.setTimeout(func, wait);
-                        };
-
-                        /**
-                         * Sets the `toString` method of `func` to return `string`.
-                         *
-                         * @private
-                         * @param {Function} func The function to modify.
-                         * @param {Function} string The `toString` result.
-                         * @returns {Function} Returns `func`.
-                         */
-                        var setToString = shortOut(baseSetToString);
-
-                        /**
-                         * Sets the `toString` method of `wrapper` to mimic the source of `reference`
-                         * with wrapper details in a comment at the top of the source body.
-                         *
-                         * @private
-                         * @param {Function} wrapper The function to modify.
-                         * @param {Function} reference The reference function.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @returns {Function} Returns `wrapper`.
-                         */
-                        function setWrapToString(wrapper, reference, bitmask) {
-                            var source = (reference + '');
-                            return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
-                        }
+    /**
+     * The base implementation of `wrapperValue` which returns the result of
+     * performing a sequence of actions on the unwrapped `value`, where each
+     * successive action is supplied the return value of the previous.
+     *
+     * @private
+     * @param {*} value The unwrapped value.
+     * @param {Array} actions Actions to perform to resolve the unwrapped value.
+     * @returns {*} Returns the resolved value.
+     */
+    function baseWrapperValue(value, actions) {
+      var result = value;
+      if (result instanceof LazyWrapper) {
+        result = result.value();
+      }
+      return arrayReduce(actions, function(result, action) {
+        return action.func.apply(action.thisArg, arrayPush([result], action.args));
+      }, result);
+    }
 
-                        /**
-                         * Creates a function that'll short out and invoke `identity` instead
-                         * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
-                         * milliseconds.
-                         *
-                         * @private
-                         * @param {Function} func The function to restrict.
-                         * @returns {Function} Returns the new shortable function.
-                         */
-                        function shortOut(func) {
-                            var count = 0,
-                                lastCalled = 0;
-
-                            return function() {
-                                var stamp = nativeNow(),
-                                    remaining = HOT_SPAN - (stamp - lastCalled);
-
-                                lastCalled = stamp;
-                                if (remaining > 0) {
-                                    if (++count >= HOT_COUNT) {
-                                        return arguments[0];
-                                    }
-                                } else {
-                                    count = 0;
-                                }
-                                return func.apply(undefined, arguments);
-                            };
-                        }
+    /**
+     * The base implementation of methods like `_.xor`, without support for
+     * iteratee shorthands, that accepts an array of arrays to inspect.
+     *
+     * @private
+     * @param {Array} arrays The arrays to inspect.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of values.
+     */
+    function baseXor(arrays, iteratee, comparator) {
+      var length = arrays.length;
+      if (length < 2) {
+        return length ? baseUniq(arrays[0]) : [];
+      }
+      var index = -1,
+          result = Array(length);
+
+      while (++index < length) {
+        var array = arrays[index],
+            othIndex = -1;
+
+        while (++othIndex < length) {
+          if (othIndex != index) {
+            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
+          }
+        }
+      }
+      return baseUniq(baseFlatten(result, 1), iteratee, comparator);
+    }
 
-                        /**
-                         * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
-                         *
-                         * @private
-                         * @param {Array} array The array to shuffle.
-                         * @param {number} [size=array.length] The size of `array`.
-                         * @returns {Array} Returns `array`.
-                         */
-                        function shuffleSelf(array, size) {
-                            var index = -1,
-                                length = array.length,
-                                lastIndex = length - 1;
-
-                            size = size === undefined ? length : size;
-                            while (++index < size) {
-                                var rand = baseRandom(index, lastIndex),
-                                    value = array[rand];
-
-                                array[rand] = array[index];
-                                array[index] = value;
-                            }
-                            array.length = size;
-                            return array;
-                        }
+    /**
+     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
+     *
+     * @private
+     * @param {Array} props The property identifiers.
+     * @param {Array} values The property values.
+     * @param {Function} assignFunc The function to assign values.
+     * @returns {Object} Returns the new object.
+     */
+    function baseZipObject(props, values, assignFunc) {
+      var index = -1,
+          length = props.length,
+          valsLength = values.length,
+          result = {};
+
+      while (++index < length) {
+        var value = index < valsLength ? values[index] : undefined;
+        assignFunc(result, props[index], value);
+      }
+      return result;
+    }
 
-                        /**
-                         * Converts `string` to a property path array.
-                         *
-                         * @private
-                         * @param {string} string The string to convert.
-                         * @returns {Array} Returns the property path array.
-                         */
-                        var stringToPath = memoizeCapped(function(string) {
-                            var result = [];
-                            if (string.charCodeAt(0) === 46 /* . */) {
-                                result.push('');
-                            }
-                            string.replace(rePropName, function(match, number, quote, subString) {
-                                result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
-                            });
-                            return result;
-                        });
+    /**
+     * Casts `value` to an empty array if it's not an array like object.
+     *
+     * @private
+     * @param {*} value The value to inspect.
+     * @returns {Array|Object} Returns the cast array-like object.
+     */
+    function castArrayLikeObject(value) {
+      return isArrayLikeObject(value) ? value : [];
+    }
 
-                        /**
-                         * Converts `value` to a string key if it's not a string or symbol.
-                         *
-                         * @private
-                         * @param {*} value The value to inspect.
-                         * @returns {string|symbol} Returns the key.
-                         */
-                        function toKey(value) {
-                            if (typeof value == 'string' || isSymbol(value)) {
-                                return value;
-                            }
-                            var result = (value + '');
-                            return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-                        }
+    /**
+     * Casts `value` to `identity` if it's not a function.
+     *
+     * @private
+     * @param {*} value The value to inspect.
+     * @returns {Function} Returns cast function.
+     */
+    function castFunction(value) {
+      return typeof value == 'function' ? value : identity;
+    }
 
-                        /**
-                         * Converts `func` to its source code.
-                         *
-                         * @private
-                         * @param {Function} func The function to convert.
-                         * @returns {string} Returns the source code.
-                         */
-                        function toSource(func) {
-                            if (func != null) {
-                                try {
-                                    return funcToString.call(func);
-                                } catch (e) {}
-                                try {
-                                    return (func + '');
-                                } catch (e) {}
-                            }
-                            return '';
-                        }
+    /**
+     * Casts `value` to a path array if it's not one.
+     *
+     * @private
+     * @param {*} value The value to inspect.
+     * @param {Object} [object] The object to query keys on.
+     * @returns {Array} Returns the cast property path array.
+     */
+    function castPath(value, object) {
+      if (isArray(value)) {
+        return value;
+      }
+      return isKey(value, object) ? [value] : stringToPath(toString(value));
+    }
 
-                        /**
-                         * Updates wrapper `details` based on `bitmask` flags.
-                         *
-                         * @private
-                         * @returns {Array} details The details to modify.
-                         * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
-                         * @returns {Array} Returns `details`.
-                         */
-                        function updateWrapDetails(details, bitmask) {
-                            arrayEach(wrapFlags, function(pair) {
-                                var value = '_.' + pair[0];
-                                if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
-                                    details.push(value);
-                                }
-                            });
-                            return details.sort();
-                        }
+    /**
+     * A `baseRest` alias which can be replaced with `identity` by module
+     * replacement plugins.
+     *
+     * @private
+     * @type {Function}
+     * @param {Function} func The function to apply a rest parameter to.
+     * @returns {Function} Returns the new function.
+     */
+    var castRest = baseRest;
+
+    /**
+     * Casts `array` to a slice if it's needed.
+     *
+     * @private
+     * @param {Array} array The array to inspect.
+     * @param {number} start The start position.
+     * @param {number} [end=array.length] The end position.
+     * @returns {Array} Returns the cast slice.
+     */
+    function castSlice(array, start, end) {
+      var length = array.length;
+      end = end === undefined ? length : end;
+      return (!start && end >= length) ? array : baseSlice(array, start, end);
+    }
 
-                        /**
-                         * Creates a clone of `wrapper`.
-                         *
-                         * @private
-                         * @param {Object} wrapper The wrapper to clone.
-                         * @returns {Object} Returns the cloned wrapper.
-                         */
-                        function wrapperClone(wrapper) {
-                            if (wrapper instanceof LazyWrapper) {
-                                return wrapper.clone();
-                            }
-                            var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
-                            result.__actions__ = copyArray(wrapper.__actions__);
-                            result.__index__  = wrapper.__index__;
-                            result.__values__ = wrapper.__values__;
-                            return result;
-                        }
+    /**
+     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
+     *
+     * @private
+     * @param {number|Object} id The timer id or timeout object of the timer to clear.
+     */
+    var clearTimeout = ctxClearTimeout || function(id) {
+      return root.clearTimeout(id);
+    };
+
+    /**
+     * Creates a clone of  `buffer`.
+     *
+     * @private
+     * @param {Buffer} buffer The buffer to clone.
+     * @param {boolean} [isDeep] Specify a deep clone.
+     * @returns {Buffer} Returns the cloned buffer.
+     */
+    function cloneBuffer(buffer, isDeep) {
+      if (isDeep) {
+        return buffer.slice();
+      }
+      var length = buffer.length,
+          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
+
+      buffer.copy(result);
+      return result;
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates an array of elements split into groups the length of `size`.
-                         * If `array` can't be split evenly, the final chunk will be the remaining
-                         * elements.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to process.
-                         * @param {number} [size=1] The length of each chunk
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the new array of chunks.
-                         * @example
-                         *
-                         * _.chunk(['a', 'b', 'c', 'd'], 2);
-                         * // => [['a', 'b'], ['c', 'd']]
-                         *
-                         * _.chunk(['a', 'b', 'c', 'd'], 3);
-                         * // => [['a', 'b', 'c'], ['d']]
-                         */
-                        function chunk(array, size, guard) {
-                            if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
-                                size = 1;
-                            } else {
-                                size = nativeMax(toInteger(size), 0);
-                            }
-                            var length = array == null ? 0 : array.length;
-                            if (!length || size < 1) {
-                                return [];
-                            }
-                            var index = 0,
-                                resIndex = 0,
-                                result = Array(nativeCeil(length / size));
+    /**
+     * Creates a clone of `arrayBuffer`.
+     *
+     * @private
+     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
+     * @returns {ArrayBuffer} Returns the cloned array buffer.
+     */
+    function cloneArrayBuffer(arrayBuffer) {
+      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
+      new Uint8Array(result).set(new Uint8Array(arrayBuffer));
+      return result;
+    }
 
-                            while (index < length) {
-                                result[resIndex++] = baseSlice(array, index, (index += size));
-                            }
-                            return result;
-                        }
+    /**
+     * Creates a clone of `dataView`.
+     *
+     * @private
+     * @param {Object} dataView The data view to clone.
+     * @param {boolean} [isDeep] Specify a deep clone.
+     * @returns {Object} Returns the cloned data view.
+     */
+    function cloneDataView(dataView, isDeep) {
+      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
+      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
+    }
 
-                        /**
-                         * Creates an array with all falsey values removed. The values `false`, `null`,
-                         * `0`, `""`, `undefined`, and `NaN` are falsey.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to compact.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @example
-                         *
-                         * _.compact([0, 1, false, 2, '', 3]);
-                         * // => [1, 2, 3]
-                         */
-                        function compact(array) {
-                            var index = -1,
-                                length = array == null ? 0 : array.length,
-                                resIndex = 0,
-                                result = [];
-
-                            while (++index < length) {
-                                var value = array[index];
-                                if (value) {
-                                    result[resIndex++] = value;
-                                }
-                            }
-                            return result;
-                        }
+    /**
+     * Creates a clone of `regexp`.
+     *
+     * @private
+     * @param {Object} regexp The regexp to clone.
+     * @returns {Object} Returns the cloned regexp.
+     */
+    function cloneRegExp(regexp) {
+      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
+      result.lastIndex = regexp.lastIndex;
+      return result;
+    }
 
-                        /**
-                         * Creates a new array concatenating `array` with any additional arrays
-                         * and/or values.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to concatenate.
-                         * @param {...*} [values] The values to concatenate.
-                         * @returns {Array} Returns the new concatenated array.
-                         * @example
-                         *
-                         * var array = [1];
-                         * var other = _.concat(array, 2, [3], [[4]]);
-                         *
-                         * console.log(other);
-                         * // => [1, 2, 3, [4]]
-                         *
-                         * console.log(array);
-                         * // => [1]
-                         */
-                        function concat() {
-                            var length = arguments.length;
-                            if (!length) {
-                                return [];
-                            }
-                            var args = Array(length - 1),
-                                array = arguments[0],
-                                index = length;
+    /**
+     * Creates a clone of the `symbol` object.
+     *
+     * @private
+     * @param {Object} symbol The symbol object to clone.
+     * @returns {Object} Returns the cloned symbol object.
+     */
+    function cloneSymbol(symbol) {
+      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
+    }
 
-                            while (index--) {
-                                args[index - 1] = arguments[index];
-                            }
-                            return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
-                        }
+    /**
+     * Creates a clone of `typedArray`.
+     *
+     * @private
+     * @param {Object} typedArray The typed array to clone.
+     * @param {boolean} [isDeep] Specify a deep clone.
+     * @returns {Object} Returns the cloned typed array.
+     */
+    function cloneTypedArray(typedArray, isDeep) {
+      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
+      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
+    }
 
-                        /**
-                         * Creates an array of `array` values not included in the other given arrays
-                         * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons. The order and references of result values are
-                         * determined by the first array.
-                         *
-                         * **Note:** Unlike `_.pullAll`, this method returns a new array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {...Array} [values] The values to exclude.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @see _.without, _.xor
-                         * @example
-                         *
-                         * _.difference([2, 1], [2, 3]);
-                         * // => [1]
-                         */
-                        var difference = baseRest(function(array, values) {
-                            return isArrayLikeObject(array)
-                                ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
-                                : [];
-                        });
+    /**
+     * Compares values to sort them in ascending order.
+     *
+     * @private
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {number} Returns the sort order indicator for `value`.
+     */
+    function compareAscending(value, other) {
+      if (value !== other) {
+        var valIsDefined = value !== undefined,
+            valIsNull = value === null,
+            valIsReflexive = value === value,
+            valIsSymbol = isSymbol(value);
+
+        var othIsDefined = other !== undefined,
+            othIsNull = other === null,
+            othIsReflexive = other === other,
+            othIsSymbol = isSymbol(other);
+
+        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
+            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
+            (valIsNull && othIsDefined && othIsReflexive) ||
+            (!valIsDefined && othIsReflexive) ||
+            !valIsReflexive) {
+          return 1;
+        }
+        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
+            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
+            (othIsNull && valIsDefined && valIsReflexive) ||
+            (!othIsDefined && valIsReflexive) ||
+            !othIsReflexive) {
+          return -1;
+        }
+      }
+      return 0;
+    }
 
-                        /**
-                         * This method is like `_.difference` except that it accepts `iteratee` which
-                         * is invoked for each element of `array` and `values` to generate the criterion
-                         * by which they're compared. The order and references of result values are
-                         * determined by the first array. The iteratee is invoked with one argument:
-                         * (value).
-                         *
-                         * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {...Array} [values] The values to exclude.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @example
-                         *
-                         * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-                         * // => [1.2]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
-                         * // => [{ 'x': 2 }]
-                         */
-                        var differenceBy = baseRest(function(array, values) {
-                            var iteratee = last(values);
-                            if (isArrayLikeObject(iteratee)) {
-                                iteratee = undefined;
-                            }
-                            return isArrayLikeObject(array)
-                                ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
-                                : [];
-                        });
+    /**
+     * Used by `_.orderBy` to compare multiple properties of a value to another
+     * and stable sort them.
+     *
+     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
+     * specify an order of "desc" for descending or "asc" for ascending sort order
+     * of corresponding values.
+     *
+     * @private
+     * @param {Object} object The object to compare.
+     * @param {Object} other The other object to compare.
+     * @param {boolean[]|string[]} orders The order to sort by for each property.
+     * @returns {number} Returns the sort order indicator for `object`.
+     */
+    function compareMultiple(object, other, orders) {
+      var index = -1,
+          objCriteria = object.criteria,
+          othCriteria = other.criteria,
+          length = objCriteria.length,
+          ordersLength = orders.length;
+
+      while (++index < length) {
+        var result = compareAscending(objCriteria[index], othCriteria[index]);
+        if (result) {
+          if (index >= ordersLength) {
+            return result;
+          }
+          var order = orders[index];
+          return result * (order == 'desc' ? -1 : 1);
+        }
+      }
+      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
+      // that causes it, under certain circumstances, to provide the same value for
+      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
+      // for more details.
+      //
+      // This also ensures a stable sort in V8 and other engines.
+      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
+      return object.index - other.index;
+    }
 
-                        /**
-                         * This method is like `_.difference` except that it accepts `comparator`
-                         * which is invoked to compare elements of `array` to `values`. The order and
-                         * references of result values are determined by the first array. The comparator
-                         * is invoked with two arguments: (arrVal, othVal).
-                         *
-                         * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {...Array} [values] The values to exclude.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-                         *
-                         * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
-                         * // => [{ 'x': 2, 'y': 1 }]
-                         */
-                        var differenceWith = baseRest(function(array, values) {
-                            var comparator = last(values);
-                            if (isArrayLikeObject(comparator)) {
-                                comparator = undefined;
-                            }
-                            return isArrayLikeObject(array)
-                                ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
-                                : [];
-                        });
+    /**
+     * Creates an array that is the composition of partially applied arguments,
+     * placeholders, and provided arguments into a single array of arguments.
+     *
+     * @private
+     * @param {Array} args The provided arguments.
+     * @param {Array} partials The arguments to prepend to those provided.
+     * @param {Array} holders The `partials` placeholder indexes.
+     * @params {boolean} [isCurried] Specify composing for a curried function.
+     * @returns {Array} Returns the new array of composed arguments.
+     */
+    function composeArgs(args, partials, holders, isCurried) {
+      var argsIndex = -1,
+          argsLength = args.length,
+          holdersLength = holders.length,
+          leftIndex = -1,
+          leftLength = partials.length,
+          rangeLength = nativeMax(argsLength - holdersLength, 0),
+          result = Array(leftLength + rangeLength),
+          isUncurried = !isCurried;
+
+      while (++leftIndex < leftLength) {
+        result[leftIndex] = partials[leftIndex];
+      }
+      while (++argsIndex < holdersLength) {
+        if (isUncurried || argsIndex < argsLength) {
+          result[holders[argsIndex]] = args[argsIndex];
+        }
+      }
+      while (rangeLength--) {
+        result[leftIndex++] = args[argsIndex++];
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates a slice of `array` with `n` elements dropped from the beginning.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.5.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {number} [n=1] The number of elements to drop.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.drop([1, 2, 3]);
-                         * // => [2, 3]
-                         *
-                         * _.drop([1, 2, 3], 2);
-                         * // => [3]
-                         *
-                         * _.drop([1, 2, 3], 5);
-                         * // => []
-                         *
-                         * _.drop([1, 2, 3], 0);
-                         * // => [1, 2, 3]
-                         */
-                        function drop(array, n, guard) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            n = (guard || n === undefined) ? 1 : toInteger(n);
-                            return baseSlice(array, n < 0 ? 0 : n, length);
-                        }
+    /**
+     * This function is like `composeArgs` except that the arguments composition
+     * is tailored for `_.partialRight`.
+     *
+     * @private
+     * @param {Array} args The provided arguments.
+     * @param {Array} partials The arguments to append to those provided.
+     * @param {Array} holders The `partials` placeholder indexes.
+     * @params {boolean} [isCurried] Specify composing for a curried function.
+     * @returns {Array} Returns the new array of composed arguments.
+     */
+    function composeArgsRight(args, partials, holders, isCurried) {
+      var argsIndex = -1,
+          argsLength = args.length,
+          holdersIndex = -1,
+          holdersLength = holders.length,
+          rightIndex = -1,
+          rightLength = partials.length,
+          rangeLength = nativeMax(argsLength - holdersLength, 0),
+          result = Array(rangeLength + rightLength),
+          isUncurried = !isCurried;
+
+      while (++argsIndex < rangeLength) {
+        result[argsIndex] = args[argsIndex];
+      }
+      var offset = argsIndex;
+      while (++rightIndex < rightLength) {
+        result[offset + rightIndex] = partials[rightIndex];
+      }
+      while (++holdersIndex < holdersLength) {
+        if (isUncurried || argsIndex < argsLength) {
+          result[offset + holders[holdersIndex]] = args[argsIndex++];
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates a slice of `array` with `n` elements dropped from the end.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {number} [n=1] The number of elements to drop.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.dropRight([1, 2, 3]);
-                         * // => [1, 2]
-                         *
-                         * _.dropRight([1, 2, 3], 2);
-                         * // => [1]
-                         *
-                         * _.dropRight([1, 2, 3], 5);
-                         * // => []
-                         *
-                         * _.dropRight([1, 2, 3], 0);
-                         * // => [1, 2, 3]
-                         */
-                        function dropRight(array, n, guard) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            n = (guard || n === undefined) ? 1 : toInteger(n);
-                            n = length - n;
-                            return baseSlice(array, 0, n < 0 ? 0 : n);
-                        }
+    /**
+     * Copies the values of `source` to `array`.
+     *
+     * @private
+     * @param {Array} source The array to copy values from.
+     * @param {Array} [array=[]] The array to copy values to.
+     * @returns {Array} Returns `array`.
+     */
+    function copyArray(source, array) {
+      var index = -1,
+          length = source.length;
+
+      array || (array = Array(length));
+      while (++index < length) {
+        array[index] = source[index];
+      }
+      return array;
+    }
 
-                        /**
-                         * Creates a slice of `array` excluding elements dropped from the end.
-                         * Elements are dropped until `predicate` returns falsey. The predicate is
-                         * invoked with three arguments: (value, index, array).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': true },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': false }
-                         * ];
-                         *
-                         * _.dropRightWhile(users, function(o) { return !o.active; });
-                         * // => objects for ['barney']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
-                         * // => objects for ['barney', 'fred']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.dropRightWhile(users, ['active', false]);
-                         * // => objects for ['barney']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.dropRightWhile(users, 'active');
-                         * // => objects for ['barney', 'fred', 'pebbles']
-                         */
-                        function dropRightWhile(array, predicate) {
-                            return (array && array.length)
-                                ? baseWhile(array, getIteratee(predicate, 3), true, true)
-                                : [];
-                        }
+    /**
+     * Copies properties of `source` to `object`.
+     *
+     * @private
+     * @param {Object} source The object to copy properties from.
+     * @param {Array} props The property identifiers to copy.
+     * @param {Object} [object={}] The object to copy properties to.
+     * @param {Function} [customizer] The function to customize copied values.
+     * @returns {Object} Returns `object`.
+     */
+    function copyObject(source, props, object, customizer) {
+      var isNew = !object;
+      object || (object = {});
+
+      var index = -1,
+          length = props.length;
+
+      while (++index < length) {
+        var key = props[index];
+
+        var newValue = customizer
+          ? customizer(object[key], source[key], key, object, source)
+          : undefined;
+
+        if (newValue === undefined) {
+          newValue = source[key];
+        }
+        if (isNew) {
+          baseAssignValue(object, key, newValue);
+        } else {
+          assignValue(object, key, newValue);
+        }
+      }
+      return object;
+    }
 
-                        /**
-                         * Creates a slice of `array` excluding elements dropped from the beginning.
-                         * Elements are dropped until `predicate` returns falsey. The predicate is
-                         * invoked with three arguments: (value, index, array).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': false },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': true }
-                         * ];
-                         *
-                         * _.dropWhile(users, function(o) { return !o.active; });
-                         * // => objects for ['pebbles']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.dropWhile(users, { 'user': 'barney', 'active': false });
-                         * // => objects for ['fred', 'pebbles']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.dropWhile(users, ['active', false]);
-                         * // => objects for ['pebbles']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.dropWhile(users, 'active');
-                         * // => objects for ['barney', 'fred', 'pebbles']
-                         */
-                        function dropWhile(array, predicate) {
-                            return (array && array.length)
-                                ? baseWhile(array, getIteratee(predicate, 3), true)
-                                : [];
-                        }
+    /**
+     * Copies own symbols of `source` to `object`.
+     *
+     * @private
+     * @param {Object} source The object to copy symbols from.
+     * @param {Object} [object={}] The object to copy symbols to.
+     * @returns {Object} Returns `object`.
+     */
+    function copySymbols(source, object) {
+      return copyObject(source, getSymbols(source), object);
+    }
 
-                        /**
-                         * Fills elements of `array` with `value` from `start` up to, but not
-                         * including, `end`.
-                         *
-                         * **Note:** This method mutates `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.2.0
-                         * @category Array
-                         * @param {Array} array The array to fill.
-                         * @param {*} value The value to fill `array` with.
-                         * @param {number} [start=0] The start position.
-                         * @param {number} [end=array.length] The end position.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = [1, 2, 3];
-                         *
-                         * _.fill(array, 'a');
-                         * console.log(array);
-                         * // => ['a', 'a', 'a']
-                         *
-                         * _.fill(Array(3), 2);
-                         * // => [2, 2, 2]
-                         *
-                         * _.fill([4, 6, 8, 10], '*', 1, 3);
-                         * // => [4, '*', '*', 10]
-                         */
-                        function fill(array, value, start, end) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
-                                start = 0;
-                                end = length;
-                            }
-                            return baseFill(array, value, start, end);
-                        }
+    /**
+     * Copies own and inherited symbols of `source` to `object`.
+     *
+     * @private
+     * @param {Object} source The object to copy symbols from.
+     * @param {Object} [object={}] The object to copy symbols to.
+     * @returns {Object} Returns `object`.
+     */
+    function copySymbolsIn(source, object) {
+      return copyObject(source, getSymbolsIn(source), object);
+    }
 
-                        /**
-                         * This method is like `_.find` except that it returns the index of the first
-                         * element `predicate` returns truthy for instead of the element itself.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param {number} [fromIndex=0] The index to search from.
-                         * @returns {number} Returns the index of the found element, else `-1`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': false },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': true }
-                         * ];
-                         *
-                         * _.findIndex(users, function(o) { return o.user == 'barney'; });
-                         * // => 0
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.findIndex(users, { 'user': 'fred', 'active': false });
-                         * // => 1
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.findIndex(users, ['active', false]);
-                         * // => 0
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.findIndex(users, 'active');
-                         * // => 2
-                         */
-                        function findIndex(array, predicate, fromIndex) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return -1;
-                            }
-                            var index = fromIndex == null ? 0 : toInteger(fromIndex);
-                            if (index < 0) {
-                                index = nativeMax(length + index, 0);
-                            }
-                            return baseFindIndex(array, getIteratee(predicate, 3), index);
-                        }
+    /**
+     * Creates a function like `_.groupBy`.
+     *
+     * @private
+     * @param {Function} setter The function to set accumulator values.
+     * @param {Function} [initializer] The accumulator object initializer.
+     * @returns {Function} Returns the new aggregator function.
+     */
+    function createAggregator(setter, initializer) {
+      return function(collection, iteratee) {
+        var func = isArray(collection) ? arrayAggregator : baseAggregator,
+            accumulator = initializer ? initializer() : {};
+
+        return func(collection, setter, getIteratee(iteratee, 2), accumulator);
+      };
+    }
 
-                        /**
-                         * This method is like `_.findIndex` except that it iterates over elements
-                         * of `collection` from right to left.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param {number} [fromIndex=array.length-1] The index to search from.
-                         * @returns {number} Returns the index of the found element, else `-1`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': true },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': false }
-                         * ];
-                         *
-                         * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
-                         * // => 2
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.findLastIndex(users, { 'user': 'barney', 'active': true });
-                         * // => 0
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.findLastIndex(users, ['active', false]);
-                         * // => 2
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.findLastIndex(users, 'active');
-                         * // => 0
-                         */
-                        function findLastIndex(array, predicate, fromIndex) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return -1;
-                            }
-                            var index = length - 1;
-                            if (fromIndex !== undefined) {
-                                index = toInteger(fromIndex);
-                                index = fromIndex < 0
-                                    ? nativeMax(length + index, 0)
-                                    : nativeMin(index, length - 1);
-                            }
-                            return baseFindIndex(array, getIteratee(predicate, 3), index, true);
-                        }
+    /**
+     * Creates a function like `_.assign`.
+     *
+     * @private
+     * @param {Function} assigner The function to assign values.
+     * @returns {Function} Returns the new assigner function.
+     */
+    function createAssigner(assigner) {
+      return baseRest(function(object, sources) {
+        var index = -1,
+            length = sources.length,
+            customizer = length > 1 ? sources[length - 1] : undefined,
+            guard = length > 2 ? sources[2] : undefined;
+
+        customizer = (assigner.length > 3 && typeof customizer == 'function')
+          ? (length--, customizer)
+          : undefined;
+
+        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+          customizer = length < 3 ? undefined : customizer;
+          length = 1;
+        }
+        object = Object(object);
+        while (++index < length) {
+          var source = sources[index];
+          if (source) {
+            assigner(object, source, index, customizer);
+          }
+        }
+        return object;
+      });
+    }
 
-                        /**
-                         * Flattens `array` a single level deep.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to flatten.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * _.flatten([1, [2, [3, [4]], 5]]);
-                         * // => [1, 2, [3, [4]], 5]
-                         */
-                        function flatten(array) {
-                            var length = array == null ? 0 : array.length;
-                            return length ? baseFlatten(array, 1) : [];
-                        }
+    /**
+     * Creates a `baseEach` or `baseEachRight` function.
+     *
+     * @private
+     * @param {Function} eachFunc The function to iterate over a collection.
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Function} Returns the new base function.
+     */
+    function createBaseEach(eachFunc, fromRight) {
+      return function(collection, iteratee) {
+        if (collection == null) {
+          return collection;
+        }
+        if (!isArrayLike(collection)) {
+          return eachFunc(collection, iteratee);
+        }
+        var length = collection.length,
+            index = fromRight ? length : -1,
+            iterable = Object(collection);
+
+        while ((fromRight ? index-- : ++index < length)) {
+          if (iteratee(iterable[index], index, iterable) === false) {
+            break;
+          }
+        }
+        return collection;
+      };
+    }
 
-                        /**
-                         * Recursively flattens `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to flatten.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * _.flattenDeep([1, [2, [3, [4]], 5]]);
-                         * // => [1, 2, 3, 4, 5]
-                         */
-                        function flattenDeep(array) {
-                            var length = array == null ? 0 : array.length;
-                            return length ? baseFlatten(array, INFINITY) : [];
-                        }
+    /**
+     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
+     *
+     * @private
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Function} Returns the new base function.
+     */
+    function createBaseFor(fromRight) {
+      return function(object, iteratee, keysFunc) {
+        var index = -1,
+            iterable = Object(object),
+            props = keysFunc(object),
+            length = props.length;
+
+        while (length--) {
+          var key = props[fromRight ? length : ++index];
+          if (iteratee(iterable[key], key, iterable) === false) {
+            break;
+          }
+        }
+        return object;
+      };
+    }
 
-                        /**
-                         * Recursively flatten `array` up to `depth` times.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.4.0
-                         * @category Array
-                         * @param {Array} array The array to flatten.
-                         * @param {number} [depth=1] The maximum recursion depth.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * var array = [1, [2, [3, [4]], 5]];
-                         *
-                         * _.flattenDepth(array, 1);
-                         * // => [1, 2, [3, [4]], 5]
-                         *
-                         * _.flattenDepth(array, 2);
-                         * // => [1, 2, 3, [4], 5]
-                         */
-                        function flattenDepth(array, depth) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            depth = depth === undefined ? 1 : toInteger(depth);
-                            return baseFlatten(array, depth);
-                        }
+    /**
+     * Creates a function that wraps `func` to invoke it with the optional `this`
+     * binding of `thisArg`.
+     *
+     * @private
+     * @param {Function} func The function to wrap.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @param {*} [thisArg] The `this` binding of `func`.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createBind(func, bitmask, thisArg) {
+      var isBind = bitmask & WRAP_BIND_FLAG,
+          Ctor = createCtor(func);
+
+      function wrapper() {
+        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+        return fn.apply(isBind ? thisArg : this, arguments);
+      }
+      return wrapper;
+    }
 
-                        /**
-                         * The inverse of `_.toPairs`; this method returns an object composed
-                         * from key-value `pairs`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} pairs The key-value pairs.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * _.fromPairs([['a', 1], ['b', 2]]);
-                         * // => { 'a': 1, 'b': 2 }
-                         */
-                        function fromPairs(pairs) {
-                            var index = -1,
-                                length = pairs == null ? 0 : pairs.length,
-                                result = {};
-
-                            while (++index < length) {
-                                var pair = pairs[index];
-                                result[pair[0]] = pair[1];
-                            }
-                            return result;
-                        }
+    /**
+     * Creates a function like `_.lowerFirst`.
+     *
+     * @private
+     * @param {string} methodName The name of the `String` case method to use.
+     * @returns {Function} Returns the new case function.
+     */
+    function createCaseFirst(methodName) {
+      return function(string) {
+        string = toString(string);
+
+        var strSymbols = hasUnicode(string)
+          ? stringToArray(string)
+          : undefined;
+
+        var chr = strSymbols
+          ? strSymbols[0]
+          : string.charAt(0);
+
+        var trailing = strSymbols
+          ? castSlice(strSymbols, 1).join('')
+          : string.slice(1);
+
+        return chr[methodName]() + trailing;
+      };
+    }
 
-                        /**
-                         * Gets the first element of `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @alias first
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @returns {*} Returns the first element of `array`.
-                         * @example
-                         *
-                         * _.head([1, 2, 3]);
-                         * // => 1
-                         *
-                         * _.head([]);
-                         * // => undefined
-                         */
-                        function head(array) {
-                            return (array && array.length) ? array[0] : undefined;
-                        }
+    /**
+     * Creates a function like `_.camelCase`.
+     *
+     * @private
+     * @param {Function} callback The function to combine each word.
+     * @returns {Function} Returns the new compounder function.
+     */
+    function createCompounder(callback) {
+      return function(string) {
+        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
+      };
+    }
 
-                        /**
-                         * Gets the index at which the first occurrence of `value` is found in `array`
-                         * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons. If `fromIndex` is negative, it's used as the
-                         * offset from the end of `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {*} value The value to search for.
-                         * @param {number} [fromIndex=0] The index to search from.
-                         * @returns {number} Returns the index of the matched value, else `-1`.
-                         * @example
-                         *
-                         * _.indexOf([1, 2, 1, 2], 2);
-                         * // => 1
-                         *
-                         * // Search from the `fromIndex`.
-                         * _.indexOf([1, 2, 1, 2], 2, 2);
-                         * // => 3
-                         */
-                        function indexOf(array, value, fromIndex) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return -1;
-                            }
-                            var index = fromIndex == null ? 0 : toInteger(fromIndex);
-                            if (index < 0) {
-                                index = nativeMax(length + index, 0);
-                            }
-                            return baseIndexOf(array, value, index);
-                        }
+    /**
+     * Creates a function that produces an instance of `Ctor` regardless of
+     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
+     *
+     * @private
+     * @param {Function} Ctor The constructor to wrap.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createCtor(Ctor) {
+      return function() {
+        // Use a `switch` statement to work with class constructors. See
+        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
+        // for more details.
+        var args = arguments;
+        switch (args.length) {
+          case 0: return new Ctor;
+          case 1: return new Ctor(args[0]);
+          case 2: return new Ctor(args[0], args[1]);
+          case 3: return new Ctor(args[0], args[1], args[2]);
+          case 4: return new Ctor(args[0], args[1], args[2], args[3]);
+          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
+          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
+          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
+        }
+        var thisBinding = baseCreate(Ctor.prototype),
+            result = Ctor.apply(thisBinding, args);
 
-                        /**
-                         * Gets all but the last element of `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.initial([1, 2, 3]);
-                         * // => [1, 2]
-                         */
-                        function initial(array) {
-                            var length = array == null ? 0 : array.length;
-                            return length ? baseSlice(array, 0, -1) : [];
-                        }
+        // Mimic the constructor's `return` behavior.
+        // See https://es5.github.io/#x13.2.2 for more details.
+        return isObject(result) ? result : thisBinding;
+      };
+    }
 
-                        /**
-                         * Creates an array of unique values that are included in all given arrays
-                         * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons. The order and references of result values are
-                         * determined by the first array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @returns {Array} Returns the new array of intersecting values.
-                         * @example
-                         *
-                         * _.intersection([2, 1], [2, 3]);
-                         * // => [2]
-                         */
-                        var intersection = baseRest(function(arrays) {
-                            var mapped = arrayMap(arrays, castArrayLikeObject);
-                            return (mapped.length && mapped[0] === arrays[0])
-                                ? baseIntersection(mapped)
-                                : [];
-                        });
+    /**
+     * Creates a function that wraps `func` to enable currying.
+     *
+     * @private
+     * @param {Function} func The function to wrap.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @param {number} arity The arity of `func`.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createCurry(func, bitmask, arity) {
+      var Ctor = createCtor(func);
+
+      function wrapper() {
+        var length = arguments.length,
+            args = Array(length),
+            index = length,
+            placeholder = getHolder(wrapper);
+
+        while (index--) {
+          args[index] = arguments[index];
+        }
+        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
+          ? []
+          : replaceHolders(args, placeholder);
+
+        length -= holders.length;
+        if (length < arity) {
+          return createRecurry(
+            func, bitmask, createHybrid, wrapper.placeholder, undefined,
+            args, holders, undefined, undefined, arity - length);
+        }
+        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+        return apply(fn, this, args);
+      }
+      return wrapper;
+    }
 
-                        /**
-                         * This method is like `_.intersection` except that it accepts `iteratee`
-                         * which is invoked for each element of each `arrays` to generate the criterion
-                         * by which they're compared. The order and references of result values are
-                         * determined by the first array. The iteratee is invoked with one argument:
-                         * (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns the new array of intersecting values.
-                         * @example
-                         *
-                         * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-                         * // => [2.1]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-                         * // => [{ 'x': 1 }]
-                         */
-                        var intersectionBy = baseRest(function(arrays) {
-                            var iteratee = last(arrays),
-                                mapped = arrayMap(arrays, castArrayLikeObject);
-
-                            if (iteratee === last(mapped)) {
-                                iteratee = undefined;
-                            } else {
-                                mapped.pop();
-                            }
-                            return (mapped.length && mapped[0] === arrays[0])
-                                ? baseIntersection(mapped, getIteratee(iteratee, 2))
-                                : [];
-                        });
+    /**
+     * Creates a `_.find` or `_.findLast` function.
+     *
+     * @private
+     * @param {Function} findIndexFunc The function to find the collection index.
+     * @returns {Function} Returns the new find function.
+     */
+    function createFind(findIndexFunc) {
+      return function(collection, predicate, fromIndex) {
+        var iterable = Object(collection);
+        if (!isArrayLike(collection)) {
+          var iteratee = getIteratee(predicate, 3);
+          collection = keys(collection);
+          predicate = function(key) { return iteratee(iterable[key], key, iterable); };
+        }
+        var index = findIndexFunc(collection, predicate, fromIndex);
+        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
+      };
+    }
 
-                        /**
-                         * This method is like `_.intersection` except that it accepts `comparator`
-                         * which is invoked to compare elements of `arrays`. The order and references
-                         * of result values are determined by the first array. The comparator is
-                         * invoked with two arguments: (arrVal, othVal).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of intersecting values.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-                         * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-                         *
-                         * _.intersectionWith(objects, others, _.isEqual);
-                         * // => [{ 'x': 1, 'y': 2 }]
-                         */
-                        var intersectionWith = baseRest(function(arrays) {
-                            var comparator = last(arrays),
-                                mapped = arrayMap(arrays, castArrayLikeObject);
-
-                            comparator = typeof comparator == 'function' ? comparator : undefined;
-                            if (comparator) {
-                                mapped.pop();
-                            }
-                            return (mapped.length && mapped[0] === arrays[0])
-                                ? baseIntersection(mapped, undefined, comparator)
-                                : [];
-                        });
+    /**
+     * Creates a `_.flow` or `_.flowRight` function.
+     *
+     * @private
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Function} Returns the new flow function.
+     */
+    function createFlow(fromRight) {
+      return flatRest(function(funcs) {
+        var length = funcs.length,
+            index = length,
+            prereq = LodashWrapper.prototype.thru;
+
+        if (fromRight) {
+          funcs.reverse();
+        }
+        while (index--) {
+          var func = funcs[index];
+          if (typeof func != 'function') {
+            throw new TypeError(FUNC_ERROR_TEXT);
+          }
+          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
+            var wrapper = new LodashWrapper([], true);
+          }
+        }
+        index = wrapper ? index : length;
+        while (++index < length) {
+          func = funcs[index];
+
+          var funcName = getFuncName(func),
+              data = funcName == 'wrapper' ? getData(func) : undefined;
+
+          if (data && isLaziable(data[0]) &&
+                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
+                !data[4].length && data[9] == 1
+              ) {
+            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
+          } else {
+            wrapper = (func.length == 1 && isLaziable(func))
+              ? wrapper[funcName]()
+              : wrapper.thru(func);
+          }
+        }
+        return function() {
+          var args = arguments,
+              value = args[0];
+
+          if (wrapper && args.length == 1 && isArray(value)) {
+            return wrapper.plant(value).value();
+          }
+          var index = 0,
+              result = length ? funcs[index].apply(this, args) : value;
+
+          while (++index < length) {
+            result = funcs[index].call(this, result);
+          }
+          return result;
+        };
+      });
+    }
 
-                        /**
-                         * Converts all elements in `array` into a string separated by `separator`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to convert.
-                         * @param {string} [separator=','] The element separator.
-                         * @returns {string} Returns the joined string.
-                         * @example
-                         *
-                         * _.join(['a', 'b', 'c'], '~');
-                         * // => 'a~b~c'
-                         */
-                        function join(array, separator) {
-                            return array == null ? '' : nativeJoin.call(array, separator);
-                        }
+    /**
+     * Creates a function that wraps `func` to invoke it with optional `this`
+     * binding of `thisArg`, partial application, and currying.
+     *
+     * @private
+     * @param {Function|string} func The function or method name to wrap.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @param {*} [thisArg] The `this` binding of `func`.
+     * @param {Array} [partials] The arguments to prepend to those provided to
+     *  the new function.
+     * @param {Array} [holders] The `partials` placeholder indexes.
+     * @param {Array} [partialsRight] The arguments to append to those provided
+     *  to the new function.
+     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
+     * @param {Array} [argPos] The argument positions of the new function.
+     * @param {number} [ary] The arity cap of `func`.
+     * @param {number} [arity] The arity of `func`.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
+      var isAry = bitmask & WRAP_ARY_FLAG,
+          isBind = bitmask & WRAP_BIND_FLAG,
+          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
+          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
+          isFlip = bitmask & WRAP_FLIP_FLAG,
+          Ctor = isBindKey ? undefined : createCtor(func);
+
+      function wrapper() {
+        var length = arguments.length,
+            args = Array(length),
+            index = length;
+
+        while (index--) {
+          args[index] = arguments[index];
+        }
+        if (isCurried) {
+          var placeholder = getHolder(wrapper),
+              holdersCount = countHolders(args, placeholder);
+        }
+        if (partials) {
+          args = composeArgs(args, partials, holders, isCurried);
+        }
+        if (partialsRight) {
+          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
+        }
+        length -= holdersCount;
+        if (isCurried && length < arity) {
+          var newHolders = replaceHolders(args, placeholder);
+          return createRecurry(
+            func, bitmask, createHybrid, wrapper.placeholder, thisArg,
+            args, newHolders, argPos, ary, arity - length
+          );
+        }
+        var thisBinding = isBind ? thisArg : this,
+            fn = isBindKey ? thisBinding[func] : func;
+
+        length = args.length;
+        if (argPos) {
+          args = reorder(args, argPos);
+        } else if (isFlip && length > 1) {
+          args.reverse();
+        }
+        if (isAry && ary < length) {
+          args.length = ary;
+        }
+        if (this && this !== root && this instanceof wrapper) {
+          fn = Ctor || createCtor(fn);
+        }
+        return fn.apply(thisBinding, args);
+      }
+      return wrapper;
+    }
 
-                        /**
-                         * Gets the last element of `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @returns {*} Returns the last element of `array`.
-                         * @example
-                         *
-                         * _.last([1, 2, 3]);
-                         * // => 3
-                         */
-                        function last(array) {
-                            var length = array == null ? 0 : array.length;
-                            return length ? array[length - 1] : undefined;
-                        }
+    /**
+     * Creates a function like `_.invertBy`.
+     *
+     * @private
+     * @param {Function} setter The function to set accumulator values.
+     * @param {Function} toIteratee The function to resolve iteratees.
+     * @returns {Function} Returns the new inverter function.
+     */
+    function createInverter(setter, toIteratee) {
+      return function(object, iteratee) {
+        return baseInverter(object, setter, toIteratee(iteratee), {});
+      };
+    }
 
-                        /**
-                         * This method is like `_.indexOf` except that it iterates over elements of
-                         * `array` from right to left.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {*} value The value to search for.
-                         * @param {number} [fromIndex=array.length-1] The index to search from.
-                         * @returns {number} Returns the index of the matched value, else `-1`.
-                         * @example
-                         *
-                         * _.lastIndexOf([1, 2, 1, 2], 2);
-                         * // => 3
-                         *
-                         * // Search from the `fromIndex`.
-                         * _.lastIndexOf([1, 2, 1, 2], 2, 2);
-                         * // => 1
-                         */
-                        function lastIndexOf(array, value, fromIndex) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return -1;
-                            }
-                            var index = length;
-                            if (fromIndex !== undefined) {
-                                index = toInteger(fromIndex);
-                                index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
-                            }
-                            return value === value
-                                ? strictLastIndexOf(array, value, index)
-                                : baseFindIndex(array, baseIsNaN, index, true);
-                        }
+    /**
+     * Creates a function that performs a mathematical operation on two values.
+     *
+     * @private
+     * @param {Function} operator The function to perform the operation.
+     * @param {number} [defaultValue] The value used for `undefined` arguments.
+     * @returns {Function} Returns the new mathematical operation function.
+     */
+    function createMathOperation(operator, defaultValue) {
+      return function(value, other) {
+        var result;
+        if (value === undefined && other === undefined) {
+          return defaultValue;
+        }
+        if (value !== undefined) {
+          result = value;
+        }
+        if (other !== undefined) {
+          if (result === undefined) {
+            return other;
+          }
+          if (typeof value == 'string' || typeof other == 'string') {
+            value = baseToString(value);
+            other = baseToString(other);
+          } else {
+            value = baseToNumber(value);
+            other = baseToNumber(other);
+          }
+          result = operator(value, other);
+        }
+        return result;
+      };
+    }
 
-                        /**
-                         * Gets the element at index `n` of `array`. If `n` is negative, the nth
-                         * element from the end is returned.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.11.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {number} [n=0] The index of the element to return.
-                         * @returns {*} Returns the nth element of `array`.
-                         * @example
-                         *
-                         * var array = ['a', 'b', 'c', 'd'];
-                         *
-                         * _.nth(array, 1);
-                         * // => 'b'
-                         *
-                         * _.nth(array, -2);
-                         * // => 'c';
-                         */
-                        function nth(array, n) {
-                            return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
-                        }
+    /**
+     * Creates a function like `_.over`.
+     *
+     * @private
+     * @param {Function} arrayFunc The function to iterate over iteratees.
+     * @returns {Function} Returns the new over function.
+     */
+    function createOver(arrayFunc) {
+      return flatRest(function(iteratees) {
+        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
+        return baseRest(function(args) {
+          var thisArg = this;
+          return arrayFunc(iteratees, function(iteratee) {
+            return apply(iteratee, thisArg, args);
+          });
+        });
+      });
+    }
 
-                        /**
-                         * Removes all given values from `array` using
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons.
-                         *
-                         * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
-                         * to remove elements from an array by predicate.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {...*} [values] The values to remove.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
-                         *
-                         * _.pull(array, 'a', 'c');
-                         * console.log(array);
-                         * // => ['b', 'b']
-                         */
-                        var pull = baseRest(pullAll);
-
-                        /**
-                         * This method is like `_.pull` except that it accepts an array of values to remove.
-                         *
-                         * **Note:** Unlike `_.difference`, this method mutates `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {Array} values The values to remove.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
-                         *
-                         * _.pullAll(array, ['a', 'c']);
-                         * console.log(array);
-                         * // => ['b', 'b']
-                         */
-                        function pullAll(array, values) {
-                            return (array && array.length && values && values.length)
-                                ? basePullAll(array, values)
-                                : array;
-                        }
+    /**
+     * Creates the padding for `string` based on `length`. The `chars` string
+     * is truncated if the number of characters exceeds `length`.
+     *
+     * @private
+     * @param {number} length The padding length.
+     * @param {string} [chars=' '] The string used as padding.
+     * @returns {string} Returns the padding for `string`.
+     */
+    function createPadding(length, chars) {
+      chars = chars === undefined ? ' ' : baseToString(chars);
+
+      var charsLength = chars.length;
+      if (charsLength < 2) {
+        return charsLength ? baseRepeat(chars, length) : chars;
+      }
+      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
+      return hasUnicode(chars)
+        ? castSlice(stringToArray(result), 0, length).join('')
+        : result.slice(0, length);
+    }
 
-                        /**
-                         * This method is like `_.pullAll` except that it accepts `iteratee` which is
-                         * invoked for each element of `array` and `values` to generate the criterion
-                         * by which they're compared. The iteratee is invoked with one argument: (value).
-                         *
-                         * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {Array} values The values to remove.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
-                         *
-                         * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
-                         * console.log(array);
-                         * // => [{ 'x': 2 }]
-                         */
-                        function pullAllBy(array, values, iteratee) {
-                            return (array && array.length && values && values.length)
-                                ? basePullAll(array, values, getIteratee(iteratee, 2))
-                                : array;
-                        }
+    /**
+     * Creates a function that wraps `func` to invoke it with the `this` binding
+     * of `thisArg` and `partials` prepended to the arguments it receives.
+     *
+     * @private
+     * @param {Function} func The function to wrap.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @param {*} thisArg The `this` binding of `func`.
+     * @param {Array} partials The arguments to prepend to those provided to
+     *  the new function.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createPartial(func, bitmask, thisArg, partials) {
+      var isBind = bitmask & WRAP_BIND_FLAG,
+          Ctor = createCtor(func);
+
+      function wrapper() {
+        var argsIndex = -1,
+            argsLength = arguments.length,
+            leftIndex = -1,
+            leftLength = partials.length,
+            args = Array(leftLength + argsLength),
+            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+
+        while (++leftIndex < leftLength) {
+          args[leftIndex] = partials[leftIndex];
+        }
+        while (argsLength--) {
+          args[leftIndex++] = arguments[++argsIndex];
+        }
+        return apply(fn, isBind ? thisArg : this, args);
+      }
+      return wrapper;
+    }
 
-                        /**
-                         * This method is like `_.pullAll` except that it accepts `comparator` which
-                         * is invoked to compare elements of `array` to `values`. The comparator is
-                         * invoked with two arguments: (arrVal, othVal).
-                         *
-                         * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.6.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {Array} values The values to remove.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
-                         *
-                         * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
-                         * console.log(array);
-                         * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
-                         */
-                        function pullAllWith(array, values, comparator) {
-                            return (array && array.length && values && values.length)
-                                ? basePullAll(array, values, undefined, comparator)
-                                : array;
-                        }
+    /**
+     * Creates a `_.range` or `_.rangeRight` function.
+     *
+     * @private
+     * @param {boolean} [fromRight] Specify iterating from right to left.
+     * @returns {Function} Returns the new range function.
+     */
+    function createRange(fromRight) {
+      return function(start, end, step) {
+        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
+          end = step = undefined;
+        }
+        // Ensure the sign of `-0` is preserved.
+        start = toFinite(start);
+        if (end === undefined) {
+          end = start;
+          start = 0;
+        } else {
+          end = toFinite(end);
+        }
+        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
+        return baseRange(start, end, step, fromRight);
+      };
+    }
 
-                        /**
-                         * Removes elements from `array` corresponding to `indexes` and returns an
-                         * array of removed elements.
-                         *
-                         * **Note:** Unlike `_.at`, this method mutates `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {...(number|number[])} [indexes] The indexes of elements to remove.
-                         * @returns {Array} Returns the new array of removed elements.
-                         * @example
-                         *
-                         * var array = ['a', 'b', 'c', 'd'];
-                         * var pulled = _.pullAt(array, [1, 3]);
-                         *
-                         * console.log(array);
-                         * // => ['a', 'c']
-                         *
-                         * console.log(pulled);
-                         * // => ['b', 'd']
-                         */
-                        var pullAt = flatRest(function(array, indexes) {
-                            var length = array == null ? 0 : array.length,
-                                result = baseAt(array, indexes);
-
-                            basePullAt(array, arrayMap(indexes, function(index) {
-                                return isIndex(index, length) ? +index : index;
-                            }).sort(compareAscending));
-
-                            return result;
-                        });
+    /**
+     * Creates a function that performs a relational operation on two values.
+     *
+     * @private
+     * @param {Function} operator The function to perform the operation.
+     * @returns {Function} Returns the new relational operation function.
+     */
+    function createRelationalOperation(operator) {
+      return function(value, other) {
+        if (!(typeof value == 'string' && typeof other == 'string')) {
+          value = toNumber(value);
+          other = toNumber(other);
+        }
+        return operator(value, other);
+      };
+    }
 
-                        /**
-                         * Removes all elements from `array` that `predicate` returns truthy for
-                         * and returns an array of the removed elements. The predicate is invoked
-                         * with three arguments: (value, index, array).
-                         *
-                         * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
-                         * to pull elements from an array by value.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new array of removed elements.
-                         * @example
-                         *
-                         * var array = [1, 2, 3, 4];
-                         * var evens = _.remove(array, function(n) {
-                         *   return n % 2 == 0;
-                         * });
-                         *
-                         * console.log(array);
-                         * // => [1, 3]
-                         *
-                         * console.log(evens);
-                         * // => [2, 4]
-                         */
-                        function remove(array, predicate) {
-                            var result = [];
-                            if (!(array && array.length)) {
-                                return result;
-                            }
-                            var index = -1,
-                                indexes = [],
-                                length = array.length;
-
-                            predicate = getIteratee(predicate, 3);
-                            while (++index < length) {
-                                var value = array[index];
-                                if (predicate(value, index, array)) {
-                                    result.push(value);
-                                    indexes.push(index);
-                                }
-                            }
-                            basePullAt(array, indexes);
-                            return result;
-                        }
+    /**
+     * Creates a function that wraps `func` to continue currying.
+     *
+     * @private
+     * @param {Function} func The function to wrap.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @param {Function} wrapFunc The function to create the `func` wrapper.
+     * @param {*} placeholder The placeholder value.
+     * @param {*} [thisArg] The `this` binding of `func`.
+     * @param {Array} [partials] The arguments to prepend to those provided to
+     *  the new function.
+     * @param {Array} [holders] The `partials` placeholder indexes.
+     * @param {Array} [argPos] The argument positions of the new function.
+     * @param {number} [ary] The arity cap of `func`.
+     * @param {number} [arity] The arity of `func`.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
+      var isCurry = bitmask & WRAP_CURRY_FLAG,
+          newHolders = isCurry ? holders : undefined,
+          newHoldersRight = isCurry ? undefined : holders,
+          newPartials = isCurry ? partials : undefined,
+          newPartialsRight = isCurry ? undefined : partials;
+
+      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
+      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
+
+      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
+        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
+      }
+      var newData = [
+        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
+        newHoldersRight, argPos, ary, arity
+      ];
+
+      var result = wrapFunc.apply(undefined, newData);
+      if (isLaziable(func)) {
+        setData(result, newData);
+      }
+      result.placeholder = placeholder;
+      return setWrapToString(result, func, bitmask);
+    }
 
-                        /**
-                         * Reverses `array` so that the first element becomes the last, the second
-                         * element becomes the second to last, and so on.
-                         *
-                         * **Note:** This method mutates `array` and is based on
-                         * [`Array#reverse`](https://mdn.io/Array/reverse).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to modify.
-                         * @returns {Array} Returns `array`.
-                         * @example
-                         *
-                         * var array = [1, 2, 3];
-                         *
-                         * _.reverse(array);
-                         * // => [3, 2, 1]
-                         *
-                         * console.log(array);
-                         * // => [3, 2, 1]
-                         */
-                        function reverse(array) {
-                            return array == null ? array : nativeReverse.call(array);
-                        }
+    /**
+     * Creates a function like `_.round`.
+     *
+     * @private
+     * @param {string} methodName The name of the `Math` method to use when rounding.
+     * @returns {Function} Returns the new round function.
+     */
+    function createRound(methodName) {
+      var func = Math[methodName];
+      return function(number, precision) {
+        number = toNumber(number);
+        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
+        if (precision && nativeIsFinite(number)) {
+          // Shift with exponential notation to avoid floating-point issues.
+          // See [MDN](https://mdn.io/round#Examples) for more details.
+          var pair = (toString(number) + 'e').split('e'),
+              value = func(pair[0] + 'e' + (+pair[1] + precision));
+
+          pair = (toString(value) + 'e').split('e');
+          return +(pair[0] + 'e' + (+pair[1] - precision));
+        }
+        return func(number);
+      };
+    }
 
-                        /**
-                         * Creates a slice of `array` from `start` up to, but not including, `end`.
-                         *
-                         * **Note:** This method is used instead of
-                         * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
-                         * returned.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to slice.
-                         * @param {number} [start=0] The start position.
-                         * @param {number} [end=array.length] The end position.
-                         * @returns {Array} Returns the slice of `array`.
-                         */
-                        function slice(array, start, end) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
-                                start = 0;
-                                end = length;
-                            }
-                            else {
-                                start = start == null ? 0 : toInteger(start);
-                                end = end === undefined ? length : toInteger(end);
-                            }
-                            return baseSlice(array, start, end);
-                        }
+    /**
+     * Creates a set object of `values`.
+     *
+     * @private
+     * @param {Array} values The values to add to the set.
+     * @returns {Object} Returns the new set.
+     */
+    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
+      return new Set(values);
+    };
+
+    /**
+     * Creates a `_.toPairs` or `_.toPairsIn` function.
+     *
+     * @private
+     * @param {Function} keysFunc The function to get the keys of a given object.
+     * @returns {Function} Returns the new pairs function.
+     */
+    function createToPairs(keysFunc) {
+      return function(object) {
+        var tag = getTag(object);
+        if (tag == mapTag) {
+          return mapToArray(object);
+        }
+        if (tag == setTag) {
+          return setToPairs(object);
+        }
+        return baseToPairs(object, keysFunc(object));
+      };
+    }
 
-                        /**
-                         * Uses a binary search to determine the lowest index at which `value`
-                         * should be inserted into `array` in order to maintain its sort order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         * @example
-                         *
-                         * _.sortedIndex([30, 50], 40);
-                         * // => 1
-                         */
-                        function sortedIndex(array, value) {
-                            return baseSortedIndex(array, value);
-                        }
+    /**
+     * Creates a function that either curries or invokes `func` with optional
+     * `this` binding and partially applied arguments.
+     *
+     * @private
+     * @param {Function|string} func The function or method name to wrap.
+     * @param {number} bitmask The bitmask flags.
+     *    1 - `_.bind`
+     *    2 - `_.bindKey`
+     *    4 - `_.curry` or `_.curryRight` of a bound function
+     *    8 - `_.curry`
+     *   16 - `_.curryRight`
+     *   32 - `_.partial`
+     *   64 - `_.partialRight`
+     *  128 - `_.rearg`
+     *  256 - `_.ary`
+     *  512 - `_.flip`
+     * @param {*} [thisArg] The `this` binding of `func`.
+     * @param {Array} [partials] The arguments to be partially applied.
+     * @param {Array} [holders] The `partials` placeholder indexes.
+     * @param {Array} [argPos] The argument positions of the new function.
+     * @param {number} [ary] The arity cap of `func`.
+     * @param {number} [arity] The arity of `func`.
+     * @returns {Function} Returns the new wrapped function.
+     */
+    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
+      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
+      if (!isBindKey && typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      var length = partials ? partials.length : 0;
+      if (!length) {
+        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
+        partials = holders = undefined;
+      }
+      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
+      arity = arity === undefined ? arity : toInteger(arity);
+      length -= holders ? holders.length : 0;
+
+      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
+        var partialsRight = partials,
+            holdersRight = holders;
+
+        partials = holders = undefined;
+      }
+      var data = isBindKey ? undefined : getData(func);
+
+      var newData = [
+        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
+        argPos, ary, arity
+      ];
+
+      if (data) {
+        mergeData(newData, data);
+      }
+      func = newData[0];
+      bitmask = newData[1];
+      thisArg = newData[2];
+      partials = newData[3];
+      holders = newData[4];
+      arity = newData[9] = newData[9] === undefined
+        ? (isBindKey ? 0 : func.length)
+        : nativeMax(newData[9] - length, 0);
+
+      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
+        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
+      }
+      if (!bitmask || bitmask == WRAP_BIND_FLAG) {
+        var result = createBind(func, bitmask, thisArg);
+      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
+        result = createCurry(func, bitmask, arity);
+      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
+        result = createPartial(func, bitmask, thisArg, partials);
+      } else {
+        result = createHybrid.apply(undefined, newData);
+      }
+      var setter = data ? baseSetData : setData;
+      return setWrapToString(setter(result, newData), func, bitmask);
+    }
 
-                        /**
-                         * This method is like `_.sortedIndex` except that it accepts `iteratee`
-                         * which is invoked for `value` and each element of `array` to compute their
-                         * sort ranking. The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 4 }, { 'x': 5 }];
-                         *
-                         * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
-                         * // => 0
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
-                         * // => 0
-                         */
-                        function sortedIndexBy(array, value, iteratee) {
-                            return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
-                        }
+    /**
+     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
+     * of source objects to the destination object for all destination properties
+     * that resolve to `undefined`.
+     *
+     * @private
+     * @param {*} objValue The destination value.
+     * @param {*} srcValue The source value.
+     * @param {string} key The key of the property to assign.
+     * @param {Object} object The parent object of `objValue`.
+     * @returns {*} Returns the value to assign.
+     */
+    function customDefaultsAssignIn(objValue, srcValue, key, object) {
+      if (objValue === undefined ||
+          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
+        return srcValue;
+      }
+      return objValue;
+    }
 
-                        /**
-                         * This method is like `_.indexOf` except that it performs a binary
-                         * search on a sorted `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {*} value The value to search for.
-                         * @returns {number} Returns the index of the matched value, else `-1`.
-                         * @example
-                         *
-                         * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
-                         * // => 1
-                         */
-                        function sortedIndexOf(array, value) {
-                            var length = array == null ? 0 : array.length;
-                            if (length) {
-                                var index = baseSortedIndex(array, value);
-                                if (index < length && eq(array[index], value)) {
-                                    return index;
-                                }
-                            }
-                            return -1;
-                        }
+    /**
+     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
+     * objects into destination objects that are passed thru.
+     *
+     * @private
+     * @param {*} objValue The destination value.
+     * @param {*} srcValue The source value.
+     * @param {string} key The key of the property to merge.
+     * @param {Object} object The parent object of `objValue`.
+     * @param {Object} source The parent object of `srcValue`.
+     * @param {Object} [stack] Tracks traversed source values and their merged
+     *  counterparts.
+     * @returns {*} Returns the value to assign.
+     */
+    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
+      if (isObject(objValue) && isObject(srcValue)) {
+        // Recursively merge objects and arrays (susceptible to call stack limits).
+        stack.set(srcValue, objValue);
+        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
+        stack['delete'](srcValue);
+      }
+      return objValue;
+    }
 
-                        /**
-                         * This method is like `_.sortedIndex` except that it returns the highest
-                         * index at which `value` should be inserted into `array` in order to
-                         * maintain its sort order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         * @example
-                         *
-                         * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
-                         * // => 4
-                         */
-                        function sortedLastIndex(array, value) {
-                            return baseSortedIndex(array, value, true);
-                        }
+    /**
+     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
+     * objects.
+     *
+     * @private
+     * @param {*} value The value to inspect.
+     * @param {string} key The key of the property to inspect.
+     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
+     */
+    function customOmitClone(value) {
+      return isPlainObject(value) ? undefined : value;
+    }
 
-                        /**
-                         * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
-                         * which is invoked for `value` and each element of `array` to compute their
-                         * sort ranking. The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The sorted array to inspect.
-                         * @param {*} value The value to evaluate.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {number} Returns the index at which `value` should be inserted
-                         *  into `array`.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 4 }, { 'x': 5 }];
-                         *
-                         * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
-                         * // => 1
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
-                         * // => 1
-                         */
-                        function sortedLastIndexBy(array, value, iteratee) {
-                            return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
-                        }
+    /**
+     * A specialized version of `baseIsEqualDeep` for arrays with support for
+     * partial deep comparisons.
+     *
+     * @private
+     * @param {Array} array The array to compare.
+     * @param {Array} other The other array to compare.
+     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+     * @param {Function} customizer The function to customize comparisons.
+     * @param {Function} equalFunc The function to determine equivalents of values.
+     * @param {Object} stack Tracks traversed `array` and `other` objects.
+     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
+     */
+    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
+      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+          arrLength = array.length,
+          othLength = other.length;
+
+      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
+        return false;
+      }
+      // Check that cyclic values are equal.
+      var arrStacked = stack.get(array);
+      var othStacked = stack.get(other);
+      if (arrStacked && othStacked) {
+        return arrStacked == other && othStacked == array;
+      }
+      var index = -1,
+          result = true,
+          seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
+
+      stack.set(array, other);
+      stack.set(other, array);
+
+      // Ignore non-index properties.
+      while (++index < arrLength) {
+        var arrValue = array[index],
+            othValue = other[index];
+
+        if (customizer) {
+          var compared = isPartial
+            ? customizer(othValue, arrValue, index, other, array, stack)
+            : customizer(arrValue, othValue, index, array, other, stack);
+        }
+        if (compared !== undefined) {
+          if (compared) {
+            continue;
+          }
+          result = false;
+          break;
+        }
+        // Recursively compare arrays (susceptible to call stack limits).
+        if (seen) {
+          if (!arraySome(other, function(othValue, othIndex) {
+                if (!cacheHas(seen, othIndex) &&
+                    (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
+                  return seen.push(othIndex);
+                }
+              })) {
+            result = false;
+            break;
+          }
+        } else if (!(
+              arrValue === othValue ||
+                equalFunc(arrValue, othValue, bitmask, customizer, stack)
+            )) {
+          result = false;
+          break;
+        }
+      }
+      stack['delete'](array);
+      stack['delete'](other);
+      return result;
+    }
 
-                        /**
-                         * This method is like `_.lastIndexOf` except that it performs a binary
-                         * search on a sorted `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {*} value The value to search for.
-                         * @returns {number} Returns the index of the matched value, else `-1`.
-                         * @example
-                         *
-                         * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
-                         * // => 3
-                         */
-                        function sortedLastIndexOf(array, value) {
-                            var length = array == null ? 0 : array.length;
-                            if (length) {
-                                var index = baseSortedIndex(array, value, true) - 1;
-                                if (eq(array[index], value)) {
-                                    return index;
-                                }
-                            }
-                            return -1;
-                        }
+    /**
+     * A specialized version of `baseIsEqualDeep` for comparing objects of
+     * the same `toStringTag`.
+     *
+     * **Note:** This function only supports comparing values with tags of
+     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
+     *
+     * @private
+     * @param {Object} object The object to compare.
+     * @param {Object} other The other object to compare.
+     * @param {string} tag The `toStringTag` of the objects to compare.
+     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+     * @param {Function} customizer The function to customize comparisons.
+     * @param {Function} equalFunc The function to determine equivalents of values.
+     * @param {Object} stack Tracks traversed `object` and `other` objects.
+     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+     */
+    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
+      switch (tag) {
+        case dataViewTag:
+          if ((object.byteLength != other.byteLength) ||
+              (object.byteOffset != other.byteOffset)) {
+            return false;
+          }
+          object = object.buffer;
+          other = other.buffer;
+
+        case arrayBufferTag:
+          if ((object.byteLength != other.byteLength) ||
+              !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
+            return false;
+          }
+          return true;
+
+        case boolTag:
+        case dateTag:
+        case numberTag:
+          // Coerce booleans to `1` or `0` and dates to milliseconds.
+          // Invalid dates are coerced to `NaN`.
+          return eq(+object, +other);
+
+        case errorTag:
+          return object.name == other.name && object.message == other.message;
+
+        case regexpTag:
+        case stringTag:
+          // Coerce regexes to strings and treat strings, primitives and objects,
+          // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
+          // for more details.
+          return object == (other + '');
+
+        case mapTag:
+          var convert = mapToArray;
+
+        case setTag:
+          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
+          convert || (convert = setToArray);
+
+          if (object.size != other.size && !isPartial) {
+            return false;
+          }
+          // Assume cyclic values are equal.
+          var stacked = stack.get(object);
+          if (stacked) {
+            return stacked == other;
+          }
+          bitmask |= COMPARE_UNORDERED_FLAG;
+
+          // Recursively compare objects (susceptible to call stack limits).
+          stack.set(object, other);
+          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
+          stack['delete'](object);
+          return result;
+
+        case symbolTag:
+          if (symbolValueOf) {
+            return symbolValueOf.call(object) == symbolValueOf.call(other);
+          }
+      }
+      return false;
+    }
 
-                        /**
-                         * This method is like `_.uniq` except that it's designed and optimized
-                         * for sorted arrays.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @returns {Array} Returns the new duplicate free array.
-                         * @example
-                         *
-                         * _.sortedUniq([1, 1, 2]);
-                         * // => [1, 2]
-                         */
-                        function sortedUniq(array) {
-                            return (array && array.length)
-                                ? baseSortedUniq(array)
-                                : [];
-                        }
+    /**
+     * A specialized version of `baseIsEqualDeep` for objects with support for
+     * partial deep comparisons.
+     *
+     * @private
+     * @param {Object} object The object to compare.
+     * @param {Object} other The other object to compare.
+     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+     * @param {Function} customizer The function to customize comparisons.
+     * @param {Function} equalFunc The function to determine equivalents of values.
+     * @param {Object} stack Tracks traversed `object` and `other` objects.
+     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+     */
+    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
+      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+          objProps = getAllKeys(object),
+          objLength = objProps.length,
+          othProps = getAllKeys(other),
+          othLength = othProps.length;
+
+      if (objLength != othLength && !isPartial) {
+        return false;
+      }
+      var index = objLength;
+      while (index--) {
+        var key = objProps[index];
+        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
+          return false;
+        }
+      }
+      // Check that cyclic values are equal.
+      var objStacked = stack.get(object);
+      var othStacked = stack.get(other);
+      if (objStacked && othStacked) {
+        return objStacked == other && othStacked == object;
+      }
+      var result = true;
+      stack.set(object, other);
+      stack.set(other, object);
+
+      var skipCtor = isPartial;
+      while (++index < objLength) {
+        key = objProps[index];
+        var objValue = object[key],
+            othValue = other[key];
+
+        if (customizer) {
+          var compared = isPartial
+            ? customizer(othValue, objValue, key, other, object, stack)
+            : customizer(objValue, othValue, key, object, other, stack);
+        }
+        // Recursively compare objects (susceptible to call stack limits).
+        if (!(compared === undefined
+              ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
+              : compared
+            )) {
+          result = false;
+          break;
+        }
+        skipCtor || (skipCtor = key == 'constructor');
+      }
+      if (result && !skipCtor) {
+        var objCtor = object.constructor,
+            othCtor = other.constructor;
+
+        // Non `Object` object instances with different constructors are not equal.
+        if (objCtor != othCtor &&
+            ('constructor' in object && 'constructor' in other) &&
+            !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+              typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+          result = false;
+        }
+      }
+      stack['delete'](object);
+      stack['delete'](other);
+      return result;
+    }
 
-                        /**
-                         * This method is like `_.uniqBy` except that it's designed and optimized
-                         * for sorted arrays.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [iteratee] The iteratee invoked per element.
-                         * @returns {Array} Returns the new duplicate free array.
-                         * @example
-                         *
-                         * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
-                         * // => [1.1, 2.3]
-                         */
-                        function sortedUniqBy(array, iteratee) {
-                            return (array && array.length)
-                                ? baseSortedUniq(array, getIteratee(iteratee, 2))
-                                : [];
-                        }
+    /**
+     * A specialized version of `baseRest` which flattens the rest array.
+     *
+     * @private
+     * @param {Function} func The function to apply a rest parameter to.
+     * @returns {Function} Returns the new function.
+     */
+    function flatRest(func) {
+      return setToString(overRest(func, undefined, flatten), func + '');
+    }
 
-                        /**
-                         * Gets all but the first element of `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.tail([1, 2, 3]);
-                         * // => [2, 3]
-                         */
-                        function tail(array) {
-                            var length = array == null ? 0 : array.length;
-                            return length ? baseSlice(array, 1, length) : [];
-                        }
+    /**
+     * Creates an array of own enumerable property names and symbols of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names and symbols.
+     */
+    function getAllKeys(object) {
+      return baseGetAllKeys(object, keys, getSymbols);
+    }
 
-                        /**
-                         * Creates a slice of `array` with `n` elements taken from the beginning.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {number} [n=1] The number of elements to take.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.take([1, 2, 3]);
-                         * // => [1]
-                         *
-                         * _.take([1, 2, 3], 2);
-                         * // => [1, 2]
-                         *
-                         * _.take([1, 2, 3], 5);
-                         * // => [1, 2, 3]
-                         *
-                         * _.take([1, 2, 3], 0);
-                         * // => []
-                         */
-                        function take(array, n, guard) {
-                            if (!(array && array.length)) {
-                                return [];
-                            }
-                            n = (guard || n === undefined) ? 1 : toInteger(n);
-                            return baseSlice(array, 0, n < 0 ? 0 : n);
-                        }
+    /**
+     * Creates an array of own and inherited enumerable property names and
+     * symbols of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names and symbols.
+     */
+    function getAllKeysIn(object) {
+      return baseGetAllKeys(object, keysIn, getSymbolsIn);
+    }
 
-                        /**
-                         * Creates a slice of `array` with `n` elements taken from the end.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {number} [n=1] The number of elements to take.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * _.takeRight([1, 2, 3]);
-                         * // => [3]
-                         *
-                         * _.takeRight([1, 2, 3], 2);
-                         * // => [2, 3]
-                         *
-                         * _.takeRight([1, 2, 3], 5);
-                         * // => [1, 2, 3]
-                         *
-                         * _.takeRight([1, 2, 3], 0);
-                         * // => []
-                         */
-                        function takeRight(array, n, guard) {
-                            var length = array == null ? 0 : array.length;
-                            if (!length) {
-                                return [];
-                            }
-                            n = (guard || n === undefined) ? 1 : toInteger(n);
-                            n = length - n;
-                            return baseSlice(array, n < 0 ? 0 : n, length);
-                        }
+    /**
+     * Gets metadata for `func`.
+     *
+     * @private
+     * @param {Function} func The function to query.
+     * @returns {*} Returns the metadata for `func`.
+     */
+    var getData = !metaMap ? noop : function(func) {
+      return metaMap.get(func);
+    };
+
+    /**
+     * Gets the name of `func`.
+     *
+     * @private
+     * @param {Function} func The function to query.
+     * @returns {string} Returns the function name.
+     */
+    function getFuncName(func) {
+      var result = (func.name + ''),
+          array = realNames[result],
+          length = hasOwnProperty.call(realNames, result) ? array.length : 0;
+
+      while (length--) {
+        var data = array[length],
+            otherFunc = data.func;
+        if (otherFunc == null || otherFunc == func) {
+          return data.name;
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates a slice of `array` with elements taken from the end. Elements are
-                         * taken until `predicate` returns falsey. The predicate is invoked with
-                         * three arguments: (value, index, array).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': true },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': false }
-                         * ];
-                         *
-                         * _.takeRightWhile(users, function(o) { return !o.active; });
-                         * // => objects for ['fred', 'pebbles']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
-                         * // => objects for ['pebbles']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.takeRightWhile(users, ['active', false]);
-                         * // => objects for ['fred', 'pebbles']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.takeRightWhile(users, 'active');
-                         * // => []
-                         */
-                        function takeRightWhile(array, predicate) {
-                            return (array && array.length)
-                                ? baseWhile(array, getIteratee(predicate, 3), false, true)
-                                : [];
-                        }
+    /**
+     * Gets the argument placeholder value for `func`.
+     *
+     * @private
+     * @param {Function} func The function to inspect.
+     * @returns {*} Returns the placeholder value.
+     */
+    function getHolder(func) {
+      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
+      return object.placeholder;
+    }
 
-                        /**
-                         * Creates a slice of `array` with elements taken from the beginning. Elements
-                         * are taken until `predicate` returns falsey. The predicate is invoked with
-                         * three arguments: (value, index, array).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Array
-                         * @param {Array} array The array to query.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the slice of `array`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'active': false },
-                         *   { 'user': 'fred',    'active': false },
-                         *   { 'user': 'pebbles', 'active': true }
-                         * ];
-                         *
-                         * _.takeWhile(users, function(o) { return !o.active; });
-                         * // => objects for ['barney', 'fred']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.takeWhile(users, { 'user': 'barney', 'active': false });
-                         * // => objects for ['barney']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.takeWhile(users, ['active', false]);
-                         * // => objects for ['barney', 'fred']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.takeWhile(users, 'active');
-                         * // => []
-                         */
-                        function takeWhile(array, predicate) {
-                            return (array && array.length)
-                                ? baseWhile(array, getIteratee(predicate, 3))
-                                : [];
-                        }
+    /**
+     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
+     * this function returns the custom method, otherwise it returns `baseIteratee`.
+     * If arguments are provided, the chosen function is invoked with them and
+     * its result is returned.
+     *
+     * @private
+     * @param {*} [value] The value to convert to an iteratee.
+     * @param {number} [arity] The arity of the created iteratee.
+     * @returns {Function} Returns the chosen function or its result.
+     */
+    function getIteratee() {
+      var result = lodash.iteratee || iteratee;
+      result = result === iteratee ? baseIteratee : result;
+      return arguments.length ? result(arguments[0], arguments[1]) : result;
+    }
 
-                        /**
-                         * Creates an array of unique values, in order, from all given arrays using
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @returns {Array} Returns the new array of combined values.
-                         * @example
-                         *
-                         * _.union([2], [1, 2]);
-                         * // => [2, 1]
-                         */
-                        var union = baseRest(function(arrays) {
-                            return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
-                        });
+    /**
+     * Gets the data for `map`.
+     *
+     * @private
+     * @param {Object} map The map to query.
+     * @param {string} key The reference key.
+     * @returns {*} Returns the map data.
+     */
+    function getMapData(map, key) {
+      var data = map.__data__;
+      return isKeyable(key)
+        ? data[typeof key == 'string' ? 'string' : 'hash']
+        : data.map;
+    }
 
-                        /**
-                         * This method is like `_.union` except that it accepts `iteratee` which is
-                         * invoked for each element of each `arrays` to generate the criterion by
-                         * which uniqueness is computed. Result values are chosen from the first
-                         * array in which the value occurs. The iteratee is invoked with one argument:
-                         * (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns the new array of combined values.
-                         * @example
-                         *
-                         * _.unionBy([2.1], [1.2, 2.3], Math.floor);
-                         * // => [2.1, 1.2]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-                         * // => [{ 'x': 1 }, { 'x': 2 }]
-                         */
-                        var unionBy = baseRest(function(arrays) {
-                            var iteratee = last(arrays);
-                            if (isArrayLikeObject(iteratee)) {
-                                iteratee = undefined;
-                            }
-                            return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
-                        });
+    /**
+     * Gets the property names, values, and compare flags of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the match data of `object`.
+     */
+    function getMatchData(object) {
+      var result = keys(object),
+          length = result.length;
+
+      while (length--) {
+        var key = result[length],
+            value = object[key];
+
+        result[length] = [key, value, isStrictComparable(value)];
+      }
+      return result;
+    }
 
-                        /**
-                         * This method is like `_.union` except that it accepts `comparator` which
-                         * is invoked to compare elements of `arrays`. Result values are chosen from
-                         * the first array in which the value occurs. The comparator is invoked
-                         * with two arguments: (arrVal, othVal).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of combined values.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-                         * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-                         *
-                         * _.unionWith(objects, others, _.isEqual);
-                         * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
-                         */
-                        var unionWith = baseRest(function(arrays) {
-                            var comparator = last(arrays);
-                            comparator = typeof comparator == 'function' ? comparator : undefined;
-                            return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
-                        });
+    /**
+     * Gets the native function at `key` of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {string} key The key of the method to get.
+     * @returns {*} Returns the function if it's native, else `undefined`.
+     */
+    function getNative(object, key) {
+      var value = getValue(object, key);
+      return baseIsNative(value) ? value : undefined;
+    }
 
-                        /**
-                         * Creates a duplicate-free version of an array, using
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons, in which only the first occurrence of each element
-                         * is kept. The order of result values is determined by the order they occur
-                         * in the array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @returns {Array} Returns the new duplicate free array.
-                         * @example
-                         *
-                         * _.uniq([2, 1, 2]);
-                         * // => [2, 1]
-                         */
-                        function uniq(array) {
-                            return (array && array.length) ? baseUniq(array) : [];
-                        }
+    /**
+     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
+     *
+     * @private
+     * @param {*} value The value to query.
+     * @returns {string} Returns the raw `toStringTag`.
+     */
+    function getRawTag(value) {
+      var isOwn = hasOwnProperty.call(value, symToStringTag),
+          tag = value[symToStringTag];
+
+      try {
+        value[symToStringTag] = undefined;
+        var unmasked = true;
+      } catch (e) {}
+
+      var result = nativeObjectToString.call(value);
+      if (unmasked) {
+        if (isOwn) {
+          value[symToStringTag] = tag;
+        } else {
+          delete value[symToStringTag];
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * This method is like `_.uniq` except that it accepts `iteratee` which is
-                         * invoked for each element in `array` to generate the criterion by which
-                         * uniqueness is computed. The order of result values is determined by the
-                         * order they occur in the array. The iteratee is invoked with one argument:
-                         * (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns the new duplicate free array.
-                         * @example
-                         *
-                         * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
-                         * // => [2.1, 1.2]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
-                         * // => [{ 'x': 1 }, { 'x': 2 }]
-                         */
-                        function uniqBy(array, iteratee) {
-                            return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
-                        }
+    /**
+     * Creates an array of the own enumerable symbols of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of symbols.
+     */
+    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
+      if (object == null) {
+        return [];
+      }
+      object = Object(object);
+      return arrayFilter(nativeGetSymbols(object), function(symbol) {
+        return propertyIsEnumerable.call(object, symbol);
+      });
+    };
+
+    /**
+     * Creates an array of the own and inherited enumerable symbols of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of symbols.
+     */
+    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
+      var result = [];
+      while (object) {
+        arrayPush(result, getSymbols(object));
+        object = getPrototype(object);
+      }
+      return result;
+    };
+
+    /**
+     * Gets the `toStringTag` of `value`.
+     *
+     * @private
+     * @param {*} value The value to query.
+     * @returns {string} Returns the `toStringTag`.
+     */
+    var getTag = baseGetTag;
+
+    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
+    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+        (Map && getTag(new Map) != mapTag) ||
+        (Promise && getTag(Promise.resolve()) != promiseTag) ||
+        (Set && getTag(new Set) != setTag) ||
+        (WeakMap && getTag(new WeakMap) != weakMapTag)) {
+      getTag = function(value) {
+        var result = baseGetTag(value),
+            Ctor = result == objectTag ? value.constructor : undefined,
+            ctorString = Ctor ? toSource(Ctor) : '';
+
+        if (ctorString) {
+          switch (ctorString) {
+            case dataViewCtorString: return dataViewTag;
+            case mapCtorString: return mapTag;
+            case promiseCtorString: return promiseTag;
+            case setCtorString: return setTag;
+            case weakMapCtorString: return weakMapTag;
+          }
+        }
+        return result;
+      };
+    }
 
-                        /**
-                         * This method is like `_.uniq` except that it accepts `comparator` which
-                         * is invoked to compare elements of `array`. The order of result values is
-                         * determined by the order they occur in the array.The comparator is invoked
-                         * with two arguments: (arrVal, othVal).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new duplicate free array.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
-                         *
-                         * _.uniqWith(objects, _.isEqual);
-                         * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
-                         */
-                        function uniqWith(array, comparator) {
-                            comparator = typeof comparator == 'function' ? comparator : undefined;
-                            return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
-                        }
+    /**
+     * Gets the view, applying any `transforms` to the `start` and `end` positions.
+     *
+     * @private
+     * @param {number} start The start of the view.
+     * @param {number} end The end of the view.
+     * @param {Array} transforms The transformations to apply to the view.
+     * @returns {Object} Returns an object containing the `start` and `end`
+     *  positions of the view.
+     */
+    function getView(start, end, transforms) {
+      var index = -1,
+          length = transforms.length;
+
+      while (++index < length) {
+        var data = transforms[index],
+            size = data.size;
+
+        switch (data.type) {
+          case 'drop':      start += size; break;
+          case 'dropRight': end -= size; break;
+          case 'take':      end = nativeMin(end, start + size); break;
+          case 'takeRight': start = nativeMax(start, end - size); break;
+        }
+      }
+      return { 'start': start, 'end': end };
+    }
 
-                        /**
-                         * This method is like `_.zip` except that it accepts an array of grouped
-                         * elements and creates an array regrouping the elements to their pre-zip
-                         * configuration.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.2.0
-                         * @category Array
-                         * @param {Array} array The array of grouped elements to process.
-                         * @returns {Array} Returns the new array of regrouped elements.
-                         * @example
-                         *
-                         * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
-                         * // => [['a', 1, true], ['b', 2, false]]
-                         *
-                         * _.unzip(zipped);
-                         * // => [['a', 'b'], [1, 2], [true, false]]
-                         */
-                        function unzip(array) {
-                            if (!(array && array.length)) {
-                                return [];
-                            }
-                            var length = 0;
-                            array = arrayFilter(array, function(group) {
-                                if (isArrayLikeObject(group)) {
-                                    length = nativeMax(group.length, length);
-                                    return true;
-                                }
-                            });
-                            return baseTimes(length, function(index) {
-                                return arrayMap(array, baseProperty(index));
-                            });
-                        }
+    /**
+     * Extracts wrapper details from the `source` body comment.
+     *
+     * @private
+     * @param {string} source The source to inspect.
+     * @returns {Array} Returns the wrapper details.
+     */
+    function getWrapDetails(source) {
+      var match = source.match(reWrapDetails);
+      return match ? match[1].split(reSplitDetails) : [];
+    }
 
-                        /**
-                         * This method is like `_.unzip` except that it accepts `iteratee` to specify
-                         * how regrouped values should be combined. The iteratee is invoked with the
-                         * elements of each group: (...group).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.8.0
-                         * @category Array
-                         * @param {Array} array The array of grouped elements to process.
-                         * @param {Function} [iteratee=_.identity] The function to combine
-                         *  regrouped values.
-                         * @returns {Array} Returns the new array of regrouped elements.
-                         * @example
-                         *
-                         * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
-                         * // => [[1, 10, 100], [2, 20, 200]]
-                         *
-                         * _.unzipWith(zipped, _.add);
-                         * // => [3, 30, 300]
-                         */
-                        function unzipWith(array, iteratee) {
-                            if (!(array && array.length)) {
-                                return [];
-                            }
-                            var result = unzip(array);
-                            if (iteratee == null) {
-                                return result;
-                            }
-                            return arrayMap(result, function(group) {
-                                return apply(iteratee, undefined, group);
-                            });
-                        }
+    /**
+     * Checks if `path` exists on `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path to check.
+     * @param {Function} hasFunc The function to check properties.
+     * @returns {boolean} Returns `true` if `path` exists, else `false`.
+     */
+    function hasPath(object, path, hasFunc) {
+      path = castPath(path, object);
+
+      var index = -1,
+          length = path.length,
+          result = false;
+
+      while (++index < length) {
+        var key = toKey(path[index]);
+        if (!(result = object != null && hasFunc(object, key))) {
+          break;
+        }
+        object = object[key];
+      }
+      if (result || ++index != length) {
+        return result;
+      }
+      length = object == null ? 0 : object.length;
+      return !!length && isLength(length) && isIndex(key, length) &&
+        (isArray(object) || isArguments(object));
+    }
 
-                        /**
-                         * Creates an array excluding all given values using
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * for equality comparisons.
-                         *
-                         * **Note:** Unlike `_.pull`, this method returns a new array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {Array} array The array to inspect.
-                         * @param {...*} [values] The values to exclude.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @see _.difference, _.xor
-                         * @example
-                         *
-                         * _.without([2, 1, 2, 3], 1, 2);
-                         * // => [3]
-                         */
-                        var without = baseRest(function(array, values) {
-                            return isArrayLikeObject(array)
-                                ? baseDifference(array, values)
-                                : [];
-                        });
+    /**
+     * Initializes an array clone.
+     *
+     * @private
+     * @param {Array} array The array to clone.
+     * @returns {Array} Returns the initialized clone.
+     */
+    function initCloneArray(array) {
+      var length = array.length,
+          result = new array.constructor(length);
+
+      // Add properties assigned by `RegExp#exec`.
+      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
+        result.index = array.index;
+        result.input = array.input;
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates an array of unique values that is the
-                         * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
-                         * of the given arrays. The order of result values is determined by the order
-                         * they occur in the arrays.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.4.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @see _.difference, _.without
-                         * @example
-                         *
-                         * _.xor([2, 1], [2, 3]);
-                         * // => [1, 3]
-                         */
-                        var xor = baseRest(function(arrays) {
-                            return baseXor(arrayFilter(arrays, isArrayLikeObject));
-                        });
+    /**
+     * Initializes an object clone.
+     *
+     * @private
+     * @param {Object} object The object to clone.
+     * @returns {Object} Returns the initialized clone.
+     */
+    function initCloneObject(object) {
+      return (typeof object.constructor == 'function' && !isPrototype(object))
+        ? baseCreate(getPrototype(object))
+        : {};
+    }
 
-                        /**
-                         * This method is like `_.xor` except that it accepts `iteratee` which is
-                         * invoked for each element of each `arrays` to generate the criterion by
-                         * which by which they're compared. The order of result values is determined
-                         * by the order they occur in the arrays. The iteratee is invoked with one
-                         * argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @example
-                         *
-                         * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-                         * // => [1.2, 3.4]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-                         * // => [{ 'x': 2 }]
-                         */
-                        var xorBy = baseRest(function(arrays) {
-                            var iteratee = last(arrays);
-                            if (isArrayLikeObject(iteratee)) {
-                                iteratee = undefined;
-                            }
-                            return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
-                        });
+    /**
+     * Initializes an object clone based on its `toStringTag`.
+     *
+     * **Note:** This function only supports cloning values with tags of
+     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
+     *
+     * @private
+     * @param {Object} object The object to clone.
+     * @param {string} tag The `toStringTag` of the object to clone.
+     * @param {boolean} [isDeep] Specify a deep clone.
+     * @returns {Object} Returns the initialized clone.
+     */
+    function initCloneByTag(object, tag, isDeep) {
+      var Ctor = object.constructor;
+      switch (tag) {
+        case arrayBufferTag:
+          return cloneArrayBuffer(object);
+
+        case boolTag:
+        case dateTag:
+          return new Ctor(+object);
+
+        case dataViewTag:
+          return cloneDataView(object, isDeep);
+
+        case float32Tag: case float64Tag:
+        case int8Tag: case int16Tag: case int32Tag:
+        case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
+          return cloneTypedArray(object, isDeep);
+
+        case mapTag:
+          return new Ctor;
+
+        case numberTag:
+        case stringTag:
+          return new Ctor(object);
+
+        case regexpTag:
+          return cloneRegExp(object);
+
+        case setTag:
+          return new Ctor;
+
+        case symbolTag:
+          return cloneSymbol(object);
+      }
+    }
 
-                        /**
-                         * This method is like `_.xor` except that it accepts `comparator` which is
-                         * invoked to compare elements of `arrays`. The order of result values is
-                         * determined by the order they occur in the arrays. The comparator is invoked
-                         * with two arguments: (arrVal, othVal).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to inspect.
-                         * @param {Function} [comparator] The comparator invoked per element.
-                         * @returns {Array} Returns the new array of filtered values.
-                         * @example
-                         *
-                         * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-                         * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-                         *
-                         * _.xorWith(objects, others, _.isEqual);
-                         * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
-                         */
-                        var xorWith = baseRest(function(arrays) {
-                            var comparator = last(arrays);
-                            comparator = typeof comparator == 'function' ? comparator : undefined;
-                            return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
-                        });
+    /**
+     * Inserts wrapper `details` in a comment at the top of the `source` body.
+     *
+     * @private
+     * @param {string} source The source to modify.
+     * @returns {Array} details The details to insert.
+     * @returns {string} Returns the modified source.
+     */
+    function insertWrapDetails(source, details) {
+      var length = details.length;
+      if (!length) {
+        return source;
+      }
+      var lastIndex = length - 1;
+      details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
+      details = details.join(length > 2 ? ', ' : ' ');
+      return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
+    }
 
-                        /**
-                         * Creates an array of grouped elements, the first of which contains the
-                         * first elements of the given arrays, the second of which contains the
-                         * second elements of the given arrays, and so on.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to process.
-                         * @returns {Array} Returns the new array of grouped elements.
-                         * @example
-                         *
-                         * _.zip(['a', 'b'], [1, 2], [true, false]);
-                         * // => [['a', 1, true], ['b', 2, false]]
-                         */
-                        var zip = baseRest(unzip);
-
-                        /**
-                         * This method is like `_.fromPairs` except that it accepts two arrays,
-                         * one of property identifiers and one of corresponding values.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.4.0
-                         * @category Array
-                         * @param {Array} [props=[]] The property identifiers.
-                         * @param {Array} [values=[]] The property values.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * _.zipObject(['a', 'b'], [1, 2]);
-                         * // => { 'a': 1, 'b': 2 }
-                         */
-                        function zipObject(props, values) {
-                            return baseZipObject(props || [], values || [], assignValue);
-                        }
+    /**
+     * Checks if `value` is a flattenable `arguments` object or array.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+     */
+    function isFlattenable(value) {
+      return isArray(value) || isArguments(value) ||
+        !!(spreadableSymbol && value && value[spreadableSymbol]);
+    }
 
-                        /**
-                         * This method is like `_.zipObject` except that it supports property paths.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.1.0
-                         * @category Array
-                         * @param {Array} [props=[]] The property identifiers.
-                         * @param {Array} [values=[]] The property values.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
-                         * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
-                         */
-                        function zipObjectDeep(props, values) {
-                            return baseZipObject(props || [], values || [], baseSet);
-                        }
+    /**
+     * Checks if `value` is a valid array-like index.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
+     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
+     */
+    function isIndex(value, length) {
+      var type = typeof value;
+      length = length == null ? MAX_SAFE_INTEGER : length;
+
+      return !!length &&
+        (type == 'number' ||
+          (type != 'symbol' && reIsUint.test(value))) &&
+            (value > -1 && value % 1 == 0 && value < length);
+    }
 
-                        /**
-                         * This method is like `_.zip` except that it accepts `iteratee` to specify
-                         * how grouped values should be combined. The iteratee is invoked with the
-                         * elements of each group: (...group).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.8.0
-                         * @category Array
-                         * @param {...Array} [arrays] The arrays to process.
-                         * @param {Function} [iteratee=_.identity] The function to combine
-                         *  grouped values.
-                         * @returns {Array} Returns the new array of grouped elements.
-                         * @example
-                         *
-                         * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
-                         *   return a + b + c;
-                         * });
-                         * // => [111, 222]
-                         */
-                        var zipWith = baseRest(function(arrays) {
-                            var length = arrays.length,
-                                iteratee = length > 1 ? arrays[length - 1] : undefined;
-
-                            iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
-                            return unzipWith(arrays, iteratee);
-                        });
+    /**
+     * Checks if the given arguments are from an iteratee call.
+     *
+     * @private
+     * @param {*} value The potential iteratee value argument.
+     * @param {*} index The potential iteratee index or key argument.
+     * @param {*} object The potential iteratee object argument.
+     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
+     *  else `false`.
+     */
+    function isIterateeCall(value, index, object) {
+      if (!isObject(object)) {
+        return false;
+      }
+      var type = typeof index;
+      if (type == 'number'
+            ? (isArrayLike(object) && isIndex(index, object.length))
+            : (type == 'string' && index in object)
+          ) {
+        return eq(object[index], value);
+      }
+      return false;
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates a `lodash` wrapper instance that wraps `value` with explicit method
-                         * chain sequences enabled. The result of such sequences must be unwrapped
-                         * with `_#value`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.3.0
-                         * @category Seq
-                         * @param {*} value The value to wrap.
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'age': 36 },
-                         *   { 'user': 'fred',    'age': 40 },
-                         *   { 'user': 'pebbles', 'age': 1 }
-                         * ];
-                         *
-                         * var youngest = _
-                         *   .chain(users)
-                         *   .sortBy('age')
-                         *   .map(function(o) {
-                         *     return o.user + ' is ' + o.age;
-                         *   })
-                         *   .head()
-                         *   .value();
-                         * // => 'pebbles is 1'
-                         */
-                        function chain(value) {
-                            var result = lodash(value);
-                            result.__chain__ = true;
-                            return result;
-                        }
+    /**
+     * Checks if `value` is a property name and not a property path.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @param {Object} [object] The object to query keys on.
+     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+     */
+    function isKey(value, object) {
+      if (isArray(value)) {
+        return false;
+      }
+      var type = typeof value;
+      if (type == 'number' || type == 'symbol' || type == 'boolean' ||
+          value == null || isSymbol(value)) {
+        return true;
+      }
+      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+        (object != null && value in Object(object));
+    }
 
-                        /**
-                         * This method invokes `interceptor` and returns `value`. The interceptor
-                         * is invoked with one argument; (value). The purpose of this method is to
-                         * "tap into" a method chain sequence in order to modify intermediate results.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Seq
-                         * @param {*} value The value to provide to `interceptor`.
-                         * @param {Function} interceptor The function to invoke.
-                         * @returns {*} Returns `value`.
-                         * @example
-                         *
-                         * _([1, 2, 3])
-                         *  .tap(function(array) {
-                         *    // Mutate input array.
-                         *    array.pop();
-                         *  })
-                         *  .reverse()
-                         *  .value();
-                         * // => [2, 1]
-                         */
-                        function tap(value, interceptor) {
-                            interceptor(value);
-                            return value;
-                        }
+    /**
+     * Checks if `value` is suitable for use as unique object key.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
+     */
+    function isKeyable(value) {
+      var type = typeof value;
+      return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
+        ? (value !== '__proto__')
+        : (value === null);
+    }
 
-                        /**
-                         * This method is like `_.tap` except that it returns the result of `interceptor`.
-                         * The purpose of this method is to "pass thru" values replacing intermediate
-                         * results in a method chain sequence.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Seq
-                         * @param {*} value The value to provide to `interceptor`.
-                         * @param {Function} interceptor The function to invoke.
-                         * @returns {*} Returns the result of `interceptor`.
-                         * @example
-                         *
-                         * _('  abc  ')
-                         *  .chain()
-                         *  .trim()
-                         *  .thru(function(value) {
-                         *    return [value];
-                         *  })
-                         *  .value();
-                         * // => ['abc']
-                         */
-                        function thru(value, interceptor) {
-                            return interceptor(value);
-                        }
+    /**
+     * Checks if `func` has a lazy counterpart.
+     *
+     * @private
+     * @param {Function} func The function to check.
+     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
+     *  else `false`.
+     */
+    function isLaziable(func) {
+      var funcName = getFuncName(func),
+          other = lodash[funcName];
+
+      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
+        return false;
+      }
+      if (func === other) {
+        return true;
+      }
+      var data = getData(other);
+      return !!data && func === data[0];
+    }
 
-                        /**
-                         * This method is the wrapper version of `_.at`.
-                         *
-                         * @name at
-                         * @memberOf _
-                         * @since 1.0.0
-                         * @category Seq
-                         * @param {...(string|string[])} [paths] The property paths to pick.
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
-                         *
-                         * _(object).at(['a[0].b.c', 'a[1]']).value();
-                         * // => [3, 4]
-                         */
-                        var wrapperAt = flatRest(function(paths) {
-                            var length = paths.length,
-                                start = length ? paths[0] : 0,
-                                value = this.__wrapped__,
-                                interceptor = function(object) { return baseAt(object, paths); };
-
-                            if (length > 1 || this.__actions__.length ||
-                                !(value instanceof LazyWrapper) || !isIndex(start)) {
-                                return this.thru(interceptor);
-                            }
-                            value = value.slice(start, +start + (length ? 1 : 0));
-                            value.__actions__.push({
-                                'func': thru,
-                                'args': [interceptor],
-                                'thisArg': undefined
-                            });
-                            return new LodashWrapper(value, this.__chain__).thru(function(array) {
-                                if (length && !array.length) {
-                                    array.push(undefined);
-                                }
-                                return array;
-                            });
-                        });
+    /**
+     * Checks if `func` has its source masked.
+     *
+     * @private
+     * @param {Function} func The function to check.
+     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
+     */
+    function isMasked(func) {
+      return !!maskSrcKey && (maskSrcKey in func);
+    }
 
-                        /**
-                         * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
-                         *
-                         * @name chain
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Seq
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'age': 36 },
-                         *   { 'user': 'fred',   'age': 40 }
-                         * ];
-                         *
-                         * // A sequence without explicit chaining.
-                         * _(users).head();
-                         * // => { 'user': 'barney', 'age': 36 }
-                         *
-                         * // A sequence with explicit chaining.
-                         * _(users)
-                         *   .chain()
-                         *   .head()
-                         *   .pick('user')
-                         *   .value();
-                         * // => { 'user': 'barney' }
-                         */
-                        function wrapperChain() {
-                            return chain(this);
-                        }
+    /**
+     * Checks if `func` is capable of being masked.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
+     */
+    var isMaskable = coreJsData ? isFunction : stubFalse;
+
+    /**
+     * Checks if `value` is likely a prototype object.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+     */
+    function isPrototype(value) {
+      var Ctor = value && value.constructor,
+          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
+
+      return value === proto;
+    }
 
-                        /**
-                         * Executes the chain sequence and returns the wrapped result.
-                         *
-                         * @name commit
-                         * @memberOf _
-                         * @since 3.2.0
-                         * @category Seq
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * var array = [1, 2];
-                         * var wrapped = _(array).push(3);
-                         *
-                         * console.log(array);
-                         * // => [1, 2]
-                         *
-                         * wrapped = wrapped.commit();
-                         * console.log(array);
-                         * // => [1, 2, 3]
-                         *
-                         * wrapped.last();
-                         * // => 3
-                         *
-                         * console.log(array);
-                         * // => [1, 2, 3]
-                         */
-                        function wrapperCommit() {
-                            return new LodashWrapper(this.value(), this.__chain__);
-                        }
+    /**
+     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
+     *
+     * @private
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` if suitable for strict
+     *  equality comparisons, else `false`.
+     */
+    function isStrictComparable(value) {
+      return value === value && !isObject(value);
+    }
 
-                        /**
-                         * Gets the next value on a wrapped object following the
-                         * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
-                         *
-                         * @name next
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Seq
-                         * @returns {Object} Returns the next iterator value.
-                         * @example
-                         *
-                         * var wrapped = _([1, 2]);
-                         *
-                         * wrapped.next();
-                         * // => { 'done': false, 'value': 1 }
-                         *
-                         * wrapped.next();
-                         * // => { 'done': false, 'value': 2 }
-                         *
-                         * wrapped.next();
-                         * // => { 'done': true, 'value': undefined }
-                         */
-                        function wrapperNext() {
-                            if (this.__values__ === undefined) {
-                                this.__values__ = toArray(this.value());
-                            }
-                            var done = this.__index__ >= this.__values__.length,
-                                value = done ? undefined : this.__values__[this.__index__++];
+    /**
+     * A specialized version of `matchesProperty` for source values suitable
+     * for strict equality comparisons, i.e. `===`.
+     *
+     * @private
+     * @param {string} key The key of the property to get.
+     * @param {*} srcValue The value to match.
+     * @returns {Function} Returns the new spec function.
+     */
+    function matchesStrictComparable(key, srcValue) {
+      return function(object) {
+        if (object == null) {
+          return false;
+        }
+        return object[key] === srcValue &&
+          (srcValue !== undefined || (key in Object(object)));
+      };
+    }
 
-                            return { 'done': done, 'value': value };
-                        }
+    /**
+     * A specialized version of `_.memoize` which clears the memoized function's
+     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
+     *
+     * @private
+     * @param {Function} func The function to have its output memoized.
+     * @returns {Function} Returns the new memoized function.
+     */
+    function memoizeCapped(func) {
+      var result = memoize(func, function(key) {
+        if (cache.size === MAX_MEMOIZE_SIZE) {
+          cache.clear();
+        }
+        return key;
+      });
 
-                        /**
-                         * Enables the wrapper to be iterable.
-                         *
-                         * @name Symbol.iterator
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Seq
-                         * @returns {Object} Returns the wrapper object.
-                         * @example
-                         *
-                         * var wrapped = _([1, 2]);
-                         *
-                         * wrapped[Symbol.iterator]() === wrapped;
-                         * // => true
-                         *
-                         * Array.from(wrapped);
-                         * // => [1, 2]
-                         */
-                        function wrapperToIterator() {
-                            return this;
-                        }
+      var cache = result.cache;
+      return result;
+    }
 
-                        /**
-                         * Creates a clone of the chain sequence planting `value` as the wrapped value.
-                         *
-                         * @name plant
-                         * @memberOf _
-                         * @since 3.2.0
-                         * @category Seq
-                         * @param {*} value The value to plant.
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * var wrapped = _([1, 2]).map(square);
-                         * var other = wrapped.plant([3, 4]);
-                         *
-                         * other.value();
-                         * // => [9, 16]
-                         *
-                         * wrapped.value();
-                         * // => [1, 4]
-                         */
-                        function wrapperPlant(value) {
-                            var result,
-                                parent = this;
-
-                            while (parent instanceof baseLodash) {
-                                var clone = wrapperClone(parent);
-                                clone.__index__ = 0;
-                                clone.__values__ = undefined;
-                                if (result) {
-                                    previous.__wrapped__ = clone;
-                                } else {
-                                    result = clone;
-                                }
-                                var previous = clone;
-                                parent = parent.__wrapped__;
-                            }
-                            previous.__wrapped__ = value;
-                            return result;
-                        }
+    /**
+     * Merges the function metadata of `source` into `data`.
+     *
+     * Merging metadata reduces the number of wrappers used to invoke a function.
+     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
+     * may be applied regardless of execution order. Methods like `_.ary` and
+     * `_.rearg` modify function arguments, making the order in which they are
+     * executed important, preventing the merging of metadata. However, we make
+     * an exception for a safe combined case where curried functions have `_.ary`
+     * and or `_.rearg` applied.
+     *
+     * @private
+     * @param {Array} data The destination metadata.
+     * @param {Array} source The source metadata.
+     * @returns {Array} Returns `data`.
+     */
+    function mergeData(data, source) {
+      var bitmask = data[1],
+          srcBitmask = source[1],
+          newBitmask = bitmask | srcBitmask,
+          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
+
+      var isCombo =
+        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
+        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
+        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
+
+      // Exit early if metadata can't be merged.
+      if (!(isCommon || isCombo)) {
+        return data;
+      }
+      // Use source `thisArg` if available.
+      if (srcBitmask & WRAP_BIND_FLAG) {
+        data[2] = source[2];
+        // Set when currying a bound function.
+        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
+      }
+      // Compose partial arguments.
+      var value = source[3];
+      if (value) {
+        var partials = data[3];
+        data[3] = partials ? composeArgs(partials, value, source[4]) : value;
+        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
+      }
+      // Compose partial right arguments.
+      value = source[5];
+      if (value) {
+        partials = data[5];
+        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
+        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
+      }
+      // Use source `argPos` if available.
+      value = source[7];
+      if (value) {
+        data[7] = value;
+      }
+      // Use source `ary` if it's smaller.
+      if (srcBitmask & WRAP_ARY_FLAG) {
+        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
+      }
+      // Use source `arity` if one is not provided.
+      if (data[9] == null) {
+        data[9] = source[9];
+      }
+      // Use source `func` and merge bitmasks.
+      data[0] = source[0];
+      data[1] = newBitmask;
+
+      return data;
+    }
 
-                        /**
-                         * This method is the wrapper version of `_.reverse`.
-                         *
-                         * **Note:** This method mutates the wrapped array.
-                         *
-                         * @name reverse
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Seq
-                         * @returns {Object} Returns the new `lodash` wrapper instance.
-                         * @example
-                         *
-                         * var array = [1, 2, 3];
-                         *
-                         * _(array).reverse().value()
-                         * // => [3, 2, 1]
-                         *
-                         * console.log(array);
-                         * // => [3, 2, 1]
-                         */
-                        function wrapperReverse() {
-                            var value = this.__wrapped__;
-                            if (value instanceof LazyWrapper) {
-                                var wrapped = value;
-                                if (this.__actions__.length) {
-                                    wrapped = new LazyWrapper(this);
-                                }
-                                wrapped = wrapped.reverse();
-                                wrapped.__actions__.push({
-                                    'func': thru,
-                                    'args': [reverse],
-                                    'thisArg': undefined
-                                });
-                                return new LodashWrapper(wrapped, this.__chain__);
-                            }
-                            return this.thru(reverse);
-                        }
+    /**
+     * This function is like
+     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
+     * except that it includes inherited enumerable properties.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names.
+     */
+    function nativeKeysIn(object) {
+      var result = [];
+      if (object != null) {
+        for (var key in Object(object)) {
+          result.push(key);
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * Executes the chain sequence to resolve the unwrapped value.
-                         *
-                         * @name value
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @alias toJSON, valueOf
-                         * @category Seq
-                         * @returns {*} Returns the resolved unwrapped value.
-                         * @example
-                         *
-                         * _([1, 2, 3]).value();
-                         * // => [1, 2, 3]
-                         */
-                        function wrapperValue() {
-                            return baseWrapperValue(this.__wrapped__, this.__actions__);
-                        }
+    /**
+     * Converts `value` to a string using `Object.prototype.toString`.
+     *
+     * @private
+     * @param {*} value The value to convert.
+     * @returns {string} Returns the converted string.
+     */
+    function objectToString(value) {
+      return nativeObjectToString.call(value);
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Creates an object composed of keys generated from the results of running
-                         * each element of `collection` thru `iteratee`. The corresponding value of
-                         * each key is the number of times the key was returned by `iteratee`. The
-                         * iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.5.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
-                         * @returns {Object} Returns the composed aggregate object.
-                         * @example
-                         *
-                         * _.countBy([6.1, 4.2, 6.3], Math.floor);
-                         * // => { '4': 1, '6': 2 }
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.countBy(['one', 'two', 'three'], 'length');
-                         * // => { '3': 2, '5': 1 }
-                         */
-                        var countBy = createAggregator(function(result, value, key) {
-                            if (hasOwnProperty.call(result, key)) {
-                                ++result[key];
-                            } else {
-                                baseAssignValue(result, key, 1);
-                            }
-                        });
+    /**
+     * A specialized version of `baseRest` which transforms the rest array.
+     *
+     * @private
+     * @param {Function} func The function to apply a rest parameter to.
+     * @param {number} [start=func.length-1] The start position of the rest parameter.
+     * @param {Function} transform The rest array transform.
+     * @returns {Function} Returns the new function.
+     */
+    function overRest(func, start, transform) {
+      start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
+      return function() {
+        var args = arguments,
+            index = -1,
+            length = nativeMax(args.length - start, 0),
+            array = Array(length);
+
+        while (++index < length) {
+          array[index] = args[start + index];
+        }
+        index = -1;
+        var otherArgs = Array(start + 1);
+        while (++index < start) {
+          otherArgs[index] = args[index];
+        }
+        otherArgs[start] = transform(array);
+        return apply(func, this, otherArgs);
+      };
+    }
 
-                        /**
-                         * Checks if `predicate` returns truthy for **all** elements of `collection`.
-                         * Iteration is stopped once `predicate` returns falsey. The predicate is
-                         * invoked with three arguments: (value, index|key, collection).
-                         *
-                         * **Note:** This method returns `true` for
-                         * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
-                         * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
-                         * elements of empty collections.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {boolean} Returns `true` if all elements pass the predicate check,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.every([true, 1, null, 'yes'], Boolean);
-                         * // => false
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'age': 36, 'active': false },
-                         *   { 'user': 'fred',   'age': 40, 'active': false }
-                         * ];
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.every(users, { 'user': 'barney', 'active': false });
-                         * // => false
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.every(users, ['active', false]);
-                         * // => true
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.every(users, 'active');
-                         * // => false
-                         */
-                        function every(collection, predicate, guard) {
-                            var func = isArray(collection) ? arrayEvery : baseEvery;
-                            if (guard && isIterateeCall(collection, predicate, guard)) {
-                                predicate = undefined;
-                            }
-                            return func(collection, getIteratee(predicate, 3));
-                        }
+    /**
+     * Gets the parent value at `path` of `object`.
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {Array} path The path to get the parent value of.
+     * @returns {*} Returns the parent value.
+     */
+    function parent(object, path) {
+      return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
+    }
 
-                        /**
-                         * Iterates over elements of `collection`, returning an array of all elements
-                         * `predicate` returns truthy for. The predicate is invoked with three
-                         * arguments: (value, index|key, collection).
-                         *
-                         * **Note:** Unlike `_.remove`, this method returns a new array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new filtered array.
-                         * @see _.reject
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'age': 36, 'active': true },
-                         *   { 'user': 'fred',   'age': 40, 'active': false }
-                         * ];
-                         *
-                         * _.filter(users, function(o) { return !o.active; });
-                         * // => objects for ['fred']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.filter(users, { 'age': 36, 'active': true });
-                         * // => objects for ['barney']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.filter(users, ['active', false]);
-                         * // => objects for ['fred']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.filter(users, 'active');
-                         * // => objects for ['barney']
-                         *
-                         * // Combining several predicates using `_.overEvery` or `_.overSome`.
-                         * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
-                         * // => objects for ['fred', 'barney']
-                         */
-                        function filter(collection, predicate) {
-                            var func = isArray(collection) ? arrayFilter : baseFilter;
-                            return func(collection, getIteratee(predicate, 3));
-                        }
+    /**
+     * Reorder `array` according to the specified indexes where the element at
+     * the first index is assigned as the first element, the element at
+     * the second index is assigned as the second element, and so on.
+     *
+     * @private
+     * @param {Array} array The array to reorder.
+     * @param {Array} indexes The arranged array indexes.
+     * @returns {Array} Returns `array`.
+     */
+    function reorder(array, indexes) {
+      var arrLength = array.length,
+          length = nativeMin(indexes.length, arrLength),
+          oldArray = copyArray(array);
+
+      while (length--) {
+        var index = indexes[length];
+        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
+      }
+      return array;
+    }
 
-                        /**
-                         * Iterates over elements of `collection`, returning the first element
-                         * `predicate` returns truthy for. The predicate is invoked with three
-                         * arguments: (value, index|key, collection).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param {number} [fromIndex=0] The index to search from.
-                         * @returns {*} Returns the matched element, else `undefined`.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'age': 36, 'active': true },
-                         *   { 'user': 'fred',    'age': 40, 'active': false },
-                         *   { 'user': 'pebbles', 'age': 1,  'active': true }
-                         * ];
-                         *
-                         * _.find(users, function(o) { return o.age < 40; });
-                         * // => object for 'barney'
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.find(users, { 'age': 1, 'active': true });
-                         * // => object for 'pebbles'
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.find(users, ['active', false]);
-                         * // => object for 'fred'
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.find(users, 'active');
-                         * // => object for 'barney'
-                         */
-                        var find = createFind(findIndex);
-
-                        /**
-                         * This method is like `_.find` except that it iterates over elements of
-                         * `collection` from right to left.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param {number} [fromIndex=collection.length-1] The index to search from.
-                         * @returns {*} Returns the matched element, else `undefined`.
-                         * @example
-                         *
-                         * _.findLast([1, 2, 3, 4], function(n) {
-                         *   return n % 2 == 1;
-                         * });
-                         * // => 3
-                         */
-                        var findLast = createFind(findLastIndex);
-
-                        /**
-                         * Creates a flattened array of values by running each element in `collection`
-                         * thru `iteratee` and flattening the mapped results. The iteratee is invoked
-                         * with three arguments: (value, index|key, collection).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * function duplicate(n) {
-                         *   return [n, n];
-                         * }
-                         *
-                         * _.flatMap([1, 2], duplicate);
-                         * // => [1, 1, 2, 2]
-                         */
-                        function flatMap(collection, iteratee) {
-                            return baseFlatten(map(collection, iteratee), 1);
-                        }
+    /**
+     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
+     *
+     * @private
+     * @param {Object} object The object to query.
+     * @param {string} key The key of the property to get.
+     * @returns {*} Returns the property value.
+     */
+    function safeGet(object, key) {
+      if (key === 'constructor' && typeof object[key] === 'function') {
+        return;
+      }
+
+      if (key == '__proto__') {
+        return;
+      }
+
+      return object[key];
+    }
 
-                        /**
-                         * This method is like `_.flatMap` except that it recursively flattens the
-                         * mapped results.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.7.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * function duplicate(n) {
-                         *   return [[[n, n]]];
-                         * }
-                         *
-                         * _.flatMapDeep([1, 2], duplicate);
-                         * // => [1, 1, 2, 2]
-                         */
-                        function flatMapDeep(collection, iteratee) {
-                            return baseFlatten(map(collection, iteratee), INFINITY);
-                        }
+    /**
+     * Sets metadata for `func`.
+     *
+     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
+     * period of time, it will trip its breaker and transition to an identity
+     * function to avoid garbage collection pauses in V8. See
+     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
+     * for more details.
+     *
+     * @private
+     * @param {Function} func The function to associate metadata with.
+     * @param {*} data The metadata.
+     * @returns {Function} Returns `func`.
+     */
+    var setData = shortOut(baseSetData);
+
+    /**
+     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
+     *
+     * @private
+     * @param {Function} func The function to delay.
+     * @param {number} wait The number of milliseconds to delay invocation.
+     * @returns {number|Object} Returns the timer id or timeout object.
+     */
+    var setTimeout = ctxSetTimeout || function(func, wait) {
+      return root.setTimeout(func, wait);
+    };
+
+    /**
+     * Sets the `toString` method of `func` to return `string`.
+     *
+     * @private
+     * @param {Function} func The function to modify.
+     * @param {Function} string The `toString` result.
+     * @returns {Function} Returns `func`.
+     */
+    var setToString = shortOut(baseSetToString);
+
+    /**
+     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
+     * with wrapper details in a comment at the top of the source body.
+     *
+     * @private
+     * @param {Function} wrapper The function to modify.
+     * @param {Function} reference The reference function.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @returns {Function} Returns `wrapper`.
+     */
+    function setWrapToString(wrapper, reference, bitmask) {
+      var source = (reference + '');
+      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
+    }
 
-                        /**
-                         * This method is like `_.flatMap` except that it recursively flattens the
-                         * mapped results up to `depth` times.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.7.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @param {number} [depth=1] The maximum recursion depth.
-                         * @returns {Array} Returns the new flattened array.
-                         * @example
-                         *
-                         * function duplicate(n) {
-                         *   return [[[n, n]]];
-                         * }
-                         *
-                         * _.flatMapDepth([1, 2], duplicate, 2);
-                         * // => [[1, 1], [2, 2]]
-                         */
-                        function flatMapDepth(collection, iteratee, depth) {
-                            depth = depth === undefined ? 1 : toInteger(depth);
-                            return baseFlatten(map(collection, iteratee), depth);
-                        }
+    /**
+     * Creates a function that'll short out and invoke `identity` instead
+     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
+     * milliseconds.
+     *
+     * @private
+     * @param {Function} func The function to restrict.
+     * @returns {Function} Returns the new shortable function.
+     */
+    function shortOut(func) {
+      var count = 0,
+          lastCalled = 0;
+
+      return function() {
+        var stamp = nativeNow(),
+            remaining = HOT_SPAN - (stamp - lastCalled);
+
+        lastCalled = stamp;
+        if (remaining > 0) {
+          if (++count >= HOT_COUNT) {
+            return arguments[0];
+          }
+        } else {
+          count = 0;
+        }
+        return func.apply(undefined, arguments);
+      };
+    }
 
-                        /**
-                         * Iterates over elements of `collection` and invokes `iteratee` for each element.
-                         * The iteratee is invoked with three arguments: (value, index|key, collection).
-                         * Iteratee functions may exit iteration early by explicitly returning `false`.
-                         *
-                         * **Note:** As with other "Collections" methods, objects with a "length"
-                         * property are iterated like arrays. To avoid this behavior use `_.forIn`
-                         * or `_.forOwn` for object iteration.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @alias each
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array|Object} Returns `collection`.
-                         * @see _.forEachRight
-                         * @example
-                         *
-                         * _.forEach([1, 2], function(value) {
-                         *   console.log(value);
-                         * });
-                         * // => Logs `1` then `2`.
-                         *
-                         * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
-                         *   console.log(key);
-                         * });
-                         * // => Logs 'a' then 'b' (iteration order is not guaranteed).
-                         */
-                        function forEach(collection, iteratee) {
-                            var func = isArray(collection) ? arrayEach : baseEach;
-                            return func(collection, getIteratee(iteratee, 3));
-                        }
+    /**
+     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
+     *
+     * @private
+     * @param {Array} array The array to shuffle.
+     * @param {number} [size=array.length] The size of `array`.
+     * @returns {Array} Returns `array`.
+     */
+    function shuffleSelf(array, size) {
+      var index = -1,
+          length = array.length,
+          lastIndex = length - 1;
+
+      size = size === undefined ? length : size;
+      while (++index < size) {
+        var rand = baseRandom(index, lastIndex),
+            value = array[rand];
+
+        array[rand] = array[index];
+        array[index] = value;
+      }
+      array.length = size;
+      return array;
+    }
 
-                        /**
-                         * This method is like `_.forEach` except that it iterates over elements of
-                         * `collection` from right to left.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @alias eachRight
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array|Object} Returns `collection`.
-                         * @see _.forEach
-                         * @example
-                         *
-                         * _.forEachRight([1, 2], function(value) {
-                         *   console.log(value);
-                         * });
-                         * // => Logs `2` then `1`.
-                         */
-                        function forEachRight(collection, iteratee) {
-                            var func = isArray(collection) ? arrayEachRight : baseEachRight;
-                            return func(collection, getIteratee(iteratee, 3));
-                        }
+    /**
+     * Converts `string` to a property path array.
+     *
+     * @private
+     * @param {string} string The string to convert.
+     * @returns {Array} Returns the property path array.
+     */
+    var stringToPath = memoizeCapped(function(string) {
+      var result = [];
+      if (string.charCodeAt(0) === 46 /* . */) {
+        result.push('');
+      }
+      string.replace(rePropName, function(match, number, quote, subString) {
+        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
+      });
+      return result;
+    });
+
+    /**
+     * Converts `value` to a string key if it's not a string or symbol.
+     *
+     * @private
+     * @param {*} value The value to inspect.
+     * @returns {string|symbol} Returns the key.
+     */
+    function toKey(value) {
+      if (typeof value == 'string' || isSymbol(value)) {
+        return value;
+      }
+      var result = (value + '');
+      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+    }
 
-                        /**
-                         * Creates an object composed of keys generated from the results of running
-                         * each element of `collection` thru `iteratee`. The order of grouped values
-                         * is determined by the order they occur in `collection`. The corresponding
-                         * value of each key is an array of elements responsible for generating the
-                         * key. The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
-                         * @returns {Object} Returns the composed aggregate object.
-                         * @example
-                         *
-                         * _.groupBy([6.1, 4.2, 6.3], Math.floor);
-                         * // => { '4': [4.2], '6': [6.1, 6.3] }
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.groupBy(['one', 'two', 'three'], 'length');
-                         * // => { '3': ['one', 'two'], '5': ['three'] }
-                         */
-                        var groupBy = createAggregator(function(result, value, key) {
-                            if (hasOwnProperty.call(result, key)) {
-                                result[key].push(value);
-                            } else {
-                                baseAssignValue(result, key, [value]);
-                            }
-                        });
+    /**
+     * Converts `func` to its source code.
+     *
+     * @private
+     * @param {Function} func The function to convert.
+     * @returns {string} Returns the source code.
+     */
+    function toSource(func) {
+      if (func != null) {
+        try {
+          return funcToString.call(func);
+        } catch (e) {}
+        try {
+          return (func + '');
+        } catch (e) {}
+      }
+      return '';
+    }
 
-                        /**
-                         * Checks if `value` is in `collection`. If `collection` is a string, it's
-                         * checked for a substring of `value`, otherwise
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * is used for equality comparisons. If `fromIndex` is negative, it's used as
-                         * the offset from the end of `collection`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object|string} collection The collection to inspect.
-                         * @param {*} value The value to search for.
-                         * @param {number} [fromIndex=0] The index to search from.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
-                         * @returns {boolean} Returns `true` if `value` is found, else `false`.
-                         * @example
-                         *
-                         * _.includes([1, 2, 3], 1);
-                         * // => true
-                         *
-                         * _.includes([1, 2, 3], 1, 2);
-                         * // => false
-                         *
-                         * _.includes({ 'a': 1, 'b': 2 }, 1);
-                         * // => true
-                         *
-                         * _.includes('abcd', 'bc');
-                         * // => true
-                         */
-                        function includes(collection, value, fromIndex, guard) {
-                            collection = isArrayLike(collection) ? collection : values(collection);
-                            fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
-
-                            var length = collection.length;
-                            if (fromIndex < 0) {
-                                fromIndex = nativeMax(length + fromIndex, 0);
-                            }
-                            return isString(collection)
-                                ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
-                                : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
-                        }
+    /**
+     * Updates wrapper `details` based on `bitmask` flags.
+     *
+     * @private
+     * @returns {Array} details The details to modify.
+     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
+     * @returns {Array} Returns `details`.
+     */
+    function updateWrapDetails(details, bitmask) {
+      arrayEach(wrapFlags, function(pair) {
+        var value = '_.' + pair[0];
+        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
+          details.push(value);
+        }
+      });
+      return details.sort();
+    }
 
-                        /**
-                         * Invokes the method at `path` of each element in `collection`, returning
-                         * an array of the results of each invoked method. Any additional arguments
-                         * are provided to each invoked method. If `path` is a function, it's invoked
-                         * for, and `this` bound to, each element in `collection`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Array|Function|string} path The path of the method to invoke or
-                         *  the function invoked per iteration.
-                         * @param {...*} [args] The arguments to invoke each method with.
-                         * @returns {Array} Returns the array of results.
-                         * @example
-                         *
-                         * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
-                         * // => [[1, 5, 7], [1, 2, 3]]
-                         *
-                         * _.invokeMap([123, 456], String.prototype.split, '');
-                         * // => [['1', '2', '3'], ['4', '5', '6']]
-                         */
-                        var invokeMap = baseRest(function(collection, path, args) {
-                            var index = -1,
-                                isFunc = typeof path == 'function',
-                                result = isArrayLike(collection) ? Array(collection.length) : [];
-
-                            baseEach(collection, function(value) {
-                                result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
-                            });
-                            return result;
-                        });
+    /**
+     * Creates a clone of `wrapper`.
+     *
+     * @private
+     * @param {Object} wrapper The wrapper to clone.
+     * @returns {Object} Returns the cloned wrapper.
+     */
+    function wrapperClone(wrapper) {
+      if (wrapper instanceof LazyWrapper) {
+        return wrapper.clone();
+      }
+      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
+      result.__actions__ = copyArray(wrapper.__actions__);
+      result.__index__  = wrapper.__index__;
+      result.__values__ = wrapper.__values__;
+      return result;
+    }
 
-                        /**
-                         * Creates an object composed of keys generated from the results of running
-                         * each element of `collection` thru `iteratee`. The corresponding value of
-                         * each key is the last element responsible for generating the key. The
-                         * iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
-                         * @returns {Object} Returns the composed aggregate object.
-                         * @example
-                         *
-                         * var array = [
-                         *   { 'dir': 'left', 'code': 97 },
-                         *   { 'dir': 'right', 'code': 100 }
-                         * ];
-                         *
-                         * _.keyBy(array, function(o) {
-                         *   return String.fromCharCode(o.code);
-                         * });
-                         * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
-                         *
-                         * _.keyBy(array, 'dir');
-                         * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
-                         */
-                        var keyBy = createAggregator(function(result, value, key) {
-                            baseAssignValue(result, key, value);
-                        });
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates an array of elements split into groups the length of `size`.
+     * If `array` can't be split evenly, the final chunk will be the remaining
+     * elements.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to process.
+     * @param {number} [size=1] The length of each chunk
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the new array of chunks.
+     * @example
+     *
+     * _.chunk(['a', 'b', 'c', 'd'], 2);
+     * // => [['a', 'b'], ['c', 'd']]
+     *
+     * _.chunk(['a', 'b', 'c', 'd'], 3);
+     * // => [['a', 'b', 'c'], ['d']]
+     */
+    function chunk(array, size, guard) {
+      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
+        size = 1;
+      } else {
+        size = nativeMax(toInteger(size), 0);
+      }
+      var length = array == null ? 0 : array.length;
+      if (!length || size < 1) {
+        return [];
+      }
+      var index = 0,
+          resIndex = 0,
+          result = Array(nativeCeil(length / size));
+
+      while (index < length) {
+        result[resIndex++] = baseSlice(array, index, (index += size));
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates an array of values by running each element in `collection` thru
-                         * `iteratee`. The iteratee is invoked with three arguments:
-                         * (value, index|key, collection).
-                         *
-                         * Many lodash methods are guarded to work as iteratees for methods like
-                         * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
-                         *
-                         * The guarded methods are:
-                         * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
-                         * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
-                         * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
-                         * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new mapped array.
-                         * @example
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * _.map([4, 8], square);
-                         * // => [16, 64]
-                         *
-                         * _.map({ 'a': 4, 'b': 8 }, square);
-                         * // => [16, 64] (iteration order is not guaranteed)
-                         *
-                         * var users = [
-                         *   { 'user': 'barney' },
-                         *   { 'user': 'fred' }
-                         * ];
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.map(users, 'user');
-                         * // => ['barney', 'fred']
-                         */
-                        function map(collection, iteratee) {
-                            var func = isArray(collection) ? arrayMap : baseMap;
-                            return func(collection, getIteratee(iteratee, 3));
-                        }
+    /**
+     * Creates an array with all falsey values removed. The values `false`, `null`,
+     * `0`, `""`, `undefined`, and `NaN` are falsey.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to compact.
+     * @returns {Array} Returns the new array of filtered values.
+     * @example
+     *
+     * _.compact([0, 1, false, 2, '', 3]);
+     * // => [1, 2, 3]
+     */
+    function compact(array) {
+      var index = -1,
+          length = array == null ? 0 : array.length,
+          resIndex = 0,
+          result = [];
+
+      while (++index < length) {
+        var value = array[index];
+        if (value) {
+          result[resIndex++] = value;
+        }
+      }
+      return result;
+    }
 
-                        /**
-                         * This method is like `_.sortBy` except that it allows specifying the sort
-                         * orders of the iteratees to sort by. If `orders` is unspecified, all values
-                         * are sorted in ascending order. Otherwise, specify an order of "desc" for
-                         * descending or "asc" for ascending sort order of corresponding values.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
-                         *  The iteratees to sort by.
-                         * @param {string[]} [orders] The sort orders of `iteratees`.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
-                         * @returns {Array} Returns the new sorted array.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'fred',   'age': 48 },
-                         *   { 'user': 'barney', 'age': 34 },
-                         *   { 'user': 'fred',   'age': 40 },
-                         *   { 'user': 'barney', 'age': 36 }
-                         * ];
-                         *
-                         * // Sort by `user` in ascending order and by `age` in descending order.
-                         * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
-                         * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
-                         */
-                        function orderBy(collection, iteratees, orders, guard) {
-                            if (collection == null) {
-                                return [];
-                            }
-                            if (!isArray(iteratees)) {
-                                iteratees = iteratees == null ? [] : [iteratees];
-                            }
-                            orders = guard ? undefined : orders;
-                            if (!isArray(orders)) {
-                                orders = orders == null ? [] : [orders];
-                            }
-                            return baseOrderBy(collection, iteratees, orders);
-                        }
+    /**
+     * Creates a new array concatenating `array` with any additional arrays
+     * and/or values.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to concatenate.
+     * @param {...*} [values] The values to concatenate.
+     * @returns {Array} Returns the new concatenated array.
+     * @example
+     *
+     * var array = [1];
+     * var other = _.concat(array, 2, [3], [[4]]);
+     *
+     * console.log(other);
+     * // => [1, 2, 3, [4]]
+     *
+     * console.log(array);
+     * // => [1]
+     */
+    function concat() {
+      var length = arguments.length;
+      if (!length) {
+        return [];
+      }
+      var args = Array(length - 1),
+          array = arguments[0],
+          index = length;
+
+      while (index--) {
+        args[index - 1] = arguments[index];
+      }
+      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
+    }
 
-                        /**
-                         * Creates an array of elements split into two groups, the first of which
-                         * contains elements `predicate` returns truthy for, the second of which
-                         * contains elements `predicate` returns falsey for. The predicate is
-                         * invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the array of grouped elements.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney',  'age': 36, 'active': false },
-                         *   { 'user': 'fred',    'age': 40, 'active': true },
-                         *   { 'user': 'pebbles', 'age': 1,  'active': false }
-                         * ];
-                         *
-                         * _.partition(users, function(o) { return o.active; });
-                         * // => objects for [['fred'], ['barney', 'pebbles']]
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.partition(users, { 'age': 1, 'active': false });
-                         * // => objects for [['pebbles'], ['barney', 'fred']]
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.partition(users, ['active', false]);
-                         * // => objects for [['barney', 'pebbles'], ['fred']]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.partition(users, 'active');
-                         * // => objects for [['fred'], ['barney', 'pebbles']]
-                         */
-                        var partition = createAggregator(function(result, value, key) {
-                            result[key ? 0 : 1].push(value);
-                        }, function() { return [[], []]; });
-
-                        /**
-                         * Reduces `collection` to a value which is the accumulated result of running
-                         * each element in `collection` thru `iteratee`, where each successive
-                         * invocation is supplied the return value of the previous. If `accumulator`
-                         * is not given, the first element of `collection` is used as the initial
-                         * value. The iteratee is invoked with four arguments:
-                         * (accumulator, value, index|key, collection).
-                         *
-                         * Many lodash methods are guarded to work as iteratees for methods like
-                         * `_.reduce`, `_.reduceRight`, and `_.transform`.
-                         *
-                         * The guarded methods are:
-                         * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
-                         * and `sortBy`
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @param {*} [accumulator] The initial value.
-                         * @returns {*} Returns the accumulated value.
-                         * @see _.reduceRight
-                         * @example
-                         *
-                         * _.reduce([1, 2], function(sum, n) {
-                         *   return sum + n;
-                         * }, 0);
-                         * // => 3
-                         *
-                         * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
-                         *   (result[value] || (result[value] = [])).push(key);
-                         *   return result;
-                         * }, {});
-                         * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
-                         */
-                        function reduce(collection, iteratee, accumulator) {
-                            var func = isArray(collection) ? arrayReduce : baseReduce,
-                                initAccum = arguments.length < 3;
-
-                            return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
-                        }
+    /**
+     * Creates an array of `array` values not included in the other given arrays
+     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons. The order and references of result values are
+     * determined by the first array.
+     *
+     * **Note:** Unlike `_.pullAll`, this method returns a new array.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {...Array} [values] The values to exclude.
+     * @returns {Array} Returns the new array of filtered values.
+     * @see _.without, _.xor
+     * @example
+     *
+     * _.difference([2, 1], [2, 3]);
+     * // => [1]
+     */
+    var difference = baseRest(function(array, values) {
+      return isArrayLikeObject(array)
+        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
+        : [];
+    });
+
+    /**
+     * This method is like `_.difference` except that it accepts `iteratee` which
+     * is invoked for each element of `array` and `values` to generate the criterion
+     * by which they're compared. The order and references of result values are
+     * determined by the first array. The iteratee is invoked with one argument:
+     * (value).
+     *
+     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {...Array} [values] The values to exclude.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns the new array of filtered values.
+     * @example
+     *
+     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
+     * // => [1.2]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
+     * // => [{ 'x': 2 }]
+     */
+    var differenceBy = baseRest(function(array, values) {
+      var iteratee = last(values);
+      if (isArrayLikeObject(iteratee)) {
+        iteratee = undefined;
+      }
+      return isArrayLikeObject(array)
+        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
+        : [];
+    });
+
+    /**
+     * This method is like `_.difference` except that it accepts `comparator`
+     * which is invoked to compare elements of `array` to `values`. The order and
+     * references of result values are determined by the first array. The comparator
+     * is invoked with two arguments: (arrVal, othVal).
+     *
+     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {...Array} [values] The values to exclude.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of filtered values.
+     * @example
+     *
+     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+     *
+     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
+     * // => [{ 'x': 2, 'y': 1 }]
+     */
+    var differenceWith = baseRest(function(array, values) {
+      var comparator = last(values);
+      if (isArrayLikeObject(comparator)) {
+        comparator = undefined;
+      }
+      return isArrayLikeObject(array)
+        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
+        : [];
+    });
+
+    /**
+     * Creates a slice of `array` with `n` elements dropped from the beginning.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.5.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {number} [n=1] The number of elements to drop.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.drop([1, 2, 3]);
+     * // => [2, 3]
+     *
+     * _.drop([1, 2, 3], 2);
+     * // => [3]
+     *
+     * _.drop([1, 2, 3], 5);
+     * // => []
+     *
+     * _.drop([1, 2, 3], 0);
+     * // => [1, 2, 3]
+     */
+    function drop(array, n, guard) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      n = (guard || n === undefined) ? 1 : toInteger(n);
+      return baseSlice(array, n < 0 ? 0 : n, length);
+    }
 
-                        /**
-                         * This method is like `_.reduce` except that it iterates over elements of
-                         * `collection` from right to left.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @param {*} [accumulator] The initial value.
-                         * @returns {*} Returns the accumulated value.
-                         * @see _.reduce
-                         * @example
-                         *
-                         * var array = [[0, 1], [2, 3], [4, 5]];
-                         *
-                         * _.reduceRight(array, function(flattened, other) {
-                         *   return flattened.concat(other);
-                         * }, []);
-                         * // => [4, 5, 2, 3, 0, 1]
-                         */
-                        function reduceRight(collection, iteratee, accumulator) {
-                            var func = isArray(collection) ? arrayReduceRight : baseReduce,
-                                initAccum = arguments.length < 3;
-
-                            return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
-                        }
+    /**
+     * Creates a slice of `array` with `n` elements dropped from the end.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {number} [n=1] The number of elements to drop.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.dropRight([1, 2, 3]);
+     * // => [1, 2]
+     *
+     * _.dropRight([1, 2, 3], 2);
+     * // => [1]
+     *
+     * _.dropRight([1, 2, 3], 5);
+     * // => []
+     *
+     * _.dropRight([1, 2, 3], 0);
+     * // => [1, 2, 3]
+     */
+    function dropRight(array, n, guard) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      n = (guard || n === undefined) ? 1 : toInteger(n);
+      n = length - n;
+      return baseSlice(array, 0, n < 0 ? 0 : n);
+    }
 
-                        /**
-                         * The opposite of `_.filter`; this method returns the elements of `collection`
-                         * that `predicate` does **not** return truthy for.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the new filtered array.
-                         * @see _.filter
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'age': 36, 'active': false },
-                         *   { 'user': 'fred',   'age': 40, 'active': true }
-                         * ];
-                         *
-                         * _.reject(users, function(o) { return !o.active; });
-                         * // => objects for ['fred']
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.reject(users, { 'age': 40, 'active': true });
-                         * // => objects for ['barney']
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.reject(users, ['active', false]);
-                         * // => objects for ['fred']
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.reject(users, 'active');
-                         * // => objects for ['barney']
-                         */
-                        function reject(collection, predicate) {
-                            var func = isArray(collection) ? arrayFilter : baseFilter;
-                            return func(collection, negate(getIteratee(predicate, 3)));
-                        }
+    /**
+     * Creates a slice of `array` excluding elements dropped from the end.
+     * Elements are dropped until `predicate` returns falsey. The predicate is
+     * invoked with three arguments: (value, index, array).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': true },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': false }
+     * ];
+     *
+     * _.dropRightWhile(users, function(o) { return !o.active; });
+     * // => objects for ['barney']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
+     * // => objects for ['barney', 'fred']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.dropRightWhile(users, ['active', false]);
+     * // => objects for ['barney']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.dropRightWhile(users, 'active');
+     * // => objects for ['barney', 'fred', 'pebbles']
+     */
+    function dropRightWhile(array, predicate) {
+      return (array && array.length)
+        ? baseWhile(array, getIteratee(predicate, 3), true, true)
+        : [];
+    }
 
-                        /**
-                         * Gets a random element from `collection`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to sample.
-                         * @returns {*} Returns the random element.
-                         * @example
-                         *
-                         * _.sample([1, 2, 3, 4]);
-                         * // => 2
-                         */
-                        function sample(collection) {
-                            var func = isArray(collection) ? arraySample : baseSample;
-                            return func(collection);
-                        }
+    /**
+     * Creates a slice of `array` excluding elements dropped from the beginning.
+     * Elements are dropped until `predicate` returns falsey. The predicate is
+     * invoked with three arguments: (value, index, array).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': false },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': true }
+     * ];
+     *
+     * _.dropWhile(users, function(o) { return !o.active; });
+     * // => objects for ['pebbles']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.dropWhile(users, { 'user': 'barney', 'active': false });
+     * // => objects for ['fred', 'pebbles']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.dropWhile(users, ['active', false]);
+     * // => objects for ['pebbles']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.dropWhile(users, 'active');
+     * // => objects for ['barney', 'fred', 'pebbles']
+     */
+    function dropWhile(array, predicate) {
+      return (array && array.length)
+        ? baseWhile(array, getIteratee(predicate, 3), true)
+        : [];
+    }
 
-                        /**
-                         * Gets `n` random elements at unique keys from `collection` up to the
-                         * size of `collection`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to sample.
-                         * @param {number} [n=1] The number of elements to sample.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the random elements.
-                         * @example
-                         *
-                         * _.sampleSize([1, 2, 3], 2);
-                         * // => [3, 1]
-                         *
-                         * _.sampleSize([1, 2, 3], 4);
-                         * // => [2, 3, 1]
-                         */
-                        function sampleSize(collection, n, guard) {
-                            if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
-                                n = 1;
-                            } else {
-                                n = toInteger(n);
-                            }
-                            var func = isArray(collection) ? arraySampleSize : baseSampleSize;
-                            return func(collection, n);
-                        }
+    /**
+     * Fills elements of `array` with `value` from `start` up to, but not
+     * including, `end`.
+     *
+     * **Note:** This method mutates `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.2.0
+     * @category Array
+     * @param {Array} array The array to fill.
+     * @param {*} value The value to fill `array` with.
+     * @param {number} [start=0] The start position.
+     * @param {number} [end=array.length] The end position.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = [1, 2, 3];
+     *
+     * _.fill(array, 'a');
+     * console.log(array);
+     * // => ['a', 'a', 'a']
+     *
+     * _.fill(Array(3), 2);
+     * // => [2, 2, 2]
+     *
+     * _.fill([4, 6, 8, 10], '*', 1, 3);
+     * // => [4, '*', '*', 10]
+     */
+    function fill(array, value, start, end) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
+        start = 0;
+        end = length;
+      }
+      return baseFill(array, value, start, end);
+    }
 
-                        /**
-                         * Creates an array of shuffled values, using a version of the
-                         * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to shuffle.
-                         * @returns {Array} Returns the new shuffled array.
-                         * @example
-                         *
-                         * _.shuffle([1, 2, 3, 4]);
-                         * // => [4, 1, 3, 2]
-                         */
-                        function shuffle(collection) {
-                            var func = isArray(collection) ? arrayShuffle : baseShuffle;
-                            return func(collection);
-                        }
+    /**
+     * This method is like `_.find` except that it returns the index of the first
+     * element `predicate` returns truthy for instead of the element itself.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param {number} [fromIndex=0] The index to search from.
+     * @returns {number} Returns the index of the found element, else `-1`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': false },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': true }
+     * ];
+     *
+     * _.findIndex(users, function(o) { return o.user == 'barney'; });
+     * // => 0
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.findIndex(users, { 'user': 'fred', 'active': false });
+     * // => 1
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.findIndex(users, ['active', false]);
+     * // => 0
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.findIndex(users, 'active');
+     * // => 2
+     */
+    function findIndex(array, predicate, fromIndex) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return -1;
+      }
+      var index = fromIndex == null ? 0 : toInteger(fromIndex);
+      if (index < 0) {
+        index = nativeMax(length + index, 0);
+      }
+      return baseFindIndex(array, getIteratee(predicate, 3), index);
+    }
 
-                        /**
-                         * Gets the size of `collection` by returning its length for array-like
-                         * values or the number of own enumerable string keyed properties for objects.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object|string} collection The collection to inspect.
-                         * @returns {number} Returns the collection size.
-                         * @example
-                         *
-                         * _.size([1, 2, 3]);
-                         * // => 3
-                         *
-                         * _.size({ 'a': 1, 'b': 2 });
-                         * // => 2
-                         *
-                         * _.size('pebbles');
-                         * // => 7
-                         */
-                        function size(collection) {
-                            if (collection == null) {
-                                return 0;
-                            }
-                            if (isArrayLike(collection)) {
-                                return isString(collection) ? stringSize(collection) : collection.length;
-                            }
-                            var tag = getTag(collection);
-                            if (tag == mapTag || tag == setTag) {
-                                return collection.size;
-                            }
-                            return baseKeys(collection).length;
-                        }
+    /**
+     * This method is like `_.findIndex` except that it iterates over elements
+     * of `collection` from right to left.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param {number} [fromIndex=array.length-1] The index to search from.
+     * @returns {number} Returns the index of the found element, else `-1`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': true },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': false }
+     * ];
+     *
+     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
+     * // => 2
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
+     * // => 0
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.findLastIndex(users, ['active', false]);
+     * // => 2
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.findLastIndex(users, 'active');
+     * // => 0
+     */
+    function findLastIndex(array, predicate, fromIndex) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return -1;
+      }
+      var index = length - 1;
+      if (fromIndex !== undefined) {
+        index = toInteger(fromIndex);
+        index = fromIndex < 0
+          ? nativeMax(length + index, 0)
+          : nativeMin(index, length - 1);
+      }
+      return baseFindIndex(array, getIteratee(predicate, 3), index, true);
+    }
 
-                        /**
-                         * Checks if `predicate` returns truthy for **any** element of `collection`.
-                         * Iteration is stopped once `predicate` returns truthy. The predicate is
-                         * invoked with three arguments: (value, index|key, collection).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {boolean} Returns `true` if any element passes the predicate check,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.some([null, 0, 'yes', false], Boolean);
-                         * // => true
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'active': true },
-                         *   { 'user': 'fred',   'active': false }
-                         * ];
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.some(users, { 'user': 'barney', 'active': false });
-                         * // => false
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.some(users, ['active', false]);
-                         * // => true
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.some(users, 'active');
-                         * // => true
-                         */
-                        function some(collection, predicate, guard) {
-                            var func = isArray(collection) ? arraySome : baseSome;
-                            if (guard && isIterateeCall(collection, predicate, guard)) {
-                                predicate = undefined;
-                            }
-                            return func(collection, getIteratee(predicate, 3));
-                        }
+    /**
+     * Flattens `array` a single level deep.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to flatten.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * _.flatten([1, [2, [3, [4]], 5]]);
+     * // => [1, 2, [3, [4]], 5]
+     */
+    function flatten(array) {
+      var length = array == null ? 0 : array.length;
+      return length ? baseFlatten(array, 1) : [];
+    }
 
-                        /**
-                         * Creates an array of elements, sorted in ascending order by the results of
-                         * running each element in a collection thru each iteratee. This method
-                         * performs a stable sort, that is, it preserves the original sort order of
-                         * equal elements. The iteratees are invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Collection
-                         * @param {Array|Object} collection The collection to iterate over.
-                         * @param {...(Function|Function[])} [iteratees=[_.identity]]
-                         *  The iteratees to sort by.
-                         * @returns {Array} Returns the new sorted array.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'fred',   'age': 48 },
-                         *   { 'user': 'barney', 'age': 36 },
-                         *   { 'user': 'fred',   'age': 30 },
-                         *   { 'user': 'barney', 'age': 34 }
-                         * ];
-                         *
-                         * _.sortBy(users, [function(o) { return o.user; }]);
-                         * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
-                         *
-                         * _.sortBy(users, ['user', 'age']);
-                         * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
-                         */
-                        var sortBy = baseRest(function(collection, iteratees) {
-                            if (collection == null) {
-                                return [];
-                            }
-                            var length = iteratees.length;
-                            if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
-                                iteratees = [];
-                            } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
-                                iteratees = [iteratees[0]];
-                            }
-                            return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
-                        });
+    /**
+     * Recursively flattens `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to flatten.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * _.flattenDeep([1, [2, [3, [4]], 5]]);
+     * // => [1, 2, 3, 4, 5]
+     */
+    function flattenDeep(array) {
+      var length = array == null ? 0 : array.length;
+      return length ? baseFlatten(array, INFINITY) : [];
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Gets the timestamp of the number of milliseconds that have elapsed since
-                         * the Unix epoch (1 January 1970 00:00:00 UTC).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.4.0
-                         * @category Date
-                         * @returns {number} Returns the timestamp.
-                         * @example
-                         *
-                         * _.defer(function(stamp) {
-                         *   console.log(_.now() - stamp);
-                         * }, _.now());
-                         * // => Logs the number of milliseconds it took for the deferred invocation.
-                         */
-                        var now = ctxNow || function() {
-                            return root.Date.now();
-                        };
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * The opposite of `_.before`; this method creates a function that invokes
-                         * `func` once it's called `n` or more times.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {number} n The number of calls before `func` is invoked.
-                         * @param {Function} func The function to restrict.
-                         * @returns {Function} Returns the new restricted function.
-                         * @example
-                         *
-                         * var saves = ['profile', 'settings'];
-                         *
-                         * var done = _.after(saves.length, function() {
-                         *   console.log('done saving!');
-                         * });
-                         *
-                         * _.forEach(saves, function(type) {
-                         *   asyncSave({ 'type': type, 'complete': done });
-                         * });
-                         * // => Logs 'done saving!' after the two async saves have completed.
-                         */
-                        function after(n, func) {
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            n = toInteger(n);
-                            return function() {
-                                if (--n < 1) {
-                                    return func.apply(this, arguments);
-                                }
-                            };
-                        }
+    /**
+     * Recursively flatten `array` up to `depth` times.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.4.0
+     * @category Array
+     * @param {Array} array The array to flatten.
+     * @param {number} [depth=1] The maximum recursion depth.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * var array = [1, [2, [3, [4]], 5]];
+     *
+     * _.flattenDepth(array, 1);
+     * // => [1, 2, [3, [4]], 5]
+     *
+     * _.flattenDepth(array, 2);
+     * // => [1, 2, 3, [4], 5]
+     */
+    function flattenDepth(array, depth) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      depth = depth === undefined ? 1 : toInteger(depth);
+      return baseFlatten(array, depth);
+    }
 
-                        /**
-                         * Creates a function that invokes `func`, with up to `n` arguments,
-                         * ignoring any additional arguments.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Function
-                         * @param {Function} func The function to cap arguments for.
-                         * @param {number} [n=func.length] The arity cap.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Function} Returns the new capped function.
-                         * @example
-                         *
-                         * _.map(['6', '8', '10'], _.ary(parseInt, 1));
-                         * // => [6, 8, 10]
-                         */
-                        function ary(func, n, guard) {
-                            n = guard ? undefined : n;
-                            n = (func && n == null) ? func.length : n;
-                            return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
-                        }
+    /**
+     * The inverse of `_.toPairs`; this method returns an object composed
+     * from key-value `pairs`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} pairs The key-value pairs.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * _.fromPairs([['a', 1], ['b', 2]]);
+     * // => { 'a': 1, 'b': 2 }
+     */
+    function fromPairs(pairs) {
+      var index = -1,
+          length = pairs == null ? 0 : pairs.length,
+          result = {};
+
+      while (++index < length) {
+        var pair = pairs[index];
+        result[pair[0]] = pair[1];
+      }
+      return result;
+    }
 
-                        /**
-                         * Creates a function that invokes `func`, with the `this` binding and arguments
-                         * of the created function, while it's called less than `n` times. Subsequent
-                         * calls to the created function return the result of the last `func` invocation.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Function
-                         * @param {number} n The number of calls at which `func` is no longer invoked.
-                         * @param {Function} func The function to restrict.
-                         * @returns {Function} Returns the new restricted function.
-                         * @example
-                         *
-                         * jQuery(element).on('click', _.before(5, addContactToList));
-                         * // => Allows adding up to 4 contacts to the list.
-                         */
-                        function before(n, func) {
-                            var result;
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            n = toInteger(n);
-                            return function() {
-                                if (--n > 0) {
-                                    result = func.apply(this, arguments);
-                                }
-                                if (n <= 1) {
-                                    func = undefined;
-                                }
-                                return result;
-                            };
-                        }
+    /**
+     * Gets the first element of `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @alias first
+     * @category Array
+     * @param {Array} array The array to query.
+     * @returns {*} Returns the first element of `array`.
+     * @example
+     *
+     * _.head([1, 2, 3]);
+     * // => 1
+     *
+     * _.head([]);
+     * // => undefined
+     */
+    function head(array) {
+      return (array && array.length) ? array[0] : undefined;
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with the `this` binding of `thisArg`
-                         * and `partials` prepended to the arguments it receives.
-                         *
-                         * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
-                         * may be used as a placeholder for partially applied arguments.
-                         *
-                         * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
-                         * property of bound functions.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to bind.
-                         * @param {*} thisArg The `this` binding of `func`.
-                         * @param {...*} [partials] The arguments to be partially applied.
-                         * @returns {Function} Returns the new bound function.
-                         * @example
-                         *
-                         * function greet(greeting, punctuation) {
-                         *   return greeting + ' ' + this.user + punctuation;
-                         * }
-                         *
-                         * var object = { 'user': 'fred' };
-                         *
-                         * var bound = _.bind(greet, object, 'hi');
-                         * bound('!');
-                         * // => 'hi fred!'
-                         *
-                         * // Bound with placeholders.
-                         * var bound = _.bind(greet, object, _, '!');
-                         * bound('hi');
-                         * // => 'hi fred!'
-                         */
-                        var bind = baseRest(function(func, thisArg, partials) {
-                            var bitmask = WRAP_BIND_FLAG;
-                            if (partials.length) {
-                                var holders = replaceHolders(partials, getHolder(bind));
-                                bitmask |= WRAP_PARTIAL_FLAG;
-                            }
-                            return createWrap(func, bitmask, thisArg, partials, holders);
-                        });
+    /**
+     * Gets the index at which the first occurrence of `value` is found in `array`
+     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons. If `fromIndex` is negative, it's used as the
+     * offset from the end of `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {*} value The value to search for.
+     * @param {number} [fromIndex=0] The index to search from.
+     * @returns {number} Returns the index of the matched value, else `-1`.
+     * @example
+     *
+     * _.indexOf([1, 2, 1, 2], 2);
+     * // => 1
+     *
+     * // Search from the `fromIndex`.
+     * _.indexOf([1, 2, 1, 2], 2, 2);
+     * // => 3
+     */
+    function indexOf(array, value, fromIndex) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return -1;
+      }
+      var index = fromIndex == null ? 0 : toInteger(fromIndex);
+      if (index < 0) {
+        index = nativeMax(length + index, 0);
+      }
+      return baseIndexOf(array, value, index);
+    }
 
-                        /**
-                         * Creates a function that invokes the method at `object[key]` with `partials`
-                         * prepended to the arguments it receives.
-                         *
-                         * This method differs from `_.bind` by allowing bound functions to reference
-                         * methods that may be redefined or don't yet exist. See
-                         * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
-                         * for more details.
-                         *
-                         * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
-                         * builds, may be used as a placeholder for partially applied arguments.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.10.0
-                         * @category Function
-                         * @param {Object} object The object to invoke the method on.
-                         * @param {string} key The key of the method.
-                         * @param {...*} [partials] The arguments to be partially applied.
-                         * @returns {Function} Returns the new bound function.
-                         * @example
-                         *
-                         * var object = {
-                         *   'user': 'fred',
-                         *   'greet': function(greeting, punctuation) {
-                         *     return greeting + ' ' + this.user + punctuation;
-                         *   }
-                         * };
-                         *
-                         * var bound = _.bindKey(object, 'greet', 'hi');
-                         * bound('!');
-                         * // => 'hi fred!'
-                         *
-                         * object.greet = function(greeting, punctuation) {
-                         *   return greeting + 'ya ' + this.user + punctuation;
-                         * };
-                         *
-                         * bound('!');
-                         * // => 'hiya fred!'
-                         *
-                         * // Bound with placeholders.
-                         * var bound = _.bindKey(object, 'greet', _, '!');
-                         * bound('hi');
-                         * // => 'hiya fred!'
-                         */
-                        var bindKey = baseRest(function(object, key, partials) {
-                            var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
-                            if (partials.length) {
-                                var holders = replaceHolders(partials, getHolder(bindKey));
-                                bitmask |= WRAP_PARTIAL_FLAG;
-                            }
-                            return createWrap(key, bitmask, object, partials, holders);
-                        });
+    /**
+     * Gets all but the last element of `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.initial([1, 2, 3]);
+     * // => [1, 2]
+     */
+    function initial(array) {
+      var length = array == null ? 0 : array.length;
+      return length ? baseSlice(array, 0, -1) : [];
+    }
 
-                        /**
-                         * Creates a function that accepts arguments of `func` and either invokes
-                         * `func` returning its result, if at least `arity` number of arguments have
-                         * been provided, or returns a function that accepts the remaining `func`
-                         * arguments, and so on. The arity of `func` may be specified if `func.length`
-                         * is not sufficient.
-                         *
-                         * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
-                         * may be used as a placeholder for provided arguments.
-                         *
-                         * **Note:** This method doesn't set the "length" property of curried functions.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Function
-                         * @param {Function} func The function to curry.
-                         * @param {number} [arity=func.length] The arity of `func`.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Function} Returns the new curried function.
-                         * @example
-                         *
-                         * var abc = function(a, b, c) {
-                         *   return [a, b, c];
-                         * };
-                         *
-                         * var curried = _.curry(abc);
-                         *
-                         * curried(1)(2)(3);
-                         * // => [1, 2, 3]
-                         *
-                         * curried(1, 2)(3);
-                         * // => [1, 2, 3]
-                         *
-                         * curried(1, 2, 3);
-                         * // => [1, 2, 3]
-                         *
-                         * // Curried with placeholders.
-                         * curried(1)(_, 3)(2);
-                         * // => [1, 2, 3]
-                         */
-                        function curry(func, arity, guard) {
-                            arity = guard ? undefined : arity;
-                            var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
-                            result.placeholder = curry.placeholder;
-                            return result;
-                        }
+    /**
+     * Creates an array of unique values that are included in all given arrays
+     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons. The order and references of result values are
+     * determined by the first array.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @returns {Array} Returns the new array of intersecting values.
+     * @example
+     *
+     * _.intersection([2, 1], [2, 3]);
+     * // => [2]
+     */
+    var intersection = baseRest(function(arrays) {
+      var mapped = arrayMap(arrays, castArrayLikeObject);
+      return (mapped.length && mapped[0] === arrays[0])
+        ? baseIntersection(mapped)
+        : [];
+    });
+
+    /**
+     * This method is like `_.intersection` except that it accepts `iteratee`
+     * which is invoked for each element of each `arrays` to generate the criterion
+     * by which they're compared. The order and references of result values are
+     * determined by the first array. The iteratee is invoked with one argument:
+     * (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns the new array of intersecting values.
+     * @example
+     *
+     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
+     * // => [2.1]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
+     * // => [{ 'x': 1 }]
+     */
+    var intersectionBy = baseRest(function(arrays) {
+      var iteratee = last(arrays),
+          mapped = arrayMap(arrays, castArrayLikeObject);
+
+      if (iteratee === last(mapped)) {
+        iteratee = undefined;
+      } else {
+        mapped.pop();
+      }
+      return (mapped.length && mapped[0] === arrays[0])
+        ? baseIntersection(mapped, getIteratee(iteratee, 2))
+        : [];
+    });
+
+    /**
+     * This method is like `_.intersection` except that it accepts `comparator`
+     * which is invoked to compare elements of `arrays`. The order and references
+     * of result values are determined by the first array. The comparator is
+     * invoked with two arguments: (arrVal, othVal).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of intersecting values.
+     * @example
+     *
+     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+     *
+     * _.intersectionWith(objects, others, _.isEqual);
+     * // => [{ 'x': 1, 'y': 2 }]
+     */
+    var intersectionWith = baseRest(function(arrays) {
+      var comparator = last(arrays),
+          mapped = arrayMap(arrays, castArrayLikeObject);
+
+      comparator = typeof comparator == 'function' ? comparator : undefined;
+      if (comparator) {
+        mapped.pop();
+      }
+      return (mapped.length && mapped[0] === arrays[0])
+        ? baseIntersection(mapped, undefined, comparator)
+        : [];
+    });
+
+    /**
+     * Converts all elements in `array` into a string separated by `separator`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to convert.
+     * @param {string} [separator=','] The element separator.
+     * @returns {string} Returns the joined string.
+     * @example
+     *
+     * _.join(['a', 'b', 'c'], '~');
+     * // => 'a~b~c'
+     */
+    function join(array, separator) {
+      return array == null ? '' : nativeJoin.call(array, separator);
+    }
 
-                        /**
-                         * This method is like `_.curry` except that arguments are applied to `func`
-                         * in the manner of `_.partialRight` instead of `_.partial`.
-                         *
-                         * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
-                         * builds, may be used as a placeholder for provided arguments.
-                         *
-                         * **Note:** This method doesn't set the "length" property of curried functions.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Function
-                         * @param {Function} func The function to curry.
-                         * @param {number} [arity=func.length] The arity of `func`.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Function} Returns the new curried function.
-                         * @example
-                         *
-                         * var abc = function(a, b, c) {
-                         *   return [a, b, c];
-                         * };
-                         *
-                         * var curried = _.curryRight(abc);
-                         *
-                         * curried(3)(2)(1);
-                         * // => [1, 2, 3]
-                         *
-                         * curried(2, 3)(1);
-                         * // => [1, 2, 3]
-                         *
-                         * curried(1, 2, 3);
-                         * // => [1, 2, 3]
-                         *
-                         * // Curried with placeholders.
-                         * curried(3)(1, _)(2);
-                         * // => [1, 2, 3]
-                         */
-                        function curryRight(func, arity, guard) {
-                            arity = guard ? undefined : arity;
-                            var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
-                            result.placeholder = curryRight.placeholder;
-                            return result;
-                        }
+    /**
+     * Gets the last element of `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @returns {*} Returns the last element of `array`.
+     * @example
+     *
+     * _.last([1, 2, 3]);
+     * // => 3
+     */
+    function last(array) {
+      var length = array == null ? 0 : array.length;
+      return length ? array[length - 1] : undefined;
+    }
 
-                        /**
-                         * Creates a debounced function that delays invoking `func` until after `wait`
-                         * milliseconds have elapsed since the last time the debounced function was
-                         * invoked. The debounced function comes with a `cancel` method to cancel
-                         * delayed `func` invocations and a `flush` method to immediately invoke them.
-                         * Provide `options` to indicate whether `func` should be invoked on the
-                         * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
-                         * with the last arguments provided to the debounced function. Subsequent
-                         * calls to the debounced function return the result of the last `func`
-                         * invocation.
-                         *
-                         * **Note:** If `leading` and `trailing` options are `true`, `func` is
-                         * invoked on the trailing edge of the timeout only if the debounced function
-                         * is invoked more than once during the `wait` timeout.
-                         *
-                         * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
-                         * until to the next tick, similar to `setTimeout` with a timeout of `0`.
-                         *
-                         * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
-                         * for details over the differences between `_.debounce` and `_.throttle`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to debounce.
-                         * @param {number} [wait=0] The number of milliseconds to delay.
-                         * @param {Object} [options={}] The options object.
-                         * @param {boolean} [options.leading=false]
-                         *  Specify invoking on the leading edge of the timeout.
-                         * @param {number} [options.maxWait]
-                         *  The maximum time `func` is allowed to be delayed before it's invoked.
-                         * @param {boolean} [options.trailing=true]
-                         *  Specify invoking on the trailing edge of the timeout.
-                         * @returns {Function} Returns the new debounced function.
-                         * @example
-                         *
-                         * // Avoid costly calculations while the window size is in flux.
-                         * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
-                         *
-                         * // Invoke `sendMail` when clicked, debouncing subsequent calls.
-                         * jQuery(element).on('click', _.debounce(sendMail, 300, {
-                         *   'leading': true,
-                         *   'trailing': false
-                         * }));
-                         *
-                         * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
-                         * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
-                         * var source = new EventSource('/stream');
-                         * jQuery(source).on('message', debounced);
-                         *
-                         * // Cancel the trailing debounced invocation.
-                         * jQuery(window).on('popstate', debounced.cancel);
-                         */
-                        function debounce(func, wait, options) {
-                            var lastArgs,
-                                lastThis,
-                                maxWait,
-                                result,
-                                timerId,
-                                lastCallTime,
-                                lastInvokeTime = 0,
-                                leading = false,
-                                maxing = false,
-                                trailing = true;
-
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            wait = toNumber(wait) || 0;
-                            if (isObject(options)) {
-                                leading = !!options.leading;
-                                maxing = 'maxWait' in options;
-                                maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
-                                trailing = 'trailing' in options ? !!options.trailing : trailing;
-                            }
+    /**
+     * This method is like `_.indexOf` except that it iterates over elements of
+     * `array` from right to left.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {*} value The value to search for.
+     * @param {number} [fromIndex=array.length-1] The index to search from.
+     * @returns {number} Returns the index of the matched value, else `-1`.
+     * @example
+     *
+     * _.lastIndexOf([1, 2, 1, 2], 2);
+     * // => 3
+     *
+     * // Search from the `fromIndex`.
+     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
+     * // => 1
+     */
+    function lastIndexOf(array, value, fromIndex) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return -1;
+      }
+      var index = length;
+      if (fromIndex !== undefined) {
+        index = toInteger(fromIndex);
+        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
+      }
+      return value === value
+        ? strictLastIndexOf(array, value, index)
+        : baseFindIndex(array, baseIsNaN, index, true);
+    }
 
-                            function invokeFunc(time) {
-                                var args = lastArgs,
-                                    thisArg = lastThis;
+    /**
+     * Gets the element at index `n` of `array`. If `n` is negative, the nth
+     * element from the end is returned.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.11.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {number} [n=0] The index of the element to return.
+     * @returns {*} Returns the nth element of `array`.
+     * @example
+     *
+     * var array = ['a', 'b', 'c', 'd'];
+     *
+     * _.nth(array, 1);
+     * // => 'b'
+     *
+     * _.nth(array, -2);
+     * // => 'c';
+     */
+    function nth(array, n) {
+      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
+    }
 
-                                lastArgs = lastThis = undefined;
-                                lastInvokeTime = time;
-                                result = func.apply(thisArg, args);
-                                return result;
-                            }
+    /**
+     * Removes all given values from `array` using
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons.
+     *
+     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
+     * to remove elements from an array by predicate.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {...*} [values] The values to remove.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
+     *
+     * _.pull(array, 'a', 'c');
+     * console.log(array);
+     * // => ['b', 'b']
+     */
+    var pull = baseRest(pullAll);
+
+    /**
+     * This method is like `_.pull` except that it accepts an array of values to remove.
+     *
+     * **Note:** Unlike `_.difference`, this method mutates `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {Array} values The values to remove.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
+     *
+     * _.pullAll(array, ['a', 'c']);
+     * console.log(array);
+     * // => ['b', 'b']
+     */
+    function pullAll(array, values) {
+      return (array && array.length && values && values.length)
+        ? basePullAll(array, values)
+        : array;
+    }
 
-                            function leadingEdge(time) {
-                                // Reset any `maxWait` timer.
-                                lastInvokeTime = time;
-                                // Start the timer for the trailing edge.
-                                timerId = setTimeout(timerExpired, wait);
-                                // Invoke the leading edge.
-                                return leading ? invokeFunc(time) : result;
-                            }
+    /**
+     * This method is like `_.pullAll` except that it accepts `iteratee` which is
+     * invoked for each element of `array` and `values` to generate the criterion
+     * by which they're compared. The iteratee is invoked with one argument: (value).
+     *
+     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {Array} values The values to remove.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
+     *
+     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
+     * console.log(array);
+     * // => [{ 'x': 2 }]
+     */
+    function pullAllBy(array, values, iteratee) {
+      return (array && array.length && values && values.length)
+        ? basePullAll(array, values, getIteratee(iteratee, 2))
+        : array;
+    }
 
-                            function remainingWait(time) {
-                                var timeSinceLastCall = time - lastCallTime,
-                                    timeSinceLastInvoke = time - lastInvokeTime,
-                                    timeWaiting = wait - timeSinceLastCall;
+    /**
+     * This method is like `_.pullAll` except that it accepts `comparator` which
+     * is invoked to compare elements of `array` to `values`. The comparator is
+     * invoked with two arguments: (arrVal, othVal).
+     *
+     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.6.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {Array} values The values to remove.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
+     *
+     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
+     * console.log(array);
+     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
+     */
+    function pullAllWith(array, values, comparator) {
+      return (array && array.length && values && values.length)
+        ? basePullAll(array, values, undefined, comparator)
+        : array;
+    }
 
-                                return maxing
-                                    ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
-                                    : timeWaiting;
-                            }
+    /**
+     * Removes elements from `array` corresponding to `indexes` and returns an
+     * array of removed elements.
+     *
+     * **Note:** Unlike `_.at`, this method mutates `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
+     * @returns {Array} Returns the new array of removed elements.
+     * @example
+     *
+     * var array = ['a', 'b', 'c', 'd'];
+     * var pulled = _.pullAt(array, [1, 3]);
+     *
+     * console.log(array);
+     * // => ['a', 'c']
+     *
+     * console.log(pulled);
+     * // => ['b', 'd']
+     */
+    var pullAt = flatRest(function(array, indexes) {
+      var length = array == null ? 0 : array.length,
+          result = baseAt(array, indexes);
+
+      basePullAt(array, arrayMap(indexes, function(index) {
+        return isIndex(index, length) ? +index : index;
+      }).sort(compareAscending));
+
+      return result;
+    });
+
+    /**
+     * Removes all elements from `array` that `predicate` returns truthy for
+     * and returns an array of the removed elements. The predicate is invoked
+     * with three arguments: (value, index, array).
+     *
+     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
+     * to pull elements from an array by value.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new array of removed elements.
+     * @example
+     *
+     * var array = [1, 2, 3, 4];
+     * var evens = _.remove(array, function(n) {
+     *   return n % 2 == 0;
+     * });
+     *
+     * console.log(array);
+     * // => [1, 3]
+     *
+     * console.log(evens);
+     * // => [2, 4]
+     */
+    function remove(array, predicate) {
+      var result = [];
+      if (!(array && array.length)) {
+        return result;
+      }
+      var index = -1,
+          indexes = [],
+          length = array.length;
+
+      predicate = getIteratee(predicate, 3);
+      while (++index < length) {
+        var value = array[index];
+        if (predicate(value, index, array)) {
+          result.push(value);
+          indexes.push(index);
+        }
+      }
+      basePullAt(array, indexes);
+      return result;
+    }
 
-                            function shouldInvoke(time) {
-                                var timeSinceLastCall = time - lastCallTime,
-                                    timeSinceLastInvoke = time - lastInvokeTime;
+    /**
+     * Reverses `array` so that the first element becomes the last, the second
+     * element becomes the second to last, and so on.
+     *
+     * **Note:** This method mutates `array` and is based on
+     * [`Array#reverse`](https://mdn.io/Array/reverse).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to modify.
+     * @returns {Array} Returns `array`.
+     * @example
+     *
+     * var array = [1, 2, 3];
+     *
+     * _.reverse(array);
+     * // => [3, 2, 1]
+     *
+     * console.log(array);
+     * // => [3, 2, 1]
+     */
+    function reverse(array) {
+      return array == null ? array : nativeReverse.call(array);
+    }
 
-                                // Either this is the first call, activity has stopped and we're at the
-                                // trailing edge, the system time has gone backwards and we're treating
-                                // it as the trailing edge, or we've hit the `maxWait` limit.
-                                return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
-                                    (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
-                            }
+    /**
+     * Creates a slice of `array` from `start` up to, but not including, `end`.
+     *
+     * **Note:** This method is used instead of
+     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
+     * returned.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to slice.
+     * @param {number} [start=0] The start position.
+     * @param {number} [end=array.length] The end position.
+     * @returns {Array} Returns the slice of `array`.
+     */
+    function slice(array, start, end) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
+        start = 0;
+        end = length;
+      }
+      else {
+        start = start == null ? 0 : toInteger(start);
+        end = end === undefined ? length : toInteger(end);
+      }
+      return baseSlice(array, start, end);
+    }
 
-                            function timerExpired() {
-                                var time = now();
-                                if (shouldInvoke(time)) {
-                                    return trailingEdge(time);
-                                }
-                                // Restart the timer.
-                                timerId = setTimeout(timerExpired, remainingWait(time));
-                            }
+    /**
+     * Uses a binary search to determine the lowest index at which `value`
+     * should be inserted into `array` in order to maintain its sort order.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     * @example
+     *
+     * _.sortedIndex([30, 50], 40);
+     * // => 1
+     */
+    function sortedIndex(array, value) {
+      return baseSortedIndex(array, value);
+    }
 
-                            function trailingEdge(time) {
-                                timerId = undefined;
+    /**
+     * This method is like `_.sortedIndex` except that it accepts `iteratee`
+     * which is invoked for `value` and each element of `array` to compute their
+     * sort ranking. The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     * @example
+     *
+     * var objects = [{ 'x': 4 }, { 'x': 5 }];
+     *
+     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
+     * // => 0
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
+     * // => 0
+     */
+    function sortedIndexBy(array, value, iteratee) {
+      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
+    }
 
-                                // Only invoke if we have `lastArgs` which means `func` has been
-                                // debounced at least once.
-                                if (trailing && lastArgs) {
-                                    return invokeFunc(time);
-                                }
-                                lastArgs = lastThis = undefined;
-                                return result;
-                            }
+    /**
+     * This method is like `_.indexOf` except that it performs a binary
+     * search on a sorted `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {*} value The value to search for.
+     * @returns {number} Returns the index of the matched value, else `-1`.
+     * @example
+     *
+     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
+     * // => 1
+     */
+    function sortedIndexOf(array, value) {
+      var length = array == null ? 0 : array.length;
+      if (length) {
+        var index = baseSortedIndex(array, value);
+        if (index < length && eq(array[index], value)) {
+          return index;
+        }
+      }
+      return -1;
+    }
 
-                            function cancel() {
-                                if (timerId !== undefined) {
-                                    clearTimeout(timerId);
-                                }
-                                lastInvokeTime = 0;
-                                lastArgs = lastCallTime = lastThis = timerId = undefined;
-                            }
+    /**
+     * This method is like `_.sortedIndex` except that it returns the highest
+     * index at which `value` should be inserted into `array` in order to
+     * maintain its sort order.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     * @example
+     *
+     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
+     * // => 4
+     */
+    function sortedLastIndex(array, value) {
+      return baseSortedIndex(array, value, true);
+    }
 
-                            function flush() {
-                                return timerId === undefined ? result : trailingEdge(now());
-                            }
+    /**
+     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
+     * which is invoked for `value` and each element of `array` to compute their
+     * sort ranking. The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The sorted array to inspect.
+     * @param {*} value The value to evaluate.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {number} Returns the index at which `value` should be inserted
+     *  into `array`.
+     * @example
+     *
+     * var objects = [{ 'x': 4 }, { 'x': 5 }];
+     *
+     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
+     * // => 1
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
+     * // => 1
+     */
+    function sortedLastIndexBy(array, value, iteratee) {
+      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
+    }
 
-                            function debounced() {
-                                var time = now(),
-                                    isInvoking = shouldInvoke(time);
-
-                                lastArgs = arguments;
-                                lastThis = this;
-                                lastCallTime = time;
-
-                                if (isInvoking) {
-                                    if (timerId === undefined) {
-                                        return leadingEdge(lastCallTime);
-                                    }
-                                    if (maxing) {
-                                        // Handle invocations in a tight loop.
-                                        clearTimeout(timerId);
-                                        timerId = setTimeout(timerExpired, wait);
-                                        return invokeFunc(lastCallTime);
-                                    }
-                                }
-                                if (timerId === undefined) {
-                                    timerId = setTimeout(timerExpired, wait);
-                                }
-                                return result;
-                            }
-                            debounced.cancel = cancel;
-                            debounced.flush = flush;
-                            return debounced;
-                        }
+    /**
+     * This method is like `_.lastIndexOf` except that it performs a binary
+     * search on a sorted `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {*} value The value to search for.
+     * @returns {number} Returns the index of the matched value, else `-1`.
+     * @example
+     *
+     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
+     * // => 3
+     */
+    function sortedLastIndexOf(array, value) {
+      var length = array == null ? 0 : array.length;
+      if (length) {
+        var index = baseSortedIndex(array, value, true) - 1;
+        if (eq(array[index], value)) {
+          return index;
+        }
+      }
+      return -1;
+    }
 
-                        /**
-                         * Defers invoking the `func` until the current call stack has cleared. Any
-                         * additional arguments are provided to `func` when it's invoked.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to defer.
-                         * @param {...*} [args] The arguments to invoke `func` with.
-                         * @returns {number} Returns the timer id.
-                         * @example
-                         *
-                         * _.defer(function(text) {
-                         *   console.log(text);
-                         * }, 'deferred');
-                         * // => Logs 'deferred' after one millisecond.
-                         */
-                        var defer = baseRest(function(func, args) {
-                            return baseDelay(func, 1, args);
-                        });
+    /**
+     * This method is like `_.uniq` except that it's designed and optimized
+     * for sorted arrays.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @returns {Array} Returns the new duplicate free array.
+     * @example
+     *
+     * _.sortedUniq([1, 1, 2]);
+     * // => [1, 2]
+     */
+    function sortedUniq(array) {
+      return (array && array.length)
+        ? baseSortedUniq(array)
+        : [];
+    }
 
-                        /**
-                         * Invokes `func` after `wait` milliseconds. Any additional arguments are
-                         * provided to `func` when it's invoked.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to delay.
-                         * @param {number} wait The number of milliseconds to delay invocation.
-                         * @param {...*} [args] The arguments to invoke `func` with.
-                         * @returns {number} Returns the timer id.
-                         * @example
-                         *
-                         * _.delay(function(text) {
-                         *   console.log(text);
-                         * }, 1000, 'later');
-                         * // => Logs 'later' after one second.
-                         */
-                        var delay = baseRest(function(func, wait, args) {
-                            return baseDelay(func, toNumber(wait) || 0, args);
-                        });
+    /**
+     * This method is like `_.uniqBy` except that it's designed and optimized
+     * for sorted arrays.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {Function} [iteratee] The iteratee invoked per element.
+     * @returns {Array} Returns the new duplicate free array.
+     * @example
+     *
+     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
+     * // => [1.1, 2.3]
+     */
+    function sortedUniqBy(array, iteratee) {
+      return (array && array.length)
+        ? baseSortedUniq(array, getIteratee(iteratee, 2))
+        : [];
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with arguments reversed.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Function
-                         * @param {Function} func The function to flip arguments for.
-                         * @returns {Function} Returns the new flipped function.
-                         * @example
-                         *
-                         * var flipped = _.flip(function() {
-                         *   return _.toArray(arguments);
-                         * });
-                         *
-                         * flipped('a', 'b', 'c', 'd');
-                         * // => ['d', 'c', 'b', 'a']
-                         */
-                        function flip(func) {
-                            return createWrap(func, WRAP_FLIP_FLAG);
-                        }
+    /**
+     * Gets all but the first element of `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.tail([1, 2, 3]);
+     * // => [2, 3]
+     */
+    function tail(array) {
+      var length = array == null ? 0 : array.length;
+      return length ? baseSlice(array, 1, length) : [];
+    }
 
-                        /**
-                         * Creates a function that memoizes the result of `func`. If `resolver` is
-                         * provided, it determines the cache key for storing the result based on the
-                         * arguments provided to the memoized function. By default, the first argument
-                         * provided to the memoized function is used as the map cache key. The `func`
-                         * is invoked with the `this` binding of the memoized function.
-                         *
-                         * **Note:** The cache is exposed as the `cache` property on the memoized
-                         * function. Its creation may be customized by replacing the `_.memoize.Cache`
-                         * constructor with one whose instances implement the
-                         * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
-                         * method interface of `clear`, `delete`, `get`, `has`, and `set`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to have its output memoized.
-                         * @param {Function} [resolver] The function to resolve the cache key.
-                         * @returns {Function} Returns the new memoized function.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': 2 };
-                         * var other = { 'c': 3, 'd': 4 };
-                         *
-                         * var values = _.memoize(_.values);
-                         * values(object);
-                         * // => [1, 2]
-                         *
-                         * values(other);
-                         * // => [3, 4]
-                         *
-                         * object.a = 2;
-                         * values(object);
-                         * // => [1, 2]
-                         *
-                         * // Modify the result cache.
-                         * values.cache.set(object, ['a', 'b']);
-                         * values(object);
-                         * // => ['a', 'b']
-                         *
-                         * // Replace `_.memoize.Cache`.
-                         * _.memoize.Cache = WeakMap;
-                         */
-                        function memoize(func, resolver) {
-                            if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            var memoized = function() {
-                                var args = arguments,
-                                    key = resolver ? resolver.apply(this, args) : args[0],
-                                    cache = memoized.cache;
-
-                                if (cache.has(key)) {
-                                    return cache.get(key);
-                                }
-                                var result = func.apply(this, args);
-                                memoized.cache = cache.set(key, result) || cache;
-                                return result;
-                            };
-                            memoized.cache = new (memoize.Cache || MapCache);
-                            return memoized;
-                        }
+    /**
+     * Creates a slice of `array` with `n` elements taken from the beginning.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {number} [n=1] The number of elements to take.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.take([1, 2, 3]);
+     * // => [1]
+     *
+     * _.take([1, 2, 3], 2);
+     * // => [1, 2]
+     *
+     * _.take([1, 2, 3], 5);
+     * // => [1, 2, 3]
+     *
+     * _.take([1, 2, 3], 0);
+     * // => []
+     */
+    function take(array, n, guard) {
+      if (!(array && array.length)) {
+        return [];
+      }
+      n = (guard || n === undefined) ? 1 : toInteger(n);
+      return baseSlice(array, 0, n < 0 ? 0 : n);
+    }
 
-                        // Expose `MapCache`.
-                        memoize.Cache = MapCache;
-
-                        /**
-                         * Creates a function that negates the result of the predicate `func`. The
-                         * `func` predicate is invoked with the `this` binding and arguments of the
-                         * created function.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Function
-                         * @param {Function} predicate The predicate to negate.
-                         * @returns {Function} Returns the new negated function.
-                         * @example
-                         *
-                         * function isEven(n) {
-                         *   return n % 2 == 0;
-                         * }
-                         *
-                         * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
-                         * // => [1, 3, 5]
-                         */
-                        function negate(predicate) {
-                            if (typeof predicate != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            return function() {
-                                var args = arguments;
-                                switch (args.length) {
-                                    case 0: return !predicate.call(this);
-                                    case 1: return !predicate.call(this, args[0]);
-                                    case 2: return !predicate.call(this, args[0], args[1]);
-                                    case 3: return !predicate.call(this, args[0], args[1], args[2]);
-                                }
-                                return !predicate.apply(this, args);
-                            };
-                        }
+    /**
+     * Creates a slice of `array` with `n` elements taken from the end.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {number} [n=1] The number of elements to take.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * _.takeRight([1, 2, 3]);
+     * // => [3]
+     *
+     * _.takeRight([1, 2, 3], 2);
+     * // => [2, 3]
+     *
+     * _.takeRight([1, 2, 3], 5);
+     * // => [1, 2, 3]
+     *
+     * _.takeRight([1, 2, 3], 0);
+     * // => []
+     */
+    function takeRight(array, n, guard) {
+      var length = array == null ? 0 : array.length;
+      if (!length) {
+        return [];
+      }
+      n = (guard || n === undefined) ? 1 : toInteger(n);
+      n = length - n;
+      return baseSlice(array, n < 0 ? 0 : n, length);
+    }
 
-                        /**
-                         * Creates a function that is restricted to invoking `func` once. Repeat calls
-                         * to the function return the value of the first invocation. The `func` is
-                         * invoked with the `this` binding and arguments of the created function.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to restrict.
-                         * @returns {Function} Returns the new restricted function.
-                         * @example
-                         *
-                         * var initialize = _.once(createApplication);
-                         * initialize();
-                         * initialize();
-                         * // => `createApplication` is invoked once
-                         */
-                        function once(func) {
-                            return before(2, func);
-                        }
+    /**
+     * Creates a slice of `array` with elements taken from the end. Elements are
+     * taken until `predicate` returns falsey. The predicate is invoked with
+     * three arguments: (value, index, array).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': true },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': false }
+     * ];
+     *
+     * _.takeRightWhile(users, function(o) { return !o.active; });
+     * // => objects for ['fred', 'pebbles']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
+     * // => objects for ['pebbles']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.takeRightWhile(users, ['active', false]);
+     * // => objects for ['fred', 'pebbles']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.takeRightWhile(users, 'active');
+     * // => []
+     */
+    function takeRightWhile(array, predicate) {
+      return (array && array.length)
+        ? baseWhile(array, getIteratee(predicate, 3), false, true)
+        : [];
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with its arguments transformed.
-                         *
-                         * @static
-                         * @since 4.0.0
-                         * @memberOf _
-                         * @category Function
-                         * @param {Function} func The function to wrap.
-                         * @param {...(Function|Function[])} [transforms=[_.identity]]
-                         *  The argument transforms.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * function doubled(n) {
-                         *   return n * 2;
-                         * }
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * var func = _.overArgs(function(x, y) {
-                         *   return [x, y];
-                         * }, [square, doubled]);
-                         *
-                         * func(9, 3);
-                         * // => [81, 6]
-                         *
-                         * func(10, 5);
-                         * // => [100, 10]
-                         */
-                        var overArgs = castRest(function(func, transforms) {
-                            transforms = (transforms.length == 1 && isArray(transforms[0]))
-                                ? arrayMap(transforms[0], baseUnary(getIteratee()))
-                                : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
-
-                            var funcsLength = transforms.length;
-                            return baseRest(function(args) {
-                                var index = -1,
-                                    length = nativeMin(args.length, funcsLength);
-
-                                while (++index < length) {
-                                    args[index] = transforms[index].call(this, args[index]);
-                                }
-                                return apply(func, this, args);
-                            });
-                        });
+    /**
+     * Creates a slice of `array` with elements taken from the beginning. Elements
+     * are taken until `predicate` returns falsey. The predicate is invoked with
+     * three arguments: (value, index, array).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Array
+     * @param {Array} array The array to query.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the slice of `array`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'active': false },
+     *   { 'user': 'fred',    'active': false },
+     *   { 'user': 'pebbles', 'active': true }
+     * ];
+     *
+     * _.takeWhile(users, function(o) { return !o.active; });
+     * // => objects for ['barney', 'fred']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.takeWhile(users, { 'user': 'barney', 'active': false });
+     * // => objects for ['barney']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.takeWhile(users, ['active', false]);
+     * // => objects for ['barney', 'fred']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.takeWhile(users, 'active');
+     * // => []
+     */
+    function takeWhile(array, predicate) {
+      return (array && array.length)
+        ? baseWhile(array, getIteratee(predicate, 3))
+        : [];
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with `partials` prepended to the
-                         * arguments it receives. This method is like `_.bind` except it does **not**
-                         * alter the `this` binding.
-                         *
-                         * The `_.partial.placeholder` value, which defaults to `_` in monolithic
-                         * builds, may be used as a placeholder for partially applied arguments.
-                         *
-                         * **Note:** This method doesn't set the "length" property of partially
-                         * applied functions.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.2.0
-                         * @category Function
-                         * @param {Function} func The function to partially apply arguments to.
-                         * @param {...*} [partials] The arguments to be partially applied.
-                         * @returns {Function} Returns the new partially applied function.
-                         * @example
-                         *
-                         * function greet(greeting, name) {
-                         *   return greeting + ' ' + name;
-                         * }
-                         *
-                         * var sayHelloTo = _.partial(greet, 'hello');
-                         * sayHelloTo('fred');
-                         * // => 'hello fred'
-                         *
-                         * // Partially applied with placeholders.
-                         * var greetFred = _.partial(greet, _, 'fred');
-                         * greetFred('hi');
-                         * // => 'hi fred'
-                         */
-                        var partial = baseRest(function(func, partials) {
-                            var holders = replaceHolders(partials, getHolder(partial));
-                            return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
-                        });
+    /**
+     * Creates an array of unique values, in order, from all given arrays using
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @returns {Array} Returns the new array of combined values.
+     * @example
+     *
+     * _.union([2], [1, 2]);
+     * // => [2, 1]
+     */
+    var union = baseRest(function(arrays) {
+      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
+    });
+
+    /**
+     * This method is like `_.union` except that it accepts `iteratee` which is
+     * invoked for each element of each `arrays` to generate the criterion by
+     * which uniqueness is computed. Result values are chosen from the first
+     * array in which the value occurs. The iteratee is invoked with one argument:
+     * (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns the new array of combined values.
+     * @example
+     *
+     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
+     * // => [2.1, 1.2]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
+     * // => [{ 'x': 1 }, { 'x': 2 }]
+     */
+    var unionBy = baseRest(function(arrays) {
+      var iteratee = last(arrays);
+      if (isArrayLikeObject(iteratee)) {
+        iteratee = undefined;
+      }
+      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
+    });
+
+    /**
+     * This method is like `_.union` except that it accepts `comparator` which
+     * is invoked to compare elements of `arrays`. Result values are chosen from
+     * the first array in which the value occurs. The comparator is invoked
+     * with two arguments: (arrVal, othVal).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of combined values.
+     * @example
+     *
+     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+     *
+     * _.unionWith(objects, others, _.isEqual);
+     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
+     */
+    var unionWith = baseRest(function(arrays) {
+      var comparator = last(arrays);
+      comparator = typeof comparator == 'function' ? comparator : undefined;
+      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
+    });
+
+    /**
+     * Creates a duplicate-free version of an array, using
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons, in which only the first occurrence of each element
+     * is kept. The order of result values is determined by the order they occur
+     * in the array.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @returns {Array} Returns the new duplicate free array.
+     * @example
+     *
+     * _.uniq([2, 1, 2]);
+     * // => [2, 1]
+     */
+    function uniq(array) {
+      return (array && array.length) ? baseUniq(array) : [];
+    }
 
-                        /**
-                         * This method is like `_.partial` except that partially applied arguments
-                         * are appended to the arguments it receives.
-                         *
-                         * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
-                         * builds, may be used as a placeholder for partially applied arguments.
-                         *
-                         * **Note:** This method doesn't set the "length" property of partially
-                         * applied functions.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.0.0
-                         * @category Function
-                         * @param {Function} func The function to partially apply arguments to.
-                         * @param {...*} [partials] The arguments to be partially applied.
-                         * @returns {Function} Returns the new partially applied function.
-                         * @example
-                         *
-                         * function greet(greeting, name) {
-                         *   return greeting + ' ' + name;
-                         * }
-                         *
-                         * var greetFred = _.partialRight(greet, 'fred');
-                         * greetFred('hi');
-                         * // => 'hi fred'
-                         *
-                         * // Partially applied with placeholders.
-                         * var sayHelloTo = _.partialRight(greet, 'hello', _);
-                         * sayHelloTo('fred');
-                         * // => 'hello fred'
-                         */
-                        var partialRight = baseRest(function(func, partials) {
-                            var holders = replaceHolders(partials, getHolder(partialRight));
-                            return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
-                        });
+    /**
+     * This method is like `_.uniq` except that it accepts `iteratee` which is
+     * invoked for each element in `array` to generate the criterion by which
+     * uniqueness is computed. The order of result values is determined by the
+     * order they occur in the array. The iteratee is invoked with one argument:
+     * (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns the new duplicate free array.
+     * @example
+     *
+     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
+     * // => [2.1, 1.2]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
+     * // => [{ 'x': 1 }, { 'x': 2 }]
+     */
+    function uniqBy(array, iteratee) {
+      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with arguments arranged according
-                         * to the specified `indexes` where the argument value at the first index is
-                         * provided as the first argument, the argument value at the second index is
-                         * provided as the second argument, and so on.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Function
-                         * @param {Function} func The function to rearrange arguments for.
-                         * @param {...(number|number[])} indexes The arranged argument indexes.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var rearged = _.rearg(function(a, b, c) {
-                         *   return [a, b, c];
-                         * }, [2, 0, 1]);
-                         *
-                         * rearged('b', 'c', 'a')
-                         * // => ['a', 'b', 'c']
-                         */
-                        var rearg = flatRest(function(func, indexes) {
-                            return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
-                        });
+    /**
+     * This method is like `_.uniq` except that it accepts `comparator` which
+     * is invoked to compare elements of `array`. The order of result values is
+     * determined by the order they occur in the array.The comparator is invoked
+     * with two arguments: (arrVal, othVal).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new duplicate free array.
+     * @example
+     *
+     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
+     *
+     * _.uniqWith(objects, _.isEqual);
+     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
+     */
+    function uniqWith(array, comparator) {
+      comparator = typeof comparator == 'function' ? comparator : undefined;
+      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with the `this` binding of the
-                         * created function and arguments from `start` and beyond provided as
-                         * an array.
-                         *
-                         * **Note:** This method is based on the
-                         * [rest parameter](https://mdn.io/rest_parameters).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Function
-                         * @param {Function} func The function to apply a rest parameter to.
-                         * @param {number} [start=func.length-1] The start position of the rest parameter.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var say = _.rest(function(what, names) {
-                         *   return what + ' ' + _.initial(names).join(', ') +
-                         *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
-                         * });
-                         *
-                         * say('hello', 'fred', 'barney', 'pebbles');
-                         * // => 'hello fred, barney, & pebbles'
-                         */
-                        function rest(func, start) {
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            start = start === undefined ? start : toInteger(start);
-                            return baseRest(func, start);
-                        }
+    /**
+     * This method is like `_.zip` except that it accepts an array of grouped
+     * elements and creates an array regrouping the elements to their pre-zip
+     * configuration.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.2.0
+     * @category Array
+     * @param {Array} array The array of grouped elements to process.
+     * @returns {Array} Returns the new array of regrouped elements.
+     * @example
+     *
+     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
+     * // => [['a', 1, true], ['b', 2, false]]
+     *
+     * _.unzip(zipped);
+     * // => [['a', 'b'], [1, 2], [true, false]]
+     */
+    function unzip(array) {
+      if (!(array && array.length)) {
+        return [];
+      }
+      var length = 0;
+      array = arrayFilter(array, function(group) {
+        if (isArrayLikeObject(group)) {
+          length = nativeMax(group.length, length);
+          return true;
+        }
+      });
+      return baseTimes(length, function(index) {
+        return arrayMap(array, baseProperty(index));
+      });
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with the `this` binding of the
-                         * create function and an array of arguments much like
-                         * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
-                         *
-                         * **Note:** This method is based on the
-                         * [spread operator](https://mdn.io/spread_operator).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.2.0
-                         * @category Function
-                         * @param {Function} func The function to spread arguments over.
-                         * @param {number} [start=0] The start position of the spread.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var say = _.spread(function(who, what) {
-                         *   return who + ' says ' + what;
-                         * });
-                         *
-                         * say(['fred', 'hello']);
-                         * // => 'fred says hello'
-                         *
-                         * var numbers = Promise.all([
-                         *   Promise.resolve(40),
-                         *   Promise.resolve(36)
-                         * ]);
-                         *
-                         * numbers.then(_.spread(function(x, y) {
-                         *   return x + y;
-                         * }));
-                         * // => a Promise of 76
-                         */
-                        function spread(func, start) {
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            start = start == null ? 0 : nativeMax(toInteger(start), 0);
-                            return baseRest(function(args) {
-                                var array = args[start],
-                                    otherArgs = castSlice(args, 0, start);
-
-                                if (array) {
-                                    arrayPush(otherArgs, array);
-                                }
-                                return apply(func, this, otherArgs);
-                            });
-                        }
+    /**
+     * This method is like `_.unzip` except that it accepts `iteratee` to specify
+     * how regrouped values should be combined. The iteratee is invoked with the
+     * elements of each group: (...group).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.8.0
+     * @category Array
+     * @param {Array} array The array of grouped elements to process.
+     * @param {Function} [iteratee=_.identity] The function to combine
+     *  regrouped values.
+     * @returns {Array} Returns the new array of regrouped elements.
+     * @example
+     *
+     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
+     * // => [[1, 10, 100], [2, 20, 200]]
+     *
+     * _.unzipWith(zipped, _.add);
+     * // => [3, 30, 300]
+     */
+    function unzipWith(array, iteratee) {
+      if (!(array && array.length)) {
+        return [];
+      }
+      var result = unzip(array);
+      if (iteratee == null) {
+        return result;
+      }
+      return arrayMap(result, function(group) {
+        return apply(iteratee, undefined, group);
+      });
+    }
 
-                        /**
-                         * Creates a throttled function that only invokes `func` at most once per
-                         * every `wait` milliseconds. The throttled function comes with a `cancel`
-                         * method to cancel delayed `func` invocations and a `flush` method to
-                         * immediately invoke them. Provide `options` to indicate whether `func`
-                         * should be invoked on the leading and/or trailing edge of the `wait`
-                         * timeout. The `func` is invoked with the last arguments provided to the
-                         * throttled function. Subsequent calls to the throttled function return the
-                         * result of the last `func` invocation.
-                         *
-                         * **Note:** If `leading` and `trailing` options are `true`, `func` is
-                         * invoked on the trailing edge of the timeout only if the throttled function
-                         * is invoked more than once during the `wait` timeout.
-                         *
-                         * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
-                         * until to the next tick, similar to `setTimeout` with a timeout of `0`.
-                         *
-                         * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
-                         * for details over the differences between `_.throttle` and `_.debounce`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {Function} func The function to throttle.
-                         * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
-                         * @param {Object} [options={}] The options object.
-                         * @param {boolean} [options.leading=true]
-                         *  Specify invoking on the leading edge of the timeout.
-                         * @param {boolean} [options.trailing=true]
-                         *  Specify invoking on the trailing edge of the timeout.
-                         * @returns {Function} Returns the new throttled function.
-                         * @example
-                         *
-                         * // Avoid excessively updating the position while scrolling.
-                         * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
-                         *
-                         * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
-                         * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
-                         * jQuery(element).on('click', throttled);
-                         *
-                         * // Cancel the trailing throttled invocation.
-                         * jQuery(window).on('popstate', throttled.cancel);
-                         */
-                        function throttle(func, wait, options) {
-                            var leading = true,
-                                trailing = true;
-
-                            if (typeof func != 'function') {
-                                throw new TypeError(FUNC_ERROR_TEXT);
-                            }
-                            if (isObject(options)) {
-                                leading = 'leading' in options ? !!options.leading : leading;
-                                trailing = 'trailing' in options ? !!options.trailing : trailing;
-                            }
-                            return debounce(func, wait, {
-                                'leading': leading,
-                                'maxWait': wait,
-                                'trailing': trailing
-                            });
-                        }
+    /**
+     * Creates an array excluding all given values using
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * for equality comparisons.
+     *
+     * **Note:** Unlike `_.pull`, this method returns a new array.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {Array} array The array to inspect.
+     * @param {...*} [values] The values to exclude.
+     * @returns {Array} Returns the new array of filtered values.
+     * @see _.difference, _.xor
+     * @example
+     *
+     * _.without([2, 1, 2, 3], 1, 2);
+     * // => [3]
+     */
+    var without = baseRest(function(array, values) {
+      return isArrayLikeObject(array)
+        ? baseDifference(array, values)
+        : [];
+    });
+
+    /**
+     * Creates an array of unique values that is the
+     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
+     * of the given arrays. The order of result values is determined by the order
+     * they occur in the arrays.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.4.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @returns {Array} Returns the new array of filtered values.
+     * @see _.difference, _.without
+     * @example
+     *
+     * _.xor([2, 1], [2, 3]);
+     * // => [1, 3]
+     */
+    var xor = baseRest(function(arrays) {
+      return baseXor(arrayFilter(arrays, isArrayLikeObject));
+    });
+
+    /**
+     * This method is like `_.xor` except that it accepts `iteratee` which is
+     * invoked for each element of each `arrays` to generate the criterion by
+     * which by which they're compared. The order of result values is determined
+     * by the order they occur in the arrays. The iteratee is invoked with one
+     * argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Array} Returns the new array of filtered values.
+     * @example
+     *
+     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
+     * // => [1.2, 3.4]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
+     * // => [{ 'x': 2 }]
+     */
+    var xorBy = baseRest(function(arrays) {
+      var iteratee = last(arrays);
+      if (isArrayLikeObject(iteratee)) {
+        iteratee = undefined;
+      }
+      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
+    });
+
+    /**
+     * This method is like `_.xor` except that it accepts `comparator` which is
+     * invoked to compare elements of `arrays`. The order of result values is
+     * determined by the order they occur in the arrays. The comparator is invoked
+     * with two arguments: (arrVal, othVal).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to inspect.
+     * @param {Function} [comparator] The comparator invoked per element.
+     * @returns {Array} Returns the new array of filtered values.
+     * @example
+     *
+     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
+     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
+     *
+     * _.xorWith(objects, others, _.isEqual);
+     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
+     */
+    var xorWith = baseRest(function(arrays) {
+      var comparator = last(arrays);
+      comparator = typeof comparator == 'function' ? comparator : undefined;
+      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
+    });
+
+    /**
+     * Creates an array of grouped elements, the first of which contains the
+     * first elements of the given arrays, the second of which contains the
+     * second elements of the given arrays, and so on.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to process.
+     * @returns {Array} Returns the new array of grouped elements.
+     * @example
+     *
+     * _.zip(['a', 'b'], [1, 2], [true, false]);
+     * // => [['a', 1, true], ['b', 2, false]]
+     */
+    var zip = baseRest(unzip);
+
+    /**
+     * This method is like `_.fromPairs` except that it accepts two arrays,
+     * one of property identifiers and one of corresponding values.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.4.0
+     * @category Array
+     * @param {Array} [props=[]] The property identifiers.
+     * @param {Array} [values=[]] The property values.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * _.zipObject(['a', 'b'], [1, 2]);
+     * // => { 'a': 1, 'b': 2 }
+     */
+    function zipObject(props, values) {
+      return baseZipObject(props || [], values || [], assignValue);
+    }
 
-                        /**
-                         * Creates a function that accepts up to one argument, ignoring any
-                         * additional arguments.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Function
-                         * @param {Function} func The function to cap arguments for.
-                         * @returns {Function} Returns the new capped function.
-                         * @example
-                         *
-                         * _.map(['6', '8', '10'], _.unary(parseInt));
-                         * // => [6, 8, 10]
-                         */
-                        function unary(func) {
-                            return ary(func, 1);
-                        }
+    /**
+     * This method is like `_.zipObject` except that it supports property paths.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.1.0
+     * @category Array
+     * @param {Array} [props=[]] The property identifiers.
+     * @param {Array} [values=[]] The property values.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
+     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
+     */
+    function zipObjectDeep(props, values) {
+      return baseZipObject(props || [], values || [], baseSet);
+    }
 
-                        /**
-                         * Creates a function that provides `value` to `wrapper` as its first
-                         * argument. Any additional arguments provided to the function are appended
-                         * to those provided to the `wrapper`. The wrapper is invoked with the `this`
-                         * binding of the created function.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Function
-                         * @param {*} value The value to wrap.
-                         * @param {Function} [wrapper=identity] The wrapper function.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var p = _.wrap(_.escape, function(func, text) {
-                         *   return '<p>' + func(text) + '</p>';
-                         * });
-                         *
-                         * p('fred, barney, & pebbles');
-                         * // => '<p>fred, barney, &amp; pebbles</p>'
-                         */
-                        function wrap(value, wrapper) {
-                            return partial(castFunction(wrapper), value);
-                        }
+    /**
+     * This method is like `_.zip` except that it accepts `iteratee` to specify
+     * how grouped values should be combined. The iteratee is invoked with the
+     * elements of each group: (...group).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.8.0
+     * @category Array
+     * @param {...Array} [arrays] The arrays to process.
+     * @param {Function} [iteratee=_.identity] The function to combine
+     *  grouped values.
+     * @returns {Array} Returns the new array of grouped elements.
+     * @example
+     *
+     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
+     *   return a + b + c;
+     * });
+     * // => [111, 222]
+     */
+    var zipWith = baseRest(function(arrays) {
+      var length = arrays.length,
+          iteratee = length > 1 ? arrays[length - 1] : undefined;
+
+      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
+      return unzipWith(arrays, iteratee);
+    });
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
+     * chain sequences enabled. The result of such sequences must be unwrapped
+     * with `_#value`.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.3.0
+     * @category Seq
+     * @param {*} value The value to wrap.
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'age': 36 },
+     *   { 'user': 'fred',    'age': 40 },
+     *   { 'user': 'pebbles', 'age': 1 }
+     * ];
+     *
+     * var youngest = _
+     *   .chain(users)
+     *   .sortBy('age')
+     *   .map(function(o) {
+     *     return o.user + ' is ' + o.age;
+     *   })
+     *   .head()
+     *   .value();
+     * // => 'pebbles is 1'
+     */
+    function chain(value) {
+      var result = lodash(value);
+      result.__chain__ = true;
+      return result;
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Casts `value` as an array if it's not one.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.4.0
-                         * @category Lang
-                         * @param {*} value The value to inspect.
-                         * @returns {Array} Returns the cast array.
-                         * @example
-                         *
-                         * _.castArray(1);
-                         * // => [1]
-                         *
-                         * _.castArray({ 'a': 1 });
-                         * // => [{ 'a': 1 }]
-                         *
-                         * _.castArray('abc');
-                         * // => ['abc']
-                         *
-                         * _.castArray(null);
-                         * // => [null]
-                         *
-                         * _.castArray(undefined);
-                         * // => [undefined]
-                         *
-                         * _.castArray();
-                         * // => []
-                         *
-                         * var array = [1, 2, 3];
-                         * console.log(_.castArray(array) === array);
-                         * // => true
-                         */
-                        function castArray() {
-                            if (!arguments.length) {
-                                return [];
-                            }
-                            var value = arguments[0];
-                            return isArray(value) ? value : [value];
-                        }
+    /**
+     * This method invokes `interceptor` and returns `value`. The interceptor
+     * is invoked with one argument; (value). The purpose of this method is to
+     * "tap into" a method chain sequence in order to modify intermediate results.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Seq
+     * @param {*} value The value to provide to `interceptor`.
+     * @param {Function} interceptor The function to invoke.
+     * @returns {*} Returns `value`.
+     * @example
+     *
+     * _([1, 2, 3])
+     *  .tap(function(array) {
+     *    // Mutate input array.
+     *    array.pop();
+     *  })
+     *  .reverse()
+     *  .value();
+     * // => [2, 1]
+     */
+    function tap(value, interceptor) {
+      interceptor(value);
+      return value;
+    }
 
-                        /**
-                         * Creates a shallow clone of `value`.
-                         *
-                         * **Note:** This method is loosely based on the
-                         * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
-                         * and supports cloning arrays, array buffers, booleans, date objects, maps,
-                         * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
-                         * arrays. The own enumerable properties of `arguments` objects are cloned
-                         * as plain objects. An empty object is returned for uncloneable values such
-                         * as error objects, functions, DOM nodes, and WeakMaps.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to clone.
-                         * @returns {*} Returns the cloned value.
-                         * @see _.cloneDeep
-                         * @example
-                         *
-                         * var objects = [{ 'a': 1 }, { 'b': 2 }];
-                         *
-                         * var shallow = _.clone(objects);
-                         * console.log(shallow[0] === objects[0]);
-                         * // => true
-                         */
-                        function clone(value) {
-                            return baseClone(value, CLONE_SYMBOLS_FLAG);
-                        }
+    /**
+     * This method is like `_.tap` except that it returns the result of `interceptor`.
+     * The purpose of this method is to "pass thru" values replacing intermediate
+     * results in a method chain sequence.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Seq
+     * @param {*} value The value to provide to `interceptor`.
+     * @param {Function} interceptor The function to invoke.
+     * @returns {*} Returns the result of `interceptor`.
+     * @example
+     *
+     * _('  abc  ')
+     *  .chain()
+     *  .trim()
+     *  .thru(function(value) {
+     *    return [value];
+     *  })
+     *  .value();
+     * // => ['abc']
+     */
+    function thru(value, interceptor) {
+      return interceptor(value);
+    }
 
-                        /**
-                         * This method is like `_.clone` except that it accepts `customizer` which
-                         * is invoked to produce the cloned value. If `customizer` returns `undefined`,
-                         * cloning is handled by the method instead. The `customizer` is invoked with
-                         * up to four arguments; (value [, index|key, object, stack]).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to clone.
-                         * @param {Function} [customizer] The function to customize cloning.
-                         * @returns {*} Returns the cloned value.
-                         * @see _.cloneDeepWith
-                         * @example
-                         *
-                         * function customizer(value) {
-                         *   if (_.isElement(value)) {
-                         *     return value.cloneNode(false);
-                         *   }
-                         * }
-                         *
-                         * var el = _.cloneWith(document.body, customizer);
-                         *
-                         * console.log(el === document.body);
-                         * // => false
-                         * console.log(el.nodeName);
-                         * // => 'BODY'
-                         * console.log(el.childNodes.length);
-                         * // => 0
-                         */
-                        function cloneWith(value, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
-                        }
+    /**
+     * This method is the wrapper version of `_.at`.
+     *
+     * @name at
+     * @memberOf _
+     * @since 1.0.0
+     * @category Seq
+     * @param {...(string|string[])} [paths] The property paths to pick.
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
+     *
+     * _(object).at(['a[0].b.c', 'a[1]']).value();
+     * // => [3, 4]
+     */
+    var wrapperAt = flatRest(function(paths) {
+      var length = paths.length,
+          start = length ? paths[0] : 0,
+          value = this.__wrapped__,
+          interceptor = function(object) { return baseAt(object, paths); };
+
+      if (length > 1 || this.__actions__.length ||
+          !(value instanceof LazyWrapper) || !isIndex(start)) {
+        return this.thru(interceptor);
+      }
+      value = value.slice(start, +start + (length ? 1 : 0));
+      value.__actions__.push({
+        'func': thru,
+        'args': [interceptor],
+        'thisArg': undefined
+      });
+      return new LodashWrapper(value, this.__chain__).thru(function(array) {
+        if (length && !array.length) {
+          array.push(undefined);
+        }
+        return array;
+      });
+    });
+
+    /**
+     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
+     *
+     * @name chain
+     * @memberOf _
+     * @since 0.1.0
+     * @category Seq
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney', 'age': 36 },
+     *   { 'user': 'fred',   'age': 40 }
+     * ];
+     *
+     * // A sequence without explicit chaining.
+     * _(users).head();
+     * // => { 'user': 'barney', 'age': 36 }
+     *
+     * // A sequence with explicit chaining.
+     * _(users)
+     *   .chain()
+     *   .head()
+     *   .pick('user')
+     *   .value();
+     * // => { 'user': 'barney' }
+     */
+    function wrapperChain() {
+      return chain(this);
+    }
 
-                        /**
-                         * This method is like `_.clone` except that it recursively clones `value`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.0.0
-                         * @category Lang
-                         * @param {*} value The value to recursively clone.
-                         * @returns {*} Returns the deep cloned value.
-                         * @see _.clone
-                         * @example
-                         *
-                         * var objects = [{ 'a': 1 }, { 'b': 2 }];
-                         *
-                         * var deep = _.cloneDeep(objects);
-                         * console.log(deep[0] === objects[0]);
-                         * // => false
-                         */
-                        function cloneDeep(value) {
-                            return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
-                        }
+    /**
+     * Executes the chain sequence and returns the wrapped result.
+     *
+     * @name commit
+     * @memberOf _
+     * @since 3.2.0
+     * @category Seq
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * var array = [1, 2];
+     * var wrapped = _(array).push(3);
+     *
+     * console.log(array);
+     * // => [1, 2]
+     *
+     * wrapped = wrapped.commit();
+     * console.log(array);
+     * // => [1, 2, 3]
+     *
+     * wrapped.last();
+     * // => 3
+     *
+     * console.log(array);
+     * // => [1, 2, 3]
+     */
+    function wrapperCommit() {
+      return new LodashWrapper(this.value(), this.__chain__);
+    }
 
-                        /**
-                         * This method is like `_.cloneWith` except that it recursively clones `value`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to recursively clone.
-                         * @param {Function} [customizer] The function to customize cloning.
-                         * @returns {*} Returns the deep cloned value.
-                         * @see _.cloneWith
-                         * @example
-                         *
-                         * function customizer(value) {
-                         *   if (_.isElement(value)) {
-                         *     return value.cloneNode(true);
-                         *   }
-                         * }
-                         *
-                         * var el = _.cloneDeepWith(document.body, customizer);
-                         *
-                         * console.log(el === document.body);
-                         * // => false
-                         * console.log(el.nodeName);
-                         * // => 'BODY'
-                         * console.log(el.childNodes.length);
-                         * // => 20
-                         */
-                        function cloneDeepWith(value, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
-                        }
+    /**
+     * Gets the next value on a wrapped object following the
+     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
+     *
+     * @name next
+     * @memberOf _
+     * @since 4.0.0
+     * @category Seq
+     * @returns {Object} Returns the next iterator value.
+     * @example
+     *
+     * var wrapped = _([1, 2]);
+     *
+     * wrapped.next();
+     * // => { 'done': false, 'value': 1 }
+     *
+     * wrapped.next();
+     * // => { 'done': false, 'value': 2 }
+     *
+     * wrapped.next();
+     * // => { 'done': true, 'value': undefined }
+     */
+    function wrapperNext() {
+      if (this.__values__ === undefined) {
+        this.__values__ = toArray(this.value());
+      }
+      var done = this.__index__ >= this.__values__.length,
+          value = done ? undefined : this.__values__[this.__index__++];
+
+      return { 'done': done, 'value': value };
+    }
 
-                        /**
-                         * Checks if `object` conforms to `source` by invoking the predicate
-                         * properties of `source` with the corresponding property values of `object`.
-                         *
-                         * **Note:** This method is equivalent to `_.conforms` when `source` is
-                         * partially applied.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.14.0
-                         * @category Lang
-                         * @param {Object} object The object to inspect.
-                         * @param {Object} source The object of property predicates to conform to.
-                         * @returns {boolean} Returns `true` if `object` conforms, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': 2 };
-                         *
-                         * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
-                         * // => true
-                         *
-                         * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
-                         * // => false
-                         */
-                        function conformsTo(object, source) {
-                            return source == null || baseConformsTo(object, source, keys(source));
-                        }
+    /**
+     * Enables the wrapper to be iterable.
+     *
+     * @name Symbol.iterator
+     * @memberOf _
+     * @since 4.0.0
+     * @category Seq
+     * @returns {Object} Returns the wrapper object.
+     * @example
+     *
+     * var wrapped = _([1, 2]);
+     *
+     * wrapped[Symbol.iterator]() === wrapped;
+     * // => true
+     *
+     * Array.from(wrapped);
+     * // => [1, 2]
+     */
+    function wrapperToIterator() {
+      return this;
+    }
 
-                        /**
-                         * Performs a
-                         * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-                         * comparison between two values to determine if they are equivalent.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': 1 };
-                         * var other = { 'a': 1 };
-                         *
-                         * _.eq(object, object);
-                         * // => true
-                         *
-                         * _.eq(object, other);
-                         * // => false
-                         *
-                         * _.eq('a', 'a');
-                         * // => true
-                         *
-                         * _.eq('a', Object('a'));
-                         * // => false
-                         *
-                         * _.eq(NaN, NaN);
-                         * // => true
-                         */
-                        function eq(value, other) {
-                            return value === other || (value !== value && other !== other);
-                        }
+    /**
+     * Creates a clone of the chain sequence planting `value` as the wrapped value.
+     *
+     * @name plant
+     * @memberOf _
+     * @since 3.2.0
+     * @category Seq
+     * @param {*} value The value to plant.
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * var wrapped = _([1, 2]).map(square);
+     * var other = wrapped.plant([3, 4]);
+     *
+     * other.value();
+     * // => [9, 16]
+     *
+     * wrapped.value();
+     * // => [1, 4]
+     */
+    function wrapperPlant(value) {
+      var result,
+          parent = this;
+
+      while (parent instanceof baseLodash) {
+        var clone = wrapperClone(parent);
+        clone.__index__ = 0;
+        clone.__values__ = undefined;
+        if (result) {
+          previous.__wrapped__ = clone;
+        } else {
+          result = clone;
+        }
+        var previous = clone;
+        parent = parent.__wrapped__;
+      }
+      previous.__wrapped__ = value;
+      return result;
+    }
 
-                        /**
-                         * Checks if `value` is greater than `other`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.9.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is greater than `other`,
-                         *  else `false`.
-                         * @see _.lt
-                         * @example
-                         *
-                         * _.gt(3, 1);
-                         * // => true
-                         *
-                         * _.gt(3, 3);
-                         * // => false
-                         *
-                         * _.gt(1, 3);
-                         * // => false
-                         */
-                        var gt = createRelationalOperation(baseGt);
-
-                        /**
-                         * Checks if `value` is greater than or equal to `other`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.9.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is greater than or equal to
-                         *  `other`, else `false`.
-                         * @see _.lte
-                         * @example
-                         *
-                         * _.gte(3, 1);
-                         * // => true
-                         *
-                         * _.gte(3, 3);
-                         * // => true
-                         *
-                         * _.gte(1, 3);
-                         * // => false
-                         */
-                        var gte = createRelationalOperation(function(value, other) {
-                            return value >= other;
-                        });
+    /**
+     * This method is the wrapper version of `_.reverse`.
+     *
+     * **Note:** This method mutates the wrapped array.
+     *
+     * @name reverse
+     * @memberOf _
+     * @since 0.1.0
+     * @category Seq
+     * @returns {Object} Returns the new `lodash` wrapper instance.
+     * @example
+     *
+     * var array = [1, 2, 3];
+     *
+     * _(array).reverse().value()
+     * // => [3, 2, 1]
+     *
+     * console.log(array);
+     * // => [3, 2, 1]
+     */
+    function wrapperReverse() {
+      var value = this.__wrapped__;
+      if (value instanceof LazyWrapper) {
+        var wrapped = value;
+        if (this.__actions__.length) {
+          wrapped = new LazyWrapper(this);
+        }
+        wrapped = wrapped.reverse();
+        wrapped.__actions__.push({
+          'func': thru,
+          'args': [reverse],
+          'thisArg': undefined
+        });
+        return new LodashWrapper(wrapped, this.__chain__);
+      }
+      return this.thru(reverse);
+    }
 
-                        /**
-                         * Checks if `value` is likely an `arguments` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an `arguments` object,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.isArguments(function() { return arguments; }());
-                         * // => true
-                         *
-                         * _.isArguments([1, 2, 3]);
-                         * // => false
-                         */
-                        var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
-                            return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
-                                !propertyIsEnumerable.call(value, 'callee');
-                        };
-
-                        /**
-                         * Checks if `value` is classified as an `Array` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an array, else `false`.
-                         * @example
-                         *
-                         * _.isArray([1, 2, 3]);
-                         * // => true
-                         *
-                         * _.isArray(document.body.children);
-                         * // => false
-                         *
-                         * _.isArray('abc');
-                         * // => false
-                         *
-                         * _.isArray(_.noop);
-                         * // => false
-                         */
-                        var isArray = Array.isArray;
-
-                        /**
-                         * Checks if `value` is classified as an `ArrayBuffer` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
-                         * @example
-                         *
-                         * _.isArrayBuffer(new ArrayBuffer(2));
-                         * // => true
-                         *
-                         * _.isArrayBuffer(new Array(2));
-                         * // => false
-                         */
-                        var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
-
-                        /**
-                         * Checks if `value` is array-like. A value is considered array-like if it's
-                         * not a function and has a `value.length` that's an integer greater than or
-                         * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
-                         * @example
-                         *
-                         * _.isArrayLike([1, 2, 3]);
-                         * // => true
-                         *
-                         * _.isArrayLike(document.body.children);
-                         * // => true
-                         *
-                         * _.isArrayLike('abc');
-                         * // => true
-                         *
-                         * _.isArrayLike(_.noop);
-                         * // => false
-                         */
-                        function isArrayLike(value) {
-                            return value != null && isLength(value.length) && !isFunction(value);
-                        }
+    /**
+     * Executes the chain sequence to resolve the unwrapped value.
+     *
+     * @name value
+     * @memberOf _
+     * @since 0.1.0
+     * @alias toJSON, valueOf
+     * @category Seq
+     * @returns {*} Returns the resolved unwrapped value.
+     * @example
+     *
+     * _([1, 2, 3]).value();
+     * // => [1, 2, 3]
+     */
+    function wrapperValue() {
+      return baseWrapperValue(this.__wrapped__, this.__actions__);
+    }
 
-                        /**
-                         * This method is like `_.isArrayLike` except that it also checks if `value`
-                         * is an object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an array-like object,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.isArrayLikeObject([1, 2, 3]);
-                         * // => true
-                         *
-                         * _.isArrayLikeObject(document.body.children);
-                         * // => true
-                         *
-                         * _.isArrayLikeObject('abc');
-                         * // => false
-                         *
-                         * _.isArrayLikeObject(_.noop);
-                         * // => false
-                         */
-                        function isArrayLikeObject(value) {
-                            return isObjectLike(value) && isArrayLike(value);
-                        }
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Creates an object composed of keys generated from the results of running
+     * each element of `collection` thru `iteratee`. The corresponding value of
+     * each key is the number of times the key was returned by `iteratee`. The
+     * iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.5.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
+     * @returns {Object} Returns the composed aggregate object.
+     * @example
+     *
+     * _.countBy([6.1, 4.2, 6.3], Math.floor);
+     * // => { '4': 1, '6': 2 }
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.countBy(['one', 'two', 'three'], 'length');
+     * // => { '3': 2, '5': 1 }
+     */
+    var countBy = createAggregator(function(result, value, key) {
+      if (hasOwnProperty.call(result, key)) {
+        ++result[key];
+      } else {
+        baseAssignValue(result, key, 1);
+      }
+    });
+
+    /**
+     * Checks if `predicate` returns truthy for **all** elements of `collection`.
+     * Iteration is stopped once `predicate` returns falsey. The predicate is
+     * invoked with three arguments: (value, index|key, collection).
+     *
+     * **Note:** This method returns `true` for
+     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
+     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
+     * elements of empty collections.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {boolean} Returns `true` if all elements pass the predicate check,
+     *  else `false`.
+     * @example
+     *
+     * _.every([true, 1, null, 'yes'], Boolean);
+     * // => false
+     *
+     * var users = [
+     *   { 'user': 'barney', 'age': 36, 'active': false },
+     *   { 'user': 'fred',   'age': 40, 'active': false }
+     * ];
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.every(users, { 'user': 'barney', 'active': false });
+     * // => false
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.every(users, ['active', false]);
+     * // => true
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.every(users, 'active');
+     * // => false
+     */
+    function every(collection, predicate, guard) {
+      var func = isArray(collection) ? arrayEvery : baseEvery;
+      if (guard && isIterateeCall(collection, predicate, guard)) {
+        predicate = undefined;
+      }
+      return func(collection, getIteratee(predicate, 3));
+    }
 
-                        /**
-                         * Checks if `value` is classified as a boolean primitive or object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
-                         * @example
-                         *
-                         * _.isBoolean(false);
-                         * // => true
-                         *
-                         * _.isBoolean(null);
-                         * // => false
-                         */
-                        function isBoolean(value) {
-                            return value === true || value === false ||
-                                (isObjectLike(value) && baseGetTag(value) == boolTag);
-                        }
+    /**
+     * Iterates over elements of `collection`, returning an array of all elements
+     * `predicate` returns truthy for. The predicate is invoked with three
+     * arguments: (value, index|key, collection).
+     *
+     * **Note:** Unlike `_.remove`, this method returns a new array.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new filtered array.
+     * @see _.reject
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney', 'age': 36, 'active': true },
+     *   { 'user': 'fred',   'age': 40, 'active': false }
+     * ];
+     *
+     * _.filter(users, function(o) { return !o.active; });
+     * // => objects for ['fred']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.filter(users, { 'age': 36, 'active': true });
+     * // => objects for ['barney']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.filter(users, ['active', false]);
+     * // => objects for ['fred']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.filter(users, 'active');
+     * // => objects for ['barney']
+     *
+     * // Combining several predicates using `_.overEvery` or `_.overSome`.
+     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
+     * // => objects for ['fred', 'barney']
+     */
+    function filter(collection, predicate) {
+      var func = isArray(collection) ? arrayFilter : baseFilter;
+      return func(collection, getIteratee(predicate, 3));
+    }
 
-                        /**
-                         * Checks if `value` is a buffer.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
-                         * @example
-                         *
-                         * _.isBuffer(new Buffer(2));
-                         * // => true
-                         *
-                         * _.isBuffer(new Uint8Array(2));
-                         * // => false
-                         */
-                        var isBuffer = nativeIsBuffer || stubFalse;
-
-                        /**
-                         * Checks if `value` is classified as a `Date` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
-                         * @example
-                         *
-                         * _.isDate(new Date);
-                         * // => true
-                         *
-                         * _.isDate('Mon April 23 2012');
-                         * // => false
-                         */
-                        var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
-
-                        /**
-                         * Checks if `value` is likely a DOM element.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
-                         * @example
-                         *
-                         * _.isElement(document.body);
-                         * // => true
-                         *
-                         * _.isElement('<body>');
-                         * // => false
-                         */
-                        function isElement(value) {
-                            return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
-                        }
+    /**
+     * Iterates over elements of `collection`, returning the first element
+     * `predicate` returns truthy for. The predicate is invoked with three
+     * arguments: (value, index|key, collection).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param {number} [fromIndex=0] The index to search from.
+     * @returns {*} Returns the matched element, else `undefined`.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'age': 36, 'active': true },
+     *   { 'user': 'fred',    'age': 40, 'active': false },
+     *   { 'user': 'pebbles', 'age': 1,  'active': true }
+     * ];
+     *
+     * _.find(users, function(o) { return o.age < 40; });
+     * // => object for 'barney'
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.find(users, { 'age': 1, 'active': true });
+     * // => object for 'pebbles'
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.find(users, ['active', false]);
+     * // => object for 'fred'
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.find(users, 'active');
+     * // => object for 'barney'
+     */
+    var find = createFind(findIndex);
+
+    /**
+     * This method is like `_.find` except that it iterates over elements of
+     * `collection` from right to left.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param {number} [fromIndex=collection.length-1] The index to search from.
+     * @returns {*} Returns the matched element, else `undefined`.
+     * @example
+     *
+     * _.findLast([1, 2, 3, 4], function(n) {
+     *   return n % 2 == 1;
+     * });
+     * // => 3
+     */
+    var findLast = createFind(findLastIndex);
+
+    /**
+     * Creates a flattened array of values by running each element in `collection`
+     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
+     * with three arguments: (value, index|key, collection).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * function duplicate(n) {
+     *   return [n, n];
+     * }
+     *
+     * _.flatMap([1, 2], duplicate);
+     * // => [1, 1, 2, 2]
+     */
+    function flatMap(collection, iteratee) {
+      return baseFlatten(map(collection, iteratee), 1);
+    }
 
-                        /**
-                         * Checks if `value` is an empty object, collection, map, or set.
-                         *
-                         * Objects are considered empty if they have no own enumerable string keyed
-                         * properties.
-                         *
-                         * Array-like values such as `arguments` objects, arrays, buffers, strings, or
-                         * jQuery-like collections are considered empty if they have a `length` of `0`.
-                         * Similarly, maps and sets are considered empty if they have a `size` of `0`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is empty, else `false`.
-                         * @example
-                         *
-                         * _.isEmpty(null);
-                         * // => true
-                         *
-                         * _.isEmpty(true);
-                         * // => true
-                         *
-                         * _.isEmpty(1);
-                         * // => true
-                         *
-                         * _.isEmpty([1, 2, 3]);
-                         * // => false
-                         *
-                         * _.isEmpty({ 'a': 1 });
-                         * // => false
-                         */
-                        function isEmpty(value) {
-                            if (value == null) {
-                                return true;
-                            }
-                            if (isArrayLike(value) &&
-                                (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
-                                    isBuffer(value) || isTypedArray(value) || isArguments(value))) {
-                                return !value.length;
-                            }
-                            var tag = getTag(value);
-                            if (tag == mapTag || tag == setTag) {
-                                return !value.size;
-                            }
-                            if (isPrototype(value)) {
-                                return !baseKeys(value).length;
-                            }
-                            for (var key in value) {
-                                if (hasOwnProperty.call(value, key)) {
-                                    return false;
-                                }
-                            }
-                            return true;
-                        }
+    /**
+     * This method is like `_.flatMap` except that it recursively flattens the
+     * mapped results.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.7.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * function duplicate(n) {
+     *   return [[[n, n]]];
+     * }
+     *
+     * _.flatMapDeep([1, 2], duplicate);
+     * // => [1, 1, 2, 2]
+     */
+    function flatMapDeep(collection, iteratee) {
+      return baseFlatten(map(collection, iteratee), INFINITY);
+    }
 
-                        /**
-                         * Performs a deep comparison between two values to determine if they are
-                         * equivalent.
-                         *
-                         * **Note:** This method supports comparing arrays, array buffers, booleans,
-                         * date objects, error objects, maps, numbers, `Object` objects, regexes,
-                         * sets, strings, symbols, and typed arrays. `Object` objects are compared
-                         * by their own, not inherited, enumerable properties. Functions and DOM
-                         * nodes are compared by strict equality, i.e. `===`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': 1 };
-                         * var other = { 'a': 1 };
-                         *
-                         * _.isEqual(object, other);
-                         * // => true
-                         *
-                         * object === other;
-                         * // => false
-                         */
-                        function isEqual(value, other) {
-                            return baseIsEqual(value, other);
-                        }
+    /**
+     * This method is like `_.flatMap` except that it recursively flattens the
+     * mapped results up to `depth` times.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.7.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @param {number} [depth=1] The maximum recursion depth.
+     * @returns {Array} Returns the new flattened array.
+     * @example
+     *
+     * function duplicate(n) {
+     *   return [[[n, n]]];
+     * }
+     *
+     * _.flatMapDepth([1, 2], duplicate, 2);
+     * // => [[1, 1], [2, 2]]
+     */
+    function flatMapDepth(collection, iteratee, depth) {
+      depth = depth === undefined ? 1 : toInteger(depth);
+      return baseFlatten(map(collection, iteratee), depth);
+    }
 
-                        /**
-                         * This method is like `_.isEqual` except that it accepts `customizer` which
-                         * is invoked to compare values. If `customizer` returns `undefined`, comparisons
-                         * are handled by the method instead. The `customizer` is invoked with up to
-                         * six arguments: (objValue, othValue [, index|key, object, other, stack]).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @param {Function} [customizer] The function to customize comparisons.
-                         * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
-                         * @example
-                         *
-                         * function isGreeting(value) {
-                         *   return /^h(?:i|ello)$/.test(value);
-                         * }
-                         *
-                         * function customizer(objValue, othValue) {
-                         *   if (isGreeting(objValue) && isGreeting(othValue)) {
-                         *     return true;
-                         *   }
-                         * }
-                         *
-                         * var array = ['hello', 'goodbye'];
-                         * var other = ['hi', 'goodbye'];
-                         *
-                         * _.isEqualWith(array, other, customizer);
-                         * // => true
-                         */
-                        function isEqualWith(value, other, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            var result = customizer ? customizer(value, other) : undefined;
-                            return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
-                        }
+    /**
+     * Iterates over elements of `collection` and invokes `iteratee` for each element.
+     * The iteratee is invoked with three arguments: (value, index|key, collection).
+     * Iteratee functions may exit iteration early by explicitly returning `false`.
+     *
+     * **Note:** As with other "Collections" methods, objects with a "length"
+     * property are iterated like arrays. To avoid this behavior use `_.forIn`
+     * or `_.forOwn` for object iteration.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @alias each
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array|Object} Returns `collection`.
+     * @see _.forEachRight
+     * @example
+     *
+     * _.forEach([1, 2], function(value) {
+     *   console.log(value);
+     * });
+     * // => Logs `1` then `2`.
+     *
+     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
+     *   console.log(key);
+     * });
+     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
+     */
+    function forEach(collection, iteratee) {
+      var func = isArray(collection) ? arrayEach : baseEach;
+      return func(collection, getIteratee(iteratee, 3));
+    }
 
-                        /**
-                         * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
-                         * `SyntaxError`, `TypeError`, or `URIError` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
-                         * @example
-                         *
-                         * _.isError(new Error);
-                         * // => true
-                         *
-                         * _.isError(Error);
-                         * // => false
-                         */
-                        function isError(value) {
-                            if (!isObjectLike(value)) {
-                                return false;
-                            }
-                            var tag = baseGetTag(value);
-                            return tag == errorTag || tag == domExcTag ||
-                                (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
-                        }
+    /**
+     * This method is like `_.forEach` except that it iterates over elements of
+     * `collection` from right to left.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @alias eachRight
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array|Object} Returns `collection`.
+     * @see _.forEach
+     * @example
+     *
+     * _.forEachRight([1, 2], function(value) {
+     *   console.log(value);
+     * });
+     * // => Logs `2` then `1`.
+     */
+    function forEachRight(collection, iteratee) {
+      var func = isArray(collection) ? arrayEachRight : baseEachRight;
+      return func(collection, getIteratee(iteratee, 3));
+    }
 
-                        /**
-                         * Checks if `value` is a finite primitive number.
-                         *
-                         * **Note:** This method is based on
-                         * [`Number.isFinite`](https://mdn.io/Number/isFinite).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
-                         * @example
-                         *
-                         * _.isFinite(3);
-                         * // => true
-                         *
-                         * _.isFinite(Number.MIN_VALUE);
-                         * // => true
-                         *
-                         * _.isFinite(Infinity);
-                         * // => false
-                         *
-                         * _.isFinite('3');
-                         * // => false
-                         */
-                        function isFinite(value) {
-                            return typeof value == 'number' && nativeIsFinite(value);
-                        }
+    /**
+     * Creates an object composed of keys generated from the results of running
+     * each element of `collection` thru `iteratee`. The order of grouped values
+     * is determined by the order they occur in `collection`. The corresponding
+     * value of each key is an array of elements responsible for generating the
+     * key. The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
+     * @returns {Object} Returns the composed aggregate object.
+     * @example
+     *
+     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
+     * // => { '4': [4.2], '6': [6.1, 6.3] }
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.groupBy(['one', 'two', 'three'], 'length');
+     * // => { '3': ['one', 'two'], '5': ['three'] }
+     */
+    var groupBy = createAggregator(function(result, value, key) {
+      if (hasOwnProperty.call(result, key)) {
+        result[key].push(value);
+      } else {
+        baseAssignValue(result, key, [value]);
+      }
+    });
+
+    /**
+     * Checks if `value` is in `collection`. If `collection` is a string, it's
+     * checked for a substring of `value`, otherwise
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * is used for equality comparisons. If `fromIndex` is negative, it's used as
+     * the offset from the end of `collection`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object|string} collection The collection to inspect.
+     * @param {*} value The value to search for.
+     * @param {number} [fromIndex=0] The index to search from.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
+     * @returns {boolean} Returns `true` if `value` is found, else `false`.
+     * @example
+     *
+     * _.includes([1, 2, 3], 1);
+     * // => true
+     *
+     * _.includes([1, 2, 3], 1, 2);
+     * // => false
+     *
+     * _.includes({ 'a': 1, 'b': 2 }, 1);
+     * // => true
+     *
+     * _.includes('abcd', 'bc');
+     * // => true
+     */
+    function includes(collection, value, fromIndex, guard) {
+      collection = isArrayLike(collection) ? collection : values(collection);
+      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
+
+      var length = collection.length;
+      if (fromIndex < 0) {
+        fromIndex = nativeMax(length + fromIndex, 0);
+      }
+      return isString(collection)
+        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
+        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `Function` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a function, else `false`.
-                         * @example
-                         *
-                         * _.isFunction(_);
-                         * // => true
-                         *
-                         * _.isFunction(/abc/);
-                         * // => false
-                         */
-                        function isFunction(value) {
-                            if (!isObject(value)) {
-                                return false;
-                            }
-                            // The use of `Object#toString` avoids issues with the `typeof` operator
-                            // in Safari 9 which returns 'object' for typed arrays and other constructors.
-                            var tag = baseGetTag(value);
-                            return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
-                        }
+    /**
+     * Invokes the method at `path` of each element in `collection`, returning
+     * an array of the results of each invoked method. Any additional arguments
+     * are provided to each invoked method. If `path` is a function, it's invoked
+     * for, and `this` bound to, each element in `collection`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Array|Function|string} path The path of the method to invoke or
+     *  the function invoked per iteration.
+     * @param {...*} [args] The arguments to invoke each method with.
+     * @returns {Array} Returns the array of results.
+     * @example
+     *
+     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
+     * // => [[1, 5, 7], [1, 2, 3]]
+     *
+     * _.invokeMap([123, 456], String.prototype.split, '');
+     * // => [['1', '2', '3'], ['4', '5', '6']]
+     */
+    var invokeMap = baseRest(function(collection, path, args) {
+      var index = -1,
+          isFunc = typeof path == 'function',
+          result = isArrayLike(collection) ? Array(collection.length) : [];
+
+      baseEach(collection, function(value) {
+        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
+      });
+      return result;
+    });
+
+    /**
+     * Creates an object composed of keys generated from the results of running
+     * each element of `collection` thru `iteratee`. The corresponding value of
+     * each key is the last element responsible for generating the key. The
+     * iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
+     * @returns {Object} Returns the composed aggregate object.
+     * @example
+     *
+     * var array = [
+     *   { 'dir': 'left', 'code': 97 },
+     *   { 'dir': 'right', 'code': 100 }
+     * ];
+     *
+     * _.keyBy(array, function(o) {
+     *   return String.fromCharCode(o.code);
+     * });
+     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
+     *
+     * _.keyBy(array, 'dir');
+     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
+     */
+    var keyBy = createAggregator(function(result, value, key) {
+      baseAssignValue(result, key, value);
+    });
+
+    /**
+     * Creates an array of values by running each element in `collection` thru
+     * `iteratee`. The iteratee is invoked with three arguments:
+     * (value, index|key, collection).
+     *
+     * Many lodash methods are guarded to work as iteratees for methods like
+     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
+     *
+     * The guarded methods are:
+     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
+     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
+     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
+     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new mapped array.
+     * @example
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * _.map([4, 8], square);
+     * // => [16, 64]
+     *
+     * _.map({ 'a': 4, 'b': 8 }, square);
+     * // => [16, 64] (iteration order is not guaranteed)
+     *
+     * var users = [
+     *   { 'user': 'barney' },
+     *   { 'user': 'fred' }
+     * ];
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.map(users, 'user');
+     * // => ['barney', 'fred']
+     */
+    function map(collection, iteratee) {
+      var func = isArray(collection) ? arrayMap : baseMap;
+      return func(collection, getIteratee(iteratee, 3));
+    }
 
-                        /**
-                         * Checks if `value` is an integer.
-                         *
-                         * **Note:** This method is based on
-                         * [`Number.isInteger`](https://mdn.io/Number/isInteger).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
-                         * @example
-                         *
-                         * _.isInteger(3);
-                         * // => true
-                         *
-                         * _.isInteger(Number.MIN_VALUE);
-                         * // => false
-                         *
-                         * _.isInteger(Infinity);
-                         * // => false
-                         *
-                         * _.isInteger('3');
-                         * // => false
-                         */
-                        function isInteger(value) {
-                            return typeof value == 'number' && value == toInteger(value);
-                        }
+    /**
+     * This method is like `_.sortBy` except that it allows specifying the sort
+     * orders of the iteratees to sort by. If `orders` is unspecified, all values
+     * are sorted in ascending order. Otherwise, specify an order of "desc" for
+     * descending or "asc" for ascending sort order of corresponding values.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
+     *  The iteratees to sort by.
+     * @param {string[]} [orders] The sort orders of `iteratees`.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
+     * @returns {Array} Returns the new sorted array.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'fred',   'age': 48 },
+     *   { 'user': 'barney', 'age': 34 },
+     *   { 'user': 'fred',   'age': 40 },
+     *   { 'user': 'barney', 'age': 36 }
+     * ];
+     *
+     * // Sort by `user` in ascending order and by `age` in descending order.
+     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
+     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
+     */
+    function orderBy(collection, iteratees, orders, guard) {
+      if (collection == null) {
+        return [];
+      }
+      if (!isArray(iteratees)) {
+        iteratees = iteratees == null ? [] : [iteratees];
+      }
+      orders = guard ? undefined : orders;
+      if (!isArray(orders)) {
+        orders = orders == null ? [] : [orders];
+      }
+      return baseOrderBy(collection, iteratees, orders);
+    }
 
-                        /**
-                         * Checks if `value` is a valid array-like length.
-                         *
-                         * **Note:** This method is loosely based on
-                         * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
-                         * @example
-                         *
-                         * _.isLength(3);
-                         * // => true
-                         *
-                         * _.isLength(Number.MIN_VALUE);
-                         * // => false
-                         *
-                         * _.isLength(Infinity);
-                         * // => false
-                         *
-                         * _.isLength('3');
-                         * // => false
-                         */
-                        function isLength(value) {
-                            return typeof value == 'number' &&
-                                value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
-                        }
+    /**
+     * Creates an array of elements split into two groups, the first of which
+     * contains elements `predicate` returns truthy for, the second of which
+     * contains elements `predicate` returns falsey for. The predicate is
+     * invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the array of grouped elements.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney',  'age': 36, 'active': false },
+     *   { 'user': 'fred',    'age': 40, 'active': true },
+     *   { 'user': 'pebbles', 'age': 1,  'active': false }
+     * ];
+     *
+     * _.partition(users, function(o) { return o.active; });
+     * // => objects for [['fred'], ['barney', 'pebbles']]
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.partition(users, { 'age': 1, 'active': false });
+     * // => objects for [['pebbles'], ['barney', 'fred']]
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.partition(users, ['active', false]);
+     * // => objects for [['barney', 'pebbles'], ['fred']]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.partition(users, 'active');
+     * // => objects for [['fred'], ['barney', 'pebbles']]
+     */
+    var partition = createAggregator(function(result, value, key) {
+      result[key ? 0 : 1].push(value);
+    }, function() { return [[], []]; });
+
+    /**
+     * Reduces `collection` to a value which is the accumulated result of running
+     * each element in `collection` thru `iteratee`, where each successive
+     * invocation is supplied the return value of the previous. If `accumulator`
+     * is not given, the first element of `collection` is used as the initial
+     * value. The iteratee is invoked with four arguments:
+     * (accumulator, value, index|key, collection).
+     *
+     * Many lodash methods are guarded to work as iteratees for methods like
+     * `_.reduce`, `_.reduceRight`, and `_.transform`.
+     *
+     * The guarded methods are:
+     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
+     * and `sortBy`
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @param {*} [accumulator] The initial value.
+     * @returns {*} Returns the accumulated value.
+     * @see _.reduceRight
+     * @example
+     *
+     * _.reduce([1, 2], function(sum, n) {
+     *   return sum + n;
+     * }, 0);
+     * // => 3
+     *
+     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
+     *   (result[value] || (result[value] = [])).push(key);
+     *   return result;
+     * }, {});
+     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
+     */
+    function reduce(collection, iteratee, accumulator) {
+      var func = isArray(collection) ? arrayReduce : baseReduce,
+          initAccum = arguments.length < 3;
+
+      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
+    }
 
-                        /**
-                         * Checks if `value` is the
-                         * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
-                         * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is an object, else `false`.
-                         * @example
-                         *
-                         * _.isObject({});
-                         * // => true
-                         *
-                         * _.isObject([1, 2, 3]);
-                         * // => true
-                         *
-                         * _.isObject(_.noop);
-                         * // => true
-                         *
-                         * _.isObject(null);
-                         * // => false
-                         */
-                        function isObject(value) {
-                            var type = typeof value;
-                            return value != null && (type == 'object' || type == 'function');
-                        }
+    /**
+     * This method is like `_.reduce` except that it iterates over elements of
+     * `collection` from right to left.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @param {*} [accumulator] The initial value.
+     * @returns {*} Returns the accumulated value.
+     * @see _.reduce
+     * @example
+     *
+     * var array = [[0, 1], [2, 3], [4, 5]];
+     *
+     * _.reduceRight(array, function(flattened, other) {
+     *   return flattened.concat(other);
+     * }, []);
+     * // => [4, 5, 2, 3, 0, 1]
+     */
+    function reduceRight(collection, iteratee, accumulator) {
+      var func = isArray(collection) ? arrayReduceRight : baseReduce,
+          initAccum = arguments.length < 3;
+
+      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
+    }
 
-                        /**
-                         * Checks if `value` is object-like. A value is object-like if it's not `null`
-                         * and has a `typeof` result of "object".
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
-                         * @example
-                         *
-                         * _.isObjectLike({});
-                         * // => true
-                         *
-                         * _.isObjectLike([1, 2, 3]);
-                         * // => true
-                         *
-                         * _.isObjectLike(_.noop);
-                         * // => false
-                         *
-                         * _.isObjectLike(null);
-                         * // => false
-                         */
-                        function isObjectLike(value) {
-                            return value != null && typeof value == 'object';
-                        }
+    /**
+     * The opposite of `_.filter`; this method returns the elements of `collection`
+     * that `predicate` does **not** return truthy for.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the new filtered array.
+     * @see _.filter
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney', 'age': 36, 'active': false },
+     *   { 'user': 'fred',   'age': 40, 'active': true }
+     * ];
+     *
+     * _.reject(users, function(o) { return !o.active; });
+     * // => objects for ['fred']
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.reject(users, { 'age': 40, 'active': true });
+     * // => objects for ['barney']
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.reject(users, ['active', false]);
+     * // => objects for ['fred']
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.reject(users, 'active');
+     * // => objects for ['barney']
+     */
+    function reject(collection, predicate) {
+      var func = isArray(collection) ? arrayFilter : baseFilter;
+      return func(collection, negate(getIteratee(predicate, 3)));
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `Map` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a map, else `false`.
-                         * @example
-                         *
-                         * _.isMap(new Map);
-                         * // => true
-                         *
-                         * _.isMap(new WeakMap);
-                         * // => false
-                         */
-                        var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
-
-                        /**
-                         * Performs a partial deep comparison between `object` and `source` to
-                         * determine if `object` contains equivalent property values.
-                         *
-                         * **Note:** This method is equivalent to `_.matches` when `source` is
-                         * partially applied.
-                         *
-                         * Partial comparisons will match empty array and empty object `source`
-                         * values against any array or object value, respectively. See `_.isEqual`
-                         * for a list of supported value comparisons.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Lang
-                         * @param {Object} object The object to inspect.
-                         * @param {Object} source The object of property values to match.
-                         * @returns {boolean} Returns `true` if `object` is a match, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': 2 };
-                         *
-                         * _.isMatch(object, { 'b': 2 });
-                         * // => true
-                         *
-                         * _.isMatch(object, { 'b': 1 });
-                         * // => false
-                         */
-                        function isMatch(object, source) {
-                            return object === source || baseIsMatch(object, source, getMatchData(source));
-                        }
+    /**
+     * Gets a random element from `collection`.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to sample.
+     * @returns {*} Returns the random element.
+     * @example
+     *
+     * _.sample([1, 2, 3, 4]);
+     * // => 2
+     */
+    function sample(collection) {
+      var func = isArray(collection) ? arraySample : baseSample;
+      return func(collection);
+    }
 
-                        /**
-                         * This method is like `_.isMatch` except that it accepts `customizer` which
-                         * is invoked to compare values. If `customizer` returns `undefined`, comparisons
-                         * are handled by the method instead. The `customizer` is invoked with five
-                         * arguments: (objValue, srcValue, index|key, object, source).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {Object} object The object to inspect.
-                         * @param {Object} source The object of property values to match.
-                         * @param {Function} [customizer] The function to customize comparisons.
-                         * @returns {boolean} Returns `true` if `object` is a match, else `false`.
-                         * @example
-                         *
-                         * function isGreeting(value) {
-                         *   return /^h(?:i|ello)$/.test(value);
-                         * }
-                         *
-                         * function customizer(objValue, srcValue) {
-                         *   if (isGreeting(objValue) && isGreeting(srcValue)) {
-                         *     return true;
-                         *   }
-                         * }
-                         *
-                         * var object = { 'greeting': 'hello' };
-                         * var source = { 'greeting': 'hi' };
-                         *
-                         * _.isMatchWith(object, source, customizer);
-                         * // => true
-                         */
-                        function isMatchWith(object, source, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            return baseIsMatch(object, source, getMatchData(source), customizer);
-                        }
+    /**
+     * Gets `n` random elements at unique keys from `collection` up to the
+     * size of `collection`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to sample.
+     * @param {number} [n=1] The number of elements to sample.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the random elements.
+     * @example
+     *
+     * _.sampleSize([1, 2, 3], 2);
+     * // => [3, 1]
+     *
+     * _.sampleSize([1, 2, 3], 4);
+     * // => [2, 3, 1]
+     */
+    function sampleSize(collection, n, guard) {
+      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
+        n = 1;
+      } else {
+        n = toInteger(n);
+      }
+      var func = isArray(collection) ? arraySampleSize : baseSampleSize;
+      return func(collection, n);
+    }
 
-                        /**
-                         * Checks if `value` is `NaN`.
-                         *
-                         * **Note:** This method is based on
-                         * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
-                         * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
-                         * `undefined` and other non-number values.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
-                         * @example
-                         *
-                         * _.isNaN(NaN);
-                         * // => true
-                         *
-                         * _.isNaN(new Number(NaN));
-                         * // => true
-                         *
-                         * isNaN(undefined);
-                         * // => true
-                         *
-                         * _.isNaN(undefined);
-                         * // => false
-                         */
-                        function isNaN(value) {
-                            // An `NaN` primitive is the only value that is not equal to itself.
-                            // Perform the `toStringTag` check first to avoid errors with some
-                            // ActiveX objects in IE.
-                            return isNumber(value) && value != +value;
-                        }
+    /**
+     * Creates an array of shuffled values, using a version of the
+     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to shuffle.
+     * @returns {Array} Returns the new shuffled array.
+     * @example
+     *
+     * _.shuffle([1, 2, 3, 4]);
+     * // => [4, 1, 3, 2]
+     */
+    function shuffle(collection) {
+      var func = isArray(collection) ? arrayShuffle : baseShuffle;
+      return func(collection);
+    }
 
-                        /**
-                         * Checks if `value` is a pristine native function.
-                         *
-                         * **Note:** This method can't reliably detect native functions in the presence
-                         * of the core-js package because core-js circumvents this kind of detection.
-                         * Despite multiple requests, the core-js maintainer has made it clear: any
-                         * attempt to fix the detection will be obstructed. As a result, we're left
-                         * with little choice but to throw an error. Unfortunately, this also affects
-                         * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
-                         * which rely on core-js.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a native function,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.isNative(Array.prototype.push);
-                         * // => true
-                         *
-                         * _.isNative(_);
-                         * // => false
-                         */
-                        function isNative(value) {
-                            if (isMaskable(value)) {
-                                throw new Error(CORE_ERROR_TEXT);
-                            }
-                            return baseIsNative(value);
-                        }
+    /**
+     * Gets the size of `collection` by returning its length for array-like
+     * values or the number of own enumerable string keyed properties for objects.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object|string} collection The collection to inspect.
+     * @returns {number} Returns the collection size.
+     * @example
+     *
+     * _.size([1, 2, 3]);
+     * // => 3
+     *
+     * _.size({ 'a': 1, 'b': 2 });
+     * // => 2
+     *
+     * _.size('pebbles');
+     * // => 7
+     */
+    function size(collection) {
+      if (collection == null) {
+        return 0;
+      }
+      if (isArrayLike(collection)) {
+        return isString(collection) ? stringSize(collection) : collection.length;
+      }
+      var tag = getTag(collection);
+      if (tag == mapTag || tag == setTag) {
+        return collection.size;
+      }
+      return baseKeys(collection).length;
+    }
 
-                        /**
-                         * Checks if `value` is `null`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
-                         * @example
-                         *
-                         * _.isNull(null);
-                         * // => true
-                         *
-                         * _.isNull(void 0);
-                         * // => false
-                         */
-                        function isNull(value) {
-                            return value === null;
-                        }
+    /**
+     * Checks if `predicate` returns truthy for **any** element of `collection`.
+     * Iteration is stopped once `predicate` returns truthy. The predicate is
+     * invoked with three arguments: (value, index|key, collection).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {boolean} Returns `true` if any element passes the predicate check,
+     *  else `false`.
+     * @example
+     *
+     * _.some([null, 0, 'yes', false], Boolean);
+     * // => true
+     *
+     * var users = [
+     *   { 'user': 'barney', 'active': true },
+     *   { 'user': 'fred',   'active': false }
+     * ];
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.some(users, { 'user': 'barney', 'active': false });
+     * // => false
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.some(users, ['active', false]);
+     * // => true
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.some(users, 'active');
+     * // => true
+     */
+    function some(collection, predicate, guard) {
+      var func = isArray(collection) ? arraySome : baseSome;
+      if (guard && isIterateeCall(collection, predicate, guard)) {
+        predicate = undefined;
+      }
+      return func(collection, getIteratee(predicate, 3));
+    }
 
-                        /**
-                         * Checks if `value` is `null` or `undefined`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
-                         * @example
-                         *
-                         * _.isNil(null);
-                         * // => true
-                         *
-                         * _.isNil(void 0);
-                         * // => true
-                         *
-                         * _.isNil(NaN);
-                         * // => false
-                         */
-                        function isNil(value) {
-                            return value == null;
-                        }
+    /**
+     * Creates an array of elements, sorted in ascending order by the results of
+     * running each element in a collection thru each iteratee. This method
+     * performs a stable sort, that is, it preserves the original sort order of
+     * equal elements. The iteratees are invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Collection
+     * @param {Array|Object} collection The collection to iterate over.
+     * @param {...(Function|Function[])} [iteratees=[_.identity]]
+     *  The iteratees to sort by.
+     * @returns {Array} Returns the new sorted array.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'fred',   'age': 48 },
+     *   { 'user': 'barney', 'age': 36 },
+     *   { 'user': 'fred',   'age': 30 },
+     *   { 'user': 'barney', 'age': 34 }
+     * ];
+     *
+     * _.sortBy(users, [function(o) { return o.user; }]);
+     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
+     *
+     * _.sortBy(users, ['user', 'age']);
+     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
+     */
+    var sortBy = baseRest(function(collection, iteratees) {
+      if (collection == null) {
+        return [];
+      }
+      var length = iteratees.length;
+      if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
+        iteratees = [];
+      } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
+        iteratees = [iteratees[0]];
+      }
+      return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
+    });
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Gets the timestamp of the number of milliseconds that have elapsed since
+     * the Unix epoch (1 January 1970 00:00:00 UTC).
+     *
+     * @static
+     * @memberOf _
+     * @since 2.4.0
+     * @category Date
+     * @returns {number} Returns the timestamp.
+     * @example
+     *
+     * _.defer(function(stamp) {
+     *   console.log(_.now() - stamp);
+     * }, _.now());
+     * // => Logs the number of milliseconds it took for the deferred invocation.
+     */
+    var now = ctxNow || function() {
+      return root.Date.now();
+    };
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * The opposite of `_.before`; this method creates a function that invokes
+     * `func` once it's called `n` or more times.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {number} n The number of calls before `func` is invoked.
+     * @param {Function} func The function to restrict.
+     * @returns {Function} Returns the new restricted function.
+     * @example
+     *
+     * var saves = ['profile', 'settings'];
+     *
+     * var done = _.after(saves.length, function() {
+     *   console.log('done saving!');
+     * });
+     *
+     * _.forEach(saves, function(type) {
+     *   asyncSave({ 'type': type, 'complete': done });
+     * });
+     * // => Logs 'done saving!' after the two async saves have completed.
+     */
+    function after(n, func) {
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      n = toInteger(n);
+      return function() {
+        if (--n < 1) {
+          return func.apply(this, arguments);
+        }
+      };
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `Number` primitive or object.
-                         *
-                         * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
-                         * classified as numbers, use the `_.isFinite` method.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a number, else `false`.
-                         * @example
-                         *
-                         * _.isNumber(3);
-                         * // => true
-                         *
-                         * _.isNumber(Number.MIN_VALUE);
-                         * // => true
-                         *
-                         * _.isNumber(Infinity);
-                         * // => true
-                         *
-                         * _.isNumber('3');
-                         * // => false
-                         */
-                        function isNumber(value) {
-                            return typeof value == 'number' ||
-                                (isObjectLike(value) && baseGetTag(value) == numberTag);
-                        }
+    /**
+     * Creates a function that invokes `func`, with up to `n` arguments,
+     * ignoring any additional arguments.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Function
+     * @param {Function} func The function to cap arguments for.
+     * @param {number} [n=func.length] The arity cap.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Function} Returns the new capped function.
+     * @example
+     *
+     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
+     * // => [6, 8, 10]
+     */
+    function ary(func, n, guard) {
+      n = guard ? undefined : n;
+      n = (func && n == null) ? func.length : n;
+      return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
+    }
 
-                        /**
-                         * Checks if `value` is a plain object, that is, an object created by the
-                         * `Object` constructor or one with a `[[Prototype]]` of `null`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.8.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         * }
-                         *
-                         * _.isPlainObject(new Foo);
-                         * // => false
-                         *
-                         * _.isPlainObject([1, 2, 3]);
-                         * // => false
-                         *
-                         * _.isPlainObject({ 'x': 0, 'y': 0 });
-                         * // => true
-                         *
-                         * _.isPlainObject(Object.create(null));
-                         * // => true
-                         */
-                        function isPlainObject(value) {
-                            if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
-                                return false;
-                            }
-                            var proto = getPrototype(value);
-                            if (proto === null) {
-                                return true;
-                            }
-                            var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
-                            return typeof Ctor == 'function' && Ctor instanceof Ctor &&
-                                funcToString.call(Ctor) == objectCtorString;
-                        }
+    /**
+     * Creates a function that invokes `func`, with the `this` binding and arguments
+     * of the created function, while it's called less than `n` times. Subsequent
+     * calls to the created function return the result of the last `func` invocation.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Function
+     * @param {number} n The number of calls at which `func` is no longer invoked.
+     * @param {Function} func The function to restrict.
+     * @returns {Function} Returns the new restricted function.
+     * @example
+     *
+     * jQuery(element).on('click', _.before(5, addContactToList));
+     * // => Allows adding up to 4 contacts to the list.
+     */
+    function before(n, func) {
+      var result;
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      n = toInteger(n);
+      return function() {
+        if (--n > 0) {
+          result = func.apply(this, arguments);
+        }
+        if (n <= 1) {
+          func = undefined;
+        }
+        return result;
+      };
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `RegExp` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.1.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
-                         * @example
-                         *
-                         * _.isRegExp(/abc/);
-                         * // => true
-                         *
-                         * _.isRegExp('/abc/');
-                         * // => false
-                         */
-                        var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
-
-                        /**
-                         * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
-                         * double precision number which isn't the result of a rounded unsafe integer.
-                         *
-                         * **Note:** This method is based on
-                         * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
-                         * @example
-                         *
-                         * _.isSafeInteger(3);
-                         * // => true
-                         *
-                         * _.isSafeInteger(Number.MIN_VALUE);
-                         * // => false
-                         *
-                         * _.isSafeInteger(Infinity);
-                         * // => false
-                         *
-                         * _.isSafeInteger('3');
-                         * // => false
-                         */
-                        function isSafeInteger(value) {
-                            return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
-                        }
+    /**
+     * Creates a function that invokes `func` with the `this` binding of `thisArg`
+     * and `partials` prepended to the arguments it receives.
+     *
+     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
+     * may be used as a placeholder for partially applied arguments.
+     *
+     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
+     * property of bound functions.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to bind.
+     * @param {*} thisArg The `this` binding of `func`.
+     * @param {...*} [partials] The arguments to be partially applied.
+     * @returns {Function} Returns the new bound function.
+     * @example
+     *
+     * function greet(greeting, punctuation) {
+     *   return greeting + ' ' + this.user + punctuation;
+     * }
+     *
+     * var object = { 'user': 'fred' };
+     *
+     * var bound = _.bind(greet, object, 'hi');
+     * bound('!');
+     * // => 'hi fred!'
+     *
+     * // Bound with placeholders.
+     * var bound = _.bind(greet, object, _, '!');
+     * bound('hi');
+     * // => 'hi fred!'
+     */
+    var bind = baseRest(function(func, thisArg, partials) {
+      var bitmask = WRAP_BIND_FLAG;
+      if (partials.length) {
+        var holders = replaceHolders(partials, getHolder(bind));
+        bitmask |= WRAP_PARTIAL_FLAG;
+      }
+      return createWrap(func, bitmask, thisArg, partials, holders);
+    });
+
+    /**
+     * Creates a function that invokes the method at `object[key]` with `partials`
+     * prepended to the arguments it receives.
+     *
+     * This method differs from `_.bind` by allowing bound functions to reference
+     * methods that may be redefined or don't yet exist. See
+     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
+     * for more details.
+     *
+     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
+     * builds, may be used as a placeholder for partially applied arguments.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.10.0
+     * @category Function
+     * @param {Object} object The object to invoke the method on.
+     * @param {string} key The key of the method.
+     * @param {...*} [partials] The arguments to be partially applied.
+     * @returns {Function} Returns the new bound function.
+     * @example
+     *
+     * var object = {
+     *   'user': 'fred',
+     *   'greet': function(greeting, punctuation) {
+     *     return greeting + ' ' + this.user + punctuation;
+     *   }
+     * };
+     *
+     * var bound = _.bindKey(object, 'greet', 'hi');
+     * bound('!');
+     * // => 'hi fred!'
+     *
+     * object.greet = function(greeting, punctuation) {
+     *   return greeting + 'ya ' + this.user + punctuation;
+     * };
+     *
+     * bound('!');
+     * // => 'hiya fred!'
+     *
+     * // Bound with placeholders.
+     * var bound = _.bindKey(object, 'greet', _, '!');
+     * bound('hi');
+     * // => 'hiya fred!'
+     */
+    var bindKey = baseRest(function(object, key, partials) {
+      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
+      if (partials.length) {
+        var holders = replaceHolders(partials, getHolder(bindKey));
+        bitmask |= WRAP_PARTIAL_FLAG;
+      }
+      return createWrap(key, bitmask, object, partials, holders);
+    });
+
+    /**
+     * Creates a function that accepts arguments of `func` and either invokes
+     * `func` returning its result, if at least `arity` number of arguments have
+     * been provided, or returns a function that accepts the remaining `func`
+     * arguments, and so on. The arity of `func` may be specified if `func.length`
+     * is not sufficient.
+     *
+     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
+     * may be used as a placeholder for provided arguments.
+     *
+     * **Note:** This method doesn't set the "length" property of curried functions.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Function
+     * @param {Function} func The function to curry.
+     * @param {number} [arity=func.length] The arity of `func`.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Function} Returns the new curried function.
+     * @example
+     *
+     * var abc = function(a, b, c) {
+     *   return [a, b, c];
+     * };
+     *
+     * var curried = _.curry(abc);
+     *
+     * curried(1)(2)(3);
+     * // => [1, 2, 3]
+     *
+     * curried(1, 2)(3);
+     * // => [1, 2, 3]
+     *
+     * curried(1, 2, 3);
+     * // => [1, 2, 3]
+     *
+     * // Curried with placeholders.
+     * curried(1)(_, 3)(2);
+     * // => [1, 2, 3]
+     */
+    function curry(func, arity, guard) {
+      arity = guard ? undefined : arity;
+      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
+      result.placeholder = curry.placeholder;
+      return result;
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `Set` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a set, else `false`.
-                         * @example
-                         *
-                         * _.isSet(new Set);
-                         * // => true
-                         *
-                         * _.isSet(new WeakSet);
-                         * // => false
-                         */
-                        var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
-
-                        /**
-                         * Checks if `value` is classified as a `String` primitive or object.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a string, else `false`.
-                         * @example
-                         *
-                         * _.isString('abc');
-                         * // => true
-                         *
-                         * _.isString(1);
-                         * // => false
-                         */
-                        function isString(value) {
-                            return typeof value == 'string' ||
-                                (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
-                        }
+    /**
+     * This method is like `_.curry` except that arguments are applied to `func`
+     * in the manner of `_.partialRight` instead of `_.partial`.
+     *
+     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
+     * builds, may be used as a placeholder for provided arguments.
+     *
+     * **Note:** This method doesn't set the "length" property of curried functions.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Function
+     * @param {Function} func The function to curry.
+     * @param {number} [arity=func.length] The arity of `func`.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Function} Returns the new curried function.
+     * @example
+     *
+     * var abc = function(a, b, c) {
+     *   return [a, b, c];
+     * };
+     *
+     * var curried = _.curryRight(abc);
+     *
+     * curried(3)(2)(1);
+     * // => [1, 2, 3]
+     *
+     * curried(2, 3)(1);
+     * // => [1, 2, 3]
+     *
+     * curried(1, 2, 3);
+     * // => [1, 2, 3]
+     *
+     * // Curried with placeholders.
+     * curried(3)(1, _)(2);
+     * // => [1, 2, 3]
+     */
+    function curryRight(func, arity, guard) {
+      arity = guard ? undefined : arity;
+      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
+      result.placeholder = curryRight.placeholder;
+      return result;
+    }
 
-                        /**
-                         * Checks if `value` is classified as a `Symbol` primitive or object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
-                         * @example
-                         *
-                         * _.isSymbol(Symbol.iterator);
-                         * // => true
-                         *
-                         * _.isSymbol('abc');
-                         * // => false
-                         */
-                        function isSymbol(value) {
-                            return typeof value == 'symbol' ||
-                                (isObjectLike(value) && baseGetTag(value) == symbolTag);
-                        }
+    /**
+     * Creates a debounced function that delays invoking `func` until after `wait`
+     * milliseconds have elapsed since the last time the debounced function was
+     * invoked. The debounced function comes with a `cancel` method to cancel
+     * delayed `func` invocations and a `flush` method to immediately invoke them.
+     * Provide `options` to indicate whether `func` should be invoked on the
+     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
+     * with the last arguments provided to the debounced function. Subsequent
+     * calls to the debounced function return the result of the last `func`
+     * invocation.
+     *
+     * **Note:** If `leading` and `trailing` options are `true`, `func` is
+     * invoked on the trailing edge of the timeout only if the debounced function
+     * is invoked more than once during the `wait` timeout.
+     *
+     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
+     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
+     *
+     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
+     * for details over the differences between `_.debounce` and `_.throttle`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to debounce.
+     * @param {number} [wait=0] The number of milliseconds to delay.
+     * @param {Object} [options={}] The options object.
+     * @param {boolean} [options.leading=false]
+     *  Specify invoking on the leading edge of the timeout.
+     * @param {number} [options.maxWait]
+     *  The maximum time `func` is allowed to be delayed before it's invoked.
+     * @param {boolean} [options.trailing=true]
+     *  Specify invoking on the trailing edge of the timeout.
+     * @returns {Function} Returns the new debounced function.
+     * @example
+     *
+     * // Avoid costly calculations while the window size is in flux.
+     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
+     *
+     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
+     * jQuery(element).on('click', _.debounce(sendMail, 300, {
+     *   'leading': true,
+     *   'trailing': false
+     * }));
+     *
+     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
+     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
+     * var source = new EventSource('/stream');
+     * jQuery(source).on('message', debounced);
+     *
+     * // Cancel the trailing debounced invocation.
+     * jQuery(window).on('popstate', debounced.cancel);
+     */
+    function debounce(func, wait, options) {
+      var lastArgs,
+          lastThis,
+          maxWait,
+          result,
+          timerId,
+          lastCallTime,
+          lastInvokeTime = 0,
+          leading = false,
+          maxing = false,
+          trailing = true;
+
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      wait = toNumber(wait) || 0;
+      if (isObject(options)) {
+        leading = !!options.leading;
+        maxing = 'maxWait' in options;
+        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
+        trailing = 'trailing' in options ? !!options.trailing : trailing;
+      }
+
+      function invokeFunc(time) {
+        var args = lastArgs,
+            thisArg = lastThis;
+
+        lastArgs = lastThis = undefined;
+        lastInvokeTime = time;
+        result = func.apply(thisArg, args);
+        return result;
+      }
+
+      function leadingEdge(time) {
+        // Reset any `maxWait` timer.
+        lastInvokeTime = time;
+        // Start the timer for the trailing edge.
+        timerId = setTimeout(timerExpired, wait);
+        // Invoke the leading edge.
+        return leading ? invokeFunc(time) : result;
+      }
+
+      function remainingWait(time) {
+        var timeSinceLastCall = time - lastCallTime,
+            timeSinceLastInvoke = time - lastInvokeTime,
+            timeWaiting = wait - timeSinceLastCall;
+
+        return maxing
+          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
+          : timeWaiting;
+      }
+
+      function shouldInvoke(time) {
+        var timeSinceLastCall = time - lastCallTime,
+            timeSinceLastInvoke = time - lastInvokeTime;
+
+        // Either this is the first call, activity has stopped and we're at the
+        // trailing edge, the system time has gone backwards and we're treating
+        // it as the trailing edge, or we've hit the `maxWait` limit.
+        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
+          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
+      }
+
+      function timerExpired() {
+        var time = now();
+        if (shouldInvoke(time)) {
+          return trailingEdge(time);
+        }
+        // Restart the timer.
+        timerId = setTimeout(timerExpired, remainingWait(time));
+      }
 
-                        /**
-                         * Checks if `value` is classified as a typed array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
-                         * @example
-                         *
-                         * _.isTypedArray(new Uint8Array);
-                         * // => true
-                         *
-                         * _.isTypedArray([]);
-                         * // => false
-                         */
-                        var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
-
-                        /**
-                         * Checks if `value` is `undefined`.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
-                         * @example
-                         *
-                         * _.isUndefined(void 0);
-                         * // => true
-                         *
-                         * _.isUndefined(null);
-                         * // => false
-                         */
-                        function isUndefined(value) {
-                            return value === undefined;
-                        }
+      function trailingEdge(time) {
+        timerId = undefined;
 
-                        /**
-                         * Checks if `value` is classified as a `WeakMap` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
-                         * @example
-                         *
-                         * _.isWeakMap(new WeakMap);
-                         * // => true
-                         *
-                         * _.isWeakMap(new Map);
-                         * // => false
-                         */
-                        function isWeakMap(value) {
-                            return isObjectLike(value) && getTag(value) == weakMapTag;
-                        }
+        // Only invoke if we have `lastArgs` which means `func` has been
+        // debounced at least once.
+        if (trailing && lastArgs) {
+          return invokeFunc(time);
+        }
+        lastArgs = lastThis = undefined;
+        return result;
+      }
 
-                        /**
-                         * Checks if `value` is classified as a `WeakSet` object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.3.0
-                         * @category Lang
-                         * @param {*} value The value to check.
-                         * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
-                         * @example
-                         *
-                         * _.isWeakSet(new WeakSet);
-                         * // => true
-                         *
-                         * _.isWeakSet(new Set);
-                         * // => false
-                         */
-                        function isWeakSet(value) {
-                            return isObjectLike(value) && baseGetTag(value) == weakSetTag;
-                        }
+      function cancel() {
+        if (timerId !== undefined) {
+          clearTimeout(timerId);
+        }
+        lastInvokeTime = 0;
+        lastArgs = lastCallTime = lastThis = timerId = undefined;
+      }
+
+      function flush() {
+        return timerId === undefined ? result : trailingEdge(now());
+      }
+
+      function debounced() {
+        var time = now(),
+            isInvoking = shouldInvoke(time);
+
+        lastArgs = arguments;
+        lastThis = this;
+        lastCallTime = time;
+
+        if (isInvoking) {
+          if (timerId === undefined) {
+            return leadingEdge(lastCallTime);
+          }
+          if (maxing) {
+            // Handle invocations in a tight loop.
+            clearTimeout(timerId);
+            timerId = setTimeout(timerExpired, wait);
+            return invokeFunc(lastCallTime);
+          }
+        }
+        if (timerId === undefined) {
+          timerId = setTimeout(timerExpired, wait);
+        }
+        return result;
+      }
+      debounced.cancel = cancel;
+      debounced.flush = flush;
+      return debounced;
+    }
 
-                        /**
-                         * Checks if `value` is less than `other`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.9.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is less than `other`,
-                         *  else `false`.
-                         * @see _.gt
-                         * @example
-                         *
-                         * _.lt(1, 3);
-                         * // => true
-                         *
-                         * _.lt(3, 3);
-                         * // => false
-                         *
-                         * _.lt(3, 1);
-                         * // => false
-                         */
-                        var lt = createRelationalOperation(baseLt);
-
-                        /**
-                         * Checks if `value` is less than or equal to `other`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.9.0
-                         * @category Lang
-                         * @param {*} value The value to compare.
-                         * @param {*} other The other value to compare.
-                         * @returns {boolean} Returns `true` if `value` is less than or equal to
-                         *  `other`, else `false`.
-                         * @see _.gte
-                         * @example
-                         *
-                         * _.lte(1, 3);
-                         * // => true
-                         *
-                         * _.lte(3, 3);
-                         * // => true
-                         *
-                         * _.lte(3, 1);
-                         * // => false
-                         */
-                        var lte = createRelationalOperation(function(value, other) {
-                            return value <= other;
-                        });
+    /**
+     * Defers invoking the `func` until the current call stack has cleared. Any
+     * additional arguments are provided to `func` when it's invoked.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to defer.
+     * @param {...*} [args] The arguments to invoke `func` with.
+     * @returns {number} Returns the timer id.
+     * @example
+     *
+     * _.defer(function(text) {
+     *   console.log(text);
+     * }, 'deferred');
+     * // => Logs 'deferred' after one millisecond.
+     */
+    var defer = baseRest(function(func, args) {
+      return baseDelay(func, 1, args);
+    });
+
+    /**
+     * Invokes `func` after `wait` milliseconds. Any additional arguments are
+     * provided to `func` when it's invoked.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to delay.
+     * @param {number} wait The number of milliseconds to delay invocation.
+     * @param {...*} [args] The arguments to invoke `func` with.
+     * @returns {number} Returns the timer id.
+     * @example
+     *
+     * _.delay(function(text) {
+     *   console.log(text);
+     * }, 1000, 'later');
+     * // => Logs 'later' after one second.
+     */
+    var delay = baseRest(function(func, wait, args) {
+      return baseDelay(func, toNumber(wait) || 0, args);
+    });
+
+    /**
+     * Creates a function that invokes `func` with arguments reversed.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Function
+     * @param {Function} func The function to flip arguments for.
+     * @returns {Function} Returns the new flipped function.
+     * @example
+     *
+     * var flipped = _.flip(function() {
+     *   return _.toArray(arguments);
+     * });
+     *
+     * flipped('a', 'b', 'c', 'd');
+     * // => ['d', 'c', 'b', 'a']
+     */
+    function flip(func) {
+      return createWrap(func, WRAP_FLIP_FLAG);
+    }
 
-                        /**
-                         * Converts `value` to an array.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {Array} Returns the converted array.
-                         * @example
-                         *
-                         * _.toArray({ 'a': 1, 'b': 2 });
-                         * // => [1, 2]
-                         *
-                         * _.toArray('abc');
-                         * // => ['a', 'b', 'c']
-                         *
-                         * _.toArray(1);
-                         * // => []
-                         *
-                         * _.toArray(null);
-                         * // => []
-                         */
-                        function toArray(value) {
-                            if (!value) {
-                                return [];
-                            }
-                            if (isArrayLike(value)) {
-                                return isString(value) ? stringToArray(value) : copyArray(value);
-                            }
-                            if (symIterator && value[symIterator]) {
-                                return iteratorToArray(value[symIterator]());
-                            }
-                            var tag = getTag(value),
-                                func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
+    /**
+     * Creates a function that memoizes the result of `func`. If `resolver` is
+     * provided, it determines the cache key for storing the result based on the
+     * arguments provided to the memoized function. By default, the first argument
+     * provided to the memoized function is used as the map cache key. The `func`
+     * is invoked with the `this` binding of the memoized function.
+     *
+     * **Note:** The cache is exposed as the `cache` property on the memoized
+     * function. Its creation may be customized by replacing the `_.memoize.Cache`
+     * constructor with one whose instances implement the
+     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
+     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to have its output memoized.
+     * @param {Function} [resolver] The function to resolve the cache key.
+     * @returns {Function} Returns the new memoized function.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': 2 };
+     * var other = { 'c': 3, 'd': 4 };
+     *
+     * var values = _.memoize(_.values);
+     * values(object);
+     * // => [1, 2]
+     *
+     * values(other);
+     * // => [3, 4]
+     *
+     * object.a = 2;
+     * values(object);
+     * // => [1, 2]
+     *
+     * // Modify the result cache.
+     * values.cache.set(object, ['a', 'b']);
+     * values(object);
+     * // => ['a', 'b']
+     *
+     * // Replace `_.memoize.Cache`.
+     * _.memoize.Cache = WeakMap;
+     */
+    function memoize(func, resolver) {
+      if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      var memoized = function() {
+        var args = arguments,
+            key = resolver ? resolver.apply(this, args) : args[0],
+            cache = memoized.cache;
+
+        if (cache.has(key)) {
+          return cache.get(key);
+        }
+        var result = func.apply(this, args);
+        memoized.cache = cache.set(key, result) || cache;
+        return result;
+      };
+      memoized.cache = new (memoize.Cache || MapCache);
+      return memoized;
+    }
 
-                            return func(value);
-                        }
+    // Expose `MapCache`.
+    memoize.Cache = MapCache;
+
+    /**
+     * Creates a function that negates the result of the predicate `func`. The
+     * `func` predicate is invoked with the `this` binding and arguments of the
+     * created function.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Function
+     * @param {Function} predicate The predicate to negate.
+     * @returns {Function} Returns the new negated function.
+     * @example
+     *
+     * function isEven(n) {
+     *   return n % 2 == 0;
+     * }
+     *
+     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
+     * // => [1, 3, 5]
+     */
+    function negate(predicate) {
+      if (typeof predicate != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      return function() {
+        var args = arguments;
+        switch (args.length) {
+          case 0: return !predicate.call(this);
+          case 1: return !predicate.call(this, args[0]);
+          case 2: return !predicate.call(this, args[0], args[1]);
+          case 3: return !predicate.call(this, args[0], args[1], args[2]);
+        }
+        return !predicate.apply(this, args);
+      };
+    }
 
-                        /**
-                         * Converts `value` to a finite number.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.12.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {number} Returns the converted number.
-                         * @example
-                         *
-                         * _.toFinite(3.2);
-                         * // => 3.2
-                         *
-                         * _.toFinite(Number.MIN_VALUE);
-                         * // => 5e-324
-                         *
-                         * _.toFinite(Infinity);
-                         * // => 1.7976931348623157e+308
-                         *
-                         * _.toFinite('3.2');
-                         * // => 3.2
-                         */
-                        function toFinite(value) {
-                            if (!value) {
-                                return value === 0 ? value : 0;
-                            }
-                            value = toNumber(value);
-                            if (value === INFINITY || value === -INFINITY) {
-                                var sign = (value < 0 ? -1 : 1);
-                                return sign * MAX_INTEGER;
-                            }
-                            return value === value ? value : 0;
-                        }
+    /**
+     * Creates a function that is restricted to invoking `func` once. Repeat calls
+     * to the function return the value of the first invocation. The `func` is
+     * invoked with the `this` binding and arguments of the created function.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to restrict.
+     * @returns {Function} Returns the new restricted function.
+     * @example
+     *
+     * var initialize = _.once(createApplication);
+     * initialize();
+     * initialize();
+     * // => `createApplication` is invoked once
+     */
+    function once(func) {
+      return before(2, func);
+    }
 
-                        /**
-                         * Converts `value` to an integer.
-                         *
-                         * **Note:** This method is loosely based on
-                         * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {number} Returns the converted integer.
-                         * @example
-                         *
-                         * _.toInteger(3.2);
-                         * // => 3
-                         *
-                         * _.toInteger(Number.MIN_VALUE);
-                         * // => 0
-                         *
-                         * _.toInteger(Infinity);
-                         * // => 1.7976931348623157e+308
-                         *
-                         * _.toInteger('3.2');
-                         * // => 3
-                         */
-                        function toInteger(value) {
-                            var result = toFinite(value),
-                                remainder = result % 1;
-
-                            return result === result ? (remainder ? result - remainder : result) : 0;
-                        }
+    /**
+     * Creates a function that invokes `func` with its arguments transformed.
+     *
+     * @static
+     * @since 4.0.0
+     * @memberOf _
+     * @category Function
+     * @param {Function} func The function to wrap.
+     * @param {...(Function|Function[])} [transforms=[_.identity]]
+     *  The argument transforms.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * function doubled(n) {
+     *   return n * 2;
+     * }
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * var func = _.overArgs(function(x, y) {
+     *   return [x, y];
+     * }, [square, doubled]);
+     *
+     * func(9, 3);
+     * // => [81, 6]
+     *
+     * func(10, 5);
+     * // => [100, 10]
+     */
+    var overArgs = castRest(function(func, transforms) {
+      transforms = (transforms.length == 1 && isArray(transforms[0]))
+        ? arrayMap(transforms[0], baseUnary(getIteratee()))
+        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
+
+      var funcsLength = transforms.length;
+      return baseRest(function(args) {
+        var index = -1,
+            length = nativeMin(args.length, funcsLength);
+
+        while (++index < length) {
+          args[index] = transforms[index].call(this, args[index]);
+        }
+        return apply(func, this, args);
+      });
+    });
+
+    /**
+     * Creates a function that invokes `func` with `partials` prepended to the
+     * arguments it receives. This method is like `_.bind` except it does **not**
+     * alter the `this` binding.
+     *
+     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
+     * builds, may be used as a placeholder for partially applied arguments.
+     *
+     * **Note:** This method doesn't set the "length" property of partially
+     * applied functions.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.2.0
+     * @category Function
+     * @param {Function} func The function to partially apply arguments to.
+     * @param {...*} [partials] The arguments to be partially applied.
+     * @returns {Function} Returns the new partially applied function.
+     * @example
+     *
+     * function greet(greeting, name) {
+     *   return greeting + ' ' + name;
+     * }
+     *
+     * var sayHelloTo = _.partial(greet, 'hello');
+     * sayHelloTo('fred');
+     * // => 'hello fred'
+     *
+     * // Partially applied with placeholders.
+     * var greetFred = _.partial(greet, _, 'fred');
+     * greetFred('hi');
+     * // => 'hi fred'
+     */
+    var partial = baseRest(function(func, partials) {
+      var holders = replaceHolders(partials, getHolder(partial));
+      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
+    });
+
+    /**
+     * This method is like `_.partial` except that partially applied arguments
+     * are appended to the arguments it receives.
+     *
+     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
+     * builds, may be used as a placeholder for partially applied arguments.
+     *
+     * **Note:** This method doesn't set the "length" property of partially
+     * applied functions.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.0.0
+     * @category Function
+     * @param {Function} func The function to partially apply arguments to.
+     * @param {...*} [partials] The arguments to be partially applied.
+     * @returns {Function} Returns the new partially applied function.
+     * @example
+     *
+     * function greet(greeting, name) {
+     *   return greeting + ' ' + name;
+     * }
+     *
+     * var greetFred = _.partialRight(greet, 'fred');
+     * greetFred('hi');
+     * // => 'hi fred'
+     *
+     * // Partially applied with placeholders.
+     * var sayHelloTo = _.partialRight(greet, 'hello', _);
+     * sayHelloTo('fred');
+     * // => 'hello fred'
+     */
+    var partialRight = baseRest(function(func, partials) {
+      var holders = replaceHolders(partials, getHolder(partialRight));
+      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
+    });
+
+    /**
+     * Creates a function that invokes `func` with arguments arranged according
+     * to the specified `indexes` where the argument value at the first index is
+     * provided as the first argument, the argument value at the second index is
+     * provided as the second argument, and so on.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Function
+     * @param {Function} func The function to rearrange arguments for.
+     * @param {...(number|number[])} indexes The arranged argument indexes.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var rearged = _.rearg(function(a, b, c) {
+     *   return [a, b, c];
+     * }, [2, 0, 1]);
+     *
+     * rearged('b', 'c', 'a')
+     * // => ['a', 'b', 'c']
+     */
+    var rearg = flatRest(function(func, indexes) {
+      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
+    });
+
+    /**
+     * Creates a function that invokes `func` with the `this` binding of the
+     * created function and arguments from `start` and beyond provided as
+     * an array.
+     *
+     * **Note:** This method is based on the
+     * [rest parameter](https://mdn.io/rest_parameters).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Function
+     * @param {Function} func The function to apply a rest parameter to.
+     * @param {number} [start=func.length-1] The start position of the rest parameter.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var say = _.rest(function(what, names) {
+     *   return what + ' ' + _.initial(names).join(', ') +
+     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
+     * });
+     *
+     * say('hello', 'fred', 'barney', 'pebbles');
+     * // => 'hello fred, barney, & pebbles'
+     */
+    function rest(func, start) {
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      start = start === undefined ? start : toInteger(start);
+      return baseRest(func, start);
+    }
 
-                        /**
-                         * Converts `value` to an integer suitable for use as the length of an
-                         * array-like object.
-                         *
-                         * **Note:** This method is based on
-                         * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {number} Returns the converted integer.
-                         * @example
-                         *
-                         * _.toLength(3.2);
-                         * // => 3
-                         *
-                         * _.toLength(Number.MIN_VALUE);
-                         * // => 0
-                         *
-                         * _.toLength(Infinity);
-                         * // => 4294967295
-                         *
-                         * _.toLength('3.2');
-                         * // => 3
-                         */
-                        function toLength(value) {
-                            return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
-                        }
+    /**
+     * Creates a function that invokes `func` with the `this` binding of the
+     * create function and an array of arguments much like
+     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
+     *
+     * **Note:** This method is based on the
+     * [spread operator](https://mdn.io/spread_operator).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.2.0
+     * @category Function
+     * @param {Function} func The function to spread arguments over.
+     * @param {number} [start=0] The start position of the spread.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var say = _.spread(function(who, what) {
+     *   return who + ' says ' + what;
+     * });
+     *
+     * say(['fred', 'hello']);
+     * // => 'fred says hello'
+     *
+     * var numbers = Promise.all([
+     *   Promise.resolve(40),
+     *   Promise.resolve(36)
+     * ]);
+     *
+     * numbers.then(_.spread(function(x, y) {
+     *   return x + y;
+     * }));
+     * // => a Promise of 76
+     */
+    function spread(func, start) {
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      start = start == null ? 0 : nativeMax(toInteger(start), 0);
+      return baseRest(function(args) {
+        var array = args[start],
+            otherArgs = castSlice(args, 0, start);
+
+        if (array) {
+          arrayPush(otherArgs, array);
+        }
+        return apply(func, this, otherArgs);
+      });
+    }
 
-                        /**
-                         * Converts `value` to a number.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to process.
-                         * @returns {number} Returns the number.
-                         * @example
-                         *
-                         * _.toNumber(3.2);
-                         * // => 3.2
-                         *
-                         * _.toNumber(Number.MIN_VALUE);
-                         * // => 5e-324
-                         *
-                         * _.toNumber(Infinity);
-                         * // => Infinity
-                         *
-                         * _.toNumber('3.2');
-                         * // => 3.2
-                         */
-                        function toNumber(value) {
-                            if (typeof value == 'number') {
-                                return value;
-                            }
-                            if (isSymbol(value)) {
-                                return NAN;
-                            }
-                            if (isObject(value)) {
-                                var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
-                                value = isObject(other) ? (other + '') : other;
-                            }
-                            if (typeof value != 'string') {
-                                return value === 0 ? value : +value;
-                            }
-                            value = value.replace(reTrim, '');
-                            var isBinary = reIsBinary.test(value);
-                            return (isBinary || reIsOctal.test(value))
-                                ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
-                                : (reIsBadHex.test(value) ? NAN : +value);
-                        }
+    /**
+     * Creates a throttled function that only invokes `func` at most once per
+     * every `wait` milliseconds. The throttled function comes with a `cancel`
+     * method to cancel delayed `func` invocations and a `flush` method to
+     * immediately invoke them. Provide `options` to indicate whether `func`
+     * should be invoked on the leading and/or trailing edge of the `wait`
+     * timeout. The `func` is invoked with the last arguments provided to the
+     * throttled function. Subsequent calls to the throttled function return the
+     * result of the last `func` invocation.
+     *
+     * **Note:** If `leading` and `trailing` options are `true`, `func` is
+     * invoked on the trailing edge of the timeout only if the throttled function
+     * is invoked more than once during the `wait` timeout.
+     *
+     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
+     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
+     *
+     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
+     * for details over the differences between `_.throttle` and `_.debounce`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {Function} func The function to throttle.
+     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
+     * @param {Object} [options={}] The options object.
+     * @param {boolean} [options.leading=true]
+     *  Specify invoking on the leading edge of the timeout.
+     * @param {boolean} [options.trailing=true]
+     *  Specify invoking on the trailing edge of the timeout.
+     * @returns {Function} Returns the new throttled function.
+     * @example
+     *
+     * // Avoid excessively updating the position while scrolling.
+     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
+     *
+     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
+     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
+     * jQuery(element).on('click', throttled);
+     *
+     * // Cancel the trailing throttled invocation.
+     * jQuery(window).on('popstate', throttled.cancel);
+     */
+    function throttle(func, wait, options) {
+      var leading = true,
+          trailing = true;
+
+      if (typeof func != 'function') {
+        throw new TypeError(FUNC_ERROR_TEXT);
+      }
+      if (isObject(options)) {
+        leading = 'leading' in options ? !!options.leading : leading;
+        trailing = 'trailing' in options ? !!options.trailing : trailing;
+      }
+      return debounce(func, wait, {
+        'leading': leading,
+        'maxWait': wait,
+        'trailing': trailing
+      });
+    }
 
-                        /**
-                         * Converts `value` to a plain object flattening inherited enumerable string
-                         * keyed properties of `value` to own properties of the plain object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {Object} Returns the converted plain object.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.assign({ 'a': 1 }, new Foo);
-                         * // => { 'a': 1, 'b': 2 }
-                         *
-                         * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
-                         * // => { 'a': 1, 'b': 2, 'c': 3 }
-                         */
-                        function toPlainObject(value) {
-                            return copyObject(value, keysIn(value));
-                        }
+    /**
+     * Creates a function that accepts up to one argument, ignoring any
+     * additional arguments.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Function
+     * @param {Function} func The function to cap arguments for.
+     * @returns {Function} Returns the new capped function.
+     * @example
+     *
+     * _.map(['6', '8', '10'], _.unary(parseInt));
+     * // => [6, 8, 10]
+     */
+    function unary(func) {
+      return ary(func, 1);
+    }
 
-                        /**
-                         * Converts `value` to a safe integer. A safe integer can be compared and
-                         * represented correctly.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {number} Returns the converted integer.
-                         * @example
-                         *
-                         * _.toSafeInteger(3.2);
-                         * // => 3
-                         *
-                         * _.toSafeInteger(Number.MIN_VALUE);
-                         * // => 0
-                         *
-                         * _.toSafeInteger(Infinity);
-                         * // => 9007199254740991
-                         *
-                         * _.toSafeInteger('3.2');
-                         * // => 3
-                         */
-                        function toSafeInteger(value) {
-                            return value
-                                ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
-                                : (value === 0 ? value : 0);
-                        }
+    /**
+     * Creates a function that provides `value` to `wrapper` as its first
+     * argument. Any additional arguments provided to the function are appended
+     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
+     * binding of the created function.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Function
+     * @param {*} value The value to wrap.
+     * @param {Function} [wrapper=identity] The wrapper function.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var p = _.wrap(_.escape, function(func, text) {
+     *   return '<p>' + func(text) + '</p>';
+     * });
+     *
+     * p('fred, barney, & pebbles');
+     * // => '<p>fred, barney, &amp; pebbles</p>'
+     */
+    function wrap(value, wrapper) {
+      return partial(castFunction(wrapper), value);
+    }
 
-                        /**
-                         * Converts `value` to a string. An empty string is returned for `null`
-                         * and `undefined` values. The sign of `-0` is preserved.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Lang
-                         * @param {*} value The value to convert.
-                         * @returns {string} Returns the converted string.
-                         * @example
-                         *
-                         * _.toString(null);
-                         * // => ''
-                         *
-                         * _.toString(-0);
-                         * // => '-0'
-                         *
-                         * _.toString([1, 2, 3]);
-                         * // => '1,2,3'
-                         */
-                        function toString(value) {
-                            return value == null ? '' : baseToString(value);
-                        }
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Casts `value` as an array if it's not one.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.4.0
+     * @category Lang
+     * @param {*} value The value to inspect.
+     * @returns {Array} Returns the cast array.
+     * @example
+     *
+     * _.castArray(1);
+     * // => [1]
+     *
+     * _.castArray({ 'a': 1 });
+     * // => [{ 'a': 1 }]
+     *
+     * _.castArray('abc');
+     * // => ['abc']
+     *
+     * _.castArray(null);
+     * // => [null]
+     *
+     * _.castArray(undefined);
+     * // => [undefined]
+     *
+     * _.castArray();
+     * // => []
+     *
+     * var array = [1, 2, 3];
+     * console.log(_.castArray(array) === array);
+     * // => true
+     */
+    function castArray() {
+      if (!arguments.length) {
+        return [];
+      }
+      var value = arguments[0];
+      return isArray(value) ? value : [value];
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Assigns own enumerable string keyed properties of source objects to the
-                         * destination object. Source objects are applied from left to right.
-                         * Subsequent sources overwrite property assignments of previous sources.
-                         *
-                         * **Note:** This method mutates `object` and is loosely based on
-                         * [`Object.assign`](https://mdn.io/Object/assign).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.10.0
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} [sources] The source objects.
-                         * @returns {Object} Returns `object`.
-                         * @see _.assignIn
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         * }
-                         *
-                         * function Bar() {
-                         *   this.c = 3;
-                         * }
-                         *
-                         * Foo.prototype.b = 2;
-                         * Bar.prototype.d = 4;
-                         *
-                         * _.assign({ 'a': 0 }, new Foo, new Bar);
-                         * // => { 'a': 1, 'c': 3 }
-                         */
-                        var assign = createAssigner(function(object, source) {
-                            if (isPrototype(source) || isArrayLike(source)) {
-                                copyObject(source, keys(source), object);
-                                return;
-                            }
-                            for (var key in source) {
-                                if (hasOwnProperty.call(source, key)) {
-                                    assignValue(object, key, source[key]);
-                                }
-                            }
-                        });
+    /**
+     * Creates a shallow clone of `value`.
+     *
+     * **Note:** This method is loosely based on the
+     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
+     * and supports cloning arrays, array buffers, booleans, date objects, maps,
+     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
+     * arrays. The own enumerable properties of `arguments` objects are cloned
+     * as plain objects. An empty object is returned for uncloneable values such
+     * as error objects, functions, DOM nodes, and WeakMaps.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to clone.
+     * @returns {*} Returns the cloned value.
+     * @see _.cloneDeep
+     * @example
+     *
+     * var objects = [{ 'a': 1 }, { 'b': 2 }];
+     *
+     * var shallow = _.clone(objects);
+     * console.log(shallow[0] === objects[0]);
+     * // => true
+     */
+    function clone(value) {
+      return baseClone(value, CLONE_SYMBOLS_FLAG);
+    }
 
-                        /**
-                         * This method is like `_.assign` except that it iterates over own and
-                         * inherited source properties.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @alias extend
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} [sources] The source objects.
-                         * @returns {Object} Returns `object`.
-                         * @see _.assign
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         * }
-                         *
-                         * function Bar() {
-                         *   this.c = 3;
-                         * }
-                         *
-                         * Foo.prototype.b = 2;
-                         * Bar.prototype.d = 4;
-                         *
-                         * _.assignIn({ 'a': 0 }, new Foo, new Bar);
-                         * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
-                         */
-                        var assignIn = createAssigner(function(object, source) {
-                            copyObject(source, keysIn(source), object);
-                        });
+    /**
+     * This method is like `_.clone` except that it accepts `customizer` which
+     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
+     * cloning is handled by the method instead. The `customizer` is invoked with
+     * up to four arguments; (value [, index|key, object, stack]).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to clone.
+     * @param {Function} [customizer] The function to customize cloning.
+     * @returns {*} Returns the cloned value.
+     * @see _.cloneDeepWith
+     * @example
+     *
+     * function customizer(value) {
+     *   if (_.isElement(value)) {
+     *     return value.cloneNode(false);
+     *   }
+     * }
+     *
+     * var el = _.cloneWith(document.body, customizer);
+     *
+     * console.log(el === document.body);
+     * // => false
+     * console.log(el.nodeName);
+     * // => 'BODY'
+     * console.log(el.childNodes.length);
+     * // => 0
+     */
+    function cloneWith(value, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
+    }
 
-                        /**
-                         * This method is like `_.assignIn` except that it accepts `customizer`
-                         * which is invoked to produce the assigned values. If `customizer` returns
-                         * `undefined`, assignment is handled by the method instead. The `customizer`
-                         * is invoked with five arguments: (objValue, srcValue, key, object, source).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @alias extendWith
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} sources The source objects.
-                         * @param {Function} [customizer] The function to customize assigned values.
-                         * @returns {Object} Returns `object`.
-                         * @see _.assignWith
-                         * @example
-                         *
-                         * function customizer(objValue, srcValue) {
-                         *   return _.isUndefined(objValue) ? srcValue : objValue;
-                         * }
-                         *
-                         * var defaults = _.partialRight(_.assignInWith, customizer);
-                         *
-                         * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-                         * // => { 'a': 1, 'b': 2 }
-                         */
-                        var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
-                            copyObject(source, keysIn(source), object, customizer);
-                        });
+    /**
+     * This method is like `_.clone` except that it recursively clones `value`.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.0.0
+     * @category Lang
+     * @param {*} value The value to recursively clone.
+     * @returns {*} Returns the deep cloned value.
+     * @see _.clone
+     * @example
+     *
+     * var objects = [{ 'a': 1 }, { 'b': 2 }];
+     *
+     * var deep = _.cloneDeep(objects);
+     * console.log(deep[0] === objects[0]);
+     * // => false
+     */
+    function cloneDeep(value) {
+      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
+    }
 
-                        /**
-                         * This method is like `_.assign` except that it accepts `customizer`
-                         * which is invoked to produce the assigned values. If `customizer` returns
-                         * `undefined`, assignment is handled by the method instead. The `customizer`
-                         * is invoked with five arguments: (objValue, srcValue, key, object, source).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} sources The source objects.
-                         * @param {Function} [customizer] The function to customize assigned values.
-                         * @returns {Object} Returns `object`.
-                         * @see _.assignInWith
-                         * @example
-                         *
-                         * function customizer(objValue, srcValue) {
-                         *   return _.isUndefined(objValue) ? srcValue : objValue;
-                         * }
-                         *
-                         * var defaults = _.partialRight(_.assignWith, customizer);
-                         *
-                         * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-                         * // => { 'a': 1, 'b': 2 }
-                         */
-                        var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
-                            copyObject(source, keys(source), object, customizer);
-                        });
+    /**
+     * This method is like `_.cloneWith` except that it recursively clones `value`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to recursively clone.
+     * @param {Function} [customizer] The function to customize cloning.
+     * @returns {*} Returns the deep cloned value.
+     * @see _.cloneWith
+     * @example
+     *
+     * function customizer(value) {
+     *   if (_.isElement(value)) {
+     *     return value.cloneNode(true);
+     *   }
+     * }
+     *
+     * var el = _.cloneDeepWith(document.body, customizer);
+     *
+     * console.log(el === document.body);
+     * // => false
+     * console.log(el.nodeName);
+     * // => 'BODY'
+     * console.log(el.childNodes.length);
+     * // => 20
+     */
+    function cloneDeepWith(value, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
+    }
 
-                        /**
-                         * Creates an array of values corresponding to `paths` of `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.0.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {...(string|string[])} [paths] The property paths to pick.
-                         * @returns {Array} Returns the picked values.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
-                         *
-                         * _.at(object, ['a[0].b.c', 'a[1]']);
-                         * // => [3, 4]
-                         */
-                        var at = flatRest(baseAt);
-
-                        /**
-                         * Creates an object that inherits from the `prototype` object. If a
-                         * `properties` object is given, its own enumerable string keyed properties
-                         * are assigned to the created object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.3.0
-                         * @category Object
-                         * @param {Object} prototype The object to inherit from.
-                         * @param {Object} [properties] The properties to assign to the object.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * function Shape() {
-                         *   this.x = 0;
-                         *   this.y = 0;
-                         * }
-                         *
-                         * function Circle() {
-                         *   Shape.call(this);
-                         * }
-                         *
-                         * Circle.prototype = _.create(Shape.prototype, {
-                         *   'constructor': Circle
-                         * });
-                         *
-                         * var circle = new Circle;
-                         * circle instanceof Circle;
-                         * // => true
-                         *
-                         * circle instanceof Shape;
-                         * // => true
-                         */
-                        function create(prototype, properties) {
-                            var result = baseCreate(prototype);
-                            return properties == null ? result : baseAssign(result, properties);
-                        }
+    /**
+     * Checks if `object` conforms to `source` by invoking the predicate
+     * properties of `source` with the corresponding property values of `object`.
+     *
+     * **Note:** This method is equivalent to `_.conforms` when `source` is
+     * partially applied.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.14.0
+     * @category Lang
+     * @param {Object} object The object to inspect.
+     * @param {Object} source The object of property predicates to conform to.
+     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': 2 };
+     *
+     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
+     * // => true
+     *
+     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
+     * // => false
+     */
+    function conformsTo(object, source) {
+      return source == null || baseConformsTo(object, source, keys(source));
+    }
 
-                        /**
-                         * Assigns own and inherited enumerable string keyed properties of source
-                         * objects to the destination object for all destination properties that
-                         * resolve to `undefined`. Source objects are applied from left to right.
-                         * Once a property is set, additional values of the same property are ignored.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} [sources] The source objects.
-                         * @returns {Object} Returns `object`.
-                         * @see _.defaultsDeep
-                         * @example
-                         *
-                         * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-                         * // => { 'a': 1, 'b': 2 }
-                         */
-                        var defaults = baseRest(function(object, sources) {
-                            object = Object(object);
-
-                            var index = -1;
-                            var length = sources.length;
-                            var guard = length > 2 ? sources[2] : undefined;
-
-                            if (guard && isIterateeCall(sources[0], sources[1], guard)) {
-                                length = 1;
-                            }
+    /**
+     * Performs a
+     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+     * comparison between two values to determine if they are equivalent.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+     * @example
+     *
+     * var object = { 'a': 1 };
+     * var other = { 'a': 1 };
+     *
+     * _.eq(object, object);
+     * // => true
+     *
+     * _.eq(object, other);
+     * // => false
+     *
+     * _.eq('a', 'a');
+     * // => true
+     *
+     * _.eq('a', Object('a'));
+     * // => false
+     *
+     * _.eq(NaN, NaN);
+     * // => true
+     */
+    function eq(value, other) {
+      return value === other || (value !== value && other !== other);
+    }
 
-                            while (++index < length) {
-                                var source = sources[index];
-                                var props = keysIn(source);
-                                var propsIndex = -1;
-                                var propsLength = props.length;
-
-                                while (++propsIndex < propsLength) {
-                                    var key = props[propsIndex];
-                                    var value = object[key];
-
-                                    if (value === undefined ||
-                                        (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
-                                        object[key] = source[key];
-                                    }
-                                }
-                            }
+    /**
+     * Checks if `value` is greater than `other`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.9.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is greater than `other`,
+     *  else `false`.
+     * @see _.lt
+     * @example
+     *
+     * _.gt(3, 1);
+     * // => true
+     *
+     * _.gt(3, 3);
+     * // => false
+     *
+     * _.gt(1, 3);
+     * // => false
+     */
+    var gt = createRelationalOperation(baseGt);
+
+    /**
+     * Checks if `value` is greater than or equal to `other`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.9.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is greater than or equal to
+     *  `other`, else `false`.
+     * @see _.lte
+     * @example
+     *
+     * _.gte(3, 1);
+     * // => true
+     *
+     * _.gte(3, 3);
+     * // => true
+     *
+     * _.gte(1, 3);
+     * // => false
+     */
+    var gte = createRelationalOperation(function(value, other) {
+      return value >= other;
+    });
+
+    /**
+     * Checks if `value` is likely an `arguments` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+     *  else `false`.
+     * @example
+     *
+     * _.isArguments(function() { return arguments; }());
+     * // => true
+     *
+     * _.isArguments([1, 2, 3]);
+     * // => false
+     */
+    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
+      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
+        !propertyIsEnumerable.call(value, 'callee');
+    };
+
+    /**
+     * Checks if `value` is classified as an `Array` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
+     * @example
+     *
+     * _.isArray([1, 2, 3]);
+     * // => true
+     *
+     * _.isArray(document.body.children);
+     * // => false
+     *
+     * _.isArray('abc');
+     * // => false
+     *
+     * _.isArray(_.noop);
+     * // => false
+     */
+    var isArray = Array.isArray;
+
+    /**
+     * Checks if `value` is classified as an `ArrayBuffer` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
+     * @example
+     *
+     * _.isArrayBuffer(new ArrayBuffer(2));
+     * // => true
+     *
+     * _.isArrayBuffer(new Array(2));
+     * // => false
+     */
+    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
+
+    /**
+     * Checks if `value` is array-like. A value is considered array-like if it's
+     * not a function and has a `value.length` that's an integer greater than or
+     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+     * @example
+     *
+     * _.isArrayLike([1, 2, 3]);
+     * // => true
+     *
+     * _.isArrayLike(document.body.children);
+     * // => true
+     *
+     * _.isArrayLike('abc');
+     * // => true
+     *
+     * _.isArrayLike(_.noop);
+     * // => false
+     */
+    function isArrayLike(value) {
+      return value != null && isLength(value.length) && !isFunction(value);
+    }
 
-                            return object;
-                        });
+    /**
+     * This method is like `_.isArrayLike` except that it also checks if `value`
+     * is an object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an array-like object,
+     *  else `false`.
+     * @example
+     *
+     * _.isArrayLikeObject([1, 2, 3]);
+     * // => true
+     *
+     * _.isArrayLikeObject(document.body.children);
+     * // => true
+     *
+     * _.isArrayLikeObject('abc');
+     * // => false
+     *
+     * _.isArrayLikeObject(_.noop);
+     * // => false
+     */
+    function isArrayLikeObject(value) {
+      return isObjectLike(value) && isArrayLike(value);
+    }
 
-                        /**
-                         * This method is like `_.defaults` except that it recursively assigns
-                         * default properties.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.10.0
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} [sources] The source objects.
-                         * @returns {Object} Returns `object`.
-                         * @see _.defaults
-                         * @example
-                         *
-                         * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
-                         * // => { 'a': { 'b': 2, 'c': 3 } }
-                         */
-                        var defaultsDeep = baseRest(function(args) {
-                            args.push(undefined, customDefaultsMerge);
-                            return apply(mergeWith, undefined, args);
-                        });
+    /**
+     * Checks if `value` is classified as a boolean primitive or object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
+     * @example
+     *
+     * _.isBoolean(false);
+     * // => true
+     *
+     * _.isBoolean(null);
+     * // => false
+     */
+    function isBoolean(value) {
+      return value === true || value === false ||
+        (isObjectLike(value) && baseGetTag(value) == boolTag);
+    }
 
-                        /**
-                         * This method is like `_.find` except that it returns the key of the first
-                         * element `predicate` returns truthy for instead of the element itself.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.1.0
-                         * @category Object
-                         * @param {Object} object The object to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {string|undefined} Returns the key of the matched element,
-                         *  else `undefined`.
-                         * @example
-                         *
-                         * var users = {
-                         *   'barney':  { 'age': 36, 'active': true },
-                         *   'fred':    { 'age': 40, 'active': false },
-                         *   'pebbles': { 'age': 1,  'active': true }
-                         * };
-                         *
-                         * _.findKey(users, function(o) { return o.age < 40; });
-                         * // => 'barney' (iteration order is not guaranteed)
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.findKey(users, { 'age': 1, 'active': true });
-                         * // => 'pebbles'
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.findKey(users, ['active', false]);
-                         * // => 'fred'
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.findKey(users, 'active');
-                         * // => 'barney'
-                         */
-                        function findKey(object, predicate) {
-                            return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
-                        }
+    /**
+     * Checks if `value` is a buffer.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+     * @example
+     *
+     * _.isBuffer(new Buffer(2));
+     * // => true
+     *
+     * _.isBuffer(new Uint8Array(2));
+     * // => false
+     */
+    var isBuffer = nativeIsBuffer || stubFalse;
+
+    /**
+     * Checks if `value` is classified as a `Date` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
+     * @example
+     *
+     * _.isDate(new Date);
+     * // => true
+     *
+     * _.isDate('Mon April 23 2012');
+     * // => false
+     */
+    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
+
+    /**
+     * Checks if `value` is likely a DOM element.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
+     * @example
+     *
+     * _.isElement(document.body);
+     * // => true
+     *
+     * _.isElement('<body>');
+     * // => false
+     */
+    function isElement(value) {
+      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
+    }
 
-                        /**
-                         * This method is like `_.findKey` except that it iterates over elements of
-                         * a collection in the opposite order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Object
-                         * @param {Object} object The object to inspect.
-                         * @param {Function} [predicate=_.identity] The function invoked per iteration.
-                         * @returns {string|undefined} Returns the key of the matched element,
-                         *  else `undefined`.
-                         * @example
-                         *
-                         * var users = {
-                         *   'barney':  { 'age': 36, 'active': true },
-                         *   'fred':    { 'age': 40, 'active': false },
-                         *   'pebbles': { 'age': 1,  'active': true }
-                         * };
-                         *
-                         * _.findLastKey(users, function(o) { return o.age < 40; });
-                         * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.findLastKey(users, { 'age': 36, 'active': true });
-                         * // => 'barney'
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.findLastKey(users, ['active', false]);
-                         * // => 'fred'
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.findLastKey(users, 'active');
-                         * // => 'pebbles'
-                         */
-                        function findLastKey(object, predicate) {
-                            return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
-                        }
+    /**
+     * Checks if `value` is an empty object, collection, map, or set.
+     *
+     * Objects are considered empty if they have no own enumerable string keyed
+     * properties.
+     *
+     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
+     * jQuery-like collections are considered empty if they have a `length` of `0`.
+     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
+     * @example
+     *
+     * _.isEmpty(null);
+     * // => true
+     *
+     * _.isEmpty(true);
+     * // => true
+     *
+     * _.isEmpty(1);
+     * // => true
+     *
+     * _.isEmpty([1, 2, 3]);
+     * // => false
+     *
+     * _.isEmpty({ 'a': 1 });
+     * // => false
+     */
+    function isEmpty(value) {
+      if (value == null) {
+        return true;
+      }
+      if (isArrayLike(value) &&
+          (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
+            isBuffer(value) || isTypedArray(value) || isArguments(value))) {
+        return !value.length;
+      }
+      var tag = getTag(value);
+      if (tag == mapTag || tag == setTag) {
+        return !value.size;
+      }
+      if (isPrototype(value)) {
+        return !baseKeys(value).length;
+      }
+      for (var key in value) {
+        if (hasOwnProperty.call(value, key)) {
+          return false;
+        }
+      }
+      return true;
+    }
 
-                        /**
-                         * Iterates over own and inherited enumerable string keyed properties of an
-                         * object and invokes `iteratee` for each property. The iteratee is invoked
-                         * with three arguments: (value, key, object). Iteratee functions may exit
-                         * iteration early by explicitly returning `false`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.3.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         * @see _.forInRight
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.forIn(new Foo, function(value, key) {
-                         *   console.log(key);
-                         * });
-                         * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
-                         */
-                        function forIn(object, iteratee) {
-                            return object == null
-                                ? object
-                                : baseFor(object, getIteratee(iteratee, 3), keysIn);
-                        }
+    /**
+     * Performs a deep comparison between two values to determine if they are
+     * equivalent.
+     *
+     * **Note:** This method supports comparing arrays, array buffers, booleans,
+     * date objects, error objects, maps, numbers, `Object` objects, regexes,
+     * sets, strings, symbols, and typed arrays. `Object` objects are compared
+     * by their own, not inherited, enumerable properties. Functions and DOM
+     * nodes are compared by strict equality, i.e. `===`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+     * @example
+     *
+     * var object = { 'a': 1 };
+     * var other = { 'a': 1 };
+     *
+     * _.isEqual(object, other);
+     * // => true
+     *
+     * object === other;
+     * // => false
+     */
+    function isEqual(value, other) {
+      return baseIsEqual(value, other);
+    }
 
-                        /**
-                         * This method is like `_.forIn` except that it iterates over properties of
-                         * `object` in the opposite order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         * @see _.forIn
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.forInRight(new Foo, function(value, key) {
-                         *   console.log(key);
-                         * });
-                         * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
-                         */
-                        function forInRight(object, iteratee) {
-                            return object == null
-                                ? object
-                                : baseForRight(object, getIteratee(iteratee, 3), keysIn);
-                        }
+    /**
+     * This method is like `_.isEqual` except that it accepts `customizer` which
+     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
+     * are handled by the method instead. The `customizer` is invoked with up to
+     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @param {Function} [customizer] The function to customize comparisons.
+     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+     * @example
+     *
+     * function isGreeting(value) {
+     *   return /^h(?:i|ello)$/.test(value);
+     * }
+     *
+     * function customizer(objValue, othValue) {
+     *   if (isGreeting(objValue) && isGreeting(othValue)) {
+     *     return true;
+     *   }
+     * }
+     *
+     * var array = ['hello', 'goodbye'];
+     * var other = ['hi', 'goodbye'];
+     *
+     * _.isEqualWith(array, other, customizer);
+     * // => true
+     */
+    function isEqualWith(value, other, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      var result = customizer ? customizer(value, other) : undefined;
+      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
+    }
 
-                        /**
-                         * Iterates over own enumerable string keyed properties of an object and
-                         * invokes `iteratee` for each property. The iteratee is invoked with three
-                         * arguments: (value, key, object). Iteratee functions may exit iteration
-                         * early by explicitly returning `false`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.3.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         * @see _.forOwnRight
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.forOwn(new Foo, function(value, key) {
-                         *   console.log(key);
-                         * });
-                         * // => Logs 'a' then 'b' (iteration order is not guaranteed).
-                         */
-                        function forOwn(object, iteratee) {
-                            return object && baseForOwn(object, getIteratee(iteratee, 3));
-                        }
+    /**
+     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
+     * `SyntaxError`, `TypeError`, or `URIError` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
+     * @example
+     *
+     * _.isError(new Error);
+     * // => true
+     *
+     * _.isError(Error);
+     * // => false
+     */
+    function isError(value) {
+      if (!isObjectLike(value)) {
+        return false;
+      }
+      var tag = baseGetTag(value);
+      return tag == errorTag || tag == domExcTag ||
+        (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
+    }
 
-                        /**
-                         * This method is like `_.forOwn` except that it iterates over properties of
-                         * `object` in the opposite order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.0.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns `object`.
-                         * @see _.forOwn
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.forOwnRight(new Foo, function(value, key) {
-                         *   console.log(key);
-                         * });
-                         * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
-                         */
-                        function forOwnRight(object, iteratee) {
-                            return object && baseForOwnRight(object, getIteratee(iteratee, 3));
-                        }
+    /**
+     * Checks if `value` is a finite primitive number.
+     *
+     * **Note:** This method is based on
+     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
+     * @example
+     *
+     * _.isFinite(3);
+     * // => true
+     *
+     * _.isFinite(Number.MIN_VALUE);
+     * // => true
+     *
+     * _.isFinite(Infinity);
+     * // => false
+     *
+     * _.isFinite('3');
+     * // => false
+     */
+    function isFinite(value) {
+      return typeof value == 'number' && nativeIsFinite(value);
+    }
 
-                        /**
-                         * Creates an array of function property names from own enumerable properties
-                         * of `object`.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The object to inspect.
-                         * @returns {Array} Returns the function names.
-                         * @see _.functionsIn
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = _.constant('a');
-                         *   this.b = _.constant('b');
-                         * }
-                         *
-                         * Foo.prototype.c = _.constant('c');
-                         *
-                         * _.functions(new Foo);
-                         * // => ['a', 'b']
-                         */
-                        function functions(object) {
-                            return object == null ? [] : baseFunctions(object, keys(object));
-                        }
+    /**
+     * Checks if `value` is classified as a `Function` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
+     * @example
+     *
+     * _.isFunction(_);
+     * // => true
+     *
+     * _.isFunction(/abc/);
+     * // => false
+     */
+    function isFunction(value) {
+      if (!isObject(value)) {
+        return false;
+      }
+      // The use of `Object#toString` avoids issues with the `typeof` operator
+      // in Safari 9 which returns 'object' for typed arrays and other constructors.
+      var tag = baseGetTag(value);
+      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
+    }
 
-                        /**
-                         * Creates an array of function property names from own and inherited
-                         * enumerable properties of `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The object to inspect.
-                         * @returns {Array} Returns the function names.
-                         * @see _.functions
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = _.constant('a');
-                         *   this.b = _.constant('b');
-                         * }
-                         *
-                         * Foo.prototype.c = _.constant('c');
-                         *
-                         * _.functionsIn(new Foo);
-                         * // => ['a', 'b', 'c']
-                         */
-                        function functionsIn(object) {
-                            return object == null ? [] : baseFunctions(object, keysIn(object));
-                        }
+    /**
+     * Checks if `value` is an integer.
+     *
+     * **Note:** This method is based on
+     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
+     * @example
+     *
+     * _.isInteger(3);
+     * // => true
+     *
+     * _.isInteger(Number.MIN_VALUE);
+     * // => false
+     *
+     * _.isInteger(Infinity);
+     * // => false
+     *
+     * _.isInteger('3');
+     * // => false
+     */
+    function isInteger(value) {
+      return typeof value == 'number' && value == toInteger(value);
+    }
 
-                        /**
-                         * Gets the value at `path` of `object`. If the resolved value is
-                         * `undefined`, the `defaultValue` is returned in its place.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.7.0
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path of the property to get.
-                         * @param {*} [defaultValue] The value returned for `undefined` resolved values.
-                         * @returns {*} Returns the resolved value.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 3 } }] };
-                         *
-                         * _.get(object, 'a[0].b.c');
-                         * // => 3
-                         *
-                         * _.get(object, ['a', '0', 'b', 'c']);
-                         * // => 3
-                         *
-                         * _.get(object, 'a.b.c', 'default');
-                         * // => 'default'
-                         */
-                        function get(object, path, defaultValue) {
-                            var result = object == null ? undefined : baseGet(object, path);
-                            return result === undefined ? defaultValue : result;
-                        }
+    /**
+     * Checks if `value` is a valid array-like length.
+     *
+     * **Note:** This method is loosely based on
+     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+     * @example
+     *
+     * _.isLength(3);
+     * // => true
+     *
+     * _.isLength(Number.MIN_VALUE);
+     * // => false
+     *
+     * _.isLength(Infinity);
+     * // => false
+     *
+     * _.isLength('3');
+     * // => false
+     */
+    function isLength(value) {
+      return typeof value == 'number' &&
+        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+    }
 
-                        /**
-                         * Checks if `path` is a direct property of `object`.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path to check.
-                         * @returns {boolean} Returns `true` if `path` exists, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': { 'b': 2 } };
-                         * var other = _.create({ 'a': _.create({ 'b': 2 }) });
-                         *
-                         * _.has(object, 'a');
-                         * // => true
-                         *
-                         * _.has(object, 'a.b');
-                         * // => true
-                         *
-                         * _.has(object, ['a', 'b']);
-                         * // => true
-                         *
-                         * _.has(other, 'a');
-                         * // => false
-                         */
-                        function has(object, path) {
-                            return object != null && hasPath(object, path, baseHas);
-                        }
+    /**
+     * Checks if `value` is the
+     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
+     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+     * @example
+     *
+     * _.isObject({});
+     * // => true
+     *
+     * _.isObject([1, 2, 3]);
+     * // => true
+     *
+     * _.isObject(_.noop);
+     * // => true
+     *
+     * _.isObject(null);
+     * // => false
+     */
+    function isObject(value) {
+      var type = typeof value;
+      return value != null && (type == 'object' || type == 'function');
+    }
 
-                        /**
-                         * Checks if `path` is a direct or inherited property of `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path to check.
-                         * @returns {boolean} Returns `true` if `path` exists, else `false`.
-                         * @example
-                         *
-                         * var object = _.create({ 'a': _.create({ 'b': 2 }) });
-                         *
-                         * _.hasIn(object, 'a');
-                         * // => true
-                         *
-                         * _.hasIn(object, 'a.b');
-                         * // => true
-                         *
-                         * _.hasIn(object, ['a', 'b']);
-                         * // => true
-                         *
-                         * _.hasIn(object, 'b');
-                         * // => false
-                         */
-                        function hasIn(object, path) {
-                            return object != null && hasPath(object, path, baseHasIn);
-                        }
+    /**
+     * Checks if `value` is object-like. A value is object-like if it's not `null`
+     * and has a `typeof` result of "object".
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
+     * @example
+     *
+     * _.isObjectLike({});
+     * // => true
+     *
+     * _.isObjectLike([1, 2, 3]);
+     * // => true
+     *
+     * _.isObjectLike(_.noop);
+     * // => false
+     *
+     * _.isObjectLike(null);
+     * // => false
+     */
+    function isObjectLike(value) {
+      return value != null && typeof value == 'object';
+    }
 
-                        /**
-                         * Creates an object composed of the inverted keys and values of `object`.
-                         * If `object` contains duplicate values, subsequent values overwrite
-                         * property assignments of previous values.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.7.0
-                         * @category Object
-                         * @param {Object} object The object to invert.
-                         * @returns {Object} Returns the new inverted object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': 2, 'c': 1 };
-                         *
-                         * _.invert(object);
-                         * // => { '1': 'c', '2': 'b' }
-                         */
-                        var invert = createInverter(function(result, value, key) {
-                            if (value != null &&
-                                typeof value.toString != 'function') {
-                                value = nativeObjectToString.call(value);
-                            }
+    /**
+     * Checks if `value` is classified as a `Map` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
+     * @example
+     *
+     * _.isMap(new Map);
+     * // => true
+     *
+     * _.isMap(new WeakMap);
+     * // => false
+     */
+    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
+
+    /**
+     * Performs a partial deep comparison between `object` and `source` to
+     * determine if `object` contains equivalent property values.
+     *
+     * **Note:** This method is equivalent to `_.matches` when `source` is
+     * partially applied.
+     *
+     * Partial comparisons will match empty array and empty object `source`
+     * values against any array or object value, respectively. See `_.isEqual`
+     * for a list of supported value comparisons.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Lang
+     * @param {Object} object The object to inspect.
+     * @param {Object} source The object of property values to match.
+     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': 2 };
+     *
+     * _.isMatch(object, { 'b': 2 });
+     * // => true
+     *
+     * _.isMatch(object, { 'b': 1 });
+     * // => false
+     */
+    function isMatch(object, source) {
+      return object === source || baseIsMatch(object, source, getMatchData(source));
+    }
 
-                            result[value] = key;
-                        }, constant(identity));
-
-                        /**
-                         * This method is like `_.invert` except that the inverted object is generated
-                         * from the results of running each element of `object` thru `iteratee`. The
-                         * corresponding inverted value of each inverted key is an array of keys
-                         * responsible for generating the inverted value. The iteratee is invoked
-                         * with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.1.0
-                         * @category Object
-                         * @param {Object} object The object to invert.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {Object} Returns the new inverted object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': 2, 'c': 1 };
-                         *
-                         * _.invertBy(object);
-                         * // => { '1': ['a', 'c'], '2': ['b'] }
-                         *
-                         * _.invertBy(object, function(value) {
-                         *   return 'group' + value;
-                         * });
-                         * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
-                         */
-                        var invertBy = createInverter(function(result, value, key) {
-                            if (value != null &&
-                                typeof value.toString != 'function') {
-                                value = nativeObjectToString.call(value);
-                            }
+    /**
+     * This method is like `_.isMatch` except that it accepts `customizer` which
+     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
+     * are handled by the method instead. The `customizer` is invoked with five
+     * arguments: (objValue, srcValue, index|key, object, source).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {Object} object The object to inspect.
+     * @param {Object} source The object of property values to match.
+     * @param {Function} [customizer] The function to customize comparisons.
+     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
+     * @example
+     *
+     * function isGreeting(value) {
+     *   return /^h(?:i|ello)$/.test(value);
+     * }
+     *
+     * function customizer(objValue, srcValue) {
+     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
+     *     return true;
+     *   }
+     * }
+     *
+     * var object = { 'greeting': 'hello' };
+     * var source = { 'greeting': 'hi' };
+     *
+     * _.isMatchWith(object, source, customizer);
+     * // => true
+     */
+    function isMatchWith(object, source, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      return baseIsMatch(object, source, getMatchData(source), customizer);
+    }
 
-                            if (hasOwnProperty.call(result, value)) {
-                                result[value].push(key);
-                            } else {
-                                result[value] = [key];
-                            }
-                        }, getIteratee);
-
-                        /**
-                         * Invokes the method at `path` of `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path of the method to invoke.
-                         * @param {...*} [args] The arguments to invoke the method with.
-                         * @returns {*} Returns the result of the invoked method.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
-                         *
-                         * _.invoke(object, 'a[0].b.c.slice', 1, 3);
-                         * // => [2, 3]
-                         */
-                        var invoke = baseRest(baseInvoke);
-
-                        /**
-                         * Creates an array of the own enumerable property names of `object`.
-                         *
-                         * **Note:** Non-object values are coerced to objects. See the
-                         * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
-                         * for more details.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.keys(new Foo);
-                         * // => ['a', 'b'] (iteration order is not guaranteed)
-                         *
-                         * _.keys('hi');
-                         * // => ['0', '1']
-                         */
-                        function keys(object) {
-                            return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
-                        }
+    /**
+     * Checks if `value` is `NaN`.
+     *
+     * **Note:** This method is based on
+     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
+     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
+     * `undefined` and other non-number values.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
+     * @example
+     *
+     * _.isNaN(NaN);
+     * // => true
+     *
+     * _.isNaN(new Number(NaN));
+     * // => true
+     *
+     * isNaN(undefined);
+     * // => true
+     *
+     * _.isNaN(undefined);
+     * // => false
+     */
+    function isNaN(value) {
+      // An `NaN` primitive is the only value that is not equal to itself.
+      // Perform the `toStringTag` check first to avoid errors with some
+      // ActiveX objects in IE.
+      return isNumber(value) && value != +value;
+    }
 
-                        /**
-                         * Creates an array of the own and inherited enumerable property names of `object`.
-                         *
-                         * **Note:** Non-object values are coerced to objects.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property names.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.keysIn(new Foo);
-                         * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
-                         */
-                        function keysIn(object) {
-                            return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
-                        }
+    /**
+     * Checks if `value` is a pristine native function.
+     *
+     * **Note:** This method can't reliably detect native functions in the presence
+     * of the core-js package because core-js circumvents this kind of detection.
+     * Despite multiple requests, the core-js maintainer has made it clear: any
+     * attempt to fix the detection will be obstructed. As a result, we're left
+     * with little choice but to throw an error. Unfortunately, this also affects
+     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
+     * which rely on core-js.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a native function,
+     *  else `false`.
+     * @example
+     *
+     * _.isNative(Array.prototype.push);
+     * // => true
+     *
+     * _.isNative(_);
+     * // => false
+     */
+    function isNative(value) {
+      if (isMaskable(value)) {
+        throw new Error(CORE_ERROR_TEXT);
+      }
+      return baseIsNative(value);
+    }
 
-                        /**
-                         * The opposite of `_.mapValues`; this method creates an object with the
-                         * same values as `object` and keys generated by running each own enumerable
-                         * string keyed property of `object` thru `iteratee`. The iteratee is invoked
-                         * with three arguments: (value, key, object).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.8.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns the new mapped object.
-                         * @see _.mapValues
-                         * @example
-                         *
-                         * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
-                         *   return key + value;
-                         * });
-                         * // => { 'a1': 1, 'b2': 2 }
-                         */
-                        function mapKeys(object, iteratee) {
-                            var result = {};
-                            iteratee = getIteratee(iteratee, 3);
-
-                            baseForOwn(object, function(value, key, object) {
-                                baseAssignValue(result, iteratee(value, key, object), value);
-                            });
-                            return result;
-                        }
+    /**
+     * Checks if `value` is `null`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
+     * @example
+     *
+     * _.isNull(null);
+     * // => true
+     *
+     * _.isNull(void 0);
+     * // => false
+     */
+    function isNull(value) {
+      return value === null;
+    }
 
-                        /**
-                         * Creates an object with the same keys as `object` and values generated
-                         * by running each own enumerable string keyed property of `object` thru
-                         * `iteratee`. The iteratee is invoked with three arguments:
-                         * (value, key, object).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.4.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Object} Returns the new mapped object.
-                         * @see _.mapKeys
-                         * @example
-                         *
-                         * var users = {
-                         *   'fred':    { 'user': 'fred',    'age': 40 },
-                         *   'pebbles': { 'user': 'pebbles', 'age': 1 }
-                         * };
-                         *
-                         * _.mapValues(users, function(o) { return o.age; });
-                         * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.mapValues(users, 'age');
-                         * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-                         */
-                        function mapValues(object, iteratee) {
-                            var result = {};
-                            iteratee = getIteratee(iteratee, 3);
-
-                            baseForOwn(object, function(value, key, object) {
-                                baseAssignValue(result, key, iteratee(value, key, object));
-                            });
-                            return result;
-                        }
+    /**
+     * Checks if `value` is `null` or `undefined`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
+     * @example
+     *
+     * _.isNil(null);
+     * // => true
+     *
+     * _.isNil(void 0);
+     * // => true
+     *
+     * _.isNil(NaN);
+     * // => false
+     */
+    function isNil(value) {
+      return value == null;
+    }
 
-                        /**
-                         * This method is like `_.assign` except that it recursively merges own and
-                         * inherited enumerable string keyed properties of source objects into the
-                         * destination object. Source properties that resolve to `undefined` are
-                         * skipped if a destination value exists. Array and plain object properties
-                         * are merged recursively. Other objects and value types are overridden by
-                         * assignment. Source objects are applied from left to right. Subsequent
-                         * sources overwrite property assignments of previous sources.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.5.0
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} [sources] The source objects.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var object = {
-                         *   'a': [{ 'b': 2 }, { 'd': 4 }]
-                         * };
-                         *
-                         * var other = {
-                         *   'a': [{ 'c': 3 }, { 'e': 5 }]
-                         * };
-                         *
-                         * _.merge(object, other);
-                         * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
-                         */
-                        var merge = createAssigner(function(object, source, srcIndex) {
-                            baseMerge(object, source, srcIndex);
-                        });
+    /**
+     * Checks if `value` is classified as a `Number` primitive or object.
+     *
+     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
+     * classified as numbers, use the `_.isFinite` method.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
+     * @example
+     *
+     * _.isNumber(3);
+     * // => true
+     *
+     * _.isNumber(Number.MIN_VALUE);
+     * // => true
+     *
+     * _.isNumber(Infinity);
+     * // => true
+     *
+     * _.isNumber('3');
+     * // => false
+     */
+    function isNumber(value) {
+      return typeof value == 'number' ||
+        (isObjectLike(value) && baseGetTag(value) == numberTag);
+    }
 
-                        /**
-                         * This method is like `_.merge` except that it accepts `customizer` which
-                         * is invoked to produce the merged values of the destination and source
-                         * properties. If `customizer` returns `undefined`, merging is handled by the
-                         * method instead. The `customizer` is invoked with six arguments:
-                         * (objValue, srcValue, key, object, source, stack).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The destination object.
-                         * @param {...Object} sources The source objects.
-                         * @param {Function} customizer The function to customize assigned values.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * function customizer(objValue, srcValue) {
-                         *   if (_.isArray(objValue)) {
-                         *     return objValue.concat(srcValue);
-                         *   }
-                         * }
-                         *
-                         * var object = { 'a': [1], 'b': [2] };
-                         * var other = { 'a': [3], 'b': [4] };
-                         *
-                         * _.mergeWith(object, other, customizer);
-                         * // => { 'a': [1, 3], 'b': [2, 4] }
-                         */
-                        var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
-                            baseMerge(object, source, srcIndex, customizer);
-                        });
+    /**
+     * Checks if `value` is a plain object, that is, an object created by the
+     * `Object` constructor or one with a `[[Prototype]]` of `null`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.8.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     * }
+     *
+     * _.isPlainObject(new Foo);
+     * // => false
+     *
+     * _.isPlainObject([1, 2, 3]);
+     * // => false
+     *
+     * _.isPlainObject({ 'x': 0, 'y': 0 });
+     * // => true
+     *
+     * _.isPlainObject(Object.create(null));
+     * // => true
+     */
+    function isPlainObject(value) {
+      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
+        return false;
+      }
+      var proto = getPrototype(value);
+      if (proto === null) {
+        return true;
+      }
+      var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
+      return typeof Ctor == 'function' && Ctor instanceof Ctor &&
+        funcToString.call(Ctor) == objectCtorString;
+    }
 
-                        /**
-                         * The opposite of `_.pick`; this method creates an object composed of the
-                         * own and inherited enumerable property paths of `object` that are not omitted.
-                         *
-                         * **Note:** This method is considerably slower than `_.pick`.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The source object.
-                         * @param {...(string|string[])} [paths] The property paths to omit.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': '2', 'c': 3 };
-                         *
-                         * _.omit(object, ['a', 'c']);
-                         * // => { 'b': '2' }
-                         */
-                        var omit = flatRest(function(object, paths) {
-                            var result = {};
-                            if (object == null) {
-                                return result;
-                            }
-                            var isDeep = false;
-                            paths = arrayMap(paths, function(path) {
-                                path = castPath(path, object);
-                                isDeep || (isDeep = path.length > 1);
-                                return path;
-                            });
-                            copyObject(object, getAllKeysIn(object), result);
-                            if (isDeep) {
-                                result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
-                            }
-                            var length = paths.length;
-                            while (length--) {
-                                baseUnset(result, paths[length]);
-                            }
-                            return result;
-                        });
+    /**
+     * Checks if `value` is classified as a `RegExp` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.1.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
+     * @example
+     *
+     * _.isRegExp(/abc/);
+     * // => true
+     *
+     * _.isRegExp('/abc/');
+     * // => false
+     */
+    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
+
+    /**
+     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
+     * double precision number which isn't the result of a rounded unsafe integer.
+     *
+     * **Note:** This method is based on
+     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
+     * @example
+     *
+     * _.isSafeInteger(3);
+     * // => true
+     *
+     * _.isSafeInteger(Number.MIN_VALUE);
+     * // => false
+     *
+     * _.isSafeInteger(Infinity);
+     * // => false
+     *
+     * _.isSafeInteger('3');
+     * // => false
+     */
+    function isSafeInteger(value) {
+      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
+    }
 
-                        /**
-                         * The opposite of `_.pickBy`; this method creates an object composed of
-                         * the own and inherited enumerable string keyed properties of `object` that
-                         * `predicate` doesn't return truthy for. The predicate is invoked with two
-                         * arguments: (value, key).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The source object.
-                         * @param {Function} [predicate=_.identity] The function invoked per property.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': '2', 'c': 3 };
-                         *
-                         * _.omitBy(object, _.isNumber);
-                         * // => { 'b': '2' }
-                         */
-                        function omitBy(object, predicate) {
-                            return pickBy(object, negate(getIteratee(predicate)));
-                        }
+    /**
+     * Checks if `value` is classified as a `Set` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
+     * @example
+     *
+     * _.isSet(new Set);
+     * // => true
+     *
+     * _.isSet(new WeakSet);
+     * // => false
+     */
+    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
+
+    /**
+     * Checks if `value` is classified as a `String` primitive or object.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
+     * @example
+     *
+     * _.isString('abc');
+     * // => true
+     *
+     * _.isString(1);
+     * // => false
+     */
+    function isString(value) {
+      return typeof value == 'string' ||
+        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
+    }
 
-                        /**
-                         * Creates an object composed of the picked `object` properties.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The source object.
-                         * @param {...(string|string[])} [paths] The property paths to pick.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': '2', 'c': 3 };
-                         *
-                         * _.pick(object, ['a', 'c']);
-                         * // => { 'a': 1, 'c': 3 }
-                         */
-                        var pick = flatRest(function(object, paths) {
-                            return object == null ? {} : basePick(object, paths);
-                        });
+    /**
+     * Checks if `value` is classified as a `Symbol` primitive or object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
+     * @example
+     *
+     * _.isSymbol(Symbol.iterator);
+     * // => true
+     *
+     * _.isSymbol('abc');
+     * // => false
+     */
+    function isSymbol(value) {
+      return typeof value == 'symbol' ||
+        (isObjectLike(value) && baseGetTag(value) == symbolTag);
+    }
 
-                        /**
-                         * Creates an object composed of the `object` properties `predicate` returns
-                         * truthy for. The predicate is invoked with two arguments: (value, key).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The source object.
-                         * @param {Function} [predicate=_.identity] The function invoked per property.
-                         * @returns {Object} Returns the new object.
-                         * @example
-                         *
-                         * var object = { 'a': 1, 'b': '2', 'c': 3 };
-                         *
-                         * _.pickBy(object, _.isNumber);
-                         * // => { 'a': 1, 'c': 3 }
-                         */
-                        function pickBy(object, predicate) {
-                            if (object == null) {
-                                return {};
-                            }
-                            var props = arrayMap(getAllKeysIn(object), function(prop) {
-                                return [prop];
-                            });
-                            predicate = getIteratee(predicate);
-                            return basePickBy(object, props, function(value, path) {
-                                return predicate(value, path[0]);
-                            });
-                        }
+    /**
+     * Checks if `value` is classified as a typed array.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+     * @example
+     *
+     * _.isTypedArray(new Uint8Array);
+     * // => true
+     *
+     * _.isTypedArray([]);
+     * // => false
+     */
+    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
+
+    /**
+     * Checks if `value` is `undefined`.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
+     * @example
+     *
+     * _.isUndefined(void 0);
+     * // => true
+     *
+     * _.isUndefined(null);
+     * // => false
+     */
+    function isUndefined(value) {
+      return value === undefined;
+    }
 
-                        /**
-                         * This method is like `_.get` except that if the resolved value is a
-                         * function it's invoked with the `this` binding of its parent object and
-                         * its result is returned.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @param {Array|string} path The path of the property to resolve.
-                         * @param {*} [defaultValue] The value returned for `undefined` resolved values.
-                         * @returns {*} Returns the resolved value.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
-                         *
-                         * _.result(object, 'a[0].b.c1');
-                         * // => 3
-                         *
-                         * _.result(object, 'a[0].b.c2');
-                         * // => 4
-                         *
-                         * _.result(object, 'a[0].b.c3', 'default');
-                         * // => 'default'
-                         *
-                         * _.result(object, 'a[0].b.c3', _.constant('default'));
-                         * // => 'default'
-                         */
-                        function result(object, path, defaultValue) {
-                            path = castPath(path, object);
-
-                            var index = -1,
-                                length = path.length;
-
-                            // Ensure the loop is entered when path is empty.
-                            if (!length) {
-                                length = 1;
-                                object = undefined;
-                            }
-                            while (++index < length) {
-                                var value = object == null ? undefined : object[toKey(path[index])];
-                                if (value === undefined) {
-                                    index = length;
-                                    value = defaultValue;
-                                }
-                                object = isFunction(value) ? value.call(object) : value;
-                            }
-                            return object;
-                        }
+    /**
+     * Checks if `value` is classified as a `WeakMap` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
+     * @example
+     *
+     * _.isWeakMap(new WeakMap);
+     * // => true
+     *
+     * _.isWeakMap(new Map);
+     * // => false
+     */
+    function isWeakMap(value) {
+      return isObjectLike(value) && getTag(value) == weakMapTag;
+    }
 
-                        /**
-                         * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
-                         * it's created. Arrays are created for missing index properties while objects
-                         * are created for all other missing properties. Use `_.setWith` to customize
-                         * `path` creation.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.7.0
-                         * @category Object
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to set.
-                         * @param {*} value The value to set.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 3 } }] };
-                         *
-                         * _.set(object, 'a[0].b.c', 4);
-                         * console.log(object.a[0].b.c);
-                         * // => 4
-                         *
-                         * _.set(object, ['x', '0', 'y', 'z'], 5);
-                         * console.log(object.x[0].y.z);
-                         * // => 5
-                         */
-                        function set(object, path, value) {
-                            return object == null ? object : baseSet(object, path, value);
-                        }
+    /**
+     * Checks if `value` is classified as a `WeakSet` object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.3.0
+     * @category Lang
+     * @param {*} value The value to check.
+     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
+     * @example
+     *
+     * _.isWeakSet(new WeakSet);
+     * // => true
+     *
+     * _.isWeakSet(new Set);
+     * // => false
+     */
+    function isWeakSet(value) {
+      return isObjectLike(value) && baseGetTag(value) == weakSetTag;
+    }
 
-                        /**
-                         * This method is like `_.set` except that it accepts `customizer` which is
-                         * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
-                         * path creation is handled by the method instead. The `customizer` is invoked
-                         * with three arguments: (nsValue, key, nsObject).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to set.
-                         * @param {*} value The value to set.
-                         * @param {Function} [customizer] The function to customize assigned values.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var object = {};
-                         *
-                         * _.setWith(object, '[0][1]', 'a', Object);
-                         * // => { '0': { '1': 'a' } }
-                         */
-                        function setWith(object, path, value, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            return object == null ? object : baseSet(object, path, value, customizer);
-                        }
+    /**
+     * Checks if `value` is less than `other`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.9.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is less than `other`,
+     *  else `false`.
+     * @see _.gt
+     * @example
+     *
+     * _.lt(1, 3);
+     * // => true
+     *
+     * _.lt(3, 3);
+     * // => false
+     *
+     * _.lt(3, 1);
+     * // => false
+     */
+    var lt = createRelationalOperation(baseLt);
+
+    /**
+     * Checks if `value` is less than or equal to `other`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.9.0
+     * @category Lang
+     * @param {*} value The value to compare.
+     * @param {*} other The other value to compare.
+     * @returns {boolean} Returns `true` if `value` is less than or equal to
+     *  `other`, else `false`.
+     * @see _.gte
+     * @example
+     *
+     * _.lte(1, 3);
+     * // => true
+     *
+     * _.lte(3, 3);
+     * // => true
+     *
+     * _.lte(3, 1);
+     * // => false
+     */
+    var lte = createRelationalOperation(function(value, other) {
+      return value <= other;
+    });
+
+    /**
+     * Converts `value` to an array.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {Array} Returns the converted array.
+     * @example
+     *
+     * _.toArray({ 'a': 1, 'b': 2 });
+     * // => [1, 2]
+     *
+     * _.toArray('abc');
+     * // => ['a', 'b', 'c']
+     *
+     * _.toArray(1);
+     * // => []
+     *
+     * _.toArray(null);
+     * // => []
+     */
+    function toArray(value) {
+      if (!value) {
+        return [];
+      }
+      if (isArrayLike(value)) {
+        return isString(value) ? stringToArray(value) : copyArray(value);
+      }
+      if (symIterator && value[symIterator]) {
+        return iteratorToArray(value[symIterator]());
+      }
+      var tag = getTag(value),
+          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
+
+      return func(value);
+    }
 
-                        /**
-                         * Creates an array of own enumerable string keyed-value pairs for `object`
-                         * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
-                         * entries are returned.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @alias entries
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the key-value pairs.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.toPairs(new Foo);
-                         * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
-                         */
-                        var toPairs = createToPairs(keys);
-
-                        /**
-                         * Creates an array of own and inherited enumerable string keyed-value pairs
-                         * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
-                         * or set, its entries are returned.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @alias entriesIn
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the key-value pairs.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.toPairsIn(new Foo);
-                         * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
-                         */
-                        var toPairsIn = createToPairs(keysIn);
-
-                        /**
-                         * An alternative to `_.reduce`; this method transforms `object` to a new
-                         * `accumulator` object which is the result of running each of its own
-                         * enumerable string keyed properties thru `iteratee`, with each invocation
-                         * potentially mutating the `accumulator` object. If `accumulator` is not
-                         * provided, a new object with the same `[[Prototype]]` will be used. The
-                         * iteratee is invoked with four arguments: (accumulator, value, key, object).
-                         * Iteratee functions may exit iteration early by explicitly returning `false`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.3.0
-                         * @category Object
-                         * @param {Object} object The object to iterate over.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @param {*} [accumulator] The custom accumulator value.
-                         * @returns {*} Returns the accumulated value.
-                         * @example
-                         *
-                         * _.transform([2, 3, 4], function(result, n) {
-                         *   result.push(n *= n);
-                         *   return n % 2 == 0;
-                         * }, []);
-                         * // => [4, 9]
-                         *
-                         * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
-                         *   (result[value] || (result[value] = [])).push(key);
-                         * }, {});
-                         * // => { '1': ['a', 'c'], '2': ['b'] }
-                         */
-                        function transform(object, iteratee, accumulator) {
-                            var isArr = isArray(object),
-                                isArrLike = isArr || isBuffer(object) || isTypedArray(object);
-
-                            iteratee = getIteratee(iteratee, 4);
-                            if (accumulator == null) {
-                                var Ctor = object && object.constructor;
-                                if (isArrLike) {
-                                    accumulator = isArr ? new Ctor : [];
-                                }
-                                else if (isObject(object)) {
-                                    accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
-                                }
-                                else {
-                                    accumulator = {};
-                                }
-                            }
-                            (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
-                                return iteratee(accumulator, value, index, object);
-                            });
-                            return accumulator;
-                        }
+    /**
+     * Converts `value` to a finite number.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.12.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {number} Returns the converted number.
+     * @example
+     *
+     * _.toFinite(3.2);
+     * // => 3.2
+     *
+     * _.toFinite(Number.MIN_VALUE);
+     * // => 5e-324
+     *
+     * _.toFinite(Infinity);
+     * // => 1.7976931348623157e+308
+     *
+     * _.toFinite('3.2');
+     * // => 3.2
+     */
+    function toFinite(value) {
+      if (!value) {
+        return value === 0 ? value : 0;
+      }
+      value = toNumber(value);
+      if (value === INFINITY || value === -INFINITY) {
+        var sign = (value < 0 ? -1 : 1);
+        return sign * MAX_INTEGER;
+      }
+      return value === value ? value : 0;
+    }
 
-                        /**
-                         * Removes the property at `path` of `object`.
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Object
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to unset.
-                         * @returns {boolean} Returns `true` if the property is deleted, else `false`.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 7 } }] };
-                         * _.unset(object, 'a[0].b.c');
-                         * // => true
-                         *
-                         * console.log(object);
-                         * // => { 'a': [{ 'b': {} }] };
-                         *
-                         * _.unset(object, ['a', '0', 'b', 'c']);
-                         * // => true
-                         *
-                         * console.log(object);
-                         * // => { 'a': [{ 'b': {} }] };
-                         */
-                        function unset(object, path) {
-                            return object == null ? true : baseUnset(object, path);
-                        }
+    /**
+     * Converts `value` to an integer.
+     *
+     * **Note:** This method is loosely based on
+     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {number} Returns the converted integer.
+     * @example
+     *
+     * _.toInteger(3.2);
+     * // => 3
+     *
+     * _.toInteger(Number.MIN_VALUE);
+     * // => 0
+     *
+     * _.toInteger(Infinity);
+     * // => 1.7976931348623157e+308
+     *
+     * _.toInteger('3.2');
+     * // => 3
+     */
+    function toInteger(value) {
+      var result = toFinite(value),
+          remainder = result % 1;
+
+      return result === result ? (remainder ? result - remainder : result) : 0;
+    }
 
-                        /**
-                         * This method is like `_.set` except that accepts `updater` to produce the
-                         * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
-                         * is invoked with one argument: (value).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.6.0
-                         * @category Object
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to set.
-                         * @param {Function} updater The function to produce the updated value.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var object = { 'a': [{ 'b': { 'c': 3 } }] };
-                         *
-                         * _.update(object, 'a[0].b.c', function(n) { return n * n; });
-                         * console.log(object.a[0].b.c);
-                         * // => 9
-                         *
-                         * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
-                         * console.log(object.x[0].y.z);
-                         * // => 0
-                         */
-                        function update(object, path, updater) {
-                            return object == null ? object : baseUpdate(object, path, castFunction(updater));
-                        }
+    /**
+     * Converts `value` to an integer suitable for use as the length of an
+     * array-like object.
+     *
+     * **Note:** This method is based on
+     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {number} Returns the converted integer.
+     * @example
+     *
+     * _.toLength(3.2);
+     * // => 3
+     *
+     * _.toLength(Number.MIN_VALUE);
+     * // => 0
+     *
+     * _.toLength(Infinity);
+     * // => 4294967295
+     *
+     * _.toLength('3.2');
+     * // => 3
+     */
+    function toLength(value) {
+      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
+    }
 
-                        /**
-                         * This method is like `_.update` except that it accepts `customizer` which is
-                         * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
-                         * path creation is handled by the method instead. The `customizer` is invoked
-                         * with three arguments: (nsValue, key, nsObject).
-                         *
-                         * **Note:** This method mutates `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.6.0
-                         * @category Object
-                         * @param {Object} object The object to modify.
-                         * @param {Array|string} path The path of the property to set.
-                         * @param {Function} updater The function to produce the updated value.
-                         * @param {Function} [customizer] The function to customize assigned values.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var object = {};
-                         *
-                         * _.updateWith(object, '[0][1]', _.constant('a'), Object);
-                         * // => { '0': { '1': 'a' } }
-                         */
-                        function updateWith(object, path, updater, customizer) {
-                            customizer = typeof customizer == 'function' ? customizer : undefined;
-                            return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
-                        }
+    /**
+     * Converts `value` to a number.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to process.
+     * @returns {number} Returns the number.
+     * @example
+     *
+     * _.toNumber(3.2);
+     * // => 3.2
+     *
+     * _.toNumber(Number.MIN_VALUE);
+     * // => 5e-324
+     *
+     * _.toNumber(Infinity);
+     * // => Infinity
+     *
+     * _.toNumber('3.2');
+     * // => 3.2
+     */
+    function toNumber(value) {
+      if (typeof value == 'number') {
+        return value;
+      }
+      if (isSymbol(value)) {
+        return NAN;
+      }
+      if (isObject(value)) {
+        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
+        value = isObject(other) ? (other + '') : other;
+      }
+      if (typeof value != 'string') {
+        return value === 0 ? value : +value;
+      }
+      value = value.replace(reTrim, '');
+      var isBinary = reIsBinary.test(value);
+      return (isBinary || reIsOctal.test(value))
+        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
+        : (reIsBadHex.test(value) ? NAN : +value);
+    }
 
-                        /**
-                         * Creates an array of the own enumerable string keyed property values of `object`.
-                         *
-                         * **Note:** Non-object values are coerced to objects.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property values.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.values(new Foo);
-                         * // => [1, 2] (iteration order is not guaranteed)
-                         *
-                         * _.values('hi');
-                         * // => ['h', 'i']
-                         */
-                        function values(object) {
-                            return object == null ? [] : baseValues(object, keys(object));
-                        }
+    /**
+     * Converts `value` to a plain object flattening inherited enumerable string
+     * keyed properties of `value` to own properties of the plain object.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {Object} Returns the converted plain object.
+     * @example
+     *
+     * function Foo() {
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.assign({ 'a': 1 }, new Foo);
+     * // => { 'a': 1, 'b': 2 }
+     *
+     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
+     * // => { 'a': 1, 'b': 2, 'c': 3 }
+     */
+    function toPlainObject(value) {
+      return copyObject(value, keysIn(value));
+    }
 
-                        /**
-                         * Creates an array of the own and inherited enumerable string keyed property
-                         * values of `object`.
-                         *
-                         * **Note:** Non-object values are coerced to objects.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Object
-                         * @param {Object} object The object to query.
-                         * @returns {Array} Returns the array of property values.
-                         * @example
-                         *
-                         * function Foo() {
-                         *   this.a = 1;
-                         *   this.b = 2;
-                         * }
-                         *
-                         * Foo.prototype.c = 3;
-                         *
-                         * _.valuesIn(new Foo);
-                         * // => [1, 2, 3] (iteration order is not guaranteed)
-                         */
-                        function valuesIn(object) {
-                            return object == null ? [] : baseValues(object, keysIn(object));
-                        }
+    /**
+     * Converts `value` to a safe integer. A safe integer can be compared and
+     * represented correctly.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {number} Returns the converted integer.
+     * @example
+     *
+     * _.toSafeInteger(3.2);
+     * // => 3
+     *
+     * _.toSafeInteger(Number.MIN_VALUE);
+     * // => 0
+     *
+     * _.toSafeInteger(Infinity);
+     * // => 9007199254740991
+     *
+     * _.toSafeInteger('3.2');
+     * // => 3
+     */
+    function toSafeInteger(value) {
+      return value
+        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
+        : (value === 0 ? value : 0);
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Clamps `number` within the inclusive `lower` and `upper` bounds.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Number
-                         * @param {number} number The number to clamp.
-                         * @param {number} [lower] The lower bound.
-                         * @param {number} upper The upper bound.
-                         * @returns {number} Returns the clamped number.
-                         * @example
-                         *
-                         * _.clamp(-10, -5, 5);
-                         * // => -5
-                         *
-                         * _.clamp(10, -5, 5);
-                         * // => 5
-                         */
-                        function clamp(number, lower, upper) {
-                            if (upper === undefined) {
-                                upper = lower;
-                                lower = undefined;
-                            }
-                            if (upper !== undefined) {
-                                upper = toNumber(upper);
-                                upper = upper === upper ? upper : 0;
-                            }
-                            if (lower !== undefined) {
-                                lower = toNumber(lower);
-                                lower = lower === lower ? lower : 0;
-                            }
-                            return baseClamp(toNumber(number), lower, upper);
-                        }
+    /**
+     * Converts `value` to a string. An empty string is returned for `null`
+     * and `undefined` values. The sign of `-0` is preserved.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Lang
+     * @param {*} value The value to convert.
+     * @returns {string} Returns the converted string.
+     * @example
+     *
+     * _.toString(null);
+     * // => ''
+     *
+     * _.toString(-0);
+     * // => '-0'
+     *
+     * _.toString([1, 2, 3]);
+     * // => '1,2,3'
+     */
+    function toString(value) {
+      return value == null ? '' : baseToString(value);
+    }
 
-                        /**
-                         * Checks if `n` is between `start` and up to, but not including, `end`. If
-                         * `end` is not specified, it's set to `start` with `start` then set to `0`.
-                         * If `start` is greater than `end` the params are swapped to support
-                         * negative ranges.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.3.0
-                         * @category Number
-                         * @param {number} number The number to check.
-                         * @param {number} [start=0] The start of the range.
-                         * @param {number} end The end of the range.
-                         * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
-                         * @see _.range, _.rangeRight
-                         * @example
-                         *
-                         * _.inRange(3, 2, 4);
-                         * // => true
-                         *
-                         * _.inRange(4, 8);
-                         * // => true
-                         *
-                         * _.inRange(4, 2);
-                         * // => false
-                         *
-                         * _.inRange(2, 2);
-                         * // => false
-                         *
-                         * _.inRange(1.2, 2);
-                         * // => true
-                         *
-                         * _.inRange(5.2, 4);
-                         * // => false
-                         *
-                         * _.inRange(-3, -2, -6);
-                         * // => true
-                         */
-                        function inRange(number, start, end) {
-                            start = toFinite(start);
-                            if (end === undefined) {
-                                end = start;
-                                start = 0;
-                            } else {
-                                end = toFinite(end);
-                            }
-                            number = toNumber(number);
-                            return baseInRange(number, start, end);
-                        }
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Assigns own enumerable string keyed properties of source objects to the
+     * destination object. Source objects are applied from left to right.
+     * Subsequent sources overwrite property assignments of previous sources.
+     *
+     * **Note:** This method mutates `object` and is loosely based on
+     * [`Object.assign`](https://mdn.io/Object/assign).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.10.0
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} [sources] The source objects.
+     * @returns {Object} Returns `object`.
+     * @see _.assignIn
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     * }
+     *
+     * function Bar() {
+     *   this.c = 3;
+     * }
+     *
+     * Foo.prototype.b = 2;
+     * Bar.prototype.d = 4;
+     *
+     * _.assign({ 'a': 0 }, new Foo, new Bar);
+     * // => { 'a': 1, 'c': 3 }
+     */
+    var assign = createAssigner(function(object, source) {
+      if (isPrototype(source) || isArrayLike(source)) {
+        copyObject(source, keys(source), object);
+        return;
+      }
+      for (var key in source) {
+        if (hasOwnProperty.call(source, key)) {
+          assignValue(object, key, source[key]);
+        }
+      }
+    });
+
+    /**
+     * This method is like `_.assign` except that it iterates over own and
+     * inherited source properties.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @alias extend
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} [sources] The source objects.
+     * @returns {Object} Returns `object`.
+     * @see _.assign
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     * }
+     *
+     * function Bar() {
+     *   this.c = 3;
+     * }
+     *
+     * Foo.prototype.b = 2;
+     * Bar.prototype.d = 4;
+     *
+     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
+     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
+     */
+    var assignIn = createAssigner(function(object, source) {
+      copyObject(source, keysIn(source), object);
+    });
+
+    /**
+     * This method is like `_.assignIn` except that it accepts `customizer`
+     * which is invoked to produce the assigned values. If `customizer` returns
+     * `undefined`, assignment is handled by the method instead. The `customizer`
+     * is invoked with five arguments: (objValue, srcValue, key, object, source).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @alias extendWith
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} sources The source objects.
+     * @param {Function} [customizer] The function to customize assigned values.
+     * @returns {Object} Returns `object`.
+     * @see _.assignWith
+     * @example
+     *
+     * function customizer(objValue, srcValue) {
+     *   return _.isUndefined(objValue) ? srcValue : objValue;
+     * }
+     *
+     * var defaults = _.partialRight(_.assignInWith, customizer);
+     *
+     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+     * // => { 'a': 1, 'b': 2 }
+     */
+    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
+      copyObject(source, keysIn(source), object, customizer);
+    });
+
+    /**
+     * This method is like `_.assign` except that it accepts `customizer`
+     * which is invoked to produce the assigned values. If `customizer` returns
+     * `undefined`, assignment is handled by the method instead. The `customizer`
+     * is invoked with five arguments: (objValue, srcValue, key, object, source).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} sources The source objects.
+     * @param {Function} [customizer] The function to customize assigned values.
+     * @returns {Object} Returns `object`.
+     * @see _.assignInWith
+     * @example
+     *
+     * function customizer(objValue, srcValue) {
+     *   return _.isUndefined(objValue) ? srcValue : objValue;
+     * }
+     *
+     * var defaults = _.partialRight(_.assignWith, customizer);
+     *
+     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+     * // => { 'a': 1, 'b': 2 }
+     */
+    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
+      copyObject(source, keys(source), object, customizer);
+    });
+
+    /**
+     * Creates an array of values corresponding to `paths` of `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.0.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {...(string|string[])} [paths] The property paths to pick.
+     * @returns {Array} Returns the picked values.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
+     *
+     * _.at(object, ['a[0].b.c', 'a[1]']);
+     * // => [3, 4]
+     */
+    var at = flatRest(baseAt);
+
+    /**
+     * Creates an object that inherits from the `prototype` object. If a
+     * `properties` object is given, its own enumerable string keyed properties
+     * are assigned to the created object.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.3.0
+     * @category Object
+     * @param {Object} prototype The object to inherit from.
+     * @param {Object} [properties] The properties to assign to the object.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * function Shape() {
+     *   this.x = 0;
+     *   this.y = 0;
+     * }
+     *
+     * function Circle() {
+     *   Shape.call(this);
+     * }
+     *
+     * Circle.prototype = _.create(Shape.prototype, {
+     *   'constructor': Circle
+     * });
+     *
+     * var circle = new Circle;
+     * circle instanceof Circle;
+     * // => true
+     *
+     * circle instanceof Shape;
+     * // => true
+     */
+    function create(prototype, properties) {
+      var result = baseCreate(prototype);
+      return properties == null ? result : baseAssign(result, properties);
+    }
 
-                        /**
-                         * Produces a random number between the inclusive `lower` and `upper` bounds.
-                         * If only one argument is provided a number between `0` and the given number
-                         * is returned. If `floating` is `true`, or either `lower` or `upper` are
-                         * floats, a floating-point number is returned instead of an integer.
-                         *
-                         * **Note:** JavaScript follows the IEEE-754 standard for resolving
-                         * floating-point values which can produce unexpected results.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.7.0
-                         * @category Number
-                         * @param {number} [lower=0] The lower bound.
-                         * @param {number} [upper=1] The upper bound.
-                         * @param {boolean} [floating] Specify returning a floating-point number.
-                         * @returns {number} Returns the random number.
-                         * @example
-                         *
-                         * _.random(0, 5);
-                         * // => an integer between 0 and 5
-                         *
-                         * _.random(5);
-                         * // => also an integer between 0 and 5
-                         *
-                         * _.random(5, true);
-                         * // => a floating-point number between 0 and 5
-                         *
-                         * _.random(1.2, 5.2);
-                         * // => a floating-point number between 1.2 and 5.2
-                         */
-                        function random(lower, upper, floating) {
-                            if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
-                                upper = floating = undefined;
-                            }
-                            if (floating === undefined) {
-                                if (typeof upper == 'boolean') {
-                                    floating = upper;
-                                    upper = undefined;
-                                }
-                                else if (typeof lower == 'boolean') {
-                                    floating = lower;
-                                    lower = undefined;
-                                }
-                            }
-                            if (lower === undefined && upper === undefined) {
-                                lower = 0;
-                                upper = 1;
-                            }
-                            else {
-                                lower = toFinite(lower);
-                                if (upper === undefined) {
-                                    upper = lower;
-                                    lower = 0;
-                                } else {
-                                    upper = toFinite(upper);
-                                }
-                            }
-                            if (lower > upper) {
-                                var temp = lower;
-                                lower = upper;
-                                upper = temp;
-                            }
-                            if (floating || lower % 1 || upper % 1) {
-                                var rand = nativeRandom();
-                                return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
-                            }
-                            return baseRandom(lower, upper);
-                        }
+    /**
+     * Assigns own and inherited enumerable string keyed properties of source
+     * objects to the destination object for all destination properties that
+     * resolve to `undefined`. Source objects are applied from left to right.
+     * Once a property is set, additional values of the same property are ignored.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} [sources] The source objects.
+     * @returns {Object} Returns `object`.
+     * @see _.defaultsDeep
+     * @example
+     *
+     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
+     * // => { 'a': 1, 'b': 2 }
+     */
+    var defaults = baseRest(function(object, sources) {
+      object = Object(object);
+
+      var index = -1;
+      var length = sources.length;
+      var guard = length > 2 ? sources[2] : undefined;
+
+      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+        length = 1;
+      }
+
+      while (++index < length) {
+        var source = sources[index];
+        var props = keysIn(source);
+        var propsIndex = -1;
+        var propsLength = props.length;
+
+        while (++propsIndex < propsLength) {
+          var key = props[propsIndex];
+          var value = object[key];
+
+          if (value === undefined ||
+              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
+            object[key] = source[key];
+          }
+        }
+      }
+
+      return object;
+    });
+
+    /**
+     * This method is like `_.defaults` except that it recursively assigns
+     * default properties.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.10.0
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} [sources] The source objects.
+     * @returns {Object} Returns `object`.
+     * @see _.defaults
+     * @example
+     *
+     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
+     * // => { 'a': { 'b': 2, 'c': 3 } }
+     */
+    var defaultsDeep = baseRest(function(args) {
+      args.push(undefined, customDefaultsMerge);
+      return apply(mergeWith, undefined, args);
+    });
+
+    /**
+     * This method is like `_.find` except that it returns the key of the first
+     * element `predicate` returns truthy for instead of the element itself.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.1.0
+     * @category Object
+     * @param {Object} object The object to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {string|undefined} Returns the key of the matched element,
+     *  else `undefined`.
+     * @example
+     *
+     * var users = {
+     *   'barney':  { 'age': 36, 'active': true },
+     *   'fred':    { 'age': 40, 'active': false },
+     *   'pebbles': { 'age': 1,  'active': true }
+     * };
+     *
+     * _.findKey(users, function(o) { return o.age < 40; });
+     * // => 'barney' (iteration order is not guaranteed)
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.findKey(users, { 'age': 1, 'active': true });
+     * // => 'pebbles'
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.findKey(users, ['active', false]);
+     * // => 'fred'
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.findKey(users, 'active');
+     * // => 'barney'
+     */
+    function findKey(object, predicate) {
+      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the camel cased string.
-                         * @example
-                         *
-                         * _.camelCase('Foo Bar');
-                         * // => 'fooBar'
-                         *
-                         * _.camelCase('--foo-bar--');
-                         * // => 'fooBar'
-                         *
-                         * _.camelCase('__FOO_BAR__');
-                         * // => 'fooBar'
-                         */
-                        var camelCase = createCompounder(function(result, word, index) {
-                            word = word.toLowerCase();
-                            return result + (index ? capitalize(word) : word);
-                        });
+    /**
+     * This method is like `_.findKey` except that it iterates over elements of
+     * a collection in the opposite order.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Object
+     * @param {Object} object The object to inspect.
+     * @param {Function} [predicate=_.identity] The function invoked per iteration.
+     * @returns {string|undefined} Returns the key of the matched element,
+     *  else `undefined`.
+     * @example
+     *
+     * var users = {
+     *   'barney':  { 'age': 36, 'active': true },
+     *   'fred':    { 'age': 40, 'active': false },
+     *   'pebbles': { 'age': 1,  'active': true }
+     * };
+     *
+     * _.findLastKey(users, function(o) { return o.age < 40; });
+     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.findLastKey(users, { 'age': 36, 'active': true });
+     * // => 'barney'
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.findLastKey(users, ['active', false]);
+     * // => 'fred'
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.findLastKey(users, 'active');
+     * // => 'pebbles'
+     */
+    function findLastKey(object, predicate) {
+      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
+    }
 
-                        /**
-                         * Converts the first character of `string` to upper case and the remaining
-                         * to lower case.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to capitalize.
-                         * @returns {string} Returns the capitalized string.
-                         * @example
-                         *
-                         * _.capitalize('FRED');
-                         * // => 'Fred'
-                         */
-                        function capitalize(string) {
-                            return upperFirst(toString(string).toLowerCase());
-                        }
+    /**
+     * Iterates over own and inherited enumerable string keyed properties of an
+     * object and invokes `iteratee` for each property. The iteratee is invoked
+     * with three arguments: (value, key, object). Iteratee functions may exit
+     * iteration early by explicitly returning `false`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.3.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     * @see _.forInRight
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.forIn(new Foo, function(value, key) {
+     *   console.log(key);
+     * });
+     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
+     */
+    function forIn(object, iteratee) {
+      return object == null
+        ? object
+        : baseFor(object, getIteratee(iteratee, 3), keysIn);
+    }
 
-                        /**
-                         * Deburrs `string` by converting
-                         * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
-                         * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
-                         * letters to basic Latin letters and removing
-                         * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to deburr.
-                         * @returns {string} Returns the deburred string.
-                         * @example
-                         *
-                         * _.deburr('déjà vu');
-                         * // => 'deja vu'
-                         */
-                        function deburr(string) {
-                            string = toString(string);
-                            return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
-                        }
+    /**
+     * This method is like `_.forIn` except that it iterates over properties of
+     * `object` in the opposite order.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     * @see _.forIn
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.forInRight(new Foo, function(value, key) {
+     *   console.log(key);
+     * });
+     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
+     */
+    function forInRight(object, iteratee) {
+      return object == null
+        ? object
+        : baseForRight(object, getIteratee(iteratee, 3), keysIn);
+    }
 
-                        /**
-                         * Checks if `string` ends with the given target string.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to inspect.
-                         * @param {string} [target] The string to search for.
-                         * @param {number} [position=string.length] The position to search up to.
-                         * @returns {boolean} Returns `true` if `string` ends with `target`,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.endsWith('abc', 'c');
-                         * // => true
-                         *
-                         * _.endsWith('abc', 'b');
-                         * // => false
-                         *
-                         * _.endsWith('abc', 'b', 2);
-                         * // => true
-                         */
-                        function endsWith(string, target, position) {
-                            string = toString(string);
-                            target = baseToString(target);
-
-                            var length = string.length;
-                            position = position === undefined
-                                ? length
-                                : baseClamp(toInteger(position), 0, length);
-
-                            var end = position;
-                            position -= target.length;
-                            return position >= 0 && string.slice(position, end) == target;
-                        }
+    /**
+     * Iterates over own enumerable string keyed properties of an object and
+     * invokes `iteratee` for each property. The iteratee is invoked with three
+     * arguments: (value, key, object). Iteratee functions may exit iteration
+     * early by explicitly returning `false`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.3.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     * @see _.forOwnRight
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.forOwn(new Foo, function(value, key) {
+     *   console.log(key);
+     * });
+     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
+     */
+    function forOwn(object, iteratee) {
+      return object && baseForOwn(object, getIteratee(iteratee, 3));
+    }
 
-                        /**
-                         * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
-                         * corresponding HTML entities.
-                         *
-                         * **Note:** No other characters are escaped. To escape additional
-                         * characters use a third-party library like [_he_](https://mths.be/he).
-                         *
-                         * Though the ">" character is escaped for symmetry, characters like
-                         * ">" and "/" don't need escaping in HTML and have no special meaning
-                         * unless they're part of a tag or unquoted attribute value. See
-                         * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
-                         * (under "semi-related fun fact") for more details.
-                         *
-                         * When working with HTML you should always
-                         * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
-                         * XSS vectors.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category String
-                         * @param {string} [string=''] The string to escape.
-                         * @returns {string} Returns the escaped string.
-                         * @example
-                         *
-                         * _.escape('fred, barney, & pebbles');
-                         * // => 'fred, barney, &amp; pebbles'
-                         */
-                        function escape(string) {
-                            string = toString(string);
-                            return (string && reHasUnescapedHtml.test(string))
-                                ? string.replace(reUnescapedHtml, escapeHtmlChar)
-                                : string;
-                        }
+    /**
+     * This method is like `_.forOwn` except that it iterates over properties of
+     * `object` in the opposite order.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.0.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns `object`.
+     * @see _.forOwn
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.forOwnRight(new Foo, function(value, key) {
+     *   console.log(key);
+     * });
+     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
+     */
+    function forOwnRight(object, iteratee) {
+      return object && baseForOwnRight(object, getIteratee(iteratee, 3));
+    }
 
-                        /**
-                         * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
-                         * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to escape.
-                         * @returns {string} Returns the escaped string.
-                         * @example
-                         *
-                         * _.escapeRegExp('[lodash](https://lodash.com/)');
-                         * // => '\[lodash\]\(https://lodash\.com/\)'
-                         */
-                        function escapeRegExp(string) {
-                            string = toString(string);
-                            return (string && reHasRegExpChar.test(string))
-                                ? string.replace(reRegExpChar, '\\$&')
-                                : string;
-                        }
+    /**
+     * Creates an array of function property names from own enumerable properties
+     * of `object`.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The object to inspect.
+     * @returns {Array} Returns the function names.
+     * @see _.functionsIn
+     * @example
+     *
+     * function Foo() {
+     *   this.a = _.constant('a');
+     *   this.b = _.constant('b');
+     * }
+     *
+     * Foo.prototype.c = _.constant('c');
+     *
+     * _.functions(new Foo);
+     * // => ['a', 'b']
+     */
+    function functions(object) {
+      return object == null ? [] : baseFunctions(object, keys(object));
+    }
 
-                        /**
-                         * Converts `string` to
-                         * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the kebab cased string.
-                         * @example
-                         *
-                         * _.kebabCase('Foo Bar');
-                         * // => 'foo-bar'
-                         *
-                         * _.kebabCase('fooBar');
-                         * // => 'foo-bar'
-                         *
-                         * _.kebabCase('__FOO_BAR__');
-                         * // => 'foo-bar'
-                         */
-                        var kebabCase = createCompounder(function(result, word, index) {
-                            return result + (index ? '-' : '') + word.toLowerCase();
-                        });
+    /**
+     * Creates an array of function property names from own and inherited
+     * enumerable properties of `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The object to inspect.
+     * @returns {Array} Returns the function names.
+     * @see _.functions
+     * @example
+     *
+     * function Foo() {
+     *   this.a = _.constant('a');
+     *   this.b = _.constant('b');
+     * }
+     *
+     * Foo.prototype.c = _.constant('c');
+     *
+     * _.functionsIn(new Foo);
+     * // => ['a', 'b', 'c']
+     */
+    function functionsIn(object) {
+      return object == null ? [] : baseFunctions(object, keysIn(object));
+    }
 
-                        /**
-                         * Converts `string`, as space separated words, to lower case.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the lower cased string.
-                         * @example
-                         *
-                         * _.lowerCase('--Foo-Bar--');
-                         * // => 'foo bar'
-                         *
-                         * _.lowerCase('fooBar');
-                         * // => 'foo bar'
-                         *
-                         * _.lowerCase('__FOO_BAR__');
-                         * // => 'foo bar'
-                         */
-                        var lowerCase = createCompounder(function(result, word, index) {
-                            return result + (index ? ' ' : '') + word.toLowerCase();
-                        });
+    /**
+     * Gets the value at `path` of `object`. If the resolved value is
+     * `undefined`, the `defaultValue` is returned in its place.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.7.0
+     * @category Object
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path of the property to get.
+     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+     * @returns {*} Returns the resolved value.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+     *
+     * _.get(object, 'a[0].b.c');
+     * // => 3
+     *
+     * _.get(object, ['a', '0', 'b', 'c']);
+     * // => 3
+     *
+     * _.get(object, 'a.b.c', 'default');
+     * // => 'default'
+     */
+    function get(object, path, defaultValue) {
+      var result = object == null ? undefined : baseGet(object, path);
+      return result === undefined ? defaultValue : result;
+    }
 
-                        /**
-                         * Converts the first character of `string` to lower case.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the converted string.
-                         * @example
-                         *
-                         * _.lowerFirst('Fred');
-                         * // => 'fred'
-                         *
-                         * _.lowerFirst('FRED');
-                         * // => 'fRED'
-                         */
-                        var lowerFirst = createCaseFirst('toLowerCase');
-
-                        /**
-                         * Pads `string` on the left and right sides if it's shorter than `length`.
-                         * Padding characters are truncated if they can't be evenly divided by `length`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to pad.
-                         * @param {number} [length=0] The padding length.
-                         * @param {string} [chars=' '] The string used as padding.
-                         * @returns {string} Returns the padded string.
-                         * @example
-                         *
-                         * _.pad('abc', 8);
-                         * // => '  abc   '
-                         *
-                         * _.pad('abc', 8, '_-');
-                         * // => '_-abc_-_'
-                         *
-                         * _.pad('abc', 3);
-                         * // => 'abc'
-                         */
-                        function pad(string, length, chars) {
-                            string = toString(string);
-                            length = toInteger(length);
-
-                            var strLength = length ? stringSize(string) : 0;
-                            if (!length || strLength >= length) {
-                                return string;
-                            }
-                            var mid = (length - strLength) / 2;
-                            return (
-                                createPadding(nativeFloor(mid), chars) +
-                                string +
-                                createPadding(nativeCeil(mid), chars)
-                            );
-                        }
+    /**
+     * Checks if `path` is a direct property of `object`.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path to check.
+     * @returns {boolean} Returns `true` if `path` exists, else `false`.
+     * @example
+     *
+     * var object = { 'a': { 'b': 2 } };
+     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
+     *
+     * _.has(object, 'a');
+     * // => true
+     *
+     * _.has(object, 'a.b');
+     * // => true
+     *
+     * _.has(object, ['a', 'b']);
+     * // => true
+     *
+     * _.has(other, 'a');
+     * // => false
+     */
+    function has(object, path) {
+      return object != null && hasPath(object, path, baseHas);
+    }
 
-                        /**
-                         * Pads `string` on the right side if it's shorter than `length`. Padding
-                         * characters are truncated if they exceed `length`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to pad.
-                         * @param {number} [length=0] The padding length.
-                         * @param {string} [chars=' '] The string used as padding.
-                         * @returns {string} Returns the padded string.
-                         * @example
-                         *
-                         * _.padEnd('abc', 6);
-                         * // => 'abc   '
-                         *
-                         * _.padEnd('abc', 6, '_-');
-                         * // => 'abc_-_'
-                         *
-                         * _.padEnd('abc', 3);
-                         * // => 'abc'
-                         */
-                        function padEnd(string, length, chars) {
-                            string = toString(string);
-                            length = toInteger(length);
-
-                            var strLength = length ? stringSize(string) : 0;
-                            return (length && strLength < length)
-                                ? (string + createPadding(length - strLength, chars))
-                                : string;
-                        }
+    /**
+     * Checks if `path` is a direct or inherited property of `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path to check.
+     * @returns {boolean} Returns `true` if `path` exists, else `false`.
+     * @example
+     *
+     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
+     *
+     * _.hasIn(object, 'a');
+     * // => true
+     *
+     * _.hasIn(object, 'a.b');
+     * // => true
+     *
+     * _.hasIn(object, ['a', 'b']);
+     * // => true
+     *
+     * _.hasIn(object, 'b');
+     * // => false
+     */
+    function hasIn(object, path) {
+      return object != null && hasPath(object, path, baseHasIn);
+    }
 
-                        /**
-                         * Pads `string` on the left side if it's shorter than `length`. Padding
-                         * characters are truncated if they exceed `length`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to pad.
-                         * @param {number} [length=0] The padding length.
-                         * @param {string} [chars=' '] The string used as padding.
-                         * @returns {string} Returns the padded string.
-                         * @example
-                         *
-                         * _.padStart('abc', 6);
-                         * // => '   abc'
-                         *
-                         * _.padStart('abc', 6, '_-');
-                         * // => '_-_abc'
-                         *
-                         * _.padStart('abc', 3);
-                         * // => 'abc'
-                         */
-                        function padStart(string, length, chars) {
-                            string = toString(string);
-                            length = toInteger(length);
-
-                            var strLength = length ? stringSize(string) : 0;
-                            return (length && strLength < length)
-                                ? (createPadding(length - strLength, chars) + string)
-                                : string;
-                        }
+    /**
+     * Creates an object composed of the inverted keys and values of `object`.
+     * If `object` contains duplicate values, subsequent values overwrite
+     * property assignments of previous values.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.7.0
+     * @category Object
+     * @param {Object} object The object to invert.
+     * @returns {Object} Returns the new inverted object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': 2, 'c': 1 };
+     *
+     * _.invert(object);
+     * // => { '1': 'c', '2': 'b' }
+     */
+    var invert = createInverter(function(result, value, key) {
+      if (value != null &&
+          typeof value.toString != 'function') {
+        value = nativeObjectToString.call(value);
+      }
+
+      result[value] = key;
+    }, constant(identity));
+
+    /**
+     * This method is like `_.invert` except that the inverted object is generated
+     * from the results of running each element of `object` thru `iteratee`. The
+     * corresponding inverted value of each inverted key is an array of keys
+     * responsible for generating the inverted value. The iteratee is invoked
+     * with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.1.0
+     * @category Object
+     * @param {Object} object The object to invert.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {Object} Returns the new inverted object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': 2, 'c': 1 };
+     *
+     * _.invertBy(object);
+     * // => { '1': ['a', 'c'], '2': ['b'] }
+     *
+     * _.invertBy(object, function(value) {
+     *   return 'group' + value;
+     * });
+     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
+     */
+    var invertBy = createInverter(function(result, value, key) {
+      if (value != null &&
+          typeof value.toString != 'function') {
+        value = nativeObjectToString.call(value);
+      }
+
+      if (hasOwnProperty.call(result, value)) {
+        result[value].push(key);
+      } else {
+        result[value] = [key];
+      }
+    }, getIteratee);
+
+    /**
+     * Invokes the method at `path` of `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path of the method to invoke.
+     * @param {...*} [args] The arguments to invoke the method with.
+     * @returns {*} Returns the result of the invoked method.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
+     *
+     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
+     * // => [2, 3]
+     */
+    var invoke = baseRest(baseInvoke);
+
+    /**
+     * Creates an array of the own enumerable property names of `object`.
+     *
+     * **Note:** Non-object values are coerced to objects. See the
+     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
+     * for more details.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.keys(new Foo);
+     * // => ['a', 'b'] (iteration order is not guaranteed)
+     *
+     * _.keys('hi');
+     * // => ['0', '1']
+     */
+    function keys(object) {
+      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
+    }
 
-                        /**
-                         * Converts `string` to an integer of the specified radix. If `radix` is
-                         * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
-                         * hexadecimal, in which case a `radix` of `16` is used.
-                         *
-                         * **Note:** This method aligns with the
-                         * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 1.1.0
-                         * @category String
-                         * @param {string} string The string to convert.
-                         * @param {number} [radix=10] The radix to interpret `value` by.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {number} Returns the converted integer.
-                         * @example
-                         *
-                         * _.parseInt('08');
-                         * // => 8
-                         *
-                         * _.map(['6', '08', '10'], _.parseInt);
-                         * // => [6, 8, 10]
-                         */
-                        function parseInt(string, radix, guard) {
-                            if (guard || radix == null) {
-                                radix = 0;
-                            } else if (radix) {
-                                radix = +radix;
-                            }
-                            return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
-                        }
+    /**
+     * Creates an array of the own and inherited enumerable property names of `object`.
+     *
+     * **Note:** Non-object values are coerced to objects.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property names.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.keysIn(new Foo);
+     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
+     */
+    function keysIn(object) {
+      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
+    }
 
-                        /**
-                         * Repeats the given string `n` times.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to repeat.
-                         * @param {number} [n=1] The number of times to repeat the string.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {string} Returns the repeated string.
-                         * @example
-                         *
-                         * _.repeat('*', 3);
-                         * // => '***'
-                         *
-                         * _.repeat('abc', 2);
-                         * // => 'abcabc'
-                         *
-                         * _.repeat('abc', 0);
-                         * // => ''
-                         */
-                        function repeat(string, n, guard) {
-                            if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
-                                n = 1;
-                            } else {
-                                n = toInteger(n);
-                            }
-                            return baseRepeat(toString(string), n);
-                        }
+    /**
+     * The opposite of `_.mapValues`; this method creates an object with the
+     * same values as `object` and keys generated by running each own enumerable
+     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
+     * with three arguments: (value, key, object).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.8.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns the new mapped object.
+     * @see _.mapValues
+     * @example
+     *
+     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
+     *   return key + value;
+     * });
+     * // => { 'a1': 1, 'b2': 2 }
+     */
+    function mapKeys(object, iteratee) {
+      var result = {};
+      iteratee = getIteratee(iteratee, 3);
+
+      baseForOwn(object, function(value, key, object) {
+        baseAssignValue(result, iteratee(value, key, object), value);
+      });
+      return result;
+    }
 
-                        /**
-                         * Replaces matches for `pattern` in `string` with `replacement`.
-                         *
-                         * **Note:** This method is based on
-                         * [`String#replace`](https://mdn.io/String/replace).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to modify.
-                         * @param {RegExp|string} pattern The pattern to replace.
-                         * @param {Function|string} replacement The match replacement.
-                         * @returns {string} Returns the modified string.
-                         * @example
-                         *
-                         * _.replace('Hi Fred', 'Fred', 'Barney');
-                         * // => 'Hi Barney'
-                         */
-                        function replace() {
-                            var args = arguments,
-                                string = toString(args[0]);
-
-                            return args.length < 3 ? string : string.replace(args[1], args[2]);
-                        }
+    /**
+     * Creates an object with the same keys as `object` and values generated
+     * by running each own enumerable string keyed property of `object` thru
+     * `iteratee`. The iteratee is invoked with three arguments:
+     * (value, key, object).
+     *
+     * @static
+     * @memberOf _
+     * @since 2.4.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Object} Returns the new mapped object.
+     * @see _.mapKeys
+     * @example
+     *
+     * var users = {
+     *   'fred':    { 'user': 'fred',    'age': 40 },
+     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
+     * };
+     *
+     * _.mapValues(users, function(o) { return o.age; });
+     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.mapValues(users, 'age');
+     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
+     */
+    function mapValues(object, iteratee) {
+      var result = {};
+      iteratee = getIteratee(iteratee, 3);
+
+      baseForOwn(object, function(value, key, object) {
+        baseAssignValue(result, key, iteratee(value, key, object));
+      });
+      return result;
+    }
 
-                        /**
-                         * Converts `string` to
-                         * [snake case](https://en.wikipedia.org/wiki/Snake_case).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the snake cased string.
-                         * @example
-                         *
-                         * _.snakeCase('Foo Bar');
-                         * // => 'foo_bar'
-                         *
-                         * _.snakeCase('fooBar');
-                         * // => 'foo_bar'
-                         *
-                         * _.snakeCase('--FOO-BAR--');
-                         * // => 'foo_bar'
-                         */
-                        var snakeCase = createCompounder(function(result, word, index) {
-                            return result + (index ? '_' : '') + word.toLowerCase();
-                        });
+    /**
+     * This method is like `_.assign` except that it recursively merges own and
+     * inherited enumerable string keyed properties of source objects into the
+     * destination object. Source properties that resolve to `undefined` are
+     * skipped if a destination value exists. Array and plain object properties
+     * are merged recursively. Other objects and value types are overridden by
+     * assignment. Source objects are applied from left to right. Subsequent
+     * sources overwrite property assignments of previous sources.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.5.0
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} [sources] The source objects.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var object = {
+     *   'a': [{ 'b': 2 }, { 'd': 4 }]
+     * };
+     *
+     * var other = {
+     *   'a': [{ 'c': 3 }, { 'e': 5 }]
+     * };
+     *
+     * _.merge(object, other);
+     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
+     */
+    var merge = createAssigner(function(object, source, srcIndex) {
+      baseMerge(object, source, srcIndex);
+    });
+
+    /**
+     * This method is like `_.merge` except that it accepts `customizer` which
+     * is invoked to produce the merged values of the destination and source
+     * properties. If `customizer` returns `undefined`, merging is handled by the
+     * method instead. The `customizer` is invoked with six arguments:
+     * (objValue, srcValue, key, object, source, stack).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The destination object.
+     * @param {...Object} sources The source objects.
+     * @param {Function} customizer The function to customize assigned values.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * function customizer(objValue, srcValue) {
+     *   if (_.isArray(objValue)) {
+     *     return objValue.concat(srcValue);
+     *   }
+     * }
+     *
+     * var object = { 'a': [1], 'b': [2] };
+     * var other = { 'a': [3], 'b': [4] };
+     *
+     * _.mergeWith(object, other, customizer);
+     * // => { 'a': [1, 3], 'b': [2, 4] }
+     */
+    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
+      baseMerge(object, source, srcIndex, customizer);
+    });
+
+    /**
+     * The opposite of `_.pick`; this method creates an object composed of the
+     * own and inherited enumerable property paths of `object` that are not omitted.
+     *
+     * **Note:** This method is considerably slower than `_.pick`.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The source object.
+     * @param {...(string|string[])} [paths] The property paths to omit.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': '2', 'c': 3 };
+     *
+     * _.omit(object, ['a', 'c']);
+     * // => { 'b': '2' }
+     */
+    var omit = flatRest(function(object, paths) {
+      var result = {};
+      if (object == null) {
+        return result;
+      }
+      var isDeep = false;
+      paths = arrayMap(paths, function(path) {
+        path = castPath(path, object);
+        isDeep || (isDeep = path.length > 1);
+        return path;
+      });
+      copyObject(object, getAllKeysIn(object), result);
+      if (isDeep) {
+        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
+      }
+      var length = paths.length;
+      while (length--) {
+        baseUnset(result, paths[length]);
+      }
+      return result;
+    });
+
+    /**
+     * The opposite of `_.pickBy`; this method creates an object composed of
+     * the own and inherited enumerable string keyed properties of `object` that
+     * `predicate` doesn't return truthy for. The predicate is invoked with two
+     * arguments: (value, key).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The source object.
+     * @param {Function} [predicate=_.identity] The function invoked per property.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': '2', 'c': 3 };
+     *
+     * _.omitBy(object, _.isNumber);
+     * // => { 'b': '2' }
+     */
+    function omitBy(object, predicate) {
+      return pickBy(object, negate(getIteratee(predicate)));
+    }
 
-                        /**
-                         * Splits `string` by `separator`.
-                         *
-                         * **Note:** This method is based on
-                         * [`String#split`](https://mdn.io/String/split).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to split.
-                         * @param {RegExp|string} separator The separator pattern to split by.
-                         * @param {number} [limit] The length to truncate results to.
-                         * @returns {Array} Returns the string segments.
-                         * @example
-                         *
-                         * _.split('a-b-c', '-', 2);
-                         * // => ['a', 'b']
-                         */
-                        function split(string, separator, limit) {
-                            if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
-                                separator = limit = undefined;
-                            }
-                            limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
-                            if (!limit) {
-                                return [];
-                            }
-                            string = toString(string);
-                            if (string && (
-                                typeof separator == 'string' ||
-                                (separator != null && !isRegExp(separator))
-                            )) {
-                                separator = baseToString(separator);
-                                if (!separator && hasUnicode(string)) {
-                                    return castSlice(stringToArray(string), 0, limit);
-                                }
-                            }
-                            return string.split(separator, limit);
-                        }
+    /**
+     * Creates an object composed of the picked `object` properties.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The source object.
+     * @param {...(string|string[])} [paths] The property paths to pick.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': '2', 'c': 3 };
+     *
+     * _.pick(object, ['a', 'c']);
+     * // => { 'a': 1, 'c': 3 }
+     */
+    var pick = flatRest(function(object, paths) {
+      return object == null ? {} : basePick(object, paths);
+    });
+
+    /**
+     * Creates an object composed of the `object` properties `predicate` returns
+     * truthy for. The predicate is invoked with two arguments: (value, key).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The source object.
+     * @param {Function} [predicate=_.identity] The function invoked per property.
+     * @returns {Object} Returns the new object.
+     * @example
+     *
+     * var object = { 'a': 1, 'b': '2', 'c': 3 };
+     *
+     * _.pickBy(object, _.isNumber);
+     * // => { 'a': 1, 'c': 3 }
+     */
+    function pickBy(object, predicate) {
+      if (object == null) {
+        return {};
+      }
+      var props = arrayMap(getAllKeysIn(object), function(prop) {
+        return [prop];
+      });
+      predicate = getIteratee(predicate);
+      return basePickBy(object, props, function(value, path) {
+        return predicate(value, path[0]);
+      });
+    }
 
-                        /**
-                         * Converts `string` to
-                         * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.1.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the start cased string.
-                         * @example
-                         *
-                         * _.startCase('--foo-bar--');
-                         * // => 'Foo Bar'
-                         *
-                         * _.startCase('fooBar');
-                         * // => 'Foo Bar'
-                         *
-                         * _.startCase('__FOO_BAR__');
-                         * // => 'FOO BAR'
-                         */
-                        var startCase = createCompounder(function(result, word, index) {
-                            return result + (index ? ' ' : '') + upperFirst(word);
-                        });
+    /**
+     * This method is like `_.get` except that if the resolved value is a
+     * function it's invoked with the `this` binding of its parent object and
+     * its result is returned.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The object to query.
+     * @param {Array|string} path The path of the property to resolve.
+     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+     * @returns {*} Returns the resolved value.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
+     *
+     * _.result(object, 'a[0].b.c1');
+     * // => 3
+     *
+     * _.result(object, 'a[0].b.c2');
+     * // => 4
+     *
+     * _.result(object, 'a[0].b.c3', 'default');
+     * // => 'default'
+     *
+     * _.result(object, 'a[0].b.c3', _.constant('default'));
+     * // => 'default'
+     */
+    function result(object, path, defaultValue) {
+      path = castPath(path, object);
+
+      var index = -1,
+          length = path.length;
+
+      // Ensure the loop is entered when path is empty.
+      if (!length) {
+        length = 1;
+        object = undefined;
+      }
+      while (++index < length) {
+        var value = object == null ? undefined : object[toKey(path[index])];
+        if (value === undefined) {
+          index = length;
+          value = defaultValue;
+        }
+        object = isFunction(value) ? value.call(object) : value;
+      }
+      return object;
+    }
 
-                        /**
-                         * Checks if `string` starts with the given target string.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to inspect.
-                         * @param {string} [target] The string to search for.
-                         * @param {number} [position=0] The position to search from.
-                         * @returns {boolean} Returns `true` if `string` starts with `target`,
-                         *  else `false`.
-                         * @example
-                         *
-                         * _.startsWith('abc', 'a');
-                         * // => true
-                         *
-                         * _.startsWith('abc', 'b');
-                         * // => false
-                         *
-                         * _.startsWith('abc', 'b', 1);
-                         * // => true
-                         */
-                        function startsWith(string, target, position) {
-                            string = toString(string);
-                            position = position == null
-                                ? 0
-                                : baseClamp(toInteger(position), 0, string.length);
-
-                            target = baseToString(target);
-                            return string.slice(position, position + target.length) == target;
-                        }
+    /**
+     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
+     * it's created. Arrays are created for missing index properties while objects
+     * are created for all other missing properties. Use `_.setWith` to customize
+     * `path` creation.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.7.0
+     * @category Object
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to set.
+     * @param {*} value The value to set.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+     *
+     * _.set(object, 'a[0].b.c', 4);
+     * console.log(object.a[0].b.c);
+     * // => 4
+     *
+     * _.set(object, ['x', '0', 'y', 'z'], 5);
+     * console.log(object.x[0].y.z);
+     * // => 5
+     */
+    function set(object, path, value) {
+      return object == null ? object : baseSet(object, path, value);
+    }
 
-                        /**
-                         * Creates a compiled template function that can interpolate data properties
-                         * in "interpolate" delimiters, HTML-escape interpolated data properties in
-                         * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
-                         * properties may be accessed as free variables in the template. If a setting
-                         * object is given, it takes precedence over `_.templateSettings` values.
-                         *
-                         * **Note:** In the development build `_.template` utilizes
-                         * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
-                         * for easier debugging.
-                         *
-                         * For more information on precompiling templates see
-                         * [lodash's custom builds documentation](https://lodash.com/custom-builds).
-                         *
-                         * For more information on Chrome extension sandboxes see
-                         * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category String
-                         * @param {string} [string=''] The template string.
-                         * @param {Object} [options={}] The options object.
-                         * @param {RegExp} [options.escape=_.templateSettings.escape]
-                         *  The HTML "escape" delimiter.
-                         * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
-                         *  The "evaluate" delimiter.
-                         * @param {Object} [options.imports=_.templateSettings.imports]
-                         *  An object to import into the template as free variables.
-                         * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
-                         *  The "interpolate" delimiter.
-                         * @param {string} [options.sourceURL='lodash.templateSources[n]']
-                         *  The sourceURL of the compiled template.
-                         * @param {string} [options.variable='obj']
-                         *  The data object variable name.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Function} Returns the compiled template function.
-                         * @example
-                         *
-                         * // Use the "interpolate" delimiter to create a compiled template.
-                         * var compiled = _.template('hello <%= user %>!');
-                         * compiled({ 'user': 'fred' });
-                         * // => 'hello fred!'
-                         *
-                         * // Use the HTML "escape" delimiter to escape data property values.
-                         * var compiled = _.template('<b><%- value %></b>');
-                         * compiled({ 'value': '<script>' });
-                         * // => '<b>&lt;script&gt;</b>'
-                         *
-                         * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
-                         * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
-                         * compiled({ 'users': ['fred', 'barney'] });
-                         * // => '<li>fred</li><li>barney</li>'
-                         *
-                         * // Use the internal `print` function in "evaluate" delimiters.
-                         * var compiled = _.template('<% print("hello " + user); %>!');
-                         * compiled({ 'user': 'barney' });
-                         * // => 'hello barney!'
-                         *
-                         * // Use the ES template literal delimiter as an "interpolate" delimiter.
-                         * // Disable support by replacing the "interpolate" delimiter.
-                         * var compiled = _.template('hello ${ user }!');
-                         * compiled({ 'user': 'pebbles' });
-                         * // => 'hello pebbles!'
-                         *
-                         * // Use backslashes to treat delimiters as plain text.
-                         * var compiled = _.template('<%= "\\<%- value %\\>" %>');
-                         * compiled({ 'value': 'ignored' });
-                         * // => '<%- value %>'
-                         *
-                         * // Use the `imports` option to import `jQuery` as `jq`.
-                         * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
-                         * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
-                         * compiled({ 'users': ['fred', 'barney'] });
-                         * // => '<li>fred</li><li>barney</li>'
-                         *
-                         * // Use the `sourceURL` option to specify a custom sourceURL for the template.
-                         * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
-                         * compiled(data);
-                         * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
-                         *
-                         * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
-                         * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
-                         * compiled.source;
-                         * // => function(data) {
-                         * //   var __t, __p = '';
-                         * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
-                         * //   return __p;
-                         * // }
-                         *
-                         * // Use custom template delimiters.
-                         * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
-                         * var compiled = _.template('hello {{ user }}!');
-                         * compiled({ 'user': 'mustache' });
-                         * // => 'hello mustache!'
-                         *
-                         * // Use the `source` property to inline compiled templates for meaningful
-                         * // line numbers in error messages and stack traces.
-                         * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
-                         *   var JST = {\
-                         *     "main": ' + _.template(mainText).source + '\
-                         *   };\
-                         * ');
-                         */
-                        function template(string, options, guard) {
-                            // Based on John Resig's `tmpl` implementation
-                            // (http://ejohn.org/blog/javascript-micro-templating/)
-                            // and Laura Doktorova's doT.js (https://github.com/olado/doT).
-                            var settings = lodash.templateSettings;
-
-                            if (guard && isIterateeCall(string, options, guard)) {
-                                options = undefined;
-                            }
-                            string = toString(string);
-                            options = assignInWith({}, options, settings, customDefaultsAssignIn);
-
-                            var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
-                                importsKeys = keys(imports),
-                                importsValues = baseValues(imports, importsKeys);
-
-                            var isEscaping,
-                                isEvaluating,
-                                index = 0,
-                                interpolate = options.interpolate || reNoMatch,
-                                source = "__p += '";
-
-                            // Compile the regexp to match each delimiter.
-                            var reDelimiters = RegExp(
-                                (options.escape || reNoMatch).source + '|' +
-                                interpolate.source + '|' +
-                                (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
-                                (options.evaluate || reNoMatch).source + '|$'
-                                , 'g');
-
-                            // Use a sourceURL for easier debugging.
-                            // The sourceURL gets injected into the source that's eval-ed, so be careful
-                            // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
-                            // and escape the comment, thus injecting code that gets evaled.
-                            var sourceURL = '//# sourceURL=' +
-                                (hasOwnProperty.call(options, 'sourceURL')
-                                        ? (options.sourceURL + '').replace(/\s/g, ' ')
-                                        : ('lodash.templateSources[' + (++templateCounter) + ']')
-                                ) + '\n';
-
-                            string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
-                                interpolateValue || (interpolateValue = esTemplateValue);
-
-                                // Escape characters that can't be included in string literals.
-                                source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
-
-                                // Replace delimiters with snippets.
-                                if (escapeValue) {
-                                    isEscaping = true;
-                                    source += "' +\n__e(" + escapeValue + ") +\n'";
-                                }
-                                if (evaluateValue) {
-                                    isEvaluating = true;
-                                    source += "';\n" + evaluateValue + ";\n__p += '";
-                                }
-                                if (interpolateValue) {
-                                    source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
-                                }
-                                index = offset + match.length;
-
-                                // The JS engine embedded in Adobe products needs `match` returned in
-                                // order to produce the correct `offset` value.
-                                return match;
-                            });
-
-                            source += "';\n";
-
-                            // If `variable` is not specified wrap a with-statement around the generated
-                            // code to add the data object to the top of the scope chain.
-                            var variable = hasOwnProperty.call(options, 'variable') && options.variable;
-                            if (!variable) {
-                                source = 'with (obj) {\n' + source + '\n}\n';
-                            }
-                            // Cleanup code by stripping empty strings.
-                            source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
-                                .replace(reEmptyStringMiddle, '$1')
-                                .replace(reEmptyStringTrailing, '$1;');
-
-                            // Frame code as the function body.
-                            source = 'function(' + (variable || 'obj') + ') {\n' +
-                                (variable
-                                        ? ''
-                                        : 'obj || (obj = {});\n'
-                                ) +
-                                "var __t, __p = ''" +
-                                (isEscaping
-                                        ? ', __e = _.escape'
-                                        : ''
-                                ) +
-                                (isEvaluating
-                                        ? ', __j = Array.prototype.join;\n' +
-                                        "function print() { __p += __j.call(arguments, '') }\n"
-                                        : ';\n'
-                                ) +
-                                source +
-                                'return __p\n}';
-
-                            var result = attempt(function() {
-                                return Function(importsKeys, sourceURL + 'return ' + source)
-                                    .apply(undefined, importsValues);
-                            });
-
-                            // Provide the compiled function's source by its `toString` method or
-                            // the `source` property as a convenience for inlining compiled templates.
-                            result.source = source;
-                            if (isError(result)) {
-                                throw result;
-                            }
-                            return result;
-                        }
+    /**
+     * This method is like `_.set` except that it accepts `customizer` which is
+     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
+     * path creation is handled by the method instead. The `customizer` is invoked
+     * with three arguments: (nsValue, key, nsObject).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to set.
+     * @param {*} value The value to set.
+     * @param {Function} [customizer] The function to customize assigned values.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var object = {};
+     *
+     * _.setWith(object, '[0][1]', 'a', Object);
+     * // => { '0': { '1': 'a' } }
+     */
+    function setWith(object, path, value, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      return object == null ? object : baseSet(object, path, value, customizer);
+    }
 
-                        /**
-                         * Converts `string`, as a whole, to lower case just like
-                         * [String#toLowerCase](https://mdn.io/toLowerCase).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the lower cased string.
-                         * @example
-                         *
-                         * _.toLower('--Foo-Bar--');
-                         * // => '--foo-bar--'
-                         *
-                         * _.toLower('fooBar');
-                         * // => 'foobar'
-                         *
-                         * _.toLower('__FOO_BAR__');
-                         * // => '__foo_bar__'
-                         */
-                        function toLower(value) {
-                            return toString(value).toLowerCase();
-                        }
+    /**
+     * Creates an array of own enumerable string keyed-value pairs for `object`
+     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
+     * entries are returned.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @alias entries
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the key-value pairs.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.toPairs(new Foo);
+     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
+     */
+    var toPairs = createToPairs(keys);
+
+    /**
+     * Creates an array of own and inherited enumerable string keyed-value pairs
+     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
+     * or set, its entries are returned.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @alias entriesIn
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the key-value pairs.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.toPairsIn(new Foo);
+     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
+     */
+    var toPairsIn = createToPairs(keysIn);
+
+    /**
+     * An alternative to `_.reduce`; this method transforms `object` to a new
+     * `accumulator` object which is the result of running each of its own
+     * enumerable string keyed properties thru `iteratee`, with each invocation
+     * potentially mutating the `accumulator` object. If `accumulator` is not
+     * provided, a new object with the same `[[Prototype]]` will be used. The
+     * iteratee is invoked with four arguments: (accumulator, value, key, object).
+     * Iteratee functions may exit iteration early by explicitly returning `false`.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.3.0
+     * @category Object
+     * @param {Object} object The object to iterate over.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @param {*} [accumulator] The custom accumulator value.
+     * @returns {*} Returns the accumulated value.
+     * @example
+     *
+     * _.transform([2, 3, 4], function(result, n) {
+     *   result.push(n *= n);
+     *   return n % 2 == 0;
+     * }, []);
+     * // => [4, 9]
+     *
+     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
+     *   (result[value] || (result[value] = [])).push(key);
+     * }, {});
+     * // => { '1': ['a', 'c'], '2': ['b'] }
+     */
+    function transform(object, iteratee, accumulator) {
+      var isArr = isArray(object),
+          isArrLike = isArr || isBuffer(object) || isTypedArray(object);
+
+      iteratee = getIteratee(iteratee, 4);
+      if (accumulator == null) {
+        var Ctor = object && object.constructor;
+        if (isArrLike) {
+          accumulator = isArr ? new Ctor : [];
+        }
+        else if (isObject(object)) {
+          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
+        }
+        else {
+          accumulator = {};
+        }
+      }
+      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
+        return iteratee(accumulator, value, index, object);
+      });
+      return accumulator;
+    }
 
-                        /**
-                         * Converts `string`, as a whole, to upper case just like
-                         * [String#toUpperCase](https://mdn.io/toUpperCase).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the upper cased string.
-                         * @example
-                         *
-                         * _.toUpper('--foo-bar--');
-                         * // => '--FOO-BAR--'
-                         *
-                         * _.toUpper('fooBar');
-                         * // => 'FOOBAR'
-                         *
-                         * _.toUpper('__foo_bar__');
-                         * // => '__FOO_BAR__'
-                         */
-                        function toUpper(value) {
-                            return toString(value).toUpperCase();
-                        }
+    /**
+     * Removes the property at `path` of `object`.
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Object
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to unset.
+     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
+     * _.unset(object, 'a[0].b.c');
+     * // => true
+     *
+     * console.log(object);
+     * // => { 'a': [{ 'b': {} }] };
+     *
+     * _.unset(object, ['a', '0', 'b', 'c']);
+     * // => true
+     *
+     * console.log(object);
+     * // => { 'a': [{ 'b': {} }] };
+     */
+    function unset(object, path) {
+      return object == null ? true : baseUnset(object, path);
+    }
 
-                        /**
-                         * Removes leading and trailing whitespace or specified characters from `string`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to trim.
-                         * @param {string} [chars=whitespace] The characters to trim.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {string} Returns the trimmed string.
-                         * @example
-                         *
-                         * _.trim('  abc  ');
-                         * // => 'abc'
-                         *
-                         * _.trim('-_-abc-_-', '_-');
-                         * // => 'abc'
-                         *
-                         * _.map(['  foo  ', '  bar  '], _.trim);
-                         * // => ['foo', 'bar']
-                         */
-                        function trim(string, chars, guard) {
-                            string = toString(string);
-                            if (string && (guard || chars === undefined)) {
-                                return string.replace(reTrim, '');
-                            }
-                            if (!string || !(chars = baseToString(chars))) {
-                                return string;
-                            }
-                            var strSymbols = stringToArray(string),
-                                chrSymbols = stringToArray(chars),
-                                start = charsStartIndex(strSymbols, chrSymbols),
-                                end = charsEndIndex(strSymbols, chrSymbols) + 1;
+    /**
+     * This method is like `_.set` except that accepts `updater` to produce the
+     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
+     * is invoked with one argument: (value).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.6.0
+     * @category Object
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to set.
+     * @param {Function} updater The function to produce the updated value.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+     *
+     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
+     * console.log(object.a[0].b.c);
+     * // => 9
+     *
+     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
+     * console.log(object.x[0].y.z);
+     * // => 0
+     */
+    function update(object, path, updater) {
+      return object == null ? object : baseUpdate(object, path, castFunction(updater));
+    }
 
-                            return castSlice(strSymbols, start, end).join('');
-                        }
+    /**
+     * This method is like `_.update` except that it accepts `customizer` which is
+     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
+     * path creation is handled by the method instead. The `customizer` is invoked
+     * with three arguments: (nsValue, key, nsObject).
+     *
+     * **Note:** This method mutates `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.6.0
+     * @category Object
+     * @param {Object} object The object to modify.
+     * @param {Array|string} path The path of the property to set.
+     * @param {Function} updater The function to produce the updated value.
+     * @param {Function} [customizer] The function to customize assigned values.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var object = {};
+     *
+     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
+     * // => { '0': { '1': 'a' } }
+     */
+    function updateWith(object, path, updater, customizer) {
+      customizer = typeof customizer == 'function' ? customizer : undefined;
+      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
+    }
 
-                        /**
-                         * Removes trailing whitespace or specified characters from `string`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to trim.
-                         * @param {string} [chars=whitespace] The characters to trim.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {string} Returns the trimmed string.
-                         * @example
-                         *
-                         * _.trimEnd('  abc  ');
-                         * // => '  abc'
-                         *
-                         * _.trimEnd('-_-abc-_-', '_-');
-                         * // => '-_-abc'
-                         */
-                        function trimEnd(string, chars, guard) {
-                            string = toString(string);
-                            if (string && (guard || chars === undefined)) {
-                                return string.replace(reTrimEnd, '');
-                            }
-                            if (!string || !(chars = baseToString(chars))) {
-                                return string;
-                            }
-                            var strSymbols = stringToArray(string),
-                                end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
+    /**
+     * Creates an array of the own enumerable string keyed property values of `object`.
+     *
+     * **Note:** Non-object values are coerced to objects.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property values.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.values(new Foo);
+     * // => [1, 2] (iteration order is not guaranteed)
+     *
+     * _.values('hi');
+     * // => ['h', 'i']
+     */
+    function values(object) {
+      return object == null ? [] : baseValues(object, keys(object));
+    }
 
-                            return castSlice(strSymbols, 0, end).join('');
-                        }
+    /**
+     * Creates an array of the own and inherited enumerable string keyed property
+     * values of `object`.
+     *
+     * **Note:** Non-object values are coerced to objects.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Object
+     * @param {Object} object The object to query.
+     * @returns {Array} Returns the array of property values.
+     * @example
+     *
+     * function Foo() {
+     *   this.a = 1;
+     *   this.b = 2;
+     * }
+     *
+     * Foo.prototype.c = 3;
+     *
+     * _.valuesIn(new Foo);
+     * // => [1, 2, 3] (iteration order is not guaranteed)
+     */
+    function valuesIn(object) {
+      return object == null ? [] : baseValues(object, keysIn(object));
+    }
 
-                        /**
-                         * Removes leading whitespace or specified characters from `string`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to trim.
-                         * @param {string} [chars=whitespace] The characters to trim.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {string} Returns the trimmed string.
-                         * @example
-                         *
-                         * _.trimStart('  abc  ');
-                         * // => 'abc  '
-                         *
-                         * _.trimStart('-_-abc-_-', '_-');
-                         * // => 'abc-_-'
-                         */
-                        function trimStart(string, chars, guard) {
-                            string = toString(string);
-                            if (string && (guard || chars === undefined)) {
-                                return string.replace(reTrimStart, '');
-                            }
-                            if (!string || !(chars = baseToString(chars))) {
-                                return string;
-                            }
-                            var strSymbols = stringToArray(string),
-                                start = charsStartIndex(strSymbols, stringToArray(chars));
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Clamps `number` within the inclusive `lower` and `upper` bounds.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Number
+     * @param {number} number The number to clamp.
+     * @param {number} [lower] The lower bound.
+     * @param {number} upper The upper bound.
+     * @returns {number} Returns the clamped number.
+     * @example
+     *
+     * _.clamp(-10, -5, 5);
+     * // => -5
+     *
+     * _.clamp(10, -5, 5);
+     * // => 5
+     */
+    function clamp(number, lower, upper) {
+      if (upper === undefined) {
+        upper = lower;
+        lower = undefined;
+      }
+      if (upper !== undefined) {
+        upper = toNumber(upper);
+        upper = upper === upper ? upper : 0;
+      }
+      if (lower !== undefined) {
+        lower = toNumber(lower);
+        lower = lower === lower ? lower : 0;
+      }
+      return baseClamp(toNumber(number), lower, upper);
+    }
 
-                            return castSlice(strSymbols, start).join('');
-                        }
+    /**
+     * Checks if `n` is between `start` and up to, but not including, `end`. If
+     * `end` is not specified, it's set to `start` with `start` then set to `0`.
+     * If `start` is greater than `end` the params are swapped to support
+     * negative ranges.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.3.0
+     * @category Number
+     * @param {number} number The number to check.
+     * @param {number} [start=0] The start of the range.
+     * @param {number} end The end of the range.
+     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
+     * @see _.range, _.rangeRight
+     * @example
+     *
+     * _.inRange(3, 2, 4);
+     * // => true
+     *
+     * _.inRange(4, 8);
+     * // => true
+     *
+     * _.inRange(4, 2);
+     * // => false
+     *
+     * _.inRange(2, 2);
+     * // => false
+     *
+     * _.inRange(1.2, 2);
+     * // => true
+     *
+     * _.inRange(5.2, 4);
+     * // => false
+     *
+     * _.inRange(-3, -2, -6);
+     * // => true
+     */
+    function inRange(number, start, end) {
+      start = toFinite(start);
+      if (end === undefined) {
+        end = start;
+        start = 0;
+      } else {
+        end = toFinite(end);
+      }
+      number = toNumber(number);
+      return baseInRange(number, start, end);
+    }
 
-                        /**
-                         * Truncates `string` if it's longer than the given maximum string length.
-                         * The last characters of the truncated string are replaced with the omission
-                         * string which defaults to "...".
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to truncate.
-                         * @param {Object} [options={}] The options object.
-                         * @param {number} [options.length=30] The maximum string length.
-                         * @param {string} [options.omission='...'] The string to indicate text is omitted.
-                         * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
-                         * @returns {string} Returns the truncated string.
-                         * @example
-                         *
-                         * _.truncate('hi-diddly-ho there, neighborino');
-                         * // => 'hi-diddly-ho there, neighbo...'
-                         *
-                         * _.truncate('hi-diddly-ho there, neighborino', {
-                         *   'length': 24,
-                         *   'separator': ' '
-                         * });
-                         * // => 'hi-diddly-ho there,...'
-                         *
-                         * _.truncate('hi-diddly-ho there, neighborino', {
-                         *   'length': 24,
-                         *   'separator': /,? +/
-                         * });
-                         * // => 'hi-diddly-ho there...'
-                         *
-                         * _.truncate('hi-diddly-ho there, neighborino', {
-                         *   'omission': ' [...]'
-                         * });
-                         * // => 'hi-diddly-ho there, neig [...]'
-                         */
-                        function truncate(string, options) {
-                            var length = DEFAULT_TRUNC_LENGTH,
-                                omission = DEFAULT_TRUNC_OMISSION;
-
-                            if (isObject(options)) {
-                                var separator = 'separator' in options ? options.separator : separator;
-                                length = 'length' in options ? toInteger(options.length) : length;
-                                omission = 'omission' in options ? baseToString(options.omission) : omission;
-                            }
-                            string = toString(string);
+    /**
+     * Produces a random number between the inclusive `lower` and `upper` bounds.
+     * If only one argument is provided a number between `0` and the given number
+     * is returned. If `floating` is `true`, or either `lower` or `upper` are
+     * floats, a floating-point number is returned instead of an integer.
+     *
+     * **Note:** JavaScript follows the IEEE-754 standard for resolving
+     * floating-point values which can produce unexpected results.
+     *
+     * @static
+     * @memberOf _
+     * @since 0.7.0
+     * @category Number
+     * @param {number} [lower=0] The lower bound.
+     * @param {number} [upper=1] The upper bound.
+     * @param {boolean} [floating] Specify returning a floating-point number.
+     * @returns {number} Returns the random number.
+     * @example
+     *
+     * _.random(0, 5);
+     * // => an integer between 0 and 5
+     *
+     * _.random(5);
+     * // => also an integer between 0 and 5
+     *
+     * _.random(5, true);
+     * // => a floating-point number between 0 and 5
+     *
+     * _.random(1.2, 5.2);
+     * // => a floating-point number between 1.2 and 5.2
+     */
+    function random(lower, upper, floating) {
+      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
+        upper = floating = undefined;
+      }
+      if (floating === undefined) {
+        if (typeof upper == 'boolean') {
+          floating = upper;
+          upper = undefined;
+        }
+        else if (typeof lower == 'boolean') {
+          floating = lower;
+          lower = undefined;
+        }
+      }
+      if (lower === undefined && upper === undefined) {
+        lower = 0;
+        upper = 1;
+      }
+      else {
+        lower = toFinite(lower);
+        if (upper === undefined) {
+          upper = lower;
+          lower = 0;
+        } else {
+          upper = toFinite(upper);
+        }
+      }
+      if (lower > upper) {
+        var temp = lower;
+        lower = upper;
+        upper = temp;
+      }
+      if (floating || lower % 1 || upper % 1) {
+        var rand = nativeRandom();
+        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
+      }
+      return baseRandom(lower, upper);
+    }
 
-                            var strLength = string.length;
-                            if (hasUnicode(string)) {
-                                var strSymbols = stringToArray(string);
-                                strLength = strSymbols.length;
-                            }
-                            if (length >= strLength) {
-                                return string;
-                            }
-                            var end = length - stringSize(omission);
-                            if (end < 1) {
-                                return omission;
-                            }
-                            var result = strSymbols
-                                ? castSlice(strSymbols, 0, end).join('')
-                                : string.slice(0, end);
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the camel cased string.
+     * @example
+     *
+     * _.camelCase('Foo Bar');
+     * // => 'fooBar'
+     *
+     * _.camelCase('--foo-bar--');
+     * // => 'fooBar'
+     *
+     * _.camelCase('__FOO_BAR__');
+     * // => 'fooBar'
+     */
+    var camelCase = createCompounder(function(result, word, index) {
+      word = word.toLowerCase();
+      return result + (index ? capitalize(word) : word);
+    });
+
+    /**
+     * Converts the first character of `string` to upper case and the remaining
+     * to lower case.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to capitalize.
+     * @returns {string} Returns the capitalized string.
+     * @example
+     *
+     * _.capitalize('FRED');
+     * // => 'Fred'
+     */
+    function capitalize(string) {
+      return upperFirst(toString(string).toLowerCase());
+    }
 
-                            if (separator === undefined) {
-                                return result + omission;
-                            }
-                            if (strSymbols) {
-                                end += (result.length - end);
-                            }
-                            if (isRegExp(separator)) {
-                                if (string.slice(end).search(separator)) {
-                                    var match,
-                                        substring = result;
-
-                                    if (!separator.global) {
-                                        separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
-                                    }
-                                    separator.lastIndex = 0;
-                                    while ((match = separator.exec(substring))) {
-                                        var newEnd = match.index;
-                                    }
-                                    result = result.slice(0, newEnd === undefined ? end : newEnd);
-                                }
-                            } else if (string.indexOf(baseToString(separator), end) != end) {
-                                var index = result.lastIndexOf(separator);
-                                if (index > -1) {
-                                    result = result.slice(0, index);
-                                }
-                            }
-                            return result + omission;
-                        }
+    /**
+     * Deburrs `string` by converting
+     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
+     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
+     * letters to basic Latin letters and removing
+     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to deburr.
+     * @returns {string} Returns the deburred string.
+     * @example
+     *
+     * _.deburr('déjà vu');
+     * // => 'deja vu'
+     */
+    function deburr(string) {
+      string = toString(string);
+      return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
+    }
 
-                        /**
-                         * The inverse of `_.escape`; this method converts the HTML entities
-                         * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
-                         * their corresponding characters.
-                         *
-                         * **Note:** No other HTML entities are unescaped. To unescape additional
-                         * HTML entities use a third-party library like [_he_](https://mths.be/he).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 0.6.0
-                         * @category String
-                         * @param {string} [string=''] The string to unescape.
-                         * @returns {string} Returns the unescaped string.
-                         * @example
-                         *
-                         * _.unescape('fred, barney, &amp; pebbles');
-                         * // => 'fred, barney, & pebbles'
-                         */
-                        function unescape(string) {
-                            string = toString(string);
-                            return (string && reHasEscapedHtml.test(string))
-                                ? string.replace(reEscapedHtml, unescapeHtmlChar)
-                                : string;
-                        }
+    /**
+     * Checks if `string` ends with the given target string.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to inspect.
+     * @param {string} [target] The string to search for.
+     * @param {number} [position=string.length] The position to search up to.
+     * @returns {boolean} Returns `true` if `string` ends with `target`,
+     *  else `false`.
+     * @example
+     *
+     * _.endsWith('abc', 'c');
+     * // => true
+     *
+     * _.endsWith('abc', 'b');
+     * // => false
+     *
+     * _.endsWith('abc', 'b', 2);
+     * // => true
+     */
+    function endsWith(string, target, position) {
+      string = toString(string);
+      target = baseToString(target);
+
+      var length = string.length;
+      position = position === undefined
+        ? length
+        : baseClamp(toInteger(position), 0, length);
+
+      var end = position;
+      position -= target.length;
+      return position >= 0 && string.slice(position, end) == target;
+    }
 
-                        /**
-                         * Converts `string`, as space separated words, to upper case.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the upper cased string.
-                         * @example
-                         *
-                         * _.upperCase('--foo-bar');
-                         * // => 'FOO BAR'
-                         *
-                         * _.upperCase('fooBar');
-                         * // => 'FOO BAR'
-                         *
-                         * _.upperCase('__foo_bar__');
-                         * // => 'FOO BAR'
-                         */
-                        var upperCase = createCompounder(function(result, word, index) {
-                            return result + (index ? ' ' : '') + word.toUpperCase();
-                        });
+    /**
+     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
+     * corresponding HTML entities.
+     *
+     * **Note:** No other characters are escaped. To escape additional
+     * characters use a third-party library like [_he_](https://mths.be/he).
+     *
+     * Though the ">" character is escaped for symmetry, characters like
+     * ">" and "/" don't need escaping in HTML and have no special meaning
+     * unless they're part of a tag or unquoted attribute value. See
+     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
+     * (under "semi-related fun fact") for more details.
+     *
+     * When working with HTML you should always
+     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
+     * XSS vectors.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category String
+     * @param {string} [string=''] The string to escape.
+     * @returns {string} Returns the escaped string.
+     * @example
+     *
+     * _.escape('fred, barney, & pebbles');
+     * // => 'fred, barney, &amp; pebbles'
+     */
+    function escape(string) {
+      string = toString(string);
+      return (string && reHasUnescapedHtml.test(string))
+        ? string.replace(reUnescapedHtml, escapeHtmlChar)
+        : string;
+    }
 
-                        /**
-                         * Converts the first character of `string` to upper case.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to convert.
-                         * @returns {string} Returns the converted string.
-                         * @example
-                         *
-                         * _.upperFirst('fred');
-                         * // => 'Fred'
-                         *
-                         * _.upperFirst('FRED');
-                         * // => 'FRED'
-                         */
-                        var upperFirst = createCaseFirst('toUpperCase');
-
-                        /**
-                         * Splits `string` into an array of its words.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category String
-                         * @param {string} [string=''] The string to inspect.
-                         * @param {RegExp|string} [pattern] The pattern to match words.
-                         * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
-                         * @returns {Array} Returns the words of `string`.
-                         * @example
-                         *
-                         * _.words('fred, barney, & pebbles');
-                         * // => ['fred', 'barney', 'pebbles']
-                         *
-                         * _.words('fred, barney, & pebbles', /[^, ]+/g);
-                         * // => ['fred', 'barney', '&', 'pebbles']
-                         */
-                        function words(string, pattern, guard) {
-                            string = toString(string);
-                            pattern = guard ? undefined : pattern;
-
-                            if (pattern === undefined) {
-                                return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
-                            }
-                            return string.match(pattern) || [];
-                        }
+    /**
+     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
+     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to escape.
+     * @returns {string} Returns the escaped string.
+     * @example
+     *
+     * _.escapeRegExp('[lodash](https://lodash.com/)');
+     * // => '\[lodash\]\(https://lodash\.com/\)'
+     */
+    function escapeRegExp(string) {
+      string = toString(string);
+      return (string && reHasRegExpChar.test(string))
+        ? string.replace(reRegExpChar, '\\$&')
+        : string;
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Attempts to invoke `func`, returning either the result or the caught error
-                         * object. Any additional arguments are provided to `func` when it's invoked.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Util
-                         * @param {Function} func The function to attempt.
-                         * @param {...*} [args] The arguments to invoke `func` with.
-                         * @returns {*} Returns the `func` result or error object.
-                         * @example
-                         *
-                         * // Avoid throwing errors for invalid selectors.
-                         * var elements = _.attempt(function(selector) {
-                         *   return document.querySelectorAll(selector);
-                         * }, '>_>');
-                         *
-                         * if (_.isError(elements)) {
-                         *   elements = [];
-                         * }
-                         */
-                        var attempt = baseRest(function(func, args) {
-                            try {
-                                return apply(func, undefined, args);
-                            } catch (e) {
-                                return isError(e) ? e : new Error(e);
-                            }
-                        });
+    /**
+     * Converts `string` to
+     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the kebab cased string.
+     * @example
+     *
+     * _.kebabCase('Foo Bar');
+     * // => 'foo-bar'
+     *
+     * _.kebabCase('fooBar');
+     * // => 'foo-bar'
+     *
+     * _.kebabCase('__FOO_BAR__');
+     * // => 'foo-bar'
+     */
+    var kebabCase = createCompounder(function(result, word, index) {
+      return result + (index ? '-' : '') + word.toLowerCase();
+    });
+
+    /**
+     * Converts `string`, as space separated words, to lower case.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the lower cased string.
+     * @example
+     *
+     * _.lowerCase('--Foo-Bar--');
+     * // => 'foo bar'
+     *
+     * _.lowerCase('fooBar');
+     * // => 'foo bar'
+     *
+     * _.lowerCase('__FOO_BAR__');
+     * // => 'foo bar'
+     */
+    var lowerCase = createCompounder(function(result, word, index) {
+      return result + (index ? ' ' : '') + word.toLowerCase();
+    });
+
+    /**
+     * Converts the first character of `string` to lower case.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the converted string.
+     * @example
+     *
+     * _.lowerFirst('Fred');
+     * // => 'fred'
+     *
+     * _.lowerFirst('FRED');
+     * // => 'fRED'
+     */
+    var lowerFirst = createCaseFirst('toLowerCase');
+
+    /**
+     * Pads `string` on the left and right sides if it's shorter than `length`.
+     * Padding characters are truncated if they can't be evenly divided by `length`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to pad.
+     * @param {number} [length=0] The padding length.
+     * @param {string} [chars=' '] The string used as padding.
+     * @returns {string} Returns the padded string.
+     * @example
+     *
+     * _.pad('abc', 8);
+     * // => '  abc   '
+     *
+     * _.pad('abc', 8, '_-');
+     * // => '_-abc_-_'
+     *
+     * _.pad('abc', 3);
+     * // => 'abc'
+     */
+    function pad(string, length, chars) {
+      string = toString(string);
+      length = toInteger(length);
+
+      var strLength = length ? stringSize(string) : 0;
+      if (!length || strLength >= length) {
+        return string;
+      }
+      var mid = (length - strLength) / 2;
+      return (
+        createPadding(nativeFloor(mid), chars) +
+        string +
+        createPadding(nativeCeil(mid), chars)
+      );
+    }
 
-                        /**
-                         * Binds methods of an object to the object itself, overwriting the existing
-                         * method.
-                         *
-                         * **Note:** This method doesn't set the "length" property of bound functions.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {Object} object The object to bind and assign the bound methods to.
-                         * @param {...(string|string[])} methodNames The object method names to bind.
-                         * @returns {Object} Returns `object`.
-                         * @example
-                         *
-                         * var view = {
-                         *   'label': 'docs',
-                         *   'click': function() {
-                         *     console.log('clicked ' + this.label);
-                         *   }
-                         * };
-                         *
-                         * _.bindAll(view, ['click']);
-                         * jQuery(element).on('click', view.click);
-                         * // => Logs 'clicked docs' when clicked.
-                         */
-                        var bindAll = flatRest(function(object, methodNames) {
-                            arrayEach(methodNames, function(key) {
-                                key = toKey(key);
-                                baseAssignValue(object, key, bind(object[key], object));
-                            });
-                            return object;
-                        });
+    /**
+     * Pads `string` on the right side if it's shorter than `length`. Padding
+     * characters are truncated if they exceed `length`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to pad.
+     * @param {number} [length=0] The padding length.
+     * @param {string} [chars=' '] The string used as padding.
+     * @returns {string} Returns the padded string.
+     * @example
+     *
+     * _.padEnd('abc', 6);
+     * // => 'abc   '
+     *
+     * _.padEnd('abc', 6, '_-');
+     * // => 'abc_-_'
+     *
+     * _.padEnd('abc', 3);
+     * // => 'abc'
+     */
+    function padEnd(string, length, chars) {
+      string = toString(string);
+      length = toInteger(length);
+
+      var strLength = length ? stringSize(string) : 0;
+      return (length && strLength < length)
+        ? (string + createPadding(length - strLength, chars))
+        : string;
+    }
 
-                        /**
-                         * Creates a function that iterates over `pairs` and invokes the corresponding
-                         * function of the first predicate to return truthy. The predicate-function
-                         * pairs are invoked with the `this` binding and arguments of the created
-                         * function.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {Array} pairs The predicate-function pairs.
-                         * @returns {Function} Returns the new composite function.
-                         * @example
-                         *
-                         * var func = _.cond([
-                         *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
-                         *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
-                         *   [_.stubTrue,                      _.constant('no match')]
-                         * ]);
-                         *
-                         * func({ 'a': 1, 'b': 2 });
-                         * // => 'matches A'
-                         *
-                         * func({ 'a': 0, 'b': 1 });
-                         * // => 'matches B'
-                         *
-                         * func({ 'a': '1', 'b': '2' });
-                         * // => 'no match'
-                         */
-                        function cond(pairs) {
-                            var length = pairs == null ? 0 : pairs.length,
-                                toIteratee = getIteratee();
-
-                            pairs = !length ? [] : arrayMap(pairs, function(pair) {
-                                if (typeof pair[1] != 'function') {
-                                    throw new TypeError(FUNC_ERROR_TEXT);
-                                }
-                                return [toIteratee(pair[0]), pair[1]];
-                            });
-
-                            return baseRest(function(args) {
-                                var index = -1;
-                                while (++index < length) {
-                                    var pair = pairs[index];
-                                    if (apply(pair[0], this, args)) {
-                                        return apply(pair[1], this, args);
-                                    }
-                                }
-                            });
-                        }
+    /**
+     * Pads `string` on the left side if it's shorter than `length`. Padding
+     * characters are truncated if they exceed `length`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to pad.
+     * @param {number} [length=0] The padding length.
+     * @param {string} [chars=' '] The string used as padding.
+     * @returns {string} Returns the padded string.
+     * @example
+     *
+     * _.padStart('abc', 6);
+     * // => '   abc'
+     *
+     * _.padStart('abc', 6, '_-');
+     * // => '_-_abc'
+     *
+     * _.padStart('abc', 3);
+     * // => 'abc'
+     */
+    function padStart(string, length, chars) {
+      string = toString(string);
+      length = toInteger(length);
+
+      var strLength = length ? stringSize(string) : 0;
+      return (length && strLength < length)
+        ? (createPadding(length - strLength, chars) + string)
+        : string;
+    }
 
-                        /**
-                         * Creates a function that invokes the predicate properties of `source` with
-                         * the corresponding property values of a given object, returning `true` if
-                         * all predicates return truthy, else `false`.
-                         *
-                         * **Note:** The created function is equivalent to `_.conformsTo` with
-                         * `source` partially applied.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {Object} source The object of property predicates to conform to.
-                         * @returns {Function} Returns the new spec function.
-                         * @example
-                         *
-                         * var objects = [
-                         *   { 'a': 2, 'b': 1 },
-                         *   { 'a': 1, 'b': 2 }
-                         * ];
-                         *
-                         * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
-                         * // => [{ 'a': 1, 'b': 2 }]
-                         */
-                        function conforms(source) {
-                            return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
-                        }
+    /**
+     * Converts `string` to an integer of the specified radix. If `radix` is
+     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
+     * hexadecimal, in which case a `radix` of `16` is used.
+     *
+     * **Note:** This method aligns with the
+     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
+     *
+     * @static
+     * @memberOf _
+     * @since 1.1.0
+     * @category String
+     * @param {string} string The string to convert.
+     * @param {number} [radix=10] The radix to interpret `value` by.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {number} Returns the converted integer.
+     * @example
+     *
+     * _.parseInt('08');
+     * // => 8
+     *
+     * _.map(['6', '08', '10'], _.parseInt);
+     * // => [6, 8, 10]
+     */
+    function parseInt(string, radix, guard) {
+      if (guard || radix == null) {
+        radix = 0;
+      } else if (radix) {
+        radix = +radix;
+      }
+      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
+    }
 
-                        /**
-                         * Creates a function that returns `value`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.4.0
-                         * @category Util
-                         * @param {*} value The value to return from the new function.
-                         * @returns {Function} Returns the new constant function.
-                         * @example
-                         *
-                         * var objects = _.times(2, _.constant({ 'a': 1 }));
-                         *
-                         * console.log(objects);
-                         * // => [{ 'a': 1 }, { 'a': 1 }]
-                         *
-                         * console.log(objects[0] === objects[1]);
-                         * // => true
-                         */
-                        function constant(value) {
-                            return function() {
-                                return value;
-                            };
-                        }
+    /**
+     * Repeats the given string `n` times.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to repeat.
+     * @param {number} [n=1] The number of times to repeat the string.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {string} Returns the repeated string.
+     * @example
+     *
+     * _.repeat('*', 3);
+     * // => '***'
+     *
+     * _.repeat('abc', 2);
+     * // => 'abcabc'
+     *
+     * _.repeat('abc', 0);
+     * // => ''
+     */
+    function repeat(string, n, guard) {
+      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
+        n = 1;
+      } else {
+        n = toInteger(n);
+      }
+      return baseRepeat(toString(string), n);
+    }
 
-                        /**
-                         * Checks `value` to determine whether a default value should be returned in
-                         * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
-                         * or `undefined`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.14.0
-                         * @category Util
-                         * @param {*} value The value to check.
-                         * @param {*} defaultValue The default value.
-                         * @returns {*} Returns the resolved value.
-                         * @example
-                         *
-                         * _.defaultTo(1, 10);
-                         * // => 1
-                         *
-                         * _.defaultTo(undefined, 10);
-                         * // => 10
-                         */
-                        function defaultTo(value, defaultValue) {
-                            return (value == null || value !== value) ? defaultValue : value;
-                        }
+    /**
+     * Replaces matches for `pattern` in `string` with `replacement`.
+     *
+     * **Note:** This method is based on
+     * [`String#replace`](https://mdn.io/String/replace).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to modify.
+     * @param {RegExp|string} pattern The pattern to replace.
+     * @param {Function|string} replacement The match replacement.
+     * @returns {string} Returns the modified string.
+     * @example
+     *
+     * _.replace('Hi Fred', 'Fred', 'Barney');
+     * // => 'Hi Barney'
+     */
+    function replace() {
+      var args = arguments,
+          string = toString(args[0]);
+
+      return args.length < 3 ? string : string.replace(args[1], args[2]);
+    }
 
-                        /**
-                         * Creates a function that returns the result of invoking the given functions
-                         * with the `this` binding of the created function, where each successive
-                         * invocation is supplied the return value of the previous.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Util
-                         * @param {...(Function|Function[])} [funcs] The functions to invoke.
-                         * @returns {Function} Returns the new composite function.
-                         * @see _.flowRight
-                         * @example
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * var addSquare = _.flow([_.add, square]);
-                         * addSquare(1, 2);
-                         * // => 9
-                         */
-                        var flow = createFlow();
-
-                        /**
-                         * This method is like `_.flow` except that it creates a function that
-                         * invokes the given functions from right to left.
-                         *
-                         * @static
-                         * @since 3.0.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {...(Function|Function[])} [funcs] The functions to invoke.
-                         * @returns {Function} Returns the new composite function.
-                         * @see _.flow
-                         * @example
-                         *
-                         * function square(n) {
-                         *   return n * n;
-                         * }
-                         *
-                         * var addSquare = _.flowRight([square, _.add]);
-                         * addSquare(1, 2);
-                         * // => 9
-                         */
-                        var flowRight = createFlow(true);
-
-                        /**
-                         * This method returns the first argument it receives.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {*} value Any value.
-                         * @returns {*} Returns `value`.
-                         * @example
-                         *
-                         * var object = { 'a': 1 };
-                         *
-                         * console.log(_.identity(object) === object);
-                         * // => true
-                         */
-                        function identity(value) {
-                            return value;
-                        }
+    /**
+     * Converts `string` to
+     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the snake cased string.
+     * @example
+     *
+     * _.snakeCase('Foo Bar');
+     * // => 'foo_bar'
+     *
+     * _.snakeCase('fooBar');
+     * // => 'foo_bar'
+     *
+     * _.snakeCase('--FOO-BAR--');
+     * // => 'foo_bar'
+     */
+    var snakeCase = createCompounder(function(result, word, index) {
+      return result + (index ? '_' : '') + word.toLowerCase();
+    });
+
+    /**
+     * Splits `string` by `separator`.
+     *
+     * **Note:** This method is based on
+     * [`String#split`](https://mdn.io/String/split).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to split.
+     * @param {RegExp|string} separator The separator pattern to split by.
+     * @param {number} [limit] The length to truncate results to.
+     * @returns {Array} Returns the string segments.
+     * @example
+     *
+     * _.split('a-b-c', '-', 2);
+     * // => ['a', 'b']
+     */
+    function split(string, separator, limit) {
+      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
+        separator = limit = undefined;
+      }
+      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
+      if (!limit) {
+        return [];
+      }
+      string = toString(string);
+      if (string && (
+            typeof separator == 'string' ||
+            (separator != null && !isRegExp(separator))
+          )) {
+        separator = baseToString(separator);
+        if (!separator && hasUnicode(string)) {
+          return castSlice(stringToArray(string), 0, limit);
+        }
+      }
+      return string.split(separator, limit);
+    }
 
-                        /**
-                         * Creates a function that invokes `func` with the arguments of the created
-                         * function. If `func` is a property name, the created function returns the
-                         * property value for a given element. If `func` is an array or object, the
-                         * created function returns `true` for elements that contain the equivalent
-                         * source properties, otherwise it returns `false`.
-                         *
-                         * @static
-                         * @since 4.0.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {*} [func=_.identity] The value to convert to a callback.
-                         * @returns {Function} Returns the callback.
-                         * @example
-                         *
-                         * var users = [
-                         *   { 'user': 'barney', 'age': 36, 'active': true },
-                         *   { 'user': 'fred',   'age': 40, 'active': false }
-                         * ];
-                         *
-                         * // The `_.matches` iteratee shorthand.
-                         * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
-                         * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
-                         *
-                         * // The `_.matchesProperty` iteratee shorthand.
-                         * _.filter(users, _.iteratee(['user', 'fred']));
-                         * // => [{ 'user': 'fred', 'age': 40 }]
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.map(users, _.iteratee('user'));
-                         * // => ['barney', 'fred']
-                         *
-                         * // Create custom iteratee shorthands.
-                         * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
-                         *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
-                         *     return func.test(string);
-                         *   };
-                         * });
-                         *
-                         * _.filter(['abc', 'def'], /ef/);
-                         * // => ['def']
-                         */
-                        function iteratee(func) {
-                            return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
-                        }
+    /**
+     * Converts `string` to
+     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
+     *
+     * @static
+     * @memberOf _
+     * @since 3.1.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the start cased string.
+     * @example
+     *
+     * _.startCase('--foo-bar--');
+     * // => 'Foo Bar'
+     *
+     * _.startCase('fooBar');
+     * // => 'Foo Bar'
+     *
+     * _.startCase('__FOO_BAR__');
+     * // => 'FOO BAR'
+     */
+    var startCase = createCompounder(function(result, word, index) {
+      return result + (index ? ' ' : '') + upperFirst(word);
+    });
+
+    /**
+     * Checks if `string` starts with the given target string.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to inspect.
+     * @param {string} [target] The string to search for.
+     * @param {number} [position=0] The position to search from.
+     * @returns {boolean} Returns `true` if `string` starts with `target`,
+     *  else `false`.
+     * @example
+     *
+     * _.startsWith('abc', 'a');
+     * // => true
+     *
+     * _.startsWith('abc', 'b');
+     * // => false
+     *
+     * _.startsWith('abc', 'b', 1);
+     * // => true
+     */
+    function startsWith(string, target, position) {
+      string = toString(string);
+      position = position == null
+        ? 0
+        : baseClamp(toInteger(position), 0, string.length);
+
+      target = baseToString(target);
+      return string.slice(position, position + target.length) == target;
+    }
 
-                        /**
-                         * Creates a function that performs a partial deep comparison between a given
-                         * object and `source`, returning `true` if the given object has equivalent
-                         * property values, else `false`.
-                         *
-                         * **Note:** The created function is equivalent to `_.isMatch` with `source`
-                         * partially applied.
-                         *
-                         * Partial comparisons will match empty array and empty object `source`
-                         * values against any array or object value, respectively. See `_.isEqual`
-                         * for a list of supported value comparisons.
-                         *
-                         * **Note:** Multiple values can be checked by combining several matchers
-                         * using `_.overSome`
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Util
-                         * @param {Object} source The object of property values to match.
-                         * @returns {Function} Returns the new spec function.
-                         * @example
-                         *
-                         * var objects = [
-                         *   { 'a': 1, 'b': 2, 'c': 3 },
-                         *   { 'a': 4, 'b': 5, 'c': 6 }
-                         * ];
-                         *
-                         * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
-                         * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
-                         *
-                         * // Checking for several possible values
-                         * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
-                         * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
-                         */
-                        function matches(source) {
-                            return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
-                        }
+    /**
+     * Creates a compiled template function that can interpolate data properties
+     * in "interpolate" delimiters, HTML-escape interpolated data properties in
+     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
+     * properties may be accessed as free variables in the template. If a setting
+     * object is given, it takes precedence over `_.templateSettings` values.
+     *
+     * **Note:** In the development build `_.template` utilizes
+     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
+     * for easier debugging.
+     *
+     * For more information on precompiling templates see
+     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
+     *
+     * For more information on Chrome extension sandboxes see
+     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category String
+     * @param {string} [string=''] The template string.
+     * @param {Object} [options={}] The options object.
+     * @param {RegExp} [options.escape=_.templateSettings.escape]
+     *  The HTML "escape" delimiter.
+     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
+     *  The "evaluate" delimiter.
+     * @param {Object} [options.imports=_.templateSettings.imports]
+     *  An object to import into the template as free variables.
+     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
+     *  The "interpolate" delimiter.
+     * @param {string} [options.sourceURL='lodash.templateSources[n]']
+     *  The sourceURL of the compiled template.
+     * @param {string} [options.variable='obj']
+     *  The data object variable name.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Function} Returns the compiled template function.
+     * @example
+     *
+     * // Use the "interpolate" delimiter to create a compiled template.
+     * var compiled = _.template('hello <%= user %>!');
+     * compiled({ 'user': 'fred' });
+     * // => 'hello fred!'
+     *
+     * // Use the HTML "escape" delimiter to escape data property values.
+     * var compiled = _.template('<b><%- value %></b>');
+     * compiled({ 'value': '<script>' });
+     * // => '<b>&lt;script&gt;</b>'
+     *
+     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
+     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
+     * compiled({ 'users': ['fred', 'barney'] });
+     * // => '<li>fred</li><li>barney</li>'
+     *
+     * // Use the internal `print` function in "evaluate" delimiters.
+     * var compiled = _.template('<% print("hello " + user); %>!');
+     * compiled({ 'user': 'barney' });
+     * // => 'hello barney!'
+     *
+     * // Use the ES template literal delimiter as an "interpolate" delimiter.
+     * // Disable support by replacing the "interpolate" delimiter.
+     * var compiled = _.template('hello ${ user }!');
+     * compiled({ 'user': 'pebbles' });
+     * // => 'hello pebbles!'
+     *
+     * // Use backslashes to treat delimiters as plain text.
+     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
+     * compiled({ 'value': 'ignored' });
+     * // => '<%- value %>'
+     *
+     * // Use the `imports` option to import `jQuery` as `jq`.
+     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
+     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
+     * compiled({ 'users': ['fred', 'barney'] });
+     * // => '<li>fred</li><li>barney</li>'
+     *
+     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
+     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
+     * compiled(data);
+     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
+     *
+     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
+     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
+     * compiled.source;
+     * // => function(data) {
+     * //   var __t, __p = '';
+     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
+     * //   return __p;
+     * // }
+     *
+     * // Use custom template delimiters.
+     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
+     * var compiled = _.template('hello {{ user }}!');
+     * compiled({ 'user': 'mustache' });
+     * // => 'hello mustache!'
+     *
+     * // Use the `source` property to inline compiled templates for meaningful
+     * // line numbers in error messages and stack traces.
+     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
+     *   var JST = {\
+     *     "main": ' + _.template(mainText).source + '\
+     *   };\
+     * ');
+     */
+    function template(string, options, guard) {
+      // Based on John Resig's `tmpl` implementation
+      // (http://ejohn.org/blog/javascript-micro-templating/)
+      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
+      var settings = lodash.templateSettings;
+
+      if (guard && isIterateeCall(string, options, guard)) {
+        options = undefined;
+      }
+      string = toString(string);
+      options = assignInWith({}, options, settings, customDefaultsAssignIn);
+
+      var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
+          importsKeys = keys(imports),
+          importsValues = baseValues(imports, importsKeys);
+
+      var isEscaping,
+          isEvaluating,
+          index = 0,
+          interpolate = options.interpolate || reNoMatch,
+          source = "__p += '";
+
+      // Compile the regexp to match each delimiter.
+      var reDelimiters = RegExp(
+        (options.escape || reNoMatch).source + '|' +
+        interpolate.source + '|' +
+        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
+        (options.evaluate || reNoMatch).source + '|$'
+      , 'g');
+
+      // Use a sourceURL for easier debugging.
+      // The sourceURL gets injected into the source that's eval-ed, so be careful
+      // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
+      // and escape the comment, thus injecting code that gets evaled.
+      var sourceURL = '//# sourceURL=' +
+        (hasOwnProperty.call(options, 'sourceURL')
+          ? (options.sourceURL + '').replace(/\s/g, ' ')
+          : ('lodash.templateSources[' + (++templateCounter) + ']')
+        ) + '\n';
+
+      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
+        interpolateValue || (interpolateValue = esTemplateValue);
+
+        // Escape characters that can't be included in string literals.
+        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
+
+        // Replace delimiters with snippets.
+        if (escapeValue) {
+          isEscaping = true;
+          source += "' +\n__e(" + escapeValue + ") +\n'";
+        }
+        if (evaluateValue) {
+          isEvaluating = true;
+          source += "';\n" + evaluateValue + ";\n__p += '";
+        }
+        if (interpolateValue) {
+          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
+        }
+        index = offset + match.length;
 
-                        /**
-                         * Creates a function that performs a partial deep comparison between the
-                         * value at `path` of a given object to `srcValue`, returning `true` if the
-                         * object value is equivalent, else `false`.
-                         *
-                         * **Note:** Partial comparisons will match empty array and empty object
-                         * `srcValue` values against any array or object value, respectively. See
-                         * `_.isEqual` for a list of supported value comparisons.
-                         *
-                         * **Note:** Multiple values can be checked by combining several matchers
-                         * using `_.overSome`
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.2.0
-                         * @category Util
-                         * @param {Array|string} path The path of the property to get.
-                         * @param {*} srcValue The value to match.
-                         * @returns {Function} Returns the new spec function.
-                         * @example
-                         *
-                         * var objects = [
-                         *   { 'a': 1, 'b': 2, 'c': 3 },
-                         *   { 'a': 4, 'b': 5, 'c': 6 }
-                         * ];
-                         *
-                         * _.find(objects, _.matchesProperty('a', 4));
-                         * // => { 'a': 4, 'b': 5, 'c': 6 }
-                         *
-                         * // Checking for several possible values
-                         * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
-                         * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
-                         */
-                        function matchesProperty(path, srcValue) {
-                            return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
-                        }
+        // The JS engine embedded in Adobe products needs `match` returned in
+        // order to produce the correct `offset` value.
+        return match;
+      });
 
-                        /**
-                         * Creates a function that invokes the method at `path` of a given object.
-                         * Any additional arguments are provided to the invoked method.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.7.0
-                         * @category Util
-                         * @param {Array|string} path The path of the method to invoke.
-                         * @param {...*} [args] The arguments to invoke the method with.
-                         * @returns {Function} Returns the new invoker function.
-                         * @example
-                         *
-                         * var objects = [
-                         *   { 'a': { 'b': _.constant(2) } },
-                         *   { 'a': { 'b': _.constant(1) } }
-                         * ];
-                         *
-                         * _.map(objects, _.method('a.b'));
-                         * // => [2, 1]
-                         *
-                         * _.map(objects, _.method(['a', 'b']));
-                         * // => [2, 1]
-                         */
-                        var method = baseRest(function(path, args) {
-                            return function(object) {
-                                return baseInvoke(object, path, args);
-                            };
-                        });
+      source += "';\n";
+
+      // If `variable` is not specified wrap a with-statement around the generated
+      // code to add the data object to the top of the scope chain.
+      var variable = hasOwnProperty.call(options, 'variable') && options.variable;
+      if (!variable) {
+        source = 'with (obj) {\n' + source + '\n}\n';
+      }
+      // Cleanup code by stripping empty strings.
+      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
+        .replace(reEmptyStringMiddle, '$1')
+        .replace(reEmptyStringTrailing, '$1;');
+
+      // Frame code as the function body.
+      source = 'function(' + (variable || 'obj') + ') {\n' +
+        (variable
+          ? ''
+          : 'obj || (obj = {});\n'
+        ) +
+        "var __t, __p = ''" +
+        (isEscaping
+           ? ', __e = _.escape'
+           : ''
+        ) +
+        (isEvaluating
+          ? ', __j = Array.prototype.join;\n' +
+            "function print() { __p += __j.call(arguments, '') }\n"
+          : ';\n'
+        ) +
+        source +
+        'return __p\n}';
+
+      var result = attempt(function() {
+        return Function(importsKeys, sourceURL + 'return ' + source)
+          .apply(undefined, importsValues);
+      });
 
-                        /**
-                         * The opposite of `_.method`; this method creates a function that invokes
-                         * the method at a given path of `object`. Any additional arguments are
-                         * provided to the invoked method.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.7.0
-                         * @category Util
-                         * @param {Object} object The object to query.
-                         * @param {...*} [args] The arguments to invoke the method with.
-                         * @returns {Function} Returns the new invoker function.
-                         * @example
-                         *
-                         * var array = _.times(3, _.constant),
-                         *     object = { 'a': array, 'b': array, 'c': array };
-                         *
-                         * _.map(['a[2]', 'c[0]'], _.methodOf(object));
-                         * // => [2, 0]
-                         *
-                         * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
-                         * // => [2, 0]
-                         */
-                        var methodOf = baseRest(function(object, args) {
-                            return function(path) {
-                                return baseInvoke(object, path, args);
-                            };
-                        });
+      // Provide the compiled function's source by its `toString` method or
+      // the `source` property as a convenience for inlining compiled templates.
+      result.source = source;
+      if (isError(result)) {
+        throw result;
+      }
+      return result;
+    }
 
-                        /**
-                         * Adds all own enumerable string keyed function properties of a source
-                         * object to the destination object. If `object` is a function, then methods
-                         * are added to its prototype as well.
-                         *
-                         * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
-                         * avoid conflicts caused by modifying the original.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {Function|Object} [object=lodash] The destination object.
-                         * @param {Object} source The object of functions to add.
-                         * @param {Object} [options={}] The options object.
-                         * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
-                         * @returns {Function|Object} Returns `object`.
-                         * @example
-                         *
-                         * function vowels(string) {
-                         *   return _.filter(string, function(v) {
-                         *     return /[aeiou]/i.test(v);
-                         *   });
-                         * }
-                         *
-                         * _.mixin({ 'vowels': vowels });
-                         * _.vowels('fred');
-                         * // => ['e']
-                         *
-                         * _('fred').vowels().value();
-                         * // => ['e']
-                         *
-                         * _.mixin({ 'vowels': vowels }, { 'chain': false });
-                         * _('fred').vowels();
-                         * // => ['e']
-                         */
-                        function mixin(object, source, options) {
-                            var props = keys(source),
-                                methodNames = baseFunctions(source, props);
-
-                            if (options == null &&
-                                !(isObject(source) && (methodNames.length || !props.length))) {
-                                options = source;
-                                source = object;
-                                object = this;
-                                methodNames = baseFunctions(source, keys(source));
-                            }
-                            var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
-                                isFunc = isFunction(object);
-
-                            arrayEach(methodNames, function(methodName) {
-                                var func = source[methodName];
-                                object[methodName] = func;
-                                if (isFunc) {
-                                    object.prototype[methodName] = function() {
-                                        var chainAll = this.__chain__;
-                                        if (chain || chainAll) {
-                                            var result = object(this.__wrapped__),
-                                                actions = result.__actions__ = copyArray(this.__actions__);
-
-                                            actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
-                                            result.__chain__ = chainAll;
-                                            return result;
-                                        }
-                                        return func.apply(object, arrayPush([this.value()], arguments));
-                                    };
-                                }
-                            });
-
-                            return object;
-                        }
+    /**
+     * Converts `string`, as a whole, to lower case just like
+     * [String#toLowerCase](https://mdn.io/toLowerCase).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the lower cased string.
+     * @example
+     *
+     * _.toLower('--Foo-Bar--');
+     * // => '--foo-bar--'
+     *
+     * _.toLower('fooBar');
+     * // => 'foobar'
+     *
+     * _.toLower('__FOO_BAR__');
+     * // => '__foo_bar__'
+     */
+    function toLower(value) {
+      return toString(value).toLowerCase();
+    }
 
-                        /**
-                         * Reverts the `_` variable to its previous value and returns a reference to
-                         * the `lodash` function.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @returns {Function} Returns the `lodash` function.
-                         * @example
-                         *
-                         * var lodash = _.noConflict();
-                         */
-                        function noConflict() {
-                            if (root._ === this) {
-                                root._ = oldDash;
-                            }
-                            return this;
-                        }
+    /**
+     * Converts `string`, as a whole, to upper case just like
+     * [String#toUpperCase](https://mdn.io/toUpperCase).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the upper cased string.
+     * @example
+     *
+     * _.toUpper('--foo-bar--');
+     * // => '--FOO-BAR--'
+     *
+     * _.toUpper('fooBar');
+     * // => 'FOOBAR'
+     *
+     * _.toUpper('__foo_bar__');
+     * // => '__FOO_BAR__'
+     */
+    function toUpper(value) {
+      return toString(value).toUpperCase();
+    }
 
-                        /**
-                         * This method returns `undefined`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.3.0
-                         * @category Util
-                         * @example
-                         *
-                         * _.times(2, _.noop);
-                         * // => [undefined, undefined]
-                         */
-                        function noop() {
-                            // No operation performed.
-                        }
+    /**
+     * Removes leading and trailing whitespace or specified characters from `string`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to trim.
+     * @param {string} [chars=whitespace] The characters to trim.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {string} Returns the trimmed string.
+     * @example
+     *
+     * _.trim('  abc  ');
+     * // => 'abc'
+     *
+     * _.trim('-_-abc-_-', '_-');
+     * // => 'abc'
+     *
+     * _.map(['  foo  ', '  bar  '], _.trim);
+     * // => ['foo', 'bar']
+     */
+    function trim(string, chars, guard) {
+      string = toString(string);
+      if (string && (guard || chars === undefined)) {
+        return string.replace(reTrim, '');
+      }
+      if (!string || !(chars = baseToString(chars))) {
+        return string;
+      }
+      var strSymbols = stringToArray(string),
+          chrSymbols = stringToArray(chars),
+          start = charsStartIndex(strSymbols, chrSymbols),
+          end = charsEndIndex(strSymbols, chrSymbols) + 1;
+
+      return castSlice(strSymbols, start, end).join('');
+    }
 
-                        /**
-                         * Creates a function that gets the argument at index `n`. If `n` is negative,
-                         * the nth argument from the end is returned.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {number} [n=0] The index of the argument to return.
-                         * @returns {Function} Returns the new pass-thru function.
-                         * @example
-                         *
-                         * var func = _.nthArg(1);
-                         * func('a', 'b', 'c', 'd');
-                         * // => 'b'
-                         *
-                         * var func = _.nthArg(-2);
-                         * func('a', 'b', 'c', 'd');
-                         * // => 'c'
-                         */
-                        function nthArg(n) {
-                            n = toInteger(n);
-                            return baseRest(function(args) {
-                                return baseNth(args, n);
-                            });
-                        }
+    /**
+     * Removes trailing whitespace or specified characters from `string`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to trim.
+     * @param {string} [chars=whitespace] The characters to trim.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {string} Returns the trimmed string.
+     * @example
+     *
+     * _.trimEnd('  abc  ');
+     * // => '  abc'
+     *
+     * _.trimEnd('-_-abc-_-', '_-');
+     * // => '-_-abc'
+     */
+    function trimEnd(string, chars, guard) {
+      string = toString(string);
+      if (string && (guard || chars === undefined)) {
+        return string.replace(reTrimEnd, '');
+      }
+      if (!string || !(chars = baseToString(chars))) {
+        return string;
+      }
+      var strSymbols = stringToArray(string),
+          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
+
+      return castSlice(strSymbols, 0, end).join('');
+    }
 
-                        /**
-                         * Creates a function that invokes `iteratees` with the arguments it receives
-                         * and returns their results.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {...(Function|Function[])} [iteratees=[_.identity]]
-                         *  The iteratees to invoke.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var func = _.over([Math.max, Math.min]);
-                         *
-                         * func(1, 2, 3, 4);
-                         * // => [4, 1]
-                         */
-                        var over = createOver(arrayMap);
-
-                        /**
-                         * Creates a function that checks if **all** of the `predicates` return
-                         * truthy when invoked with the arguments it receives.
-                         *
-                         * Following shorthands are possible for providing predicates.
-                         * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
-                         * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {...(Function|Function[])} [predicates=[_.identity]]
-                         *  The predicates to check.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var func = _.overEvery([Boolean, isFinite]);
-                         *
-                         * func('1');
-                         * // => true
-                         *
-                         * func(null);
-                         * // => false
-                         *
-                         * func(NaN);
-                         * // => false
-                         */
-                        var overEvery = createOver(arrayEvery);
-
-                        /**
-                         * Creates a function that checks if **any** of the `predicates` return
-                         * truthy when invoked with the arguments it receives.
-                         *
-                         * Following shorthands are possible for providing predicates.
-                         * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
-                         * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {...(Function|Function[])} [predicates=[_.identity]]
-                         *  The predicates to check.
-                         * @returns {Function} Returns the new function.
-                         * @example
-                         *
-                         * var func = _.overSome([Boolean, isFinite]);
-                         *
-                         * func('1');
-                         * // => true
-                         *
-                         * func(null);
-                         * // => true
-                         *
-                         * func(NaN);
-                         * // => false
-                         *
-                         * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
-                         * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
-                         */
-                        var overSome = createOver(arraySome);
-
-                        /**
-                         * Creates a function that returns the value at `path` of a given object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 2.4.0
-                         * @category Util
-                         * @param {Array|string} path The path of the property to get.
-                         * @returns {Function} Returns the new accessor function.
-                         * @example
-                         *
-                         * var objects = [
-                         *   { 'a': { 'b': 2 } },
-                         *   { 'a': { 'b': 1 } }
-                         * ];
-                         *
-                         * _.map(objects, _.property('a.b'));
-                         * // => [2, 1]
-                         *
-                         * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
-                         * // => [1, 2]
-                         */
-                        function property(path) {
-                            return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
-                        }
+    /**
+     * Removes leading whitespace or specified characters from `string`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to trim.
+     * @param {string} [chars=whitespace] The characters to trim.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {string} Returns the trimmed string.
+     * @example
+     *
+     * _.trimStart('  abc  ');
+     * // => 'abc  '
+     *
+     * _.trimStart('-_-abc-_-', '_-');
+     * // => 'abc-_-'
+     */
+    function trimStart(string, chars, guard) {
+      string = toString(string);
+      if (string && (guard || chars === undefined)) {
+        return string.replace(reTrimStart, '');
+      }
+      if (!string || !(chars = baseToString(chars))) {
+        return string;
+      }
+      var strSymbols = stringToArray(string),
+          start = charsStartIndex(strSymbols, stringToArray(chars));
+
+      return castSlice(strSymbols, start).join('');
+    }
 
-                        /**
-                         * The opposite of `_.property`; this method creates a function that returns
-                         * the value at a given path of `object`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.0.0
-                         * @category Util
-                         * @param {Object} object The object to query.
-                         * @returns {Function} Returns the new accessor function.
-                         * @example
-                         *
-                         * var array = [0, 1, 2],
-                         *     object = { 'a': array, 'b': array, 'c': array };
-                         *
-                         * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
-                         * // => [2, 0]
-                         *
-                         * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
-                         * // => [2, 0]
-                         */
-                        function propertyOf(object) {
-                            return function(path) {
-                                return object == null ? undefined : baseGet(object, path);
-                            };
-                        }
+    /**
+     * Truncates `string` if it's longer than the given maximum string length.
+     * The last characters of the truncated string are replaced with the omission
+     * string which defaults to "...".
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to truncate.
+     * @param {Object} [options={}] The options object.
+     * @param {number} [options.length=30] The maximum string length.
+     * @param {string} [options.omission='...'] The string to indicate text is omitted.
+     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
+     * @returns {string} Returns the truncated string.
+     * @example
+     *
+     * _.truncate('hi-diddly-ho there, neighborino');
+     * // => 'hi-diddly-ho there, neighbo...'
+     *
+     * _.truncate('hi-diddly-ho there, neighborino', {
+     *   'length': 24,
+     *   'separator': ' '
+     * });
+     * // => 'hi-diddly-ho there,...'
+     *
+     * _.truncate('hi-diddly-ho there, neighborino', {
+     *   'length': 24,
+     *   'separator': /,? +/
+     * });
+     * // => 'hi-diddly-ho there...'
+     *
+     * _.truncate('hi-diddly-ho there, neighborino', {
+     *   'omission': ' [...]'
+     * });
+     * // => 'hi-diddly-ho there, neig [...]'
+     */
+    function truncate(string, options) {
+      var length = DEFAULT_TRUNC_LENGTH,
+          omission = DEFAULT_TRUNC_OMISSION;
+
+      if (isObject(options)) {
+        var separator = 'separator' in options ? options.separator : separator;
+        length = 'length' in options ? toInteger(options.length) : length;
+        omission = 'omission' in options ? baseToString(options.omission) : omission;
+      }
+      string = toString(string);
+
+      var strLength = string.length;
+      if (hasUnicode(string)) {
+        var strSymbols = stringToArray(string);
+        strLength = strSymbols.length;
+      }
+      if (length >= strLength) {
+        return string;
+      }
+      var end = length - stringSize(omission);
+      if (end < 1) {
+        return omission;
+      }
+      var result = strSymbols
+        ? castSlice(strSymbols, 0, end).join('')
+        : string.slice(0, end);
+
+      if (separator === undefined) {
+        return result + omission;
+      }
+      if (strSymbols) {
+        end += (result.length - end);
+      }
+      if (isRegExp(separator)) {
+        if (string.slice(end).search(separator)) {
+          var match,
+              substring = result;
+
+          if (!separator.global) {
+            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
+          }
+          separator.lastIndex = 0;
+          while ((match = separator.exec(substring))) {
+            var newEnd = match.index;
+          }
+          result = result.slice(0, newEnd === undefined ? end : newEnd);
+        }
+      } else if (string.indexOf(baseToString(separator), end) != end) {
+        var index = result.lastIndexOf(separator);
+        if (index > -1) {
+          result = result.slice(0, index);
+        }
+      }
+      return result + omission;
+    }
 
-                        /**
-                         * Creates an array of numbers (positive and/or negative) progressing from
-                         * `start` up to, but not including, `end`. A step of `-1` is used if a negative
-                         * `start` is specified without an `end` or `step`. If `end` is not specified,
-                         * it's set to `start` with `start` then set to `0`.
-                         *
-                         * **Note:** JavaScript follows the IEEE-754 standard for resolving
-                         * floating-point values which can produce unexpected results.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {number} [start=0] The start of the range.
-                         * @param {number} end The end of the range.
-                         * @param {number} [step=1] The value to increment or decrement by.
-                         * @returns {Array} Returns the range of numbers.
-                         * @see _.inRange, _.rangeRight
-                         * @example
-                         *
-                         * _.range(4);
-                         * // => [0, 1, 2, 3]
-                         *
-                         * _.range(-4);
-                         * // => [0, -1, -2, -3]
-                         *
-                         * _.range(1, 5);
-                         * // => [1, 2, 3, 4]
-                         *
-                         * _.range(0, 20, 5);
-                         * // => [0, 5, 10, 15]
-                         *
-                         * _.range(0, -4, -1);
-                         * // => [0, -1, -2, -3]
-                         *
-                         * _.range(1, 4, 0);
-                         * // => [1, 1, 1]
-                         *
-                         * _.range(0);
-                         * // => []
-                         */
-                        var range = createRange();
-
-                        /**
-                         * This method is like `_.range` except that it populates values in
-                         * descending order.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {number} [start=0] The start of the range.
-                         * @param {number} end The end of the range.
-                         * @param {number} [step=1] The value to increment or decrement by.
-                         * @returns {Array} Returns the range of numbers.
-                         * @see _.inRange, _.range
-                         * @example
-                         *
-                         * _.rangeRight(4);
-                         * // => [3, 2, 1, 0]
-                         *
-                         * _.rangeRight(-4);
-                         * // => [-3, -2, -1, 0]
-                         *
-                         * _.rangeRight(1, 5);
-                         * // => [4, 3, 2, 1]
-                         *
-                         * _.rangeRight(0, 20, 5);
-                         * // => [15, 10, 5, 0]
-                         *
-                         * _.rangeRight(0, -4, -1);
-                         * // => [-3, -2, -1, 0]
-                         *
-                         * _.rangeRight(1, 4, 0);
-                         * // => [1, 1, 1]
-                         *
-                         * _.rangeRight(0);
-                         * // => []
-                         */
-                        var rangeRight = createRange(true);
-
-                        /**
-                         * This method returns a new empty array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.13.0
-                         * @category Util
-                         * @returns {Array} Returns the new empty array.
-                         * @example
-                         *
-                         * var arrays = _.times(2, _.stubArray);
-                         *
-                         * console.log(arrays);
-                         * // => [[], []]
-                         *
-                         * console.log(arrays[0] === arrays[1]);
-                         * // => false
-                         */
-                        function stubArray() {
-                            return [];
-                        }
+    /**
+     * The inverse of `_.escape`; this method converts the HTML entities
+     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
+     * their corresponding characters.
+     *
+     * **Note:** No other HTML entities are unescaped. To unescape additional
+     * HTML entities use a third-party library like [_he_](https://mths.be/he).
+     *
+     * @static
+     * @memberOf _
+     * @since 0.6.0
+     * @category String
+     * @param {string} [string=''] The string to unescape.
+     * @returns {string} Returns the unescaped string.
+     * @example
+     *
+     * _.unescape('fred, barney, &amp; pebbles');
+     * // => 'fred, barney, & pebbles'
+     */
+    function unescape(string) {
+      string = toString(string);
+      return (string && reHasEscapedHtml.test(string))
+        ? string.replace(reEscapedHtml, unescapeHtmlChar)
+        : string;
+    }
 
-                        /**
-                         * This method returns `false`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.13.0
-                         * @category Util
-                         * @returns {boolean} Returns `false`.
-                         * @example
-                         *
-                         * _.times(2, _.stubFalse);
-                         * // => [false, false]
-                         */
-                        function stubFalse() {
-                            return false;
-                        }
+    /**
+     * Converts `string`, as space separated words, to upper case.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the upper cased string.
+     * @example
+     *
+     * _.upperCase('--foo-bar');
+     * // => 'FOO BAR'
+     *
+     * _.upperCase('fooBar');
+     * // => 'FOO BAR'
+     *
+     * _.upperCase('__foo_bar__');
+     * // => 'FOO BAR'
+     */
+    var upperCase = createCompounder(function(result, word, index) {
+      return result + (index ? ' ' : '') + word.toUpperCase();
+    });
+
+    /**
+     * Converts the first character of `string` to upper case.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category String
+     * @param {string} [string=''] The string to convert.
+     * @returns {string} Returns the converted string.
+     * @example
+     *
+     * _.upperFirst('fred');
+     * // => 'Fred'
+     *
+     * _.upperFirst('FRED');
+     * // => 'FRED'
+     */
+    var upperFirst = createCaseFirst('toUpperCase');
+
+    /**
+     * Splits `string` into an array of its words.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category String
+     * @param {string} [string=''] The string to inspect.
+     * @param {RegExp|string} [pattern] The pattern to match words.
+     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+     * @returns {Array} Returns the words of `string`.
+     * @example
+     *
+     * _.words('fred, barney, & pebbles');
+     * // => ['fred', 'barney', 'pebbles']
+     *
+     * _.words('fred, barney, & pebbles', /[^, ]+/g);
+     * // => ['fred', 'barney', '&', 'pebbles']
+     */
+    function words(string, pattern, guard) {
+      string = toString(string);
+      pattern = guard ? undefined : pattern;
+
+      if (pattern === undefined) {
+        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
+      }
+      return string.match(pattern) || [];
+    }
 
-                        /**
-                         * This method returns a new empty object.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.13.0
-                         * @category Util
-                         * @returns {Object} Returns the new empty object.
-                         * @example
-                         *
-                         * var objects = _.times(2, _.stubObject);
-                         *
-                         * console.log(objects);
-                         * // => [{}, {}]
-                         *
-                         * console.log(objects[0] === objects[1]);
-                         * // => false
-                         */
-                        function stubObject() {
-                            return {};
-                        }
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Attempts to invoke `func`, returning either the result or the caught error
+     * object. Any additional arguments are provided to `func` when it's invoked.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Util
+     * @param {Function} func The function to attempt.
+     * @param {...*} [args] The arguments to invoke `func` with.
+     * @returns {*} Returns the `func` result or error object.
+     * @example
+     *
+     * // Avoid throwing errors for invalid selectors.
+     * var elements = _.attempt(function(selector) {
+     *   return document.querySelectorAll(selector);
+     * }, '>_>');
+     *
+     * if (_.isError(elements)) {
+     *   elements = [];
+     * }
+     */
+    var attempt = baseRest(function(func, args) {
+      try {
+        return apply(func, undefined, args);
+      } catch (e) {
+        return isError(e) ? e : new Error(e);
+      }
+    });
+
+    /**
+     * Binds methods of an object to the object itself, overwriting the existing
+     * method.
+     *
+     * **Note:** This method doesn't set the "length" property of bound functions.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {Object} object The object to bind and assign the bound methods to.
+     * @param {...(string|string[])} methodNames The object method names to bind.
+     * @returns {Object} Returns `object`.
+     * @example
+     *
+     * var view = {
+     *   'label': 'docs',
+     *   'click': function() {
+     *     console.log('clicked ' + this.label);
+     *   }
+     * };
+     *
+     * _.bindAll(view, ['click']);
+     * jQuery(element).on('click', view.click);
+     * // => Logs 'clicked docs' when clicked.
+     */
+    var bindAll = flatRest(function(object, methodNames) {
+      arrayEach(methodNames, function(key) {
+        key = toKey(key);
+        baseAssignValue(object, key, bind(object[key], object));
+      });
+      return object;
+    });
+
+    /**
+     * Creates a function that iterates over `pairs` and invokes the corresponding
+     * function of the first predicate to return truthy. The predicate-function
+     * pairs are invoked with the `this` binding and arguments of the created
+     * function.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {Array} pairs The predicate-function pairs.
+     * @returns {Function} Returns the new composite function.
+     * @example
+     *
+     * var func = _.cond([
+     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
+     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
+     *   [_.stubTrue,                      _.constant('no match')]
+     * ]);
+     *
+     * func({ 'a': 1, 'b': 2 });
+     * // => 'matches A'
+     *
+     * func({ 'a': 0, 'b': 1 });
+     * // => 'matches B'
+     *
+     * func({ 'a': '1', 'b': '2' });
+     * // => 'no match'
+     */
+    function cond(pairs) {
+      var length = pairs == null ? 0 : pairs.length,
+          toIteratee = getIteratee();
+
+      pairs = !length ? [] : arrayMap(pairs, function(pair) {
+        if (typeof pair[1] != 'function') {
+          throw new TypeError(FUNC_ERROR_TEXT);
+        }
+        return [toIteratee(pair[0]), pair[1]];
+      });
 
-                        /**
-                         * This method returns an empty string.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.13.0
-                         * @category Util
-                         * @returns {string} Returns the empty string.
-                         * @example
-                         *
-                         * _.times(2, _.stubString);
-                         * // => ['', '']
-                         */
-                        function stubString() {
-                            return '';
-                        }
+      return baseRest(function(args) {
+        var index = -1;
+        while (++index < length) {
+          var pair = pairs[index];
+          if (apply(pair[0], this, args)) {
+            return apply(pair[1], this, args);
+          }
+        }
+      });
+    }
 
-                        /**
-                         * This method returns `true`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.13.0
-                         * @category Util
-                         * @returns {boolean} Returns `true`.
-                         * @example
-                         *
-                         * _.times(2, _.stubTrue);
-                         * // => [true, true]
-                         */
-                        function stubTrue() {
-                            return true;
-                        }
+    /**
+     * Creates a function that invokes the predicate properties of `source` with
+     * the corresponding property values of a given object, returning `true` if
+     * all predicates return truthy, else `false`.
+     *
+     * **Note:** The created function is equivalent to `_.conformsTo` with
+     * `source` partially applied.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {Object} source The object of property predicates to conform to.
+     * @returns {Function} Returns the new spec function.
+     * @example
+     *
+     * var objects = [
+     *   { 'a': 2, 'b': 1 },
+     *   { 'a': 1, 'b': 2 }
+     * ];
+     *
+     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
+     * // => [{ 'a': 1, 'b': 2 }]
+     */
+    function conforms(source) {
+      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
+    }
 
-                        /**
-                         * Invokes the iteratee `n` times, returning an array of the results of
-                         * each invocation. The iteratee is invoked with one argument; (index).
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {number} n The number of times to invoke `iteratee`.
-                         * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-                         * @returns {Array} Returns the array of results.
-                         * @example
-                         *
-                         * _.times(3, String);
-                         * // => ['0', '1', '2']
-                         *
-                         *  _.times(4, _.constant(0));
-                         * // => [0, 0, 0, 0]
-                         */
-                        function times(n, iteratee) {
-                            n = toInteger(n);
-                            if (n < 1 || n > MAX_SAFE_INTEGER) {
-                                return [];
-                            }
-                            var index = MAX_ARRAY_LENGTH,
-                                length = nativeMin(n, MAX_ARRAY_LENGTH);
+    /**
+     * Creates a function that returns `value`.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.4.0
+     * @category Util
+     * @param {*} value The value to return from the new function.
+     * @returns {Function} Returns the new constant function.
+     * @example
+     *
+     * var objects = _.times(2, _.constant({ 'a': 1 }));
+     *
+     * console.log(objects);
+     * // => [{ 'a': 1 }, { 'a': 1 }]
+     *
+     * console.log(objects[0] === objects[1]);
+     * // => true
+     */
+    function constant(value) {
+      return function() {
+        return value;
+      };
+    }
 
-                            iteratee = getIteratee(iteratee);
-                            n -= MAX_ARRAY_LENGTH;
+    /**
+     * Checks `value` to determine whether a default value should be returned in
+     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
+     * or `undefined`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.14.0
+     * @category Util
+     * @param {*} value The value to check.
+     * @param {*} defaultValue The default value.
+     * @returns {*} Returns the resolved value.
+     * @example
+     *
+     * _.defaultTo(1, 10);
+     * // => 1
+     *
+     * _.defaultTo(undefined, 10);
+     * // => 10
+     */
+    function defaultTo(value, defaultValue) {
+      return (value == null || value !== value) ? defaultValue : value;
+    }
 
-                            var result = baseTimes(length, iteratee);
-                            while (++index < n) {
-                                iteratee(index);
-                            }
-                            return result;
-                        }
+    /**
+     * Creates a function that returns the result of invoking the given functions
+     * with the `this` binding of the created function, where each successive
+     * invocation is supplied the return value of the previous.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Util
+     * @param {...(Function|Function[])} [funcs] The functions to invoke.
+     * @returns {Function} Returns the new composite function.
+     * @see _.flowRight
+     * @example
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * var addSquare = _.flow([_.add, square]);
+     * addSquare(1, 2);
+     * // => 9
+     */
+    var flow = createFlow();
+
+    /**
+     * This method is like `_.flow` except that it creates a function that
+     * invokes the given functions from right to left.
+     *
+     * @static
+     * @since 3.0.0
+     * @memberOf _
+     * @category Util
+     * @param {...(Function|Function[])} [funcs] The functions to invoke.
+     * @returns {Function} Returns the new composite function.
+     * @see _.flow
+     * @example
+     *
+     * function square(n) {
+     *   return n * n;
+     * }
+     *
+     * var addSquare = _.flowRight([square, _.add]);
+     * addSquare(1, 2);
+     * // => 9
+     */
+    var flowRight = createFlow(true);
+
+    /**
+     * This method returns the first argument it receives.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {*} value Any value.
+     * @returns {*} Returns `value`.
+     * @example
+     *
+     * var object = { 'a': 1 };
+     *
+     * console.log(_.identity(object) === object);
+     * // => true
+     */
+    function identity(value) {
+      return value;
+    }
 
-                        /**
-                         * Converts `value` to a property path array.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Util
-                         * @param {*} value The value to convert.
-                         * @returns {Array} Returns the new property path array.
-                         * @example
-                         *
-                         * _.toPath('a.b.c');
-                         * // => ['a', 'b', 'c']
-                         *
-                         * _.toPath('a[0].b.c');
-                         * // => ['a', '0', 'b', 'c']
-                         */
-                        function toPath(value) {
-                            if (isArray(value)) {
-                                return arrayMap(value, toKey);
-                            }
-                            return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
-                        }
+    /**
+     * Creates a function that invokes `func` with the arguments of the created
+     * function. If `func` is a property name, the created function returns the
+     * property value for a given element. If `func` is an array or object, the
+     * created function returns `true` for elements that contain the equivalent
+     * source properties, otherwise it returns `false`.
+     *
+     * @static
+     * @since 4.0.0
+     * @memberOf _
+     * @category Util
+     * @param {*} [func=_.identity] The value to convert to a callback.
+     * @returns {Function} Returns the callback.
+     * @example
+     *
+     * var users = [
+     *   { 'user': 'barney', 'age': 36, 'active': true },
+     *   { 'user': 'fred',   'age': 40, 'active': false }
+     * ];
+     *
+     * // The `_.matches` iteratee shorthand.
+     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
+     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
+     *
+     * // The `_.matchesProperty` iteratee shorthand.
+     * _.filter(users, _.iteratee(['user', 'fred']));
+     * // => [{ 'user': 'fred', 'age': 40 }]
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.map(users, _.iteratee('user'));
+     * // => ['barney', 'fred']
+     *
+     * // Create custom iteratee shorthands.
+     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
+     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
+     *     return func.test(string);
+     *   };
+     * });
+     *
+     * _.filter(['abc', 'def'], /ef/);
+     * // => ['def']
+     */
+    function iteratee(func) {
+      return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
+    }
 
-                        /**
-                         * Generates a unique ID. If `prefix` is given, the ID is appended to it.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Util
-                         * @param {string} [prefix=''] The value to prefix the ID with.
-                         * @returns {string} Returns the unique ID.
-                         * @example
-                         *
-                         * _.uniqueId('contact_');
-                         * // => 'contact_104'
-                         *
-                         * _.uniqueId();
-                         * // => '105'
-                         */
-                        function uniqueId(prefix) {
-                            var id = ++idCounter;
-                            return toString(prefix) + id;
-                        }
+    /**
+     * Creates a function that performs a partial deep comparison between a given
+     * object and `source`, returning `true` if the given object has equivalent
+     * property values, else `false`.
+     *
+     * **Note:** The created function is equivalent to `_.isMatch` with `source`
+     * partially applied.
+     *
+     * Partial comparisons will match empty array and empty object `source`
+     * values against any array or object value, respectively. See `_.isEqual`
+     * for a list of supported value comparisons.
+     *
+     * **Note:** Multiple values can be checked by combining several matchers
+     * using `_.overSome`
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Util
+     * @param {Object} source The object of property values to match.
+     * @returns {Function} Returns the new spec function.
+     * @example
+     *
+     * var objects = [
+     *   { 'a': 1, 'b': 2, 'c': 3 },
+     *   { 'a': 4, 'b': 5, 'c': 6 }
+     * ];
+     *
+     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
+     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
+     *
+     * // Checking for several possible values
+     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
+     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
+     */
+    function matches(source) {
+      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * Adds two numbers.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.4.0
-                         * @category Math
-                         * @param {number} augend The first number in an addition.
-                         * @param {number} addend The second number in an addition.
-                         * @returns {number} Returns the total.
-                         * @example
-                         *
-                         * _.add(6, 4);
-                         * // => 10
-                         */
-                        var add = createMathOperation(function(augend, addend) {
-                            return augend + addend;
-                        }, 0);
-
-                        /**
-                         * Computes `number` rounded up to `precision`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.10.0
-                         * @category Math
-                         * @param {number} number The number to round up.
-                         * @param {number} [precision=0] The precision to round up to.
-                         * @returns {number} Returns the rounded up number.
-                         * @example
-                         *
-                         * _.ceil(4.006);
-                         * // => 5
-                         *
-                         * _.ceil(6.004, 2);
-                         * // => 6.01
-                         *
-                         * _.ceil(6040, -2);
-                         * // => 6100
-                         */
-                        var ceil = createRound('ceil');
-
-                        /**
-                         * Divide two numbers.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.7.0
-                         * @category Math
-                         * @param {number} dividend The first number in a division.
-                         * @param {number} divisor The second number in a division.
-                         * @returns {number} Returns the quotient.
-                         * @example
-                         *
-                         * _.divide(6, 4);
-                         * // => 1.5
-                         */
-                        var divide = createMathOperation(function(dividend, divisor) {
-                            return dividend / divisor;
-                        }, 1);
-
-                        /**
-                         * Computes `number` rounded down to `precision`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.10.0
-                         * @category Math
-                         * @param {number} number The number to round down.
-                         * @param {number} [precision=0] The precision to round down to.
-                         * @returns {number} Returns the rounded down number.
-                         * @example
-                         *
-                         * _.floor(4.006);
-                         * // => 4
-                         *
-                         * _.floor(0.046, 2);
-                         * // => 0.04
-                         *
-                         * _.floor(4060, -2);
-                         * // => 4000
-                         */
-                        var floor = createRound('floor');
-
-                        /**
-                         * Computes the maximum value of `array`. If `array` is empty or falsey,
-                         * `undefined` is returned.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @returns {*} Returns the maximum value.
-                         * @example
-                         *
-                         * _.max([4, 2, 8, 6]);
-                         * // => 8
-                         *
-                         * _.max([]);
-                         * // => undefined
-                         */
-                        function max(array) {
-                            return (array && array.length)
-                                ? baseExtremum(array, identity, baseGt)
-                                : undefined;
-                        }
+    /**
+     * Creates a function that performs a partial deep comparison between the
+     * value at `path` of a given object to `srcValue`, returning `true` if the
+     * object value is equivalent, else `false`.
+     *
+     * **Note:** Partial comparisons will match empty array and empty object
+     * `srcValue` values against any array or object value, respectively. See
+     * `_.isEqual` for a list of supported value comparisons.
+     *
+     * **Note:** Multiple values can be checked by combining several matchers
+     * using `_.overSome`
+     *
+     * @static
+     * @memberOf _
+     * @since 3.2.0
+     * @category Util
+     * @param {Array|string} path The path of the property to get.
+     * @param {*} srcValue The value to match.
+     * @returns {Function} Returns the new spec function.
+     * @example
+     *
+     * var objects = [
+     *   { 'a': 1, 'b': 2, 'c': 3 },
+     *   { 'a': 4, 'b': 5, 'c': 6 }
+     * ];
+     *
+     * _.find(objects, _.matchesProperty('a', 4));
+     * // => { 'a': 4, 'b': 5, 'c': 6 }
+     *
+     * // Checking for several possible values
+     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
+     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
+     */
+    function matchesProperty(path, srcValue) {
+      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
+    }
 
-                        /**
-                         * This method is like `_.max` except that it accepts `iteratee` which is
-                         * invoked for each element in `array` to generate the criterion by which
-                         * the value is ranked. The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {*} Returns the maximum value.
-                         * @example
-                         *
-                         * var objects = [{ 'n': 1 }, { 'n': 2 }];
-                         *
-                         * _.maxBy(objects, function(o) { return o.n; });
-                         * // => { 'n': 2 }
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.maxBy(objects, 'n');
-                         * // => { 'n': 2 }
-                         */
-                        function maxBy(array, iteratee) {
-                            return (array && array.length)
-                                ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
-                                : undefined;
-                        }
+    /**
+     * Creates a function that invokes the method at `path` of a given object.
+     * Any additional arguments are provided to the invoked method.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.7.0
+     * @category Util
+     * @param {Array|string} path The path of the method to invoke.
+     * @param {...*} [args] The arguments to invoke the method with.
+     * @returns {Function} Returns the new invoker function.
+     * @example
+     *
+     * var objects = [
+     *   { 'a': { 'b': _.constant(2) } },
+     *   { 'a': { 'b': _.constant(1) } }
+     * ];
+     *
+     * _.map(objects, _.method('a.b'));
+     * // => [2, 1]
+     *
+     * _.map(objects, _.method(['a', 'b']));
+     * // => [2, 1]
+     */
+    var method = baseRest(function(path, args) {
+      return function(object) {
+        return baseInvoke(object, path, args);
+      };
+    });
+
+    /**
+     * The opposite of `_.method`; this method creates a function that invokes
+     * the method at a given path of `object`. Any additional arguments are
+     * provided to the invoked method.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.7.0
+     * @category Util
+     * @param {Object} object The object to query.
+     * @param {...*} [args] The arguments to invoke the method with.
+     * @returns {Function} Returns the new invoker function.
+     * @example
+     *
+     * var array = _.times(3, _.constant),
+     *     object = { 'a': array, 'b': array, 'c': array };
+     *
+     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
+     * // => [2, 0]
+     *
+     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
+     * // => [2, 0]
+     */
+    var methodOf = baseRest(function(object, args) {
+      return function(path) {
+        return baseInvoke(object, path, args);
+      };
+    });
+
+    /**
+     * Adds all own enumerable string keyed function properties of a source
+     * object to the destination object. If `object` is a function, then methods
+     * are added to its prototype as well.
+     *
+     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
+     * avoid conflicts caused by modifying the original.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {Function|Object} [object=lodash] The destination object.
+     * @param {Object} source The object of functions to add.
+     * @param {Object} [options={}] The options object.
+     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
+     * @returns {Function|Object} Returns `object`.
+     * @example
+     *
+     * function vowels(string) {
+     *   return _.filter(string, function(v) {
+     *     return /[aeiou]/i.test(v);
+     *   });
+     * }
+     *
+     * _.mixin({ 'vowels': vowels });
+     * _.vowels('fred');
+     * // => ['e']
+     *
+     * _('fred').vowels().value();
+     * // => ['e']
+     *
+     * _.mixin({ 'vowels': vowels }, { 'chain': false });
+     * _('fred').vowels();
+     * // => ['e']
+     */
+    function mixin(object, source, options) {
+      var props = keys(source),
+          methodNames = baseFunctions(source, props);
+
+      if (options == null &&
+          !(isObject(source) && (methodNames.length || !props.length))) {
+        options = source;
+        source = object;
+        object = this;
+        methodNames = baseFunctions(source, keys(source));
+      }
+      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
+          isFunc = isFunction(object);
+
+      arrayEach(methodNames, function(methodName) {
+        var func = source[methodName];
+        object[methodName] = func;
+        if (isFunc) {
+          object.prototype[methodName] = function() {
+            var chainAll = this.__chain__;
+            if (chain || chainAll) {
+              var result = object(this.__wrapped__),
+                  actions = result.__actions__ = copyArray(this.__actions__);
+
+              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
+              result.__chain__ = chainAll;
+              return result;
+            }
+            return func.apply(object, arrayPush([this.value()], arguments));
+          };
+        }
+      });
 
-                        /**
-                         * Computes the mean of the values in `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @returns {number} Returns the mean.
-                         * @example
-                         *
-                         * _.mean([4, 2, 8, 6]);
-                         * // => 5
-                         */
-                        function mean(array) {
-                            return baseMean(array, identity);
-                        }
+      return object;
+    }
 
-                        /**
-                         * This method is like `_.mean` except that it accepts `iteratee` which is
-                         * invoked for each element in `array` to generate the value to be averaged.
-                         * The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.7.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {number} Returns the mean.
-                         * @example
-                         *
-                         * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
-                         *
-                         * _.meanBy(objects, function(o) { return o.n; });
-                         * // => 5
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.meanBy(objects, 'n');
-                         * // => 5
-                         */
-                        function meanBy(array, iteratee) {
-                            return baseMean(array, getIteratee(iteratee, 2));
-                        }
+    /**
+     * Reverts the `_` variable to its previous value and returns a reference to
+     * the `lodash` function.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @returns {Function} Returns the `lodash` function.
+     * @example
+     *
+     * var lodash = _.noConflict();
+     */
+    function noConflict() {
+      if (root._ === this) {
+        root._ = oldDash;
+      }
+      return this;
+    }
 
-                        /**
-                         * Computes the minimum value of `array`. If `array` is empty or falsey,
-                         * `undefined` is returned.
-                         *
-                         * @static
-                         * @since 0.1.0
-                         * @memberOf _
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @returns {*} Returns the minimum value.
-                         * @example
-                         *
-                         * _.min([4, 2, 8, 6]);
-                         * // => 2
-                         *
-                         * _.min([]);
-                         * // => undefined
-                         */
-                        function min(array) {
-                            return (array && array.length)
-                                ? baseExtremum(array, identity, baseLt)
-                                : undefined;
-                        }
+    /**
+     * This method returns `undefined`.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.3.0
+     * @category Util
+     * @example
+     *
+     * _.times(2, _.noop);
+     * // => [undefined, undefined]
+     */
+    function noop() {
+      // No operation performed.
+    }
 
-                        /**
-                         * This method is like `_.min` except that it accepts `iteratee` which is
-                         * invoked for each element in `array` to generate the criterion by which
-                         * the value is ranked. The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {*} Returns the minimum value.
-                         * @example
-                         *
-                         * var objects = [{ 'n': 1 }, { 'n': 2 }];
-                         *
-                         * _.minBy(objects, function(o) { return o.n; });
-                         * // => { 'n': 1 }
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.minBy(objects, 'n');
-                         * // => { 'n': 1 }
-                         */
-                        function minBy(array, iteratee) {
-                            return (array && array.length)
-                                ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
-                                : undefined;
-                        }
+    /**
+     * Creates a function that gets the argument at index `n`. If `n` is negative,
+     * the nth argument from the end is returned.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {number} [n=0] The index of the argument to return.
+     * @returns {Function} Returns the new pass-thru function.
+     * @example
+     *
+     * var func = _.nthArg(1);
+     * func('a', 'b', 'c', 'd');
+     * // => 'b'
+     *
+     * var func = _.nthArg(-2);
+     * func('a', 'b', 'c', 'd');
+     * // => 'c'
+     */
+    function nthArg(n) {
+      n = toInteger(n);
+      return baseRest(function(args) {
+        return baseNth(args, n);
+      });
+    }
 
-                        /**
-                         * Multiply two numbers.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.7.0
-                         * @category Math
-                         * @param {number} multiplier The first number in a multiplication.
-                         * @param {number} multiplicand The second number in a multiplication.
-                         * @returns {number} Returns the product.
-                         * @example
-                         *
-                         * _.multiply(6, 4);
-                         * // => 24
-                         */
-                        var multiply = createMathOperation(function(multiplier, multiplicand) {
-                            return multiplier * multiplicand;
-                        }, 1);
-
-                        /**
-                         * Computes `number` rounded to `precision`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.10.0
-                         * @category Math
-                         * @param {number} number The number to round.
-                         * @param {number} [precision=0] The precision to round to.
-                         * @returns {number} Returns the rounded number.
-                         * @example
-                         *
-                         * _.round(4.006);
-                         * // => 4
-                         *
-                         * _.round(4.006, 2);
-                         * // => 4.01
-                         *
-                         * _.round(4060, -2);
-                         * // => 4100
-                         */
-                        var round = createRound('round');
-
-                        /**
-                         * Subtract two numbers.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Math
-                         * @param {number} minuend The first number in a subtraction.
-                         * @param {number} subtrahend The second number in a subtraction.
-                         * @returns {number} Returns the difference.
-                         * @example
-                         *
-                         * _.subtract(6, 4);
-                         * // => 2
-                         */
-                        var subtract = createMathOperation(function(minuend, subtrahend) {
-                            return minuend - subtrahend;
-                        }, 0);
-
-                        /**
-                         * Computes the sum of the values in `array`.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 3.4.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @returns {number} Returns the sum.
-                         * @example
-                         *
-                         * _.sum([4, 2, 8, 6]);
-                         * // => 20
-                         */
-                        function sum(array) {
-                            return (array && array.length)
-                                ? baseSum(array, identity)
-                                : 0;
-                        }
+    /**
+     * Creates a function that invokes `iteratees` with the arguments it receives
+     * and returns their results.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {...(Function|Function[])} [iteratees=[_.identity]]
+     *  The iteratees to invoke.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var func = _.over([Math.max, Math.min]);
+     *
+     * func(1, 2, 3, 4);
+     * // => [4, 1]
+     */
+    var over = createOver(arrayMap);
+
+    /**
+     * Creates a function that checks if **all** of the `predicates` return
+     * truthy when invoked with the arguments it receives.
+     *
+     * Following shorthands are possible for providing predicates.
+     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
+     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {...(Function|Function[])} [predicates=[_.identity]]
+     *  The predicates to check.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var func = _.overEvery([Boolean, isFinite]);
+     *
+     * func('1');
+     * // => true
+     *
+     * func(null);
+     * // => false
+     *
+     * func(NaN);
+     * // => false
+     */
+    var overEvery = createOver(arrayEvery);
+
+    /**
+     * Creates a function that checks if **any** of the `predicates` return
+     * truthy when invoked with the arguments it receives.
+     *
+     * Following shorthands are possible for providing predicates.
+     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
+     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {...(Function|Function[])} [predicates=[_.identity]]
+     *  The predicates to check.
+     * @returns {Function} Returns the new function.
+     * @example
+     *
+     * var func = _.overSome([Boolean, isFinite]);
+     *
+     * func('1');
+     * // => true
+     *
+     * func(null);
+     * // => true
+     *
+     * func(NaN);
+     * // => false
+     *
+     * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
+     * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
+     */
+    var overSome = createOver(arraySome);
+
+    /**
+     * Creates a function that returns the value at `path` of a given object.
+     *
+     * @static
+     * @memberOf _
+     * @since 2.4.0
+     * @category Util
+     * @param {Array|string} path The path of the property to get.
+     * @returns {Function} Returns the new accessor function.
+     * @example
+     *
+     * var objects = [
+     *   { 'a': { 'b': 2 } },
+     *   { 'a': { 'b': 1 } }
+     * ];
+     *
+     * _.map(objects, _.property('a.b'));
+     * // => [2, 1]
+     *
+     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
+     * // => [1, 2]
+     */
+    function property(path) {
+      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
+    }
 
-                        /**
-                         * This method is like `_.sum` except that it accepts `iteratee` which is
-                         * invoked for each element in `array` to generate the value to be summed.
-                         * The iteratee is invoked with one argument: (value).
-                         *
-                         * @static
-                         * @memberOf _
-                         * @since 4.0.0
-                         * @category Math
-                         * @param {Array} array The array to iterate over.
-                         * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-                         * @returns {number} Returns the sum.
-                         * @example
-                         *
-                         * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
-                         *
-                         * _.sumBy(objects, function(o) { return o.n; });
-                         * // => 20
-                         *
-                         * // The `_.property` iteratee shorthand.
-                         * _.sumBy(objects, 'n');
-                         * // => 20
-                         */
-                        function sumBy(array, iteratee) {
-                            return (array && array.length)
-                                ? baseSum(array, getIteratee(iteratee, 2))
-                                : 0;
-                        }
+    /**
+     * The opposite of `_.property`; this method creates a function that returns
+     * the value at a given path of `object`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.0.0
+     * @category Util
+     * @param {Object} object The object to query.
+     * @returns {Function} Returns the new accessor function.
+     * @example
+     *
+     * var array = [0, 1, 2],
+     *     object = { 'a': array, 'b': array, 'c': array };
+     *
+     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
+     * // => [2, 0]
+     *
+     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
+     * // => [2, 0]
+     */
+    function propertyOf(object) {
+      return function(path) {
+        return object == null ? undefined : baseGet(object, path);
+      };
+    }
 
-                        /*------------------------------------------------------------------------*/
-
-                        // Add methods that return wrapped values in chain sequences.
-                        lodash.after = after;
-                        lodash.ary = ary;
-                        lodash.assign = assign;
-                        lodash.assignIn = assignIn;
-                        lodash.assignInWith = assignInWith;
-                        lodash.assignWith = assignWith;
-                        lodash.at = at;
-                        lodash.before = before;
-                        lodash.bind = bind;
-                        lodash.bindAll = bindAll;
-                        lodash.bindKey = bindKey;
-                        lodash.castArray = castArray;
-                        lodash.chain = chain;
-                        lodash.chunk = chunk;
-                        lodash.compact = compact;
-                        lodash.concat = concat;
-                        lodash.cond = cond;
-                        lodash.conforms = conforms;
-                        lodash.constant = constant;
-                        lodash.countBy = countBy;
-                        lodash.create = create;
-                        lodash.curry = curry;
-                        lodash.curryRight = curryRight;
-                        lodash.debounce = debounce;
-                        lodash.defaults = defaults;
-                        lodash.defaultsDeep = defaultsDeep;
-                        lodash.defer = defer;
-                        lodash.delay = delay;
-                        lodash.difference = difference;
-                        lodash.differenceBy = differenceBy;
-                        lodash.differenceWith = differenceWith;
-                        lodash.drop = drop;
-                        lodash.dropRight = dropRight;
-                        lodash.dropRightWhile = dropRightWhile;
-                        lodash.dropWhile = dropWhile;
-                        lodash.fill = fill;
-                        lodash.filter = filter;
-                        lodash.flatMap = flatMap;
-                        lodash.flatMapDeep = flatMapDeep;
-                        lodash.flatMapDepth = flatMapDepth;
-                        lodash.flatten = flatten;
-                        lodash.flattenDeep = flattenDeep;
-                        lodash.flattenDepth = flattenDepth;
-                        lodash.flip = flip;
-                        lodash.flow = flow;
-                        lodash.flowRight = flowRight;
-                        lodash.fromPairs = fromPairs;
-                        lodash.functions = functions;
-                        lodash.functionsIn = functionsIn;
-                        lodash.groupBy = groupBy;
-                        lodash.initial = initial;
-                        lodash.intersection = intersection;
-                        lodash.intersectionBy = intersectionBy;
-                        lodash.intersectionWith = intersectionWith;
-                        lodash.invert = invert;
-                        lodash.invertBy = invertBy;
-                        lodash.invokeMap = invokeMap;
-                        lodash.iteratee = iteratee;
-                        lodash.keyBy = keyBy;
-                        lodash.keys = keys;
-                        lodash.keysIn = keysIn;
-                        lodash.map = map;
-                        lodash.mapKeys = mapKeys;
-                        lodash.mapValues = mapValues;
-                        lodash.matches = matches;
-                        lodash.matchesProperty = matchesProperty;
-                        lodash.memoize = memoize;
-                        lodash.merge = merge;
-                        lodash.mergeWith = mergeWith;
-                        lodash.method = method;
-                        lodash.methodOf = methodOf;
-                        lodash.mixin = mixin;
-                        lodash.negate = negate;
-                        lodash.nthArg = nthArg;
-                        lodash.omit = omit;
-                        lodash.omitBy = omitBy;
-                        lodash.once = once;
-                        lodash.orderBy = orderBy;
-                        lodash.over = over;
-                        lodash.overArgs = overArgs;
-                        lodash.overEvery = overEvery;
-                        lodash.overSome = overSome;
-                        lodash.partial = partial;
-                        lodash.partialRight = partialRight;
-                        lodash.partition = partition;
-                        lodash.pick = pick;
-                        lodash.pickBy = pickBy;
-                        lodash.property = property;
-                        lodash.propertyOf = propertyOf;
-                        lodash.pull = pull;
-                        lodash.pullAll = pullAll;
-                        lodash.pullAllBy = pullAllBy;
-                        lodash.pullAllWith = pullAllWith;
-                        lodash.pullAt = pullAt;
-                        lodash.range = range;
-                        lodash.rangeRight = rangeRight;
-                        lodash.rearg = rearg;
-                        lodash.reject = reject;
-                        lodash.remove = remove;
-                        lodash.rest = rest;
-                        lodash.reverse = reverse;
-                        lodash.sampleSize = sampleSize;
-                        lodash.set = set;
-                        lodash.setWith = setWith;
-                        lodash.shuffle = shuffle;
-                        lodash.slice = slice;
-                        lodash.sortBy = sortBy;
-                        lodash.sortedUniq = sortedUniq;
-                        lodash.sortedUniqBy = sortedUniqBy;
-                        lodash.split = split;
-                        lodash.spread = spread;
-                        lodash.tail = tail;
-                        lodash.take = take;
-                        lodash.takeRight = takeRight;
-                        lodash.takeRightWhile = takeRightWhile;
-                        lodash.takeWhile = takeWhile;
-                        lodash.tap = tap;
-                        lodash.throttle = throttle;
-                        lodash.thru = thru;
-                        lodash.toArray = toArray;
-                        lodash.toPairs = toPairs;
-                        lodash.toPairsIn = toPairsIn;
-                        lodash.toPath = toPath;
-                        lodash.toPlainObject = toPlainObject;
-                        lodash.transform = transform;
-                        lodash.unary = unary;
-                        lodash.union = union;
-                        lodash.unionBy = unionBy;
-                        lodash.unionWith = unionWith;
-                        lodash.uniq = uniq;
-                        lodash.uniqBy = uniqBy;
-                        lodash.uniqWith = uniqWith;
-                        lodash.unset = unset;
-                        lodash.unzip = unzip;
-                        lodash.unzipWith = unzipWith;
-                        lodash.update = update;
-                        lodash.updateWith = updateWith;
-                        lodash.values = values;
-                        lodash.valuesIn = valuesIn;
-                        lodash.without = without;
-                        lodash.words = words;
-                        lodash.wrap = wrap;
-                        lodash.xor = xor;
-                        lodash.xorBy = xorBy;
-                        lodash.xorWith = xorWith;
-                        lodash.zip = zip;
-                        lodash.zipObject = zipObject;
-                        lodash.zipObjectDeep = zipObjectDeep;
-                        lodash.zipWith = zipWith;
-
-                        // Add aliases.
-                        lodash.entries = toPairs;
-                        lodash.entriesIn = toPairsIn;
-                        lodash.extend = assignIn;
-                        lodash.extendWith = assignInWith;
-
-                        // Add methods to `lodash.prototype`.
-                        mixin(lodash, lodash);
-
-                        /*------------------------------------------------------------------------*/
-
-                        // Add methods that return unwrapped values in chain sequences.
-                        lodash.add = add;
-                        lodash.attempt = attempt;
-                        lodash.camelCase = camelCase;
-                        lodash.capitalize = capitalize;
-                        lodash.ceil = ceil;
-                        lodash.clamp = clamp;
-                        lodash.clone = clone;
-                        lodash.cloneDeep = cloneDeep;
-                        lodash.cloneDeepWith = cloneDeepWith;
-                        lodash.cloneWith = cloneWith;
-                        lodash.conformsTo = conformsTo;
-                        lodash.deburr = deburr;
-                        lodash.defaultTo = defaultTo;
-                        lodash.divide = divide;
-                        lodash.endsWith = endsWith;
-                        lodash.eq = eq;
-                        lodash.escape = escape;
-                        lodash.escapeRegExp = escapeRegExp;
-                        lodash.every = every;
-                        lodash.find = find;
-                        lodash.findIndex = findIndex;
-                        lodash.findKey = findKey;
-                        lodash.findLast = findLast;
-                        lodash.findLastIndex = findLastIndex;
-                        lodash.findLastKey = findLastKey;
-                        lodash.floor = floor;
-                        lodash.forEach = forEach;
-                        lodash.forEachRight = forEachRight;
-                        lodash.forIn = forIn;
-                        lodash.forInRight = forInRight;
-                        lodash.forOwn = forOwn;
-                        lodash.forOwnRight = forOwnRight;
-                        lodash.get = get;
-                        lodash.gt = gt;
-                        lodash.gte = gte;
-                        lodash.has = has;
-                        lodash.hasIn = hasIn;
-                        lodash.head = head;
-                        lodash.identity = identity;
-                        lodash.includes = includes;
-                        lodash.indexOf = indexOf;
-                        lodash.inRange = inRange;
-                        lodash.invoke = invoke;
-                        lodash.isArguments = isArguments;
-                        lodash.isArray = isArray;
-                        lodash.isArrayBuffer = isArrayBuffer;
-                        lodash.isArrayLike = isArrayLike;
-                        lodash.isArrayLikeObject = isArrayLikeObject;
-                        lodash.isBoolean = isBoolean;
-                        lodash.isBuffer = isBuffer;
-                        lodash.isDate = isDate;
-                        lodash.isElement = isElement;
-                        lodash.isEmpty = isEmpty;
-                        lodash.isEqual = isEqual;
-                        lodash.isEqualWith = isEqualWith;
-                        lodash.isError = isError;
-                        lodash.isFinite = isFinite;
-                        lodash.isFunction = isFunction;
-                        lodash.isInteger = isInteger;
-                        lodash.isLength = isLength;
-                        lodash.isMap = isMap;
-                        lodash.isMatch = isMatch;
-                        lodash.isMatchWith = isMatchWith;
-                        lodash.isNaN = isNaN;
-                        lodash.isNative = isNative;
-                        lodash.isNil = isNil;
-                        lodash.isNull = isNull;
-                        lodash.isNumber = isNumber;
-                        lodash.isObject = isObject;
-                        lodash.isObjectLike = isObjectLike;
-                        lodash.isPlainObject = isPlainObject;
-                        lodash.isRegExp = isRegExp;
-                        lodash.isSafeInteger = isSafeInteger;
-                        lodash.isSet = isSet;
-                        lodash.isString = isString;
-                        lodash.isSymbol = isSymbol;
-                        lodash.isTypedArray = isTypedArray;
-                        lodash.isUndefined = isUndefined;
-                        lodash.isWeakMap = isWeakMap;
-                        lodash.isWeakSet = isWeakSet;
-                        lodash.join = join;
-                        lodash.kebabCase = kebabCase;
-                        lodash.last = last;
-                        lodash.lastIndexOf = lastIndexOf;
-                        lodash.lowerCase = lowerCase;
-                        lodash.lowerFirst = lowerFirst;
-                        lodash.lt = lt;
-                        lodash.lte = lte;
-                        lodash.max = max;
-                        lodash.maxBy = maxBy;
-                        lodash.mean = mean;
-                        lodash.meanBy = meanBy;
-                        lodash.min = min;
-                        lodash.minBy = minBy;
-                        lodash.stubArray = stubArray;
-                        lodash.stubFalse = stubFalse;
-                        lodash.stubObject = stubObject;
-                        lodash.stubString = stubString;
-                        lodash.stubTrue = stubTrue;
-                        lodash.multiply = multiply;
-                        lodash.nth = nth;
-                        lodash.noConflict = noConflict;
-                        lodash.noop = noop;
-                        lodash.now = now;
-                        lodash.pad = pad;
-                        lodash.padEnd = padEnd;
-                        lodash.padStart = padStart;
-                        lodash.parseInt = parseInt;
-                        lodash.random = random;
-                        lodash.reduce = reduce;
-                        lodash.reduceRight = reduceRight;
-                        lodash.repeat = repeat;
-                        lodash.replace = replace;
-                        lodash.result = result;
-                        lodash.round = round;
-                        lodash.runInContext = runInContext;
-                        lodash.sample = sample;
-                        lodash.size = size;
-                        lodash.snakeCase = snakeCase;
-                        lodash.some = some;
-                        lodash.sortedIndex = sortedIndex;
-                        lodash.sortedIndexBy = sortedIndexBy;
-                        lodash.sortedIndexOf = sortedIndexOf;
-                        lodash.sortedLastIndex = sortedLastIndex;
-                        lodash.sortedLastIndexBy = sortedLastIndexBy;
-                        lodash.sortedLastIndexOf = sortedLastIndexOf;
-                        lodash.startCase = startCase;
-                        lodash.startsWith = startsWith;
-                        lodash.subtract = subtract;
-                        lodash.sum = sum;
-                        lodash.sumBy = sumBy;
-                        lodash.template = template;
-                        lodash.times = times;
-                        lodash.toFinite = toFinite;
-                        lodash.toInteger = toInteger;
-                        lodash.toLength = toLength;
-                        lodash.toLower = toLower;
-                        lodash.toNumber = toNumber;
-                        lodash.toSafeInteger = toSafeInteger;
-                        lodash.toString = toString;
-                        lodash.toUpper = toUpper;
-                        lodash.trim = trim;
-                        lodash.trimEnd = trimEnd;
-                        lodash.trimStart = trimStart;
-                        lodash.truncate = truncate;
-                        lodash.unescape = unescape;
-                        lodash.uniqueId = uniqueId;
-                        lodash.upperCase = upperCase;
-                        lodash.upperFirst = upperFirst;
-
-                        // Add aliases.
-                        lodash.each = forEach;
-                        lodash.eachRight = forEachRight;
-                        lodash.first = head;
-
-                        mixin(lodash, (function() {
-                            var source = {};
-                            baseForOwn(lodash, function(func, methodName) {
-                                if (!hasOwnProperty.call(lodash.prototype, methodName)) {
-                                    source[methodName] = func;
-                                }
-                            });
-                            return source;
-                        }()), { 'chain': false });
-
-                        /*------------------------------------------------------------------------*/
-
-                        /**
-                         * The semantic version number.
-                         *
-                         * @static
-                         * @memberOf _
-                         * @type {string}
-                         */
-                        lodash.VERSION = VERSION;
-
-                        // Assign default placeholders.
-                        arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
-                            lodash[methodName].placeholder = lodash;
-                        });
+    /**
+     * Creates an array of numbers (positive and/or negative) progressing from
+     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
+     * `start` is specified without an `end` or `step`. If `end` is not specified,
+     * it's set to `start` with `start` then set to `0`.
+     *
+     * **Note:** JavaScript follows the IEEE-754 standard for resolving
+     * floating-point values which can produce unexpected results.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {number} [start=0] The start of the range.
+     * @param {number} end The end of the range.
+     * @param {number} [step=1] The value to increment or decrement by.
+     * @returns {Array} Returns the range of numbers.
+     * @see _.inRange, _.rangeRight
+     * @example
+     *
+     * _.range(4);
+     * // => [0, 1, 2, 3]
+     *
+     * _.range(-4);
+     * // => [0, -1, -2, -3]
+     *
+     * _.range(1, 5);
+     * // => [1, 2, 3, 4]
+     *
+     * _.range(0, 20, 5);
+     * // => [0, 5, 10, 15]
+     *
+     * _.range(0, -4, -1);
+     * // => [0, -1, -2, -3]
+     *
+     * _.range(1, 4, 0);
+     * // => [1, 1, 1]
+     *
+     * _.range(0);
+     * // => []
+     */
+    var range = createRange();
+
+    /**
+     * This method is like `_.range` except that it populates values in
+     * descending order.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {number} [start=0] The start of the range.
+     * @param {number} end The end of the range.
+     * @param {number} [step=1] The value to increment or decrement by.
+     * @returns {Array} Returns the range of numbers.
+     * @see _.inRange, _.range
+     * @example
+     *
+     * _.rangeRight(4);
+     * // => [3, 2, 1, 0]
+     *
+     * _.rangeRight(-4);
+     * // => [-3, -2, -1, 0]
+     *
+     * _.rangeRight(1, 5);
+     * // => [4, 3, 2, 1]
+     *
+     * _.rangeRight(0, 20, 5);
+     * // => [15, 10, 5, 0]
+     *
+     * _.rangeRight(0, -4, -1);
+     * // => [-3, -2, -1, 0]
+     *
+     * _.rangeRight(1, 4, 0);
+     * // => [1, 1, 1]
+     *
+     * _.rangeRight(0);
+     * // => []
+     */
+    var rangeRight = createRange(true);
+
+    /**
+     * This method returns a new empty array.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.13.0
+     * @category Util
+     * @returns {Array} Returns the new empty array.
+     * @example
+     *
+     * var arrays = _.times(2, _.stubArray);
+     *
+     * console.log(arrays);
+     * // => [[], []]
+     *
+     * console.log(arrays[0] === arrays[1]);
+     * // => false
+     */
+    function stubArray() {
+      return [];
+    }
 
-                        // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
-                        arrayEach(['drop', 'take'], function(methodName, index) {
-                            LazyWrapper.prototype[methodName] = function(n) {
-                                n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
-
-                                var result = (this.__filtered__ && !index)
-                                    ? new LazyWrapper(this)
-                                    : this.clone();
-
-                                if (result.__filtered__) {
-                                    result.__takeCount__ = nativeMin(n, result.__takeCount__);
-                                } else {
-                                    result.__views__.push({
-                                        'size': nativeMin(n, MAX_ARRAY_LENGTH),
-                                        'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
-                                    });
-                                }
-                                return result;
-                            };
-
-                            LazyWrapper.prototype[methodName + 'Right'] = function(n) {
-                                return this.reverse()[methodName](n).reverse();
-                            };
-                        });
+    /**
+     * This method returns `false`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.13.0
+     * @category Util
+     * @returns {boolean} Returns `false`.
+     * @example
+     *
+     * _.times(2, _.stubFalse);
+     * // => [false, false]
+     */
+    function stubFalse() {
+      return false;
+    }
 
-                        // Add `LazyWrapper` methods that accept an `iteratee` value.
-                        arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
-                            var type = index + 1,
-                                isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
-
-                            LazyWrapper.prototype[methodName] = function(iteratee) {
-                                var result = this.clone();
-                                result.__iteratees__.push({
-                                    'iteratee': getIteratee(iteratee, 3),
-                                    'type': type
-                                });
-                                result.__filtered__ = result.__filtered__ || isFilter;
-                                return result;
-                            };
-                        });
+    /**
+     * This method returns a new empty object.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.13.0
+     * @category Util
+     * @returns {Object} Returns the new empty object.
+     * @example
+     *
+     * var objects = _.times(2, _.stubObject);
+     *
+     * console.log(objects);
+     * // => [{}, {}]
+     *
+     * console.log(objects[0] === objects[1]);
+     * // => false
+     */
+    function stubObject() {
+      return {};
+    }
 
-                        // Add `LazyWrapper` methods for `_.head` and `_.last`.
-                        arrayEach(['head', 'last'], function(methodName, index) {
-                            var takeName = 'take' + (index ? 'Right' : '');
+    /**
+     * This method returns an empty string.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.13.0
+     * @category Util
+     * @returns {string} Returns the empty string.
+     * @example
+     *
+     * _.times(2, _.stubString);
+     * // => ['', '']
+     */
+    function stubString() {
+      return '';
+    }
 
-                            LazyWrapper.prototype[methodName] = function() {
-                                return this[takeName](1).value()[0];
-                            };
-                        });
+    /**
+     * This method returns `true`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.13.0
+     * @category Util
+     * @returns {boolean} Returns `true`.
+     * @example
+     *
+     * _.times(2, _.stubTrue);
+     * // => [true, true]
+     */
+    function stubTrue() {
+      return true;
+    }
 
-                        // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
-                        arrayEach(['initial', 'tail'], function(methodName, index) {
-                            var dropName = 'drop' + (index ? '' : 'Right');
+    /**
+     * Invokes the iteratee `n` times, returning an array of the results of
+     * each invocation. The iteratee is invoked with one argument; (index).
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {number} n The number of times to invoke `iteratee`.
+     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+     * @returns {Array} Returns the array of results.
+     * @example
+     *
+     * _.times(3, String);
+     * // => ['0', '1', '2']
+     *
+     *  _.times(4, _.constant(0));
+     * // => [0, 0, 0, 0]
+     */
+    function times(n, iteratee) {
+      n = toInteger(n);
+      if (n < 1 || n > MAX_SAFE_INTEGER) {
+        return [];
+      }
+      var index = MAX_ARRAY_LENGTH,
+          length = nativeMin(n, MAX_ARRAY_LENGTH);
+
+      iteratee = getIteratee(iteratee);
+      n -= MAX_ARRAY_LENGTH;
+
+      var result = baseTimes(length, iteratee);
+      while (++index < n) {
+        iteratee(index);
+      }
+      return result;
+    }
 
-                            LazyWrapper.prototype[methodName] = function() {
-                                return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
-                            };
-                        });
+    /**
+     * Converts `value` to a property path array.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Util
+     * @param {*} value The value to convert.
+     * @returns {Array} Returns the new property path array.
+     * @example
+     *
+     * _.toPath('a.b.c');
+     * // => ['a', 'b', 'c']
+     *
+     * _.toPath('a[0].b.c');
+     * // => ['a', '0', 'b', 'c']
+     */
+    function toPath(value) {
+      if (isArray(value)) {
+        return arrayMap(value, toKey);
+      }
+      return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
+    }
 
-                        LazyWrapper.prototype.compact = function() {
-                            return this.filter(identity);
-                        };
+    /**
+     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Util
+     * @param {string} [prefix=''] The value to prefix the ID with.
+     * @returns {string} Returns the unique ID.
+     * @example
+     *
+     * _.uniqueId('contact_');
+     * // => 'contact_104'
+     *
+     * _.uniqueId();
+     * // => '105'
+     */
+    function uniqueId(prefix) {
+      var id = ++idCounter;
+      return toString(prefix) + id;
+    }
 
-                        LazyWrapper.prototype.find = function(predicate) {
-                            return this.filter(predicate).head();
-                        };
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * Adds two numbers.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.4.0
+     * @category Math
+     * @param {number} augend The first number in an addition.
+     * @param {number} addend The second number in an addition.
+     * @returns {number} Returns the total.
+     * @example
+     *
+     * _.add(6, 4);
+     * // => 10
+     */
+    var add = createMathOperation(function(augend, addend) {
+      return augend + addend;
+    }, 0);
+
+    /**
+     * Computes `number` rounded up to `precision`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.10.0
+     * @category Math
+     * @param {number} number The number to round up.
+     * @param {number} [precision=0] The precision to round up to.
+     * @returns {number} Returns the rounded up number.
+     * @example
+     *
+     * _.ceil(4.006);
+     * // => 5
+     *
+     * _.ceil(6.004, 2);
+     * // => 6.01
+     *
+     * _.ceil(6040, -2);
+     * // => 6100
+     */
+    var ceil = createRound('ceil');
+
+    /**
+     * Divide two numbers.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.7.0
+     * @category Math
+     * @param {number} dividend The first number in a division.
+     * @param {number} divisor The second number in a division.
+     * @returns {number} Returns the quotient.
+     * @example
+     *
+     * _.divide(6, 4);
+     * // => 1.5
+     */
+    var divide = createMathOperation(function(dividend, divisor) {
+      return dividend / divisor;
+    }, 1);
+
+    /**
+     * Computes `number` rounded down to `precision`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.10.0
+     * @category Math
+     * @param {number} number The number to round down.
+     * @param {number} [precision=0] The precision to round down to.
+     * @returns {number} Returns the rounded down number.
+     * @example
+     *
+     * _.floor(4.006);
+     * // => 4
+     *
+     * _.floor(0.046, 2);
+     * // => 0.04
+     *
+     * _.floor(4060, -2);
+     * // => 4000
+     */
+    var floor = createRound('floor');
+
+    /**
+     * Computes the maximum value of `array`. If `array` is empty or falsey,
+     * `undefined` is returned.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @returns {*} Returns the maximum value.
+     * @example
+     *
+     * _.max([4, 2, 8, 6]);
+     * // => 8
+     *
+     * _.max([]);
+     * // => undefined
+     */
+    function max(array) {
+      return (array && array.length)
+        ? baseExtremum(array, identity, baseGt)
+        : undefined;
+    }
 
-                        LazyWrapper.prototype.findLast = function(predicate) {
-                            return this.reverse().find(predicate);
-                        };
+    /**
+     * This method is like `_.max` except that it accepts `iteratee` which is
+     * invoked for each element in `array` to generate the criterion by which
+     * the value is ranked. The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {*} Returns the maximum value.
+     * @example
+     *
+     * var objects = [{ 'n': 1 }, { 'n': 2 }];
+     *
+     * _.maxBy(objects, function(o) { return o.n; });
+     * // => { 'n': 2 }
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.maxBy(objects, 'n');
+     * // => { 'n': 2 }
+     */
+    function maxBy(array, iteratee) {
+      return (array && array.length)
+        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
+        : undefined;
+    }
 
-                        LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
-                            if (typeof path == 'function') {
-                                return new LazyWrapper(this);
-                            }
-                            return this.map(function(value) {
-                                return baseInvoke(value, path, args);
-                            });
-                        });
+    /**
+     * Computes the mean of the values in `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @returns {number} Returns the mean.
+     * @example
+     *
+     * _.mean([4, 2, 8, 6]);
+     * // => 5
+     */
+    function mean(array) {
+      return baseMean(array, identity);
+    }
 
-                        LazyWrapper.prototype.reject = function(predicate) {
-                            return this.filter(negate(getIteratee(predicate)));
-                        };
+    /**
+     * This method is like `_.mean` except that it accepts `iteratee` which is
+     * invoked for each element in `array` to generate the value to be averaged.
+     * The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.7.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {number} Returns the mean.
+     * @example
+     *
+     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
+     *
+     * _.meanBy(objects, function(o) { return o.n; });
+     * // => 5
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.meanBy(objects, 'n');
+     * // => 5
+     */
+    function meanBy(array, iteratee) {
+      return baseMean(array, getIteratee(iteratee, 2));
+    }
 
-                        LazyWrapper.prototype.slice = function(start, end) {
-                            start = toInteger(start);
+    /**
+     * Computes the minimum value of `array`. If `array` is empty or falsey,
+     * `undefined` is returned.
+     *
+     * @static
+     * @since 0.1.0
+     * @memberOf _
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @returns {*} Returns the minimum value.
+     * @example
+     *
+     * _.min([4, 2, 8, 6]);
+     * // => 2
+     *
+     * _.min([]);
+     * // => undefined
+     */
+    function min(array) {
+      return (array && array.length)
+        ? baseExtremum(array, identity, baseLt)
+        : undefined;
+    }
 
-                            var result = this;
-                            if (result.__filtered__ && (start > 0 || end < 0)) {
-                                return new LazyWrapper(result);
-                            }
-                            if (start < 0) {
-                                result = result.takeRight(-start);
-                            } else if (start) {
-                                result = result.drop(start);
-                            }
-                            if (end !== undefined) {
-                                end = toInteger(end);
-                                result = end < 0 ? result.dropRight(-end) : result.take(end - start);
-                            }
-                            return result;
-                        };
-
-                        LazyWrapper.prototype.takeRightWhile = function(predicate) {
-                            return this.reverse().takeWhile(predicate).reverse();
-                        };
-
-                        LazyWrapper.prototype.toArray = function() {
-                            return this.take(MAX_ARRAY_LENGTH);
-                        };
-
-                        // Add `LazyWrapper` methods to `lodash.prototype`.
-                        baseForOwn(LazyWrapper.prototype, function(func, methodName) {
-                            var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
-                                isTaker = /^(?:head|last)$/.test(methodName),
-                                lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
-                                retUnwrapped = isTaker || /^find/.test(methodName);
-
-                            if (!lodashFunc) {
-                                return;
-                            }
-                            lodash.prototype[methodName] = function() {
-                                var value = this.__wrapped__,
-                                    args = isTaker ? [1] : arguments,
-                                    isLazy = value instanceof LazyWrapper,
-                                    iteratee = args[0],
-                                    useLazy = isLazy || isArray(value);
-
-                                var interceptor = function(value) {
-                                    var result = lodashFunc.apply(lodash, arrayPush([value], args));
-                                    return (isTaker && chainAll) ? result[0] : result;
-                                };
-
-                                if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
-                                    // Avoid lazy use if the iteratee has a "length" value other than `1`.
-                                    isLazy = useLazy = false;
-                                }
-                                var chainAll = this.__chain__,
-                                    isHybrid = !!this.__actions__.length,
-                                    isUnwrapped = retUnwrapped && !chainAll,
-                                    onlyLazy = isLazy && !isHybrid;
-
-                                if (!retUnwrapped && useLazy) {
-                                    value = onlyLazy ? value : new LazyWrapper(this);
-                                    var result = func.apply(value, args);
-                                    result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
-                                    return new LodashWrapper(result, chainAll);
-                                }
-                                if (isUnwrapped && onlyLazy) {
-                                    return func.apply(this, args);
-                                }
-                                result = this.thru(interceptor);
-                                return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
-                            };
-                        });
+    /**
+     * This method is like `_.min` except that it accepts `iteratee` which is
+     * invoked for each element in `array` to generate the criterion by which
+     * the value is ranked. The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {*} Returns the minimum value.
+     * @example
+     *
+     * var objects = [{ 'n': 1 }, { 'n': 2 }];
+     *
+     * _.minBy(objects, function(o) { return o.n; });
+     * // => { 'n': 1 }
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.minBy(objects, 'n');
+     * // => { 'n': 1 }
+     */
+    function minBy(array, iteratee) {
+      return (array && array.length)
+        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
+        : undefined;
+    }
 
-                        // Add `Array` methods to `lodash.prototype`.
-                        arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
-                            var func = arrayProto[methodName],
-                                chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
-                                retUnwrapped = /^(?:pop|shift)$/.test(methodName);
-
-                            lodash.prototype[methodName] = function() {
-                                var args = arguments;
-                                if (retUnwrapped && !this.__chain__) {
-                                    var value = this.value();
-                                    return func.apply(isArray(value) ? value : [], args);
-                                }
-                                return this[chainName](function(value) {
-                                    return func.apply(isArray(value) ? value : [], args);
-                                });
-                            };
-                        });
+    /**
+     * Multiply two numbers.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.7.0
+     * @category Math
+     * @param {number} multiplier The first number in a multiplication.
+     * @param {number} multiplicand The second number in a multiplication.
+     * @returns {number} Returns the product.
+     * @example
+     *
+     * _.multiply(6, 4);
+     * // => 24
+     */
+    var multiply = createMathOperation(function(multiplier, multiplicand) {
+      return multiplier * multiplicand;
+    }, 1);
+
+    /**
+     * Computes `number` rounded to `precision`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.10.0
+     * @category Math
+     * @param {number} number The number to round.
+     * @param {number} [precision=0] The precision to round to.
+     * @returns {number} Returns the rounded number.
+     * @example
+     *
+     * _.round(4.006);
+     * // => 4
+     *
+     * _.round(4.006, 2);
+     * // => 4.01
+     *
+     * _.round(4060, -2);
+     * // => 4100
+     */
+    var round = createRound('round');
+
+    /**
+     * Subtract two numbers.
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Math
+     * @param {number} minuend The first number in a subtraction.
+     * @param {number} subtrahend The second number in a subtraction.
+     * @returns {number} Returns the difference.
+     * @example
+     *
+     * _.subtract(6, 4);
+     * // => 2
+     */
+    var subtract = createMathOperation(function(minuend, subtrahend) {
+      return minuend - subtrahend;
+    }, 0);
+
+    /**
+     * Computes the sum of the values in `array`.
+     *
+     * @static
+     * @memberOf _
+     * @since 3.4.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @returns {number} Returns the sum.
+     * @example
+     *
+     * _.sum([4, 2, 8, 6]);
+     * // => 20
+     */
+    function sum(array) {
+      return (array && array.length)
+        ? baseSum(array, identity)
+        : 0;
+    }
 
-                        // Map minified method names to their real names.
-                        baseForOwn(LazyWrapper.prototype, function(func, methodName) {
-                            var lodashFunc = lodash[methodName];
-                            if (lodashFunc) {
-                                var key = lodashFunc.name + '';
-                                if (!hasOwnProperty.call(realNames, key)) {
-                                    realNames[key] = [];
-                                }
-                                realNames[key].push({ 'name': methodName, 'func': lodashFunc });
-                            }
-                        });
+    /**
+     * This method is like `_.sum` except that it accepts `iteratee` which is
+     * invoked for each element in `array` to generate the value to be summed.
+     * The iteratee is invoked with one argument: (value).
+     *
+     * @static
+     * @memberOf _
+     * @since 4.0.0
+     * @category Math
+     * @param {Array} array The array to iterate over.
+     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+     * @returns {number} Returns the sum.
+     * @example
+     *
+     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
+     *
+     * _.sumBy(objects, function(o) { return o.n; });
+     * // => 20
+     *
+     * // The `_.property` iteratee shorthand.
+     * _.sumBy(objects, 'n');
+     * // => 20
+     */
+    function sumBy(array, iteratee) {
+      return (array && array.length)
+        ? baseSum(array, getIteratee(iteratee, 2))
+        : 0;
+    }
 
-                        realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
-                            'name': 'wrapper',
-                            'func': undefined
-                        }];
-
-                        // Add methods to `LazyWrapper`.
-                        LazyWrapper.prototype.clone = lazyClone;
-                        LazyWrapper.prototype.reverse = lazyReverse;
-                        LazyWrapper.prototype.value = lazyValue;
-
-                        // Add chain sequence methods to the `lodash` wrapper.
-                        lodash.prototype.at = wrapperAt;
-                        lodash.prototype.chain = wrapperChain;
-                        lodash.prototype.commit = wrapperCommit;
-                        lodash.prototype.next = wrapperNext;
-                        lodash.prototype.plant = wrapperPlant;
-                        lodash.prototype.reverse = wrapperReverse;
-                        lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
-                        // Add lazy aliases.
-                        lodash.prototype.first = lodash.prototype.head;
-
-                        if (symIterator) {
-                            lodash.prototype[symIterator] = wrapperToIterator;
-                        }
-                        return lodash;
-                    });
-
-                    /*--------------------------------------------------------------------------*/
-
-                    // Export lodash.
-                    var _ = runInContext();
-
-                    // Some AMD build optimizers, like r.js, check for condition patterns like:
-                    if (true) {
-                        // Expose Lodash on the global object to prevent errors when Lodash is
-                        // loaded by a script tag in the presence of an AMD loader.
-                        // See http://requirejs.org/docs/errors.html#mismatch for more details.
-                        // Use `_.noConflict` to remove Lodash from the global object.
-                        root._ = _;
-
-                        // Define as an anonymous module so, through path mapping, it can be
-                        // referenced as the "underscore" module.
-                        !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
-                            return _;
-                        }).call(exports, __webpack_require__, exports, module),
-                        __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
-                    }
-                    // Check for `exports` after `define` in case a build optimizer adds it.
-                    else {}
-                }.call(this));
+    /*------------------------------------------------------------------------*/
+
+    // Add methods that return wrapped values in chain sequences.
+    lodash.after = after;
+    lodash.ary = ary;
+    lodash.assign = assign;
+    lodash.assignIn = assignIn;
+    lodash.assignInWith = assignInWith;
+    lodash.assignWith = assignWith;
+    lodash.at = at;
+    lodash.before = before;
+    lodash.bind = bind;
+    lodash.bindAll = bindAll;
+    lodash.bindKey = bindKey;
+    lodash.castArray = castArray;
+    lodash.chain = chain;
+    lodash.chunk = chunk;
+    lodash.compact = compact;
+    lodash.concat = concat;
+    lodash.cond = cond;
+    lodash.conforms = conforms;
+    lodash.constant = constant;
+    lodash.countBy = countBy;
+    lodash.create = create;
+    lodash.curry = curry;
+    lodash.curryRight = curryRight;
+    lodash.debounce = debounce;
+    lodash.defaults = defaults;
+    lodash.defaultsDeep = defaultsDeep;
+    lodash.defer = defer;
+    lodash.delay = delay;
+    lodash.difference = difference;
+    lodash.differenceBy = differenceBy;
+    lodash.differenceWith = differenceWith;
+    lodash.drop = drop;
+    lodash.dropRight = dropRight;
+    lodash.dropRightWhile = dropRightWhile;
+    lodash.dropWhile = dropWhile;
+    lodash.fill = fill;
+    lodash.filter = filter;
+    lodash.flatMap = flatMap;
+    lodash.flatMapDeep = flatMapDeep;
+    lodash.flatMapDepth = flatMapDepth;
+    lodash.flatten = flatten;
+    lodash.flattenDeep = flattenDeep;
+    lodash.flattenDepth = flattenDepth;
+    lodash.flip = flip;
+    lodash.flow = flow;
+    lodash.flowRight = flowRight;
+    lodash.fromPairs = fromPairs;
+    lodash.functions = functions;
+    lodash.functionsIn = functionsIn;
+    lodash.groupBy = groupBy;
+    lodash.initial = initial;
+    lodash.intersection = intersection;
+    lodash.intersectionBy = intersectionBy;
+    lodash.intersectionWith = intersectionWith;
+    lodash.invert = invert;
+    lodash.invertBy = invertBy;
+    lodash.invokeMap = invokeMap;
+    lodash.iteratee = iteratee;
+    lodash.keyBy = keyBy;
+    lodash.keys = keys;
+    lodash.keysIn = keysIn;
+    lodash.map = map;
+    lodash.mapKeys = mapKeys;
+    lodash.mapValues = mapValues;
+    lodash.matches = matches;
+    lodash.matchesProperty = matchesProperty;
+    lodash.memoize = memoize;
+    lodash.merge = merge;
+    lodash.mergeWith = mergeWith;
+    lodash.method = method;
+    lodash.methodOf = methodOf;
+    lodash.mixin = mixin;
+    lodash.negate = negate;
+    lodash.nthArg = nthArg;
+    lodash.omit = omit;
+    lodash.omitBy = omitBy;
+    lodash.once = once;
+    lodash.orderBy = orderBy;
+    lodash.over = over;
+    lodash.overArgs = overArgs;
+    lodash.overEvery = overEvery;
+    lodash.overSome = overSome;
+    lodash.partial = partial;
+    lodash.partialRight = partialRight;
+    lodash.partition = partition;
+    lodash.pick = pick;
+    lodash.pickBy = pickBy;
+    lodash.property = property;
+    lodash.propertyOf = propertyOf;
+    lodash.pull = pull;
+    lodash.pullAll = pullAll;
+    lodash.pullAllBy = pullAllBy;
+    lodash.pullAllWith = pullAllWith;
+    lodash.pullAt = pullAt;
+    lodash.range = range;
+    lodash.rangeRight = rangeRight;
+    lodash.rearg = rearg;
+    lodash.reject = reject;
+    lodash.remove = remove;
+    lodash.rest = rest;
+    lodash.reverse = reverse;
+    lodash.sampleSize = sampleSize;
+    lodash.set = set;
+    lodash.setWith = setWith;
+    lodash.shuffle = shuffle;
+    lodash.slice = slice;
+    lodash.sortBy = sortBy;
+    lodash.sortedUniq = sortedUniq;
+    lodash.sortedUniqBy = sortedUniqBy;
+    lodash.split = split;
+    lodash.spread = spread;
+    lodash.tail = tail;
+    lodash.take = take;
+    lodash.takeRight = takeRight;
+    lodash.takeRightWhile = takeRightWhile;
+    lodash.takeWhile = takeWhile;
+    lodash.tap = tap;
+    lodash.throttle = throttle;
+    lodash.thru = thru;
+    lodash.toArray = toArray;
+    lodash.toPairs = toPairs;
+    lodash.toPairsIn = toPairsIn;
+    lodash.toPath = toPath;
+    lodash.toPlainObject = toPlainObject;
+    lodash.transform = transform;
+    lodash.unary = unary;
+    lodash.union = union;
+    lodash.unionBy = unionBy;
+    lodash.unionWith = unionWith;
+    lodash.uniq = uniq;
+    lodash.uniqBy = uniqBy;
+    lodash.uniqWith = uniqWith;
+    lodash.unset = unset;
+    lodash.unzip = unzip;
+    lodash.unzipWith = unzipWith;
+    lodash.update = update;
+    lodash.updateWith = updateWith;
+    lodash.values = values;
+    lodash.valuesIn = valuesIn;
+    lodash.without = without;
+    lodash.words = words;
+    lodash.wrap = wrap;
+    lodash.xor = xor;
+    lodash.xorBy = xorBy;
+    lodash.xorWith = xorWith;
+    lodash.zip = zip;
+    lodash.zipObject = zipObject;
+    lodash.zipObjectDeep = zipObjectDeep;
+    lodash.zipWith = zipWith;
+
+    // Add aliases.
+    lodash.entries = toPairs;
+    lodash.entriesIn = toPairsIn;
+    lodash.extend = assignIn;
+    lodash.extendWith = assignInWith;
+
+    // Add methods to `lodash.prototype`.
+    mixin(lodash, lodash);
+
+    /*------------------------------------------------------------------------*/
+
+    // Add methods that return unwrapped values in chain sequences.
+    lodash.add = add;
+    lodash.attempt = attempt;
+    lodash.camelCase = camelCase;
+    lodash.capitalize = capitalize;
+    lodash.ceil = ceil;
+    lodash.clamp = clamp;
+    lodash.clone = clone;
+    lodash.cloneDeep = cloneDeep;
+    lodash.cloneDeepWith = cloneDeepWith;
+    lodash.cloneWith = cloneWith;
+    lodash.conformsTo = conformsTo;
+    lodash.deburr = deburr;
+    lodash.defaultTo = defaultTo;
+    lodash.divide = divide;
+    lodash.endsWith = endsWith;
+    lodash.eq = eq;
+    lodash.escape = escape;
+    lodash.escapeRegExp = escapeRegExp;
+    lodash.every = every;
+    lodash.find = find;
+    lodash.findIndex = findIndex;
+    lodash.findKey = findKey;
+    lodash.findLast = findLast;
+    lodash.findLastIndex = findLastIndex;
+    lodash.findLastKey = findLastKey;
+    lodash.floor = floor;
+    lodash.forEach = forEach;
+    lodash.forEachRight = forEachRight;
+    lodash.forIn = forIn;
+    lodash.forInRight = forInRight;
+    lodash.forOwn = forOwn;
+    lodash.forOwnRight = forOwnRight;
+    lodash.get = get;
+    lodash.gt = gt;
+    lodash.gte = gte;
+    lodash.has = has;
+    lodash.hasIn = hasIn;
+    lodash.head = head;
+    lodash.identity = identity;
+    lodash.includes = includes;
+    lodash.indexOf = indexOf;
+    lodash.inRange = inRange;
+    lodash.invoke = invoke;
+    lodash.isArguments = isArguments;
+    lodash.isArray = isArray;
+    lodash.isArrayBuffer = isArrayBuffer;
+    lodash.isArrayLike = isArrayLike;
+    lodash.isArrayLikeObject = isArrayLikeObject;
+    lodash.isBoolean = isBoolean;
+    lodash.isBuffer = isBuffer;
+    lodash.isDate = isDate;
+    lodash.isElement = isElement;
+    lodash.isEmpty = isEmpty;
+    lodash.isEqual = isEqual;
+    lodash.isEqualWith = isEqualWith;
+    lodash.isError = isError;
+    lodash.isFinite = isFinite;
+    lodash.isFunction = isFunction;
+    lodash.isInteger = isInteger;
+    lodash.isLength = isLength;
+    lodash.isMap = isMap;
+    lodash.isMatch = isMatch;
+    lodash.isMatchWith = isMatchWith;
+    lodash.isNaN = isNaN;
+    lodash.isNative = isNative;
+    lodash.isNil = isNil;
+    lodash.isNull = isNull;
+    lodash.isNumber = isNumber;
+    lodash.isObject = isObject;
+    lodash.isObjectLike = isObjectLike;
+    lodash.isPlainObject = isPlainObject;
+    lodash.isRegExp = isRegExp;
+    lodash.isSafeInteger = isSafeInteger;
+    lodash.isSet = isSet;
+    lodash.isString = isString;
+    lodash.isSymbol = isSymbol;
+    lodash.isTypedArray = isTypedArray;
+    lodash.isUndefined = isUndefined;
+    lodash.isWeakMap = isWeakMap;
+    lodash.isWeakSet = isWeakSet;
+    lodash.join = join;
+    lodash.kebabCase = kebabCase;
+    lodash.last = last;
+    lodash.lastIndexOf = lastIndexOf;
+    lodash.lowerCase = lowerCase;
+    lodash.lowerFirst = lowerFirst;
+    lodash.lt = lt;
+    lodash.lte = lte;
+    lodash.max = max;
+    lodash.maxBy = maxBy;
+    lodash.mean = mean;
+    lodash.meanBy = meanBy;
+    lodash.min = min;
+    lodash.minBy = minBy;
+    lodash.stubArray = stubArray;
+    lodash.stubFalse = stubFalse;
+    lodash.stubObject = stubObject;
+    lodash.stubString = stubString;
+    lodash.stubTrue = stubTrue;
+    lodash.multiply = multiply;
+    lodash.nth = nth;
+    lodash.noConflict = noConflict;
+    lodash.noop = noop;
+    lodash.now = now;
+    lodash.pad = pad;
+    lodash.padEnd = padEnd;
+    lodash.padStart = padStart;
+    lodash.parseInt = parseInt;
+    lodash.random = random;
+    lodash.reduce = reduce;
+    lodash.reduceRight = reduceRight;
+    lodash.repeat = repeat;
+    lodash.replace = replace;
+    lodash.result = result;
+    lodash.round = round;
+    lodash.runInContext = runInContext;
+    lodash.sample = sample;
+    lodash.size = size;
+    lodash.snakeCase = snakeCase;
+    lodash.some = some;
+    lodash.sortedIndex = sortedIndex;
+    lodash.sortedIndexBy = sortedIndexBy;
+    lodash.sortedIndexOf = sortedIndexOf;
+    lodash.sortedLastIndex = sortedLastIndex;
+    lodash.sortedLastIndexBy = sortedLastIndexBy;
+    lodash.sortedLastIndexOf = sortedLastIndexOf;
+    lodash.startCase = startCase;
+    lodash.startsWith = startsWith;
+    lodash.subtract = subtract;
+    lodash.sum = sum;
+    lodash.sumBy = sumBy;
+    lodash.template = template;
+    lodash.times = times;
+    lodash.toFinite = toFinite;
+    lodash.toInteger = toInteger;
+    lodash.toLength = toLength;
+    lodash.toLower = toLower;
+    lodash.toNumber = toNumber;
+    lodash.toSafeInteger = toSafeInteger;
+    lodash.toString = toString;
+    lodash.toUpper = toUpper;
+    lodash.trim = trim;
+    lodash.trimEnd = trimEnd;
+    lodash.trimStart = trimStart;
+    lodash.truncate = truncate;
+    lodash.unescape = unescape;
+    lodash.uniqueId = uniqueId;
+    lodash.upperCase = upperCase;
+    lodash.upperFirst = upperFirst;
+
+    // Add aliases.
+    lodash.each = forEach;
+    lodash.eachRight = forEachRight;
+    lodash.first = head;
+
+    mixin(lodash, (function() {
+      var source = {};
+      baseForOwn(lodash, function(func, methodName) {
+        if (!hasOwnProperty.call(lodash.prototype, methodName)) {
+          source[methodName] = func;
+        }
+      });
+      return source;
+    }()), { 'chain': false });
+
+    /*------------------------------------------------------------------------*/
+
+    /**
+     * The semantic version number.
+     *
+     * @static
+     * @memberOf _
+     * @type {string}
+     */
+    lodash.VERSION = VERSION;
+
+    // Assign default placeholders.
+    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
+      lodash[methodName].placeholder = lodash;
+    });
+
+    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
+    arrayEach(['drop', 'take'], function(methodName, index) {
+      LazyWrapper.prototype[methodName] = function(n) {
+        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
+
+        var result = (this.__filtered__ && !index)
+          ? new LazyWrapper(this)
+          : this.clone();
+
+        if (result.__filtered__) {
+          result.__takeCount__ = nativeMin(n, result.__takeCount__);
+        } else {
+          result.__views__.push({
+            'size': nativeMin(n, MAX_ARRAY_LENGTH),
+            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
+          });
+        }
+        return result;
+      };
+
+      LazyWrapper.prototype[methodName + 'Right'] = function(n) {
+        return this.reverse()[methodName](n).reverse();
+      };
+    });
+
+    // Add `LazyWrapper` methods that accept an `iteratee` value.
+    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
+      var type = index + 1,
+          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
+
+      LazyWrapper.prototype[methodName] = function(iteratee) {
+        var result = this.clone();
+        result.__iteratees__.push({
+          'iteratee': getIteratee(iteratee, 3),
+          'type': type
+        });
+        result.__filtered__ = result.__filtered__ || isFilter;
+        return result;
+      };
+    });
+
+    // Add `LazyWrapper` methods for `_.head` and `_.last`.
+    arrayEach(['head', 'last'], function(methodName, index) {
+      var takeName = 'take' + (index ? 'Right' : '');
+
+      LazyWrapper.prototype[methodName] = function() {
+        return this[takeName](1).value()[0];
+      };
+    });
+
+    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
+    arrayEach(['initial', 'tail'], function(methodName, index) {
+      var dropName = 'drop' + (index ? '' : 'Right');
+
+      LazyWrapper.prototype[methodName] = function() {
+        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
+      };
+    });
+
+    LazyWrapper.prototype.compact = function() {
+      return this.filter(identity);
+    };
+
+    LazyWrapper.prototype.find = function(predicate) {
+      return this.filter(predicate).head();
+    };
+
+    LazyWrapper.prototype.findLast = function(predicate) {
+      return this.reverse().find(predicate);
+    };
+
+    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
+      if (typeof path == 'function') {
+        return new LazyWrapper(this);
+      }
+      return this.map(function(value) {
+        return baseInvoke(value, path, args);
+      });
+    });
+
+    LazyWrapper.prototype.reject = function(predicate) {
+      return this.filter(negate(getIteratee(predicate)));
+    };
+
+    LazyWrapper.prototype.slice = function(start, end) {
+      start = toInteger(start);
+
+      var result = this;
+      if (result.__filtered__ && (start > 0 || end < 0)) {
+        return new LazyWrapper(result);
+      }
+      if (start < 0) {
+        result = result.takeRight(-start);
+      } else if (start) {
+        result = result.drop(start);
+      }
+      if (end !== undefined) {
+        end = toInteger(end);
+        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
+      }
+      return result;
+    };
+
+    LazyWrapper.prototype.takeRightWhile = function(predicate) {
+      return this.reverse().takeWhile(predicate).reverse();
+    };
+
+    LazyWrapper.prototype.toArray = function() {
+      return this.take(MAX_ARRAY_LENGTH);
+    };
+
+    // Add `LazyWrapper` methods to `lodash.prototype`.
+    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
+      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
+          isTaker = /^(?:head|last)$/.test(methodName),
+          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
+          retUnwrapped = isTaker || /^find/.test(methodName);
+
+      if (!lodashFunc) {
+        return;
+      }
+      lodash.prototype[methodName] = function() {
+        var value = this.__wrapped__,
+            args = isTaker ? [1] : arguments,
+            isLazy = value instanceof LazyWrapper,
+            iteratee = args[0],
+            useLazy = isLazy || isArray(value);
+
+        var interceptor = function(value) {
+          var result = lodashFunc.apply(lodash, arrayPush([value], args));
+          return (isTaker && chainAll) ? result[0] : result;
+        };
+
+        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
+          // Avoid lazy use if the iteratee has a "length" value other than `1`.
+          isLazy = useLazy = false;
+        }
+        var chainAll = this.__chain__,
+            isHybrid = !!this.__actions__.length,
+            isUnwrapped = retUnwrapped && !chainAll,
+            onlyLazy = isLazy && !isHybrid;
+
+        if (!retUnwrapped && useLazy) {
+          value = onlyLazy ? value : new LazyWrapper(this);
+          var result = func.apply(value, args);
+          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
+          return new LodashWrapper(result, chainAll);
+        }
+        if (isUnwrapped && onlyLazy) {
+          return func.apply(this, args);
+        }
+        result = this.thru(interceptor);
+        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
+      };
+    });
+
+    // Add `Array` methods to `lodash.prototype`.
+    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
+      var func = arrayProto[methodName],
+          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
+          retUnwrapped = /^(?:pop|shift)$/.test(methodName);
+
+      lodash.prototype[methodName] = function() {
+        var args = arguments;
+        if (retUnwrapped && !this.__chain__) {
+          var value = this.value();
+          return func.apply(isArray(value) ? value : [], args);
+        }
+        return this[chainName](function(value) {
+          return func.apply(isArray(value) ? value : [], args);
+        });
+      };
+    });
+
+    // Map minified method names to their real names.
+    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
+      var lodashFunc = lodash[methodName];
+      if (lodashFunc) {
+        var key = lodashFunc.name + '';
+        if (!hasOwnProperty.call(realNames, key)) {
+          realNames[key] = [];
+        }
+        realNames[key].push({ 'name': methodName, 'func': lodashFunc });
+      }
+    });
+
+    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
+      'name': 'wrapper',
+      'func': undefined
+    }];
+
+    // Add methods to `LazyWrapper`.
+    LazyWrapper.prototype.clone = lazyClone;
+    LazyWrapper.prototype.reverse = lazyReverse;
+    LazyWrapper.prototype.value = lazyValue;
+
+    // Add chain sequence methods to the `lodash` wrapper.
+    lodash.prototype.at = wrapperAt;
+    lodash.prototype.chain = wrapperChain;
+    lodash.prototype.commit = wrapperCommit;
+    lodash.prototype.next = wrapperNext;
+    lodash.prototype.plant = wrapperPlant;
+    lodash.prototype.reverse = wrapperReverse;
+    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
+
+    // Add lazy aliases.
+    lodash.prototype.first = lodash.prototype.head;
+
+    if (symIterator) {
+      lodash.prototype[symIterator] = wrapperToIterator;
+    }
+    return lodash;
+  });
+
+  /*--------------------------------------------------------------------------*/
+
+  // Export lodash.
+  var _ = runInContext();
+
+  // Some AMD build optimizers, like r.js, check for condition patterns like:
+  if (true) {
+    // Expose Lodash on the global object to prevent errors when Lodash is
+    // loaded by a script tag in the presence of an AMD loader.
+    // See http://requirejs.org/docs/errors.html#mismatch for more details.
+    // Use `_.noConflict` to remove Lodash from the global object.
+    root._ = _;
+
+    // Define as an anonymous module so, through path mapping, it can be
+    // referenced as the "underscore" module.
+    !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
+      return _;
+    }).call(exports, __webpack_require__, exports, module),
+				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+  }
+  // Check for `exports` after `define` in case a build optimizer adds it.
+  else {}
+}.call(this));
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/map.js":
-        /*!************************************!*\
+/***/ "./node_modules/lodash/map.js":
+/*!************************************!*\
   !*** ./node_modules/lodash/map.js ***!
   \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * Creates an array of values by running each element in `collection` thru
-             * `iteratee`. The iteratee is invoked with three arguments:
-             * (value, index|key, collection).
-             *
-             * Many lodash methods are guarded to work as iteratees for methods like
-             * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
-             *
-             * The guarded methods are:
-             * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
-             * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
-             * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
-             * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @returns {Array} Returns the new mapped array.
-             * @example
-             *
-             * function square(n) {
-             *   return n * n;
-             * }
-             *
-             * _.map([4, 8], square);
-             * // => [16, 64]
-             *
-             * _.map({ 'a': 4, 'b': 8 }, square);
-             * // => [16, 64] (iteration order is not guaranteed)
-             *
-             * var users = [
-             *   { 'user': 'barney' },
-             *   { 'user': 'fred' }
-             * ];
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.map(users, 'user');
-             * // => ['barney', 'fred']
-             */
-            function map(collection, iteratee) {
-                var func = isArray(collection) ? arrayMap : baseMap;
-                return func(collection, baseIteratee(iteratee, 3));
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
+
+/**
+ * Creates an array of values by running each element in `collection` thru
+ * `iteratee`. The iteratee is invoked with three arguments:
+ * (value, index|key, collection).
+ *
+ * Many lodash methods are guarded to work as iteratees for methods like
+ * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
+ *
+ * The guarded methods are:
+ * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
+ * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
+ * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
+ * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @returns {Array} Returns the new mapped array.
+ * @example
+ *
+ * function square(n) {
+ *   return n * n;
+ * }
+ *
+ * _.map([4, 8], square);
+ * // => [16, 64]
+ *
+ * _.map({ 'a': 4, 'b': 8 }, square);
+ * // => [16, 64] (iteration order is not guaranteed)
+ *
+ * var users = [
+ *   { 'user': 'barney' },
+ *   { 'user': 'fred' }
+ * ];
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.map(users, 'user');
+ * // => ['barney', 'fred']
+ */
+function map(collection, iteratee) {
+  var func = isArray(collection) ? arrayMap : baseMap;
+  return func(collection, baseIteratee(iteratee, 3));
+}
 
-            module.exports = map;
+module.exports = map;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/mapValues.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/mapValues.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/mapValues.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
-                baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js");
-
-            /**
-             * Creates an object with the same keys as `object` and values generated
-             * by running each own enumerable string keyed property of `object` thru
-             * `iteratee`. The iteratee is invoked with three arguments:
-             * (value, key, object).
-             *
-             * @static
-             * @memberOf _
-             * @since 2.4.0
-             * @category Object
-             * @param {Object} object The object to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @returns {Object} Returns the new mapped object.
-             * @see _.mapKeys
-             * @example
-             *
-             * var users = {
-             *   'fred':    { 'user': 'fred',    'age': 40 },
-             *   'pebbles': { 'user': 'pebbles', 'age': 1 }
-             * };
-             *
-             * _.mapValues(users, function(o) { return o.age; });
-             * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.mapValues(users, 'age');
-             * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-             */
-            function mapValues(object, iteratee) {
-                var result = {};
-                iteratee = baseIteratee(iteratee, 3);
-
-                baseForOwn(object, function(value, key, object) {
-                    baseAssignValue(result, key, iteratee(value, key, object));
-                });
-                return result;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
+    baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js");
+
+/**
+ * Creates an object with the same keys as `object` and values generated
+ * by running each own enumerable string keyed property of `object` thru
+ * `iteratee`. The iteratee is invoked with three arguments:
+ * (value, key, object).
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Object
+ * @param {Object} object The object to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @returns {Object} Returns the new mapped object.
+ * @see _.mapKeys
+ * @example
+ *
+ * var users = {
+ *   'fred':    { 'user': 'fred',    'age': 40 },
+ *   'pebbles': { 'user': 'pebbles', 'age': 1 }
+ * };
+ *
+ * _.mapValues(users, function(o) { return o.age; });
+ * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.mapValues(users, 'age');
+ * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
+ */
+function mapValues(object, iteratee) {
+  var result = {};
+  iteratee = baseIteratee(iteratee, 3);
 
-            module.exports = mapValues;
+  baseForOwn(object, function(value, key, object) {
+    baseAssignValue(result, key, iteratee(value, key, object));
+  });
+  return result;
+}
 
+module.exports = mapValues;
 
-            /***/ }),
 
-        /***/ "./node_modules/lodash/max.js":
-        /*!************************************!*\
+/***/ }),
+
+/***/ "./node_modules/lodash/max.js":
+/*!************************************!*\
   !*** ./node_modules/lodash/max.js ***!
   \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
-                baseGt = __webpack_require__(/*! ./_baseGt */ "./node_modules/lodash/_baseGt.js"),
-                identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
-
-            /**
-             * Computes the maximum value of `array`. If `array` is empty or falsey,
-             * `undefined` is returned.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Math
-             * @param {Array} array The array to iterate over.
-             * @returns {*} Returns the maximum value.
-             * @example
-             *
-             * _.max([4, 2, 8, 6]);
-             * // => 8
-             *
-             * _.max([]);
-             * // => undefined
-             */
-            function max(array) {
-                return (array && array.length)
-                    ? baseExtremum(array, identity, baseGt)
-                    : undefined;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
+    baseGt = __webpack_require__(/*! ./_baseGt */ "./node_modules/lodash/_baseGt.js"),
+    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
+
+/**
+ * Computes the maximum value of `array`. If `array` is empty or falsey,
+ * `undefined` is returned.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {*} Returns the maximum value.
+ * @example
+ *
+ * _.max([4, 2, 8, 6]);
+ * // => 8
+ *
+ * _.max([]);
+ * // => undefined
+ */
+function max(array) {
+  return (array && array.length)
+    ? baseExtremum(array, identity, baseGt)
+    : undefined;
+}
 
-            module.exports = max;
+module.exports = max;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/memoize.js":
-        /*!****************************************!*\
+/***/ "./node_modules/lodash/memoize.js":
+/*!****************************************!*\
   !*** ./node_modules/lodash/memoize.js ***!
   \****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
-
-            /** Error message constants. */
-            var FUNC_ERROR_TEXT = 'Expected a function';
-
-            /**
-             * Creates a function that memoizes the result of `func`. If `resolver` is
-             * provided, it determines the cache key for storing the result based on the
-             * arguments provided to the memoized function. By default, the first argument
-             * provided to the memoized function is used as the map cache key. The `func`
-             * is invoked with the `this` binding of the memoized function.
-             *
-             * **Note:** The cache is exposed as the `cache` property on the memoized
-             * function. Its creation may be customized by replacing the `_.memoize.Cache`
-             * constructor with one whose instances implement the
-             * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
-             * method interface of `clear`, `delete`, `get`, `has`, and `set`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Function
-             * @param {Function} func The function to have its output memoized.
-             * @param {Function} [resolver] The function to resolve the cache key.
-             * @returns {Function} Returns the new memoized function.
-             * @example
-             *
-             * var object = { 'a': 1, 'b': 2 };
-             * var other = { 'c': 3, 'd': 4 };
-             *
-             * var values = _.memoize(_.values);
-             * values(object);
-             * // => [1, 2]
-             *
-             * values(other);
-             * // => [3, 4]
-             *
-             * object.a = 2;
-             * values(object);
-             * // => [1, 2]
-             *
-             * // Modify the result cache.
-             * values.cache.set(object, ['a', 'b']);
-             * values(object);
-             * // => ['a', 'b']
-             *
-             * // Replace `_.memoize.Cache`.
-             * _.memoize.Cache = WeakMap;
-             */
-            function memoize(func, resolver) {
-                if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
-                    throw new TypeError(FUNC_ERROR_TEXT);
-                }
-                var memoized = function() {
-                    var args = arguments,
-                        key = resolver ? resolver.apply(this, args) : args[0],
-                        cache = memoized.cache;
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-                    if (cache.has(key)) {
-                        return cache.get(key);
-                    }
-                    var result = func.apply(this, args);
-                    memoized.cache = cache.set(key, result) || cache;
-                    return result;
-                };
-                memoized.cache = new (memoize.Cache || MapCache);
-                return memoized;
-            }
+var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
+
+/** Error message constants. */
+var FUNC_ERROR_TEXT = 'Expected a function';
+
+/**
+ * Creates a function that memoizes the result of `func`. If `resolver` is
+ * provided, it determines the cache key for storing the result based on the
+ * arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is used as the map cache key. The `func`
+ * is invoked with the `this` binding of the memoized function.
+ *
+ * **Note:** The cache is exposed as the `cache` property on the memoized
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to have its output memoized.
+ * @param {Function} [resolver] The function to resolve the cache key.
+ * @returns {Function} Returns the new memoized function.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': 2 };
+ * var other = { 'c': 3, 'd': 4 };
+ *
+ * var values = _.memoize(_.values);
+ * values(object);
+ * // => [1, 2]
+ *
+ * values(other);
+ * // => [3, 4]
+ *
+ * object.a = 2;
+ * values(object);
+ * // => [1, 2]
+ *
+ * // Modify the result cache.
+ * values.cache.set(object, ['a', 'b']);
+ * values(object);
+ * // => ['a', 'b']
+ *
+ * // Replace `_.memoize.Cache`.
+ * _.memoize.Cache = WeakMap;
+ */
+function memoize(func, resolver) {
+  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
+    throw new TypeError(FUNC_ERROR_TEXT);
+  }
+  var memoized = function() {
+    var args = arguments,
+        key = resolver ? resolver.apply(this, args) : args[0],
+        cache = memoized.cache;
+
+    if (cache.has(key)) {
+      return cache.get(key);
+    }
+    var result = func.apply(this, args);
+    memoized.cache = cache.set(key, result) || cache;
+    return result;
+  };
+  memoized.cache = new (memoize.Cache || MapCache);
+  return memoized;
+}
 
 // Expose `MapCache`.
-            memoize.Cache = MapCache;
+memoize.Cache = MapCache;
 
-            module.exports = memoize;
+module.exports = memoize;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/merge.js":
-        /*!**************************************!*\
+/***/ "./node_modules/lodash/merge.js":
+/*!**************************************!*\
   !*** ./node_modules/lodash/merge.js ***!
   \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
-                createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
-
-            /**
-             * This method is like `_.assign` except that it recursively merges own and
-             * inherited enumerable string keyed properties of source objects into the
-             * destination object. Source properties that resolve to `undefined` are
-             * skipped if a destination value exists. Array and plain object properties
-             * are merged recursively. Other objects and value types are overridden by
-             * assignment. Source objects are applied from left to right. Subsequent
-             * sources overwrite property assignments of previous sources.
-             *
-             * **Note:** This method mutates `object`.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.5.0
-             * @category Object
-             * @param {Object} object The destination object.
-             * @param {...Object} [sources] The source objects.
-             * @returns {Object} Returns `object`.
-             * @example
-             *
-             * var object = {
-             *   'a': [{ 'b': 2 }, { 'd': 4 }]
-             * };
-             *
-             * var other = {
-             *   'a': [{ 'c': 3 }, { 'e': 5 }]
-             * };
-             *
-             * _.merge(object, other);
-             * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
-             */
-            var merge = createAssigner(function(object, source, srcIndex) {
-                baseMerge(object, source, srcIndex);
-            });
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
+    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
+
+/**
+ * This method is like `_.assign` except that it recursively merges own and
+ * inherited enumerable string keyed properties of source objects into the
+ * destination object. Source properties that resolve to `undefined` are
+ * skipped if a destination value exists. Array and plain object properties
+ * are merged recursively. Other objects and value types are overridden by
+ * assignment. Source objects are applied from left to right. Subsequent
+ * sources overwrite property assignments of previous sources.
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.5.0
+ * @category Object
+ * @param {Object} object The destination object.
+ * @param {...Object} [sources] The source objects.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var object = {
+ *   'a': [{ 'b': 2 }, { 'd': 4 }]
+ * };
+ *
+ * var other = {
+ *   'a': [{ 'c': 3 }, { 'e': 5 }]
+ * };
+ *
+ * _.merge(object, other);
+ * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
+ */
+var merge = createAssigner(function(object, source, srcIndex) {
+  baseMerge(object, source, srcIndex);
+});
 
-            module.exports = merge;
+module.exports = merge;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/min.js":
-        /*!************************************!*\
+/***/ "./node_modules/lodash/min.js":
+/*!************************************!*\
   !*** ./node_modules/lodash/min.js ***!
   \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
-                baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js"),
-                identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
-
-            /**
-             * Computes the minimum value of `array`. If `array` is empty or falsey,
-             * `undefined` is returned.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Math
-             * @param {Array} array The array to iterate over.
-             * @returns {*} Returns the minimum value.
-             * @example
-             *
-             * _.min([4, 2, 8, 6]);
-             * // => 2
-             *
-             * _.min([]);
-             * // => undefined
-             */
-            function min(array) {
-                return (array && array.length)
-                    ? baseExtremum(array, identity, baseLt)
-                    : undefined;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
+    baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js"),
+    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
+
+/**
+ * Computes the minimum value of `array`. If `array` is empty or falsey,
+ * `undefined` is returned.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @returns {*} Returns the minimum value.
+ * @example
+ *
+ * _.min([4, 2, 8, 6]);
+ * // => 2
+ *
+ * _.min([]);
+ * // => undefined
+ */
+function min(array) {
+  return (array && array.length)
+    ? baseExtremum(array, identity, baseLt)
+    : undefined;
+}
 
-            module.exports = min;
+module.exports = min;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/minBy.js":
-        /*!**************************************!*\
+/***/ "./node_modules/lodash/minBy.js":
+/*!**************************************!*\
   !*** ./node_modules/lodash/minBy.js ***!
   \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js");
-
-            /**
-             * This method is like `_.min` except that it accepts `iteratee` which is
-             * invoked for each element in `array` to generate the criterion by which
-             * the value is ranked. The iteratee is invoked with one argument: (value).
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Math
-             * @param {Array} array The array to iterate over.
-             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
-             * @returns {*} Returns the minimum value.
-             * @example
-             *
-             * var objects = [{ 'n': 1 }, { 'n': 2 }];
-             *
-             * _.minBy(objects, function(o) { return o.n; });
-             * // => { 'n': 1 }
-             *
-             * // The `_.property` iteratee shorthand.
-             * _.minBy(objects, 'n');
-             * // => { 'n': 1 }
-             */
-            function minBy(array, iteratee) {
-                return (array && array.length)
-                    ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
-                    : undefined;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js");
+
+/**
+ * This method is like `_.min` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the criterion by which
+ * the value is ranked. The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
+ * @returns {*} Returns the minimum value.
+ * @example
+ *
+ * var objects = [{ 'n': 1 }, { 'n': 2 }];
+ *
+ * _.minBy(objects, function(o) { return o.n; });
+ * // => { 'n': 1 }
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.minBy(objects, 'n');
+ * // => { 'n': 1 }
+ */
+function minBy(array, iteratee) {
+  return (array && array.length)
+    ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
+    : undefined;
+}
 
-            module.exports = minBy;
+module.exports = minBy;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/noop.js":
-        /*!*************************************!*\
+/***/ "./node_modules/lodash/noop.js":
+/*!*************************************!*\
   !*** ./node_modules/lodash/noop.js ***!
   \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This method returns `undefined`.
-             *
-             * @static
-             * @memberOf _
-             * @since 2.3.0
-             * @category Util
-             * @example
-             *
-             * _.times(2, _.noop);
-             * // => [undefined, undefined]
-             */
-            function noop() {
-                // No operation performed.
-            }
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/**
+ * This method returns `undefined`.
+ *
+ * @static
+ * @memberOf _
+ * @since 2.3.0
+ * @category Util
+ * @example
+ *
+ * _.times(2, _.noop);
+ * // => [undefined, undefined]
+ */
+function noop() {
+  // No operation performed.
+}
 
-            module.exports = noop;
+module.exports = noop;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/now.js":
-        /*!************************************!*\
+/***/ "./node_modules/lodash/now.js":
+/*!************************************!*\
   !*** ./node_modules/lodash/now.js ***!
   \************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
-
-            /**
-             * Gets the timestamp of the number of milliseconds that have elapsed since
-             * the Unix epoch (1 January 1970 00:00:00 UTC).
-             *
-             * @static
-             * @memberOf _
-             * @since 2.4.0
-             * @category Date
-             * @returns {number} Returns the timestamp.
-             * @example
-             *
-             * _.defer(function(stamp) {
-             *   console.log(_.now() - stamp);
-             * }, _.now());
-             * // => Logs the number of milliseconds it took for the deferred invocation.
-             */
-            var now = function() {
-                return root.Date.now();
-            };
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            module.exports = now;
+var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
 
+/**
+ * Gets the timestamp of the number of milliseconds that have elapsed since
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Date
+ * @returns {number} Returns the timestamp.
+ * @example
+ *
+ * _.defer(function(stamp) {
+ *   console.log(_.now() - stamp);
+ * }, _.now());
+ * // => Logs the number of milliseconds it took for the deferred invocation.
+ */
+var now = function() {
+  return root.Date.now();
+};
+
+module.exports = now;
 
-            /***/ }),
 
-        /***/ "./node_modules/lodash/pick.js":
-        /*!*************************************!*\
+/***/ }),
+
+/***/ "./node_modules/lodash/pick.js":
+/*!*************************************!*\
   !*** ./node_modules/lodash/pick.js ***!
   \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
-                flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
-
-            /**
-             * Creates an object composed of the picked `object` properties.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Object
-             * @param {Object} object The source object.
-             * @param {...(string|string[])} [paths] The property paths to pick.
-             * @returns {Object} Returns the new object.
-             * @example
-             *
-             * var object = { 'a': 1, 'b': '2', 'c': 3 };
-             *
-             * _.pick(object, ['a', 'c']);
-             * // => { 'a': 1, 'c': 3 }
-             */
-            var pick = flatRest(function(object, paths) {
-                return object == null ? {} : basePick(object, paths);
-            });
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
+    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
+
+/**
+ * Creates an object composed of the picked `object` properties.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The source object.
+ * @param {...(string|string[])} [paths] The property paths to pick.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
+ *
+ * _.pick(object, ['a', 'c']);
+ * // => { 'a': 1, 'c': 3 }
+ */
+var pick = flatRest(function(object, paths) {
+  return object == null ? {} : basePick(object, paths);
+});
 
-            module.exports = pick;
+module.exports = pick;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/property.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/lodash/property.js":
+/*!*****************************************!*\
   !*** ./node_modules/lodash/property.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
-                basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
-                isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
-                toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
-
-            /**
-             * Creates a function that returns the value at `path` of a given object.
-             *
-             * @static
-             * @memberOf _
-             * @since 2.4.0
-             * @category Util
-             * @param {Array|string} path The path of the property to get.
-             * @returns {Function} Returns the new accessor function.
-             * @example
-             *
-             * var objects = [
-             *   { 'a': { 'b': 2 } },
-             *   { 'a': { 'b': 1 } }
-             * ];
-             *
-             * _.map(objects, _.property('a.b'));
-             * // => [2, 1]
-             *
-             * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
-             * // => [1, 2]
-             */
-            function property(path) {
-                return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
+    basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
+    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
+    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
+
+/**
+ * Creates a function that returns the value at `path` of a given object.
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Util
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new accessor function.
+ * @example
+ *
+ * var objects = [
+ *   { 'a': { 'b': 2 } },
+ *   { 'a': { 'b': 1 } }
+ * ];
+ *
+ * _.map(objects, _.property('a.b'));
+ * // => [2, 1]
+ *
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
+ * // => [1, 2]
+ */
+function property(path) {
+  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
+}
 
-            module.exports = property;
+module.exports = property;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/range.js":
-        /*!**************************************!*\
+/***/ "./node_modules/lodash/range.js":
+/*!**************************************!*\
   !*** ./node_modules/lodash/range.js ***!
   \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var createRange = __webpack_require__(/*! ./_createRange */ "./node_modules/lodash/_createRange.js");
-
-            /**
-             * Creates an array of numbers (positive and/or negative) progressing from
-             * `start` up to, but not including, `end`. A step of `-1` is used if a negative
-             * `start` is specified without an `end` or `step`. If `end` is not specified,
-             * it's set to `start` with `start` then set to `0`.
-             *
-             * **Note:** JavaScript follows the IEEE-754 standard for resolving
-             * floating-point values which can produce unexpected results.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Util
-             * @param {number} [start=0] The start of the range.
-             * @param {number} end The end of the range.
-             * @param {number} [step=1] The value to increment or decrement by.
-             * @returns {Array} Returns the range of numbers.
-             * @see _.inRange, _.rangeRight
-             * @example
-             *
-             * _.range(4);
-             * // => [0, 1, 2, 3]
-             *
-             * _.range(-4);
-             * // => [0, -1, -2, -3]
-             *
-             * _.range(1, 5);
-             * // => [1, 2, 3, 4]
-             *
-             * _.range(0, 20, 5);
-             * // => [0, 5, 10, 15]
-             *
-             * _.range(0, -4, -1);
-             * // => [0, -1, -2, -3]
-             *
-             * _.range(1, 4, 0);
-             * // => [1, 1, 1]
-             *
-             * _.range(0);
-             * // => []
-             */
-            var range = createRange();
-
-            module.exports = range;
-
-
-            /***/ }),
-
-        /***/ "./node_modules/lodash/reduce.js":
-        /*!***************************************!*\
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var createRange = __webpack_require__(/*! ./_createRange */ "./node_modules/lodash/_createRange.js");
+
+/**
+ * Creates an array of numbers (positive and/or negative) progressing from
+ * `start` up to, but not including, `end`. A step of `-1` is used if a negative
+ * `start` is specified without an `end` or `step`. If `end` is not specified,
+ * it's set to `start` with `start` then set to `0`.
+ *
+ * **Note:** JavaScript follows the IEEE-754 standard for resolving
+ * floating-point values which can produce unexpected results.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Util
+ * @param {number} [start=0] The start of the range.
+ * @param {number} end The end of the range.
+ * @param {number} [step=1] The value to increment or decrement by.
+ * @returns {Array} Returns the range of numbers.
+ * @see _.inRange, _.rangeRight
+ * @example
+ *
+ * _.range(4);
+ * // => [0, 1, 2, 3]
+ *
+ * _.range(-4);
+ * // => [0, -1, -2, -3]
+ *
+ * _.range(1, 5);
+ * // => [1, 2, 3, 4]
+ *
+ * _.range(0, 20, 5);
+ * // => [0, 5, 10, 15]
+ *
+ * _.range(0, -4, -1);
+ * // => [0, -1, -2, -3]
+ *
+ * _.range(1, 4, 0);
+ * // => [1, 1, 1]
+ *
+ * _.range(0);
+ * // => []
+ */
+var range = createRange();
+
+module.exports = range;
+
+
+/***/ }),
+
+/***/ "./node_modules/lodash/reduce.js":
+/*!***************************************!*\
   !*** ./node_modules/lodash/reduce.js ***!
   \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "./node_modules/lodash/_arrayReduce.js"),
-                baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                baseReduce = __webpack_require__(/*! ./_baseReduce */ "./node_modules/lodash/_baseReduce.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
-
-            /**
-             * Reduces `collection` to a value which is the accumulated result of running
-             * each element in `collection` thru `iteratee`, where each successive
-             * invocation is supplied the return value of the previous. If `accumulator`
-             * is not given, the first element of `collection` is used as the initial
-             * value. The iteratee is invoked with four arguments:
-             * (accumulator, value, index|key, collection).
-             *
-             * Many lodash methods are guarded to work as iteratees for methods like
-             * `_.reduce`, `_.reduceRight`, and `_.transform`.
-             *
-             * The guarded methods are:
-             * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
-             * and `sortBy`
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @param {*} [accumulator] The initial value.
-             * @returns {*} Returns the accumulated value.
-             * @see _.reduceRight
-             * @example
-             *
-             * _.reduce([1, 2], function(sum, n) {
-             *   return sum + n;
-             * }, 0);
-             * // => 3
-             *
-             * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
-             *   (result[value] || (result[value] = [])).push(key);
-             *   return result;
-             * }, {});
-             * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
-             */
-            function reduce(collection, iteratee, accumulator) {
-                var func = isArray(collection) ? arrayReduce : baseReduce,
-                    initAccum = arguments.length < 3;
-
-                return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "./node_modules/lodash/_arrayReduce.js"),
+    baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    baseReduce = __webpack_require__(/*! ./_baseReduce */ "./node_modules/lodash/_baseReduce.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
+
+/**
+ * Reduces `collection` to a value which is the accumulated result of running
+ * each element in `collection` thru `iteratee`, where each successive
+ * invocation is supplied the return value of the previous. If `accumulator`
+ * is not given, the first element of `collection` is used as the initial
+ * value. The iteratee is invoked with four arguments:
+ * (accumulator, value, index|key, collection).
+ *
+ * Many lodash methods are guarded to work as iteratees for methods like
+ * `_.reduce`, `_.reduceRight`, and `_.transform`.
+ *
+ * The guarded methods are:
+ * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
+ * and `sortBy`
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @param {*} [accumulator] The initial value.
+ * @returns {*} Returns the accumulated value.
+ * @see _.reduceRight
+ * @example
+ *
+ * _.reduce([1, 2], function(sum, n) {
+ *   return sum + n;
+ * }, 0);
+ * // => 3
+ *
+ * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
+ *   (result[value] || (result[value] = [])).push(key);
+ *   return result;
+ * }, {});
+ * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
+ */
+function reduce(collection, iteratee, accumulator) {
+  var func = isArray(collection) ? arrayReduce : baseReduce,
+      initAccum = arguments.length < 3;
+
+  return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
+}
 
-            module.exports = reduce;
+module.exports = reduce;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/size.js":
-        /*!*************************************!*\
+/***/ "./node_modules/lodash/size.js":
+/*!*************************************!*\
   !*** ./node_modules/lodash/size.js ***!
   \*************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
-                getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
-                isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
-                isString = __webpack_require__(/*! ./isString */ "./node_modules/lodash/isString.js"),
-                stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js");
-
-            /** `Object#toString` result references. */
-            var mapTag = '[object Map]',
-                setTag = '[object Set]';
-
-            /**
-             * Gets the size of `collection` by returning its length for array-like
-             * values or the number of own enumerable string keyed properties for objects.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object|string} collection The collection to inspect.
-             * @returns {number} Returns the collection size.
-             * @example
-             *
-             * _.size([1, 2, 3]);
-             * // => 3
-             *
-             * _.size({ 'a': 1, 'b': 2 });
-             * // => 2
-             *
-             * _.size('pebbles');
-             * // => 7
-             */
-            function size(collection) {
-                if (collection == null) {
-                    return 0;
-                }
-                if (isArrayLike(collection)) {
-                    return isString(collection) ? stringSize(collection) : collection.length;
-                }
-                var tag = getTag(collection);
-                if (tag == mapTag || tag == setTag) {
-                    return collection.size;
-                }
-                return baseKeys(collection).length;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
+    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
+    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
+    isString = __webpack_require__(/*! ./isString */ "./node_modules/lodash/isString.js"),
+    stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js");
+
+/** `Object#toString` result references. */
+var mapTag = '[object Map]',
+    setTag = '[object Set]';
+
+/**
+ * Gets the size of `collection` by returning its length for array-like
+ * values or the number of own enumerable string keyed properties for objects.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object|string} collection The collection to inspect.
+ * @returns {number} Returns the collection size.
+ * @example
+ *
+ * _.size([1, 2, 3]);
+ * // => 3
+ *
+ * _.size({ 'a': 1, 'b': 2 });
+ * // => 2
+ *
+ * _.size('pebbles');
+ * // => 7
+ */
+function size(collection) {
+  if (collection == null) {
+    return 0;
+  }
+  if (isArrayLike(collection)) {
+    return isString(collection) ? stringSize(collection) : collection.length;
+  }
+  var tag = getTag(collection);
+  if (tag == mapTag || tag == setTag) {
+    return collection.size;
+  }
+  return baseKeys(collection).length;
+}
 
-            module.exports = size;
+module.exports = size;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/sortBy.js":
-        /*!***************************************!*\
+/***/ "./node_modules/lodash/sortBy.js":
+/*!***************************************!*\
   !*** ./node_modules/lodash/sortBy.js ***!
   \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
-                baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"),
-                baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
-                isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
-
-            /**
-             * Creates an array of elements, sorted in ascending order by the results of
-             * running each element in a collection thru each iteratee. This method
-             * performs a stable sort, that is, it preserves the original sort order of
-             * equal elements. The iteratees are invoked with one argument: (value).
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Collection
-             * @param {Array|Object} collection The collection to iterate over.
-             * @param {...(Function|Function[])} [iteratees=[_.identity]]
-             *  The iteratees to sort by.
-             * @returns {Array} Returns the new sorted array.
-             * @example
-             *
-             * var users = [
-             *   { 'user': 'fred',   'age': 48 },
-             *   { 'user': 'barney', 'age': 36 },
-             *   { 'user': 'fred',   'age': 30 },
-             *   { 'user': 'barney', 'age': 34 }
-             * ];
-             *
-             * _.sortBy(users, [function(o) { return o.user; }]);
-             * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
-             *
-             * _.sortBy(users, ['user', 'age']);
-             * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
-             */
-            var sortBy = baseRest(function(collection, iteratees) {
-                if (collection == null) {
-                    return [];
-                }
-                var length = iteratees.length;
-                if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
-                    iteratees = [];
-                } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
-                    iteratees = [iteratees[0]];
-                }
-                return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
-            });
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
+    baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"),
+    baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
+    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
+
+/**
+ * Creates an array of elements, sorted in ascending order by the results of
+ * running each element in a collection thru each iteratee. This method
+ * performs a stable sort, that is, it preserves the original sort order of
+ * equal elements. The iteratees are invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {...(Function|Function[])} [iteratees=[_.identity]]
+ *  The iteratees to sort by.
+ * @returns {Array} Returns the new sorted array.
+ * @example
+ *
+ * var users = [
+ *   { 'user': 'fred',   'age': 48 },
+ *   { 'user': 'barney', 'age': 36 },
+ *   { 'user': 'fred',   'age': 30 },
+ *   { 'user': 'barney', 'age': 34 }
+ * ];
+ *
+ * _.sortBy(users, [function(o) { return o.user; }]);
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
+ *
+ * _.sortBy(users, ['user', 'age']);
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
+ */
+var sortBy = baseRest(function(collection, iteratees) {
+  if (collection == null) {
+    return [];
+  }
+  var length = iteratees.length;
+  if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
+    iteratees = [];
+  } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
+    iteratees = [iteratees[0]];
+  }
+  return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
+});
 
-            module.exports = sortBy;
+module.exports = sortBy;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/stubArray.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/stubArray.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/stubArray.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This method returns a new empty array.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.13.0
-             * @category Util
-             * @returns {Array} Returns the new empty array.
-             * @example
-             *
-             * var arrays = _.times(2, _.stubArray);
-             *
-             * console.log(arrays);
-             * // => [[], []]
-             *
-             * console.log(arrays[0] === arrays[1]);
-             * // => false
-             */
-            function stubArray() {
-                return [];
-            }
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/**
+ * This method returns a new empty array.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {Array} Returns the new empty array.
+ * @example
+ *
+ * var arrays = _.times(2, _.stubArray);
+ *
+ * console.log(arrays);
+ * // => [[], []]
+ *
+ * console.log(arrays[0] === arrays[1]);
+ * // => false
+ */
+function stubArray() {
+  return [];
+}
 
-            module.exports = stubArray;
+module.exports = stubArray;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/stubFalse.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/stubFalse.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/stubFalse.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            /**
-             * This method returns `false`.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.13.0
-             * @category Util
-             * @returns {boolean} Returns `false`.
-             * @example
-             *
-             * _.times(2, _.stubFalse);
-             * // => [false, false]
-             */
-            function stubFalse() {
-                return false;
-            }
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+/**
+ * This method returns `false`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {boolean} Returns `false`.
+ * @example
+ *
+ * _.times(2, _.stubFalse);
+ * // => [false, false]
+ */
+function stubFalse() {
+  return false;
+}
 
-            module.exports = stubFalse;
+module.exports = stubFalse;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/toFinite.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/lodash/toFinite.js":
+/*!*****************************************!*\
   !*** ./node_modules/lodash/toFinite.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
-
-            /** Used as references for various `Number` constants. */
-            var INFINITY = 1 / 0,
-                MAX_INTEGER = 1.7976931348623157e+308;
-
-            /**
-             * Converts `value` to a finite number.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.12.0
-             * @category Lang
-             * @param {*} value The value to convert.
-             * @returns {number} Returns the converted number.
-             * @example
-             *
-             * _.toFinite(3.2);
-             * // => 3.2
-             *
-             * _.toFinite(Number.MIN_VALUE);
-             * // => 5e-324
-             *
-             * _.toFinite(Infinity);
-             * // => 1.7976931348623157e+308
-             *
-             * _.toFinite('3.2');
-             * // => 3.2
-             */
-            function toFinite(value) {
-                if (!value) {
-                    return value === 0 ? value : 0;
-                }
-                value = toNumber(value);
-                if (value === INFINITY || value === -INFINITY) {
-                    var sign = (value < 0 ? -1 : 1);
-                    return sign * MAX_INTEGER;
-                }
-                return value === value ? value : 0;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
+
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0,
+    MAX_INTEGER = 1.7976931348623157e+308;
+
+/**
+ * Converts `value` to a finite number.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.12.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted number.
+ * @example
+ *
+ * _.toFinite(3.2);
+ * // => 3.2
+ *
+ * _.toFinite(Number.MIN_VALUE);
+ * // => 5e-324
+ *
+ * _.toFinite(Infinity);
+ * // => 1.7976931348623157e+308
+ *
+ * _.toFinite('3.2');
+ * // => 3.2
+ */
+function toFinite(value) {
+  if (!value) {
+    return value === 0 ? value : 0;
+  }
+  value = toNumber(value);
+  if (value === INFINITY || value === -INFINITY) {
+    var sign = (value < 0 ? -1 : 1);
+    return sign * MAX_INTEGER;
+  }
+  return value === value ? value : 0;
+}
 
-            module.exports = toFinite;
+module.exports = toFinite;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/toInteger.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/toInteger.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/toInteger.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
-
-            /**
-             * Converts `value` to an integer.
-             *
-             * **Note:** This method is loosely based on
-             * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to convert.
-             * @returns {number} Returns the converted integer.
-             * @example
-             *
-             * _.toInteger(3.2);
-             * // => 3
-             *
-             * _.toInteger(Number.MIN_VALUE);
-             * // => 0
-             *
-             * _.toInteger(Infinity);
-             * // => 1.7976931348623157e+308
-             *
-             * _.toInteger('3.2');
-             * // => 3
-             */
-            function toInteger(value) {
-                var result = toFinite(value),
-                    remainder = result % 1;
-
-                return result === result ? (remainder ? result - remainder : result) : 0;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
 
-            module.exports = toInteger;
+/**
+ * Converts `value` to an integer.
+ *
+ * **Note:** This method is loosely based on
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {number} Returns the converted integer.
+ * @example
+ *
+ * _.toInteger(3.2);
+ * // => 3
+ *
+ * _.toInteger(Number.MIN_VALUE);
+ * // => 0
+ *
+ * _.toInteger(Infinity);
+ * // => 1.7976931348623157e+308
+ *
+ * _.toInteger('3.2');
+ * // => 3
+ */
+function toInteger(value) {
+  var result = toFinite(value),
+      remainder = result % 1;
+
+  return result === result ? (remainder ? result - remainder : result) : 0;
+}
 
+module.exports = toInteger;
 
-            /***/ }),
 
-        /***/ "./node_modules/lodash/toNumber.js":
-        /*!*****************************************!*\
+/***/ }),
+
+/***/ "./node_modules/lodash/toNumber.js":
+/*!*****************************************!*\
   !*** ./node_modules/lodash/toNumber.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
-
-            /** Used as references for various `Number` constants. */
-            var NAN = 0 / 0;
-
-            /** Used to match leading and trailing whitespace. */
-            var reTrim = /^\s+|\s+$/g;
-
-            /** Used to detect bad signed hexadecimal string values. */
-            var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
-            /** Used to detect binary string values. */
-            var reIsBinary = /^0b[01]+$/i;
-
-            /** Used to detect octal string values. */
-            var reIsOctal = /^0o[0-7]+$/i;
-
-            /** Built-in method references without a dependency on `root`. */
-            var freeParseInt = parseInt;
-
-            /**
-             * Converts `value` to a number.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to process.
-             * @returns {number} Returns the number.
-             * @example
-             *
-             * _.toNumber(3.2);
-             * // => 3.2
-             *
-             * _.toNumber(Number.MIN_VALUE);
-             * // => 5e-324
-             *
-             * _.toNumber(Infinity);
-             * // => Infinity
-             *
-             * _.toNumber('3.2');
-             * // => 3.2
-             */
-            function toNumber(value) {
-                if (typeof value == 'number') {
-                    return value;
-                }
-                if (isSymbol(value)) {
-                    return NAN;
-                }
-                if (isObject(value)) {
-                    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
-                    value = isObject(other) ? (other + '') : other;
-                }
-                if (typeof value != 'string') {
-                    return value === 0 ? value : +value;
-                }
-                value = value.replace(reTrim, '');
-                var isBinary = reIsBinary.test(value);
-                return (isBinary || reIsOctal.test(value))
-                    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
-                    : (reIsBadHex.test(value) ? NAN : +value);
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
+
+/** Used as references for various `Number` constants. */
+var NAN = 0 / 0;
+
+/** Used to match leading and trailing whitespace. */
+var reTrim = /^\s+|\s+$/g;
+
+/** Used to detect bad signed hexadecimal string values. */
+var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
+
+/** Used to detect binary string values. */
+var reIsBinary = /^0b[01]+$/i;
+
+/** Used to detect octal string values. */
+var reIsOctal = /^0o[0-7]+$/i;
+
+/** Built-in method references without a dependency on `root`. */
+var freeParseInt = parseInt;
+
+/**
+ * Converts `value` to a number.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to process.
+ * @returns {number} Returns the number.
+ * @example
+ *
+ * _.toNumber(3.2);
+ * // => 3.2
+ *
+ * _.toNumber(Number.MIN_VALUE);
+ * // => 5e-324
+ *
+ * _.toNumber(Infinity);
+ * // => Infinity
+ *
+ * _.toNumber('3.2');
+ * // => 3.2
+ */
+function toNumber(value) {
+  if (typeof value == 'number') {
+    return value;
+  }
+  if (isSymbol(value)) {
+    return NAN;
+  }
+  if (isObject(value)) {
+    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
+    value = isObject(other) ? (other + '') : other;
+  }
+  if (typeof value != 'string') {
+    return value === 0 ? value : +value;
+  }
+  value = value.replace(reTrim, '');
+  var isBinary = reIsBinary.test(value);
+  return (isBinary || reIsOctal.test(value))
+    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
+    : (reIsBadHex.test(value) ? NAN : +value);
+}
 
-            module.exports = toNumber;
+module.exports = toNumber;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/toPlainObject.js":
-        /*!**********************************************!*\
+/***/ "./node_modules/lodash/toPlainObject.js":
+/*!**********************************************!*\
   !*** ./node_modules/lodash/toPlainObject.js ***!
   \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
-                keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
-
-            /**
-             * Converts `value` to a plain object flattening inherited enumerable string
-             * keyed properties of `value` to own properties of the plain object.
-             *
-             * @static
-             * @memberOf _
-             * @since 3.0.0
-             * @category Lang
-             * @param {*} value The value to convert.
-             * @returns {Object} Returns the converted plain object.
-             * @example
-             *
-             * function Foo() {
-             *   this.b = 2;
-             * }
-             *
-             * Foo.prototype.c = 3;
-             *
-             * _.assign({ 'a': 1 }, new Foo);
-             * // => { 'a': 1, 'b': 2 }
-             *
-             * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
-             * // => { 'a': 1, 'b': 2, 'c': 3 }
-             */
-            function toPlainObject(value) {
-                return copyObject(value, keysIn(value));
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
+    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
+
+/**
+ * Converts `value` to a plain object flattening inherited enumerable string
+ * keyed properties of `value` to own properties of the plain object.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.0.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {Object} Returns the converted plain object.
+ * @example
+ *
+ * function Foo() {
+ *   this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.assign({ 'a': 1 }, new Foo);
+ * // => { 'a': 1, 'b': 2 }
+ *
+ * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
+ * // => { 'a': 1, 'b': 2, 'c': 3 }
+ */
+function toPlainObject(value) {
+  return copyObject(value, keysIn(value));
+}
 
-            module.exports = toPlainObject;
+module.exports = toPlainObject;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/toString.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/lodash/toString.js":
+/*!*****************************************!*\
   !*** ./node_modules/lodash/toString.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
-
-            /**
-             * Converts `value` to a string. An empty string is returned for `null`
-             * and `undefined` values. The sign of `-0` is preserved.
-             *
-             * @static
-             * @memberOf _
-             * @since 4.0.0
-             * @category Lang
-             * @param {*} value The value to convert.
-             * @returns {string} Returns the converted string.
-             * @example
-             *
-             * _.toString(null);
-             * // => ''
-             *
-             * _.toString(-0);
-             * // => '-0'
-             *
-             * _.toString([1, 2, 3]);
-             * // => '1,2,3'
-             */
-            function toString(value) {
-                return value == null ? '' : baseToString(value);
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
+
+/**
+ * Converts `value` to a string. An empty string is returned for `null`
+ * and `undefined` values. The sign of `-0` is preserved.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to convert.
+ * @returns {string} Returns the converted string.
+ * @example
+ *
+ * _.toString(null);
+ * // => ''
+ *
+ * _.toString(-0);
+ * // => '-0'
+ *
+ * _.toString([1, 2, 3]);
+ * // => '1,2,3'
+ */
+function toString(value) {
+  return value == null ? '' : baseToString(value);
+}
 
-            module.exports = toString;
+module.exports = toString;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/transform.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/transform.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/transform.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
-                baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
-                baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
-                baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
-                getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
-                isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
-                isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
-                isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
-                isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
-                isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
-
-            /**
-             * An alternative to `_.reduce`; this method transforms `object` to a new
-             * `accumulator` object which is the result of running each of its own
-             * enumerable string keyed properties thru `iteratee`, with each invocation
-             * potentially mutating the `accumulator` object. If `accumulator` is not
-             * provided, a new object with the same `[[Prototype]]` will be used. The
-             * iteratee is invoked with four arguments: (accumulator, value, key, object).
-             * Iteratee functions may exit iteration early by explicitly returning `false`.
-             *
-             * @static
-             * @memberOf _
-             * @since 1.3.0
-             * @category Object
-             * @param {Object} object The object to iterate over.
-             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
-             * @param {*} [accumulator] The custom accumulator value.
-             * @returns {*} Returns the accumulated value.
-             * @example
-             *
-             * _.transform([2, 3, 4], function(result, n) {
-             *   result.push(n *= n);
-             *   return n % 2 == 0;
-             * }, []);
-             * // => [4, 9]
-             *
-             * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
-             *   (result[value] || (result[value] = [])).push(key);
-             * }, {});
-             * // => { '1': ['a', 'c'], '2': ['b'] }
-             */
-            function transform(object, iteratee, accumulator) {
-                var isArr = isArray(object),
-                    isArrLike = isArr || isBuffer(object) || isTypedArray(object);
-
-                iteratee = baseIteratee(iteratee, 4);
-                if (accumulator == null) {
-                    var Ctor = object && object.constructor;
-                    if (isArrLike) {
-                        accumulator = isArr ? new Ctor : [];
-                    }
-                    else if (isObject(object)) {
-                        accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
-                    }
-                    else {
-                        accumulator = {};
-                    }
-                }
-                (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
-                    return iteratee(accumulator, value, index, object);
-                });
-                return accumulator;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
+    baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
+    baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
+    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
+    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
+    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
+    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
+    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
+    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
+    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
+
+/**
+ * An alternative to `_.reduce`; this method transforms `object` to a new
+ * `accumulator` object which is the result of running each of its own
+ * enumerable string keyed properties thru `iteratee`, with each invocation
+ * potentially mutating the `accumulator` object. If `accumulator` is not
+ * provided, a new object with the same `[[Prototype]]` will be used. The
+ * iteratee is invoked with four arguments: (accumulator, value, key, object).
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
+ *
+ * @static
+ * @memberOf _
+ * @since 1.3.0
+ * @category Object
+ * @param {Object} object The object to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @param {*} [accumulator] The custom accumulator value.
+ * @returns {*} Returns the accumulated value.
+ * @example
+ *
+ * _.transform([2, 3, 4], function(result, n) {
+ *   result.push(n *= n);
+ *   return n % 2 == 0;
+ * }, []);
+ * // => [4, 9]
+ *
+ * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
+ *   (result[value] || (result[value] = [])).push(key);
+ * }, {});
+ * // => { '1': ['a', 'c'], '2': ['b'] }
+ */
+function transform(object, iteratee, accumulator) {
+  var isArr = isArray(object),
+      isArrLike = isArr || isBuffer(object) || isTypedArray(object);
+
+  iteratee = baseIteratee(iteratee, 4);
+  if (accumulator == null) {
+    var Ctor = object && object.constructor;
+    if (isArrLike) {
+      accumulator = isArr ? new Ctor : [];
+    }
+    else if (isObject(object)) {
+      accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
+    }
+    else {
+      accumulator = {};
+    }
+  }
+  (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
+    return iteratee(accumulator, value, index, object);
+  });
+  return accumulator;
+}
 
-            module.exports = transform;
+module.exports = transform;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/union.js":
-        /*!**************************************!*\
+/***/ "./node_modules/lodash/union.js":
+/*!**************************************!*\
   !*** ./node_modules/lodash/union.js ***!
   \**************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
-                baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
-                baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js"),
-                isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js");
-
-            /**
-             * Creates an array of unique values, in order, from all given arrays using
-             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
-             * for equality comparisons.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.1.0
-             * @category Array
-             * @param {...Array} [arrays] The arrays to inspect.
-             * @returns {Array} Returns the new array of combined values.
-             * @example
-             *
-             * _.union([2], [1, 2]);
-             * // => [2, 1]
-             */
-            var union = baseRest(function(arrays) {
-                return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
-            });
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
+    baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
+    baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js"),
+    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js");
+
+/**
+ * Creates an array of unique values, in order, from all given arrays using
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * for equality comparisons.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Array
+ * @param {...Array} [arrays] The arrays to inspect.
+ * @returns {Array} Returns the new array of combined values.
+ * @example
+ *
+ * _.union([2], [1, 2]);
+ * // => [2, 1]
+ */
+var union = baseRest(function(arrays) {
+  return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
+});
 
-            module.exports = union;
+module.exports = union;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/uniqueId.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/lodash/uniqueId.js":
+/*!*****************************************!*\
   !*** ./node_modules/lodash/uniqueId.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
-
-            /** Used to generate unique IDs. */
-            var idCounter = 0;
-
-            /**
-             * Generates a unique ID. If `prefix` is given, the ID is appended to it.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Util
-             * @param {string} [prefix=''] The value to prefix the ID with.
-             * @returns {string} Returns the unique ID.
-             * @example
-             *
-             * _.uniqueId('contact_');
-             * // => 'contact_104'
-             *
-             * _.uniqueId();
-             * // => '105'
-             */
-            function uniqueId(prefix) {
-                var id = ++idCounter;
-                return toString(prefix) + id;
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
+
+/** Used to generate unique IDs. */
+var idCounter = 0;
+
+/**
+ * Generates a unique ID. If `prefix` is given, the ID is appended to it.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Util
+ * @param {string} [prefix=''] The value to prefix the ID with.
+ * @returns {string} Returns the unique ID.
+ * @example
+ *
+ * _.uniqueId('contact_');
+ * // => 'contact_104'
+ *
+ * _.uniqueId();
+ * // => '105'
+ */
+function uniqueId(prefix) {
+  var id = ++idCounter;
+  return toString(prefix) + id;
+}
 
-            module.exports = uniqueId;
+module.exports = uniqueId;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/values.js":
-        /*!***************************************!*\
+/***/ "./node_modules/lodash/values.js":
+/*!***************************************!*\
   !*** ./node_modules/lodash/values.js ***!
   \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var baseValues = __webpack_require__(/*! ./_baseValues */ "./node_modules/lodash/_baseValues.js"),
-                keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
-
-            /**
-             * Creates an array of the own enumerable string keyed property values of `object`.
-             *
-             * **Note:** Non-object values are coerced to objects.
-             *
-             * @static
-             * @since 0.1.0
-             * @memberOf _
-             * @category Object
-             * @param {Object} object The object to query.
-             * @returns {Array} Returns the array of property values.
-             * @example
-             *
-             * function Foo() {
-             *   this.a = 1;
-             *   this.b = 2;
-             * }
-             *
-             * Foo.prototype.c = 3;
-             *
-             * _.values(new Foo);
-             * // => [1, 2] (iteration order is not guaranteed)
-             *
-             * _.values('hi');
-             * // => ['h', 'i']
-             */
-            function values(object) {
-                return object == null ? [] : baseValues(object, keys(object));
-            }
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var baseValues = __webpack_require__(/*! ./_baseValues */ "./node_modules/lodash/_baseValues.js"),
+    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
+
+/**
+ * Creates an array of the own enumerable string keyed property values of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property values.
+ * @example
+ *
+ * function Foo() {
+ *   this.a = 1;
+ *   this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.values(new Foo);
+ * // => [1, 2] (iteration order is not guaranteed)
+ *
+ * _.values('hi');
+ * // => ['h', 'i']
+ */
+function values(object) {
+  return object == null ? [] : baseValues(object, keys(object));
+}
 
-            module.exports = values;
+module.exports = values;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/lodash/zipObject.js":
-        /*!******************************************!*\
+/***/ "./node_modules/lodash/zipObject.js":
+/*!******************************************!*\
   !*** ./node_modules/lodash/zipObject.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
-                baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "./node_modules/lodash/_baseZipObject.js");
-
-            /**
-             * This method is like `_.fromPairs` except that it accepts two arrays,
-             * one of property identifiers and one of corresponding values.
-             *
-             * @static
-             * @memberOf _
-             * @since 0.4.0
-             * @category Array
-             * @param {Array} [props=[]] The property identifiers.
-             * @param {Array} [values=[]] The property values.
-             * @returns {Object} Returns the new object.
-             * @example
-             *
-             * _.zipObject(['a', 'b'], [1, 2]);
-             * // => { 'a': 1, 'b': 2 }
-             */
-            function zipObject(props, values) {
-                return baseZipObject(props || [], values || [], assignValue);
-            }
-
-            module.exports = zipObject;
-
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /***/ }),
+var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
+    baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "./node_modules/lodash/_baseZipObject.js");
 
-        /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
-        /*!**************************************************!*\
-  !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
-  \**************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
-
-            var map = {
-                "./af": "./node_modules/moment/locale/af.js",
-                "./af.js": "./node_modules/moment/locale/af.js",
-                "./ar": "./node_modules/moment/locale/ar.js",
-                "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
-                "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
-                "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
-                "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
-                "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
-                "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
-                "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
-                "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
-                "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
-                "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
-                "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
-                "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
-                "./ar.js": "./node_modules/moment/locale/ar.js",
-                "./az": "./node_modules/moment/locale/az.js",
-                "./az.js": "./node_modules/moment/locale/az.js",
-                "./be": "./node_modules/moment/locale/be.js",
-                "./be.js": "./node_modules/moment/locale/be.js",
-                "./bg": "./node_modules/moment/locale/bg.js",
-                "./bg.js": "./node_modules/moment/locale/bg.js",
-                "./bm": "./node_modules/moment/locale/bm.js",
-                "./bm.js": "./node_modules/moment/locale/bm.js",
-                "./bn": "./node_modules/moment/locale/bn.js",
-                "./bn-bd": "./node_modules/moment/locale/bn-bd.js",
-                "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js",
-                "./bn.js": "./node_modules/moment/locale/bn.js",
-                "./bo": "./node_modules/moment/locale/bo.js",
-                "./bo.js": "./node_modules/moment/locale/bo.js",
-                "./br": "./node_modules/moment/locale/br.js",
-                "./br.js": "./node_modules/moment/locale/br.js",
-                "./bs": "./node_modules/moment/locale/bs.js",
-                "./bs.js": "./node_modules/moment/locale/bs.js",
-                "./ca": "./node_modules/moment/locale/ca.js",
-                "./ca.js": "./node_modules/moment/locale/ca.js",
-                "./cs": "./node_modules/moment/locale/cs.js",
-                "./cs.js": "./node_modules/moment/locale/cs.js",
-                "./cv": "./node_modules/moment/locale/cv.js",
-                "./cv.js": "./node_modules/moment/locale/cv.js",
-                "./cy": "./node_modules/moment/locale/cy.js",
-                "./cy.js": "./node_modules/moment/locale/cy.js",
-                "./da": "./node_modules/moment/locale/da.js",
-                "./da.js": "./node_modules/moment/locale/da.js",
-                "./de": "./node_modules/moment/locale/de.js",
-                "./de-at": "./node_modules/moment/locale/de-at.js",
-                "./de-at.js": "./node_modules/moment/locale/de-at.js",
-                "./de-ch": "./node_modules/moment/locale/de-ch.js",
-                "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
-                "./de.js": "./node_modules/moment/locale/de.js",
-                "./dv": "./node_modules/moment/locale/dv.js",
-                "./dv.js": "./node_modules/moment/locale/dv.js",
-                "./el": "./node_modules/moment/locale/el.js",
-                "./el.js": "./node_modules/moment/locale/el.js",
-                "./en-au": "./node_modules/moment/locale/en-au.js",
-                "./en-au.js": "./node_modules/moment/locale/en-au.js",
-                "./en-ca": "./node_modules/moment/locale/en-ca.js",
-                "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
-                "./en-gb": "./node_modules/moment/locale/en-gb.js",
-                "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
-                "./en-ie": "./node_modules/moment/locale/en-ie.js",
-                "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
-                "./en-il": "./node_modules/moment/locale/en-il.js",
-                "./en-il.js": "./node_modules/moment/locale/en-il.js",
-                "./en-in": "./node_modules/moment/locale/en-in.js",
-                "./en-in.js": "./node_modules/moment/locale/en-in.js",
-                "./en-nz": "./node_modules/moment/locale/en-nz.js",
-                "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
-                "./en-sg": "./node_modules/moment/locale/en-sg.js",
-                "./en-sg.js": "./node_modules/moment/locale/en-sg.js",
-                "./eo": "./node_modules/moment/locale/eo.js",
-                "./eo.js": "./node_modules/moment/locale/eo.js",
-                "./es": "./node_modules/moment/locale/es.js",
-                "./es-do": "./node_modules/moment/locale/es-do.js",
-                "./es-do.js": "./node_modules/moment/locale/es-do.js",
-                "./es-mx": "./node_modules/moment/locale/es-mx.js",
-                "./es-mx.js": "./node_modules/moment/locale/es-mx.js",
-                "./es-us": "./node_modules/moment/locale/es-us.js",
-                "./es-us.js": "./node_modules/moment/locale/es-us.js",
-                "./es.js": "./node_modules/moment/locale/es.js",
-                "./et": "./node_modules/moment/locale/et.js",
-                "./et.js": "./node_modules/moment/locale/et.js",
-                "./eu": "./node_modules/moment/locale/eu.js",
-                "./eu.js": "./node_modules/moment/locale/eu.js",
-                "./fa": "./node_modules/moment/locale/fa.js",
-                "./fa.js": "./node_modules/moment/locale/fa.js",
-                "./fi": "./node_modules/moment/locale/fi.js",
-                "./fi.js": "./node_modules/moment/locale/fi.js",
-                "./fil": "./node_modules/moment/locale/fil.js",
-                "./fil.js": "./node_modules/moment/locale/fil.js",
-                "./fo": "./node_modules/moment/locale/fo.js",
-                "./fo.js": "./node_modules/moment/locale/fo.js",
-                "./fr": "./node_modules/moment/locale/fr.js",
-                "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
-                "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
-                "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
-                "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
-                "./fr.js": "./node_modules/moment/locale/fr.js",
-                "./fy": "./node_modules/moment/locale/fy.js",
-                "./fy.js": "./node_modules/moment/locale/fy.js",
-                "./ga": "./node_modules/moment/locale/ga.js",
-                "./ga.js": "./node_modules/moment/locale/ga.js",
-                "./gd": "./node_modules/moment/locale/gd.js",
-                "./gd.js": "./node_modules/moment/locale/gd.js",
-                "./gl": "./node_modules/moment/locale/gl.js",
-                "./gl.js": "./node_modules/moment/locale/gl.js",
-                "./gom-deva": "./node_modules/moment/locale/gom-deva.js",
-                "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js",
-                "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
-                "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
-                "./gu": "./node_modules/moment/locale/gu.js",
-                "./gu.js": "./node_modules/moment/locale/gu.js",
-                "./he": "./node_modules/moment/locale/he.js",
-                "./he.js": "./node_modules/moment/locale/he.js",
-                "./hi": "./node_modules/moment/locale/hi.js",
-                "./hi.js": "./node_modules/moment/locale/hi.js",
-                "./hr": "./node_modules/moment/locale/hr.js",
-                "./hr.js": "./node_modules/moment/locale/hr.js",
-                "./hu": "./node_modules/moment/locale/hu.js",
-                "./hu.js": "./node_modules/moment/locale/hu.js",
-                "./hy-am": "./node_modules/moment/locale/hy-am.js",
-                "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
-                "./id": "./node_modules/moment/locale/id.js",
-                "./id.js": "./node_modules/moment/locale/id.js",
-                "./is": "./node_modules/moment/locale/is.js",
-                "./is.js": "./node_modules/moment/locale/is.js",
-                "./it": "./node_modules/moment/locale/it.js",
-                "./it-ch": "./node_modules/moment/locale/it-ch.js",
-                "./it-ch.js": "./node_modules/moment/locale/it-ch.js",
-                "./it.js": "./node_modules/moment/locale/it.js",
-                "./ja": "./node_modules/moment/locale/ja.js",
-                "./ja.js": "./node_modules/moment/locale/ja.js",
-                "./jv": "./node_modules/moment/locale/jv.js",
-                "./jv.js": "./node_modules/moment/locale/jv.js",
-                "./ka": "./node_modules/moment/locale/ka.js",
-                "./ka.js": "./node_modules/moment/locale/ka.js",
-                "./kk": "./node_modules/moment/locale/kk.js",
-                "./kk.js": "./node_modules/moment/locale/kk.js",
-                "./km": "./node_modules/moment/locale/km.js",
-                "./km.js": "./node_modules/moment/locale/km.js",
-                "./kn": "./node_modules/moment/locale/kn.js",
-                "./kn.js": "./node_modules/moment/locale/kn.js",
-                "./ko": "./node_modules/moment/locale/ko.js",
-                "./ko.js": "./node_modules/moment/locale/ko.js",
-                "./ku": "./node_modules/moment/locale/ku.js",
-                "./ku.js": "./node_modules/moment/locale/ku.js",
-                "./ky": "./node_modules/moment/locale/ky.js",
-                "./ky.js": "./node_modules/moment/locale/ky.js",
-                "./lb": "./node_modules/moment/locale/lb.js",
-                "./lb.js": "./node_modules/moment/locale/lb.js",
-                "./lo": "./node_modules/moment/locale/lo.js",
-                "./lo.js": "./node_modules/moment/locale/lo.js",
-                "./lt": "./node_modules/moment/locale/lt.js",
-                "./lt.js": "./node_modules/moment/locale/lt.js",
-                "./lv": "./node_modules/moment/locale/lv.js",
-                "./lv.js": "./node_modules/moment/locale/lv.js",
-                "./me": "./node_modules/moment/locale/me.js",
-                "./me.js": "./node_modules/moment/locale/me.js",
-                "./mi": "./node_modules/moment/locale/mi.js",
-                "./mi.js": "./node_modules/moment/locale/mi.js",
-                "./mk": "./node_modules/moment/locale/mk.js",
-                "./mk.js": "./node_modules/moment/locale/mk.js",
-                "./ml": "./node_modules/moment/locale/ml.js",
-                "./ml.js": "./node_modules/moment/locale/ml.js",
-                "./mn": "./node_modules/moment/locale/mn.js",
-                "./mn.js": "./node_modules/moment/locale/mn.js",
-                "./mr": "./node_modules/moment/locale/mr.js",
-                "./mr.js": "./node_modules/moment/locale/mr.js",
-                "./ms": "./node_modules/moment/locale/ms.js",
-                "./ms-my": "./node_modules/moment/locale/ms-my.js",
-                "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
-                "./ms.js": "./node_modules/moment/locale/ms.js",
-                "./mt": "./node_modules/moment/locale/mt.js",
-                "./mt.js": "./node_modules/moment/locale/mt.js",
-                "./my": "./node_modules/moment/locale/my.js",
-                "./my.js": "./node_modules/moment/locale/my.js",
-                "./nb": "./node_modules/moment/locale/nb.js",
-                "./nb.js": "./node_modules/moment/locale/nb.js",
-                "./ne": "./node_modules/moment/locale/ne.js",
-                "./ne.js": "./node_modules/moment/locale/ne.js",
-                "./nl": "./node_modules/moment/locale/nl.js",
-                "./nl-be": "./node_modules/moment/locale/nl-be.js",
-                "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
-                "./nl.js": "./node_modules/moment/locale/nl.js",
-                "./nn": "./node_modules/moment/locale/nn.js",
-                "./nn.js": "./node_modules/moment/locale/nn.js",
-                "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js",
-                "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js",
-                "./pa-in": "./node_modules/moment/locale/pa-in.js",
-                "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
-                "./pl": "./node_modules/moment/locale/pl.js",
-                "./pl.js": "./node_modules/moment/locale/pl.js",
-                "./pt": "./node_modules/moment/locale/pt.js",
-                "./pt-br": "./node_modules/moment/locale/pt-br.js",
-                "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
-                "./pt.js": "./node_modules/moment/locale/pt.js",
-                "./ro": "./node_modules/moment/locale/ro.js",
-                "./ro.js": "./node_modules/moment/locale/ro.js",
-                "./ru": "./node_modules/moment/locale/ru.js",
-                "./ru.js": "./node_modules/moment/locale/ru.js",
-                "./sd": "./node_modules/moment/locale/sd.js",
-                "./sd.js": "./node_modules/moment/locale/sd.js",
-                "./se": "./node_modules/moment/locale/se.js",
-                "./se.js": "./node_modules/moment/locale/se.js",
-                "./si": "./node_modules/moment/locale/si.js",
-                "./si.js": "./node_modules/moment/locale/si.js",
-                "./sk": "./node_modules/moment/locale/sk.js",
-                "./sk.js": "./node_modules/moment/locale/sk.js",
-                "./sl": "./node_modules/moment/locale/sl.js",
-                "./sl.js": "./node_modules/moment/locale/sl.js",
-                "./sq": "./node_modules/moment/locale/sq.js",
-                "./sq.js": "./node_modules/moment/locale/sq.js",
-                "./sr": "./node_modules/moment/locale/sr.js",
-                "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
-                "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
-                "./sr.js": "./node_modules/moment/locale/sr.js",
-                "./ss": "./node_modules/moment/locale/ss.js",
-                "./ss.js": "./node_modules/moment/locale/ss.js",
-                "./sv": "./node_modules/moment/locale/sv.js",
-                "./sv.js": "./node_modules/moment/locale/sv.js",
-                "./sw": "./node_modules/moment/locale/sw.js",
-                "./sw.js": "./node_modules/moment/locale/sw.js",
-                "./ta": "./node_modules/moment/locale/ta.js",
-                "./ta.js": "./node_modules/moment/locale/ta.js",
-                "./te": "./node_modules/moment/locale/te.js",
-                "./te.js": "./node_modules/moment/locale/te.js",
-                "./tet": "./node_modules/moment/locale/tet.js",
-                "./tet.js": "./node_modules/moment/locale/tet.js",
-                "./tg": "./node_modules/moment/locale/tg.js",
-                "./tg.js": "./node_modules/moment/locale/tg.js",
-                "./th": "./node_modules/moment/locale/th.js",
-                "./th.js": "./node_modules/moment/locale/th.js",
-                "./tk": "./node_modules/moment/locale/tk.js",
-                "./tk.js": "./node_modules/moment/locale/tk.js",
-                "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
-                "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
-                "./tlh": "./node_modules/moment/locale/tlh.js",
-                "./tlh.js": "./node_modules/moment/locale/tlh.js",
-                "./tr": "./node_modules/moment/locale/tr.js",
-                "./tr.js": "./node_modules/moment/locale/tr.js",
-                "./tzl": "./node_modules/moment/locale/tzl.js",
-                "./tzl.js": "./node_modules/moment/locale/tzl.js",
-                "./tzm": "./node_modules/moment/locale/tzm.js",
-                "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
-                "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
-                "./tzm.js": "./node_modules/moment/locale/tzm.js",
-                "./ug-cn": "./node_modules/moment/locale/ug-cn.js",
-                "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
-                "./uk": "./node_modules/moment/locale/uk.js",
-                "./uk.js": "./node_modules/moment/locale/uk.js",
-                "./ur": "./node_modules/moment/locale/ur.js",
-                "./ur.js": "./node_modules/moment/locale/ur.js",
-                "./uz": "./node_modules/moment/locale/uz.js",
-                "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
-                "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
-                "./uz.js": "./node_modules/moment/locale/uz.js",
-                "./vi": "./node_modules/moment/locale/vi.js",
-                "./vi.js": "./node_modules/moment/locale/vi.js",
-                "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
-                "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
-                "./yo": "./node_modules/moment/locale/yo.js",
-                "./yo.js": "./node_modules/moment/locale/yo.js",
-                "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
-                "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
-                "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
-                "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
-                "./zh-mo": "./node_modules/moment/locale/zh-mo.js",
-                "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js",
-                "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
-                "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
-            };
+/**
+ * This method is like `_.fromPairs` except that it accepts two arrays,
+ * one of property identifiers and one of corresponding values.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.4.0
+ * @category Array
+ * @param {Array} [props=[]] The property identifiers.
+ * @param {Array} [values=[]] The property values.
+ * @returns {Object} Returns the new object.
+ * @example
+ *
+ * _.zipObject(['a', 'b'], [1, 2]);
+ * // => { 'a': 1, 'b': 2 }
+ */
+function zipObject(props, values) {
+  return baseZipObject(props || [], values || [], assignValue);
+}
 
+module.exports = zipObject;
 
-            function webpackContext(req) {
-                var id = webpackContextResolve(req);
-                return __webpack_require__(id);
-            }
-            function webpackContextResolve(req) {
-                if(!__webpack_require__.o(map, req)) {
-                    var e = new Error("Cannot find module '" + req + "'");
-                    e.code = 'MODULE_NOT_FOUND';
-                    throw e;
-                }
-                return map[req];
-            }
-            webpackContext.keys = function webpackContextKeys() {
-                return Object.keys(map);
-            };
-            webpackContext.resolve = webpackContextResolve;
-            module.exports = webpackContext;
-            webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/af.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
+/*!**************************************************!*\
+  !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
+  \**************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+var map = {
+	"./af": "./node_modules/moment/locale/af.js",
+	"./af.js": "./node_modules/moment/locale/af.js",
+	"./ar": "./node_modules/moment/locale/ar.js",
+	"./ar-dz": "./node_modules/moment/locale/ar-dz.js",
+	"./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
+	"./ar-kw": "./node_modules/moment/locale/ar-kw.js",
+	"./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
+	"./ar-ly": "./node_modules/moment/locale/ar-ly.js",
+	"./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
+	"./ar-ma": "./node_modules/moment/locale/ar-ma.js",
+	"./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
+	"./ar-sa": "./node_modules/moment/locale/ar-sa.js",
+	"./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
+	"./ar-tn": "./node_modules/moment/locale/ar-tn.js",
+	"./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
+	"./ar.js": "./node_modules/moment/locale/ar.js",
+	"./az": "./node_modules/moment/locale/az.js",
+	"./az.js": "./node_modules/moment/locale/az.js",
+	"./be": "./node_modules/moment/locale/be.js",
+	"./be.js": "./node_modules/moment/locale/be.js",
+	"./bg": "./node_modules/moment/locale/bg.js",
+	"./bg.js": "./node_modules/moment/locale/bg.js",
+	"./bm": "./node_modules/moment/locale/bm.js",
+	"./bm.js": "./node_modules/moment/locale/bm.js",
+	"./bn": "./node_modules/moment/locale/bn.js",
+	"./bn-bd": "./node_modules/moment/locale/bn-bd.js",
+	"./bn-bd.js": "./node_modules/moment/locale/bn-bd.js",
+	"./bn.js": "./node_modules/moment/locale/bn.js",
+	"./bo": "./node_modules/moment/locale/bo.js",
+	"./bo.js": "./node_modules/moment/locale/bo.js",
+	"./br": "./node_modules/moment/locale/br.js",
+	"./br.js": "./node_modules/moment/locale/br.js",
+	"./bs": "./node_modules/moment/locale/bs.js",
+	"./bs.js": "./node_modules/moment/locale/bs.js",
+	"./ca": "./node_modules/moment/locale/ca.js",
+	"./ca.js": "./node_modules/moment/locale/ca.js",
+	"./cs": "./node_modules/moment/locale/cs.js",
+	"./cs.js": "./node_modules/moment/locale/cs.js",
+	"./cv": "./node_modules/moment/locale/cv.js",
+	"./cv.js": "./node_modules/moment/locale/cv.js",
+	"./cy": "./node_modules/moment/locale/cy.js",
+	"./cy.js": "./node_modules/moment/locale/cy.js",
+	"./da": "./node_modules/moment/locale/da.js",
+	"./da.js": "./node_modules/moment/locale/da.js",
+	"./de": "./node_modules/moment/locale/de.js",
+	"./de-at": "./node_modules/moment/locale/de-at.js",
+	"./de-at.js": "./node_modules/moment/locale/de-at.js",
+	"./de-ch": "./node_modules/moment/locale/de-ch.js",
+	"./de-ch.js": "./node_modules/moment/locale/de-ch.js",
+	"./de.js": "./node_modules/moment/locale/de.js",
+	"./dv": "./node_modules/moment/locale/dv.js",
+	"./dv.js": "./node_modules/moment/locale/dv.js",
+	"./el": "./node_modules/moment/locale/el.js",
+	"./el.js": "./node_modules/moment/locale/el.js",
+	"./en-au": "./node_modules/moment/locale/en-au.js",
+	"./en-au.js": "./node_modules/moment/locale/en-au.js",
+	"./en-ca": "./node_modules/moment/locale/en-ca.js",
+	"./en-ca.js": "./node_modules/moment/locale/en-ca.js",
+	"./en-gb": "./node_modules/moment/locale/en-gb.js",
+	"./en-gb.js": "./node_modules/moment/locale/en-gb.js",
+	"./en-ie": "./node_modules/moment/locale/en-ie.js",
+	"./en-ie.js": "./node_modules/moment/locale/en-ie.js",
+	"./en-il": "./node_modules/moment/locale/en-il.js",
+	"./en-il.js": "./node_modules/moment/locale/en-il.js",
+	"./en-in": "./node_modules/moment/locale/en-in.js",
+	"./en-in.js": "./node_modules/moment/locale/en-in.js",
+	"./en-nz": "./node_modules/moment/locale/en-nz.js",
+	"./en-nz.js": "./node_modules/moment/locale/en-nz.js",
+	"./en-sg": "./node_modules/moment/locale/en-sg.js",
+	"./en-sg.js": "./node_modules/moment/locale/en-sg.js",
+	"./eo": "./node_modules/moment/locale/eo.js",
+	"./eo.js": "./node_modules/moment/locale/eo.js",
+	"./es": "./node_modules/moment/locale/es.js",
+	"./es-do": "./node_modules/moment/locale/es-do.js",
+	"./es-do.js": "./node_modules/moment/locale/es-do.js",
+	"./es-mx": "./node_modules/moment/locale/es-mx.js",
+	"./es-mx.js": "./node_modules/moment/locale/es-mx.js",
+	"./es-us": "./node_modules/moment/locale/es-us.js",
+	"./es-us.js": "./node_modules/moment/locale/es-us.js",
+	"./es.js": "./node_modules/moment/locale/es.js",
+	"./et": "./node_modules/moment/locale/et.js",
+	"./et.js": "./node_modules/moment/locale/et.js",
+	"./eu": "./node_modules/moment/locale/eu.js",
+	"./eu.js": "./node_modules/moment/locale/eu.js",
+	"./fa": "./node_modules/moment/locale/fa.js",
+	"./fa.js": "./node_modules/moment/locale/fa.js",
+	"./fi": "./node_modules/moment/locale/fi.js",
+	"./fi.js": "./node_modules/moment/locale/fi.js",
+	"./fil": "./node_modules/moment/locale/fil.js",
+	"./fil.js": "./node_modules/moment/locale/fil.js",
+	"./fo": "./node_modules/moment/locale/fo.js",
+	"./fo.js": "./node_modules/moment/locale/fo.js",
+	"./fr": "./node_modules/moment/locale/fr.js",
+	"./fr-ca": "./node_modules/moment/locale/fr-ca.js",
+	"./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
+	"./fr-ch": "./node_modules/moment/locale/fr-ch.js",
+	"./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
+	"./fr.js": "./node_modules/moment/locale/fr.js",
+	"./fy": "./node_modules/moment/locale/fy.js",
+	"./fy.js": "./node_modules/moment/locale/fy.js",
+	"./ga": "./node_modules/moment/locale/ga.js",
+	"./ga.js": "./node_modules/moment/locale/ga.js",
+	"./gd": "./node_modules/moment/locale/gd.js",
+	"./gd.js": "./node_modules/moment/locale/gd.js",
+	"./gl": "./node_modules/moment/locale/gl.js",
+	"./gl.js": "./node_modules/moment/locale/gl.js",
+	"./gom-deva": "./node_modules/moment/locale/gom-deva.js",
+	"./gom-deva.js": "./node_modules/moment/locale/gom-deva.js",
+	"./gom-latn": "./node_modules/moment/locale/gom-latn.js",
+	"./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
+	"./gu": "./node_modules/moment/locale/gu.js",
+	"./gu.js": "./node_modules/moment/locale/gu.js",
+	"./he": "./node_modules/moment/locale/he.js",
+	"./he.js": "./node_modules/moment/locale/he.js",
+	"./hi": "./node_modules/moment/locale/hi.js",
+	"./hi.js": "./node_modules/moment/locale/hi.js",
+	"./hr": "./node_modules/moment/locale/hr.js",
+	"./hr.js": "./node_modules/moment/locale/hr.js",
+	"./hu": "./node_modules/moment/locale/hu.js",
+	"./hu.js": "./node_modules/moment/locale/hu.js",
+	"./hy-am": "./node_modules/moment/locale/hy-am.js",
+	"./hy-am.js": "./node_modules/moment/locale/hy-am.js",
+	"./id": "./node_modules/moment/locale/id.js",
+	"./id.js": "./node_modules/moment/locale/id.js",
+	"./is": "./node_modules/moment/locale/is.js",
+	"./is.js": "./node_modules/moment/locale/is.js",
+	"./it": "./node_modules/moment/locale/it.js",
+	"./it-ch": "./node_modules/moment/locale/it-ch.js",
+	"./it-ch.js": "./node_modules/moment/locale/it-ch.js",
+	"./it.js": "./node_modules/moment/locale/it.js",
+	"./ja": "./node_modules/moment/locale/ja.js",
+	"./ja.js": "./node_modules/moment/locale/ja.js",
+	"./jv": "./node_modules/moment/locale/jv.js",
+	"./jv.js": "./node_modules/moment/locale/jv.js",
+	"./ka": "./node_modules/moment/locale/ka.js",
+	"./ka.js": "./node_modules/moment/locale/ka.js",
+	"./kk": "./node_modules/moment/locale/kk.js",
+	"./kk.js": "./node_modules/moment/locale/kk.js",
+	"./km": "./node_modules/moment/locale/km.js",
+	"./km.js": "./node_modules/moment/locale/km.js",
+	"./kn": "./node_modules/moment/locale/kn.js",
+	"./kn.js": "./node_modules/moment/locale/kn.js",
+	"./ko": "./node_modules/moment/locale/ko.js",
+	"./ko.js": "./node_modules/moment/locale/ko.js",
+	"./ku": "./node_modules/moment/locale/ku.js",
+	"./ku.js": "./node_modules/moment/locale/ku.js",
+	"./ky": "./node_modules/moment/locale/ky.js",
+	"./ky.js": "./node_modules/moment/locale/ky.js",
+	"./lb": "./node_modules/moment/locale/lb.js",
+	"./lb.js": "./node_modules/moment/locale/lb.js",
+	"./lo": "./node_modules/moment/locale/lo.js",
+	"./lo.js": "./node_modules/moment/locale/lo.js",
+	"./lt": "./node_modules/moment/locale/lt.js",
+	"./lt.js": "./node_modules/moment/locale/lt.js",
+	"./lv": "./node_modules/moment/locale/lv.js",
+	"./lv.js": "./node_modules/moment/locale/lv.js",
+	"./me": "./node_modules/moment/locale/me.js",
+	"./me.js": "./node_modules/moment/locale/me.js",
+	"./mi": "./node_modules/moment/locale/mi.js",
+	"./mi.js": "./node_modules/moment/locale/mi.js",
+	"./mk": "./node_modules/moment/locale/mk.js",
+	"./mk.js": "./node_modules/moment/locale/mk.js",
+	"./ml": "./node_modules/moment/locale/ml.js",
+	"./ml.js": "./node_modules/moment/locale/ml.js",
+	"./mn": "./node_modules/moment/locale/mn.js",
+	"./mn.js": "./node_modules/moment/locale/mn.js",
+	"./mr": "./node_modules/moment/locale/mr.js",
+	"./mr.js": "./node_modules/moment/locale/mr.js",
+	"./ms": "./node_modules/moment/locale/ms.js",
+	"./ms-my": "./node_modules/moment/locale/ms-my.js",
+	"./ms-my.js": "./node_modules/moment/locale/ms-my.js",
+	"./ms.js": "./node_modules/moment/locale/ms.js",
+	"./mt": "./node_modules/moment/locale/mt.js",
+	"./mt.js": "./node_modules/moment/locale/mt.js",
+	"./my": "./node_modules/moment/locale/my.js",
+	"./my.js": "./node_modules/moment/locale/my.js",
+	"./nb": "./node_modules/moment/locale/nb.js",
+	"./nb.js": "./node_modules/moment/locale/nb.js",
+	"./ne": "./node_modules/moment/locale/ne.js",
+	"./ne.js": "./node_modules/moment/locale/ne.js",
+	"./nl": "./node_modules/moment/locale/nl.js",
+	"./nl-be": "./node_modules/moment/locale/nl-be.js",
+	"./nl-be.js": "./node_modules/moment/locale/nl-be.js",
+	"./nl.js": "./node_modules/moment/locale/nl.js",
+	"./nn": "./node_modules/moment/locale/nn.js",
+	"./nn.js": "./node_modules/moment/locale/nn.js",
+	"./oc-lnc": "./node_modules/moment/locale/oc-lnc.js",
+	"./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js",
+	"./pa-in": "./node_modules/moment/locale/pa-in.js",
+	"./pa-in.js": "./node_modules/moment/locale/pa-in.js",
+	"./pl": "./node_modules/moment/locale/pl.js",
+	"./pl.js": "./node_modules/moment/locale/pl.js",
+	"./pt": "./node_modules/moment/locale/pt.js",
+	"./pt-br": "./node_modules/moment/locale/pt-br.js",
+	"./pt-br.js": "./node_modules/moment/locale/pt-br.js",
+	"./pt.js": "./node_modules/moment/locale/pt.js",
+	"./ro": "./node_modules/moment/locale/ro.js",
+	"./ro.js": "./node_modules/moment/locale/ro.js",
+	"./ru": "./node_modules/moment/locale/ru.js",
+	"./ru.js": "./node_modules/moment/locale/ru.js",
+	"./sd": "./node_modules/moment/locale/sd.js",
+	"./sd.js": "./node_modules/moment/locale/sd.js",
+	"./se": "./node_modules/moment/locale/se.js",
+	"./se.js": "./node_modules/moment/locale/se.js",
+	"./si": "./node_modules/moment/locale/si.js",
+	"./si.js": "./node_modules/moment/locale/si.js",
+	"./sk": "./node_modules/moment/locale/sk.js",
+	"./sk.js": "./node_modules/moment/locale/sk.js",
+	"./sl": "./node_modules/moment/locale/sl.js",
+	"./sl.js": "./node_modules/moment/locale/sl.js",
+	"./sq": "./node_modules/moment/locale/sq.js",
+	"./sq.js": "./node_modules/moment/locale/sq.js",
+	"./sr": "./node_modules/moment/locale/sr.js",
+	"./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
+	"./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
+	"./sr.js": "./node_modules/moment/locale/sr.js",
+	"./ss": "./node_modules/moment/locale/ss.js",
+	"./ss.js": "./node_modules/moment/locale/ss.js",
+	"./sv": "./node_modules/moment/locale/sv.js",
+	"./sv.js": "./node_modules/moment/locale/sv.js",
+	"./sw": "./node_modules/moment/locale/sw.js",
+	"./sw.js": "./node_modules/moment/locale/sw.js",
+	"./ta": "./node_modules/moment/locale/ta.js",
+	"./ta.js": "./node_modules/moment/locale/ta.js",
+	"./te": "./node_modules/moment/locale/te.js",
+	"./te.js": "./node_modules/moment/locale/te.js",
+	"./tet": "./node_modules/moment/locale/tet.js",
+	"./tet.js": "./node_modules/moment/locale/tet.js",
+	"./tg": "./node_modules/moment/locale/tg.js",
+	"./tg.js": "./node_modules/moment/locale/tg.js",
+	"./th": "./node_modules/moment/locale/th.js",
+	"./th.js": "./node_modules/moment/locale/th.js",
+	"./tk": "./node_modules/moment/locale/tk.js",
+	"./tk.js": "./node_modules/moment/locale/tk.js",
+	"./tl-ph": "./node_modules/moment/locale/tl-ph.js",
+	"./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
+	"./tlh": "./node_modules/moment/locale/tlh.js",
+	"./tlh.js": "./node_modules/moment/locale/tlh.js",
+	"./tr": "./node_modules/moment/locale/tr.js",
+	"./tr.js": "./node_modules/moment/locale/tr.js",
+	"./tzl": "./node_modules/moment/locale/tzl.js",
+	"./tzl.js": "./node_modules/moment/locale/tzl.js",
+	"./tzm": "./node_modules/moment/locale/tzm.js",
+	"./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
+	"./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
+	"./tzm.js": "./node_modules/moment/locale/tzm.js",
+	"./ug-cn": "./node_modules/moment/locale/ug-cn.js",
+	"./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
+	"./uk": "./node_modules/moment/locale/uk.js",
+	"./uk.js": "./node_modules/moment/locale/uk.js",
+	"./ur": "./node_modules/moment/locale/ur.js",
+	"./ur.js": "./node_modules/moment/locale/ur.js",
+	"./uz": "./node_modules/moment/locale/uz.js",
+	"./uz-latn": "./node_modules/moment/locale/uz-latn.js",
+	"./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
+	"./uz.js": "./node_modules/moment/locale/uz.js",
+	"./vi": "./node_modules/moment/locale/vi.js",
+	"./vi.js": "./node_modules/moment/locale/vi.js",
+	"./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
+	"./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
+	"./yo": "./node_modules/moment/locale/yo.js",
+	"./yo.js": "./node_modules/moment/locale/yo.js",
+	"./zh-cn": "./node_modules/moment/locale/zh-cn.js",
+	"./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
+	"./zh-hk": "./node_modules/moment/locale/zh-hk.js",
+	"./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
+	"./zh-mo": "./node_modules/moment/locale/zh-mo.js",
+	"./zh-mo.js": "./node_modules/moment/locale/zh-mo.js",
+	"./zh-tw": "./node_modules/moment/locale/zh-tw.js",
+	"./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
+};
+
+
+function webpackContext(req) {
+	var id = webpackContextResolve(req);
+	return __webpack_require__(id);
+}
+function webpackContextResolve(req) {
+	if(!__webpack_require__.o(map, req)) {
+		var e = new Error("Cannot find module '" + req + "'");
+		e.code = 'MODULE_NOT_FOUND';
+		throw e;
+	}
+	return map[req];
+}
+webpackContext.keys = function webpackContextKeys() {
+	return Object.keys(map);
+};
+webpackContext.resolve = webpackContextResolve;
+module.exports = webpackContext;
+webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/af.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/af.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Afrikaans [af]
 //! author : Werner Mollentze : https://github.com/wernerm
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var af = moment.defineLocale('af', {
-                    months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
-                    weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
-                    weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
-                    meridiemParse: /vm|nm/i,
-                    isPM: function (input) {
-                        return /^nm$/i.test(input);
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 12) {
-                            return isLower ? 'vm' : 'VM';
-                        } else {
-                            return isLower ? 'nm' : 'NM';
-                        }
-                    },
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Vandag om] LT',
-                        nextDay: '[Môre om] LT',
-                        nextWeek: 'dddd [om] LT',
-                        lastDay: '[Gister om] LT',
-                        lastWeek: '[Laas] dddd [om] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'oor %s',
-                        past: '%s gelede',
-                        s: "'n paar sekondes",
-                        ss: '%d sekondes',
-                        m: "'n minuut",
-                        mm: '%d minute',
-                        h: "'n uur",
-                        hh: '%d ure',
-                        d: "'n dag",
-                        dd: '%d dae',
-                        M: "'n maand",
-                        MM: '%d maande',
-                        y: "'n jaar",
-                        yy: '%d jaar',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
-                    ordinal: function (number) {
-                        return (
-                            number +
-                            (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
-                        ); // Thanks to Joris Röling : https://github.com/jjupiter
-                    },
-                    week: {
-                        dow: 1, // Maandag is die eerste dag van die week.
-                        doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
-                    },
-                });
-
-                return af;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-dz.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var af = moment.defineLocale('af', {
+        months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
+        weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
+            '_'
+        ),
+        weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
+        weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
+        meridiemParse: /vm|nm/i,
+        isPM: function (input) {
+            return /^nm$/i.test(input);
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 12) {
+                return isLower ? 'vm' : 'VM';
+            } else {
+                return isLower ? 'nm' : 'NM';
+            }
+        },
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Vandag om] LT',
+            nextDay: '[Môre om] LT',
+            nextWeek: 'dddd [om] LT',
+            lastDay: '[Gister om] LT',
+            lastWeek: '[Laas] dddd [om] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'oor %s',
+            past: '%s gelede',
+            s: "'n paar sekondes",
+            ss: '%d sekondes',
+            m: "'n minuut",
+            mm: '%d minute',
+            h: "'n uur",
+            hh: '%d ure',
+            d: "'n dag",
+            dd: '%d dae',
+            M: "'n maand",
+            MM: '%d maande',
+            y: "'n jaar",
+            yy: '%d jaar',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+        ordinal: function (number) {
+            return (
+                number +
+                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
+            ); // Thanks to Joris Röling : https://github.com/jjupiter
+        },
+        week: {
+            dow: 1, // Maandag is die eerste dag van die week.
+            doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
+        },
+    });
+
+    return af;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-dz.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-dz.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic (Algeria) [ar-dz]
@@ -98457,711 +98457,711 @@ THE SOFTWARE.
 //! author : forabi https://github.com/forabi
 //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var pluralForm = function (n) {
-                        return n === 0
-                            ? 0
-                            : n === 1
-                                ? 1
-                                : n === 2
-                                    ? 2
-                                    : n % 100 >= 3 && n % 100 <= 10
-                                        ? 3
-                                        : n % 100 >= 11
-                                            ? 4
-                                            : 5;
-                    },
-                    plurals = {
-                        s: [
-                            'أقل من ثانية',
-                            'ثانية واحدة',
-                            ['ثانيتان', 'ثانيتين'],
-                            '%d ثوان',
-                            '%d ثانية',
-                            '%d ثانية',
-                        ],
-                        m: [
-                            'أقل من دقيقة',
-                            'دقيقة واحدة',
-                            ['دقيقتان', 'دقيقتين'],
-                            '%d دقائق',
-                            '%d دقيقة',
-                            '%d دقيقة',
-                        ],
-                        h: [
-                            'أقل من ساعة',
-                            'ساعة واحدة',
-                            ['ساعتان', 'ساعتين'],
-                            '%d ساعات',
-                            '%d ساعة',
-                            '%d ساعة',
-                        ],
-                        d: [
-                            'أقل من يوم',
-                            'يوم واحد',
-                            ['يومان', 'يومين'],
-                            '%d أيام',
-                            '%d يومًا',
-                            '%d يوم',
-                        ],
-                        M: [
-                            'أقل من شهر',
-                            'شهر واحد',
-                            ['شهران', 'شهرين'],
-                            '%d أشهر',
-                            '%d شهرا',
-                            '%d شهر',
-                        ],
-                        y: [
-                            'أقل من عام',
-                            'عام واحد',
-                            ['عامان', 'عامين'],
-                            '%d أعوام',
-                            '%d عامًا',
-                            '%d عام',
-                        ],
-                    },
-                    pluralize = function (u) {
-                        return function (number, withoutSuffix, string, isFuture) {
-                            var f = pluralForm(number),
-                                str = plurals[u][pluralForm(number)];
-                            if (f === 2) {
-                                str = str[withoutSuffix ? 0 : 1];
-                            }
-                            return str.replace(/%d/i, number);
-                        };
-                    },
-                    months = [
-                        'جانفي',
-                        'فيفري',
-                        'مارس',
-                        'أفريل',
-                        'ماي',
-                        'جوان',
-                        'جويلية',
-                        'أوت',
-                        'سبتمبر',
-                        'أكتوبر',
-                        'نوفمبر',
-                        'ديسمبر',
-                    ];
-
-                var arDz = moment.defineLocale('ar-dz', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'D/\u200FM/\u200FYYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ص|م/,
-                    isPM: function (input) {
-                        return 'Ù…' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ص';
-                        } else {
-                            return 'Ù…';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[اليوم عند الساعة] LT',
-                        nextDay: '[غدًا عند الساعة] LT',
-                        nextWeek: 'dddd [عند الساعة] LT',
-                        lastDay: '[أمس عند الساعة] LT',
-                        lastWeek: 'dddd [عند الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'بعد %s',
-                        past: 'منذ %s',
-                        s: pluralize('s'),
-                        ss: pluralize('s'),
-                        m: pluralize('m'),
-                        mm: pluralize('m'),
-                        h: pluralize('h'),
-                        hh: pluralize('h'),
-                        d: pluralize('d'),
-                        dd: pluralize('d'),
-                        M: pluralize('M'),
-                        MM: pluralize('M'),
-                        y: pluralize('y'),
-                        yy: pluralize('y'),
-                    },
-                    postformat: function (string) {
-                        return string.replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return arDz;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-kw.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var pluralForm = function (n) {
+            return n === 0
+                ? 0
+                : n === 1
+                ? 1
+                : n === 2
+                ? 2
+                : n % 100 >= 3 && n % 100 <= 10
+                ? 3
+                : n % 100 >= 11
+                ? 4
+                : 5;
+        },
+        plurals = {
+            s: [
+                'أقل من ثانية',
+                'ثانية واحدة',
+                ['ثانيتان', 'ثانيتين'],
+                '%d ثوان',
+                '%d ثانية',
+                '%d ثانية',
+            ],
+            m: [
+                'أقل من دقيقة',
+                'دقيقة واحدة',
+                ['دقيقتان', 'دقيقتين'],
+                '%d دقائق',
+                '%d دقيقة',
+                '%d دقيقة',
+            ],
+            h: [
+                'أقل من ساعة',
+                'ساعة واحدة',
+                ['ساعتان', 'ساعتين'],
+                '%d ساعات',
+                '%d ساعة',
+                '%d ساعة',
+            ],
+            d: [
+                'أقل من يوم',
+                'يوم واحد',
+                ['يومان', 'يومين'],
+                '%d أيام',
+                '%d يومًا',
+                '%d يوم',
+            ],
+            M: [
+                'أقل من شهر',
+                'شهر واحد',
+                ['شهران', 'شهرين'],
+                '%d أشهر',
+                '%d شهرا',
+                '%d شهر',
+            ],
+            y: [
+                'أقل من عام',
+                'عام واحد',
+                ['عامان', 'عامين'],
+                '%d أعوام',
+                '%d عامًا',
+                '%d عام',
+            ],
+        },
+        pluralize = function (u) {
+            return function (number, withoutSuffix, string, isFuture) {
+                var f = pluralForm(number),
+                    str = plurals[u][pluralForm(number)];
+                if (f === 2) {
+                    str = str[withoutSuffix ? 0 : 1];
+                }
+                return str.replace(/%d/i, number);
+            };
+        },
+        months = [
+            'جانفي',
+            'فيفري',
+            'مارس',
+            'أفريل',
+            'ماي',
+            'جوان',
+            'جويلية',
+            'أوت',
+            'سبتمبر',
+            'أكتوبر',
+            'نوفمبر',
+            'ديسمبر',
+        ];
+
+    var arDz = moment.defineLocale('ar-dz', {
+        months: months,
+        monthsShort: months,
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'D/\u200FM/\u200FYYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ص|م/,
+        isPM: function (input) {
+            return 'Ù…' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ص';
+            } else {
+                return 'Ù…';
+            }
+        },
+        calendar: {
+            sameDay: '[اليوم عند الساعة] LT',
+            nextDay: '[غدًا عند الساعة] LT',
+            nextWeek: 'dddd [عند الساعة] LT',
+            lastDay: '[أمس عند الساعة] LT',
+            lastWeek: 'dddd [عند الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'بعد %s',
+            past: 'منذ %s',
+            s: pluralize('s'),
+            ss: pluralize('s'),
+            m: pluralize('m'),
+            mm: pluralize('m'),
+            h: pluralize('h'),
+            hh: pluralize('h'),
+            d: pluralize('d'),
+            dd: pluralize('d'),
+            M: pluralize('M'),
+            MM: pluralize('M'),
+            y: pluralize('y'),
+            yy: pluralize('y'),
+        },
+        postformat: function (string) {
+            return string.replace(/,/g, '،');
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return arDz;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-kw.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-kw.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic (Kuwait) [ar-kw]
 //! author : Nusret Parlak: https://github.com/nusretparlak
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var arKw = moment.defineLocale('ar-kw', {
-                    months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
-                        '_'
-                    ),
-                    weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[اليوم على الساعة] LT',
-                        nextDay: '[غدا على الساعة] LT',
-                        nextWeek: 'dddd [على الساعة] LT',
-                        lastDay: '[أمس على الساعة] LT',
-                        lastWeek: 'dddd [على الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'في %s',
-                        past: 'منذ %s',
-                        s: 'ثوان',
-                        ss: '%d ثانية',
-                        m: 'دقيقة',
-                        mm: '%d دقائق',
-                        h: 'ساعة',
-                        hh: '%d ساعات',
-                        d: 'يوم',
-                        dd: '%d أيام',
-                        M: 'شهر',
-                        MM: '%d أشهر',
-                        y: 'سنة',
-                        yy: '%d سنوات',
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return arKw;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-ly.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var arKw = moment.defineLocale('ar-kw', {
+        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
+            '_'
+        ),
+        monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
+            '_'
+        ),
+        weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[اليوم على الساعة] LT',
+            nextDay: '[غدا على الساعة] LT',
+            nextWeek: 'dddd [على الساعة] LT',
+            lastDay: '[أمس على الساعة] LT',
+            lastWeek: 'dddd [على الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'في %s',
+            past: 'منذ %s',
+            s: 'ثوان',
+            ss: '%d ثانية',
+            m: 'دقيقة',
+            mm: '%d دقائق',
+            h: 'ساعة',
+            hh: '%d ساعات',
+            d: 'يوم',
+            dd: '%d أيام',
+            M: 'شهر',
+            MM: '%d أشهر',
+            y: 'سنة',
+            yy: '%d سنوات',
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return arKw;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-ly.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-ly.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic (Lybia) [ar-ly]
 //! author : Ali Hmer: https://github.com/kikoanis
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '1',
-                        2: '2',
-                        3: '3',
-                        4: '4',
-                        5: '5',
-                        6: '6',
-                        7: '7',
-                        8: '8',
-                        9: '9',
-                        0: '0',
-                    },
-                    pluralForm = function (n) {
-                        return n === 0
-                            ? 0
-                            : n === 1
-                                ? 1
-                                : n === 2
-                                    ? 2
-                                    : n % 100 >= 3 && n % 100 <= 10
-                                        ? 3
-                                        : n % 100 >= 11
-                                            ? 4
-                                            : 5;
-                    },
-                    plurals = {
-                        s: [
-                            'أقل من ثانية',
-                            'ثانية واحدة',
-                            ['ثانيتان', 'ثانيتين'],
-                            '%d ثوان',
-                            '%d ثانية',
-                            '%d ثانية',
-                        ],
-                        m: [
-                            'أقل من دقيقة',
-                            'دقيقة واحدة',
-                            ['دقيقتان', 'دقيقتين'],
-                            '%d دقائق',
-                            '%d دقيقة',
-                            '%d دقيقة',
-                        ],
-                        h: [
-                            'أقل من ساعة',
-                            'ساعة واحدة',
-                            ['ساعتان', 'ساعتين'],
-                            '%d ساعات',
-                            '%d ساعة',
-                            '%d ساعة',
-                        ],
-                        d: [
-                            'أقل من يوم',
-                            'يوم واحد',
-                            ['يومان', 'يومين'],
-                            '%d أيام',
-                            '%d يومًا',
-                            '%d يوم',
-                        ],
-                        M: [
-                            'أقل من شهر',
-                            'شهر واحد',
-                            ['شهران', 'شهرين'],
-                            '%d أشهر',
-                            '%d شهرا',
-                            '%d شهر',
-                        ],
-                        y: [
-                            'أقل من عام',
-                            'عام واحد',
-                            ['عامان', 'عامين'],
-                            '%d أعوام',
-                            '%d عامًا',
-                            '%d عام',
-                        ],
-                    },
-                    pluralize = function (u) {
-                        return function (number, withoutSuffix, string, isFuture) {
-                            var f = pluralForm(number),
-                                str = plurals[u][pluralForm(number)];
-                            if (f === 2) {
-                                str = str[withoutSuffix ? 0 : 1];
-                            }
-                            return str.replace(/%d/i, number);
-                        };
-                    },
-                    months = [
-                        'يناير',
-                        'فبراير',
-                        'مارس',
-                        'أبريل',
-                        'مايو',
-                        'يونيو',
-                        'يوليو',
-                        'أغسطس',
-                        'سبتمبر',
-                        'أكتوبر',
-                        'نوفمبر',
-                        'ديسمبر',
-                    ];
-
-                var arLy = moment.defineLocale('ar-ly', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'D/\u200FM/\u200FYYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ص|م/,
-                    isPM: function (input) {
-                        return 'Ù…' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ص';
-                        } else {
-                            return 'Ù…';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[اليوم عند الساعة] LT',
-                        nextDay: '[غدًا عند الساعة] LT',
-                        nextWeek: 'dddd [عند الساعة] LT',
-                        lastDay: '[أمس عند الساعة] LT',
-                        lastWeek: 'dddd [عند الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'بعد %s',
-                        past: 'منذ %s',
-                        s: pluralize('s'),
-                        ss: pluralize('s'),
-                        m: pluralize('m'),
-                        mm: pluralize('m'),
-                        h: pluralize('h'),
-                        hh: pluralize('h'),
-                        d: pluralize('d'),
-                        dd: pluralize('d'),
-                        M: pluralize('M'),
-                        MM: pluralize('M'),
-                        y: pluralize('y'),
-                        yy: pluralize('y'),
-                    },
-                    preparse: function (string) {
-                        return string.replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string
-                            .replace(/\d/g, function (match) {
-                                return symbolMap[match];
-                            })
-                            .replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return arLy;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-ma.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '1',
+            2: '2',
+            3: '3',
+            4: '4',
+            5: '5',
+            6: '6',
+            7: '7',
+            8: '8',
+            9: '9',
+            0: '0',
+        },
+        pluralForm = function (n) {
+            return n === 0
+                ? 0
+                : n === 1
+                ? 1
+                : n === 2
+                ? 2
+                : n % 100 >= 3 && n % 100 <= 10
+                ? 3
+                : n % 100 >= 11
+                ? 4
+                : 5;
+        },
+        plurals = {
+            s: [
+                'أقل من ثانية',
+                'ثانية واحدة',
+                ['ثانيتان', 'ثانيتين'],
+                '%d ثوان',
+                '%d ثانية',
+                '%d ثانية',
+            ],
+            m: [
+                'أقل من دقيقة',
+                'دقيقة واحدة',
+                ['دقيقتان', 'دقيقتين'],
+                '%d دقائق',
+                '%d دقيقة',
+                '%d دقيقة',
+            ],
+            h: [
+                'أقل من ساعة',
+                'ساعة واحدة',
+                ['ساعتان', 'ساعتين'],
+                '%d ساعات',
+                '%d ساعة',
+                '%d ساعة',
+            ],
+            d: [
+                'أقل من يوم',
+                'يوم واحد',
+                ['يومان', 'يومين'],
+                '%d أيام',
+                '%d يومًا',
+                '%d يوم',
+            ],
+            M: [
+                'أقل من شهر',
+                'شهر واحد',
+                ['شهران', 'شهرين'],
+                '%d أشهر',
+                '%d شهرا',
+                '%d شهر',
+            ],
+            y: [
+                'أقل من عام',
+                'عام واحد',
+                ['عامان', 'عامين'],
+                '%d أعوام',
+                '%d عامًا',
+                '%d عام',
+            ],
+        },
+        pluralize = function (u) {
+            return function (number, withoutSuffix, string, isFuture) {
+                var f = pluralForm(number),
+                    str = plurals[u][pluralForm(number)];
+                if (f === 2) {
+                    str = str[withoutSuffix ? 0 : 1];
+                }
+                return str.replace(/%d/i, number);
+            };
+        },
+        months = [
+            'يناير',
+            'فبراير',
+            'مارس',
+            'أبريل',
+            'مايو',
+            'يونيو',
+            'يوليو',
+            'أغسطس',
+            'سبتمبر',
+            'أكتوبر',
+            'نوفمبر',
+            'ديسمبر',
+        ];
+
+    var arLy = moment.defineLocale('ar-ly', {
+        months: months,
+        monthsShort: months,
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'D/\u200FM/\u200FYYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ص|م/,
+        isPM: function (input) {
+            return 'Ù…' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ص';
+            } else {
+                return 'Ù…';
+            }
+        },
+        calendar: {
+            sameDay: '[اليوم عند الساعة] LT',
+            nextDay: '[غدًا عند الساعة] LT',
+            nextWeek: 'dddd [عند الساعة] LT',
+            lastDay: '[أمس عند الساعة] LT',
+            lastWeek: 'dddd [عند الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'بعد %s',
+            past: 'منذ %s',
+            s: pluralize('s'),
+            ss: pluralize('s'),
+            m: pluralize('m'),
+            mm: pluralize('m'),
+            h: pluralize('h'),
+            hh: pluralize('h'),
+            d: pluralize('d'),
+            dd: pluralize('d'),
+            M: pluralize('M'),
+            MM: pluralize('M'),
+            y: pluralize('y'),
+            yy: pluralize('y'),
+        },
+        preparse: function (string) {
+            return string.replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string
+                .replace(/\d/g, function (match) {
+                    return symbolMap[match];
+                })
+                .replace(/,/g, '،');
+        },
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return arLy;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-ma.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-ma.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic (Morocco) [ar-ma]
 //! author : ElFadili Yassine : https://github.com/ElFadiliY
 //! author : Abdel Said : https://github.com/abdelsaid
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var arMa = moment.defineLocale('ar-ma', {
-                    months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
-                        '_'
-                    ),
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[اليوم على الساعة] LT',
-                        nextDay: '[غدا على الساعة] LT',
-                        nextWeek: 'dddd [على الساعة] LT',
-                        lastDay: '[أمس على الساعة] LT',
-                        lastWeek: 'dddd [على الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'في %s',
-                        past: 'منذ %s',
-                        s: 'ثوان',
-                        ss: '%d ثانية',
-                        m: 'دقيقة',
-                        mm: '%d دقائق',
-                        h: 'ساعة',
-                        hh: '%d ساعات',
-                        d: 'يوم',
-                        dd: '%d أيام',
-                        M: 'شهر',
-                        MM: '%d أشهر',
-                        y: 'سنة',
-                        yy: '%d سنوات',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return arMa;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-sa.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var arMa = moment.defineLocale('ar-ma', {
+        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
+            '_'
+        ),
+        monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
+            '_'
+        ),
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[اليوم على الساعة] LT',
+            nextDay: '[غدا على الساعة] LT',
+            nextWeek: 'dddd [على الساعة] LT',
+            lastDay: '[أمس على الساعة] LT',
+            lastWeek: 'dddd [على الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'في %s',
+            past: 'منذ %s',
+            s: 'ثوان',
+            ss: '%d ثانية',
+            m: 'دقيقة',
+            mm: '%d دقائق',
+            h: 'ساعة',
+            hh: '%d ساعات',
+            d: 'يوم',
+            dd: '%d أيام',
+            M: 'شهر',
+            MM: '%d أشهر',
+            y: 'سنة',
+            yy: '%d سنوات',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return arMa;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-sa.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-sa.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic (Saudi Arabia) [ar-sa]
 //! author : Suhail Alkowaileet : https://github.com/xsoh
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: 'Ù¡',
-                        2: 'Ù¢',
-                        3: 'Ù£',
-                        4: 'Ù¤',
-                        5: 'Ù¥',
-                        6: 'Ù¦',
-                        7: 'Ù§',
-                        8: 'Ù¨',
-                        9: 'Ù©',
-                        0: 'Ù ',
-                    },
-                    numberMap = {
-                        'Ù¡': '1',
-                        'Ù¢': '2',
-                        'Ù£': '3',
-                        'Ù¤': '4',
-                        'Ù¥': '5',
-                        'Ù¦': '6',
-                        'Ù§': '7',
-                        'Ù¨': '8',
-                        'Ù©': '9',
-                        'Ù ': '0',
-                    };
-
-                var arSa = moment.defineLocale('ar-sa', {
-                    months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
-                        '_'
-                    ),
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ص|م/,
-                    isPM: function (input) {
-                        return 'Ù…' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ص';
-                        } else {
-                            return 'Ù…';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[اليوم على الساعة] LT',
-                        nextDay: '[غدا على الساعة] LT',
-                        nextWeek: 'dddd [على الساعة] LT',
-                        lastDay: '[أمس على الساعة] LT',
-                        lastWeek: 'dddd [على الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'في %s',
-                        past: 'منذ %s',
-                        s: 'ثوان',
-                        ss: '%d ثانية',
-                        m: 'دقيقة',
-                        mm: '%d دقائق',
-                        h: 'ساعة',
-                        hh: '%d ساعات',
-                        d: 'يوم',
-                        dd: '%d أيام',
-                        M: 'شهر',
-                        MM: '%d أشهر',
-                        y: 'سنة',
-                        yy: '%d سنوات',
-                    },
-                    preparse: function (string) {
-                        return string
-                            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
-                                return numberMap[match];
-                            })
-                            .replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string
-                            .replace(/\d/g, function (match) {
-                                return symbolMap[match];
-                            })
-                            .replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
-
-                return arSa;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar-tn.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: 'Ù¡',
+            2: 'Ù¢',
+            3: 'Ù£',
+            4: 'Ù¤',
+            5: 'Ù¥',
+            6: 'Ù¦',
+            7: 'Ù§',
+            8: 'Ù¨',
+            9: 'Ù©',
+            0: 'Ù ',
+        },
+        numberMap = {
+            'Ù¡': '1',
+            'Ù¢': '2',
+            'Ù£': '3',
+            'Ù¤': '4',
+            'Ù¥': '5',
+            'Ù¦': '6',
+            'Ù§': '7',
+            'Ù¨': '8',
+            'Ù©': '9',
+            'Ù ': '0',
+        };
+
+    var arSa = moment.defineLocale('ar-sa', {
+        months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
+            '_'
+        ),
+        monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
+            '_'
+        ),
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ص|م/,
+        isPM: function (input) {
+            return 'Ù…' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ص';
+            } else {
+                return 'Ù…';
+            }
+        },
+        calendar: {
+            sameDay: '[اليوم على الساعة] LT',
+            nextDay: '[غدا على الساعة] LT',
+            nextWeek: 'dddd [على الساعة] LT',
+            lastDay: '[أمس على الساعة] LT',
+            lastWeek: 'dddd [على الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'في %s',
+            past: 'منذ %s',
+            s: 'ثوان',
+            ss: '%d ثانية',
+            m: 'دقيقة',
+            mm: '%d دقائق',
+            h: 'ساعة',
+            hh: '%d ساعات',
+            d: 'يوم',
+            dd: '%d أيام',
+            M: 'شهر',
+            MM: '%d أشهر',
+            y: 'سنة',
+            yy: '%d سنوات',
+        },
+        preparse: function (string) {
+            return string
+                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+                    return numberMap[match];
+                })
+                .replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string
+                .replace(/\d/g, function (match) {
+                    return symbolMap[match];
+                })
+                .replace(/,/g, '،');
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
+
+    return arSa;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar-tn.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ar-tn.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale  :  Arabic (Tunisia) [ar-tn]
 //! author : Nader Toukabri : https://github.com/naderio
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var arTn = moment.defineLocale('ar-tn', {
-                    months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
-                        '_'
-                    ),
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[اليوم على الساعة] LT',
-                        nextDay: '[غدا على الساعة] LT',
-                        nextWeek: 'dddd [على الساعة] LT',
-                        lastDay: '[أمس على الساعة] LT',
-                        lastWeek: 'dddd [على الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'في %s',
-                        past: 'منذ %s',
-                        s: 'ثوان',
-                        ss: '%d ثانية',
-                        m: 'دقيقة',
-                        mm: '%d دقائق',
-                        h: 'ساعة',
-                        hh: '%d ساعات',
-                        d: 'يوم',
-                        dd: '%d أيام',
-                        M: 'شهر',
-                        MM: '%d أشهر',
-                        y: 'سنة',
-                        yy: '%d سنوات',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return arTn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ar.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var arTn = moment.defineLocale('ar-tn', {
+        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
+            '_'
+        ),
+        monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
+            '_'
+        ),
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[اليوم على الساعة] LT',
+            nextDay: '[غدا على الساعة] LT',
+            nextWeek: 'dddd [على الساعة] LT',
+            lastDay: '[أمس على الساعة] LT',
+            lastWeek: 'dddd [على الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'في %s',
+            past: 'منذ %s',
+            s: 'ثوان',
+            ss: '%d ثانية',
+            m: 'دقيقة',
+            mm: '%d دقائق',
+            h: 'ساعة',
+            hh: '%d ساعات',
+            d: 'يوم',
+            dd: '%d أيام',
+            M: 'شهر',
+            MM: '%d أشهر',
+            y: 'سنة',
+            yy: '%d سنوات',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return arTn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ar.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ar.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Arabic [ar]
@@ -99169,329 +99169,329 @@ THE SOFTWARE.
 //! author : Ahmed Elkhatib
 //! author : forabi https://github.com/forabi
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: 'Ù¡',
-                        2: 'Ù¢',
-                        3: 'Ù£',
-                        4: 'Ù¤',
-                        5: 'Ù¥',
-                        6: 'Ù¦',
-                        7: 'Ù§',
-                        8: 'Ù¨',
-                        9: 'Ù©',
-                        0: 'Ù ',
-                    },
-                    numberMap = {
-                        'Ù¡': '1',
-                        'Ù¢': '2',
-                        'Ù£': '3',
-                        'Ù¤': '4',
-                        'Ù¥': '5',
-                        'Ù¦': '6',
-                        'Ù§': '7',
-                        'Ù¨': '8',
-                        'Ù©': '9',
-                        'Ù ': '0',
-                    },
-                    pluralForm = function (n) {
-                        return n === 0
-                            ? 0
-                            : n === 1
-                                ? 1
-                                : n === 2
-                                    ? 2
-                                    : n % 100 >= 3 && n % 100 <= 10
-                                        ? 3
-                                        : n % 100 >= 11
-                                            ? 4
-                                            : 5;
-                    },
-                    plurals = {
-                        s: [
-                            'أقل من ثانية',
-                            'ثانية واحدة',
-                            ['ثانيتان', 'ثانيتين'],
-                            '%d ثوان',
-                            '%d ثانية',
-                            '%d ثانية',
-                        ],
-                        m: [
-                            'أقل من دقيقة',
-                            'دقيقة واحدة',
-                            ['دقيقتان', 'دقيقتين'],
-                            '%d دقائق',
-                            '%d دقيقة',
-                            '%d دقيقة',
-                        ],
-                        h: [
-                            'أقل من ساعة',
-                            'ساعة واحدة',
-                            ['ساعتان', 'ساعتين'],
-                            '%d ساعات',
-                            '%d ساعة',
-                            '%d ساعة',
-                        ],
-                        d: [
-                            'أقل من يوم',
-                            'يوم واحد',
-                            ['يومان', 'يومين'],
-                            '%d أيام',
-                            '%d يومًا',
-                            '%d يوم',
-                        ],
-                        M: [
-                            'أقل من شهر',
-                            'شهر واحد',
-                            ['شهران', 'شهرين'],
-                            '%d أشهر',
-                            '%d شهرا',
-                            '%d شهر',
-                        ],
-                        y: [
-                            'أقل من عام',
-                            'عام واحد',
-                            ['عامان', 'عامين'],
-                            '%d أعوام',
-                            '%d عامًا',
-                            '%d عام',
-                        ],
-                    },
-                    pluralize = function (u) {
-                        return function (number, withoutSuffix, string, isFuture) {
-                            var f = pluralForm(number),
-                                str = plurals[u][pluralForm(number)];
-                            if (f === 2) {
-                                str = str[withoutSuffix ? 0 : 1];
-                            }
-                            return str.replace(/%d/i, number);
-                        };
-                    },
-                    months = [
-                        'يناير',
-                        'فبراير',
-                        'مارس',
-                        'أبريل',
-                        'مايو',
-                        'يونيو',
-                        'يوليو',
-                        'أغسطس',
-                        'سبتمبر',
-                        'أكتوبر',
-                        'نوفمبر',
-                        'ديسمبر',
-                    ];
-
-                var ar = moment.defineLocale('ar', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
-                    weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
-                    weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'D/\u200FM/\u200FYYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ص|م/,
-                    isPM: function (input) {
-                        return 'Ù…' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ص';
-                        } else {
-                            return 'Ù…';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[اليوم عند الساعة] LT',
-                        nextDay: '[غدًا عند الساعة] LT',
-                        nextWeek: 'dddd [عند الساعة] LT',
-                        lastDay: '[أمس عند الساعة] LT',
-                        lastWeek: 'dddd [عند الساعة] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'بعد %s',
-                        past: 'منذ %s',
-                        s: pluralize('s'),
-                        ss: pluralize('s'),
-                        m: pluralize('m'),
-                        mm: pluralize('m'),
-                        h: pluralize('h'),
-                        hh: pluralize('h'),
-                        d: pluralize('d'),
-                        dd: pluralize('d'),
-                        M: pluralize('M'),
-                        MM: pluralize('M'),
-                        y: pluralize('y'),
-                        yy: pluralize('y'),
-                    },
-                    preparse: function (string) {
-                        return string
-                            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
-                                return numberMap[match];
-                            })
-                            .replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string
-                            .replace(/\d/g, function (match) {
-                                return symbolMap[match];
-                            })
-                            .replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return ar;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/az.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: 'Ù¡',
+            2: 'Ù¢',
+            3: 'Ù£',
+            4: 'Ù¤',
+            5: 'Ù¥',
+            6: 'Ù¦',
+            7: 'Ù§',
+            8: 'Ù¨',
+            9: 'Ù©',
+            0: 'Ù ',
+        },
+        numberMap = {
+            'Ù¡': '1',
+            'Ù¢': '2',
+            'Ù£': '3',
+            'Ù¤': '4',
+            'Ù¥': '5',
+            'Ù¦': '6',
+            'Ù§': '7',
+            'Ù¨': '8',
+            'Ù©': '9',
+            'Ù ': '0',
+        },
+        pluralForm = function (n) {
+            return n === 0
+                ? 0
+                : n === 1
+                ? 1
+                : n === 2
+                ? 2
+                : n % 100 >= 3 && n % 100 <= 10
+                ? 3
+                : n % 100 >= 11
+                ? 4
+                : 5;
+        },
+        plurals = {
+            s: [
+                'أقل من ثانية',
+                'ثانية واحدة',
+                ['ثانيتان', 'ثانيتين'],
+                '%d ثوان',
+                '%d ثانية',
+                '%d ثانية',
+            ],
+            m: [
+                'أقل من دقيقة',
+                'دقيقة واحدة',
+                ['دقيقتان', 'دقيقتين'],
+                '%d دقائق',
+                '%d دقيقة',
+                '%d دقيقة',
+            ],
+            h: [
+                'أقل من ساعة',
+                'ساعة واحدة',
+                ['ساعتان', 'ساعتين'],
+                '%d ساعات',
+                '%d ساعة',
+                '%d ساعة',
+            ],
+            d: [
+                'أقل من يوم',
+                'يوم واحد',
+                ['يومان', 'يومين'],
+                '%d أيام',
+                '%d يومًا',
+                '%d يوم',
+            ],
+            M: [
+                'أقل من شهر',
+                'شهر واحد',
+                ['شهران', 'شهرين'],
+                '%d أشهر',
+                '%d شهرا',
+                '%d شهر',
+            ],
+            y: [
+                'أقل من عام',
+                'عام واحد',
+                ['عامان', 'عامين'],
+                '%d أعوام',
+                '%d عامًا',
+                '%d عام',
+            ],
+        },
+        pluralize = function (u) {
+            return function (number, withoutSuffix, string, isFuture) {
+                var f = pluralForm(number),
+                    str = plurals[u][pluralForm(number)];
+                if (f === 2) {
+                    str = str[withoutSuffix ? 0 : 1];
+                }
+                return str.replace(/%d/i, number);
+            };
+        },
+        months = [
+            'يناير',
+            'فبراير',
+            'مارس',
+            'أبريل',
+            'مايو',
+            'يونيو',
+            'يوليو',
+            'أغسطس',
+            'سبتمبر',
+            'أكتوبر',
+            'نوفمبر',
+            'ديسمبر',
+        ];
+
+    var ar = moment.defineLocale('ar', {
+        months: months,
+        monthsShort: months,
+        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'D/\u200FM/\u200FYYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ص|م/,
+        isPM: function (input) {
+            return 'Ù…' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ص';
+            } else {
+                return 'Ù…';
+            }
+        },
+        calendar: {
+            sameDay: '[اليوم عند الساعة] LT',
+            nextDay: '[غدًا عند الساعة] LT',
+            nextWeek: 'dddd [عند الساعة] LT',
+            lastDay: '[أمس عند الساعة] LT',
+            lastWeek: 'dddd [عند الساعة] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'بعد %s',
+            past: 'منذ %s',
+            s: pluralize('s'),
+            ss: pluralize('s'),
+            m: pluralize('m'),
+            mm: pluralize('m'),
+            h: pluralize('h'),
+            hh: pluralize('h'),
+            d: pluralize('d'),
+            dd: pluralize('d'),
+            M: pluralize('M'),
+            MM: pluralize('M'),
+            y: pluralize('y'),
+            yy: pluralize('y'),
+        },
+        preparse: function (string) {
+            return string
+                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+                    return numberMap[match];
+                })
+                .replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string
+                .replace(/\d/g, function (match) {
+                    return symbolMap[match];
+                })
+                .replace(/,/g, '،');
+        },
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return ar;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/az.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/az.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Azerbaijani [az]
 //! author : topchiyev : https://github.com/topchiyev
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    1: '-inci',
-                    5: '-inci',
-                    8: '-inci',
-                    70: '-inci',
-                    80: '-inci',
-                    2: '-nci',
-                    7: '-nci',
-                    20: '-nci',
-                    50: '-nci',
-                    3: '-üncü',
-                    4: '-üncü',
-                    100: '-üncü',
-                    6: '-ncı',
-                    9: '-uncu',
-                    10: '-uncu',
-                    30: '-uncu',
-                    60: '-ıncı',
-                    90: '-ıncı',
-                };
-
-                var az = moment.defineLocale('az', {
-                    months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
-                        '_'
-                    ),
-                    monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
-                    weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
-                    weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[bugün saat] LT',
-                        nextDay: '[sabah saat] LT',
-                        nextWeek: '[gələn həftə] dddd [saat] LT',
-                        lastDay: '[dünən] LT',
-                        lastWeek: '[keçən həftə] dddd [saat] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s sonra',
-                        past: '%s əvvəl',
-                        s: 'bir neçə saniyə',
-                        ss: '%d saniyÉ™',
-                        m: 'bir dəqiqə',
-                        mm: '%d dəqiqə',
-                        h: 'bir saat',
-                        hh: '%d saat',
-                        d: 'bir gün',
-                        dd: '%d gün',
-                        M: 'bir ay',
-                        MM: '%d ay',
-                        y: 'bir il',
-                        yy: '%d il',
-                    },
-                    meridiemParse: /gecə|səhər|gündüz|axşam/,
-                    isPM: function (input) {
-                        return /^(gündüz|axşam)$/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'gecÉ™';
-                        } else if (hour < 12) {
-                            return 'səhər';
-                        } else if (hour < 17) {
-                            return 'gündüz';
-                        } else {
-                            return 'axÅŸam';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
-                    ordinal: function (number) {
-                        if (number === 0) {
-                            // special case for zero
-                            return number + '-ıncı';
-                        }
-                        var a = number % 10,
-                            b = (number % 100) - a,
-                            c = number >= 100 ? 100 : null;
-                        return number + (suffixes[a] || suffixes[b] || suffixes[c]);
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        1: '-inci',
+        5: '-inci',
+        8: '-inci',
+        70: '-inci',
+        80: '-inci',
+        2: '-nci',
+        7: '-nci',
+        20: '-nci',
+        50: '-nci',
+        3: '-üncü',
+        4: '-üncü',
+        100: '-üncü',
+        6: '-ncı',
+        9: '-uncu',
+        10: '-uncu',
+        30: '-uncu',
+        60: '-ıncı',
+        90: '-ıncı',
+    };
+
+    var az = moment.defineLocale('az', {
+        months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
+            '_'
+        ),
+        monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
+        weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
+            '_'
+        ),
+        weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
+        weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[bugün saat] LT',
+            nextDay: '[sabah saat] LT',
+            nextWeek: '[gələn həftə] dddd [saat] LT',
+            lastDay: '[dünən] LT',
+            lastWeek: '[keçən həftə] dddd [saat] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s sonra',
+            past: '%s əvvəl',
+            s: 'bir neçə saniyə',
+            ss: '%d saniyÉ™',
+            m: 'bir dəqiqə',
+            mm: '%d dəqiqə',
+            h: 'bir saat',
+            hh: '%d saat',
+            d: 'bir gün',
+            dd: '%d gün',
+            M: 'bir ay',
+            MM: '%d ay',
+            y: 'bir il',
+            yy: '%d il',
+        },
+        meridiemParse: /gecə|səhər|gündüz|axşam/,
+        isPM: function (input) {
+            return /^(gündüz|axşam)$/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'gecÉ™';
+            } else if (hour < 12) {
+                return 'səhər';
+            } else if (hour < 17) {
+                return 'gündüz';
+            } else {
+                return 'axÅŸam';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
+        ordinal: function (number) {
+            if (number === 0) {
+                // special case for zero
+                return number + '-ıncı';
+            }
+            var a = number % 10,
+                b = (number % 100) - a,
+                c = number >= 100 ? 100 : null;
+            return number + (suffixes[a] || suffixes[b] || suffixes[c]);
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return az;
+    return az;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/be.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/be.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/be.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Belarusian [be]
@@ -99499,1700 +99499,1700 @@ THE SOFTWARE.
 //! author: Praleska: http://praleska.pro/
 //! Author : Menelion Elensúle : https://github.com/Oire
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-                //! moment.js locale configuration
+    //! moment.js locale configuration
 
-                function plural(word, num) {
-                    var forms = word.split('_');
-                    return num % 10 === 1 && num % 100 !== 11
-                        ? forms[0]
-                        : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
-                            ? forms[1]
-                            : forms[2];
-                }
-                function relativeTimeWithPlural(number, withoutSuffix, key) {
-                    var format = {
-                        ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
-                        mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
-                        hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
-                        dd: 'дзень_дні_дзён',
-                        MM: 'месяц_месяцы_месяцаў',
-                        yy: 'год_гады_гадоў',
-                    };
-                    if (key === 'm') {
-                        return withoutSuffix ? 'хвіліна' : 'хвіліну';
-                    } else if (key === 'h') {
-                        return withoutSuffix ? 'гадзіна' : 'гадзіну';
-                    } else {
-                        return number + ' ' + plural(format[key], +number);
-                    }
-                }
+    function plural(word, num) {
+        var forms = word.split('_');
+        return num % 10 === 1 && num % 100 !== 11
+            ? forms[0]
+            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
+            ? forms[1]
+            : forms[2];
+    }
+    function relativeTimeWithPlural(number, withoutSuffix, key) {
+        var format = {
+            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
+            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
+            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
+            dd: 'дзень_дні_дзён',
+            MM: 'месяц_месяцы_месяцаў',
+            yy: 'год_гады_гадоў',
+        };
+        if (key === 'm') {
+            return withoutSuffix ? 'хвіліна' : 'хвіліну';
+        } else if (key === 'h') {
+            return withoutSuffix ? 'гадзіна' : 'гадзіну';
+        } else {
+            return number + ' ' + plural(format[key], +number);
+        }
+    }
 
-                var be = moment.defineLocale('be', {
-                    months: {
-                        format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
-                            '_'
-                        ),
-                        standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
-                        '_'
-                    ),
-                    weekdays: {
-                        format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
-                            '_'
-                        ),
-                        standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
-                            '_'
-                        ),
-                        isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
-                    },
-                    weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
-                    weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY г.',
-                        LLL: 'D MMMM YYYY г., HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY г., HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Сёння ў] LT',
-                        nextDay: '[Заўтра ў] LT',
-                        lastDay: '[Учора ў] LT',
-                        nextWeek: function () {
-                            return '[У] dddd [ў] LT';
-                        },
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                case 3:
-                                case 5:
-                                case 6:
-                                    return '[У мінулую] dddd [ў] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                    return '[У мінулы] dddd [ў] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'праз %s',
-                        past: '%s таму',
-                        s: 'некалькі секунд',
-                        m: relativeTimeWithPlural,
-                        mm: relativeTimeWithPlural,
-                        h: relativeTimeWithPlural,
-                        hh: relativeTimeWithPlural,
-                        d: 'дзень',
-                        dd: relativeTimeWithPlural,
-                        M: 'месяц',
-                        MM: relativeTimeWithPlural,
-                        y: 'год',
-                        yy: relativeTimeWithPlural,
-                    },
-                    meridiemParse: /ночы|раніцы|дня|вечара/,
-                    isPM: function (input) {
-                        return /^(дня|вечара)$/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'ночы';
-                        } else if (hour < 12) {
-                            return 'раніцы';
-                        } else if (hour < 17) {
-                            return 'дня';
-                        } else {
-                            return 'вечара';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'M':
-                            case 'd':
-                            case 'DDD':
-                            case 'w':
-                            case 'W':
-                                return (number % 10 === 2 || number % 10 === 3) &&
-                                number % 100 !== 12 &&
-                                number % 100 !== 13
-                                    ? number + '-Ñ–'
-                                    : number + '-Ñ‹';
-                            case 'D':
-                                return number + '-га';
-                            default:
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+    var be = moment.defineLocale('be', {
+        months: {
+            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
+                '_'
+            ),
+            standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
+            '_'
+        ),
+        weekdays: {
+            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
+                '_'
+            ),
+            standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
+                '_'
+            ),
+            isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
+        },
+        weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
+        weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY г.',
+            LLL: 'D MMMM YYYY г., HH:mm',
+            LLLL: 'dddd, D MMMM YYYY г., HH:mm',
+        },
+        calendar: {
+            sameDay: '[Сёння ў] LT',
+            nextDay: '[Заўтра ў] LT',
+            lastDay: '[Учора ў] LT',
+            nextWeek: function () {
+                return '[У] dddd [ў] LT';
+            },
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                    case 3:
+                    case 5:
+                    case 6:
+                        return '[У мінулую] dddd [ў] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                        return '[У мінулы] dddd [ў] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'праз %s',
+            past: '%s таму',
+            s: 'некалькі секунд',
+            m: relativeTimeWithPlural,
+            mm: relativeTimeWithPlural,
+            h: relativeTimeWithPlural,
+            hh: relativeTimeWithPlural,
+            d: 'дзень',
+            dd: relativeTimeWithPlural,
+            M: 'месяц',
+            MM: relativeTimeWithPlural,
+            y: 'год',
+            yy: relativeTimeWithPlural,
+        },
+        meridiemParse: /ночы|раніцы|дня|вечара/,
+        isPM: function (input) {
+            return /^(дня|вечара)$/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'ночы';
+            } else if (hour < 12) {
+                return 'раніцы';
+            } else if (hour < 17) {
+                return 'дня';
+            } else {
+                return 'вечара';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'M':
+                case 'd':
+                case 'DDD':
+                case 'w':
+                case 'W':
+                    return (number % 10 === 2 || number % 10 === 3) &&
+                        number % 100 !== 12 &&
+                        number % 100 !== 13
+                        ? number + '-Ñ–'
+                        : number + '-Ñ‹';
+                case 'D':
+                    return number + '-га';
+                default:
+                    return number;
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return be;
+    return be;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/bg.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/bg.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/bg.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Bulgarian [bg]
 //! author : Krasen Borisov : https://github.com/kraz
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var bg = moment.defineLocale('bg', {
-                    months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
-                        '_'
-                    ),
-                    monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
-                    weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
-                    weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'D.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY H:mm',
-                        LLLL: 'dddd, D MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Днес в] LT',
-                        nextDay: '[Утре в] LT',
-                        nextWeek: 'dddd [в] LT',
-                        lastDay: '[Вчера в] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                case 3:
-                                case 6:
-                                    return '[Миналата] dddd [в] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[Миналия] dddd [в] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'след %s',
-                        past: 'преди %s',
-                        s: 'няколко секунди',
-                        ss: '%d секунди',
-                        m: 'минута',
-                        mm: '%d минути',
-                        h: 'час',
-                        hh: '%d часа',
-                        d: 'ден',
-                        dd: '%d дена',
-                        w: 'седмица',
-                        ww: '%d седмици',
-                        M: 'месец',
-                        MM: '%d месеца',
-                        y: 'година',
-                        yy: '%d години',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
-                    ordinal: function (number) {
-                        var lastDigit = number % 10,
-                            last2Digits = number % 100;
-                        if (number === 0) {
-                            return number + '-ев';
-                        } else if (last2Digits === 0) {
-                            return number + '-ен';
-                        } else if (last2Digits > 10 && last2Digits < 20) {
-                            return number + '-ти';
-                        } else if (lastDigit === 1) {
-                            return number + '-ви';
-                        } else if (lastDigit === 2) {
-                            return number + '-ри';
-                        } else if (lastDigit === 7 || lastDigit === 8) {
-                            return number + '-ми';
-                        } else {
-                            return number + '-ти';
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var bg = moment.defineLocale('bg', {
+        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
+            '_'
+        ),
+        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
+        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
+            '_'
+        ),
+        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
+        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'D.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY H:mm',
+            LLLL: 'dddd, D MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[Днес в] LT',
+            nextDay: '[Утре в] LT',
+            nextWeek: 'dddd [в] LT',
+            lastDay: '[Вчера в] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                    case 3:
+                    case 6:
+                        return '[Миналата] dddd [в] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[Миналия] dddd [в] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'след %s',
+            past: 'преди %s',
+            s: 'няколко секунди',
+            ss: '%d секунди',
+            m: 'минута',
+            mm: '%d минути',
+            h: 'час',
+            hh: '%d часа',
+            d: 'ден',
+            dd: '%d дена',
+            w: 'седмица',
+            ww: '%d седмици',
+            M: 'месец',
+            MM: '%d месеца',
+            y: 'година',
+            yy: '%d години',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
+        ordinal: function (number) {
+            var lastDigit = number % 10,
+                last2Digits = number % 100;
+            if (number === 0) {
+                return number + '-ев';
+            } else if (last2Digits === 0) {
+                return number + '-ен';
+            } else if (last2Digits > 10 && last2Digits < 20) {
+                return number + '-ти';
+            } else if (lastDigit === 1) {
+                return number + '-ви';
+            } else if (lastDigit === 2) {
+                return number + '-ри';
+            } else if (lastDigit === 7 || lastDigit === 8) {
+                return number + '-ми';
+            } else {
+                return number + '-ти';
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return bg;
+    return bg;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/bm.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/bm.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/bm.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Bambara [bm]
 //! author : Estelle Comment : https://github.com/estellecomment
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var bm = moment.defineLocale('bm', {
-                    months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
-                    weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
-                    weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
-                    weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'MMMM [tile] D [san] YYYY',
-                        LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
-                        LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Bi lɛrɛ] LT',
-                        nextDay: '[Sini lɛrɛ] LT',
-                        nextWeek: 'dddd [don lɛrɛ] LT',
-                        lastDay: '[Kunu lɛrɛ] LT',
-                        lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s kɔnɔ',
-                        past: 'a bÉ› %s bÉ”',
-                        s: 'sanga dama dama',
-                        ss: 'sekondi %d',
-                        m: 'miniti kelen',
-                        mm: 'miniti %d',
-                        h: 'lɛrɛ kelen',
-                        hh: 'lɛrɛ %d',
-                        d: 'tile kelen',
-                        dd: 'tile %d',
-                        M: 'kalo kelen',
-                        MM: 'kalo %d',
-                        y: 'san kelen',
-                        yy: 'san %d',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return bm;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/bn-bd.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var bm = moment.defineLocale('bm', {
+        months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
+            '_'
+        ),
+        monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
+        weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
+        weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
+        weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'MMMM [tile] D [san] YYYY',
+            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
+            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
+        },
+        calendar: {
+            sameDay: '[Bi lɛrɛ] LT',
+            nextDay: '[Sini lɛrɛ] LT',
+            nextWeek: 'dddd [don lɛrɛ] LT',
+            lastDay: '[Kunu lɛrɛ] LT',
+            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s kɔnɔ',
+            past: 'a bÉ› %s bÉ”',
+            s: 'sanga dama dama',
+            ss: 'sekondi %d',
+            m: 'miniti kelen',
+            mm: 'miniti %d',
+            h: 'lɛrɛ kelen',
+            hh: 'lɛrɛ %d',
+            d: 'tile kelen',
+            dd: 'tile %d',
+            M: 'kalo kelen',
+            MM: 'kalo %d',
+            y: 'san kelen',
+            yy: 'san %d',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return bm;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/bn-bd.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/bn-bd.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Bengali (Bangladesh) [bn-bd]
 //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '১',
-                        2: '২',
-                        3: '৩',
-                        4: '৪',
-                        5: '৫',
-                        6: '৬',
-                        7: '৭',
-                        8: '৮',
-                        9: '৯',
-                        0: '০',
-                    },
-                    numberMap = {
-                        '১': '1',
-                        '২': '2',
-                        '৩': '3',
-                        '৪': '4',
-                        '৫': '5',
-                        '৬': '6',
-                        '৭': '7',
-                        '৮': '8',
-                        '৯': '9',
-                        '০': '0',
-                    };
-
-                var bnBd = moment.defineLocale('bn-bd', {
-                    months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
-                        '_'
-                    ),
-                    monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
-                        '_'
-                    ),
-                    weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
-                    weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm সময়',
-                        LTS: 'A h:mm:ss সময়',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm সময়',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
-                    },
-                    calendar: {
-                        sameDay: '[আজ] LT',
-                        nextDay: '[আগামীকাল] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[গতকাল] LT',
-                        lastWeek: '[গত] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s পরে',
-                        past: '%s আগে',
-                        s: 'কয়েক সেকেন্ড',
-                        ss: '%d সেকেন্ড',
-                        m: 'এক মিনিট',
-                        mm: '%d মিনিট',
-                        h: 'এক ঘন্টা',
-                        hh: '%d ঘন্টা',
-                        d: 'এক দিন',
-                        dd: '%d দিন',
-                        M: 'এক মাস',
-                        MM: '%d মাস',
-                        y: 'এক বছর',
-                        yy: '%d বছর',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '১',
+            2: '২',
+            3: '৩',
+            4: '৪',
+            5: '৫',
+            6: '৬',
+            7: '৭',
+            8: '৮',
+            9: '৯',
+            0: '০',
+        },
+        numberMap = {
+            '১': '1',
+            '২': '2',
+            '৩': '3',
+            '৪': '4',
+            '৫': '5',
+            '৬': '6',
+            '৭': '7',
+            '৮': '8',
+            '৯': '9',
+            '০': '0',
+        };
+
+    var bnBd = moment.defineLocale('bn-bd', {
+        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
+            '_'
+        ),
+        monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
+            '_'
+        ),
+        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
+            '_'
+        ),
+        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
+        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm সময়',
+            LTS: 'A h:mm:ss সময়',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm সময়',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
+        },
+        calendar: {
+            sameDay: '[আজ] LT',
+            nextDay: '[আগামীকাল] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[গতকাল] LT',
+            lastWeek: '[গত] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s পরে',
+            past: '%s আগে',
+            s: 'কয়েক সেকেন্ড',
+            ss: '%d সেকেন্ড',
+            m: 'এক মিনিট',
+            mm: '%d মিনিট',
+            h: 'এক ঘন্টা',
+            hh: '%d ঘন্টা',
+            d: 'এক দিন',
+            dd: '%d দিন',
+            M: 'এক মাস',
+            MM: '%d মাস',
+            y: 'এক বছর',
+            yy: '%d বছর',
+        },
+        preparse: function (string) {
+            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
 
-                    meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'রাত') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'ভোর') {
-                            return hour;
-                        } else if (meridiem === 'সকাল') {
-                            return hour;
-                        } else if (meridiem === 'দুপুর') {
-                            return hour >= 3 ? hour : hour + 12;
-                        } else if (meridiem === 'বিকাল') {
-                            return hour + 12;
-                        } else if (meridiem === 'সন্ধ্যা') {
-                            return hour + 12;
-                        }
-                    },
-
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'রাত';
-                        } else if (hour < 6) {
-                            return 'ভোর';
-                        } else if (hour < 12) {
-                            return 'সকাল';
-                        } else if (hour < 15) {
-                            return 'দুপুর';
-                        } else if (hour < 18) {
-                            return 'বিকাল';
-                        } else if (hour < 20) {
-                            return 'সন্ধ্যা';
-                        } else {
-                            return 'রাত';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'রাত') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'ভোর') {
+                return hour;
+            } else if (meridiem === 'সকাল') {
+                return hour;
+            } else if (meridiem === 'দুপুর') {
+                return hour >= 3 ? hour : hour + 12;
+            } else if (meridiem === 'বিকাল') {
+                return hour + 12;
+            } else if (meridiem === 'সন্ধ্যা') {
+                return hour + 12;
+            }
+        },
+
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'রাত';
+            } else if (hour < 6) {
+                return 'ভোর';
+            } else if (hour < 12) {
+                return 'সকাল';
+            } else if (hour < 15) {
+                return 'দুপুর';
+            } else if (hour < 18) {
+                return 'বিকাল';
+            } else if (hour < 20) {
+                return 'সন্ধ্যা';
+            } else {
+                return 'রাত';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return bnBd;
+    return bnBd;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/bn.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/bn.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/bn.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Bengali [bn]
 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '১',
-                        2: '২',
-                        3: '৩',
-                        4: '৪',
-                        5: '৫',
-                        6: '৬',
-                        7: '৭',
-                        8: '৮',
-                        9: '৯',
-                        0: '০',
-                    },
-                    numberMap = {
-                        '১': '1',
-                        '২': '2',
-                        '৩': '3',
-                        '৪': '4',
-                        '৫': '5',
-                        '৬': '6',
-                        '৭': '7',
-                        '৮': '8',
-                        '৯': '9',
-                        '০': '0',
-                    };
-
-                var bn = moment.defineLocale('bn', {
-                    months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
-                        '_'
-                    ),
-                    monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
-                        '_'
-                    ),
-                    weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
-                    weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm সময়',
-                        LTS: 'A h:mm:ss সময়',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm সময়',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
-                    },
-                    calendar: {
-                        sameDay: '[আজ] LT',
-                        nextDay: '[আগামীকাল] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[গতকাল] LT',
-                        lastWeek: '[গত] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s পরে',
-                        past: '%s আগে',
-                        s: 'কয়েক সেকেন্ড',
-                        ss: '%d সেকেন্ড',
-                        m: 'এক মিনিট',
-                        mm: '%d মিনিট',
-                        h: 'এক ঘন্টা',
-                        hh: '%d ঘন্টা',
-                        d: 'এক দিন',
-                        dd: '%d দিন',
-                        M: 'এক মাস',
-                        MM: '%d মাস',
-                        y: 'এক বছর',
-                        yy: '%d বছর',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (
-                            (meridiem === 'রাত' && hour >= 4) ||
-                            (meridiem === 'দুপুর' && hour < 5) ||
-                            meridiem === 'বিকাল'
-                        ) {
-                            return hour + 12;
-                        } else {
-                            return hour;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'রাত';
-                        } else if (hour < 10) {
-                            return 'সকাল';
-                        } else if (hour < 17) {
-                            return 'দুপুর';
-                        } else if (hour < 20) {
-                            return 'বিকাল';
-                        } else {
-                            return 'রাত';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '১',
+            2: '২',
+            3: '৩',
+            4: '৪',
+            5: '৫',
+            6: '৬',
+            7: '৭',
+            8: '৮',
+            9: '৯',
+            0: '০',
+        },
+        numberMap = {
+            '১': '1',
+            '২': '2',
+            '৩': '3',
+            '৪': '4',
+            '৫': '5',
+            '৬': '6',
+            '৭': '7',
+            '৮': '8',
+            '৯': '9',
+            '০': '0',
+        };
+
+    var bn = moment.defineLocale('bn', {
+        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
+            '_'
+        ),
+        monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
+            '_'
+        ),
+        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
+            '_'
+        ),
+        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
+        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm সময়',
+            LTS: 'A h:mm:ss সময়',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm সময়',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
+        },
+        calendar: {
+            sameDay: '[আজ] LT',
+            nextDay: '[আগামীকাল] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[গতকাল] LT',
+            lastWeek: '[গত] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s পরে',
+            past: '%s আগে',
+            s: 'কয়েক সেকেন্ড',
+            ss: '%d সেকেন্ড',
+            m: 'এক মিনিট',
+            mm: '%d মিনিট',
+            h: 'এক ঘন্টা',
+            hh: '%d ঘন্টা',
+            d: 'এক দিন',
+            dd: '%d দিন',
+            M: 'এক মাস',
+            MM: '%d মাস',
+            y: 'এক বছর',
+            yy: '%d বছর',
+        },
+        preparse: function (string) {
+            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (
+                (meridiem === 'রাত' && hour >= 4) ||
+                (meridiem === 'দুপুর' && hour < 5) ||
+                meridiem === 'বিকাল'
+            ) {
+                return hour + 12;
+            } else {
+                return hour;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'রাত';
+            } else if (hour < 10) {
+                return 'সকাল';
+            } else if (hour < 17) {
+                return 'দুপুর';
+            } else if (hour < 20) {
+                return 'বিকাল';
+            } else {
+                return 'রাত';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return bn;
+    return bn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/bo.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/bo.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/bo.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Tibetan [bo]
 //! author : Thupten N. Chakrishar : https://github.com/vajradog
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '༡',
-                        2: '༢',
-                        3: '༣',
-                        4: '༤',
-                        5: '༥',
-                        6: '༦',
-                        7: '༧',
-                        8: '༨',
-                        9: '༩',
-                        0: '༠',
-                    },
-                    numberMap = {
-                        '༡': '1',
-                        '༢': '2',
-                        '༣': '3',
-                        '༤': '4',
-                        '༥': '5',
-                        '༦': '6',
-                        '༧': '7',
-                        '༨': '8',
-                        '༩': '9',
-                        '༠': '0',
-                    };
-
-                var bo = moment.defineLocale('bo', {
-                    months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
-                        '_'
-                    ),
-                    monthsShortRegex: /^(ཟླ་\d{1,2})/,
-                    monthsParseExact: true,
-                    weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
-                        '_'
-                    ),
-                    weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm',
-                        LTS: 'A h:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm',
-                    },
-                    calendar: {
-                        sameDay: '[དི་རིང] LT',
-                        nextDay: '[སང་ཉིན] LT',
-                        nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
-                        lastDay: '[ཁ་སང] LT',
-                        lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s ལ་',
-                        past: '%s སྔན་ལ',
-                        s: 'ལམ་སང',
-                        ss: '%d སྐར་ཆ།',
-                        m: 'སྐར་མ་གཅིག',
-                        mm: '%d སྐར་མ',
-                        h: 'ཆུ་ཚོད་གཅིག',
-                        hh: '%d ཆུ་ཚོད',
-                        d: 'ཉིན་གཅིག',
-                        dd: '%d ཉིན་',
-                        M: 'ཟླ་བ་གཅིག',
-                        MM: '%d ཟླ་བ',
-                        y: 'ལོ་གཅིག',
-                        yy: '%d ལོ',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (
-                            (meridiem === 'མཚན་མོ' && hour >= 4) ||
-                            (meridiem === 'ཉིན་གུང' && hour < 5) ||
-                            meridiem === 'དགོང་དག'
-                        ) {
-                            return hour + 12;
-                        } else {
-                            return hour;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'མཚན་མོ';
-                        } else if (hour < 10) {
-                            return 'ཞོགས་ཀས';
-                        } else if (hour < 17) {
-                            return 'ཉིན་གུང';
-                        } else if (hour < 20) {
-                            return 'དགོང་དག';
-                        } else {
-                            return 'མཚན་མོ';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '༡',
+            2: '༢',
+            3: '༣',
+            4: '༤',
+            5: '༥',
+            6: '༦',
+            7: '༧',
+            8: '༨',
+            9: '༩',
+            0: '༠',
+        },
+        numberMap = {
+            '༡': '1',
+            '༢': '2',
+            '༣': '3',
+            '༤': '4',
+            '༥': '5',
+            '༦': '6',
+            '༧': '7',
+            '༨': '8',
+            '༩': '9',
+            '༠': '0',
+        };
+
+    var bo = moment.defineLocale('bo', {
+        months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
+            '_'
+        ),
+        monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
+            '_'
+        ),
+        monthsShortRegex: /^(ཟླ་\d{1,2})/,
+        monthsParseExact: true,
+        weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
+            '_'
+        ),
+        weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
+            '_'
+        ),
+        weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm',
+            LTS: 'A h:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm',
+        },
+        calendar: {
+            sameDay: '[དི་རིང] LT',
+            nextDay: '[སང་ཉིན] LT',
+            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
+            lastDay: '[ཁ་སང] LT',
+            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s ལ་',
+            past: '%s སྔན་ལ',
+            s: 'ལམ་སང',
+            ss: '%d སྐར་ཆ།',
+            m: 'སྐར་མ་གཅིག',
+            mm: '%d སྐར་མ',
+            h: 'ཆུ་ཚོད་གཅིག',
+            hh: '%d ཆུ་ཚོད',
+            d: 'ཉིན་གཅིག',
+            dd: '%d ཉིན་',
+            M: 'ཟླ་བ་གཅིག',
+            MM: '%d ཟླ་བ',
+            y: 'ལོ་གཅིག',
+            yy: '%d ལོ',
+        },
+        preparse: function (string) {
+            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (
+                (meridiem === 'མཚན་མོ' && hour >= 4) ||
+                (meridiem === 'ཉིན་གུང' && hour < 5) ||
+                meridiem === 'དགོང་དག'
+            ) {
+                return hour + 12;
+            } else {
+                return hour;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'མཚན་མོ';
+            } else if (hour < 10) {
+                return 'ཞོགས་ཀས';
+            } else if (hour < 17) {
+                return 'ཉིན་གུང';
+            } else if (hour < 20) {
+                return 'དགོང་དག';
+            } else {
+                return 'མཚན་མོ';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return bo;
+    return bo;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/br.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/br.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/br.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Breton [br]
 //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function relativeTimeWithMutation(number, withoutSuffix, key) {
-                    var format = {
-                        mm: 'munutenn',
-                        MM: 'miz',
-                        dd: 'devezh',
-                    };
-                    return number + ' ' + mutation(format[key], number);
-                }
-                function specialMutationForYears(number) {
-                    switch (lastNumber(number)) {
-                        case 1:
-                        case 3:
-                        case 4:
-                        case 5:
-                        case 9:
-                            return number + ' bloaz';
-                        default:
-                            return number + ' vloaz';
-                    }
-                }
-                function lastNumber(number) {
-                    if (number > 9) {
-                        return lastNumber(number % 10);
-                    }
-                    return number;
-                }
-                function mutation(text, number) {
-                    if (number === 2) {
-                        return softMutation(text);
-                    }
-                    return text;
-                }
-                function softMutation(text) {
-                    var mutationTable = {
-                        m: 'v',
-                        b: 'v',
-                        d: 'z',
-                    };
-                    if (mutationTable[text.charAt(0)] === undefined) {
-                        return text;
-                    }
-                    return mutationTable[text.charAt(0)] + text.substring(1);
-                }
-
-                var monthsParse = [
-                        /^gen/i,
-                        /^c[ʼ\']hwe/i,
-                        /^meu/i,
-                        /^ebr/i,
-                        /^mae/i,
-                        /^(mez|eve)/i,
-                        /^gou/i,
-                        /^eos/i,
-                        /^gwe/i,
-                        /^her/i,
-                        /^du/i,
-                        /^ker/i,
-                    ],
-                    monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
-                    monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
-                    monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
-                    fullWeekdaysParse = [
-                        /^sul/i,
-                        /^lun/i,
-                        /^meurzh/i,
-                        /^merc[ʼ\']her/i,
-                        /^yaou/i,
-                        /^gwener/i,
-                        /^sadorn/i,
-                    ],
-                    shortWeekdaysParse = [
-                        /^Sul/i,
-                        /^Lun/i,
-                        /^Meu/i,
-                        /^Mer/i,
-                        /^Yao/i,
-                        /^Gwe/i,
-                        /^Sad/i,
-                    ],
-                    minWeekdaysParse = [
-                        /^Su/i,
-                        /^Lu/i,
-                        /^Me([^r]|$)/i,
-                        /^Mer/i,
-                        /^Ya/i,
-                        /^Gw/i,
-                        /^Sa/i,
-                    ];
-
-                var br = moment.defineLocale('br', {
-                    months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
-                    weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
-                    weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
-                    weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
-                    weekdaysParse: minWeekdaysParse,
-                    fullWeekdaysParse: fullWeekdaysParse,
-                    shortWeekdaysParse: shortWeekdaysParse,
-                    minWeekdaysParse: minWeekdaysParse,
-
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: monthsStrictRegex,
-                    monthsShortStrictRegex: monthsShortStrictRegex,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [a viz] MMMM YYYY',
-                        LLL: 'D [a viz] MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Hiziv da] LT',
-                        nextDay: '[Warcʼhoazh da] LT',
-                        nextWeek: 'dddd [da] LT',
-                        lastDay: '[Decʼh da] LT',
-                        lastWeek: 'dddd [paset da] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'a-benn %s',
-                        past: '%s ʼzo',
-                        s: 'un nebeud segondennoù',
-                        ss: '%d eilenn',
-                        m: 'ur vunutenn',
-                        mm: relativeTimeWithMutation,
-                        h: 'un eur',
-                        hh: '%d eur',
-                        d: 'un devezh',
-                        dd: relativeTimeWithMutation,
-                        M: 'ur miz',
-                        MM: relativeTimeWithMutation,
-                        y: 'ur bloaz',
-                        yy: specialMutationForYears,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
-                    ordinal: function (number) {
-                        var output = number === 1 ? 'añ' : 'vet';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                    meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
-                    isPM: function (token) {
-                        return token === 'g.m.';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        return hour < 12 ? 'a.m.' : 'g.m.';
-                    },
-                });
-
-                return br;
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-            })));
+    //! moment.js locale configuration
 
+    function relativeTimeWithMutation(number, withoutSuffix, key) {
+        var format = {
+            mm: 'munutenn',
+            MM: 'miz',
+            dd: 'devezh',
+        };
+        return number + ' ' + mutation(format[key], number);
+    }
+    function specialMutationForYears(number) {
+        switch (lastNumber(number)) {
+            case 1:
+            case 3:
+            case 4:
+            case 5:
+            case 9:
+                return number + ' bloaz';
+            default:
+                return number + ' vloaz';
+        }
+    }
+    function lastNumber(number) {
+        if (number > 9) {
+            return lastNumber(number % 10);
+        }
+        return number;
+    }
+    function mutation(text, number) {
+        if (number === 2) {
+            return softMutation(text);
+        }
+        return text;
+    }
+    function softMutation(text) {
+        var mutationTable = {
+            m: 'v',
+            b: 'v',
+            d: 'z',
+        };
+        if (mutationTable[text.charAt(0)] === undefined) {
+            return text;
+        }
+        return mutationTable[text.charAt(0)] + text.substring(1);
+    }
 
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/bs.js":
-        /*!******************************************!*\
+    var monthsParse = [
+            /^gen/i,
+            /^c[ʼ\']hwe/i,
+            /^meu/i,
+            /^ebr/i,
+            /^mae/i,
+            /^(mez|eve)/i,
+            /^gou/i,
+            /^eos/i,
+            /^gwe/i,
+            /^her/i,
+            /^du/i,
+            /^ker/i,
+        ],
+        monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
+        monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
+        monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
+        fullWeekdaysParse = [
+            /^sul/i,
+            /^lun/i,
+            /^meurzh/i,
+            /^merc[ʼ\']her/i,
+            /^yaou/i,
+            /^gwener/i,
+            /^sadorn/i,
+        ],
+        shortWeekdaysParse = [
+            /^Sul/i,
+            /^Lun/i,
+            /^Meu/i,
+            /^Mer/i,
+            /^Yao/i,
+            /^Gwe/i,
+            /^Sad/i,
+        ],
+        minWeekdaysParse = [
+            /^Su/i,
+            /^Lu/i,
+            /^Me([^r]|$)/i,
+            /^Mer/i,
+            /^Ya/i,
+            /^Gw/i,
+            /^Sa/i,
+        ];
+
+    var br = moment.defineLocale('br', {
+        months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
+            '_'
+        ),
+        monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
+        weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
+        weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
+        weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
+        weekdaysParse: minWeekdaysParse,
+        fullWeekdaysParse: fullWeekdaysParse,
+        shortWeekdaysParse: shortWeekdaysParse,
+        minWeekdaysParse: minWeekdaysParse,
+
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: monthsStrictRegex,
+        monthsShortStrictRegex: monthsShortStrictRegex,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [a viz] MMMM YYYY',
+            LLL: 'D [a viz] MMMM YYYY HH:mm',
+            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Hiziv da] LT',
+            nextDay: '[Warcʼhoazh da] LT',
+            nextWeek: 'dddd [da] LT',
+            lastDay: '[Decʼh da] LT',
+            lastWeek: 'dddd [paset da] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'a-benn %s',
+            past: '%s ʼzo',
+            s: 'un nebeud segondennoù',
+            ss: '%d eilenn',
+            m: 'ur vunutenn',
+            mm: relativeTimeWithMutation,
+            h: 'un eur',
+            hh: '%d eur',
+            d: 'un devezh',
+            dd: relativeTimeWithMutation,
+            M: 'ur miz',
+            MM: relativeTimeWithMutation,
+            y: 'ur bloaz',
+            yy: specialMutationForYears,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
+        ordinal: function (number) {
+            var output = number === 1 ? 'añ' : 'vet';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+        meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
+        isPM: function (token) {
+            return token === 'g.m.';
+        },
+        meridiem: function (hour, minute, isLower) {
+            return hour < 12 ? 'a.m.' : 'g.m.';
+        },
+    });
+
+    return br;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/bs.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/bs.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Bosnian [bs]
 //! author : Nedim Cholich : https://github.com/frontyard
 //! based on (hr) translation by Bojan Marković
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function translate(number, withoutSuffix, key) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 'ss':
-                            if (number === 1) {
-                                result += 'sekunda';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'sekunde';
-                            } else {
-                                result += 'sekundi';
-                            }
-                            return result;
-                        case 'm':
-                            return withoutSuffix ? 'jedna minuta' : 'jedne minute';
-                        case 'mm':
-                            if (number === 1) {
-                                result += 'minuta';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'minute';
-                            } else {
-                                result += 'minuta';
-                            }
-                            return result;
-                        case 'h':
-                            return withoutSuffix ? 'jedan sat' : 'jednog sata';
-                        case 'hh':
-                            if (number === 1) {
-                                result += 'sat';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'sata';
-                            } else {
-                                result += 'sati';
-                            }
-                            return result;
-                        case 'dd':
-                            if (number === 1) {
-                                result += 'dan';
-                            } else {
-                                result += 'dana';
-                            }
-                            return result;
-                        case 'MM':
-                            if (number === 1) {
-                                result += 'mjesec';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'mjeseca';
-                            } else {
-                                result += 'mjeseci';
-                            }
-                            return result;
-                        case 'yy':
-                            if (number === 1) {
-                                result += 'godina';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'godine';
-                            } else {
-                                result += 'godina';
-                            }
-                            return result;
-                    }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function translate(number, withoutSuffix, key) {
+        var result = number + ' ';
+        switch (key) {
+            case 'ss':
+                if (number === 1) {
+                    result += 'sekunda';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'sekunde';
+                } else {
+                    result += 'sekundi';
                 }
+                return result;
+            case 'm':
+                return withoutSuffix ? 'jedna minuta' : 'jedne minute';
+            case 'mm':
+                if (number === 1) {
+                    result += 'minuta';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'minute';
+                } else {
+                    result += 'minuta';
+                }
+                return result;
+            case 'h':
+                return withoutSuffix ? 'jedan sat' : 'jednog sata';
+            case 'hh':
+                if (number === 1) {
+                    result += 'sat';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'sata';
+                } else {
+                    result += 'sati';
+                }
+                return result;
+            case 'dd':
+                if (number === 1) {
+                    result += 'dan';
+                } else {
+                    result += 'dana';
+                }
+                return result;
+            case 'MM':
+                if (number === 1) {
+                    result += 'mjesec';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'mjeseca';
+                } else {
+                    result += 'mjeseci';
+                }
+                return result;
+            case 'yy':
+                if (number === 1) {
+                    result += 'godina';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'godine';
+                } else {
+                    result += 'godina';
+                }
+                return result;
+        }
+    }
 
-                var bs = moment.defineLocale('bs', {
-                    months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
-                    weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[danas u] LT',
-                        nextDay: '[sutra u] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[u] [nedjelju] [u] LT';
-                                case 3:
-                                    return '[u] [srijedu] [u] LT';
-                                case 6:
-                                    return '[u] [subotu] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[u] dddd [u] LT';
-                            }
-                        },
-                        lastDay: '[jučer u] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                case 3:
-                                    return '[prošlu] dddd [u] LT';
-                                case 6:
-                                    return '[prošle] [subote] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[prošli] dddd [u] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'prije %s',
-                        s: 'par sekundi',
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: 'dan',
-                        dd: translate,
-                        M: 'mjesec',
-                        MM: translate,
-                        y: 'godinu',
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return bs;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ca.js":
-        /*!******************************************!*\
+    var bs = moment.defineLocale('bs', {
+        months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
+            '_'
+        ),
+        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd, D. MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[danas u] LT',
+            nextDay: '[sutra u] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[u] [nedjelju] [u] LT';
+                    case 3:
+                        return '[u] [srijedu] [u] LT';
+                    case 6:
+                        return '[u] [subotu] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[u] dddd [u] LT';
+                }
+            },
+            lastDay: '[jučer u] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                    case 3:
+                        return '[prošlu] dddd [u] LT';
+                    case 6:
+                        return '[prošle] [subote] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[prošli] dddd [u] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'prije %s',
+            s: 'par sekundi',
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: 'dan',
+            dd: translate,
+            M: 'mjesec',
+            MM: translate,
+            y: 'godinu',
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return bs;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ca.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ca.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Catalan [ca]
 //! author : Juan G. Hurtado : https://github.com/juanghurtado
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ca = moment.defineLocale('ca', {
-                    months: {
-                        standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
-                            '_'
-                        ),
-                        format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
-                            '_'
-                        ),
-                        isFormat: /D[oD]?(\s)+MMMM/,
-                    },
-                    monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
-                    weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM [de] YYYY',
-                        ll: 'D MMM YYYY',
-                        LLL: 'D MMMM [de] YYYY [a les] H:mm',
-                        lll: 'D MMM YYYY, H:mm',
-                        LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
-                        llll: 'ddd D MMM YYYY, H:mm',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[el] dddd [passat a ' +
-                                (this.hours() !== 1 ? 'les' : 'la') +
-                                '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: "d'aquí %s",
-                        past: 'fa %s',
-                        s: 'uns segons',
-                        ss: '%d segons',
-                        m: 'un minut',
-                        mm: '%d minuts',
-                        h: 'una hora',
-                        hh: '%d hores',
-                        d: 'un dia',
-                        dd: '%d dies',
-                        M: 'un mes',
-                        MM: '%d mesos',
-                        y: 'un any',
-                        yy: '%d anys',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
-                    ordinal: function (number, period) {
-                        var output =
-                            number === 1
-                                ? 'r'
-                                : number === 2
-                                    ? 'n'
-                                    : number === 3
-                                        ? 'r'
-                                        : number === 4
-                                            ? 't'
-                                            : 'è';
-                        if (period === 'w' || period === 'W') {
-                            output = 'a';
-                        }
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ca = moment.defineLocale('ca', {
+        months: {
+            standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
+                '_'
+            ),
+            format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
+                '_'
+            ),
+            isFormat: /D[oD]?(\s)+MMMM/,
+        },
+        monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
+            '_'
+        ),
+        weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
+        weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM [de] YYYY',
+            ll: 'D MMM YYYY',
+            LLL: 'D MMMM [de] YYYY [a les] H:mm',
+            lll: 'D MMM YYYY, H:mm',
+            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
+            llll: 'ddd D MMM YYYY, H:mm',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
+            },
+            nextDay: function () {
+                return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
+            },
+            lastDay: function () {
+                return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[el] dddd [passat a ' +
+                    (this.hours() !== 1 ? 'les' : 'la') +
+                    '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: "d'aquí %s",
+            past: 'fa %s',
+            s: 'uns segons',
+            ss: '%d segons',
+            m: 'un minut',
+            mm: '%d minuts',
+            h: 'una hora',
+            hh: '%d hores',
+            d: 'un dia',
+            dd: '%d dies',
+            M: 'un mes',
+            MM: '%d mesos',
+            y: 'un any',
+            yy: '%d anys',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
+        ordinal: function (number, period) {
+            var output =
+                number === 1
+                    ? 'r'
+                    : number === 2
+                    ? 'n'
+                    : number === 3
+                    ? 'r'
+                    : number === 4
+                    ? 't'
+                    : 'è';
+            if (period === 'w' || period === 'W') {
+                output = 'a';
+            }
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return ca;
+    return ca;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/cs.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/cs.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/cs.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Czech [cs]
 //! author : petrbela : https://github.com/petrbela
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
-                        '_'
-                    ),
-                    monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
-                    monthsParse = [
-                        /^led/i,
-                        /^úno/i,
-                        /^bře/i,
-                        /^dub/i,
-                        /^kvÄ›/i,
-                        /^(čvn|červen$|června)/i,
-                        /^(čvc|červenec|července)/i,
-                        /^srp/i,
-                        /^zář/i,
-                        /^říj/i,
-                        /^lis/i,
-                        /^pro/i,
-                    ],
-                    // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
-                    // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
-                    monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
-
-                function plural(n) {
-                    return n > 1 && n < 5 && ~~(n / 10) !== 1;
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
+            '_'
+        ),
+        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
+        monthsParse = [
+            /^led/i,
+            /^úno/i,
+            /^bře/i,
+            /^dub/i,
+            /^kvÄ›/i,
+            /^(čvn|červen$|června)/i,
+            /^(čvc|červenec|července)/i,
+            /^srp/i,
+            /^zář/i,
+            /^říj/i,
+            /^lis/i,
+            /^pro/i,
+        ],
+        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
+        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
+        monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
+
+    function plural(n) {
+        return n > 1 && n < 5 && ~~(n / 10) !== 1;
+    }
+    function translate(number, withoutSuffix, key, isFuture) {
+        var result = number + ' ';
+        switch (key) {
+            case 's': // a few seconds / in a few seconds / a few seconds ago
+                return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
+            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'sekundy' : 'sekund');
+                } else {
+                    return result + 'sekundami';
                 }
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 's': // a few seconds / in a few seconds / a few seconds ago
-                            return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
-                        case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'sekundy' : 'sekund');
-                            } else {
-                                return result + 'sekundami';
-                            }
-                        case 'm': // a minute / in a minute / a minute ago
-                            return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
-                        case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'minuty' : 'minut');
-                            } else {
-                                return result + 'minutami';
-                            }
-                        case 'h': // an hour / in an hour / an hour ago
-                            return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
-                        case 'hh': // 9 hours / in 9 hours / 9 hours ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'hodiny' : 'hodin');
-                            } else {
-                                return result + 'hodinami';
-                            }
-                        case 'd': // a day / in a day / a day ago
-                            return withoutSuffix || isFuture ? 'den' : 'dnem';
-                        case 'dd': // 9 days / in 9 days / 9 days ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'dny' : 'dní');
-                            } else {
-                                return result + 'dny';
-                            }
-                        case 'M': // a month / in a month / a month ago
-                            return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
-                        case 'MM': // 9 months / in 9 months / 9 months ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'měsíce' : 'měsíců');
-                            } else {
-                                return result + 'měsíci';
-                            }
-                        case 'y': // a year / in a year / a year ago
-                            return withoutSuffix || isFuture ? 'rok' : 'rokem';
-                        case 'yy': // 9 years / in 9 years / 9 years ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'roky' : 'let');
-                            } else {
-                                return result + 'lety';
-                            }
-                    }
+            case 'm': // a minute / in a minute / a minute ago
+                return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
+            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'minuty' : 'minut');
+                } else {
+                    return result + 'minutami';
                 }
+            case 'h': // an hour / in an hour / an hour ago
+                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
+            case 'hh': // 9 hours / in 9 hours / 9 hours ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'hodiny' : 'hodin');
+                } else {
+                    return result + 'hodinami';
+                }
+            case 'd': // a day / in a day / a day ago
+                return withoutSuffix || isFuture ? 'den' : 'dnem';
+            case 'dd': // 9 days / in 9 days / 9 days ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'dny' : 'dní');
+                } else {
+                    return result + 'dny';
+                }
+            case 'M': // a month / in a month / a month ago
+                return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
+            case 'MM': // 9 months / in 9 months / 9 months ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'měsíce' : 'měsíců');
+                } else {
+                    return result + 'měsíci';
+                }
+            case 'y': // a year / in a year / a year ago
+                return withoutSuffix || isFuture ? 'rok' : 'rokem';
+            case 'yy': // 9 years / in 9 years / 9 years ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'roky' : 'let');
+                } else {
+                    return result + 'lety';
+                }
+        }
+    }
 
-                var cs = moment.defineLocale('cs', {
-                    months: months,
-                    monthsShort: monthsShort,
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
-                    // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
-                    monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
-                    monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
-                    weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
-                    weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd D. MMMM YYYY H:mm',
-                        l: 'D. M. YYYY',
-                    },
-                    calendar: {
-                        sameDay: '[dnes v] LT',
-                        nextDay: '[zítra v] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[v neděli v] LT';
-                                case 1:
-                                case 2:
-                                    return '[v] dddd [v] LT';
-                                case 3:
-                                    return '[ve středu v] LT';
-                                case 4:
-                                    return '[ve čtvrtek v] LT';
-                                case 5:
-                                    return '[v pátek v] LT';
-                                case 6:
-                                    return '[v sobotu v] LT';
-                            }
-                        },
-                        lastDay: '[včera v] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[minulou neděli v] LT';
-                                case 1:
-                                case 2:
-                                    return '[minulé] dddd [v] LT';
-                                case 3:
-                                    return '[minulou středu v] LT';
-                                case 4:
-                                case 5:
-                                    return '[minulý] dddd [v] LT';
-                                case 6:
-                                    return '[minulou sobotu v] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'před %s',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return cs;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/cv.js":
-        /*!******************************************!*\
+    var cs = moment.defineLocale('cs', {
+        months: months,
+        monthsShort: monthsShort,
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
+        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
+        monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
+        monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
+        weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
+        weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd D. MMMM YYYY H:mm',
+            l: 'D. M. YYYY',
+        },
+        calendar: {
+            sameDay: '[dnes v] LT',
+            nextDay: '[zítra v] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[v neděli v] LT';
+                    case 1:
+                    case 2:
+                        return '[v] dddd [v] LT';
+                    case 3:
+                        return '[ve středu v] LT';
+                    case 4:
+                        return '[ve čtvrtek v] LT';
+                    case 5:
+                        return '[v pátek v] LT';
+                    case 6:
+                        return '[v sobotu v] LT';
+                }
+            },
+            lastDay: '[včera v] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[minulou neděli v] LT';
+                    case 1:
+                    case 2:
+                        return '[minulé] dddd [v] LT';
+                    case 3:
+                        return '[minulou středu v] LT';
+                    case 4:
+                    case 5:
+                        return '[minulý] dddd [v] LT';
+                    case 6:
+                        return '[minulou sobotu v] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'před %s',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return cs;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/cv.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/cv.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Chuvash [cv]
 //! author : Anatoly Mironov : https://github.com/mirontoli
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var cv = moment.defineLocale('cv', {
-                    months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
-                        '_'
-                    ),
-                    monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
-                    weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
-                    weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD-MM-YYYY',
-                        LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
-                        LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
-                        LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Паян] LT [сехетре]',
-                        nextDay: '[Ыран] LT [сехетре]',
-                        lastDay: '[Ӗнер] LT [сехетре]',
-                        nextWeek: '[Ҫитес] dddd LT [сехетре]',
-                        lastWeek: '[Иртнӗ] dddd LT [сехетре]',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: function (output) {
-                            var affix = /сехет$/i.exec(output)
-                                ? 'рен'
-                                : /ҫул$/i.exec(output)
-                                    ? 'тан'
-                                    : 'ран';
-                            return output + affix;
-                        },
-                        past: '%s каялла',
-                        s: 'пӗр-ик ҫеккунт',
-                        ss: '%d ҫеккунт',
-                        m: 'пӗр минут',
-                        mm: '%d минут',
-                        h: 'пӗр сехет',
-                        hh: '%d сехет',
-                        d: 'пӗр кун',
-                        dd: '%d кун',
-                        M: 'пӗр уйӑх',
-                        MM: '%d уйӑх',
-                        y: 'пӗр ҫул',
-                        yy: '%d ҫул',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
-                    ordinal: '%d-мӗш',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return cv;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/cy.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var cv = moment.defineLocale('cv', {
+        months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
+            '_'
+        ),
+        monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
+        weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
+            '_'
+        ),
+        weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
+        weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD-MM-YYYY',
+            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
+            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
+            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
+        },
+        calendar: {
+            sameDay: '[Паян] LT [сехетре]',
+            nextDay: '[Ыран] LT [сехетре]',
+            lastDay: '[Ӗнер] LT [сехетре]',
+            nextWeek: '[Ҫитес] dddd LT [сехетре]',
+            lastWeek: '[Иртнӗ] dddd LT [сехетре]',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: function (output) {
+                var affix = /сехет$/i.exec(output)
+                    ? 'рен'
+                    : /ҫул$/i.exec(output)
+                    ? 'тан'
+                    : 'ран';
+                return output + affix;
+            },
+            past: '%s каялла',
+            s: 'пӗр-ик ҫеккунт',
+            ss: '%d ҫеккунт',
+            m: 'пӗр минут',
+            mm: '%d минут',
+            h: 'пӗр сехет',
+            hh: '%d сехет',
+            d: 'пӗр кун',
+            dd: '%d кун',
+            M: 'пӗр уйӑх',
+            MM: '%d уйӑх',
+            y: 'пӗр ҫул',
+            yy: '%d ҫул',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
+        ordinal: '%d-мӗш',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return cv;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/cy.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/cy.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Welsh [cy]
 //! author : Robert Allen : https://github.com/robgallen
 //! author : https://github.com/ryangreaves
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var cy = moment.defineLocale('cy', {
-                    months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
-                        '_'
-                    ),
-                    weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
-                    weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
-                    weekdaysParseExact: true,
-                    // time formats are the same as en-gb
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Heddiw am] LT',
-                        nextDay: '[Yfory am] LT',
-                        nextWeek: 'dddd [am] LT',
-                        lastDay: '[Ddoe am] LT',
-                        lastWeek: 'dddd [diwethaf am] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'mewn %s',
-                        past: '%s yn ôl',
-                        s: 'ychydig eiliadau',
-                        ss: '%d eiliad',
-                        m: 'munud',
-                        mm: '%d munud',
-                        h: 'awr',
-                        hh: '%d awr',
-                        d: 'diwrnod',
-                        dd: '%d diwrnod',
-                        M: 'mis',
-                        MM: '%d mis',
-                        y: 'blwyddyn',
-                        yy: '%d flynedd',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
-                    // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
-                    ordinal: function (number) {
-                        var b = number,
-                            output = '',
-                            lookup = [
-                                '',
-                                'af',
-                                'il',
-                                'ydd',
-                                'ydd',
-                                'ed',
-                                'ed',
-                                'ed',
-                                'fed',
-                                'fed',
-                                'fed', // 1af to 10fed
-                                'eg',
-                                'fed',
-                                'eg',
-                                'eg',
-                                'fed',
-                                'eg',
-                                'eg',
-                                'fed',
-                                'eg',
-                                'fed', // 11eg to 20fed
-                            ];
-                        if (b > 20) {
-                            if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
-                                output = 'fed'; // not 30ain, 70ain or 90ain
-                            } else {
-                                output = 'ain';
-                            }
-                        } else if (b > 0) {
-                            output = lookup[b];
-                        }
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var cy = moment.defineLocale('cy', {
+        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
+            '_'
+        ),
+        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
+            '_'
+        ),
+        weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
+        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
+        weekdaysParseExact: true,
+        // time formats are the same as en-gb
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Heddiw am] LT',
+            nextDay: '[Yfory am] LT',
+            nextWeek: 'dddd [am] LT',
+            lastDay: '[Ddoe am] LT',
+            lastWeek: 'dddd [diwethaf am] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'mewn %s',
+            past: '%s yn ôl',
+            s: 'ychydig eiliadau',
+            ss: '%d eiliad',
+            m: 'munud',
+            mm: '%d munud',
+            h: 'awr',
+            hh: '%d awr',
+            d: 'diwrnod',
+            dd: '%d diwrnod',
+            M: 'mis',
+            MM: '%d mis',
+            y: 'blwyddyn',
+            yy: '%d flynedd',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
+        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
+        ordinal: function (number) {
+            var b = number,
+                output = '',
+                lookup = [
+                    '',
+                    'af',
+                    'il',
+                    'ydd',
+                    'ydd',
+                    'ed',
+                    'ed',
+                    'ed',
+                    'fed',
+                    'fed',
+                    'fed', // 1af to 10fed
+                    'eg',
+                    'fed',
+                    'eg',
+                    'eg',
+                    'fed',
+                    'eg',
+                    'eg',
+                    'fed',
+                    'eg',
+                    'fed', // 11eg to 20fed
+                ];
+            if (b > 20) {
+                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
+                    output = 'fed'; // not 30ain, 70ain or 90ain
+                } else {
+                    output = 'ain';
+                }
+            } else if (b > 0) {
+                output = lookup[b];
+            }
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return cy;
+    return cy;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/da.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/da.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/da.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Danish [da]
 //! author : Ulrik Nielsen : https://github.com/mrbase
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var da = moment.defineLocale('da', {
-                    months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
-                    weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
-                    weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
-                    weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY HH:mm',
-                        LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[i dag kl.] LT',
-                        nextDay: '[i morgen kl.] LT',
-                        nextWeek: 'på dddd [kl.] LT',
-                        lastDay: '[i går kl.] LT',
-                        lastWeek: '[i] dddd[s kl.] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'om %s',
-                        past: '%s siden',
-                        s: 'få sekunder',
-                        ss: '%d sekunder',
-                        m: 'et minut',
-                        mm: '%d minutter',
-                        h: 'en time',
-                        hh: '%d timer',
-                        d: 'en dag',
-                        dd: '%d dage',
-                        M: 'en måned',
-                        MM: '%d måneder',
-                        y: 'et år',
-                        yy: '%d år',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return da;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/de-at.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var da = moment.defineLocale('da', {
+        months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
+        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
+        weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
+        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY HH:mm',
+            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
+        },
+        calendar: {
+            sameDay: '[i dag kl.] LT',
+            nextDay: '[i morgen kl.] LT',
+            nextWeek: 'på dddd [kl.] LT',
+            lastDay: '[i går kl.] LT',
+            lastWeek: '[i] dddd[s kl.] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'om %s',
+            past: '%s siden',
+            s: 'få sekunder',
+            ss: '%d sekunder',
+            m: 'et minut',
+            mm: '%d minutter',
+            h: 'en time',
+            hh: '%d timer',
+            d: 'en dag',
+            dd: '%d dage',
+            M: 'en måned',
+            MM: '%d måneder',
+            y: 'et år',
+            yy: '%d år',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return da;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/de-at.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/de-at.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : German (Austria) [de-at]
@@ -101201,193 +101201,193 @@ THE SOFTWARE.
 //! author : Martin Groller : https://github.com/MadMG
 //! author : Mikolaj Dadela : https://github.com/mik01aj
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        m: ['eine Minute', 'einer Minute'],
-                        h: ['eine Stunde', 'einer Stunde'],
-                        d: ['ein Tag', 'einem Tag'],
-                        dd: [number + ' Tage', number + ' Tagen'],
-                        w: ['eine Woche', 'einer Woche'],
-                        M: ['ein Monat', 'einem Monat'],
-                        MM: [number + ' Monate', number + ' Monaten'],
-                        y: ['ein Jahr', 'einem Jahr'],
-                        yy: [number + ' Jahre', number + ' Jahren'],
-                    };
-                    return withoutSuffix ? format[key][0] : format[key][1];
-                }
-
-                var deAt = moment.defineLocale('de-at', {
-                    months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
-                    weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D. MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[heute um] LT [Uhr]',
-                        sameElse: 'L',
-                        nextDay: '[morgen um] LT [Uhr]',
-                        nextWeek: 'dddd [um] LT [Uhr]',
-                        lastDay: '[gestern um] LT [Uhr]',
-                        lastWeek: '[letzten] dddd [um] LT [Uhr]',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: 'vor %s',
-                        s: 'ein paar Sekunden',
-                        ss: '%d Sekunden',
-                        m: processRelativeTime,
-                        mm: '%d Minuten',
-                        h: processRelativeTime,
-                        hh: '%d Stunden',
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        w: processRelativeTime,
-                        ww: '%d Wochen',
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return deAt;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            m: ['eine Minute', 'einer Minute'],
+            h: ['eine Stunde', 'einer Stunde'],
+            d: ['ein Tag', 'einem Tag'],
+            dd: [number + ' Tage', number + ' Tagen'],
+            w: ['eine Woche', 'einer Woche'],
+            M: ['ein Monat', 'einem Monat'],
+            MM: [number + ' Monate', number + ' Monaten'],
+            y: ['ein Jahr', 'einem Jahr'],
+            yy: [number + ' Jahre', number + ' Jahren'],
+        };
+        return withoutSuffix ? format[key][0] : format[key][1];
+    }
 
-        /***/ "./node_modules/moment/locale/de-ch.js":
-        /*!*********************************************!*\
+    var deAt = moment.defineLocale('de-at', {
+        months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
+            '_'
+        ),
+        monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
+            '_'
+        ),
+        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
+        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY HH:mm',
+            LLLL: 'dddd, D. MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[heute um] LT [Uhr]',
+            sameElse: 'L',
+            nextDay: '[morgen um] LT [Uhr]',
+            nextWeek: 'dddd [um] LT [Uhr]',
+            lastDay: '[gestern um] LT [Uhr]',
+            lastWeek: '[letzten] dddd [um] LT [Uhr]',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: 'vor %s',
+            s: 'ein paar Sekunden',
+            ss: '%d Sekunden',
+            m: processRelativeTime,
+            mm: '%d Minuten',
+            h: processRelativeTime,
+            hh: '%d Stunden',
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            w: processRelativeTime,
+            ww: '%d Wochen',
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return deAt;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/de-ch.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/de-ch.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : German (Switzerland) [de-ch]
 //! author : sschueller : https://github.com/sschueller
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        m: ['eine Minute', 'einer Minute'],
-                        h: ['eine Stunde', 'einer Stunde'],
-                        d: ['ein Tag', 'einem Tag'],
-                        dd: [number + ' Tage', number + ' Tagen'],
-                        w: ['eine Woche', 'einer Woche'],
-                        M: ['ein Monat', 'einem Monat'],
-                        MM: [number + ' Monate', number + ' Monaten'],
-                        y: ['ein Jahr', 'einem Jahr'],
-                        yy: [number + ' Jahre', number + ' Jahren'],
-                    };
-                    return withoutSuffix ? format[key][0] : format[key][1];
-                }
-
-                var deCh = moment.defineLocale('de-ch', {
-                    months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
-                    weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D. MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[heute um] LT [Uhr]',
-                        sameElse: 'L',
-                        nextDay: '[morgen um] LT [Uhr]',
-                        nextWeek: 'dddd [um] LT [Uhr]',
-                        lastDay: '[gestern um] LT [Uhr]',
-                        lastWeek: '[letzten] dddd [um] LT [Uhr]',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: 'vor %s',
-                        s: 'ein paar Sekunden',
-                        ss: '%d Sekunden',
-                        m: processRelativeTime,
-                        mm: '%d Minuten',
-                        h: processRelativeTime,
-                        hh: '%d Stunden',
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        w: processRelativeTime,
-                        ww: '%d Wochen',
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return deCh;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            m: ['eine Minute', 'einer Minute'],
+            h: ['eine Stunde', 'einer Stunde'],
+            d: ['ein Tag', 'einem Tag'],
+            dd: [number + ' Tage', number + ' Tagen'],
+            w: ['eine Woche', 'einer Woche'],
+            M: ['ein Monat', 'einem Monat'],
+            MM: [number + ' Monate', number + ' Monaten'],
+            y: ['ein Jahr', 'einem Jahr'],
+            yy: [number + ' Jahre', number + ' Jahren'],
+        };
+        return withoutSuffix ? format[key][0] : format[key][1];
+    }
 
-        /***/ "./node_modules/moment/locale/de.js":
-        /*!******************************************!*\
+    var deCh = moment.defineLocale('de-ch', {
+        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
+            '_'
+        ),
+        weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY HH:mm',
+            LLLL: 'dddd, D. MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[heute um] LT [Uhr]',
+            sameElse: 'L',
+            nextDay: '[morgen um] LT [Uhr]',
+            nextWeek: 'dddd [um] LT [Uhr]',
+            lastDay: '[gestern um] LT [Uhr]',
+            lastWeek: '[letzten] dddd [um] LT [Uhr]',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: 'vor %s',
+            s: 'ein paar Sekunden',
+            ss: '%d Sekunden',
+            m: processRelativeTime,
+            mm: '%d Minuten',
+            h: processRelativeTime,
+            hh: '%d Stunden',
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            w: processRelativeTime,
+            ww: '%d Wochen',
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return deCh;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/de.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/de.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : German [de]
@@ -101395,1027 +101395,1027 @@ THE SOFTWARE.
 //! author: Menelion Elensúle: https://github.com/Oire
 //! author : Mikolaj Dadela : https://github.com/mik01aj
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        m: ['eine Minute', 'einer Minute'],
-                        h: ['eine Stunde', 'einer Stunde'],
-                        d: ['ein Tag', 'einem Tag'],
-                        dd: [number + ' Tage', number + ' Tagen'],
-                        w: ['eine Woche', 'einer Woche'],
-                        M: ['ein Monat', 'einem Monat'],
-                        MM: [number + ' Monate', number + ' Monaten'],
-                        y: ['ein Jahr', 'einem Jahr'],
-                        yy: [number + ' Jahre', number + ' Jahren'],
-                    };
-                    return withoutSuffix ? format[key][0] : format[key][1];
-                }
-
-                var de = moment.defineLocale('de', {
-                    months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
-                    weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D. MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[heute um] LT [Uhr]',
-                        sameElse: 'L',
-                        nextDay: '[morgen um] LT [Uhr]',
-                        nextWeek: 'dddd [um] LT [Uhr]',
-                        lastDay: '[gestern um] LT [Uhr]',
-                        lastWeek: '[letzten] dddd [um] LT [Uhr]',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: 'vor %s',
-                        s: 'ein paar Sekunden',
-                        ss: '%d Sekunden',
-                        m: processRelativeTime,
-                        mm: '%d Minuten',
-                        h: processRelativeTime,
-                        hh: '%d Stunden',
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        w: processRelativeTime,
-                        ww: '%d Wochen',
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return de;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            m: ['eine Minute', 'einer Minute'],
+            h: ['eine Stunde', 'einer Stunde'],
+            d: ['ein Tag', 'einem Tag'],
+            dd: [number + ' Tage', number + ' Tagen'],
+            w: ['eine Woche', 'einer Woche'],
+            M: ['ein Monat', 'einem Monat'],
+            MM: [number + ' Monate', number + ' Monaten'],
+            y: ['ein Jahr', 'einem Jahr'],
+            yy: [number + ' Jahre', number + ' Jahren'],
+        };
+        return withoutSuffix ? format[key][0] : format[key][1];
+    }
 
-        /***/ "./node_modules/moment/locale/dv.js":
-        /*!******************************************!*\
+    var de = moment.defineLocale('de', {
+        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
+            '_'
+        ),
+        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
+        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY HH:mm',
+            LLLL: 'dddd, D. MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[heute um] LT [Uhr]',
+            sameElse: 'L',
+            nextDay: '[morgen um] LT [Uhr]',
+            nextWeek: 'dddd [um] LT [Uhr]',
+            lastDay: '[gestern um] LT [Uhr]',
+            lastWeek: '[letzten] dddd [um] LT [Uhr]',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: 'vor %s',
+            s: 'ein paar Sekunden',
+            ss: '%d Sekunden',
+            m: processRelativeTime,
+            mm: '%d Minuten',
+            h: processRelativeTime,
+            hh: '%d Stunden',
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            w: processRelativeTime,
+            ww: '%d Wochen',
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return de;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/dv.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/dv.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Maldivian [dv]
 //! author : Jawish Hameed : https://github.com/jawish
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = [
-                        'Þ–Þ¬Þ‚ÞªÞ‡Þ¦ÞƒÞ©',
-                        'ÞŠÞ¬Þ„Þ°ÞƒÞªÞ‡Þ¦ÞƒÞ©',
-                        'Þ‰Þ§ÞƒÞ¨Þ—Þª',
-                        'އޭޕްރީލު',
-                        'Þ‰Þ­',
-                        'Þ–Þ«Þ‚Þ°',
-                        'ޖުލައި',
-                        'އޯގަސްޓު',
-                        'ސެޕްޓެމްބަރު',
-                        'Þ‡Þ®Þ†Þ°Þ“Þ¯Þ„Þ¦ÞƒÞª',
-                        'Þ‚Þ®ÞˆÞ¬Þ‰Þ°Þ„Þ¦ÞƒÞª',
-                        'ޑިސެމްބަރު',
-                    ],
-                    weekdays = [
-                        'އާދިއްތަ',
-                        'Þ€Þ¯Þ‰Þ¦',
-                        'Þ‡Þ¦Þ‚Þ°ÞŽÞ§ÞƒÞ¦',
-                        'Þ„ÞªÞ‹Þ¦',
-                        'ބުރާސްފަތި',
-                        'Þ€ÞªÞ†ÞªÞƒÞª',
-                        'Þ€Þ®Þ‚Þ¨Þ€Þ¨ÞƒÞª',
-                    ];
-
-                var dv = moment.defineLocale('dv', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: weekdays,
-                    weekdaysShort: weekdays,
-                    weekdaysMin: 'Þ‡Þ§Þ‹Þ¨_Þ€Þ¯Þ‰Þ¦_Þ‡Þ¦Þ‚Þ°_Þ„ÞªÞ‹Þ¦_Þ„ÞªÞƒÞ§_Þ€ÞªÞ†Þª_Þ€Þ®Þ‚Þ¨'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'D/M/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /Þ‰Þ†|Þ‰ÞŠ/,
-                    isPM: function (input) {
-                        return 'Þ‰ÞŠ' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'Þ‰Þ†';
-                        } else {
-                            return 'Þ‰ÞŠ';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Þ‰Þ¨Þ‡Þ¦Þ‹Þª] LT',
-                        nextDay: '[Þ‰Þ§Þ‹Þ¦Þ‰Þ§] LT',
-                        nextWeek: 'dddd LT',
-                        lastDay: '[Þ‡Þ¨Þ‡Þ°Þ”Þ¬] LT',
-                        lastWeek: '[ފާއިތުވި] dddd LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'ތެރޭގައި %s',
-                        past: 'Þ†ÞªÞƒÞ¨Þ‚Þ° %s',
-                        s: 'ސިކުންތުކޮޅެއް',
-                        ss: 'd% ސިކުންތު',
-                        m: 'Þ‰Þ¨Þ‚Þ¨Þ“Þ¬Þ‡Þ°',
-                        mm: 'Þ‰Þ¨Þ‚Þ¨Þ“Þª %d',
-                        h: 'ÞŽÞ¦Þ‘Þ¨Þ‡Þ¨ÞƒÞ¬Þ‡Þ°',
-                        hh: 'ÞŽÞ¦Þ‘Þ¨Þ‡Þ¨ÞƒÞª %d',
-                        d: 'Þ‹ÞªÞˆÞ¦Þ€Þ¬Þ‡Þ°',
-                        dd: 'ދުވަސް %d',
-                        M: 'Þ‰Þ¦Þ€Þ¬Þ‡Þ°',
-                        MM: 'މަސް %d',
-                        y: 'Þ‡Þ¦Þ€Þ¦ÞƒÞ¬Þ‡Þ°',
-                        yy: 'Þ‡Þ¦Þ€Þ¦ÞƒÞª %d',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string.replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 7, // Sunday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return dv;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/el.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = [
+            'Þ–Þ¬Þ‚ÞªÞ‡Þ¦ÞƒÞ©',
+            'ÞŠÞ¬Þ„Þ°ÞƒÞªÞ‡Þ¦ÞƒÞ©',
+            'Þ‰Þ§ÞƒÞ¨Þ—Þª',
+            'އޭޕްރީލު',
+            'Þ‰Þ­',
+            'Þ–Þ«Þ‚Þ°',
+            'ޖުލައި',
+            'އޯގަސްޓު',
+            'ސެޕްޓެމްބަރު',
+            'Þ‡Þ®Þ†Þ°Þ“Þ¯Þ„Þ¦ÞƒÞª',
+            'Þ‚Þ®ÞˆÞ¬Þ‰Þ°Þ„Þ¦ÞƒÞª',
+            'ޑިސެމްބަރު',
+        ],
+        weekdays = [
+            'އާދިއްތަ',
+            'Þ€Þ¯Þ‰Þ¦',
+            'Þ‡Þ¦Þ‚Þ°ÞŽÞ§ÞƒÞ¦',
+            'Þ„ÞªÞ‹Þ¦',
+            'ބުރާސްފަތި',
+            'Þ€ÞªÞ†ÞªÞƒÞª',
+            'Þ€Þ®Þ‚Þ¨Þ€Þ¨ÞƒÞª',
+        ];
+
+    var dv = moment.defineLocale('dv', {
+        months: months,
+        monthsShort: months,
+        weekdays: weekdays,
+        weekdaysShort: weekdays,
+        weekdaysMin: 'Þ‡Þ§Þ‹Þ¨_Þ€Þ¯Þ‰Þ¦_Þ‡Þ¦Þ‚Þ°_Þ„ÞªÞ‹Þ¦_Þ„ÞªÞƒÞ§_Þ€ÞªÞ†Þª_Þ€Þ®Þ‚Þ¨'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'D/M/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /Þ‰Þ†|Þ‰ÞŠ/,
+        isPM: function (input) {
+            return 'Þ‰ÞŠ' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'Þ‰Þ†';
+            } else {
+                return 'Þ‰ÞŠ';
+            }
+        },
+        calendar: {
+            sameDay: '[Þ‰Þ¨Þ‡Þ¦Þ‹Þª] LT',
+            nextDay: '[Þ‰Þ§Þ‹Þ¦Þ‰Þ§] LT',
+            nextWeek: 'dddd LT',
+            lastDay: '[Þ‡Þ¨Þ‡Þ°Þ”Þ¬] LT',
+            lastWeek: '[ފާއިތުވި] dddd LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'ތެރޭގައި %s',
+            past: 'Þ†ÞªÞƒÞ¨Þ‚Þ° %s',
+            s: 'ސިކުންތުކޮޅެއް',
+            ss: 'd% ސިކުންތު',
+            m: 'Þ‰Þ¨Þ‚Þ¨Þ“Þ¬Þ‡Þ°',
+            mm: 'Þ‰Þ¨Þ‚Þ¨Þ“Þª %d',
+            h: 'ÞŽÞ¦Þ‘Þ¨Þ‡Þ¨ÞƒÞ¬Þ‡Þ°',
+            hh: 'ÞŽÞ¦Þ‘Þ¨Þ‡Þ¨ÞƒÞª %d',
+            d: 'Þ‹ÞªÞˆÞ¦Þ€Þ¬Þ‡Þ°',
+            dd: 'ދުވަސް %d',
+            M: 'Þ‰Þ¦Þ€Þ¬Þ‡Þ°',
+            MM: 'މަސް %d',
+            y: 'Þ‡Þ¦Þ€Þ¦ÞƒÞ¬Þ‡Þ°',
+            yy: 'Þ‡Þ¦Þ€Þ¦ÞƒÞª %d',
+        },
+        preparse: function (string) {
+            return string.replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string.replace(/,/g, '،');
+        },
+        week: {
+            dow: 7, // Sunday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return dv;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/el.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/el.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Greek [el]
 //! author : Aggelos Karalias : https://github.com/mehiel
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function isFunction(input) {
-                    return (
-                        (typeof Function !== 'undefined' && input instanceof Function) ||
-                        Object.prototype.toString.call(input) === '[object Function]'
-                    );
-                }
-
-                var el = moment.defineLocale('el', {
-                    monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
-                        '_'
-                    ),
-                    monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
-                        '_'
-                    ),
-                    months: function (momentToFormat, format) {
-                        if (!momentToFormat) {
-                            return this._monthsNominativeEl;
-                        } else if (
-                            typeof format === 'string' &&
-                            /D/.test(format.substring(0, format.indexOf('MMMM')))
-                        ) {
-                            // if there is a day number before 'MMMM'
-                            return this._monthsGenitiveEl[momentToFormat.month()];
-                        } else {
-                            return this._monthsNominativeEl[momentToFormat.month()];
-                        }
-                    },
-                    monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
-                    weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
-                    weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours > 11) {
-                            return isLower ? 'μμ' : 'ΜΜ';
-                        } else {
-                            return isLower ? 'πμ' : 'ΠΜ';
-                        }
-                    },
-                    isPM: function (input) {
-                        return (input + '').toLowerCase()[0] === 'μ';
-                    },
-                    meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendarEl: {
-                        sameDay: '[Σήμερα {}] LT',
-                        nextDay: '[Αύριο {}] LT',
-                        nextWeek: 'dddd [{}] LT',
-                        lastDay: '[Χθες {}] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 6:
-                                    return '[το προηγούμενο] dddd [{}] LT';
-                                default:
-                                    return '[την προηγούμενη] dddd [{}] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    calendar: function (key, mom) {
-                        var output = this._calendarEl[key],
-                            hours = mom && mom.hours();
-                        if (isFunction(output)) {
-                            output = output.apply(mom);
-                        }
-                        return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
-                    },
-                    relativeTime: {
-                        future: 'σε %s',
-                        past: '%s πριν',
-                        s: 'λίγα δευτερόλεπτα',
-                        ss: '%d δευτερόλεπτα',
-                        m: 'ένα λεπτό',
-                        mm: '%d λεπτά',
-                        h: 'μία ώρα',
-                        hh: '%d ώρες',
-                        d: 'μία μέρα',
-                        dd: '%d μέρες',
-                        M: 'ένας μήνας',
-                        MM: '%d μήνες',
-                        y: 'ένας χρόνος',
-                        yy: '%d χρόνια',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}η/,
-                    ordinal: '%dη',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4st is the first week of the year.
-                    },
-                });
-
-                return el;
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-            })));
+    //! moment.js locale configuration
 
+    function isFunction(input) {
+        return (
+            (typeof Function !== 'undefined' && input instanceof Function) ||
+            Object.prototype.toString.call(input) === '[object Function]'
+        );
+    }
 
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-au.js":
-        /*!*********************************************!*\
+    var el = moment.defineLocale('el', {
+        monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
+            '_'
+        ),
+        monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
+            '_'
+        ),
+        months: function (momentToFormat, format) {
+            if (!momentToFormat) {
+                return this._monthsNominativeEl;
+            } else if (
+                typeof format === 'string' &&
+                /D/.test(format.substring(0, format.indexOf('MMMM')))
+            ) {
+                // if there is a day number before 'MMMM'
+                return this._monthsGenitiveEl[momentToFormat.month()];
+            } else {
+                return this._monthsNominativeEl[momentToFormat.month()];
+            }
+        },
+        monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
+        weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
+            '_'
+        ),
+        weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
+        weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
+        meridiem: function (hours, minutes, isLower) {
+            if (hours > 11) {
+                return isLower ? 'μμ' : 'ΜΜ';
+            } else {
+                return isLower ? 'πμ' : 'ΠΜ';
+            }
+        },
+        isPM: function (input) {
+            return (input + '').toLowerCase()[0] === 'μ';
+        },
+        meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendarEl: {
+            sameDay: '[Σήμερα {}] LT',
+            nextDay: '[Αύριο {}] LT',
+            nextWeek: 'dddd [{}] LT',
+            lastDay: '[Χθες {}] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 6:
+                        return '[το προηγούμενο] dddd [{}] LT';
+                    default:
+                        return '[την προηγούμενη] dddd [{}] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        calendar: function (key, mom) {
+            var output = this._calendarEl[key],
+                hours = mom && mom.hours();
+            if (isFunction(output)) {
+                output = output.apply(mom);
+            }
+            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
+        },
+        relativeTime: {
+            future: 'σε %s',
+            past: '%s πριν',
+            s: 'λίγα δευτερόλεπτα',
+            ss: '%d δευτερόλεπτα',
+            m: 'ένα λεπτό',
+            mm: '%d λεπτά',
+            h: 'μία ώρα',
+            hh: '%d ώρες',
+            d: 'μία μέρα',
+            dd: '%d μέρες',
+            M: 'ένας μήνας',
+            MM: '%d μήνες',
+            y: 'ένας χρόνος',
+            yy: '%d χρόνια',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}η/,
+        ordinal: '%dη',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4st is the first week of the year.
+        },
+    });
+
+    return el;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-au.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-au.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (Australia) [en-au]
 //! author : Jared Morse : https://github.com/jarcoal
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enAu = moment.defineLocale('en-au', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return enAu;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-ca.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enAu = moment.defineLocale('en-au', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return enAu;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-ca.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-ca.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (Canada) [en-ca]
 //! author : Jonathan Abourbih : https://github.com/jonbca
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enCa = moment.defineLocale('en-ca', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'YYYY-MM-DD',
-                        LL: 'MMMM D, YYYY',
-                        LLL: 'MMMM D, YYYY h:mm A',
-                        LLLL: 'dddd, MMMM D, YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                });
-
-                return enCa;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-gb.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enCa = moment.defineLocale('en-ca', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'YYYY-MM-DD',
+            LL: 'MMMM D, YYYY',
+            LLL: 'MMMM D, YYYY h:mm A',
+            LLLL: 'dddd, MMMM D, YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+    });
+
+    return enCa;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-gb.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-gb.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (United Kingdom) [en-gb]
 //! author : Chris Gedrim : https://github.com/chrisgedrim
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enGb = moment.defineLocale('en-gb', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return enGb;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-ie.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enGb = moment.defineLocale('en-gb', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return enGb;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-ie.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-ie.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (Ireland) [en-ie]
 //! author : Chris Cartlidge : https://github.com/chriscartlidge
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enIe = moment.defineLocale('en-ie', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return enIe;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-il.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enIe = moment.defineLocale('en-ie', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return enIe;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-il.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-il.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (Israel) [en-il]
 //! author : Chris Gedrim : https://github.com/chrisgedrim
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enIl = moment.defineLocale('en-il', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                });
-
-                return enIl;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-in.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enIl = moment.defineLocale('en-il', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+    });
+
+    return enIl;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-in.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-in.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (India) [en-in]
 //! author : Jatin Agrawal : https://github.com/jatinag22
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enIn = moment.defineLocale('en-in', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 1st is the first week of the year.
-                    },
-                });
-
-                return enIn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-nz.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enIn = moment.defineLocale('en-in', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 1st is the first week of the year.
+        },
+    });
+
+    return enIn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-nz.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-nz.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (New Zealand) [en-nz]
 //! author : Luke McGregor : https://github.com/lukemcgregor
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enNz = moment.defineLocale('en-nz', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return enNz;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/en-sg.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enNz = moment.defineLocale('en-nz', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return enNz;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/en-sg.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/en-sg.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : English (Singapore) [en-sg]
 //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var enSg = moment.defineLocale('en-sg', {
-                    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
-                    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return enSg;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/eo.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var enSg = moment.defineLocale('en-sg', {
+        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Today at] LT',
+            nextDay: '[Tomorrow at] LT',
+            nextWeek: 'dddd [at] LT',
+            lastDay: '[Yesterday at] LT',
+            lastWeek: '[Last] dddd [at] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'in %s',
+            past: '%s ago',
+            s: 'a few seconds',
+            ss: '%d seconds',
+            m: 'a minute',
+            mm: '%d minutes',
+            h: 'an hour',
+            hh: '%d hours',
+            d: 'a day',
+            dd: '%d days',
+            M: 'a month',
+            MM: '%d months',
+            y: 'a year',
+            yy: '%d years',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return enSg;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/eo.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/eo.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Esperanto [eo]
@@ -102424,2350 +102424,2350 @@ THE SOFTWARE.
 //! comment : miestasmia corrected the translation by colindean
 //! comment : Vivakvo corrected the translation by colindean and miestasmia
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var eo = moment.defineLocale('eo', {
-                    months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aÅ­gusto_septembro_oktobro_novembro_decembro'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aÅ­g_sept_okt_nov_dec'.split('_'),
-                    weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
-                    weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
-                    weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: '[la] D[-an de] MMMM, YYYY',
-                        LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
-                        LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
-                        llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
-                    },
-                    meridiemParse: /[ap]\.t\.m/i,
-                    isPM: function (input) {
-                        return input.charAt(0).toLowerCase() === 'p';
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours > 11) {
-                            return isLower ? 'p.t.m.' : 'P.T.M.';
-                        } else {
-                            return isLower ? 'a.t.m.' : 'A.T.M.';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[HodiaÅ­ je] LT',
-                        nextDay: '[MorgaÅ­ je] LT',
-                        nextWeek: 'dddd[n je] LT',
-                        lastDay: '[HieraÅ­ je] LT',
-                        lastWeek: '[pasintan] dddd[n je] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'post %s',
-                        past: 'antaÅ­ %s',
-                        s: 'kelkaj sekundoj',
-                        ss: '%d sekundoj',
-                        m: 'unu minuto',
-                        mm: '%d minutoj',
-                        h: 'unu horo',
-                        hh: '%d horoj',
-                        d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
-                        dd: '%d tagoj',
-                        M: 'unu monato',
-                        MM: '%d monatoj',
-                        y: 'unu jaro',
-                        yy: '%d jaroj',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}a/,
-                    ordinal: '%da',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return eo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/es-do.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var eo = moment.defineLocale('eo', {
+        months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aÅ­gusto_septembro_oktobro_novembro_decembro'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aÅ­g_sept_okt_nov_dec'.split('_'),
+        weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
+        weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
+        weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: '[la] D[-an de] MMMM, YYYY',
+            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
+            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
+            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
+        },
+        meridiemParse: /[ap]\.t\.m/i,
+        isPM: function (input) {
+            return input.charAt(0).toLowerCase() === 'p';
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours > 11) {
+                return isLower ? 'p.t.m.' : 'P.T.M.';
+            } else {
+                return isLower ? 'a.t.m.' : 'A.T.M.';
+            }
+        },
+        calendar: {
+            sameDay: '[HodiaÅ­ je] LT',
+            nextDay: '[MorgaÅ­ je] LT',
+            nextWeek: 'dddd[n je] LT',
+            lastDay: '[HieraÅ­ je] LT',
+            lastWeek: '[pasintan] dddd[n je] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'post %s',
+            past: 'antaÅ­ %s',
+            s: 'kelkaj sekundoj',
+            ss: '%d sekundoj',
+            m: 'unu minuto',
+            mm: '%d minutoj',
+            h: 'unu horo',
+            hh: '%d horoj',
+            d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
+            dd: '%d tagoj',
+            M: 'unu monato',
+            MM: '%d monatoj',
+            y: 'unu jaro',
+            yy: '%d jaroj',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}a/,
+        ordinal: '%da',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return eo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/es-do.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/es-do.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Spanish (Dominican Republic) [es-do]
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
-                        '_'
-                    ),
-                    monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
-                    monthsParse = [
-                        /^ene/i,
-                        /^feb/i,
-                        /^mar/i,
-                        /^abr/i,
-                        /^may/i,
-                        /^jun/i,
-                        /^jul/i,
-                        /^ago/i,
-                        /^sep/i,
-                        /^oct/i,
-                        /^nov/i,
-                        /^dic/i,
-                    ],
-                    monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
-
-                var esDo = moment.defineLocale('es-do', {
-                    months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortDot;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShort[m.month()];
-                        } else {
-                            return monthsShortDot[m.month()];
-                        }
-                    },
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
-                    monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
-                    weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
-                    weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY h:mm A',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[el] dddd [pasado a la' +
-                                (this.hours() !== 1 ? 's' : '') +
-                                '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'en %s',
-                        past: 'hace %s',
-                        s: 'unos segundos',
-                        ss: '%d segundos',
-                        m: 'un minuto',
-                        mm: '%d minutos',
-                        h: 'una hora',
-                        hh: '%d horas',
-                        d: 'un día',
-                        dd: '%d días',
-                        w: 'una semana',
-                        ww: '%d semanas',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un año',
-                        yy: '%d años',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return esDo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/es-mx.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
+            '_'
+        ),
+        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
+        monthsParse = [
+            /^ene/i,
+            /^feb/i,
+            /^mar/i,
+            /^abr/i,
+            /^may/i,
+            /^jun/i,
+            /^jul/i,
+            /^ago/i,
+            /^sep/i,
+            /^oct/i,
+            /^nov/i,
+            /^dic/i,
+        ],
+        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+    var esDo = moment.defineLocale('es-do', {
+        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortDot;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShort[m.month()];
+            } else {
+                return monthsShortDot[m.month()];
+            }
+        },
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY h:mm A',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextDay: function () {
+                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastDay: function () {
+                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[el] dddd [pasado a la' +
+                    (this.hours() !== 1 ? 's' : '') +
+                    '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'en %s',
+            past: 'hace %s',
+            s: 'unos segundos',
+            ss: '%d segundos',
+            m: 'un minuto',
+            mm: '%d minutos',
+            h: 'una hora',
+            hh: '%d horas',
+            d: 'un día',
+            dd: '%d días',
+            w: 'una semana',
+            ww: '%d semanas',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un año',
+            yy: '%d años',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return esDo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/es-mx.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/es-mx.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Spanish (Mexico) [es-mx]
 //! author : JC Franco : https://github.com/jcfranco
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
-                        '_'
-                    ),
-                    monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
-                    monthsParse = [
-                        /^ene/i,
-                        /^feb/i,
-                        /^mar/i,
-                        /^abr/i,
-                        /^may/i,
-                        /^jun/i,
-                        /^jul/i,
-                        /^ago/i,
-                        /^sep/i,
-                        /^oct/i,
-                        /^nov/i,
-                        /^dic/i,
-                    ],
-                    monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
-
-                var esMx = moment.defineLocale('es-mx', {
-                    months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortDot;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShort[m.month()];
-                        } else {
-                            return monthsShortDot[m.month()];
-                        }
-                    },
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
-                    monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
-                    weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
-                    weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY H:mm',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[el] dddd [pasado a la' +
-                                (this.hours() !== 1 ? 's' : '') +
-                                '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'en %s',
-                        past: 'hace %s',
-                        s: 'unos segundos',
-                        ss: '%d segundos',
-                        m: 'un minuto',
-                        mm: '%d minutos',
-                        h: 'una hora',
-                        hh: '%d horas',
-                        d: 'un día',
-                        dd: '%d días',
-                        w: 'una semana',
-                        ww: '%d semanas',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un año',
-                        yy: '%d años',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                    invalidDate: 'Fecha inválida',
-                });
-
-                return esMx;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/es-us.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
+            '_'
+        ),
+        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
+        monthsParse = [
+            /^ene/i,
+            /^feb/i,
+            /^mar/i,
+            /^abr/i,
+            /^may/i,
+            /^jun/i,
+            /^jul/i,
+            /^ago/i,
+            /^sep/i,
+            /^oct/i,
+            /^nov/i,
+            /^dic/i,
+        ],
+        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+    var esMx = moment.defineLocale('es-mx', {
+        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortDot;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShort[m.month()];
+            } else {
+                return monthsShortDot[m.month()];
+            }
+        },
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY H:mm',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextDay: function () {
+                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastDay: function () {
+                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[el] dddd [pasado a la' +
+                    (this.hours() !== 1 ? 's' : '') +
+                    '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'en %s',
+            past: 'hace %s',
+            s: 'unos segundos',
+            ss: '%d segundos',
+            m: 'un minuto',
+            mm: '%d minutos',
+            h: 'una hora',
+            hh: '%d horas',
+            d: 'un día',
+            dd: '%d días',
+            w: 'una semana',
+            ww: '%d semanas',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un año',
+            yy: '%d años',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+        invalidDate: 'Fecha inválida',
+    });
+
+    return esMx;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/es-us.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/es-us.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Spanish (United States) [es-us]
 //! author : bustta : https://github.com/bustta
 //! author : chrisrodz : https://github.com/chrisrodz
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
-                        '_'
-                    ),
-                    monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
-                    monthsParse = [
-                        /^ene/i,
-                        /^feb/i,
-                        /^mar/i,
-                        /^abr/i,
-                        /^may/i,
-                        /^jun/i,
-                        /^jul/i,
-                        /^ago/i,
-                        /^sep/i,
-                        /^oct/i,
-                        /^nov/i,
-                        /^dic/i,
-                    ],
-                    monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
-
-                var esUs = moment.defineLocale('es-us', {
-                    months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortDot;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShort[m.month()];
-                        } else {
-                            return monthsShortDot[m.month()];
-                        }
-                    },
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
-                    monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
-                    weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
-                    weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'MM/DD/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY h:mm A',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[el] dddd [pasado a la' +
-                                (this.hours() !== 1 ? 's' : '') +
-                                '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'en %s',
-                        past: 'hace %s',
-                        s: 'unos segundos',
-                        ss: '%d segundos',
-                        m: 'un minuto',
-                        mm: '%d minutos',
-                        h: 'una hora',
-                        hh: '%d horas',
-                        d: 'un día',
-                        dd: '%d días',
-                        w: 'una semana',
-                        ww: '%d semanas',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un año',
-                        yy: '%d años',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
-
-                return esUs;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/es.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
+            '_'
+        ),
+        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
+        monthsParse = [
+            /^ene/i,
+            /^feb/i,
+            /^mar/i,
+            /^abr/i,
+            /^may/i,
+            /^jun/i,
+            /^jul/i,
+            /^ago/i,
+            /^sep/i,
+            /^oct/i,
+            /^nov/i,
+            /^dic/i,
+        ],
+        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+    var esUs = moment.defineLocale('es-us', {
+        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortDot;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShort[m.month()];
+            } else {
+                return monthsShortDot[m.month()];
+            }
+        },
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'MM/DD/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY h:mm A',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextDay: function () {
+                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastDay: function () {
+                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[el] dddd [pasado a la' +
+                    (this.hours() !== 1 ? 's' : '') +
+                    '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'en %s',
+            past: 'hace %s',
+            s: 'unos segundos',
+            ss: '%d segundos',
+            m: 'un minuto',
+            mm: '%d minutos',
+            h: 'una hora',
+            hh: '%d horas',
+            d: 'un día',
+            dd: '%d días',
+            w: 'una semana',
+            ww: '%d semanas',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un año',
+            yy: '%d años',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
+
+    return esUs;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/es.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/es.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Spanish [es]
 //! author : Julio Napurí : https://github.com/julionc
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
-                        '_'
-                    ),
-                    monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
-                    monthsParse = [
-                        /^ene/i,
-                        /^feb/i,
-                        /^mar/i,
-                        /^abr/i,
-                        /^may/i,
-                        /^jun/i,
-                        /^jul/i,
-                        /^ago/i,
-                        /^sep/i,
-                        /^oct/i,
-                        /^nov/i,
-                        /^dic/i,
-                    ],
-                    monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
-
-                var es = moment.defineLocale('es', {
-                    months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortDot;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShort[m.month()];
-                        } else {
-                            return monthsShortDot[m.month()];
-                        }
-                    },
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
-                    monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
-                    weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
-                    weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY H:mm',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[el] dddd [pasado a la' +
-                                (this.hours() !== 1 ? 's' : '') +
-                                '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'en %s',
-                        past: 'hace %s',
-                        s: 'unos segundos',
-                        ss: '%d segundos',
-                        m: 'un minuto',
-                        mm: '%d minutos',
-                        h: 'una hora',
-                        hh: '%d horas',
-                        d: 'un día',
-                        dd: '%d días',
-                        w: 'una semana',
-                        ww: '%d semanas',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un año',
-                        yy: '%d años',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                    invalidDate: 'Fecha inválida',
-                });
-
-                return es;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/et.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
+            '_'
+        ),
+        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
+        monthsParse = [
+            /^ene/i,
+            /^feb/i,
+            /^mar/i,
+            /^abr/i,
+            /^may/i,
+            /^jun/i,
+            /^jul/i,
+            /^ago/i,
+            /^sep/i,
+            /^oct/i,
+            /^nov/i,
+            /^dic/i,
+        ],
+        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+    var es = moment.defineLocale('es', {
+        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortDot;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShort[m.month()];
+            } else {
+                return monthsShortDot[m.month()];
+            }
+        },
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY H:mm',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextDay: function () {
+                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastDay: function () {
+                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[el] dddd [pasado a la' +
+                    (this.hours() !== 1 ? 's' : '') +
+                    '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'en %s',
+            past: 'hace %s',
+            s: 'unos segundos',
+            ss: '%d segundos',
+            m: 'un minuto',
+            mm: '%d minutos',
+            h: 'una hora',
+            hh: '%d horas',
+            d: 'un día',
+            dd: '%d días',
+            w: 'una semana',
+            ww: '%d semanas',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un año',
+            yy: '%d años',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+        invalidDate: 'Fecha inválida',
+    });
+
+    return es;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/et.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/et.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Estonian [et]
 //! author : Henry Kehlmann : https://github.com/madhenry
 //! improvements : Illimar Tambek : https://github.com/ragulka
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
-                        ss: [number + 'sekundi', number + 'sekundit'],
-                        m: ['ühe minuti', 'üks minut'],
-                        mm: [number + ' minuti', number + ' minutit'],
-                        h: ['ühe tunni', 'tund aega', 'üks tund'],
-                        hh: [number + ' tunni', number + ' tundi'],
-                        d: ['ühe päeva', 'üks päev'],
-                        M: ['kuu aja', 'kuu aega', 'üks kuu'],
-                        MM: [number + ' kuu', number + ' kuud'],
-                        y: ['ühe aasta', 'aasta', 'üks aasta'],
-                        yy: [number + ' aasta', number + ' aastat'],
-                    };
-                    if (withoutSuffix) {
-                        return format[key][2] ? format[key][2] : format[key][1];
-                    }
-                    return isFuture ? format[key][0] : format[key][1];
-                }
-
-                var et = moment.defineLocale('et', {
-                    months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
-                        '_'
-                    ),
-                    weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
-                    weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Täna,] LT',
-                        nextDay: '[Homme,] LT',
-                        nextWeek: '[Järgmine] dddd LT',
-                        lastDay: '[Eile,] LT',
-                        lastWeek: '[Eelmine] dddd LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s pärast',
-                        past: '%s tagasi',
-                        s: processRelativeTime,
-                        ss: processRelativeTime,
-                        m: processRelativeTime,
-                        mm: processRelativeTime,
-                        h: processRelativeTime,
-                        hh: processRelativeTime,
-                        d: processRelativeTime,
-                        dd: '%d päeva',
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return et;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
+            ss: [number + 'sekundi', number + 'sekundit'],
+            m: ['ühe minuti', 'üks minut'],
+            mm: [number + ' minuti', number + ' minutit'],
+            h: ['ühe tunni', 'tund aega', 'üks tund'],
+            hh: [number + ' tunni', number + ' tundi'],
+            d: ['ühe päeva', 'üks päev'],
+            M: ['kuu aja', 'kuu aega', 'üks kuu'],
+            MM: [number + ' kuu', number + ' kuud'],
+            y: ['ühe aasta', 'aasta', 'üks aasta'],
+            yy: [number + ' aasta', number + ' aastat'],
+        };
+        if (withoutSuffix) {
+            return format[key][2] ? format[key][2] : format[key][1];
+        }
+        return isFuture ? format[key][0] : format[key][1];
+    }
 
-        /***/ "./node_modules/moment/locale/eu.js":
-        /*!******************************************!*\
+    var et = moment.defineLocale('et', {
+        months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
+            '_'
+        ),
+        monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
+            '_'
+        ),
+        weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
+            '_'
+        ),
+        weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
+        weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd, D. MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[Täna,] LT',
+            nextDay: '[Homme,] LT',
+            nextWeek: '[Järgmine] dddd LT',
+            lastDay: '[Eile,] LT',
+            lastWeek: '[Eelmine] dddd LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s pärast',
+            past: '%s tagasi',
+            s: processRelativeTime,
+            ss: processRelativeTime,
+            m: processRelativeTime,
+            mm: processRelativeTime,
+            h: processRelativeTime,
+            hh: processRelativeTime,
+            d: processRelativeTime,
+            dd: '%d päeva',
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return et;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/eu.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/eu.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Basque [eu]
 //! author : Eneko Illarramendi : https://github.com/eillarra
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var eu = moment.defineLocale('eu', {
-                    months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
-                        '_'
-                    ),
-                    monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
-                    weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'YYYY[ko] MMMM[ren] D[a]',
-                        LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
-                        LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
-                        l: 'YYYY-M-D',
-                        ll: 'YYYY[ko] MMM D[a]',
-                        lll: 'YYYY[ko] MMM D[a] HH:mm',
-                        llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[gaur] LT[etan]',
-                        nextDay: '[bihar] LT[etan]',
-                        nextWeek: 'dddd LT[etan]',
-                        lastDay: '[atzo] LT[etan]',
-                        lastWeek: '[aurreko] dddd LT[etan]',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s barru',
-                        past: 'duela %s',
-                        s: 'segundo batzuk',
-                        ss: '%d segundo',
-                        m: 'minutu bat',
-                        mm: '%d minutu',
-                        h: 'ordu bat',
-                        hh: '%d ordu',
-                        d: 'egun bat',
-                        dd: '%d egun',
-                        M: 'hilabete bat',
-                        MM: '%d hilabete',
-                        y: 'urte bat',
-                        yy: '%d urte',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return eu;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/fa.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var eu = moment.defineLocale('eu', {
+        months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
+            '_'
+        ),
+        monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
+            '_'
+        ),
+        weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
+        weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'YYYY[ko] MMMM[ren] D[a]',
+            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
+            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
+            l: 'YYYY-M-D',
+            ll: 'YYYY[ko] MMM D[a]',
+            lll: 'YYYY[ko] MMM D[a] HH:mm',
+            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
+        },
+        calendar: {
+            sameDay: '[gaur] LT[etan]',
+            nextDay: '[bihar] LT[etan]',
+            nextWeek: 'dddd LT[etan]',
+            lastDay: '[atzo] LT[etan]',
+            lastWeek: '[aurreko] dddd LT[etan]',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s barru',
+            past: 'duela %s',
+            s: 'segundo batzuk',
+            ss: '%d segundo',
+            m: 'minutu bat',
+            mm: '%d minutu',
+            h: 'ordu bat',
+            hh: '%d ordu',
+            d: 'egun bat',
+            dd: '%d egun',
+            M: 'hilabete bat',
+            MM: '%d hilabete',
+            y: 'urte bat',
+            yy: '%d urte',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return eu;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/fa.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/fa.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Persian [fa]
 //! author : Ebrahim Byagowi : https://github.com/ebraminio
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: 'Û±',
-                        2: 'Û²',
-                        3: 'Û³',
-                        4: 'Û´',
-                        5: 'Ûµ',
-                        6: 'Û¶',
-                        7: 'Û·',
-                        8: 'Û¸',
-                        9: 'Û¹',
-                        0: 'Û°',
-                    },
-                    numberMap = {
-                        'Û±': '1',
-                        'Û²': '2',
-                        'Û³': '3',
-                        'Û´': '4',
-                        'Ûµ': '5',
-                        'Û¶': '6',
-                        'Û·': '7',
-                        'Û¸': '8',
-                        'Û¹': '9',
-                        'Û°': '0',
-                    };
-
-                var fa = moment.defineLocale('fa', {
-                    months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
-                        '_'
-                    ),
-                    weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
-                        '_'
-                    ),
-                    weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /قبل از ظهر|بعد از ظهر/,
-                    isPM: function (input) {
-                        return /بعد از ظهر/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'قبل از ظهر';
-                        } else {
-                            return 'بعد از ظهر';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[امروز ساعت] LT',
-                        nextDay: '[فردا ساعت] LT',
-                        nextWeek: 'dddd [ساعت] LT',
-                        lastDay: '[دیروز ساعت] LT',
-                        lastWeek: 'dddd [پیش] [ساعت] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'در %s',
-                        past: '%s پیش',
-                        s: 'چند ثانیه',
-                        ss: '%d ثانیه',
-                        m: 'یک دقیقه',
-                        mm: '%d دقیقه',
-                        h: 'یک ساعت',
-                        hh: '%d ساعت',
-                        d: 'یک روز',
-                        dd: '%d روز',
-                        M: 'یک ماه',
-                        MM: '%d ماه',
-                        y: 'یک سال',
-                        yy: '%d سال',
-                    },
-                    preparse: function (string) {
-                        return string
-                            .replace(/[Û°-Û¹]/g, function (match) {
-                                return numberMap[match];
-                            })
-                            .replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string
-                            .replace(/\d/g, function (match) {
-                                return symbolMap[match];
-                            })
-                            .replace(/,/g, '،');
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}Ù…/,
-                    ordinal: '%dÙ…',
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return fa;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/fi.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: 'Û±',
+            2: 'Û²',
+            3: 'Û³',
+            4: 'Û´',
+            5: 'Ûµ',
+            6: 'Û¶',
+            7: 'Û·',
+            8: 'Û¸',
+            9: 'Û¹',
+            0: 'Û°',
+        },
+        numberMap = {
+            'Û±': '1',
+            'Û²': '2',
+            'Û³': '3',
+            'Û´': '4',
+            'Ûµ': '5',
+            'Û¶': '6',
+            'Û·': '7',
+            'Û¸': '8',
+            'Û¹': '9',
+            'Û°': '0',
+        };
+
+    var fa = moment.defineLocale('fa', {
+        months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
+            '_'
+        ),
+        monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
+            '_'
+        ),
+        weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
+            '_'
+        ),
+        weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
+            '_'
+        ),
+        weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /قبل از ظهر|بعد از ظهر/,
+        isPM: function (input) {
+            return /بعد از ظهر/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'قبل از ظهر';
+            } else {
+                return 'بعد از ظهر';
+            }
+        },
+        calendar: {
+            sameDay: '[امروز ساعت] LT',
+            nextDay: '[فردا ساعت] LT',
+            nextWeek: 'dddd [ساعت] LT',
+            lastDay: '[دیروز ساعت] LT',
+            lastWeek: 'dddd [پیش] [ساعت] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'در %s',
+            past: '%s پیش',
+            s: 'چند ثانیه',
+            ss: '%d ثانیه',
+            m: 'یک دقیقه',
+            mm: '%d دقیقه',
+            h: 'یک ساعت',
+            hh: '%d ساعت',
+            d: 'یک روز',
+            dd: '%d روز',
+            M: 'یک ماه',
+            MM: '%d ماه',
+            y: 'یک سال',
+            yy: '%d سال',
+        },
+        preparse: function (string) {
+            return string
+                .replace(/[Û°-Û¹]/g, function (match) {
+                    return numberMap[match];
+                })
+                .replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string
+                .replace(/\d/g, function (match) {
+                    return symbolMap[match];
+                })
+                .replace(/,/g, '،');
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}Ù…/,
+        ordinal: '%dÙ…',
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return fa;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/fi.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/fi.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Finnish [fi]
 //! author : Tarmo Aidantausta : https://github.com/bleadof
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
-                        ' '
-                    ),
-                    numbersFuture = [
-                        'nolla',
-                        'yhden',
-                        'kahden',
-                        'kolmen',
-                        'neljän',
-                        'viiden',
-                        'kuuden',
-                        numbersPast[7],
-                        numbersPast[8],
-                        numbersPast[9],
-                    ];
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var result = '';
-                    switch (key) {
-                        case 's':
-                            return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
-                        case 'ss':
-                            result = isFuture ? 'sekunnin' : 'sekuntia';
-                            break;
-                        case 'm':
-                            return isFuture ? 'minuutin' : 'minuutti';
-                        case 'mm':
-                            result = isFuture ? 'minuutin' : 'minuuttia';
-                            break;
-                        case 'h':
-                            return isFuture ? 'tunnin' : 'tunti';
-                        case 'hh':
-                            result = isFuture ? 'tunnin' : 'tuntia';
-                            break;
-                        case 'd':
-                            return isFuture ? 'päivän' : 'päivä';
-                        case 'dd':
-                            result = isFuture ? 'päivän' : 'päivää';
-                            break;
-                        case 'M':
-                            return isFuture ? 'kuukauden' : 'kuukausi';
-                        case 'MM':
-                            result = isFuture ? 'kuukauden' : 'kuukautta';
-                            break;
-                        case 'y':
-                            return isFuture ? 'vuoden' : 'vuosi';
-                        case 'yy':
-                            result = isFuture ? 'vuoden' : 'vuotta';
-                            break;
-                    }
-                    result = verbalNumber(number, isFuture) + ' ' + result;
-                    return result;
-                }
-                function verbalNumber(number, isFuture) {
-                    return number < 10
-                        ? isFuture
-                            ? numbersFuture[number]
-                            : numbersPast[number]
-                        : number;
-                }
-
-                var fi = moment.defineLocale('fi', {
-                    months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
-                        '_'
-                    ),
-                    monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
-                        '_'
-                    ),
-                    weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
-                    weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'Do MMMM[ta] YYYY',
-                        LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
-                        LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
-                        l: 'D.M.YYYY',
-                        ll: 'Do MMM YYYY',
-                        lll: 'Do MMM YYYY, [klo] HH.mm',
-                        llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
-                    },
-                    calendar: {
-                        sameDay: '[tänään] [klo] LT',
-                        nextDay: '[huomenna] [klo] LT',
-                        nextWeek: 'dddd [klo] LT',
-                        lastDay: '[eilen] [klo] LT',
-                        lastWeek: '[viime] dddd[na] [klo] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s päästä',
-                        past: '%s sitten',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return fi;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
+            ' '
+        ),
+        numbersFuture = [
+            'nolla',
+            'yhden',
+            'kahden',
+            'kolmen',
+            'neljän',
+            'viiden',
+            'kuuden',
+            numbersPast[7],
+            numbersPast[8],
+            numbersPast[9],
+        ];
+    function translate(number, withoutSuffix, key, isFuture) {
+        var result = '';
+        switch (key) {
+            case 's':
+                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
+            case 'ss':
+                result = isFuture ? 'sekunnin' : 'sekuntia';
+                break;
+            case 'm':
+                return isFuture ? 'minuutin' : 'minuutti';
+            case 'mm':
+                result = isFuture ? 'minuutin' : 'minuuttia';
+                break;
+            case 'h':
+                return isFuture ? 'tunnin' : 'tunti';
+            case 'hh':
+                result = isFuture ? 'tunnin' : 'tuntia';
+                break;
+            case 'd':
+                return isFuture ? 'päivän' : 'päivä';
+            case 'dd':
+                result = isFuture ? 'päivän' : 'päivää';
+                break;
+            case 'M':
+                return isFuture ? 'kuukauden' : 'kuukausi';
+            case 'MM':
+                result = isFuture ? 'kuukauden' : 'kuukautta';
+                break;
+            case 'y':
+                return isFuture ? 'vuoden' : 'vuosi';
+            case 'yy':
+                result = isFuture ? 'vuoden' : 'vuotta';
+                break;
+        }
+        result = verbalNumber(number, isFuture) + ' ' + result;
+        return result;
+    }
+    function verbalNumber(number, isFuture) {
+        return number < 10
+            ? isFuture
+                ? numbersFuture[number]
+                : numbersPast[number]
+            : number;
+    }
 
-        /***/ "./node_modules/moment/locale/fil.js":
-        /*!*******************************************!*\
+    var fi = moment.defineLocale('fi', {
+        months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
+            '_'
+        ),
+        monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
+            '_'
+        ),
+        weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
+            '_'
+        ),
+        weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
+        weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD.MM.YYYY',
+            LL: 'Do MMMM[ta] YYYY',
+            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
+            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
+            l: 'D.M.YYYY',
+            ll: 'Do MMM YYYY',
+            lll: 'Do MMM YYYY, [klo] HH.mm',
+            llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
+        },
+        calendar: {
+            sameDay: '[tänään] [klo] LT',
+            nextDay: '[huomenna] [klo] LT',
+            nextWeek: 'dddd [klo] LT',
+            lastDay: '[eilen] [klo] LT',
+            lastWeek: '[viime] dddd[na] [klo] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s päästä',
+            past: '%s sitten',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return fi;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/fil.js":
+/*!*******************************************!*\
   !*** ./node_modules/moment/locale/fil.js ***!
   \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Filipino [fil]
 //! author : Dan Hagman : https://github.com/hagmandan
 //! author : Matthew Co : https://github.com/matthewdeeco
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var fil = moment.defineLocale('fil', {
-                    months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
-                    weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
-                    weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'MM/D/YYYY',
-                        LL: 'MMMM D, YYYY',
-                        LLL: 'MMMM D, YYYY HH:mm',
-                        LLLL: 'dddd, MMMM DD, YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: 'LT [ngayong araw]',
-                        nextDay: '[Bukas ng] LT',
-                        nextWeek: 'LT [sa susunod na] dddd',
-                        lastDay: 'LT [kahapon]',
-                        lastWeek: 'LT [noong nakaraang] dddd',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'sa loob ng %s',
-                        past: '%s ang nakalipas',
-                        s: 'ilang segundo',
-                        ss: '%d segundo',
-                        m: 'isang minuto',
-                        mm: '%d minuto',
-                        h: 'isang oras',
-                        hh: '%d oras',
-                        d: 'isang araw',
-                        dd: '%d araw',
-                        M: 'isang buwan',
-                        MM: '%d buwan',
-                        y: 'isang taon',
-                        yy: '%d taon',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}/,
-                    ordinal: function (number) {
-                        return number;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return fil;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/fo.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var fil = moment.defineLocale('fil', {
+        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
+            '_'
+        ),
+        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
+        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
+            '_'
+        ),
+        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
+        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'MM/D/YYYY',
+            LL: 'MMMM D, YYYY',
+            LLL: 'MMMM D, YYYY HH:mm',
+            LLLL: 'dddd, MMMM DD, YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: 'LT [ngayong araw]',
+            nextDay: '[Bukas ng] LT',
+            nextWeek: 'LT [sa susunod na] dddd',
+            lastDay: 'LT [kahapon]',
+            lastWeek: 'LT [noong nakaraang] dddd',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'sa loob ng %s',
+            past: '%s ang nakalipas',
+            s: 'ilang segundo',
+            ss: '%d segundo',
+            m: 'isang minuto',
+            mm: '%d minuto',
+            h: 'isang oras',
+            hh: '%d oras',
+            d: 'isang araw',
+            dd: '%d araw',
+            M: 'isang buwan',
+            MM: '%d buwan',
+            y: 'isang taon',
+            yy: '%d taon',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}/,
+        ordinal: function (number) {
+            return number;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return fil;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/fo.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/fo.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Faroese [fo]
 //! author : Ragnar Johannesen : https://github.com/ragnar123
 //! author : Kristian Sakarisson : https://github.com/sakarisson
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var fo = moment.defineLocale('fo', {
-                    months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
-                    weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
-                    weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D. MMMM, YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Í dag kl.] LT',
-                        nextDay: '[Í morgin kl.] LT',
-                        nextWeek: 'dddd [kl.] LT',
-                        lastDay: '[Í gjár kl.] LT',
-                        lastWeek: '[síðstu] dddd [kl] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'um %s',
-                        past: '%s síðani',
-                        s: 'fá sekund',
-                        ss: '%d sekundir',
-                        m: 'ein minuttur',
-                        mm: '%d minuttir',
-                        h: 'ein tími',
-                        hh: '%d tímar',
-                        d: 'ein dagur',
-                        dd: '%d dagar',
-                        M: 'ein mánaður',
-                        MM: '%d mánaðir',
-                        y: 'eitt ár',
-                        yy: '%d ár',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return fo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/fr-ca.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var fo = moment.defineLocale('fo', {
+        months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
+        weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
+            '_'
+        ),
+        weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
+        weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D. MMMM, YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Í dag kl.] LT',
+            nextDay: '[Í morgin kl.] LT',
+            nextWeek: 'dddd [kl.] LT',
+            lastDay: '[Í gjár kl.] LT',
+            lastWeek: '[síðstu] dddd [kl] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'um %s',
+            past: '%s síðani',
+            s: 'fá sekund',
+            ss: '%d sekundir',
+            m: 'ein minuttur',
+            mm: '%d minuttir',
+            h: 'ein tími',
+            hh: '%d tímar',
+            d: 'ein dagur',
+            dd: '%d dagar',
+            M: 'ein mánaður',
+            MM: '%d mánaðir',
+            y: 'eitt ár',
+            yy: '%d ár',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return fo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/fr-ca.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/fr-ca.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : French (Canada) [fr-ca]
 //! author : Jonathan Abourbih : https://github.com/jonbca
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var frCa = moment.defineLocale('fr-ca', {
-                    months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
-                    weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
-                    weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Aujourd’hui à] LT',
-                        nextDay: '[Demain à] LT',
-                        nextWeek: 'dddd [à] LT',
-                        lastDay: '[Hier à] LT',
-                        lastWeek: 'dddd [dernier à] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dans %s',
-                        past: 'il y a %s',
-                        s: 'quelques secondes',
-                        ss: '%d secondes',
-                        m: 'une minute',
-                        mm: '%d minutes',
-                        h: 'une heure',
-                        hh: '%d heures',
-                        d: 'un jour',
-                        dd: '%d jours',
-                        M: 'un mois',
-                        MM: '%d mois',
-                        y: 'un an',
-                        yy: '%d ans',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            // Words with masculine grammatical gender: mois, trimestre, jour
-                            default:
-                            case 'M':
-                            case 'Q':
-                            case 'D':
-                            case 'DDD':
-                            case 'd':
-                                return number + (number === 1 ? 'er' : 'e');
-
-                            // Words with feminine grammatical gender: semaine
-                            case 'w':
-                            case 'W':
-                                return number + (number === 1 ? 're' : 'e');
-                        }
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var frCa = moment.defineLocale('fr-ca', {
+        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
+            '_'
+        ),
+        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Aujourd’hui à] LT',
+            nextDay: '[Demain à] LT',
+            nextWeek: 'dddd [à] LT',
+            lastDay: '[Hier à] LT',
+            lastWeek: 'dddd [dernier à] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dans %s',
+            past: 'il y a %s',
+            s: 'quelques secondes',
+            ss: '%d secondes',
+            m: 'une minute',
+            mm: '%d minutes',
+            h: 'une heure',
+            hh: '%d heures',
+            d: 'un jour',
+            dd: '%d jours',
+            M: 'un mois',
+            MM: '%d mois',
+            y: 'un an',
+            yy: '%d ans',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                // Words with masculine grammatical gender: mois, trimestre, jour
+                default:
+                case 'M':
+                case 'Q':
+                case 'D':
+                case 'DDD':
+                case 'd':
+                    return number + (number === 1 ? 'er' : 'e');
+
+                // Words with feminine grammatical gender: semaine
+                case 'w':
+                case 'W':
+                    return number + (number === 1 ? 're' : 'e');
+            }
+        },
+    });
 
-                return frCa;
+    return frCa;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/fr-ch.js":
-        /*!*********************************************!*\
+/***/ "./node_modules/moment/locale/fr-ch.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/fr-ch.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : French (Switzerland) [fr-ch]
 //! author : Gaspard Bucher : https://github.com/gaspard
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var frCh = moment.defineLocale('fr-ch', {
-                    months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
-                    weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
-                    weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Aujourd’hui à] LT',
-                        nextDay: '[Demain à] LT',
-                        nextWeek: 'dddd [à] LT',
-                        lastDay: '[Hier à] LT',
-                        lastWeek: 'dddd [dernier à] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dans %s',
-                        past: 'il y a %s',
-                        s: 'quelques secondes',
-                        ss: '%d secondes',
-                        m: 'une minute',
-                        mm: '%d minutes',
-                        h: 'une heure',
-                        hh: '%d heures',
-                        d: 'un jour',
-                        dd: '%d jours',
-                        M: 'un mois',
-                        MM: '%d mois',
-                        y: 'un an',
-                        yy: '%d ans',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            // Words with masculine grammatical gender: mois, trimestre, jour
-                            default:
-                            case 'M':
-                            case 'Q':
-                            case 'D':
-                            case 'DDD':
-                            case 'd':
-                                return number + (number === 1 ? 'er' : 'e');
-
-                            // Words with feminine grammatical gender: semaine
-                            case 'w':
-                            case 'W':
-                                return number + (number === 1 ? 're' : 'e');
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var frCh = moment.defineLocale('fr-ch', {
+        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
+            '_'
+        ),
+        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Aujourd’hui à] LT',
+            nextDay: '[Demain à] LT',
+            nextWeek: 'dddd [à] LT',
+            lastDay: '[Hier à] LT',
+            lastWeek: 'dddd [dernier à] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dans %s',
+            past: 'il y a %s',
+            s: 'quelques secondes',
+            ss: '%d secondes',
+            m: 'une minute',
+            mm: '%d minutes',
+            h: 'une heure',
+            hh: '%d heures',
+            d: 'un jour',
+            dd: '%d jours',
+            M: 'un mois',
+            MM: '%d mois',
+            y: 'un an',
+            yy: '%d ans',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                // Words with masculine grammatical gender: mois, trimestre, jour
+                default:
+                case 'M':
+                case 'Q':
+                case 'D':
+                case 'DDD':
+                case 'd':
+                    return number + (number === 1 ? 'er' : 'e');
+
+                // Words with feminine grammatical gender: semaine
+                case 'w':
+                case 'W':
+                    return number + (number === 1 ? 're' : 'e');
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return frCh;
+    return frCh;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/fr.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/fr.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/fr.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : French [fr]
 //! author : John Fischer : https://github.com/jfroffice
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
-                    monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
-                    monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
-                    monthsParse = [
-                        /^janv/i,
-                        /^févr/i,
-                        /^mars/i,
-                        /^avr/i,
-                        /^mai/i,
-                        /^juin/i,
-                        /^juil/i,
-                        /^août/i,
-                        /^sept/i,
-                        /^oct/i,
-                        /^nov/i,
-                        /^déc/i,
-                    ];
-
-                var fr = moment.defineLocale('fr', {
-                    months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
-                        '_'
-                    ),
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: monthsStrictRegex,
-                    monthsShortStrictRegex: monthsShortStrictRegex,
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
-                    weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
-                    weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Aujourd’hui à] LT',
-                        nextDay: '[Demain à] LT',
-                        nextWeek: 'dddd [à] LT',
-                        lastDay: '[Hier à] LT',
-                        lastWeek: 'dddd [dernier à] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dans %s',
-                        past: 'il y a %s',
-                        s: 'quelques secondes',
-                        ss: '%d secondes',
-                        m: 'une minute',
-                        mm: '%d minutes',
-                        h: 'une heure',
-                        hh: '%d heures',
-                        d: 'un jour',
-                        dd: '%d jours',
-                        w: 'une semaine',
-                        ww: '%d semaines',
-                        M: 'un mois',
-                        MM: '%d mois',
-                        y: 'un an',
-                        yy: '%d ans',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            // TODO: Return 'e' when day of month > 1. Move this case inside
-                            // block for masculine words below.
-                            // See https://github.com/moment/moment/issues/3375
-                            case 'D':
-                                return number + (number === 1 ? 'er' : '');
-
-                            // Words with masculine grammatical gender: mois, trimestre, jour
-                            default:
-                            case 'M':
-                            case 'Q':
-                            case 'DDD':
-                            case 'd':
-                                return number + (number === 1 ? 'er' : 'e');
-
-                            // Words with feminine grammatical gender: semaine
-                            case 'w':
-                            case 'W':
-                                return number + (number === 1 ? 're' : 'e');
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
+        monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
+        monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
+        monthsParse = [
+            /^janv/i,
+            /^févr/i,
+            /^mars/i,
+            /^avr/i,
+            /^mai/i,
+            /^juin/i,
+            /^juil/i,
+            /^août/i,
+            /^sept/i,
+            /^oct/i,
+            /^nov/i,
+            /^déc/i,
+        ];
+
+    var fr = moment.defineLocale('fr', {
+        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
+            '_'
+        ),
+        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
+            '_'
+        ),
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: monthsStrictRegex,
+        monthsShortStrictRegex: monthsShortStrictRegex,
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Aujourd’hui à] LT',
+            nextDay: '[Demain à] LT',
+            nextWeek: 'dddd [à] LT',
+            lastDay: '[Hier à] LT',
+            lastWeek: 'dddd [dernier à] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dans %s',
+            past: 'il y a %s',
+            s: 'quelques secondes',
+            ss: '%d secondes',
+            m: 'une minute',
+            mm: '%d minutes',
+            h: 'une heure',
+            hh: '%d heures',
+            d: 'un jour',
+            dd: '%d jours',
+            w: 'une semaine',
+            ww: '%d semaines',
+            M: 'un mois',
+            MM: '%d mois',
+            y: 'un an',
+            yy: '%d ans',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                // TODO: Return 'e' when day of month > 1. Move this case inside
+                // block for masculine words below.
+                // See https://github.com/moment/moment/issues/3375
+                case 'D':
+                    return number + (number === 1 ? 'er' : '');
+
+                // Words with masculine grammatical gender: mois, trimestre, jour
+                default:
+                case 'M':
+                case 'Q':
+                case 'DDD':
+                case 'd':
+                    return number + (number === 1 ? 'er' : 'e');
+
+                // Words with feminine grammatical gender: semaine
+                case 'w':
+                case 'W':
+                    return number + (number === 1 ? 're' : 'e');
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return fr;
+    return fr;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/fy.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/fy.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/fy.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Frisian [fy]
 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
-                        '_'
-                    ),
-                    monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
-                        '_'
-                    );
-
-                var fy = moment.defineLocale('fy', {
-                    months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortWithDots;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShortWithoutDots[m.month()];
-                        } else {
-                            return monthsShortWithDots[m.month()];
-                        }
-                    },
-                    monthsParseExact: true,
-                    weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
-                    weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD-MM-YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[hjoed om] LT',
-                        nextDay: '[moarn om] LT',
-                        nextWeek: 'dddd [om] LT',
-                        lastDay: '[juster om] LT',
-                        lastWeek: '[ôfrûne] dddd [om] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'oer %s',
-                        past: '%s lyn',
-                        s: 'in pear sekonden',
-                        ss: '%d sekonden',
-                        m: 'ien minút',
-                        mm: '%d minuten',
-                        h: 'ien oere',
-                        hh: '%d oeren',
-                        d: 'ien dei',
-                        dd: '%d dagen',
-                        M: 'ien moanne',
-                        MM: '%d moannen',
-                        y: 'ien jier',
-                        yy: '%d jierren',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
-                    ordinal: function (number) {
-                        return (
-                            number +
-                            (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
-                        );
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
+            '_'
+        ),
+        monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
+            '_'
+        );
+
+    var fy = moment.defineLocale('fy', {
+        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortWithDots;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShortWithoutDots[m.month()];
+            } else {
+                return monthsShortWithDots[m.month()];
+            }
+        },
+        monthsParseExact: true,
+        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
+            '_'
+        ),
+        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
+        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD-MM-YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[hjoed om] LT',
+            nextDay: '[moarn om] LT',
+            nextWeek: 'dddd [om] LT',
+            lastDay: '[juster om] LT',
+            lastWeek: '[ôfrûne] dddd [om] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'oer %s',
+            past: '%s lyn',
+            s: 'in pear sekonden',
+            ss: '%d sekonden',
+            m: 'ien minút',
+            mm: '%d minuten',
+            h: 'ien oere',
+            hh: '%d oeren',
+            d: 'ien dei',
+            dd: '%d dagen',
+            M: 'ien moanne',
+            MM: '%d moannen',
+            y: 'ien jier',
+            yy: '%d jierren',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+        ordinal: function (number) {
+            return (
+                number +
+                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
+            );
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return fy;
+    return fy;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ga.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/ga.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ga.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Irish or Irish Gaelic [ga]
 //! author : André Silva : https://github.com/askpt
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = [
-                        'Eanáir',
-                        'Feabhra',
-                        'Márta',
-                        'Aibreán',
-                        'Bealtaine',
-                        'Meitheamh',
-                        'Iúil',
-                        'Lúnasa',
-                        'Meán Fómhair',
-                        'Deireadh Fómhair',
-                        'Samhain',
-                        'Nollaig',
-                    ],
-                    monthsShort = [
-                        'Ean',
-                        'Feabh',
-                        'Márt',
-                        'Aib',
-                        'Beal',
-                        'Meith',
-                        'Iúil',
-                        'Lún',
-                        'M.F.',
-                        'D.F.',
-                        'Samh',
-                        'Noll',
-                    ],
-                    weekdays = [
-                        'Dé Domhnaigh',
-                        'Dé Luain',
-                        'Dé Máirt',
-                        'Dé Céadaoin',
-                        'Déardaoin',
-                        'Dé hAoine',
-                        'Dé Sathairn',
-                    ],
-                    weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
-                    weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
-
-                var ga = moment.defineLocale('ga', {
-                    months: months,
-                    monthsShort: monthsShort,
-                    monthsParseExact: true,
-                    weekdays: weekdays,
-                    weekdaysShort: weekdaysShort,
-                    weekdaysMin: weekdaysMin,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Inniu ag] LT',
-                        nextDay: '[Amárach ag] LT',
-                        nextWeek: 'dddd [ag] LT',
-                        lastDay: '[Inné ag] LT',
-                        lastWeek: 'dddd [seo caite] [ag] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'i %s',
-                        past: '%s ó shin',
-                        s: 'cúpla soicind',
-                        ss: '%d soicind',
-                        m: 'nóiméad',
-                        mm: '%d nóiméad',
-                        h: 'uair an chloig',
-                        hh: '%d uair an chloig',
-                        d: 'lá',
-                        dd: '%d lá',
-                        M: 'mí',
-                        MM: '%d míonna',
-                        y: 'bliain',
-                        yy: '%d bliain',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
-                    ordinal: function (number) {
-                        var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return ga;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/gd.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = [
+            'Eanáir',
+            'Feabhra',
+            'Márta',
+            'Aibreán',
+            'Bealtaine',
+            'Meitheamh',
+            'Iúil',
+            'Lúnasa',
+            'Meán Fómhair',
+            'Deireadh Fómhair',
+            'Samhain',
+            'Nollaig',
+        ],
+        monthsShort = [
+            'Ean',
+            'Feabh',
+            'Márt',
+            'Aib',
+            'Beal',
+            'Meith',
+            'Iúil',
+            'Lún',
+            'M.F.',
+            'D.F.',
+            'Samh',
+            'Noll',
+        ],
+        weekdays = [
+            'Dé Domhnaigh',
+            'Dé Luain',
+            'Dé Máirt',
+            'Dé Céadaoin',
+            'Déardaoin',
+            'Dé hAoine',
+            'Dé Sathairn',
+        ],
+        weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
+        weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
+
+    var ga = moment.defineLocale('ga', {
+        months: months,
+        monthsShort: monthsShort,
+        monthsParseExact: true,
+        weekdays: weekdays,
+        weekdaysShort: weekdaysShort,
+        weekdaysMin: weekdaysMin,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Inniu ag] LT',
+            nextDay: '[Amárach ag] LT',
+            nextWeek: 'dddd [ag] LT',
+            lastDay: '[Inné ag] LT',
+            lastWeek: 'dddd [seo caite] [ag] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'i %s',
+            past: '%s ó shin',
+            s: 'cúpla soicind',
+            ss: '%d soicind',
+            m: 'nóiméad',
+            mm: '%d nóiméad',
+            h: 'uair an chloig',
+            hh: '%d uair an chloig',
+            d: 'lá',
+            dd: '%d lá',
+            M: 'mí',
+            MM: '%d míonna',
+            y: 'bliain',
+            yy: '%d bliain',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
+        ordinal: function (number) {
+            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return ga;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/gd.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/gd.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Scottish Gaelic [gd]
 //! author : Jon Ashdown : https://github.com/jonashdown
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = [
-                        'Am Faoilleach',
-                        'An Gearran',
-                        'Am Màrt',
-                        'An Giblean',
-                        'An Cèitean',
-                        'An t-Ã’gmhios',
-                        'An t-Iuchar',
-                        'An Lùnastal',
-                        'An t-Sultain',
-                        'An Dàmhair',
-                        'An t-Samhain',
-                        'An Dùbhlachd',
-                    ],
-                    monthsShort = [
-                        'Faoi',
-                        'Gear',
-                        'Màrt',
-                        'Gibl',
-                        'Cèit',
-                        'Ã’gmh',
-                        'Iuch',
-                        'Lùn',
-                        'Sult',
-                        'Dàmh',
-                        'Samh',
-                        'Dùbh',
-                    ],
-                    weekdays = [
-                        'Didòmhnaich',
-                        'Diluain',
-                        'Dimàirt',
-                        'Diciadain',
-                        'Diardaoin',
-                        'Dihaoine',
-                        'Disathairne',
-                    ],
-                    weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
-                    weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
-
-                var gd = moment.defineLocale('gd', {
-                    months: months,
-                    monthsShort: monthsShort,
-                    monthsParseExact: true,
-                    weekdays: weekdays,
-                    weekdaysShort: weekdaysShort,
-                    weekdaysMin: weekdaysMin,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[An-diugh aig] LT',
-                        nextDay: '[A-màireach aig] LT',
-                        nextWeek: 'dddd [aig] LT',
-                        lastDay: '[An-dè aig] LT',
-                        lastWeek: 'dddd [seo chaidh] [aig] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'ann an %s',
-                        past: 'bho chionn %s',
-                        s: 'beagan diogan',
-                        ss: '%d diogan',
-                        m: 'mionaid',
-                        mm: '%d mionaidean',
-                        h: 'uair',
-                        hh: '%d uairean',
-                        d: 'latha',
-                        dd: '%d latha',
-                        M: 'mìos',
-                        MM: '%d mìosan',
-                        y: 'bliadhna',
-                        yy: '%d bliadhna',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
-                    ordinal: function (number) {
-                        var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return gd;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/gl.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = [
+            'Am Faoilleach',
+            'An Gearran',
+            'Am Màrt',
+            'An Giblean',
+            'An Cèitean',
+            'An t-Ã’gmhios',
+            'An t-Iuchar',
+            'An Lùnastal',
+            'An t-Sultain',
+            'An Dàmhair',
+            'An t-Samhain',
+            'An Dùbhlachd',
+        ],
+        monthsShort = [
+            'Faoi',
+            'Gear',
+            'Màrt',
+            'Gibl',
+            'Cèit',
+            'Ã’gmh',
+            'Iuch',
+            'Lùn',
+            'Sult',
+            'Dàmh',
+            'Samh',
+            'Dùbh',
+        ],
+        weekdays = [
+            'Didòmhnaich',
+            'Diluain',
+            'Dimàirt',
+            'Diciadain',
+            'Diardaoin',
+            'Dihaoine',
+            'Disathairne',
+        ],
+        weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
+        weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
+
+    var gd = moment.defineLocale('gd', {
+        months: months,
+        monthsShort: monthsShort,
+        monthsParseExact: true,
+        weekdays: weekdays,
+        weekdaysShort: weekdaysShort,
+        weekdaysMin: weekdaysMin,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[An-diugh aig] LT',
+            nextDay: '[A-màireach aig] LT',
+            nextWeek: 'dddd [aig] LT',
+            lastDay: '[An-dè aig] LT',
+            lastWeek: 'dddd [seo chaidh] [aig] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'ann an %s',
+            past: 'bho chionn %s',
+            s: 'beagan diogan',
+            ss: '%d diogan',
+            m: 'mionaid',
+            mm: '%d mionaidean',
+            h: 'uair',
+            hh: '%d uairean',
+            d: 'latha',
+            dd: '%d latha',
+            M: 'mìos',
+            MM: '%d mìosan',
+            y: 'bliadhna',
+            yy: '%d bliadhna',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
+        ordinal: function (number) {
+            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return gd;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/gl.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/gl.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Galician [gl]
 //! author : Juan G. Hurtado : https://github.com/juanghurtado
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var gl = moment.defineLocale('gl', {
-                    months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
-                        '_'
-                    ),
-                    monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
-                    weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
-                    weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY H:mm',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
-                        },
-                        nextDay: function () {
-                            return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
-                        },
-                        nextWeek: function () {
-                            return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
-                        },
-                        lastDay: function () {
-                            return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
-                        },
-                        lastWeek: function () {
-                            return (
-                                '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
-                            );
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: function (str) {
-                            if (str.indexOf('un') === 0) {
-                                return 'n' + str;
-                            }
-                            return 'en ' + str;
-                        },
-                        past: 'hai %s',
-                        s: 'uns segundos',
-                        ss: '%d segundos',
-                        m: 'un minuto',
-                        mm: '%d minutos',
-                        h: 'unha hora',
-                        hh: '%d horas',
-                        d: 'un día',
-                        dd: '%d días',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un ano',
-                        yy: '%d anos',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return gl;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/gom-deva.js":
-        /*!************************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var gl = moment.defineLocale('gl', {
+        months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
+            '_'
+        ),
+        monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
+        weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
+        weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY H:mm',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
+        },
+        calendar: {
+            sameDay: function () {
+                return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
+            },
+            nextDay: function () {
+                return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
+            },
+            nextWeek: function () {
+                return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
+            },
+            lastDay: function () {
+                return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
+            },
+            lastWeek: function () {
+                return (
+                    '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
+                );
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: function (str) {
+                if (str.indexOf('un') === 0) {
+                    return 'n' + str;
+                }
+                return 'en ' + str;
+            },
+            past: 'hai %s',
+            s: 'uns segundos',
+            ss: '%d segundos',
+            m: 'un minuto',
+            mm: '%d minutos',
+            h: 'unha hora',
+            hh: '%d horas',
+            d: 'un día',
+            dd: '%d días',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un ano',
+            yy: '%d anos',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return gl;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/gom-deva.js":
+/*!************************************************!*\
   !*** ./node_modules/moment/locale/gom-deva.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Konkani Devanagari script [gom-deva]
 //! author : The Discoverer : https://github.com/WikiDiscoverer
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
-                        ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
-                        m: ['एका मिणटान', 'एक मिनूट'],
-                        mm: [number + ' मिणटांनी', number + ' मिणटां'],
-                        h: ['एका वरान', 'एक वर'],
-                        hh: [number + ' वरांनी', number + ' वरां'],
-                        d: ['एका दिसान', 'एक दीस'],
-                        dd: [number + ' दिसांनी', number + ' दीस'],
-                        M: ['एका म्हयन्यान', 'एक म्हयनो'],
-                        MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
-                        y: ['एका वर्सान', 'एक वर्स'],
-                        yy: [number + ' वर्सांनी', number + ' वर्सां'],
-                    };
-                    return isFuture ? format[key][0] : format[key][1];
-                }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
+            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
+            m: ['एका मिणटान', 'एक मिनूट'],
+            mm: [number + ' मिणटांनी', number + ' मिणटां'],
+            h: ['एका वरान', 'एक वर'],
+            hh: [number + ' वरांनी', number + ' वरां'],
+            d: ['एका दिसान', 'एक दीस'],
+            dd: [number + ' दिसांनी', number + ' दीस'],
+            M: ['एका म्हयन्यान', 'एक म्हयनो'],
+            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
+            y: ['एका वर्सान', 'एक वर्स'],
+            yy: [number + ' वर्सांनी', number + ' वर्सां'],
+        };
+        return isFuture ? format[key][0] : format[key][1];
+    }
 
-                var gomDeva = moment.defineLocale('gom-deva', {
-                    months: {
-                        standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
-                            '_'
-                        ),
-                        format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
-                            '_'
-                        ),
-                        isFormat: /MMMM(\s)+D[oD]?/,
-                    },
-                    monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
-                    weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
-                    weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'A h:mm [वाजतां]',
-                        LTS: 'A h:mm:ss [वाजतां]',
-                        L: 'DD-MM-YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY A h:mm [वाजतां]',
-                        LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
-                        llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
-                    },
-                    calendar: {
-                        sameDay: '[आयज] LT',
-                        nextDay: '[फाल्यां] LT',
-                        nextWeek: '[फुडलो] dddd[,] LT',
-                        lastDay: '[काल] LT',
-                        lastWeek: '[फाटलो] dddd[,] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s',
-                        past: '%s आदीं',
-                        s: processRelativeTime,
-                        ss: processRelativeTime,
-                        m: processRelativeTime,
-                        mm: processRelativeTime,
-                        h: processRelativeTime,
-                        hh: processRelativeTime,
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            // the ordinal 'वेर' only applies to day of the month
-                            case 'D':
-                                return number + 'वेर';
-                            default:
-                            case 'M':
-                            case 'Q':
-                            case 'DDD':
-                            case 'd':
-                            case 'w':
-                            case 'W':
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week
-                        doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
-                    },
-                    meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'राती') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'सकाळीं') {
-                            return hour;
-                        } else if (meridiem === 'दनपारां') {
-                            return hour > 12 ? hour : hour + 12;
-                        } else if (meridiem === 'सांजे') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'राती';
-                        } else if (hour < 12) {
-                            return 'सकाळीं';
-                        } else if (hour < 16) {
-                            return 'दनपारां';
-                        } else if (hour < 20) {
-                            return 'सांजे';
-                        } else {
-                            return 'राती';
-                        }
-                    },
-                });
+    var gomDeva = moment.defineLocale('gom-deva', {
+        months: {
+            standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
+                '_'
+            ),
+            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
+                '_'
+            ),
+            isFormat: /MMMM(\s)+D[oD]?/,
+        },
+        monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
+        weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
+        weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'A h:mm [वाजतां]',
+            LTS: 'A h:mm:ss [वाजतां]',
+            L: 'DD-MM-YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY A h:mm [वाजतां]',
+            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
+            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
+        },
+        calendar: {
+            sameDay: '[आयज] LT',
+            nextDay: '[फाल्यां] LT',
+            nextWeek: '[फुडलो] dddd[,] LT',
+            lastDay: '[काल] LT',
+            lastWeek: '[फाटलो] dddd[,] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s',
+            past: '%s आदीं',
+            s: processRelativeTime,
+            ss: processRelativeTime,
+            m: processRelativeTime,
+            mm: processRelativeTime,
+            h: processRelativeTime,
+            hh: processRelativeTime,
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                // the ordinal 'वेर' only applies to day of the month
+                case 'D':
+                    return number + 'वेर';
+                default:
+                case 'M':
+                case 'Q':
+                case 'DDD':
+                case 'd':
+                case 'w':
+                case 'W':
+                    return number;
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week
+            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
+        },
+        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'राती') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'सकाळीं') {
+                return hour;
+            } else if (meridiem === 'दनपारां') {
+                return hour > 12 ? hour : hour + 12;
+            } else if (meridiem === 'सांजे') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'राती';
+            } else if (hour < 12) {
+                return 'सकाळीं';
+            } else if (hour < 16) {
+                return 'दनपारां';
+            } else if (hour < 20) {
+                return 'सांजे';
+            } else {
+                return 'राती';
+            }
+        },
+    });
 
-                return gomDeva;
+    return gomDeva;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/gom-latn.js":
-        /*!************************************************!*\
+/***/ "./node_modules/moment/locale/gom-latn.js":
+/*!************************************************!*\
   !*** ./node_modules/moment/locale/gom-latn.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Konkani Latin script [gom-latn]
 //! author : The Discoverer : https://github.com/WikiDiscoverer
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        s: ['thoddea sekondamni', 'thodde sekond'],
-                        ss: [number + ' sekondamni', number + ' sekond'],
-                        m: ['eka mintan', 'ek minut'],
-                        mm: [number + ' mintamni', number + ' mintam'],
-                        h: ['eka voran', 'ek vor'],
-                        hh: [number + ' voramni', number + ' voram'],
-                        d: ['eka disan', 'ek dis'],
-                        dd: [number + ' disamni', number + ' dis'],
-                        M: ['eka mhoinean', 'ek mhoino'],
-                        MM: [number + ' mhoineamni', number + ' mhoine'],
-                        y: ['eka vorsan', 'ek voros'],
-                        yy: [number + ' vorsamni', number + ' vorsam'],
-                    };
-                    return isFuture ? format[key][0] : format[key][1];
-                }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            s: ['thoddea sekondamni', 'thodde sekond'],
+            ss: [number + ' sekondamni', number + ' sekond'],
+            m: ['eka mintan', 'ek minut'],
+            mm: [number + ' mintamni', number + ' mintam'],
+            h: ['eka voran', 'ek vor'],
+            hh: [number + ' voramni', number + ' voram'],
+            d: ['eka disan', 'ek dis'],
+            dd: [number + ' disamni', number + ' dis'],
+            M: ['eka mhoinean', 'ek mhoino'],
+            MM: [number + ' mhoineamni', number + ' mhoine'],
+            y: ['eka vorsan', 'ek voros'],
+            yy: [number + ' vorsamni', number + ' vorsam'],
+        };
+        return isFuture ? format[key][0] : format[key][1];
+    }
 
-                var gomLatn = moment.defineLocale('gom-latn', {
-                    months: {
-                        standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
-                            '_'
-                        ),
-                        format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
-                            '_'
-                        ),
-                        isFormat: /MMMM(\s)+D[oD]?/,
-                    },
-                    monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
-                    weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
-                    weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'A h:mm [vazta]',
-                        LTS: 'A h:mm:ss [vazta]',
-                        L: 'DD-MM-YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY A h:mm [vazta]',
-                        LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
-                        llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
-                    },
-                    calendar: {
-                        sameDay: '[Aiz] LT',
-                        nextDay: '[Faleam] LT',
-                        nextWeek: '[Fuddlo] dddd[,] LT',
-                        lastDay: '[Kal] LT',
-                        lastWeek: '[Fattlo] dddd[,] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s',
-                        past: '%s adim',
-                        s: processRelativeTime,
-                        ss: processRelativeTime,
-                        m: processRelativeTime,
-                        mm: processRelativeTime,
-                        h: processRelativeTime,
-                        hh: processRelativeTime,
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(er)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            // the ordinal 'er' only applies to day of the month
-                            case 'D':
-                                return number + 'er';
-                            default:
-                            case 'M':
-                            case 'Q':
-                            case 'DDD':
-                            case 'd':
-                            case 'w':
-                            case 'W':
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week
-                        doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
-                    },
-                    meridiemParse: /rati|sokallim|donparam|sanje/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'rati') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'sokallim') {
-                            return hour;
-                        } else if (meridiem === 'donparam') {
-                            return hour > 12 ? hour : hour + 12;
-                        } else if (meridiem === 'sanje') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'rati';
-                        } else if (hour < 12) {
-                            return 'sokallim';
-                        } else if (hour < 16) {
-                            return 'donparam';
-                        } else if (hour < 20) {
-                            return 'sanje';
-                        } else {
-                            return 'rati';
-                        }
-                    },
-                });
+    var gomLatn = moment.defineLocale('gom-latn', {
+        months: {
+            standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
+                '_'
+            ),
+            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
+                '_'
+            ),
+            isFormat: /MMMM(\s)+D[oD]?/,
+        },
+        monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
+        weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
+        weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'A h:mm [vazta]',
+            LTS: 'A h:mm:ss [vazta]',
+            L: 'DD-MM-YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY A h:mm [vazta]',
+            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
+            llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
+        },
+        calendar: {
+            sameDay: '[Aiz] LT',
+            nextDay: '[Faleam] LT',
+            nextWeek: '[Fuddlo] dddd[,] LT',
+            lastDay: '[Kal] LT',
+            lastWeek: '[Fattlo] dddd[,] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s',
+            past: '%s adim',
+            s: processRelativeTime,
+            ss: processRelativeTime,
+            m: processRelativeTime,
+            mm: processRelativeTime,
+            h: processRelativeTime,
+            hh: processRelativeTime,
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(er)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                // the ordinal 'er' only applies to day of the month
+                case 'D':
+                    return number + 'er';
+                default:
+                case 'M':
+                case 'Q':
+                case 'DDD':
+                case 'd':
+                case 'w':
+                case 'W':
+                    return number;
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week
+            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
+        },
+        meridiemParse: /rati|sokallim|donparam|sanje/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'rati') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'sokallim') {
+                return hour;
+            } else if (meridiem === 'donparam') {
+                return hour > 12 ? hour : hour + 12;
+            } else if (meridiem === 'sanje') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'rati';
+            } else if (hour < 12) {
+                return 'sokallim';
+            } else if (hour < 16) {
+                return 'donparam';
+            } else if (hour < 20) {
+                return 'sanje';
+            } else {
+                return 'rati';
+            }
+        },
+    });
 
-                return gomLatn;
+    return gomLatn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/gu.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/gu.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/gu.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Gujarati [gu]
 //! author : Kaushik Thanki : https://github.com/Kaushik1987
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '૧',
-                        2: '૨',
-                        3: 'à«©',
-                        4: '૪',
-                        5: 'à««',
-                        6: '૬',
-                        7: 'à«­',
-                        8: 'à«®',
-                        9: '૯',
-                        0: '૦',
-                    },
-                    numberMap = {
-                        '૧': '1',
-                        '૨': '2',
-                        'à«©': '3',
-                        '૪': '4',
-                        'à««': '5',
-                        '૬': '6',
-                        'à«­': '7',
-                        'à«®': '8',
-                        '૯': '9',
-                        '૦': '0',
-                    };
-
-                var gu = moment.defineLocale('gu', {
-                    months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
-                        '_'
-                    ),
-                    monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
-                    weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm વાગ્યે',
-                        LTS: 'A h:mm:ss વાગ્યે',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
-                    },
-                    calendar: {
-                        sameDay: '[આજ] LT',
-                        nextDay: '[કાલે] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[ગઇકાલે] LT',
-                        lastWeek: '[પાછલા] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s મા',
-                        past: '%s પહેલા',
-                        s: 'અમુક પળો',
-                        ss: '%d સેકંડ',
-                        m: 'એક મિનિટ',
-                        mm: '%d મિનિટ',
-                        h: 'એક કલાક',
-                        hh: '%d કલાક',
-                        d: 'એક દિવસ',
-                        dd: '%d દિવસ',
-                        M: 'એક મહિનો',
-                        MM: '%d મહિનો',
-                        y: 'એક વર્ષ',
-                        yy: '%d વર્ષ',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
-                    // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
-                    meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'રાત') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'સવાર') {
-                            return hour;
-                        } else if (meridiem === 'બપોર') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'સાંજ') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'રાત';
-                        } else if (hour < 10) {
-                            return 'સવાર';
-                        } else if (hour < 17) {
-                            return 'બપોર';
-                        } else if (hour < 20) {
-                            return 'સાંજ';
-                        } else {
-                            return 'રાત';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '૧',
+            2: '૨',
+            3: 'à«©',
+            4: '૪',
+            5: 'à««',
+            6: '૬',
+            7: 'à«­',
+            8: 'à«®',
+            9: '૯',
+            0: '૦',
+        },
+        numberMap = {
+            '૧': '1',
+            '૨': '2',
+            'à«©': '3',
+            '૪': '4',
+            'à««': '5',
+            '૬': '6',
+            'à«­': '7',
+            'à«®': '8',
+            '૯': '9',
+            '૦': '0',
+        };
+
+    var gu = moment.defineLocale('gu', {
+        months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
+            '_'
+        ),
+        monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
+            '_'
+        ),
+        weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
+        weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm વાગ્યે',
+            LTS: 'A h:mm:ss વાગ્યે',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
+        },
+        calendar: {
+            sameDay: '[આજ] LT',
+            nextDay: '[કાલે] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[ગઇકાલે] LT',
+            lastWeek: '[પાછલા] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s મા',
+            past: '%s પહેલા',
+            s: 'અમુક પળો',
+            ss: '%d સેકંડ',
+            m: 'એક મિનિટ',
+            mm: '%d મિનિટ',
+            h: 'એક કલાક',
+            hh: '%d કલાક',
+            d: 'એક દિવસ',
+            dd: '%d દિવસ',
+            M: 'એક મહિનો',
+            MM: '%d મહિનો',
+            y: 'એક વર્ષ',
+            yy: '%d વર્ષ',
+        },
+        preparse: function (string) {
+            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
+        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
+        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'રાત') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'સવાર') {
+                return hour;
+            } else if (meridiem === 'બપોર') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'સાંજ') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'રાત';
+            } else if (hour < 10) {
+                return 'સવાર';
+            } else if (hour < 17) {
+                return 'બપોર';
+            } else if (hour < 20) {
+                return 'સાંજ';
+            } else {
+                return 'રાત';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return gu;
+    return gu;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/he.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/he.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/he.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Hebrew [he]
@@ -104775,1060 +104775,1060 @@ THE SOFTWARE.
 //! author : Moshe Simantov : https://github.com/DevelopmentIL
 //! author : Tal Ater : https://github.com/TalAter
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var he = moment.defineLocale('he', {
-                    months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
-                        '_'
-                    ),
-                    weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
-                    weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
-                    weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [ב]MMMM YYYY',
-                        LLL: 'D [ב]MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
-                        l: 'D/M/YYYY',
-                        ll: 'D MMM YYYY',
-                        lll: 'D MMM YYYY HH:mm',
-                        llll: 'ddd, D MMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[היום ב־]LT',
-                        nextDay: '[מחר ב־]LT',
-                        nextWeek: 'dddd [בשעה] LT',
-                        lastDay: '[אתמול ב־]LT',
-                        lastWeek: '[ביום] dddd [האחרון בשעה] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'בעוד %s',
-                        past: 'לפני %s',
-                        s: 'מספר שניות',
-                        ss: '%d שניות',
-                        m: 'דקה',
-                        mm: '%d דקות',
-                        h: 'שעה',
-                        hh: function (number) {
-                            if (number === 2) {
-                                return 'שעתיים';
-                            }
-                            return number + ' שעות';
-                        },
-                        d: 'יום',
-                        dd: function (number) {
-                            if (number === 2) {
-                                return 'יומיים';
-                            }
-                            return number + ' ימים';
-                        },
-                        M: 'חודש',
-                        MM: function (number) {
-                            if (number === 2) {
-                                return 'חודשיים';
-                            }
-                            return number + ' חודשים';
-                        },
-                        y: 'שנה',
-                        yy: function (number) {
-                            if (number === 2) {
-                                return 'שנתיים';
-                            } else if (number % 10 === 0 && number !== 10) {
-                                return number + ' שנה';
-                            }
-                            return number + ' שנים';
-                        },
-                    },
-                    meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
-                    isPM: function (input) {
-                        return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 5) {
-                            return 'לפנות בוקר';
-                        } else if (hour < 10) {
-                            return 'בבוקר';
-                        } else if (hour < 12) {
-                            return isLower ? 'לפנה"צ' : 'לפני הצהריים';
-                        } else if (hour < 18) {
-                            return isLower ? 'אחה"צ' : 'אחרי הצהריים';
-                        } else {
-                            return 'בערב';
-                        }
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var he = moment.defineLocale('he', {
+        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
+            '_'
+        ),
+        monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
+            '_'
+        ),
+        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
+        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
+        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [ב]MMMM YYYY',
+            LLL: 'D [ב]MMMM YYYY HH:mm',
+            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
+            l: 'D/M/YYYY',
+            ll: 'D MMM YYYY',
+            lll: 'D MMM YYYY HH:mm',
+            llll: 'ddd, D MMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[היום ב־]LT',
+            nextDay: '[מחר ב־]LT',
+            nextWeek: 'dddd [בשעה] LT',
+            lastDay: '[אתמול ב־]LT',
+            lastWeek: '[ביום] dddd [האחרון בשעה] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'בעוד %s',
+            past: 'לפני %s',
+            s: 'מספר שניות',
+            ss: '%d שניות',
+            m: 'דקה',
+            mm: '%d דקות',
+            h: 'שעה',
+            hh: function (number) {
+                if (number === 2) {
+                    return 'שעתיים';
+                }
+                return number + ' שעות';
+            },
+            d: 'יום',
+            dd: function (number) {
+                if (number === 2) {
+                    return 'יומיים';
+                }
+                return number + ' ימים';
+            },
+            M: 'חודש',
+            MM: function (number) {
+                if (number === 2) {
+                    return 'חודשיים';
+                }
+                return number + ' חודשים';
+            },
+            y: 'שנה',
+            yy: function (number) {
+                if (number === 2) {
+                    return 'שנתיים';
+                } else if (number % 10 === 0 && number !== 10) {
+                    return number + ' שנה';
+                }
+                return number + ' שנים';
+            },
+        },
+        meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
+        isPM: function (input) {
+            return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 5) {
+                return 'לפנות בוקר';
+            } else if (hour < 10) {
+                return 'בבוקר';
+            } else if (hour < 12) {
+                return isLower ? 'לפנה"צ' : 'לפני הצהריים';
+            } else if (hour < 18) {
+                return isLower ? 'אחה"צ' : 'אחרי הצהריים';
+            } else {
+                return 'בערב';
+            }
+        },
+    });
 
-                return he;
+    return he;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/hi.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/hi.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/hi.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Hindi [hi]
 //! author : Mayank Singhal : https://github.com/mayanksinghal
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '१',
-                        2: '२',
-                        3: '३',
-                        4: '४',
-                        5: '५',
-                        6: '६',
-                        7: '७',
-                        8: '८',
-                        9: '९',
-                        0: '०',
-                    },
-                    numberMap = {
-                        '१': '1',
-                        '२': '2',
-                        '३': '3',
-                        '४': '4',
-                        '५': '5',
-                        '६': '6',
-                        '७': '7',
-                        '८': '8',
-                        '९': '9',
-                        '०': '0',
-                    },
-                    monthsParse = [
-                        /^जन/i,
-                        /^फ़र|फर/i,
-                        /^मार्च/i,
-                        /^अप्रै/i,
-                        /^मई/i,
-                        /^जून/i,
-                        /^जुल/i,
-                        /^अग/i,
-                        /^सितं|सित/i,
-                        /^अक्टू/i,
-                        /^नव|नवं/i,
-                        /^दिसं|दिस/i,
-                    ],
-                    shortMonthsParse = [
-                        /^जन/i,
-                        /^फ़र/i,
-                        /^मार्च/i,
-                        /^अप्रै/i,
-                        /^मई/i,
-                        /^जून/i,
-                        /^जुल/i,
-                        /^अग/i,
-                        /^सित/i,
-                        /^अक्टू/i,
-                        /^नव/i,
-                        /^दिस/i,
-                    ];
-
-                var hi = moment.defineLocale('hi', {
-                    months: {
-                        format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
-                            '_'
-                        ),
-                        standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
-                        '_'
-                    ),
-                    weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
-                    weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
-                    weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm बजे',
-                        LTS: 'A h:mm:ss बजे',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm बजे',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
-                    },
-
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: shortMonthsParse,
-
-                    monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
-
-                    monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
-
-                    monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
-
-                    monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
-
-                    calendar: {
-                        sameDay: '[आज] LT',
-                        nextDay: '[कल] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[कल] LT',
-                        lastWeek: '[पिछले] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s में',
-                        past: '%s पहले',
-                        s: 'कुछ ही क्षण',
-                        ss: '%d सेकंड',
-                        m: 'एक मिनट',
-                        mm: '%d मिनट',
-                        h: 'एक घंटा',
-                        hh: '%d घंटे',
-                        d: 'एक दिन',
-                        dd: '%d दिन',
-                        M: 'एक महीने',
-                        MM: '%d महीने',
-                        y: 'एक वर्ष',
-                        yy: '%d वर्ष',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[१२३४५६७८९०]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    // Hindi notation for meridiems are quite fuzzy in practice. While there exists
-                    // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
-                    meridiemParse: /रात|सुबह|दोपहर|शाम/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'रात') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'सुबह') {
-                            return hour;
-                        } else if (meridiem === 'दोपहर') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'शाम') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'रात';
-                        } else if (hour < 10) {
-                            return 'सुबह';
-                        } else if (hour < 17) {
-                            return 'दोपहर';
-                        } else if (hour < 20) {
-                            return 'शाम';
-                        } else {
-                            return 'रात';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '१',
+            2: '२',
+            3: '३',
+            4: '४',
+            5: '५',
+            6: '६',
+            7: '७',
+            8: '८',
+            9: '९',
+            0: '०',
+        },
+        numberMap = {
+            '१': '1',
+            '२': '2',
+            '३': '3',
+            '४': '4',
+            '५': '5',
+            '६': '6',
+            '७': '7',
+            '८': '8',
+            '९': '9',
+            '०': '0',
+        },
+        monthsParse = [
+            /^जन/i,
+            /^फ़र|फर/i,
+            /^मार्च/i,
+            /^अप्रै/i,
+            /^मई/i,
+            /^जून/i,
+            /^जुल/i,
+            /^अग/i,
+            /^सितं|सित/i,
+            /^अक्टू/i,
+            /^नव|नवं/i,
+            /^दिसं|दिस/i,
+        ],
+        shortMonthsParse = [
+            /^जन/i,
+            /^फ़र/i,
+            /^मार्च/i,
+            /^अप्रै/i,
+            /^मई/i,
+            /^जून/i,
+            /^जुल/i,
+            /^अग/i,
+            /^सित/i,
+            /^अक्टू/i,
+            /^नव/i,
+            /^दिस/i,
+        ];
+
+    var hi = moment.defineLocale('hi', {
+        months: {
+            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
+                '_'
+            ),
+            standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
+            '_'
+        ),
+        weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
+        weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
+        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm बजे',
+            LTS: 'A h:mm:ss बजे',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm बजे',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
+        },
+
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: shortMonthsParse,
+
+        monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
+
+        monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
+
+        monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
+
+        monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
+
+        calendar: {
+            sameDay: '[आज] LT',
+            nextDay: '[कल] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[कल] LT',
+            lastWeek: '[पिछले] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s में',
+            past: '%s पहले',
+            s: 'कुछ ही क्षण',
+            ss: '%d सेकंड',
+            m: 'एक मिनट',
+            mm: '%d मिनट',
+            h: 'एक घंटा',
+            hh: '%d घंटे',
+            d: 'एक दिन',
+            dd: '%d दिन',
+            M: 'एक महीने',
+            MM: '%d महीने',
+            y: 'एक वर्ष',
+            yy: '%d वर्ष',
+        },
+        preparse: function (string) {
+            return string.replace(/[१२३४५६७८९०]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        // Hindi notation for meridiems are quite fuzzy in practice. While there exists
+        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
+        meridiemParse: /रात|सुबह|दोपहर|शाम/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'रात') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'सुबह') {
+                return hour;
+            } else if (meridiem === 'दोपहर') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'शाम') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'रात';
+            } else if (hour < 10) {
+                return 'सुबह';
+            } else if (hour < 17) {
+                return 'दोपहर';
+            } else if (hour < 20) {
+                return 'शाम';
+            } else {
+                return 'रात';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return hi;
+    return hi;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/hr.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/hr.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/hr.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Croatian [hr]
 //! author : Bojan Marković : https://github.com/bmarkovic
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function translate(number, withoutSuffix, key) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 'ss':
-                            if (number === 1) {
-                                result += 'sekunda';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'sekunde';
-                            } else {
-                                result += 'sekundi';
-                            }
-                            return result;
-                        case 'm':
-                            return withoutSuffix ? 'jedna minuta' : 'jedne minute';
-                        case 'mm':
-                            if (number === 1) {
-                                result += 'minuta';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'minute';
-                            } else {
-                                result += 'minuta';
-                            }
-                            return result;
-                        case 'h':
-                            return withoutSuffix ? 'jedan sat' : 'jednog sata';
-                        case 'hh':
-                            if (number === 1) {
-                                result += 'sat';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'sata';
-                            } else {
-                                result += 'sati';
-                            }
-                            return result;
-                        case 'dd':
-                            if (number === 1) {
-                                result += 'dan';
-                            } else {
-                                result += 'dana';
-                            }
-                            return result;
-                        case 'MM':
-                            if (number === 1) {
-                                result += 'mjesec';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'mjeseca';
-                            } else {
-                                result += 'mjeseci';
-                            }
-                            return result;
-                        case 'yy':
-                            if (number === 1) {
-                                result += 'godina';
-                            } else if (number === 2 || number === 3 || number === 4) {
-                                result += 'godine';
-                            } else {
-                                result += 'godina';
-                            }
-                            return result;
-                    }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function translate(number, withoutSuffix, key) {
+        var result = number + ' ';
+        switch (key) {
+            case 'ss':
+                if (number === 1) {
+                    result += 'sekunda';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'sekunde';
+                } else {
+                    result += 'sekundi';
                 }
+                return result;
+            case 'm':
+                return withoutSuffix ? 'jedna minuta' : 'jedne minute';
+            case 'mm':
+                if (number === 1) {
+                    result += 'minuta';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'minute';
+                } else {
+                    result += 'minuta';
+                }
+                return result;
+            case 'h':
+                return withoutSuffix ? 'jedan sat' : 'jednog sata';
+            case 'hh':
+                if (number === 1) {
+                    result += 'sat';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'sata';
+                } else {
+                    result += 'sati';
+                }
+                return result;
+            case 'dd':
+                if (number === 1) {
+                    result += 'dan';
+                } else {
+                    result += 'dana';
+                }
+                return result;
+            case 'MM':
+                if (number === 1) {
+                    result += 'mjesec';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'mjeseca';
+                } else {
+                    result += 'mjeseci';
+                }
+                return result;
+            case 'yy':
+                if (number === 1) {
+                    result += 'godina';
+                } else if (number === 2 || number === 3 || number === 4) {
+                    result += 'godine';
+                } else {
+                    result += 'godina';
+                }
+                return result;
+        }
+    }
 
-                var hr = moment.defineLocale('hr', {
-                    months: {
-                        format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
-                            '_'
-                        ),
-                        standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
-                    weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'Do MMMM YYYY',
-                        LLL: 'Do MMMM YYYY H:mm',
-                        LLLL: 'dddd, Do MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[danas u] LT',
-                        nextDay: '[sutra u] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[u] [nedjelju] [u] LT';
-                                case 3:
-                                    return '[u] [srijedu] [u] LT';
-                                case 6:
-                                    return '[u] [subotu] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[u] dddd [u] LT';
-                            }
-                        },
-                        lastDay: '[jučer u] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[prošlu] [nedjelju] [u] LT';
-                                case 3:
-                                    return '[prošlu] [srijedu] [u] LT';
-                                case 6:
-                                    return '[prošle] [subote] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[prošli] dddd [u] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'prije %s',
-                        s: 'par sekundi',
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: 'dan',
-                        dd: translate,
-                        M: 'mjesec',
-                        MM: translate,
-                        y: 'godinu',
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return hr;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/hu.js":
-        /*!******************************************!*\
+    var hr = moment.defineLocale('hr', {
+        months: {
+            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
+                '_'
+            ),
+            standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
+            '_'
+        ),
+        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'Do MMMM YYYY',
+            LLL: 'Do MMMM YYYY H:mm',
+            LLLL: 'dddd, Do MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[danas u] LT',
+            nextDay: '[sutra u] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[u] [nedjelju] [u] LT';
+                    case 3:
+                        return '[u] [srijedu] [u] LT';
+                    case 6:
+                        return '[u] [subotu] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[u] dddd [u] LT';
+                }
+            },
+            lastDay: '[jučer u] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[prošlu] [nedjelju] [u] LT';
+                    case 3:
+                        return '[prošlu] [srijedu] [u] LT';
+                    case 6:
+                        return '[prošle] [subote] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[prošli] dddd [u] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'prije %s',
+            s: 'par sekundi',
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: 'dan',
+            dd: translate,
+            M: 'mjesec',
+            MM: translate,
+            y: 'godinu',
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return hr;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/hu.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/hu.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Hungarian [hu]
 //! author : Adam Brunner : https://github.com/adambrunner
 //! author : Peter Viszt  : https://github.com/passatgt
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
-                    ' '
-                );
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var num = number;
-                    switch (key) {
-                        case 's':
-                            return isFuture || withoutSuffix
-                                ? 'néhány másodperc'
-                                : 'néhány másodperce';
-                        case 'ss':
-                            return num + (isFuture || withoutSuffix)
-                                ? ' másodperc'
-                                : ' másodperce';
-                        case 'm':
-                            return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
-                        case 'mm':
-                            return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
-                        case 'h':
-                            return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
-                        case 'hh':
-                            return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
-                        case 'd':
-                            return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
-                        case 'dd':
-                            return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
-                        case 'M':
-                            return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
-                        case 'MM':
-                            return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
-                        case 'y':
-                            return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
-                        case 'yy':
-                            return num + (isFuture || withoutSuffix ? ' év' : ' éve');
-                    }
-                    return '';
-                }
-                function week(isFuture) {
-                    return (
-                        (isFuture ? '' : '[múlt] ') +
-                        '[' +
-                        weekEndings[this.day()] +
-                        '] LT[-kor]'
-                    );
-                }
-
-                var hu = moment.defineLocale('hu', {
-                    months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
-                    weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
-                    weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'YYYY.MM.DD.',
-                        LL: 'YYYY. MMMM D.',
-                        LLL: 'YYYY. MMMM D. H:mm',
-                        LLLL: 'YYYY. MMMM D., dddd H:mm',
-                    },
-                    meridiemParse: /de|du/i,
-                    isPM: function (input) {
-                        return input.charAt(1).toLowerCase() === 'u';
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 12) {
-                            return isLower === true ? 'de' : 'DE';
-                        } else {
-                            return isLower === true ? 'du' : 'DU';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[ma] LT[-kor]',
-                        nextDay: '[holnap] LT[-kor]',
-                        nextWeek: function () {
-                            return week.call(this, true);
-                        },
-                        lastDay: '[tegnap] LT[-kor]',
-                        lastWeek: function () {
-                            return week.call(this, false);
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s múlva',
-                        past: '%s',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return hu;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
+        ' '
+    );
+    function translate(number, withoutSuffix, key, isFuture) {
+        var num = number;
+        switch (key) {
+            case 's':
+                return isFuture || withoutSuffix
+                    ? 'néhány másodperc'
+                    : 'néhány másodperce';
+            case 'ss':
+                return num + (isFuture || withoutSuffix)
+                    ? ' másodperc'
+                    : ' másodperce';
+            case 'm':
+                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
+            case 'mm':
+                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
+            case 'h':
+                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
+            case 'hh':
+                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
+            case 'd':
+                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
+            case 'dd':
+                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
+            case 'M':
+                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
+            case 'MM':
+                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
+            case 'y':
+                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
+            case 'yy':
+                return num + (isFuture || withoutSuffix ? ' év' : ' éve');
+        }
+        return '';
+    }
+    function week(isFuture) {
+        return (
+            (isFuture ? '' : '[múlt] ') +
+            '[' +
+            weekEndings[this.day()] +
+            '] LT[-kor]'
+        );
+    }
 
-        /***/ "./node_modules/moment/locale/hy-am.js":
-        /*!*********************************************!*\
+    var hu = moment.defineLocale('hu', {
+        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
+        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
+        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'YYYY.MM.DD.',
+            LL: 'YYYY. MMMM D.',
+            LLL: 'YYYY. MMMM D. H:mm',
+            LLLL: 'YYYY. MMMM D., dddd H:mm',
+        },
+        meridiemParse: /de|du/i,
+        isPM: function (input) {
+            return input.charAt(1).toLowerCase() === 'u';
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 12) {
+                return isLower === true ? 'de' : 'DE';
+            } else {
+                return isLower === true ? 'du' : 'DU';
+            }
+        },
+        calendar: {
+            sameDay: '[ma] LT[-kor]',
+            nextDay: '[holnap] LT[-kor]',
+            nextWeek: function () {
+                return week.call(this, true);
+            },
+            lastDay: '[tegnap] LT[-kor]',
+            lastWeek: function () {
+                return week.call(this, false);
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s múlva',
+            past: '%s',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return hu;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/hy-am.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/hy-am.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Armenian [hy-am]
 //! author : Armendarabyan : https://github.com/armendarabyan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var hyAm = moment.defineLocale('hy-am', {
-                    months: {
-                        format: 'Õ°Õ¸Ö‚Õ¶Õ¾Õ¡Ö€Õ«_ÖƒÕ¥Õ¿Ö€Õ¾Õ¡Ö€Õ«_Õ´Õ¡Ö€Õ¿Õ«_Õ¡ÕºÖ€Õ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸Ö‚Õ¶Õ«Õ½Õ«_Õ°Õ¸Ö‚Õ¬Õ«Õ½Õ«_Ö…Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö€Õ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«'.split(
-                            '_'
-                        ),
-                        standalone: 'Õ°Õ¸Ö‚Õ¶Õ¾Õ¡Ö€_ÖƒÕ¥Õ¿Ö€Õ¾Õ¡Ö€_Õ´Õ¡Ö€Õ¿_Õ¡ÕºÖ€Õ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸Ö‚Õ¶Õ«Õ½_Õ°Õ¸Ö‚Õ¬Õ«Õ½_Ö…Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö€_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö€_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'Õ°Õ¶Õ¾_ÖƒÕ¿Ö€_Õ´Ö€Õ¿_Õ¡ÕºÖ€_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö…Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿'.split('_'),
-                    weekdays: 'Õ¯Õ«Ö€Õ¡Õ¯Õ«_Õ¥Ö€Õ¯Õ¸Ö‚Õ·Õ¡Õ¢Õ©Õ«_Õ¥Ö€Õ¥Ö„Õ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸Ö€Õ¥Ö„Õ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸Ö‚Ö€Õ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Õ¯Ö€Õ¯_Õ¥Ö€Õ¯_Õ¥Ö€Ö„_Õ¹Ö€Ö„_Õ°Õ¶Õ£_Õ¸Ö‚Ö€Õ¢_Õ·Õ¢Õ©'.split('_'),
-                    weekdaysMin: 'Õ¯Ö€Õ¯_Õ¥Ö€Õ¯_Õ¥Ö€Ö„_Õ¹Ö€Ö„_Õ°Õ¶Õ£_Õ¸Ö‚Ö€Õ¢_Õ·Õ¢Õ©'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY Õ©.',
-                        LLL: 'D MMMM YYYY Õ©., HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY Õ©., HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Õ¡ÕµÕ½Ö…Ö€] LT',
-                        nextDay: '[Õ¾Õ¡Õ²Õ¨] LT',
-                        lastDay: '[Õ¥Ö€Õ¥Õ¯] LT',
-                        nextWeek: function () {
-                            return 'dddd [Ö…Ö€Õ¨ ÕªÕ¡Õ´Õ¨] LT';
-                        },
-                        lastWeek: function () {
-                            return '[անցած] dddd [օրը ժամը] LT';
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s Õ°Õ¥Õ¿Õ¸',
-                        past: '%s Õ¡Õ¼Õ¡Õ»',
-                        s: 'Õ´Õ« Ö„Õ¡Õ¶Õ« Õ¾Õ¡ÕµÖ€Õ¯ÕµÕ¡Õ¶',
-                        ss: '%d Õ¾Õ¡ÕµÖ€Õ¯ÕµÕ¡Õ¶',
-                        m: 'Ö€Õ¸ÕºÕ¥',
-                        mm: '%d Ö€Õ¸ÕºÕ¥',
-                        h: 'ÕªÕ¡Õ´',
-                        hh: '%d ÕªÕ¡Õ´',
-                        d: 'Ö…Ö€',
-                        dd: '%d Ö…Ö€',
-                        M: 'Õ¡Õ´Õ«Õ½',
-                        MM: '%d Õ¡Õ´Õ«Õ½',
-                        y: 'Õ¿Õ¡Ö€Õ«',
-                        yy: '%d Õ¿Õ¡Ö€Õ«',
-                    },
-                    meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
-                    isPM: function (input) {
-                        return /^(ցերեկվա|երեկոյան)$/.test(input);
-                    },
-                    meridiem: function (hour) {
-                        if (hour < 4) {
-                            return 'Õ£Õ«Õ·Õ¥Ö€Õ¾Õ¡';
-                        } else if (hour < 12) {
-                            return 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡';
-                        } else if (hour < 17) {
-                            return 'ցերեկվա';
-                        } else {
-                            return 'Õ¥Ö€Õ¥Õ¯Õ¸ÕµÕ¡Õ¶';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(Õ«Õ¶|Ö€Õ¤)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'DDD':
-                            case 'w':
-                            case 'W':
-                            case 'DDDo':
-                                if (number === 1) {
-                                    return number + '-Õ«Õ¶';
-                                }
-                                return number + '-Ö€Õ¤';
-                            default:
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var hyAm = moment.defineLocale('hy-am', {
+        months: {
+            format: 'Õ°Õ¸Ö‚Õ¶Õ¾Õ¡Ö€Õ«_ÖƒÕ¥Õ¿Ö€Õ¾Õ¡Ö€Õ«_Õ´Õ¡Ö€Õ¿Õ«_Õ¡ÕºÖ€Õ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸Ö‚Õ¶Õ«Õ½Õ«_Õ°Õ¸Ö‚Õ¬Õ«Õ½Õ«_Ö…Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö€Õ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€Õ«'.split(
+                '_'
+            ),
+            standalone: 'Õ°Õ¸Ö‚Õ¶Õ¾Õ¡Ö€_ÖƒÕ¥Õ¿Ö€Õ¾Õ¡Ö€_Õ´Õ¡Ö€Õ¿_Õ¡ÕºÖ€Õ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸Ö‚Õ¶Õ«Õ½_Õ°Õ¸Ö‚Õ¬Õ«Õ½_Ö…Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö€_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö€_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö€'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'Õ°Õ¶Õ¾_ÖƒÕ¿Ö€_Õ´Ö€Õ¿_Õ¡ÕºÖ€_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö…Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿'.split('_'),
+        weekdays: 'Õ¯Õ«Ö€Õ¡Õ¯Õ«_Õ¥Ö€Õ¯Õ¸Ö‚Õ·Õ¡Õ¢Õ©Õ«_Õ¥Ö€Õ¥Ö„Õ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸Ö€Õ¥Ö„Õ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸Ö‚Ö€Õ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©'.split(
+            '_'
+        ),
+        weekdaysShort: 'Õ¯Ö€Õ¯_Õ¥Ö€Õ¯_Õ¥Ö€Ö„_Õ¹Ö€Ö„_Õ°Õ¶Õ£_Õ¸Ö‚Ö€Õ¢_Õ·Õ¢Õ©'.split('_'),
+        weekdaysMin: 'Õ¯Ö€Õ¯_Õ¥Ö€Õ¯_Õ¥Ö€Ö„_Õ¹Ö€Ö„_Õ°Õ¶Õ£_Õ¸Ö‚Ö€Õ¢_Õ·Õ¢Õ©'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY Õ©.',
+            LLL: 'D MMMM YYYY Õ©., HH:mm',
+            LLLL: 'dddd, D MMMM YYYY Õ©., HH:mm',
+        },
+        calendar: {
+            sameDay: '[Õ¡ÕµÕ½Ö…Ö€] LT',
+            nextDay: '[Õ¾Õ¡Õ²Õ¨] LT',
+            lastDay: '[Õ¥Ö€Õ¥Õ¯] LT',
+            nextWeek: function () {
+                return 'dddd [Ö…Ö€Õ¨ ÕªÕ¡Õ´Õ¨] LT';
+            },
+            lastWeek: function () {
+                return '[անցած] dddd [օրը ժամը] LT';
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s Õ°Õ¥Õ¿Õ¸',
+            past: '%s Õ¡Õ¼Õ¡Õ»',
+            s: 'Õ´Õ« Ö„Õ¡Õ¶Õ« Õ¾Õ¡ÕµÖ€Õ¯ÕµÕ¡Õ¶',
+            ss: '%d Õ¾Õ¡ÕµÖ€Õ¯ÕµÕ¡Õ¶',
+            m: 'Ö€Õ¸ÕºÕ¥',
+            mm: '%d Ö€Õ¸ÕºÕ¥',
+            h: 'ÕªÕ¡Õ´',
+            hh: '%d ÕªÕ¡Õ´',
+            d: 'Ö…Ö€',
+            dd: '%d Ö…Ö€',
+            M: 'Õ¡Õ´Õ«Õ½',
+            MM: '%d Õ¡Õ´Õ«Õ½',
+            y: 'Õ¿Õ¡Ö€Õ«',
+            yy: '%d Õ¿Õ¡Ö€Õ«',
+        },
+        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
+        isPM: function (input) {
+            return /^(ցերեկվա|երեկոյան)$/.test(input);
+        },
+        meridiem: function (hour) {
+            if (hour < 4) {
+                return 'Õ£Õ«Õ·Õ¥Ö€Õ¾Õ¡';
+            } else if (hour < 12) {
+                return 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡';
+            } else if (hour < 17) {
+                return 'ցերեկվա';
+            } else {
+                return 'Õ¥Ö€Õ¥Õ¯Õ¸ÕµÕ¡Õ¶';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(Õ«Õ¶|Ö€Õ¤)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'DDD':
+                case 'w':
+                case 'W':
+                case 'DDDo':
+                    if (number === 1) {
+                        return number + '-Õ«Õ¶';
+                    }
+                    return number + '-Ö€Õ¤';
+                default:
+                    return number;
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return hyAm;
+    return hyAm;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/id.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/id.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/id.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Indonesian [id]
 //! author : Mohammad Satrio Utomo : https://github.com/tyok
 //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var id = moment.defineLocale('id', {
-                    months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
-                    weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
-                    weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
-                    weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [pukul] HH.mm',
-                        LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
-                    },
-                    meridiemParse: /pagi|siang|sore|malam/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'pagi') {
-                            return hour;
-                        } else if (meridiem === 'siang') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'sore' || meridiem === 'malam') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 11) {
-                            return 'pagi';
-                        } else if (hours < 15) {
-                            return 'siang';
-                        } else if (hours < 19) {
-                            return 'sore';
-                        } else {
-                            return 'malam';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Hari ini pukul] LT',
-                        nextDay: '[Besok pukul] LT',
-                        nextWeek: 'dddd [pukul] LT',
-                        lastDay: '[Kemarin pukul] LT',
-                        lastWeek: 'dddd [lalu pukul] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dalam %s',
-                        past: '%s yang lalu',
-                        s: 'beberapa detik',
-                        ss: '%d detik',
-                        m: 'semenit',
-                        mm: '%d menit',
-                        h: 'sejam',
-                        hh: '%d jam',
-                        d: 'sehari',
-                        dd: '%d hari',
-                        M: 'sebulan',
-                        MM: '%d bulan',
-                        y: 'setahun',
-                        yy: '%d tahun',
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
-
-                return id;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/is.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var id = moment.defineLocale('id', {
+        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
+        weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
+        weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
+        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [pukul] HH.mm',
+            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
+        },
+        meridiemParse: /pagi|siang|sore|malam/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'pagi') {
+                return hour;
+            } else if (meridiem === 'siang') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'sore' || meridiem === 'malam') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 11) {
+                return 'pagi';
+            } else if (hours < 15) {
+                return 'siang';
+            } else if (hours < 19) {
+                return 'sore';
+            } else {
+                return 'malam';
+            }
+        },
+        calendar: {
+            sameDay: '[Hari ini pukul] LT',
+            nextDay: '[Besok pukul] LT',
+            nextWeek: 'dddd [pukul] LT',
+            lastDay: '[Kemarin pukul] LT',
+            lastWeek: 'dddd [lalu pukul] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dalam %s',
+            past: '%s yang lalu',
+            s: 'beberapa detik',
+            ss: '%d detik',
+            m: 'semenit',
+            mm: '%d menit',
+            h: 'sejam',
+            hh: '%d jam',
+            d: 'sehari',
+            dd: '%d hari',
+            M: 'sebulan',
+            MM: '%d bulan',
+            y: 'setahun',
+            yy: '%d tahun',
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
+
+    return id;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/is.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/is.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Icelandic [is]
 //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-                //! moment.js locale configuration
+    //! moment.js locale configuration
 
-                function plural(n) {
-                    if (n % 100 === 11) {
-                        return true;
-                    } else if (n % 10 === 1) {
-                        return false;
+    function plural(n) {
+        if (n % 100 === 11) {
+            return true;
+        } else if (n % 10 === 1) {
+            return false;
+        }
+        return true;
+    }
+    function translate(number, withoutSuffix, key, isFuture) {
+        var result = number + ' ';
+        switch (key) {
+            case 's':
+                return withoutSuffix || isFuture
+                    ? 'nokkrar sekúndur'
+                    : 'nokkrum sekúndum';
+            case 'ss':
+                if (plural(number)) {
+                    return (
+                        result +
+                        (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
+                    );
+                }
+                return result + 'sekúnda';
+            case 'm':
+                return withoutSuffix ? 'mínúta' : 'mínútu';
+            case 'mm':
+                if (plural(number)) {
+                    return (
+                        result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
+                    );
+                } else if (withoutSuffix) {
+                    return result + 'mínúta';
+                }
+                return result + 'mínútu';
+            case 'hh':
+                if (plural(number)) {
+                    return (
+                        result +
+                        (withoutSuffix || isFuture
+                            ? 'klukkustundir'
+                            : 'klukkustundum')
+                    );
+                }
+                return result + 'klukkustund';
+            case 'd':
+                if (withoutSuffix) {
+                    return 'dagur';
+                }
+                return isFuture ? 'dag' : 'degi';
+            case 'dd':
+                if (plural(number)) {
+                    if (withoutSuffix) {
+                        return result + 'dagar';
                     }
-                    return true;
+                    return result + (isFuture ? 'daga' : 'dögum');
+                } else if (withoutSuffix) {
+                    return result + 'dagur';
                 }
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 's':
-                            return withoutSuffix || isFuture
-                                ? 'nokkrar sekúndur'
-                                : 'nokkrum sekúndum';
-                        case 'ss':
-                            if (plural(number)) {
-                                return (
-                                    result +
-                                    (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
-                                );
-                            }
-                            return result + 'sekúnda';
-                        case 'm':
-                            return withoutSuffix ? 'mínúta' : 'mínútu';
-                        case 'mm':
-                            if (plural(number)) {
-                                return (
-                                    result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
-                                );
-                            } else if (withoutSuffix) {
-                                return result + 'mínúta';
-                            }
-                            return result + 'mínútu';
-                        case 'hh':
-                            if (plural(number)) {
-                                return (
-                                    result +
-                                    (withoutSuffix || isFuture
-                                        ? 'klukkustundir'
-                                        : 'klukkustundum')
-                                );
-                            }
-                            return result + 'klukkustund';
-                        case 'd':
-                            if (withoutSuffix) {
-                                return 'dagur';
-                            }
-                            return isFuture ? 'dag' : 'degi';
-                        case 'dd':
-                            if (plural(number)) {
-                                if (withoutSuffix) {
-                                    return result + 'dagar';
-                                }
-                                return result + (isFuture ? 'daga' : 'dögum');
-                            } else if (withoutSuffix) {
-                                return result + 'dagur';
-                            }
-                            return result + (isFuture ? 'dag' : 'degi');
-                        case 'M':
-                            if (withoutSuffix) {
-                                return 'mánuður';
-                            }
-                            return isFuture ? 'mánuð' : 'mánuði';
-                        case 'MM':
-                            if (plural(number)) {
-                                if (withoutSuffix) {
-                                    return result + 'mánuðir';
-                                }
-                                return result + (isFuture ? 'mánuði' : 'mánuðum');
-                            } else if (withoutSuffix) {
-                                return result + 'mánuður';
-                            }
-                            return result + (isFuture ? 'mánuð' : 'mánuði');
-                        case 'y':
-                            return withoutSuffix || isFuture ? 'ár' : 'ári';
-                        case 'yy':
-                            if (plural(number)) {
-                                return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
-                            }
-                            return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
+                return result + (isFuture ? 'dag' : 'degi');
+            case 'M':
+                if (withoutSuffix) {
+                    return 'mánuður';
+                }
+                return isFuture ? 'mánuð' : 'mánuði';
+            case 'MM':
+                if (plural(number)) {
+                    if (withoutSuffix) {
+                        return result + 'mánuðir';
                     }
+                    return result + (isFuture ? 'mánuði' : 'mánuðum');
+                } else if (withoutSuffix) {
+                    return result + 'mánuður';
                 }
+                return result + (isFuture ? 'mánuð' : 'mánuði');
+            case 'y':
+                return withoutSuffix || isFuture ? 'ár' : 'ári';
+            case 'yy':
+                if (plural(number)) {
+                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
+                }
+                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
+        }
+    }
 
-                var is = moment.defineLocale('is', {
-                    months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
-                    weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
-                    weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY [kl.] H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[í dag kl.] LT',
-                        nextDay: '[á morgun kl.] LT',
-                        nextWeek: 'dddd [kl.] LT',
-                        lastDay: '[í gær kl.] LT',
-                        lastWeek: '[síðasta] dddd [kl.] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'eftir %s',
-                        past: 'fyrir %s síðan',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: 'klukkustund',
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return is;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/it-ch.js":
-        /*!*********************************************!*\
+    var is = moment.defineLocale('is', {
+        months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
+        weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
+            '_'
+        ),
+        weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
+        weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY [kl.] H:mm',
+            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
+        },
+        calendar: {
+            sameDay: '[í dag kl.] LT',
+            nextDay: '[á morgun kl.] LT',
+            nextWeek: 'dddd [kl.] LT',
+            lastDay: '[í gær kl.] LT',
+            lastWeek: '[síðasta] dddd [kl.] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'eftir %s',
+            past: 'fyrir %s síðan',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: 'klukkustund',
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return is;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/it-ch.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/it-ch.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Italian (Switzerland) [it-ch]
 //! author : xfh : https://github.com/xfh
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var itCh = moment.defineLocale('it-ch', {
-                    months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
-                    weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
-                    weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Oggi alle] LT',
-                        nextDay: '[Domani alle] LT',
-                        nextWeek: 'dddd [alle] LT',
-                        lastDay: '[Ieri alle] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[la scorsa] dddd [alle] LT';
-                                default:
-                                    return '[lo scorso] dddd [alle] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: function (s) {
-                            return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
-                        },
-                        past: '%s fa',
-                        s: 'alcuni secondi',
-                        ss: '%d secondi',
-                        m: 'un minuto',
-                        mm: '%d minuti',
-                        h: "un'ora",
-                        hh: '%d ore',
-                        d: 'un giorno',
-                        dd: '%d giorni',
-                        M: 'un mese',
-                        MM: '%d mesi',
-                        y: 'un anno',
-                        yy: '%d anni',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return itCh;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/it.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var itCh = moment.defineLocale('it-ch', {
+        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
+            '_'
+        ),
+        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
+        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
+            '_'
+        ),
+        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
+        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Oggi alle] LT',
+            nextDay: '[Domani alle] LT',
+            nextWeek: 'dddd [alle] LT',
+            lastDay: '[Ieri alle] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[la scorsa] dddd [alle] LT';
+                    default:
+                        return '[lo scorso] dddd [alle] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: function (s) {
+                return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
+            },
+            past: '%s fa',
+            s: 'alcuni secondi',
+            ss: '%d secondi',
+            m: 'un minuto',
+            mm: '%d minuti',
+            h: "un'ora",
+            hh: '%d ore',
+            d: 'un giorno',
+            dd: '%d giorni',
+            M: 'un mese',
+            MM: '%d mesi',
+            y: 'un anno',
+            yy: '%d anni',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return itCh;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/it.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/it.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Italian [it]
@@ -105836,2731 +105836,2731 @@ THE SOFTWARE.
 //! author: Mattia Larentis: https://github.com/nostalgiaz
 //! author: Marco : https://github.com/Manfre98
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var it = moment.defineLocale('it', {
-                    months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
-                    weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
-                    weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: function () {
-                            return (
-                                '[Oggi a' +
-                                (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
-                                ']LT'
-                            );
-                        },
-                        nextDay: function () {
-                            return (
-                                '[Domani a' +
-                                (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
-                                ']LT'
-                            );
-                        },
-                        nextWeek: function () {
-                            return (
-                                'dddd [a' +
-                                (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
-                                ']LT'
-                            );
-                        },
-                        lastDay: function () {
-                            return (
-                                '[Ieri a' +
-                                (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
-                                ']LT'
-                            );
-                        },
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return (
-                                        '[La scorsa] dddd [a' +
-                                        (this.hours() > 1
-                                            ? 'lle '
-                                            : this.hours() === 0
-                                                ? ' '
-                                                : "ll'") +
-                                        ']LT'
-                                    );
-                                default:
-                                    return (
-                                        '[Lo scorso] dddd [a' +
-                                        (this.hours() > 1
-                                            ? 'lle '
-                                            : this.hours() === 0
-                                                ? ' '
-                                                : "ll'") +
-                                        ']LT'
-                                    );
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'tra %s',
-                        past: '%s fa',
-                        s: 'alcuni secondi',
-                        ss: '%d secondi',
-                        m: 'un minuto',
-                        mm: '%d minuti',
-                        h: "un'ora",
-                        hh: '%d ore',
-                        d: 'un giorno',
-                        dd: '%d giorni',
-                        w: 'una settimana',
-                        ww: '%d settimane',
-                        M: 'un mese',
-                        MM: '%d mesi',
-                        y: 'un anno',
-                        yy: '%d anni',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return it;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ja.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var it = moment.defineLocale('it', {
+        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
+            '_'
+        ),
+        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
+        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
+            '_'
+        ),
+        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
+        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: function () {
+                return (
+                    '[Oggi a' +
+                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
+                    ']LT'
+                );
+            },
+            nextDay: function () {
+                return (
+                    '[Domani a' +
+                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
+                    ']LT'
+                );
+            },
+            nextWeek: function () {
+                return (
+                    'dddd [a' +
+                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
+                    ']LT'
+                );
+            },
+            lastDay: function () {
+                return (
+                    '[Ieri a' +
+                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
+                    ']LT'
+                );
+            },
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return (
+                            '[La scorsa] dddd [a' +
+                            (this.hours() > 1
+                                ? 'lle '
+                                : this.hours() === 0
+                                ? ' '
+                                : "ll'") +
+                            ']LT'
+                        );
+                    default:
+                        return (
+                            '[Lo scorso] dddd [a' +
+                            (this.hours() > 1
+                                ? 'lle '
+                                : this.hours() === 0
+                                ? ' '
+                                : "ll'") +
+                            ']LT'
+                        );
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'tra %s',
+            past: '%s fa',
+            s: 'alcuni secondi',
+            ss: '%d secondi',
+            m: 'un minuto',
+            mm: '%d minuti',
+            h: "un'ora",
+            hh: '%d ore',
+            d: 'un giorno',
+            dd: '%d giorni',
+            w: 'una settimana',
+            ww: '%d settimane',
+            M: 'un mese',
+            MM: '%d mesi',
+            y: 'un anno',
+            yy: '%d anni',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return it;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ja.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ja.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Japanese [ja]
 //! author : LI Long : https://github.com/baryon
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ja = moment.defineLocale('ja', {
-                    eras: [
-                        {
-                            since: '2019-05-01',
-                            offset: 1,
-                            name: '令和',
-                            narrow: 'ã‹¿',
-                            abbr: 'R',
-                        },
-                        {
-                            since: '1989-01-08',
-                            until: '2019-04-30',
-                            offset: 1,
-                            name: '平成',
-                            narrow: '㍻',
-                            abbr: 'H',
-                        },
-                        {
-                            since: '1926-12-25',
-                            until: '1989-01-07',
-                            offset: 1,
-                            name: '昭和',
-                            narrow: '㍼',
-                            abbr: 'S',
-                        },
-                        {
-                            since: '1912-07-30',
-                            until: '1926-12-24',
-                            offset: 1,
-                            name: '大正',
-                            narrow: '㍽',
-                            abbr: 'T',
-                        },
-                        {
-                            since: '1873-01-01',
-                            until: '1912-07-29',
-                            offset: 6,
-                            name: '明治',
-                            narrow: '㍾',
-                            abbr: 'M',
-                        },
-                        {
-                            since: '0001-01-01',
-                            until: '1873-12-31',
-                            offset: 1,
-                            name: '西暦',
-                            narrow: 'AD',
-                            abbr: 'AD',
-                        },
-                        {
-                            since: '0000-12-31',
-                            until: -Infinity,
-                            offset: 1,
-                            name: '紀元前',
-                            narrow: 'BC',
-                            abbr: 'BC',
-                        },
-                    ],
-                    eraYearOrdinalRegex: /(å…ƒ|\d+)å¹´/,
-                    eraYearOrdinalParse: function (input, match) {
-                        return match[1] === 'å…ƒ' ? 1 : parseInt(match[1] || input, 10);
-                    },
-                    months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
-                    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-                        '_'
-                    ),
-                    weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
-                    weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
-                    weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY/MM/DD',
-                        LL: 'YYYY年M月D日',
-                        LLL: 'YYYY年M月D日 HH:mm',
-                        LLLL: 'YYYY年M月D日 dddd HH:mm',
-                        l: 'YYYY/MM/DD',
-                        ll: 'YYYY年M月D日',
-                        lll: 'YYYY年M月D日 HH:mm',
-                        llll: 'YYYY年M月D日(ddd) HH:mm',
-                    },
-                    meridiemParse: /午前|午後/i,
-                    isPM: function (input) {
-                        return input === '午後';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return '午前';
-                        } else {
-                            return '午後';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[今日] LT',
-                        nextDay: '[明日] LT',
-                        nextWeek: function (now) {
-                            if (now.week() !== this.week()) {
-                                return '[来週]dddd LT';
-                            } else {
-                                return 'dddd LT';
-                            }
-                        },
-                        lastDay: '[昨日] LT',
-                        lastWeek: function (now) {
-                            if (this.week() !== now.week()) {
-                                return '[先週]dddd LT';
-                            } else {
-                                return 'dddd LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}æ—¥/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'y':
-                                return number === 1 ? '元年' : number + '年';
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + 'æ—¥';
-                            default:
-                                return number;
-                        }
-                    },
-                    relativeTime: {
-                        future: '%s後',
-                        past: '%s前',
-                        s: '数秒',
-                        ss: '%d秒',
-                        m: '1分',
-                        mm: '%d分',
-                        h: '1時間',
-                        hh: '%d時間',
-                        d: '1æ—¥',
-                        dd: '%dæ—¥',
-                        M: '1ヶ月',
-                        MM: '%dヶ月',
-                        y: '1å¹´',
-                        yy: '%då¹´',
-                    },
-                });
-
-                return ja;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/jv.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ja = moment.defineLocale('ja', {
+        eras: [
+            {
+                since: '2019-05-01',
+                offset: 1,
+                name: '令和',
+                narrow: 'ã‹¿',
+                abbr: 'R',
+            },
+            {
+                since: '1989-01-08',
+                until: '2019-04-30',
+                offset: 1,
+                name: '平成',
+                narrow: '㍻',
+                abbr: 'H',
+            },
+            {
+                since: '1926-12-25',
+                until: '1989-01-07',
+                offset: 1,
+                name: '昭和',
+                narrow: '㍼',
+                abbr: 'S',
+            },
+            {
+                since: '1912-07-30',
+                until: '1926-12-24',
+                offset: 1,
+                name: '大正',
+                narrow: '㍽',
+                abbr: 'T',
+            },
+            {
+                since: '1873-01-01',
+                until: '1912-07-29',
+                offset: 6,
+                name: '明治',
+                narrow: '㍾',
+                abbr: 'M',
+            },
+            {
+                since: '0001-01-01',
+                until: '1873-12-31',
+                offset: 1,
+                name: '西暦',
+                narrow: 'AD',
+                abbr: 'AD',
+            },
+            {
+                since: '0000-12-31',
+                until: -Infinity,
+                offset: 1,
+                name: '紀元前',
+                narrow: 'BC',
+                abbr: 'BC',
+            },
+        ],
+        eraYearOrdinalRegex: /(å…ƒ|\d+)å¹´/,
+        eraYearOrdinalParse: function (input, match) {
+            return match[1] === 'å…ƒ' ? 1 : parseInt(match[1] || input, 10);
+        },
+        months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
+            '_'
+        ),
+        weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
+        weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
+        weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY/MM/DD',
+            LL: 'YYYY年M月D日',
+            LLL: 'YYYY年M月D日 HH:mm',
+            LLLL: 'YYYY年M月D日 dddd HH:mm',
+            l: 'YYYY/MM/DD',
+            ll: 'YYYY年M月D日',
+            lll: 'YYYY年M月D日 HH:mm',
+            llll: 'YYYY年M月D日(ddd) HH:mm',
+        },
+        meridiemParse: /午前|午後/i,
+        isPM: function (input) {
+            return input === '午後';
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return '午前';
+            } else {
+                return '午後';
+            }
+        },
+        calendar: {
+            sameDay: '[今日] LT',
+            nextDay: '[明日] LT',
+            nextWeek: function (now) {
+                if (now.week() !== this.week()) {
+                    return '[来週]dddd LT';
+                } else {
+                    return 'dddd LT';
+                }
+            },
+            lastDay: '[昨日] LT',
+            lastWeek: function (now) {
+                if (this.week() !== now.week()) {
+                    return '[先週]dddd LT';
+                } else {
+                    return 'dddd LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}æ—¥/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'y':
+                    return number === 1 ? '元年' : number + '年';
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + 'æ—¥';
+                default:
+                    return number;
+            }
+        },
+        relativeTime: {
+            future: '%s後',
+            past: '%s前',
+            s: '数秒',
+            ss: '%d秒',
+            m: '1分',
+            mm: '%d分',
+            h: '1時間',
+            hh: '%d時間',
+            d: '1æ—¥',
+            dd: '%dæ—¥',
+            M: '1ヶ月',
+            MM: '%dヶ月',
+            y: '1å¹´',
+            yy: '%då¹´',
+        },
+    });
+
+    return ja;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/jv.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/jv.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Javanese [jv]
 //! author : Rony Lantip : https://github.com/lantip
 //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var jv = moment.defineLocale('jv', {
-                    months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
-                    weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
-                    weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
-                    weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [pukul] HH.mm',
-                        LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
-                    },
-                    meridiemParse: /enjing|siyang|sonten|ndalu/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'enjing') {
-                            return hour;
-                        } else if (meridiem === 'siyang') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 11) {
-                            return 'enjing';
-                        } else if (hours < 15) {
-                            return 'siyang';
-                        } else if (hours < 19) {
-                            return 'sonten';
-                        } else {
-                            return 'ndalu';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Dinten puniko pukul] LT',
-                        nextDay: '[Mbenjang pukul] LT',
-                        nextWeek: 'dddd [pukul] LT',
-                        lastDay: '[Kala wingi pukul] LT',
-                        lastWeek: 'dddd [kepengker pukul] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'wonten ing %s',
-                        past: '%s ingkang kepengker',
-                        s: 'sawetawis detik',
-                        ss: '%d detik',
-                        m: 'setunggal menit',
-                        mm: '%d menit',
-                        h: 'setunggal jam',
-                        hh: '%d jam',
-                        d: 'sedinten',
-                        dd: '%d dinten',
-                        M: 'sewulan',
-                        MM: '%d wulan',
-                        y: 'setaun',
-                        yy: '%d taun',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return jv;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ka.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var jv = moment.defineLocale('jv', {
+        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
+        weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
+        weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
+        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [pukul] HH.mm',
+            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
+        },
+        meridiemParse: /enjing|siyang|sonten|ndalu/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'enjing') {
+                return hour;
+            } else if (meridiem === 'siyang') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 11) {
+                return 'enjing';
+            } else if (hours < 15) {
+                return 'siyang';
+            } else if (hours < 19) {
+                return 'sonten';
+            } else {
+                return 'ndalu';
+            }
+        },
+        calendar: {
+            sameDay: '[Dinten puniko pukul] LT',
+            nextDay: '[Mbenjang pukul] LT',
+            nextWeek: 'dddd [pukul] LT',
+            lastDay: '[Kala wingi pukul] LT',
+            lastWeek: 'dddd [kepengker pukul] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'wonten ing %s',
+            past: '%s ingkang kepengker',
+            s: 'sawetawis detik',
+            ss: '%d detik',
+            m: 'setunggal menit',
+            mm: '%d menit',
+            h: 'setunggal jam',
+            hh: '%d jam',
+            d: 'sedinten',
+            dd: '%d dinten',
+            M: 'sewulan',
+            MM: '%d wulan',
+            y: 'setaun',
+            yy: '%d taun',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return jv;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ka.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ka.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
-//! locale : Georgian [ka]
-//! author : Irakli Janiashvili : https://github.com/IrakliJani
-
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ka = moment.defineLocale('ka', {
-                    months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
-                        '_'
-                    ),
-                    monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
-                    weekdays: {
-                        standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
-                            '_'
-                        ),
-                        format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
-                            '_'
-                        ),
-                        isFormat: /(წინა|შემდეგ)/,
-                    },
-                    weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
-                    weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[დღეს] LT[-ზე]',
-                        nextDay: '[ხვალ] LT[-ზე]',
-                        lastDay: '[გუშინ] LT[-ზე]',
-                        nextWeek: '[შემდეგ] dddd LT[-ზე]',
-                        lastWeek: '[წინა] dddd LT-ზე',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: function (s) {
-                            return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
-                                $0,
-                                $1,
-                                $2
-                            ) {
-                                return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
-                            });
-                        },
-                        past: function (s) {
-                            if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
-                                return s.replace(/(ი|ე)$/, 'ის წინ');
-                            }
-                            if (/წელი/.test(s)) {
-                                return s.replace(/წელი$/, 'წლის წინ');
-                            }
-                            return s;
-                        },
-                        s: 'რამდენიმე წამი',
-                        ss: '%d წამი',
-                        m: 'წუთი',
-                        mm: '%d წუთი',
-                        h: 'საათი',
-                        hh: '%d საათი',
-                        d: 'დღე',
-                        dd: '%d დღე',
-                        M: 'თვე',
-                        MM: '%d თვე',
-                        y: 'წელი',
-                        yy: '%d წელი',
-                    },
-                    dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
-                    ordinal: function (number) {
-                        if (number === 0) {
-                            return number;
-                        }
-                        if (number === 1) {
-                            return number + '-ლი';
-                        }
-                        if (
-                            number < 20 ||
-                            (number <= 100 && number % 20 === 0) ||
-                            number % 100 === 0
-                        ) {
-                            return 'მე-' + number;
-                        }
-                        return number + '-ე';
-                    },
-                    week: {
-                        dow: 1,
-                        doy: 7,
-                    },
+//! locale : Georgian [ka]
+//! author : Irakli Janiashvili : https://github.com/IrakliJani
+
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ka = moment.defineLocale('ka', {
+        months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
+            '_'
+        ),
+        monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
+        weekdays: {
+            standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
+                '_'
+            ),
+            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
+                '_'
+            ),
+            isFormat: /(წინა|შემდეგ)/,
+        },
+        weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
+        weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[დღეს] LT[-ზე]',
+            nextDay: '[ხვალ] LT[-ზე]',
+            lastDay: '[გუშინ] LT[-ზე]',
+            nextWeek: '[შემდეგ] dddd LT[-ზე]',
+            lastWeek: '[წინა] dddd LT-ზე',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: function (s) {
+                return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
+                    $0,
+                    $1,
+                    $2
+                ) {
+                    return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
                 });
+            },
+            past: function (s) {
+                if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
+                    return s.replace(/(ი|ე)$/, 'ის წინ');
+                }
+                if (/წელი/.test(s)) {
+                    return s.replace(/წელი$/, 'წლის წინ');
+                }
+                return s;
+            },
+            s: 'რამდენიმე წამი',
+            ss: '%d წამი',
+            m: 'წუთი',
+            mm: '%d წუთი',
+            h: 'საათი',
+            hh: '%d საათი',
+            d: 'დღე',
+            dd: '%d დღე',
+            M: 'თვე',
+            MM: '%d თვე',
+            y: 'წელი',
+            yy: '%d წელი',
+        },
+        dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
+        ordinal: function (number) {
+            if (number === 0) {
+                return number;
+            }
+            if (number === 1) {
+                return number + '-ლი';
+            }
+            if (
+                number < 20 ||
+                (number <= 100 && number % 20 === 0) ||
+                number % 100 === 0
+            ) {
+                return 'მე-' + number;
+            }
+            return number + '-ე';
+        },
+        week: {
+            dow: 1,
+            doy: 7,
+        },
+    });
 
-                return ka;
+    return ka;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/kk.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/kk.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/kk.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Kazakh [kk]
 //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    0: '-ші',
-                    1: '-ші',
-                    2: '-ші',
-                    3: '-ші',
-                    4: '-ші',
-                    5: '-ші',
-                    6: '-шы',
-                    7: '-ші',
-                    8: '-ші',
-                    9: '-шы',
-                    10: '-шы',
-                    20: '-шы',
-                    30: '-шы',
-                    40: '-шы',
-                    50: '-ші',
-                    60: '-шы',
-                    70: '-ші',
-                    80: '-ші',
-                    90: '-шы',
-                    100: '-ші',
-                };
-
-                var kk = moment.defineLocale('kk', {
-                    months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
-                        '_'
-                    ),
-                    monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
-                    weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
-                    weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Бүгін сағат] LT',
-                        nextDay: '[Ертең сағат] LT',
-                        nextWeek: 'dddd [сағат] LT',
-                        lastDay: '[Кеше сағат] LT',
-                        lastWeek: '[Өткен аптаның] dddd [сағат] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s ішінде',
-                        past: '%s бұрын',
-                        s: 'бірнеше секунд',
-                        ss: '%d секунд',
-                        m: 'бір минут',
-                        mm: '%d минут',
-                        h: 'бір сағат',
-                        hh: '%d сағат',
-                        d: 'бір күн',
-                        dd: '%d күн',
-                        M: 'бір ай',
-                        MM: '%d ай',
-                        y: 'бір жыл',
-                        yy: '%d жыл',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
-                    ordinal: function (number) {
-                        var a = number % 10,
-                            b = number >= 100 ? 100 : null;
-                        return number + (suffixes[number] || suffixes[a] || suffixes[b]);
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return kk;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/km.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        0: '-ші',
+        1: '-ші',
+        2: '-ші',
+        3: '-ші',
+        4: '-ші',
+        5: '-ші',
+        6: '-шы',
+        7: '-ші',
+        8: '-ші',
+        9: '-шы',
+        10: '-шы',
+        20: '-шы',
+        30: '-шы',
+        40: '-шы',
+        50: '-ші',
+        60: '-шы',
+        70: '-ші',
+        80: '-ші',
+        90: '-шы',
+        100: '-ші',
+    };
+
+    var kk = moment.defineLocale('kk', {
+        months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
+            '_'
+        ),
+        monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
+        weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
+            '_'
+        ),
+        weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
+        weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Бүгін сағат] LT',
+            nextDay: '[Ертең сағат] LT',
+            nextWeek: 'dddd [сағат] LT',
+            lastDay: '[Кеше сағат] LT',
+            lastWeek: '[Өткен аптаның] dddd [сағат] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s ішінде',
+            past: '%s бұрын',
+            s: 'бірнеше секунд',
+            ss: '%d секунд',
+            m: 'бір минут',
+            mm: '%d минут',
+            h: 'бір сағат',
+            hh: '%d сағат',
+            d: 'бір күн',
+            dd: '%d күн',
+            M: 'бір ай',
+            MM: '%d ай',
+            y: 'бір жыл',
+            yy: '%d жыл',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
+        ordinal: function (number) {
+            var a = number % 10,
+                b = number >= 100 ? 100 : null;
+            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return kk;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/km.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/km.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Cambodian [km]
 //! author : Kruy Vanna : https://github.com/kruyvanna
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '១',
-                        2: '២',
-                        3: '៣',
-                        4: '៤',
-                        5: '៥',
-                        6: '៦',
-                        7: '៧',
-                        8: '៨',
-                        9: '៩',
-                        0: '០',
-                    },
-                    numberMap = {
-                        '១': '1',
-                        '២': '2',
-                        '៣': '3',
-                        '៤': '4',
-                        '៥': '5',
-                        '៦': '6',
-                        '៧': '7',
-                        '៨': '8',
-                        '៩': '9',
-                        '០': '0',
-                    };
-
-                var km = moment.defineLocale('km', {
-                    months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
-                        '_'
-                    ),
-                    weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
-                    weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
-                    weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ព្រឹក|ល្ងាច/,
-                    isPM: function (input) {
-                        return input === 'ល្ងាច';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ព្រឹក';
-                        } else {
-                            return 'ល្ងាច';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
-                        nextDay: '[ស្អែក ម៉ោង] LT',
-                        nextWeek: 'dddd [ម៉ោង] LT',
-                        lastDay: '[ម្សិលមិញ ម៉ោង] LT',
-                        lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%sទៀត',
-                        past: '%sមុន',
-                        s: 'ប៉ុន្មានវិនាទី',
-                        ss: '%d វិនាទី',
-                        m: 'មួយនាទី',
-                        mm: '%d នាទី',
-                        h: 'មួយម៉ោង',
-                        hh: '%d ម៉ោង',
-                        d: 'មួយថ្ងៃ',
-                        dd: '%d ថ្ងៃ',
-                        M: 'មួយខែ',
-                        MM: '%d ខែ',
-                        y: 'មួយឆ្នាំ',
-                        yy: '%d ឆ្នាំ',
-                    },
-                    dayOfMonthOrdinalParse: /ទី\d{1,2}/,
-                    ordinal: 'ទី%d',
-                    preparse: function (string) {
-                        return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '១',
+            2: '២',
+            3: '៣',
+            4: '៤',
+            5: '៥',
+            6: '៦',
+            7: '៧',
+            8: '៨',
+            9: '៩',
+            0: '០',
+        },
+        numberMap = {
+            '១': '1',
+            '២': '2',
+            '៣': '3',
+            '៤': '4',
+            '៥': '5',
+            '៦': '6',
+            '៧': '7',
+            '៨': '8',
+            '៩': '9',
+            '០': '0',
+        };
+
+    var km = moment.defineLocale('km', {
+        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
+            '_'
+        ),
+        monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
+            '_'
+        ),
+        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
+        weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
+        weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ព្រឹក|ល្ងាច/,
+        isPM: function (input) {
+            return input === 'ល្ងាច';
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ព្រឹក';
+            } else {
+                return 'ល្ងាច';
+            }
+        },
+        calendar: {
+            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
+            nextDay: '[ស្អែក ម៉ោង] LT',
+            nextWeek: 'dddd [ម៉ោង] LT',
+            lastDay: '[ម្សិលមិញ ម៉ោង] LT',
+            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%sទៀត',
+            past: '%sមុន',
+            s: 'ប៉ុន្មានវិនាទី',
+            ss: '%d វិនាទី',
+            m: 'មួយនាទី',
+            mm: '%d នាទី',
+            h: 'មួយម៉ោង',
+            hh: '%d ម៉ោង',
+            d: 'មួយថ្ងៃ',
+            dd: '%d ថ្ងៃ',
+            M: 'មួយខែ',
+            MM: '%d ខែ',
+            y: 'មួយឆ្នាំ',
+            yy: '%d ឆ្នាំ',
+        },
+        dayOfMonthOrdinalParse: /ទី\d{1,2}/,
+        ordinal: 'ទី%d',
+        preparse: function (string) {
+            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return km;
+    return km;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/kn.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/kn.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/kn.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Kannada [kn]
 //! author : Rajeev Naik : https://github.com/rajeevnaikte
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '೧',
-                        2: '೨',
-                        3: '೩',
-                        4: '೪',
-                        5: '೫',
-                        6: '೬',
-                        7: 'à³­',
-                        8: 'à³®',
-                        9: '೯',
-                        0: '೦',
-                    },
-                    numberMap = {
-                        '೧': '1',
-                        '೨': '2',
-                        '೩': '3',
-                        '೪': '4',
-                        '೫': '5',
-                        '೬': '6',
-                        'à³­': '7',
-                        'à³®': '8',
-                        '೯': '9',
-                        '೦': '0',
-                    };
-
-                var kn = moment.defineLocale('kn', {
-                    months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
-                    weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm',
-                        LTS: 'A h:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm',
-                    },
-                    calendar: {
-                        sameDay: '[ಇಂದು] LT',
-                        nextDay: '[ನಾಳೆ] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[ನಿನ್ನೆ] LT',
-                        lastWeek: '[ಕೊನೆಯ] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s ನಂತರ',
-                        past: '%s ಹಿಂದೆ',
-                        s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
-                        ss: '%d ಸೆಕೆಂಡುಗಳು',
-                        m: 'ಒಂದು ನಿಮಿಷ',
-                        mm: '%d ನಿಮಿಷ',
-                        h: 'ಒಂದು ಗಂಟೆ',
-                        hh: '%d ಗಂಟೆ',
-                        d: 'ಒಂದು ದಿನ',
-                        dd: '%d ದಿನ',
-                        M: 'ಒಂದು ತಿಂಗಳು',
-                        MM: '%d ತಿಂಗಳು',
-                        y: 'ಒಂದು ವರ್ಷ',
-                        yy: '%d ವರ್ಷ',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'ರಾತ್ರಿ') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
-                            return hour;
-                        } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'ಸಂಜೆ') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'ರಾತ್ರಿ';
-                        } else if (hour < 10) {
-                            return 'ಬೆಳಿಗ್ಗೆ';
-                        } else if (hour < 17) {
-                            return 'ಮಧ್ಯಾಹ್ನ';
-                        } else if (hour < 20) {
-                            return 'ಸಂಜೆ';
-                        } else {
-                            return 'ರಾತ್ರಿ';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
-                    ordinal: function (number) {
-                        return number + 'ನೇ';
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '೧',
+            2: '೨',
+            3: '೩',
+            4: '೪',
+            5: '೫',
+            6: '೬',
+            7: 'à³­',
+            8: 'à³®',
+            9: '೯',
+            0: '೦',
+        },
+        numberMap = {
+            '೧': '1',
+            '೨': '2',
+            '೩': '3',
+            '೪': '4',
+            '೫': '5',
+            '೬': '6',
+            'à³­': '7',
+            'à³®': '8',
+            '೯': '9',
+            '೦': '0',
+        };
+
+    var kn = moment.defineLocale('kn', {
+        months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
+            '_'
+        ),
+        monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
+            '_'
+        ),
+        weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
+        weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm',
+            LTS: 'A h:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm',
+        },
+        calendar: {
+            sameDay: '[ಇಂದು] LT',
+            nextDay: '[ನಾಳೆ] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[ನಿನ್ನೆ] LT',
+            lastWeek: '[ಕೊನೆಯ] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s ನಂತರ',
+            past: '%s ಹಿಂದೆ',
+            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
+            ss: '%d ಸೆಕೆಂಡುಗಳು',
+            m: 'ಒಂದು ನಿಮಿಷ',
+            mm: '%d ನಿಮಿಷ',
+            h: 'ಒಂದು ಗಂಟೆ',
+            hh: '%d ಗಂಟೆ',
+            d: 'ಒಂದು ದಿನ',
+            dd: '%d ದಿನ',
+            M: 'ಒಂದು ತಿಂಗಳು',
+            MM: '%d ತಿಂಗಳು',
+            y: 'ಒಂದು ವರ್ಷ',
+            yy: '%d ವರ್ಷ',
+        },
+        preparse: function (string) {
+            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'ರಾತ್ರಿ') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
+                return hour;
+            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'ಸಂಜೆ') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'ರಾತ್ರಿ';
+            } else if (hour < 10) {
+                return 'ಬೆಳಿಗ್ಗೆ';
+            } else if (hour < 17) {
+                return 'ಮಧ್ಯಾಹ್ನ';
+            } else if (hour < 20) {
+                return 'ಸಂಜೆ';
+            } else {
+                return 'ರಾತ್ರಿ';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
+        ordinal: function (number) {
+            return number + 'ನೇ';
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return kn;
+    return kn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ko.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/ko.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ko.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Korean [ko]
 //! author : Kyungwook, Park : https://github.com/kyungw00k
 //! author : Jeeeyul Lee <jeeeyul@gmail.com>
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ko = moment.defineLocale('ko', {
-                    months: '1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”'.split('_'),
-                    monthsShort: '1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”'.split(
-                        '_'
-                    ),
-                    weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
-                    weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
-                    weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm',
-                        LTS: 'A h:mm:ss',
-                        L: 'YYYY.MM.DD.',
-                        LL: 'YYYY년 MMMM D일',
-                        LLL: 'YYYY년 MMMM D일 A h:mm',
-                        LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
-                        l: 'YYYY.MM.DD.',
-                        ll: 'YYYY년 MMMM D일',
-                        lll: 'YYYY년 MMMM D일 A h:mm',
-                        llll: 'YYYY년 MMMM D일 dddd A h:mm',
-                    },
-                    calendar: {
-                        sameDay: '오늘 LT',
-                        nextDay: '내일 LT',
-                        nextWeek: 'dddd LT',
-                        lastDay: '어제 LT',
-                        lastWeek: '지난주 dddd LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s 후',
-                        past: '%s ì „',
-                        s: '몇 초',
-                        ss: '%dì´ˆ',
-                        m: '1분',
-                        mm: '%d분',
-                        h: '한 시간',
-                        hh: '%d시간',
-                        d: '하루',
-                        dd: '%d일',
-                        M: '한 달',
-                        MM: '%d달',
-                        y: '일 년',
-                        yy: '%dë…„',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + '일';
-                            case 'M':
-                                return number + 'ì›”';
-                            case 'w':
-                            case 'W':
-                                return number + '주';
-                            default:
-                                return number;
-                        }
-                    },
-                    meridiemParse: /오전|오후/,
-                    isPM: function (token) {
-                        return token === '오후';
-                    },
-                    meridiem: function (hour, minute, isUpper) {
-                        return hour < 12 ? '오전' : '오후';
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ko = moment.defineLocale('ko', {
+        months: '1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”'.split('_'),
+        monthsShort: '1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”'.split(
+            '_'
+        ),
+        weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
+        weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
+        weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm',
+            LTS: 'A h:mm:ss',
+            L: 'YYYY.MM.DD.',
+            LL: 'YYYY년 MMMM D일',
+            LLL: 'YYYY년 MMMM D일 A h:mm',
+            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
+            l: 'YYYY.MM.DD.',
+            ll: 'YYYY년 MMMM D일',
+            lll: 'YYYY년 MMMM D일 A h:mm',
+            llll: 'YYYY년 MMMM D일 dddd A h:mm',
+        },
+        calendar: {
+            sameDay: '오늘 LT',
+            nextDay: '내일 LT',
+            nextWeek: 'dddd LT',
+            lastDay: '어제 LT',
+            lastWeek: '지난주 dddd LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s 후',
+            past: '%s ì „',
+            s: '몇 초',
+            ss: '%dì´ˆ',
+            m: '1분',
+            mm: '%d분',
+            h: '한 시간',
+            hh: '%d시간',
+            d: '하루',
+            dd: '%d일',
+            M: '한 달',
+            MM: '%d달',
+            y: '일 년',
+            yy: '%dë…„',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + '일';
+                case 'M':
+                    return number + 'ì›”';
+                case 'w':
+                case 'W':
+                    return number + '주';
+                default:
+                    return number;
+            }
+        },
+        meridiemParse: /오전|오후/,
+        isPM: function (token) {
+            return token === '오후';
+        },
+        meridiem: function (hour, minute, isUpper) {
+            return hour < 12 ? '오전' : '오후';
+        },
+    });
 
-                return ko;
+    return ko;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ku.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/ku.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ku.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Kurdish [ku]
 //! author : Shahram Mebashar : https://github.com/ShahramMebashar
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: 'Ù¡',
-                        2: 'Ù¢',
-                        3: 'Ù£',
-                        4: 'Ù¤',
-                        5: 'Ù¥',
-                        6: 'Ù¦',
-                        7: 'Ù§',
-                        8: 'Ù¨',
-                        9: 'Ù©',
-                        0: 'Ù ',
-                    },
-                    numberMap = {
-                        'Ù¡': '1',
-                        'Ù¢': '2',
-                        'Ù£': '3',
-                        'Ù¤': '4',
-                        'Ù¥': '5',
-                        'Ù¦': '6',
-                        'Ù§': '7',
-                        'Ù¨': '8',
-                        'Ù©': '9',
-                        'Ù ': '0',
-                    },
-                    months = [
-                        'کانونی دووەم',
-                        'شوبات',
-                        'ئازار',
-                        'نیسان',
-                        'ئایار',
-                        'حوزەیران',
-                        'تەمموز',
-                        'ئاب',
-                        'ئەیلوول',
-                        'تشرینی یەكەم',
-                        'تشرینی دووەم',
-                        'كانونی یەکەم',
-                    ];
-
-                var ku = moment.defineLocale('ku', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
-                        '_'
-                    ),
-                    weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ئێواره‌|به‌یانی/,
-                    isPM: function (input) {
-                        return /ئێواره‌/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'به‌یانی';
-                        } else {
-                            return 'ئێواره‌';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[ئه‌مرۆ كاتژمێر] LT',
-                        nextDay: '[به‌یانی كاتژمێر] LT',
-                        nextWeek: 'dddd [كاتژمێر] LT',
-                        lastDay: '[دوێنێ كاتژمێر] LT',
-                        lastWeek: 'dddd [كاتژمێر] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'له‌ %s',
-                        past: '%s',
-                        s: 'چه‌ند چركه‌یه‌ك',
-                        ss: 'چركه‌ %d',
-                        m: 'یه‌ك خوله‌ك',
-                        mm: '%d خوله‌ك',
-                        h: 'یه‌ك كاتژمێر',
-                        hh: '%d كاتژمێر',
-                        d: 'یه‌ك ڕۆژ',
-                        dd: '%d Ú•Û†Ú˜',
-                        M: 'یه‌ك مانگ',
-                        MM: '%d مانگ',
-                        y: 'یه‌ك ساڵ',
-                        yy: '%d ساڵ',
-                    },
-                    preparse: function (string) {
-                        return string
-                            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
-                                return numberMap[match];
-                            })
-                            .replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string
-                            .replace(/\d/g, function (match) {
-                                return symbolMap[match];
-                            })
-                            .replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return ku;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ky.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: 'Ù¡',
+            2: 'Ù¢',
+            3: 'Ù£',
+            4: 'Ù¤',
+            5: 'Ù¥',
+            6: 'Ù¦',
+            7: 'Ù§',
+            8: 'Ù¨',
+            9: 'Ù©',
+            0: 'Ù ',
+        },
+        numberMap = {
+            'Ù¡': '1',
+            'Ù¢': '2',
+            'Ù£': '3',
+            'Ù¤': '4',
+            'Ù¥': '5',
+            'Ù¦': '6',
+            'Ù§': '7',
+            'Ù¨': '8',
+            'Ù©': '9',
+            'Ù ': '0',
+        },
+        months = [
+            'کانونی دووەم',
+            'شوبات',
+            'ئازار',
+            'نیسان',
+            'ئایار',
+            'حوزەیران',
+            'تەمموز',
+            'ئاب',
+            'ئەیلوول',
+            'تشرینی یەكەم',
+            'تشرینی دووەم',
+            'كانونی یەکەم',
+        ];
+
+    var ku = moment.defineLocale('ku', {
+        months: months,
+        monthsShort: months,
+        weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
+            '_'
+        ),
+        weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
+            '_'
+        ),
+        weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ئێواره‌|به‌یانی/,
+        isPM: function (input) {
+            return /ئێواره‌/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'به‌یانی';
+            } else {
+                return 'ئێواره‌';
+            }
+        },
+        calendar: {
+            sameDay: '[ئه‌مرۆ كاتژمێر] LT',
+            nextDay: '[به‌یانی كاتژمێر] LT',
+            nextWeek: 'dddd [كاتژمێر] LT',
+            lastDay: '[دوێنێ كاتژمێر] LT',
+            lastWeek: 'dddd [كاتژمێر] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'له‌ %s',
+            past: '%s',
+            s: 'چه‌ند چركه‌یه‌ك',
+            ss: 'چركه‌ %d',
+            m: 'یه‌ك خوله‌ك',
+            mm: '%d خوله‌ك',
+            h: 'یه‌ك كاتژمێر',
+            hh: '%d كاتژمێر',
+            d: 'یه‌ك ڕۆژ',
+            dd: '%d Ú•Û†Ú˜',
+            M: 'یه‌ك مانگ',
+            MM: '%d مانگ',
+            y: 'یه‌ك ساڵ',
+            yy: '%d ساڵ',
+        },
+        preparse: function (string) {
+            return string
+                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+                    return numberMap[match];
+                })
+                .replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string
+                .replace(/\d/g, function (match) {
+                    return symbolMap[match];
+                })
+                .replace(/,/g, '،');
+        },
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return ku;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ky.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ky.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Kyrgyz [ky]
 //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    0: '-чү',
-                    1: '-чи',
-                    2: '-чи',
-                    3: '-чү',
-                    4: '-чү',
-                    5: '-чи',
-                    6: '-чы',
-                    7: '-чи',
-                    8: '-чи',
-                    9: '-чу',
-                    10: '-чу',
-                    20: '-чы',
-                    30: '-чу',
-                    40: '-чы',
-                    50: '-чү',
-                    60: '-чы',
-                    70: '-чи',
-                    80: '-чи',
-                    90: '-чу',
-                    100: '-чү',
-                };
-
-                var ky = moment.defineLocale('ky', {
-                    months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
-                        '_'
-                    ),
-                    monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
-                        '_'
-                    ),
-                    weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
-                    weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Бүгүн саат] LT',
-                        nextDay: '[Эртең саат] LT',
-                        nextWeek: 'dddd [саат] LT',
-                        lastDay: '[Кечээ саат] LT',
-                        lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s ичинде',
-                        past: '%s мурун',
-                        s: 'бирнече секунд',
-                        ss: '%d секунд',
-                        m: 'бир мүнөт',
-                        mm: '%d мүнөт',
-                        h: 'бир саат',
-                        hh: '%d саат',
-                        d: 'бир күн',
-                        dd: '%d күн',
-                        M: 'бир ай',
-                        MM: '%d ай',
-                        y: 'бир жыл',
-                        yy: '%d жыл',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
-                    ordinal: function (number) {
-                        var a = number % 10,
-                            b = number >= 100 ? 100 : null;
-                        return number + (suffixes[number] || suffixes[a] || suffixes[b]);
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return ky;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/lb.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        0: '-чү',
+        1: '-чи',
+        2: '-чи',
+        3: '-чү',
+        4: '-чү',
+        5: '-чи',
+        6: '-чы',
+        7: '-чи',
+        8: '-чи',
+        9: '-чу',
+        10: '-чу',
+        20: '-чы',
+        30: '-чу',
+        40: '-чы',
+        50: '-чү',
+        60: '-чы',
+        70: '-чи',
+        80: '-чи',
+        90: '-чу',
+        100: '-чү',
+    };
+
+    var ky = moment.defineLocale('ky', {
+        months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
+            '_'
+        ),
+        monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
+            '_'
+        ),
+        weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
+            '_'
+        ),
+        weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
+        weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Бүгүн саат] LT',
+            nextDay: '[Эртең саат] LT',
+            nextWeek: 'dddd [саат] LT',
+            lastDay: '[Кечээ саат] LT',
+            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s ичинде',
+            past: '%s мурун',
+            s: 'бирнече секунд',
+            ss: '%d секунд',
+            m: 'бир мүнөт',
+            mm: '%d мүнөт',
+            h: 'бир саат',
+            hh: '%d саат',
+            d: 'бир күн',
+            dd: '%d күн',
+            M: 'бир ай',
+            MM: '%d ай',
+            y: 'бир жыл',
+            yy: '%d жыл',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
+        ordinal: function (number) {
+            var a = number % 10,
+                b = number >= 100 ? 100 : null;
+            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return ky;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/lb.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/lb.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Luxembourgish [lb]
 //! author : mweimerskirch : https://github.com/mweimerskirch
 //! author : David Raison : https://github.com/kwisatz
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        m: ['eng Minutt', 'enger Minutt'],
-                        h: ['eng Stonn', 'enger Stonn'],
-                        d: ['een Dag', 'engem Dag'],
-                        M: ['ee Mount', 'engem Mount'],
-                        y: ['ee Joer', 'engem Joer'],
-                    };
-                    return withoutSuffix ? format[key][0] : format[key][1];
-                }
-                function processFutureTime(string) {
-                    var number = string.substr(0, string.indexOf(' '));
-                    if (eifelerRegelAppliesToNumber(number)) {
-                        return 'a ' + string;
-                    }
-                    return 'an ' + string;
-                }
-                function processPastTime(string) {
-                    var number = string.substr(0, string.indexOf(' '));
-                    if (eifelerRegelAppliesToNumber(number)) {
-                        return 'viru ' + string;
-                    }
-                    return 'virun ' + string;
-                }
-                /**
-                 * Returns true if the word before the given number loses the '-n' ending.
-                 * e.g. 'an 10 Deeg' but 'a 5 Deeg'
-                 *
-                 * @param number {integer}
-                 * @returns {boolean}
-                 */
-                function eifelerRegelAppliesToNumber(number) {
-                    number = parseInt(number, 10);
-                    if (isNaN(number)) {
-                        return false;
-                    }
-                    if (number < 0) {
-                        // Negative Number --> always true
-                        return true;
-                    } else if (number < 10) {
-                        // Only 1 digit
-                        if (4 <= number && number <= 7) {
-                            return true;
-                        }
-                        return false;
-                    } else if (number < 100) {
-                        // 2 digits
-                        var lastDigit = number % 10,
-                            firstDigit = number / 10;
-                        if (lastDigit === 0) {
-                            return eifelerRegelAppliesToNumber(firstDigit);
-                        }
-                        return eifelerRegelAppliesToNumber(lastDigit);
-                    } else if (number < 10000) {
-                        // 3 or 4 digits --> recursively check first digit
-                        while (number >= 10) {
-                            number = number / 10;
-                        }
-                        return eifelerRegelAppliesToNumber(number);
-                    } else {
-                        // Anything larger than 4 digits: recursively check first n-3 digits
-                        number = number / 1000;
-                        return eifelerRegelAppliesToNumber(number);
-                    }
-                }
-
-                var lb = moment.defineLocale('lb', {
-                    months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
-                    weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm [Auer]',
-                        LTS: 'H:mm:ss [Auer]',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm [Auer]',
-                        LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
-                    },
-                    calendar: {
-                        sameDay: '[Haut um] LT',
-                        sameElse: 'L',
-                        nextDay: '[Muer um] LT',
-                        nextWeek: 'dddd [um] LT',
-                        lastDay: '[Gëschter um] LT',
-                        lastWeek: function () {
-                            // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
-                            switch (this.day()) {
-                                case 2:
-                                case 4:
-                                    return '[Leschten] dddd [um] LT';
-                                default:
-                                    return '[Leschte] dddd [um] LT';
-                            }
-                        },
-                    },
-                    relativeTime: {
-                        future: processFutureTime,
-                        past: processPastTime,
-                        s: 'e puer Sekonnen',
-                        ss: '%d Sekonnen',
-                        m: processRelativeTime,
-                        mm: '%d Minutten',
-                        h: processRelativeTime,
-                        hh: '%d Stonnen',
-                        d: processRelativeTime,
-                        dd: '%d Deeg',
-                        M: processRelativeTime,
-                        MM: '%d Méint',
-                        y: processRelativeTime,
-                        yy: '%d Joer',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return lb;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            m: ['eng Minutt', 'enger Minutt'],
+            h: ['eng Stonn', 'enger Stonn'],
+            d: ['een Dag', 'engem Dag'],
+            M: ['ee Mount', 'engem Mount'],
+            y: ['ee Joer', 'engem Joer'],
+        };
+        return withoutSuffix ? format[key][0] : format[key][1];
+    }
+    function processFutureTime(string) {
+        var number = string.substr(0, string.indexOf(' '));
+        if (eifelerRegelAppliesToNumber(number)) {
+            return 'a ' + string;
+        }
+        return 'an ' + string;
+    }
+    function processPastTime(string) {
+        var number = string.substr(0, string.indexOf(' '));
+        if (eifelerRegelAppliesToNumber(number)) {
+            return 'viru ' + string;
+        }
+        return 'virun ' + string;
+    }
+    /**
+     * Returns true if the word before the given number loses the '-n' ending.
+     * e.g. 'an 10 Deeg' but 'a 5 Deeg'
+     *
+     * @param number {integer}
+     * @returns {boolean}
+     */
+    function eifelerRegelAppliesToNumber(number) {
+        number = parseInt(number, 10);
+        if (isNaN(number)) {
+            return false;
+        }
+        if (number < 0) {
+            // Negative Number --> always true
+            return true;
+        } else if (number < 10) {
+            // Only 1 digit
+            if (4 <= number && number <= 7) {
+                return true;
+            }
+            return false;
+        } else if (number < 100) {
+            // 2 digits
+            var lastDigit = number % 10,
+                firstDigit = number / 10;
+            if (lastDigit === 0) {
+                return eifelerRegelAppliesToNumber(firstDigit);
+            }
+            return eifelerRegelAppliesToNumber(lastDigit);
+        } else if (number < 10000) {
+            // 3 or 4 digits --> recursively check first digit
+            while (number >= 10) {
+                number = number / 10;
+            }
+            return eifelerRegelAppliesToNumber(number);
+        } else {
+            // Anything larger than 4 digits: recursively check first n-3 digits
+            number = number / 1000;
+            return eifelerRegelAppliesToNumber(number);
+        }
+    }
 
-        /***/ "./node_modules/moment/locale/lo.js":
-        /*!******************************************!*\
+    var lb = moment.defineLocale('lb', {
+        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
+            '_'
+        ),
+        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
+        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm [Auer]',
+            LTS: 'H:mm:ss [Auer]',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm [Auer]',
+            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
+        },
+        calendar: {
+            sameDay: '[Haut um] LT',
+            sameElse: 'L',
+            nextDay: '[Muer um] LT',
+            nextWeek: 'dddd [um] LT',
+            lastDay: '[Gëschter um] LT',
+            lastWeek: function () {
+                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
+                switch (this.day()) {
+                    case 2:
+                    case 4:
+                        return '[Leschten] dddd [um] LT';
+                    default:
+                        return '[Leschte] dddd [um] LT';
+                }
+            },
+        },
+        relativeTime: {
+            future: processFutureTime,
+            past: processPastTime,
+            s: 'e puer Sekonnen',
+            ss: '%d Sekonnen',
+            m: processRelativeTime,
+            mm: '%d Minutten',
+            h: processRelativeTime,
+            hh: '%d Stonnen',
+            d: processRelativeTime,
+            dd: '%d Deeg',
+            M: processRelativeTime,
+            MM: '%d Méint',
+            y: processRelativeTime,
+            yy: '%d Joer',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return lb;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/lo.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/lo.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Lao [lo]
 //! author : Ryan Hart : https://github.com/ryanhart2
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var lo = moment.defineLocale('lo', {
-                    months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
-                        '_'
-                    ),
-                    weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
-                    weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
-                    weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
-                    isPM: function (input) {
-                        return input === 'ຕອນແລງ';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ຕອນເຊົ້າ';
-                        } else {
-                            return 'ຕອນແລງ';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[ມື້ນີ້ເວລາ] LT',
-                        nextDay: '[ມື້ອື່ນເວລາ] LT',
-                        nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
-                        lastDay: '[ມື້ວານນີ້ເວລາ] LT',
-                        lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'ອີກ %s',
-                        past: '%sຜ່ານມາ',
-                        s: 'ບໍ່ເທົ່າໃດວິນາທີ',
-                        ss: '%d ວິນາທີ',
-                        m: '1 ນາທີ',
-                        mm: '%d ນາທີ',
-                        h: '1 ຊົ່ວໂມງ',
-                        hh: '%d ຊົ່ວໂມງ',
-                        d: '1 ມື້',
-                        dd: '%d ມື້',
-                        M: '1 ເດືອນ',
-                        MM: '%d ເດືອນ',
-                        y: '1 ປີ',
-                        yy: '%d ປີ',
-                    },
-                    dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
-                    ordinal: function (number) {
-                        return 'ທີ່' + number;
-                    },
-                });
-
-                return lo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/lt.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var lo = moment.defineLocale('lo', {
+        months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
+            '_'
+        ),
+        monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
+            '_'
+        ),
+        weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
+        weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
+        weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
+        isPM: function (input) {
+            return input === 'ຕອນແລງ';
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ຕອນເຊົ້າ';
+            } else {
+                return 'ຕອນແລງ';
+            }
+        },
+        calendar: {
+            sameDay: '[ມື້ນີ້ເວລາ] LT',
+            nextDay: '[ມື້ອື່ນເວລາ] LT',
+            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
+            lastDay: '[ມື້ວານນີ້ເວລາ] LT',
+            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'ອີກ %s',
+            past: '%sຜ່ານມາ',
+            s: 'ບໍ່ເທົ່າໃດວິນາທີ',
+            ss: '%d ວິນາທີ',
+            m: '1 ນາທີ',
+            mm: '%d ນາທີ',
+            h: '1 ຊົ່ວໂມງ',
+            hh: '%d ຊົ່ວໂມງ',
+            d: '1 ມື້',
+            dd: '%d ມື້',
+            M: '1 ເດືອນ',
+            MM: '%d ເດືອນ',
+            y: '1 ປີ',
+            yy: '%d ປີ',
+        },
+        dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
+        ordinal: function (number) {
+            return 'ທີ່' + number;
+        },
+    });
+
+    return lo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/lt.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/lt.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Lithuanian [lt]
 //! author : Mindaugas Mozūras : https://github.com/mmozuras
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var units = {
-                    ss: 'sekundė_sekundžių_sekundes',
-                    m: 'minutÄ—_minutÄ—s_minutÄ™',
-                    mm: 'minutės_minučių_minutes',
-                    h: 'valanda_valandos_valandÄ…',
-                    hh: 'valandos_valandų_valandas',
-                    d: 'diena_dienos_dienÄ…',
-                    dd: 'dienos_dienų_dienas',
-                    M: 'mėnuo_mėnesio_mėnesį',
-                    MM: 'mėnesiai_mėnesių_mėnesius',
-                    y: 'metai_metų_metus',
-                    yy: 'metai_metų_metus',
-                };
-                function translateSeconds(number, withoutSuffix, key, isFuture) {
-                    if (withoutSuffix) {
-                        return 'kelios sekundÄ—s';
-                    } else {
-                        return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
-                    }
-                }
-                function translateSingular(number, withoutSuffix, key, isFuture) {
-                    return withoutSuffix
-                        ? forms(key)[0]
-                        : isFuture
-                            ? forms(key)[1]
-                            : forms(key)[2];
-                }
-                function special(number) {
-                    return number % 10 === 0 || (number > 10 && number < 20);
-                }
-                function forms(key) {
-                    return units[key].split('_');
-                }
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var result = number + ' ';
-                    if (number === 1) {
-                        return (
-                            result + translateSingular(number, withoutSuffix, key[0], isFuture)
-                        );
-                    } else if (withoutSuffix) {
-                        return result + (special(number) ? forms(key)[1] : forms(key)[0]);
-                    } else {
-                        if (isFuture) {
-                            return result + forms(key)[1];
-                        } else {
-                            return result + (special(number) ? forms(key)[1] : forms(key)[2]);
-                        }
-                    }
-                }
-                var lt = moment.defineLocale('lt', {
-                    months: {
-                        format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
-                            '_'
-                        ),
-                        standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
-                            '_'
-                        ),
-                        isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
-                    },
-                    monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
-                    weekdays: {
-                        format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
-                            '_'
-                        ),
-                        standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
-                            '_'
-                        ),
-                        isFormat: /dddd HH:mm/,
-                    },
-                    weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
-                    weekdaysMin: 'S_P_A_T_K_Pn_Å '.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'YYYY [m.] MMMM D [d.]',
-                        LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
-                        LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
-                        l: 'YYYY-MM-DD',
-                        ll: 'YYYY [m.] MMMM D [d.]',
-                        lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
-                        llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
-                    },
-                    calendar: {
-                        sameDay: '[Å iandien] LT',
-                        nextDay: '[Rytoj] LT',
-                        nextWeek: 'dddd LT',
-                        lastDay: '[Vakar] LT',
-                        lastWeek: '[Praėjusį] dddd LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'po %s',
-                        past: 'prieš %s',
-                        s: translateSeconds,
-                        ss: translate,
-                        m: translateSingular,
-                        mm: translate,
-                        h: translateSingular,
-                        hh: translate,
-                        d: translateSingular,
-                        dd: translate,
-                        M: translateSingular,
-                        MM: translate,
-                        y: translateSingular,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-oji/,
-                    ordinal: function (number) {
-                        return number + '-oji';
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return lt;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/lv.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var units = {
+        ss: 'sekundė_sekundžių_sekundes',
+        m: 'minutÄ—_minutÄ—s_minutÄ™',
+        mm: 'minutės_minučių_minutes',
+        h: 'valanda_valandos_valandÄ…',
+        hh: 'valandos_valandų_valandas',
+        d: 'diena_dienos_dienÄ…',
+        dd: 'dienos_dienų_dienas',
+        M: 'mėnuo_mėnesio_mėnesį',
+        MM: 'mėnesiai_mėnesių_mėnesius',
+        y: 'metai_metų_metus',
+        yy: 'metai_metų_metus',
+    };
+    function translateSeconds(number, withoutSuffix, key, isFuture) {
+        if (withoutSuffix) {
+            return 'kelios sekundÄ—s';
+        } else {
+            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
+        }
+    }
+    function translateSingular(number, withoutSuffix, key, isFuture) {
+        return withoutSuffix
+            ? forms(key)[0]
+            : isFuture
+            ? forms(key)[1]
+            : forms(key)[2];
+    }
+    function special(number) {
+        return number % 10 === 0 || (number > 10 && number < 20);
+    }
+    function forms(key) {
+        return units[key].split('_');
+    }
+    function translate(number, withoutSuffix, key, isFuture) {
+        var result = number + ' ';
+        if (number === 1) {
+            return (
+                result + translateSingular(number, withoutSuffix, key[0], isFuture)
+            );
+        } else if (withoutSuffix) {
+            return result + (special(number) ? forms(key)[1] : forms(key)[0]);
+        } else {
+            if (isFuture) {
+                return result + forms(key)[1];
+            } else {
+                return result + (special(number) ? forms(key)[1] : forms(key)[2]);
+            }
+        }
+    }
+    var lt = moment.defineLocale('lt', {
+        months: {
+            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
+                '_'
+            ),
+            standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
+                '_'
+            ),
+            isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
+        },
+        monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
+        weekdays: {
+            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
+                '_'
+            ),
+            standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
+                '_'
+            ),
+            isFormat: /dddd HH:mm/,
+        },
+        weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
+        weekdaysMin: 'S_P_A_T_K_Pn_Å '.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'YYYY [m.] MMMM D [d.]',
+            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
+            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
+            l: 'YYYY-MM-DD',
+            ll: 'YYYY [m.] MMMM D [d.]',
+            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
+            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
+        },
+        calendar: {
+            sameDay: '[Å iandien] LT',
+            nextDay: '[Rytoj] LT',
+            nextWeek: 'dddd LT',
+            lastDay: '[Vakar] LT',
+            lastWeek: '[Praėjusį] dddd LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'po %s',
+            past: 'prieš %s',
+            s: translateSeconds,
+            ss: translate,
+            m: translateSingular,
+            mm: translate,
+            h: translateSingular,
+            hh: translate,
+            d: translateSingular,
+            dd: translate,
+            M: translateSingular,
+            MM: translate,
+            y: translateSingular,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-oji/,
+        ordinal: function (number) {
+            return number + '-oji';
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return lt;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/lv.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/lv.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Latvian [lv]
 //! author : Kristaps Karlsons : https://github.com/skakri
 //! author : Jānis Elmeris : https://github.com/JanisE
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var units = {
-                    ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
-                    m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
-                    mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
-                    h: 'stundas_stundām_stunda_stundas'.split('_'),
-                    hh: 'stundas_stundām_stunda_stundas'.split('_'),
-                    d: 'dienas_dienām_diena_dienas'.split('_'),
-                    dd: 'dienas_dienām_diena_dienas'.split('_'),
-                    M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
-                    MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
-                    y: 'gada_gadiem_gads_gadi'.split('_'),
-                    yy: 'gada_gadiem_gads_gadi'.split('_'),
-                };
-                /**
-                 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
-                 */
-                function format(forms, number, withoutSuffix) {
-                    if (withoutSuffix) {
-                        // E.g. "21 minūte", "3 minūtes".
-                        return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
-                    } else {
-                        // E.g. "21 minūtes" as in "pēc 21 minūtes".
-                        // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
-                        return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
-                    }
-                }
-                function relativeTimeWithPlural(number, withoutSuffix, key) {
-                    return number + ' ' + format(units[key], number, withoutSuffix);
-                }
-                function relativeTimeWithSingular(number, withoutSuffix, key) {
-                    return format(units[key], number, withoutSuffix);
-                }
-                function relativeSeconds(number, withoutSuffix) {
-                    return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
-                }
-
-                var lv = moment.defineLocale('lv', {
-                    months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
-                    weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
-                    weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY.',
-                        LL: 'YYYY. [gada] D. MMMM',
-                        LLL: 'YYYY. [gada] D. MMMM, HH:mm',
-                        LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Å odien pulksten] LT',
-                        nextDay: '[RÄ«t pulksten] LT',
-                        nextWeek: 'dddd [pulksten] LT',
-                        lastDay: '[Vakar pulksten] LT',
-                        lastWeek: '[Pagājušā] dddd [pulksten] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'pēc %s',
-                        past: 'pirms %s',
-                        s: relativeSeconds,
-                        ss: relativeTimeWithPlural,
-                        m: relativeTimeWithSingular,
-                        mm: relativeTimeWithPlural,
-                        h: relativeTimeWithSingular,
-                        hh: relativeTimeWithPlural,
-                        d: relativeTimeWithSingular,
-                        dd: relativeTimeWithPlural,
-                        M: relativeTimeWithSingular,
-                        MM: relativeTimeWithPlural,
-                        y: relativeTimeWithSingular,
-                        yy: relativeTimeWithPlural,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return lv;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var units = {
+        ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
+        m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
+        mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
+        h: 'stundas_stundām_stunda_stundas'.split('_'),
+        hh: 'stundas_stundām_stunda_stundas'.split('_'),
+        d: 'dienas_dienām_diena_dienas'.split('_'),
+        dd: 'dienas_dienām_diena_dienas'.split('_'),
+        M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
+        MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
+        y: 'gada_gadiem_gads_gadi'.split('_'),
+        yy: 'gada_gadiem_gads_gadi'.split('_'),
+    };
+    /**
+     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
+     */
+    function format(forms, number, withoutSuffix) {
+        if (withoutSuffix) {
+            // E.g. "21 minūte", "3 minūtes".
+            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
+        } else {
+            // E.g. "21 minūtes" as in "pēc 21 minūtes".
+            // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
+            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
+        }
+    }
+    function relativeTimeWithPlural(number, withoutSuffix, key) {
+        return number + ' ' + format(units[key], number, withoutSuffix);
+    }
+    function relativeTimeWithSingular(number, withoutSuffix, key) {
+        return format(units[key], number, withoutSuffix);
+    }
+    function relativeSeconds(number, withoutSuffix) {
+        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
+    }
 
-        /***/ "./node_modules/moment/locale/me.js":
-        /*!******************************************!*\
+    var lv = moment.defineLocale('lv', {
+        months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
+        weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
+            '_'
+        ),
+        weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
+        weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY.',
+            LL: 'YYYY. [gada] D. MMMM',
+            LLL: 'YYYY. [gada] D. MMMM, HH:mm',
+            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
+        },
+        calendar: {
+            sameDay: '[Å odien pulksten] LT',
+            nextDay: '[RÄ«t pulksten] LT',
+            nextWeek: 'dddd [pulksten] LT',
+            lastDay: '[Vakar pulksten] LT',
+            lastWeek: '[Pagājušā] dddd [pulksten] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'pēc %s',
+            past: 'pirms %s',
+            s: relativeSeconds,
+            ss: relativeTimeWithPlural,
+            m: relativeTimeWithSingular,
+            mm: relativeTimeWithPlural,
+            h: relativeTimeWithSingular,
+            hh: relativeTimeWithPlural,
+            d: relativeTimeWithSingular,
+            dd: relativeTimeWithPlural,
+            M: relativeTimeWithSingular,
+            MM: relativeTimeWithPlural,
+            y: relativeTimeWithSingular,
+            yy: relativeTimeWithPlural,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return lv;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/me.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/me.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Montenegrin [me]
 //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var translator = {
-                    words: {
-                        //Different grammatical cases
-                        ss: ['sekund', 'sekunda', 'sekundi'],
-                        m: ['jedan minut', 'jednog minuta'],
-                        mm: ['minut', 'minuta', 'minuta'],
-                        h: ['jedan sat', 'jednog sata'],
-                        hh: ['sat', 'sata', 'sati'],
-                        dd: ['dan', 'dana', 'dana'],
-                        MM: ['mjesec', 'mjeseca', 'mjeseci'],
-                        yy: ['godina', 'godine', 'godina'],
-                    },
-                    correctGrammaticalCase: function (number, wordKey) {
-                        return number === 1
-                            ? wordKey[0]
-                            : number >= 2 && number <= 4
-                                ? wordKey[1]
-                                : wordKey[2];
-                    },
-                    translate: function (number, withoutSuffix, key) {
-                        var wordKey = translator.words[key];
-                        if (key.length === 1) {
-                            return withoutSuffix ? wordKey[0] : wordKey[1];
-                        } else {
-                            return (
-                                number +
-                                ' ' +
-                                translator.correctGrammaticalCase(number, wordKey)
-                            );
-                        }
-                    },
-                };
-
-                var me = moment.defineLocale('me', {
-                    months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
-                    weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[danas u] LT',
-                        nextDay: '[sjutra u] LT',
-
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[u] [nedjelju] [u] LT';
-                                case 3:
-                                    return '[u] [srijedu] [u] LT';
-                                case 6:
-                                    return '[u] [subotu] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[u] dddd [u] LT';
-                            }
-                        },
-                        lastDay: '[juče u] LT',
-                        lastWeek: function () {
-                            var lastWeekDays = [
-                                '[prošle] [nedjelje] [u] LT',
-                                '[prošlog] [ponedjeljka] [u] LT',
-                                '[prošlog] [utorka] [u] LT',
-                                '[prošle] [srijede] [u] LT',
-                                '[prošlog] [četvrtka] [u] LT',
-                                '[prošlog] [petka] [u] LT',
-                                '[prošle] [subote] [u] LT',
-                            ];
-                            return lastWeekDays[this.day()];
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'prije %s',
-                        s: 'nekoliko sekundi',
-                        ss: translator.translate,
-                        m: translator.translate,
-                        mm: translator.translate,
-                        h: translator.translate,
-                        hh: translator.translate,
-                        d: 'dan',
-                        dd: translator.translate,
-                        M: 'mjesec',
-                        MM: translator.translate,
-                        y: 'godinu',
-                        yy: translator.translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return me;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/mi.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var translator = {
+        words: {
+            //Different grammatical cases
+            ss: ['sekund', 'sekunda', 'sekundi'],
+            m: ['jedan minut', 'jednog minuta'],
+            mm: ['minut', 'minuta', 'minuta'],
+            h: ['jedan sat', 'jednog sata'],
+            hh: ['sat', 'sata', 'sati'],
+            dd: ['dan', 'dana', 'dana'],
+            MM: ['mjesec', 'mjeseca', 'mjeseci'],
+            yy: ['godina', 'godine', 'godina'],
+        },
+        correctGrammaticalCase: function (number, wordKey) {
+            return number === 1
+                ? wordKey[0]
+                : number >= 2 && number <= 4
+                ? wordKey[1]
+                : wordKey[2];
+        },
+        translate: function (number, withoutSuffix, key) {
+            var wordKey = translator.words[key];
+            if (key.length === 1) {
+                return withoutSuffix ? wordKey[0] : wordKey[1];
+            } else {
+                return (
+                    number +
+                    ' ' +
+                    translator.correctGrammaticalCase(number, wordKey)
+                );
+            }
+        },
+    };
+
+    var me = moment.defineLocale('me', {
+        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
+            '_'
+        ),
+        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd, D. MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[danas u] LT',
+            nextDay: '[sjutra u] LT',
+
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[u] [nedjelju] [u] LT';
+                    case 3:
+                        return '[u] [srijedu] [u] LT';
+                    case 6:
+                        return '[u] [subotu] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[u] dddd [u] LT';
+                }
+            },
+            lastDay: '[juče u] LT',
+            lastWeek: function () {
+                var lastWeekDays = [
+                    '[prošle] [nedjelje] [u] LT',
+                    '[prošlog] [ponedjeljka] [u] LT',
+                    '[prošlog] [utorka] [u] LT',
+                    '[prošle] [srijede] [u] LT',
+                    '[prošlog] [četvrtka] [u] LT',
+                    '[prošlog] [petka] [u] LT',
+                    '[prošle] [subote] [u] LT',
+                ];
+                return lastWeekDays[this.day()];
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'prije %s',
+            s: 'nekoliko sekundi',
+            ss: translator.translate,
+            m: translator.translate,
+            mm: translator.translate,
+            h: translator.translate,
+            hh: translator.translate,
+            d: 'dan',
+            dd: translator.translate,
+            M: 'mjesec',
+            MM: translator.translate,
+            y: 'godinu',
+            yy: translator.translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return me;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/mi.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/mi.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Maori [mi]
 //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var mi = moment.defineLocale('mi', {
-                    months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
-                        '_'
-                    ),
-                    monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
-                    monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
-                    monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
-                    monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
-                    weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
-                    weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
-                    weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [i] HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[i teie mahana, i] LT',
-                        nextDay: '[apopo i] LT',
-                        nextWeek: 'dddd [i] LT',
-                        lastDay: '[inanahi i] LT',
-                        lastWeek: 'dddd [whakamutunga i] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'i roto i %s',
-                        past: '%s i mua',
-                        s: 'te hēkona ruarua',
-                        ss: '%d hēkona',
-                        m: 'he meneti',
-                        mm: '%d meneti',
-                        h: 'te haora',
-                        hh: '%d haora',
-                        d: 'he ra',
-                        dd: '%d ra',
-                        M: 'he marama',
-                        MM: '%d marama',
-                        y: 'he tau',
-                        yy: '%d tau',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return mi;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/mk.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var mi = moment.defineLocale('mi', {
+        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
+            '_'
+        ),
+        monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
+            '_'
+        ),
+        monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+        monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+        monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+        monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
+        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
+        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
+        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [i] HH:mm',
+            LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
+        },
+        calendar: {
+            sameDay: '[i teie mahana, i] LT',
+            nextDay: '[apopo i] LT',
+            nextWeek: 'dddd [i] LT',
+            lastDay: '[inanahi i] LT',
+            lastWeek: 'dddd [whakamutunga i] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'i roto i %s',
+            past: '%s i mua',
+            s: 'te hēkona ruarua',
+            ss: '%d hēkona',
+            m: 'he meneti',
+            mm: '%d meneti',
+            h: 'te haora',
+            hh: '%d haora',
+            d: 'he ra',
+            dd: '%d ra',
+            M: 'he marama',
+            MM: '%d marama',
+            y: 'he tau',
+            yy: '%d tau',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return mi;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/mk.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/mk.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Macedonian [mk]
 //! author : Borislav Mickov : https://github.com/B0k0
 //! author : Sashko Todorov : https://github.com/bkyceh
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var mk = moment.defineLocale('mk', {
-                    months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
-                        '_'
-                    ),
-                    monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
-                    weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
-                    weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'D.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY H:mm',
-                        LLLL: 'dddd, D MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Денес во] LT',
-                        nextDay: '[Утре во] LT',
-                        nextWeek: '[Во] dddd [во] LT',
-                        lastDay: '[Вчера во] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                case 3:
-                                case 6:
-                                    return '[Изминатата] dddd [во] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[Изминатиот] dddd [во] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'за %s',
-                        past: 'пред %s',
-                        s: 'неколку секунди',
-                        ss: '%d секунди',
-                        m: 'една минута',
-                        mm: '%d минути',
-                        h: 'еден час',
-                        hh: '%d часа',
-                        d: 'еден ден',
-                        dd: '%d дена',
-                        M: 'еден месец',
-                        MM: '%d месеци',
-                        y: 'една година',
-                        yy: '%d години',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
-                    ordinal: function (number) {
-                        var lastDigit = number % 10,
-                            last2Digits = number % 100;
-                        if (number === 0) {
-                            return number + '-ев';
-                        } else if (last2Digits === 0) {
-                            return number + '-ен';
-                        } else if (last2Digits > 10 && last2Digits < 20) {
-                            return number + '-ти';
-                        } else if (lastDigit === 1) {
-                            return number + '-ви';
-                        } else if (lastDigit === 2) {
-                            return number + '-ри';
-                        } else if (lastDigit === 7 || lastDigit === 8) {
-                            return number + '-ми';
-                        } else {
-                            return number + '-ти';
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var mk = moment.defineLocale('mk', {
+        months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
+            '_'
+        ),
+        monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
+        weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
+            '_'
+        ),
+        weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
+        weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'D.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY H:mm',
+            LLLL: 'dddd, D MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[Денес во] LT',
+            nextDay: '[Утре во] LT',
+            nextWeek: '[Во] dddd [во] LT',
+            lastDay: '[Вчера во] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                    case 3:
+                    case 6:
+                        return '[Изминатата] dddd [во] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[Изминатиот] dddd [во] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'за %s',
+            past: 'пред %s',
+            s: 'неколку секунди',
+            ss: '%d секунди',
+            m: 'една минута',
+            mm: '%d минути',
+            h: 'еден час',
+            hh: '%d часа',
+            d: 'еден ден',
+            dd: '%d дена',
+            M: 'еден месец',
+            MM: '%d месеци',
+            y: 'една година',
+            yy: '%d години',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
+        ordinal: function (number) {
+            var lastDigit = number % 10,
+                last2Digits = number % 100;
+            if (number === 0) {
+                return number + '-ев';
+            } else if (last2Digits === 0) {
+                return number + '-ен';
+            } else if (last2Digits > 10 && last2Digits < 20) {
+                return number + '-ти';
+            } else if (lastDigit === 1) {
+                return number + '-ви';
+            } else if (lastDigit === 2) {
+                return number + '-ри';
+            } else if (lastDigit === 7 || lastDigit === 8) {
+                return number + '-ми';
+            } else {
+                return number + '-ти';
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return mk;
+    return mk;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ml.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/ml.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ml.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Malayalam [ml]
 //! author : Floyd Pink : https://github.com/floydpink
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ml = moment.defineLocale('ml', {
-                    months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
-                    weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm -നു',
-                        LTS: 'A h:mm:ss -നു',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm -നു',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
-                    },
-                    calendar: {
-                        sameDay: '[ഇന്ന്] LT',
-                        nextDay: '[നാളെ] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[ഇന്നലെ] LT',
-                        lastWeek: '[കഴിഞ്ഞ] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s കഴിഞ്ഞ്',
-                        past: '%s മുൻപ്',
-                        s: 'അൽപ നിമിഷങ്ങൾ',
-                        ss: '%d സെക്കൻഡ്',
-                        m: 'ഒരു മിനിറ്റ്',
-                        mm: '%d മിനിറ്റ്',
-                        h: 'ഒരു മണിക്കൂർ',
-                        hh: '%d മണിക്കൂർ',
-                        d: 'ഒരു ദിവസം',
-                        dd: '%d ദിവസം',
-                        M: 'ഒരു മാസം',
-                        MM: '%d മാസം',
-                        y: 'ഒരു വർഷം',
-                        yy: '%d വർഷം',
-                    },
-                    meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (
-                            (meridiem === 'രാത്രി' && hour >= 4) ||
-                            meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
-                            meridiem === 'വൈകുന്നേരം'
-                        ) {
-                            return hour + 12;
-                        } else {
-                            return hour;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'രാത്രി';
-                        } else if (hour < 12) {
-                            return 'രാവിലെ';
-                        } else if (hour < 17) {
-                            return 'ഉച്ച കഴിഞ്ഞ്';
-                        } else if (hour < 20) {
-                            return 'വൈകുന്നേരം';
-                        } else {
-                            return 'രാത്രി';
-                        }
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ml = moment.defineLocale('ml', {
+        months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
+            '_'
+        ),
+        monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
+            '_'
+        ),
+        weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
+        weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm -നു',
+            LTS: 'A h:mm:ss -നു',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm -നു',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
+        },
+        calendar: {
+            sameDay: '[ഇന്ന്] LT',
+            nextDay: '[നാളെ] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[ഇന്നലെ] LT',
+            lastWeek: '[കഴിഞ്ഞ] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s കഴിഞ്ഞ്',
+            past: '%s മുൻപ്',
+            s: 'അൽപ നിമിഷങ്ങൾ',
+            ss: '%d സെക്കൻഡ്',
+            m: 'ഒരു മിനിറ്റ്',
+            mm: '%d മിനിറ്റ്',
+            h: 'ഒരു മണിക്കൂർ',
+            hh: '%d മണിക്കൂർ',
+            d: 'ഒരു ദിവസം',
+            dd: '%d ദിവസം',
+            M: 'ഒരു മാസം',
+            MM: '%d മാസം',
+            y: 'ഒരു വർഷം',
+            yy: '%d വർഷം',
+        },
+        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (
+                (meridiem === 'രാത്രി' && hour >= 4) ||
+                meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
+                meridiem === 'വൈകുന്നേരം'
+            ) {
+                return hour + 12;
+            } else {
+                return hour;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'രാത്രി';
+            } else if (hour < 12) {
+                return 'രാവിലെ';
+            } else if (hour < 17) {
+                return 'ഉച്ച കഴിഞ്ഞ്';
+            } else if (hour < 20) {
+                return 'വൈകുന്നേരം';
+            } else {
+                return 'രാത്രി';
+            }
+        },
+    });
 
-                return ml;
+    return ml;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/mn.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/mn.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/mn.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Mongolian [mn]
 //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function translate(number, withoutSuffix, key, isFuture) {
-                    switch (key) {
-                        case 's':
-                            return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
-                        case 'ss':
-                            return number + (withoutSuffix ? ' секунд' : ' секундын');
-                        case 'm':
-                        case 'mm':
-                            return number + (withoutSuffix ? ' минут' : ' минутын');
-                        case 'h':
-                        case 'hh':
-                            return number + (withoutSuffix ? ' цаг' : ' цагийн');
-                        case 'd':
-                        case 'dd':
-                            return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
-                        case 'M':
-                        case 'MM':
-                            return number + (withoutSuffix ? ' сар' : ' сарын');
-                        case 'y':
-                        case 'yy':
-                            return number + (withoutSuffix ? ' жил' : ' жилийн');
-                        default:
-                            return number;
-                    }
-                }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function translate(number, withoutSuffix, key, isFuture) {
+        switch (key) {
+            case 's':
+                return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
+            case 'ss':
+                return number + (withoutSuffix ? ' секунд' : ' секундын');
+            case 'm':
+            case 'mm':
+                return number + (withoutSuffix ? ' минут' : ' минутын');
+            case 'h':
+            case 'hh':
+                return number + (withoutSuffix ? ' цаг' : ' цагийн');
+            case 'd':
+            case 'dd':
+                return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
+            case 'M':
+            case 'MM':
+                return number + (withoutSuffix ? ' сар' : ' сарын');
+            case 'y':
+            case 'yy':
+                return number + (withoutSuffix ? ' жил' : ' жилийн');
+            default:
+                return number;
+        }
+    }
 
-                var mn = moment.defineLocale('mn', {
-                    months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
-                        '_'
-                    ),
-                    monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
-                    weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
-                    weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'YYYY оны MMMMын D',
-                        LLL: 'YYYY оны MMMMын D HH:mm',
-                        LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
-                    },
-                    meridiemParse: /ҮӨ|ҮХ/i,
-                    isPM: function (input) {
-                        return input === 'ҮХ';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'Ò®Ó¨';
-                        } else {
-                            return 'ҮХ';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Өнөөдөр] LT',
-                        nextDay: '[Маргааш] LT',
-                        nextWeek: '[Ирэх] dddd LT',
-                        lastDay: '[Өчигдөр] LT',
-                        lastWeek: '[Өнгөрсөн] dddd LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s дараа',
-                        past: '%s өмнө',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + ' өдөр';
-                            default:
-                                return number;
-                        }
-                    },
-                });
+    var mn = moment.defineLocale('mn', {
+        months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
+            '_'
+        ),
+        monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
+        weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
+        weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'YYYY оны MMMMын D',
+            LLL: 'YYYY оны MMMMын D HH:mm',
+            LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
+        },
+        meridiemParse: /ҮӨ|ҮХ/i,
+        isPM: function (input) {
+            return input === 'ҮХ';
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'Ò®Ó¨';
+            } else {
+                return 'ҮХ';
+            }
+        },
+        calendar: {
+            sameDay: '[Өнөөдөр] LT',
+            nextDay: '[Маргааш] LT',
+            nextWeek: '[Ирэх] dddd LT',
+            lastDay: '[Өчигдөр] LT',
+            lastWeek: '[Өнгөрсөн] dddd LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s дараа',
+            past: '%s өмнө',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + ' өдөр';
+                default:
+                    return number;
+            }
+        },
+    });
 
-                return mn;
+    return mn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/mr.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/mr.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/mr.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Marathi [mr]
 //! author : Harshad Kale : https://github.com/kalehv
 //! author : Vivek Athalye : https://github.com/vnathalye
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '१',
-                        2: '२',
-                        3: '३',
-                        4: '४',
-                        5: '५',
-                        6: '६',
-                        7: '७',
-                        8: '८',
-                        9: '९',
-                        0: '०',
-                    },
-                    numberMap = {
-                        '१': '1',
-                        '२': '2',
-                        '३': '3',
-                        '४': '4',
-                        '५': '5',
-                        '६': '6',
-                        '७': '7',
-                        '८': '8',
-                        '९': '9',
-                        '०': '0',
-                    };
-
-                function relativeTimeMr(number, withoutSuffix, string, isFuture) {
-                    var output = '';
-                    if (withoutSuffix) {
-                        switch (string) {
-                            case 's':
-                                output = 'काही सेकंद';
-                                break;
-                            case 'ss':
-                                output = '%d सेकंद';
-                                break;
-                            case 'm':
-                                output = 'एक मिनिट';
-                                break;
-                            case 'mm':
-                                output = '%d मिनिटे';
-                                break;
-                            case 'h':
-                                output = 'एक तास';
-                                break;
-                            case 'hh':
-                                output = '%d तास';
-                                break;
-                            case 'd':
-                                output = 'एक दिवस';
-                                break;
-                            case 'dd':
-                                output = '%d दिवस';
-                                break;
-                            case 'M':
-                                output = 'एक महिना';
-                                break;
-                            case 'MM':
-                                output = '%d महिने';
-                                break;
-                            case 'y':
-                                output = 'एक वर्ष';
-                                break;
-                            case 'yy':
-                                output = '%d वर्षे';
-                                break;
-                        }
-                    } else {
-                        switch (string) {
-                            case 's':
-                                output = 'काही सेकंदां';
-                                break;
-                            case 'ss':
-                                output = '%d सेकंदां';
-                                break;
-                            case 'm':
-                                output = 'एका मिनिटा';
-                                break;
-                            case 'mm':
-                                output = '%d मिनिटां';
-                                break;
-                            case 'h':
-                                output = 'एका तासा';
-                                break;
-                            case 'hh':
-                                output = '%d तासां';
-                                break;
-                            case 'd':
-                                output = 'एका दिवसा';
-                                break;
-                            case 'dd':
-                                output = '%d दिवसां';
-                                break;
-                            case 'M':
-                                output = 'एका महिन्या';
-                                break;
-                            case 'MM':
-                                output = '%d महिन्यां';
-                                break;
-                            case 'y':
-                                output = 'एका वर्षा';
-                                break;
-                            case 'yy':
-                                output = '%d वर्षां';
-                                break;
-                        }
-                    }
-                    return output.replace(/%d/i, number);
-                }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '१',
+            2: '२',
+            3: '३',
+            4: '४',
+            5: '५',
+            6: '६',
+            7: '७',
+            8: '८',
+            9: '९',
+            0: '०',
+        },
+        numberMap = {
+            '१': '1',
+            '२': '2',
+            '३': '3',
+            '४': '4',
+            '५': '5',
+            '६': '6',
+            '७': '7',
+            '८': '8',
+            '९': '9',
+            '०': '0',
+        };
+
+    function relativeTimeMr(number, withoutSuffix, string, isFuture) {
+        var output = '';
+        if (withoutSuffix) {
+            switch (string) {
+                case 's':
+                    output = 'काही सेकंद';
+                    break;
+                case 'ss':
+                    output = '%d सेकंद';
+                    break;
+                case 'm':
+                    output = 'एक मिनिट';
+                    break;
+                case 'mm':
+                    output = '%d मिनिटे';
+                    break;
+                case 'h':
+                    output = 'एक तास';
+                    break;
+                case 'hh':
+                    output = '%d तास';
+                    break;
+                case 'd':
+                    output = 'एक दिवस';
+                    break;
+                case 'dd':
+                    output = '%d दिवस';
+                    break;
+                case 'M':
+                    output = 'एक महिना';
+                    break;
+                case 'MM':
+                    output = '%d महिने';
+                    break;
+                case 'y':
+                    output = 'एक वर्ष';
+                    break;
+                case 'yy':
+                    output = '%d वर्षे';
+                    break;
+            }
+        } else {
+            switch (string) {
+                case 's':
+                    output = 'काही सेकंदां';
+                    break;
+                case 'ss':
+                    output = '%d सेकंदां';
+                    break;
+                case 'm':
+                    output = 'एका मिनिटा';
+                    break;
+                case 'mm':
+                    output = '%d मिनिटां';
+                    break;
+                case 'h':
+                    output = 'एका तासा';
+                    break;
+                case 'hh':
+                    output = '%d तासां';
+                    break;
+                case 'd':
+                    output = 'एका दिवसा';
+                    break;
+                case 'dd':
+                    output = '%d दिवसां';
+                    break;
+                case 'M':
+                    output = 'एका महिन्या';
+                    break;
+                case 'MM':
+                    output = '%d महिन्यां';
+                    break;
+                case 'y':
+                    output = 'एका वर्षा';
+                    break;
+                case 'yy':
+                    output = '%d वर्षां';
+                    break;
+            }
+        }
+        return output.replace(/%d/i, number);
+    }
 
-                var mr = moment.defineLocale('mr', {
-                    months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
-                        '_'
-                    ),
-                    monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
-                    weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
-                    weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm वाजता',
-                        LTS: 'A h:mm:ss वाजता',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm वाजता',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
-                    },
-                    calendar: {
-                        sameDay: '[आज] LT',
-                        nextDay: '[उद्या] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[काल] LT',
-                        lastWeek: '[मागील] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%sमध्ये',
-                        past: '%sपूर्वी',
-                        s: relativeTimeMr,
-                        ss: relativeTimeMr,
-                        m: relativeTimeMr,
-                        mm: relativeTimeMr,
-                        h: relativeTimeMr,
-                        hh: relativeTimeMr,
-                        d: relativeTimeMr,
-                        dd: relativeTimeMr,
-                        M: relativeTimeMr,
-                        MM: relativeTimeMr,
-                        y: relativeTimeMr,
-                        yy: relativeTimeMr,
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[१२३४५६७८९०]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
-                            return hour;
-                        } else if (
-                            meridiem === 'दुपारी' ||
-                            meridiem === 'सायंकाळी' ||
-                            meridiem === 'रात्री'
-                        ) {
-                            return hour >= 12 ? hour : hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour >= 0 && hour < 6) {
-                            return 'पहाटे';
-                        } else if (hour < 12) {
-                            return 'सकाळी';
-                        } else if (hour < 17) {
-                            return 'दुपारी';
-                        } else if (hour < 20) {
-                            return 'सायंकाळी';
-                        } else {
-                            return 'रात्री';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+    var mr = moment.defineLocale('mr', {
+        months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
+            '_'
+        ),
+        monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
+        weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
+        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm वाजता',
+            LTS: 'A h:mm:ss वाजता',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm वाजता',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
+        },
+        calendar: {
+            sameDay: '[आज] LT',
+            nextDay: '[उद्या] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[काल] LT',
+            lastWeek: '[मागील] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%sमध्ये',
+            past: '%sपूर्वी',
+            s: relativeTimeMr,
+            ss: relativeTimeMr,
+            m: relativeTimeMr,
+            mm: relativeTimeMr,
+            h: relativeTimeMr,
+            hh: relativeTimeMr,
+            d: relativeTimeMr,
+            dd: relativeTimeMr,
+            M: relativeTimeMr,
+            MM: relativeTimeMr,
+            y: relativeTimeMr,
+            yy: relativeTimeMr,
+        },
+        preparse: function (string) {
+            return string.replace(/[१२३४५६७८९०]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
+                return hour;
+            } else if (
+                meridiem === 'दुपारी' ||
+                meridiem === 'सायंकाळी' ||
+                meridiem === 'रात्री'
+            ) {
+                return hour >= 12 ? hour : hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour >= 0 && hour < 6) {
+                return 'पहाटे';
+            } else if (hour < 12) {
+                return 'सकाळी';
+            } else if (hour < 17) {
+                return 'दुपारी';
+            } else if (hour < 20) {
+                return 'सायंकाळी';
+            } else {
+                return 'रात्री';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return mr;
+    return mr;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ms-my.js":
-        /*!*********************************************!*\
+/***/ "./node_modules/moment/locale/ms-my.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ms-my.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Malay [ms-my]
 //! note : DEPRECATED, the correct one is [ms]
 //! author : Weldan Jamili : https://github.com/weldan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var msMy = moment.defineLocale('ms-my', {
-                    months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
-                    weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
-                    weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
-                    weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [pukul] HH.mm',
-                        LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
-                    },
-                    meridiemParse: /pagi|tengahari|petang|malam/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'pagi') {
-                            return hour;
-                        } else if (meridiem === 'tengahari') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'petang' || meridiem === 'malam') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 11) {
-                            return 'pagi';
-                        } else if (hours < 15) {
-                            return 'tengahari';
-                        } else if (hours < 19) {
-                            return 'petang';
-                        } else {
-                            return 'malam';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Hari ini pukul] LT',
-                        nextDay: '[Esok pukul] LT',
-                        nextWeek: 'dddd [pukul] LT',
-                        lastDay: '[Kelmarin pukul] LT',
-                        lastWeek: 'dddd [lepas pukul] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dalam %s',
-                        past: '%s yang lepas',
-                        s: 'beberapa saat',
-                        ss: '%d saat',
-                        m: 'seminit',
-                        mm: '%d minit',
-                        h: 'sejam',
-                        hh: '%d jam',
-                        d: 'sehari',
-                        dd: '%d hari',
-                        M: 'sebulan',
-                        MM: '%d bulan',
-                        y: 'setahun',
-                        yy: '%d tahun',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return msMy;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ms.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var msMy = moment.defineLocale('ms-my', {
+        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
+        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
+        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
+        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [pukul] HH.mm',
+            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
+        },
+        meridiemParse: /pagi|tengahari|petang|malam/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'pagi') {
+                return hour;
+            } else if (meridiem === 'tengahari') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'petang' || meridiem === 'malam') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 11) {
+                return 'pagi';
+            } else if (hours < 15) {
+                return 'tengahari';
+            } else if (hours < 19) {
+                return 'petang';
+            } else {
+                return 'malam';
+            }
+        },
+        calendar: {
+            sameDay: '[Hari ini pukul] LT',
+            nextDay: '[Esok pukul] LT',
+            nextWeek: 'dddd [pukul] LT',
+            lastDay: '[Kelmarin pukul] LT',
+            lastWeek: 'dddd [lepas pukul] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dalam %s',
+            past: '%s yang lepas',
+            s: 'beberapa saat',
+            ss: '%d saat',
+            m: 'seminit',
+            mm: '%d minit',
+            h: 'sejam',
+            hh: '%d jam',
+            d: 'sehari',
+            dd: '%d hari',
+            M: 'sebulan',
+            MM: '%d bulan',
+            y: 'setahun',
+            yy: '%d tahun',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return msMy;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ms.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ms.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Malay [ms]
 //! author : Weldan Jamili : https://github.com/weldan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ms = moment.defineLocale('ms', {
-                    months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
-                    weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
-                    weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
-                    weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [pukul] HH.mm',
-                        LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
-                    },
-                    meridiemParse: /pagi|tengahari|petang|malam/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'pagi') {
-                            return hour;
-                        } else if (meridiem === 'tengahari') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'petang' || meridiem === 'malam') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 11) {
-                            return 'pagi';
-                        } else if (hours < 15) {
-                            return 'tengahari';
-                        } else if (hours < 19) {
-                            return 'petang';
-                        } else {
-                            return 'malam';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[Hari ini pukul] LT',
-                        nextDay: '[Esok pukul] LT',
-                        nextWeek: 'dddd [pukul] LT',
-                        lastDay: '[Kelmarin pukul] LT',
-                        lastWeek: 'dddd [lepas pukul] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dalam %s',
-                        past: '%s yang lepas',
-                        s: 'beberapa saat',
-                        ss: '%d saat',
-                        m: 'seminit',
-                        mm: '%d minit',
-                        h: 'sejam',
-                        hh: '%d jam',
-                        d: 'sehari',
-                        dd: '%d hari',
-                        M: 'sebulan',
-                        MM: '%d bulan',
-                        y: 'setahun',
-                        yy: '%d tahun',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return ms;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/mt.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ms = moment.defineLocale('ms', {
+        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
+        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
+        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
+        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [pukul] HH.mm',
+            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
+        },
+        meridiemParse: /pagi|tengahari|petang|malam/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'pagi') {
+                return hour;
+            } else if (meridiem === 'tengahari') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'petang' || meridiem === 'malam') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 11) {
+                return 'pagi';
+            } else if (hours < 15) {
+                return 'tengahari';
+            } else if (hours < 19) {
+                return 'petang';
+            } else {
+                return 'malam';
+            }
+        },
+        calendar: {
+            sameDay: '[Hari ini pukul] LT',
+            nextDay: '[Esok pukul] LT',
+            nextWeek: 'dddd [pukul] LT',
+            lastDay: '[Kelmarin pukul] LT',
+            lastWeek: 'dddd [lepas pukul] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dalam %s',
+            past: '%s yang lepas',
+            s: 'beberapa saat',
+            ss: '%d saat',
+            m: 'seminit',
+            mm: '%d minit',
+            h: 'sejam',
+            hh: '%d jam',
+            d: 'sehari',
+            dd: '%d hari',
+            M: 'sebulan',
+            MM: '%d bulan',
+            y: 'setahun',
+            yy: '%d tahun',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return ms;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/mt.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/mt.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Maltese (Malta) [mt]
 //! author : Alessandro Maruccia : https://github.com/alesma
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var mt = moment.defineLocale('mt', {
-                    months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
-                    weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
-                    weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Illum fil-]LT',
-                        nextDay: '[Għada fil-]LT',
-                        nextWeek: 'dddd [fil-]LT',
-                        lastDay: '[Il-bieraħ fil-]LT',
-                        lastWeek: 'dddd [li għadda] [fil-]LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'f’ %s',
-                        past: '%s ilu',
-                        s: 'ftit sekondi',
-                        ss: '%d sekondi',
-                        m: 'minuta',
-                        mm: '%d minuti',
-                        h: 'siegħa',
-                        hh: '%d siegħat',
-                        d: 'Ä¡urnata',
-                        dd: '%d Ä¡ranet',
-                        M: 'xahar',
-                        MM: '%d xhur',
-                        y: 'sena',
-                        yy: '%d sni',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return mt;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/my.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var mt = moment.defineLocale('mt', {
+        months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
+        weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
+            '_'
+        ),
+        weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
+        weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Illum fil-]LT',
+            nextDay: '[Għada fil-]LT',
+            nextWeek: 'dddd [fil-]LT',
+            lastDay: '[Il-bieraħ fil-]LT',
+            lastWeek: 'dddd [li għadda] [fil-]LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'f’ %s',
+            past: '%s ilu',
+            s: 'ftit sekondi',
+            ss: '%d sekondi',
+            m: 'minuta',
+            mm: '%d minuti',
+            h: 'siegħa',
+            hh: '%d siegħat',
+            d: 'Ä¡urnata',
+            dd: '%d Ä¡ranet',
+            M: 'xahar',
+            MM: '%d xhur',
+            y: 'sena',
+            yy: '%d sni',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return mt;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/my.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/my.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Burmese [my]
@@ -108568,110 +108568,110 @@ THE SOFTWARE.
 //! author : David Rossellat : https://github.com/gholadr
 //! author : Tin Aung Lin : https://github.com/thanyawzinmin
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '၁',
-                        2: '၂',
-                        3: '၃',
-                        4: '၄',
-                        5: '၅',
-                        6: '၆',
-                        7: '၇',
-                        8: '၈',
-                        9: '၉',
-                        0: '၀',
-                    },
-                    numberMap = {
-                        '၁': '1',
-                        '၂': '2',
-                        '၃': '3',
-                        '၄': '4',
-                        '၅': '5',
-                        '၆': '6',
-                        '၇': '7',
-                        '၈': '8',
-                        '၉': '9',
-                        '၀': '0',
-                    };
-
-                var my = moment.defineLocale('my', {
-                    months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
-                    weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
-                    weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
-
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[ယနေ.] LT [မှာ]',
-                        nextDay: '[မနက်ဖြန်] LT [မှာ]',
-                        nextWeek: 'dddd LT [မှာ]',
-                        lastDay: '[မနေ.က] LT [မှာ]',
-                        lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'လာမည့် %s မှာ',
-                        past: 'လွန်ခဲ့သော %s က',
-                        s: 'စက္ကန်.အနည်းငယ်',
-                        ss: '%d စက္ကန့်',
-                        m: 'တစ်မိနစ်',
-                        mm: '%d မိနစ်',
-                        h: 'တစ်နာရီ',
-                        hh: '%d နာရီ',
-                        d: 'တစ်ရက်',
-                        dd: '%d ရက်',
-                        M: 'တစ်လ',
-                        MM: '%d လ',
-                        y: 'တစ်နှစ်',
-                        yy: '%d နှစ်',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '၁',
+            2: '၂',
+            3: '၃',
+            4: '၄',
+            5: '၅',
+            6: '၆',
+            7: '၇',
+            8: '၈',
+            9: '၉',
+            0: '၀',
+        },
+        numberMap = {
+            '၁': '1',
+            '၂': '2',
+            '၃': '3',
+            '၄': '4',
+            '၅': '5',
+            '၆': '6',
+            '၇': '7',
+            '၈': '8',
+            '၉': '9',
+            '၀': '0',
+        };
+
+    var my = moment.defineLocale('my', {
+        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
+            '_'
+        ),
+        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
+        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
+            '_'
+        ),
+        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
+        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
+
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[ယနေ.] LT [မှာ]',
+            nextDay: '[မနက်ဖြန်] LT [မှာ]',
+            nextWeek: 'dddd LT [မှာ]',
+            lastDay: '[မနေ.က] LT [မှာ]',
+            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'လာမည့် %s မှာ',
+            past: 'လွန်ခဲ့သော %s က',
+            s: 'စက္ကန်.အနည်းငယ်',
+            ss: '%d စက္ကန့်',
+            m: 'တစ်မိနစ်',
+            mm: '%d မိနစ်',
+            h: 'တစ်နာရီ',
+            hh: '%d နာရီ',
+            d: 'တစ်ရက်',
+            dd: '%d ရက်',
+            M: 'တစ်လ',
+            MM: '%d လ',
+            y: 'တစ်နှစ်',
+            yy: '%d နှစ်',
+        },
+        preparse: function (string) {
+            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return my;
+    return my;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/nb.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/nb.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/nb.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Norwegian Bokmål [nb]
@@ -108679,1108 +108679,1108 @@ THE SOFTWARE.
 //!           Sigurd Gartmann : https://github.com/sigurdga
 //!           Stephen Ramthun : https://github.com/stephenramthun
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var nb = moment.defineLocale('nb', {
-                    months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
-                    weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
-                    weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY [kl.] HH:mm',
-                        LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[i dag kl.] LT',
-                        nextDay: '[i morgen kl.] LT',
-                        nextWeek: 'dddd [kl.] LT',
-                        lastDay: '[i går kl.] LT',
-                        lastWeek: '[forrige] dddd [kl.] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'om %s',
-                        past: '%s siden',
-                        s: 'noen sekunder',
-                        ss: '%d sekunder',
-                        m: 'ett minutt',
-                        mm: '%d minutter',
-                        h: 'en time',
-                        hh: '%d timer',
-                        d: 'en dag',
-                        dd: '%d dager',
-                        w: 'en uke',
-                        ww: '%d uker',
-                        M: 'en måned',
-                        MM: '%d måneder',
-                        y: 'ett år',
-                        yy: '%d år',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return nb;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ne.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var nb = moment.defineLocale('nb', {
+        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
+        weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
+        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY [kl.] HH:mm',
+            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
+        },
+        calendar: {
+            sameDay: '[i dag kl.] LT',
+            nextDay: '[i morgen kl.] LT',
+            nextWeek: 'dddd [kl.] LT',
+            lastDay: '[i går kl.] LT',
+            lastWeek: '[forrige] dddd [kl.] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'om %s',
+            past: '%s siden',
+            s: 'noen sekunder',
+            ss: '%d sekunder',
+            m: 'ett minutt',
+            mm: '%d minutter',
+            h: 'en time',
+            hh: '%d timer',
+            d: 'en dag',
+            dd: '%d dager',
+            w: 'en uke',
+            ww: '%d uker',
+            M: 'en måned',
+            MM: '%d måneder',
+            y: 'ett år',
+            yy: '%d år',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return nb;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ne.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ne.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Nepalese [ne]
 //! author : suvash : https://github.com/suvash
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '१',
-                        2: '२',
-                        3: '३',
-                        4: '४',
-                        5: '५',
-                        6: '६',
-                        7: '७',
-                        8: '८',
-                        9: '९',
-                        0: '०',
-                    },
-                    numberMap = {
-                        '१': '1',
-                        '२': '2',
-                        '३': '3',
-                        '४': '4',
-                        '५': '5',
-                        '६': '6',
-                        '७': '7',
-                        '८': '8',
-                        '९': '9',
-                        '०': '0',
-                    };
-
-                var ne = moment.defineLocale('ne', {
-                    months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
-                        '_'
-                    ),
-                    monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
-                    weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'Aको h:mm बजे',
-                        LTS: 'Aको h:mm:ss बजे',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, Aको h:mm बजे',
-                        LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[१२३४५६७८९०]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'राति') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'बिहान') {
-                            return hour;
-                        } else if (meridiem === 'दिउँसो') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'साँझ') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 3) {
-                            return 'राति';
-                        } else if (hour < 12) {
-                            return 'बिहान';
-                        } else if (hour < 16) {
-                            return 'दिउँसो';
-                        } else if (hour < 20) {
-                            return 'साँझ';
-                        } else {
-                            return 'राति';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[आज] LT',
-                        nextDay: '[भोलि] LT',
-                        nextWeek: '[आउँदो] dddd[,] LT',
-                        lastDay: '[हिजो] LT',
-                        lastWeek: '[गएको] dddd[,] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%sमा',
-                        past: '%s अगाडि',
-                        s: 'केही क्षण',
-                        ss: '%d सेकेण्ड',
-                        m: 'एक मिनेट',
-                        mm: '%d मिनेट',
-                        h: 'एक घण्टा',
-                        hh: '%d घण्टा',
-                        d: 'एक दिन',
-                        dd: '%d दिन',
-                        M: 'एक महिना',
-                        MM: '%d महिना',
-                        y: 'एक बर्ष',
-                        yy: '%d बर्ष',
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
-
-                return ne;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/nl-be.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '१',
+            2: '२',
+            3: '३',
+            4: '४',
+            5: '५',
+            6: '६',
+            7: '७',
+            8: '८',
+            9: '९',
+            0: '०',
+        },
+        numberMap = {
+            '१': '1',
+            '२': '2',
+            '३': '3',
+            '४': '4',
+            '५': '5',
+            '६': '6',
+            '७': '7',
+            '८': '8',
+            '९': '9',
+            '०': '0',
+        };
+
+    var ne = moment.defineLocale('ne', {
+        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
+            '_'
+        ),
+        monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
+            '_'
+        ),
+        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
+        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'Aको h:mm बजे',
+            LTS: 'Aको h:mm:ss बजे',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, Aको h:mm बजे',
+            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
+        },
+        preparse: function (string) {
+            return string.replace(/[१२३४५६७८९०]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'राति') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'बिहान') {
+                return hour;
+            } else if (meridiem === 'दिउँसो') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'साँझ') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 3) {
+                return 'राति';
+            } else if (hour < 12) {
+                return 'बिहान';
+            } else if (hour < 16) {
+                return 'दिउँसो';
+            } else if (hour < 20) {
+                return 'साँझ';
+            } else {
+                return 'राति';
+            }
+        },
+        calendar: {
+            sameDay: '[आज] LT',
+            nextDay: '[भोलि] LT',
+            nextWeek: '[आउँदो] dddd[,] LT',
+            lastDay: '[हिजो] LT',
+            lastWeek: '[गएको] dddd[,] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%sमा',
+            past: '%s अगाडि',
+            s: 'केही क्षण',
+            ss: '%d सेकेण्ड',
+            m: 'एक मिनेट',
+            mm: '%d मिनेट',
+            h: 'एक घण्टा',
+            hh: '%d घण्टा',
+            d: 'एक दिन',
+            dd: '%d दिन',
+            M: 'एक महिना',
+            MM: '%d महिना',
+            y: 'एक बर्ष',
+            yy: '%d बर्ष',
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
+
+    return ne;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/nl-be.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/nl-be.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Dutch (Belgium) [nl-be]
 //! author : Joris Röling : https://github.com/jorisroling
 //! author : Jacob Middag : https://github.com/middagj
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
-                        '_'
-                    ),
-                    monthsParse = [
-                        /^jan/i,
-                        /^feb/i,
-                        /^maart|mrt.?$/i,
-                        /^apr/i,
-                        /^mei$/i,
-                        /^jun[i.]?$/i,
-                        /^jul[i.]?$/i,
-                        /^aug/i,
-                        /^sep/i,
-                        /^okt/i,
-                        /^nov/i,
-                        /^dec/i,
-                    ],
-                    monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
-
-                var nlBe = moment.defineLocale('nl-be', {
-                    months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortWithDots;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShortWithoutDots[m.month()];
-                        } else {
-                            return monthsShortWithDots[m.month()];
-                        }
-                    },
-
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
-                    monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
-
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-
-                    weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
-                    weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[vandaag om] LT',
-                        nextDay: '[morgen om] LT',
-                        nextWeek: 'dddd [om] LT',
-                        lastDay: '[gisteren om] LT',
-                        lastWeek: '[afgelopen] dddd [om] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'over %s',
-                        past: '%s geleden',
-                        s: 'een paar seconden',
-                        ss: '%d seconden',
-                        m: 'één minuut',
-                        mm: '%d minuten',
-                        h: 'één uur',
-                        hh: '%d uur',
-                        d: 'één dag',
-                        dd: '%d dagen',
-                        M: 'één maand',
-                        MM: '%d maanden',
-                        y: 'één jaar',
-                        yy: '%d jaar',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
-                    ordinal: function (number) {
-                        return (
-                            number +
-                            (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
-                        );
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
+            '_'
+        ),
+        monthsParse = [
+            /^jan/i,
+            /^feb/i,
+            /^maart|mrt.?$/i,
+            /^apr/i,
+            /^mei$/i,
+            /^jun[i.]?$/i,
+            /^jul[i.]?$/i,
+            /^aug/i,
+            /^sep/i,
+            /^okt/i,
+            /^nov/i,
+            /^dec/i,
+        ],
+        monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
+
+    var nlBe = moment.defineLocale('nl-be', {
+        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortWithDots;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShortWithoutDots[m.month()];
+            } else {
+                return monthsShortWithDots[m.month()];
+            }
+        },
+
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
+        monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
+
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+
+        weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
+            '_'
+        ),
+        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
+        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[vandaag om] LT',
+            nextDay: '[morgen om] LT',
+            nextWeek: 'dddd [om] LT',
+            lastDay: '[gisteren om] LT',
+            lastWeek: '[afgelopen] dddd [om] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'over %s',
+            past: '%s geleden',
+            s: 'een paar seconden',
+            ss: '%d seconden',
+            m: 'één minuut',
+            mm: '%d minuten',
+            h: 'één uur',
+            hh: '%d uur',
+            d: 'één dag',
+            dd: '%d dagen',
+            M: 'één maand',
+            MM: '%d maanden',
+            y: 'één jaar',
+            yy: '%d jaar',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+        ordinal: function (number) {
+            return (
+                number +
+                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
+            );
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return nlBe;
+    return nlBe;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/nl.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/nl.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/nl.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Dutch [nl]
 //! author : Joris Röling : https://github.com/jorisroling
 //! author : Jacob Middag : https://github.com/middagj
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
-                        '_'
-                    ),
-                    monthsParse = [
-                        /^jan/i,
-                        /^feb/i,
-                        /^maart|mrt.?$/i,
-                        /^apr/i,
-                        /^mei$/i,
-                        /^jun[i.]?$/i,
-                        /^jul[i.]?$/i,
-                        /^aug/i,
-                        /^sep/i,
-                        /^okt/i,
-                        /^nov/i,
-                        /^dec/i,
-                    ],
-                    monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
-
-                var nl = moment.defineLocale('nl', {
-                    months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: function (m, format) {
-                        if (!m) {
-                            return monthsShortWithDots;
-                        } else if (/-MMM-/.test(format)) {
-                            return monthsShortWithoutDots[m.month()];
-                        } else {
-                            return monthsShortWithDots[m.month()];
-                        }
-                    },
-
-                    monthsRegex: monthsRegex,
-                    monthsShortRegex: monthsRegex,
-                    monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
-                    monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
-
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-
-                    weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
-                    weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD-MM-YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[vandaag om] LT',
-                        nextDay: '[morgen om] LT',
-                        nextWeek: 'dddd [om] LT',
-                        lastDay: '[gisteren om] LT',
-                        lastWeek: '[afgelopen] dddd [om] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'over %s',
-                        past: '%s geleden',
-                        s: 'een paar seconden',
-                        ss: '%d seconden',
-                        m: 'één minuut',
-                        mm: '%d minuten',
-                        h: 'één uur',
-                        hh: '%d uur',
-                        d: 'één dag',
-                        dd: '%d dagen',
-                        w: 'één week',
-                        ww: '%d weken',
-                        M: 'één maand',
-                        MM: '%d maanden',
-                        y: 'één jaar',
-                        yy: '%d jaar',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
-                    ordinal: function (number) {
-                        return (
-                            number +
-                            (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
-                        );
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
+            '_'
+        ),
+        monthsParse = [
+            /^jan/i,
+            /^feb/i,
+            /^maart|mrt.?$/i,
+            /^apr/i,
+            /^mei$/i,
+            /^jun[i.]?$/i,
+            /^jul[i.]?$/i,
+            /^aug/i,
+            /^sep/i,
+            /^okt/i,
+            /^nov/i,
+            /^dec/i,
+        ],
+        monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
+
+    var nl = moment.defineLocale('nl', {
+        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
+            '_'
+        ),
+        monthsShort: function (m, format) {
+            if (!m) {
+                return monthsShortWithDots;
+            } else if (/-MMM-/.test(format)) {
+                return monthsShortWithoutDots[m.month()];
+            } else {
+                return monthsShortWithDots[m.month()];
+            }
+        },
+
+        monthsRegex: monthsRegex,
+        monthsShortRegex: monthsRegex,
+        monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
+        monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
+
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+
+        weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
+            '_'
+        ),
+        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
+        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD-MM-YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[vandaag om] LT',
+            nextDay: '[morgen om] LT',
+            nextWeek: 'dddd [om] LT',
+            lastDay: '[gisteren om] LT',
+            lastWeek: '[afgelopen] dddd [om] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'over %s',
+            past: '%s geleden',
+            s: 'een paar seconden',
+            ss: '%d seconden',
+            m: 'één minuut',
+            mm: '%d minuten',
+            h: 'één uur',
+            hh: '%d uur',
+            d: 'één dag',
+            dd: '%d dagen',
+            w: 'één week',
+            ww: '%d weken',
+            M: 'één maand',
+            MM: '%d maanden',
+            y: 'één jaar',
+            yy: '%d jaar',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+        ordinal: function (number) {
+            return (
+                number +
+                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
+            );
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return nl;
+    return nl;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/nn.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/nn.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/nn.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Nynorsk [nn]
 //! authors : https://github.com/mechuwind
 //!           Stephen Ramthun : https://github.com/stephenramthun
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var nn = moment.defineLocale('nn', {
-                    months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
-                    weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
-                    weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY [kl.] H:mm',
-                        LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[I dag klokka] LT',
-                        nextDay: '[I morgon klokka] LT',
-                        nextWeek: 'dddd [klokka] LT',
-                        lastDay: '[I går klokka] LT',
-                        lastWeek: '[Føregåande] dddd [klokka] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'om %s',
-                        past: '%s sidan',
-                        s: 'nokre sekund',
-                        ss: '%d sekund',
-                        m: 'eit minutt',
-                        mm: '%d minutt',
-                        h: 'ein time',
-                        hh: '%d timar',
-                        d: 'ein dag',
-                        dd: '%d dagar',
-                        w: 'ei veke',
-                        ww: '%d veker',
-                        M: 'ein månad',
-                        MM: '%d månader',
-                        y: 'eit år',
-                        yy: '%d år',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return nn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/oc-lnc.js":
-        /*!**********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var nn = moment.defineLocale('nn', {
+        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
+        weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
+        weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY [kl.] H:mm',
+            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
+        },
+        calendar: {
+            sameDay: '[I dag klokka] LT',
+            nextDay: '[I morgon klokka] LT',
+            nextWeek: 'dddd [klokka] LT',
+            lastDay: '[I går klokka] LT',
+            lastWeek: '[Føregåande] dddd [klokka] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'om %s',
+            past: '%s sidan',
+            s: 'nokre sekund',
+            ss: '%d sekund',
+            m: 'eit minutt',
+            mm: '%d minutt',
+            h: 'ein time',
+            hh: '%d timar',
+            d: 'ein dag',
+            dd: '%d dagar',
+            w: 'ei veke',
+            ww: '%d veker',
+            M: 'ein månad',
+            MM: '%d månader',
+            y: 'eit år',
+            yy: '%d år',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return nn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/oc-lnc.js":
+/*!**********************************************!*\
   !*** ./node_modules/moment/locale/oc-lnc.js ***!
   \**********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Occitan, lengadocian dialecte [oc-lnc]
 //! author : Quentin PAGÈS : https://github.com/Quenty31
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ocLnc = moment.defineLocale('oc-lnc', {
-                    months: {
-                        standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
-                            '_'
-                        ),
-                        format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
-                            '_'
-                        ),
-                        isFormat: /D[oD]?(\s)+MMMM/,
-                    },
-                    monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
-                    weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM [de] YYYY',
-                        ll: 'D MMM YYYY',
-                        LLL: 'D MMMM [de] YYYY [a] H:mm',
-                        lll: 'D MMM YYYY, H:mm',
-                        LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
-                        llll: 'ddd D MMM YYYY, H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[uèi a] LT',
-                        nextDay: '[deman a] LT',
-                        nextWeek: 'dddd [a] LT',
-                        lastDay: '[ièr a] LT',
-                        lastWeek: 'dddd [passat a] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: "d'aquí %s",
-                        past: 'fa %s',
-                        s: 'unas segondas',
-                        ss: '%d segondas',
-                        m: 'una minuta',
-                        mm: '%d minutas',
-                        h: 'una ora',
-                        hh: '%d oras',
-                        d: 'un jorn',
-                        dd: '%d jorns',
-                        M: 'un mes',
-                        MM: '%d meses',
-                        y: 'un an',
-                        yy: '%d ans',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
-                    ordinal: function (number, period) {
-                        var output =
-                            number === 1
-                                ? 'r'
-                                : number === 2
-                                    ? 'n'
-                                    : number === 3
-                                        ? 'r'
-                                        : number === 4
-                                            ? 't'
-                                            : 'è';
-                        if (period === 'w' || period === 'W') {
-                            output = 'a';
-                        }
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4,
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ocLnc = moment.defineLocale('oc-lnc', {
+        months: {
+            standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
+                '_'
+            ),
+            format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
+                '_'
+            ),
+            isFormat: /D[oD]?(\s)+MMMM/,
+        },
+        monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
+            '_'
+        ),
+        weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
+        weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM [de] YYYY',
+            ll: 'D MMM YYYY',
+            LLL: 'D MMMM [de] YYYY [a] H:mm',
+            lll: 'D MMM YYYY, H:mm',
+            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
+            llll: 'ddd D MMM YYYY, H:mm',
+        },
+        calendar: {
+            sameDay: '[uèi a] LT',
+            nextDay: '[deman a] LT',
+            nextWeek: 'dddd [a] LT',
+            lastDay: '[ièr a] LT',
+            lastWeek: 'dddd [passat a] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: "d'aquí %s",
+            past: 'fa %s',
+            s: 'unas segondas',
+            ss: '%d segondas',
+            m: 'una minuta',
+            mm: '%d minutas',
+            h: 'una ora',
+            hh: '%d oras',
+            d: 'un jorn',
+            dd: '%d jorns',
+            M: 'un mes',
+            MM: '%d meses',
+            y: 'un an',
+            yy: '%d ans',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
+        ordinal: function (number, period) {
+            var output =
+                number === 1
+                    ? 'r'
+                    : number === 2
+                    ? 'n'
+                    : number === 3
+                    ? 'r'
+                    : number === 4
+                    ? 't'
+                    : 'è';
+            if (period === 'w' || period === 'W') {
+                output = 'a';
+            }
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4,
+        },
+    });
 
-                return ocLnc;
+    return ocLnc;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/pa-in.js":
-        /*!*********************************************!*\
+/***/ "./node_modules/moment/locale/pa-in.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/pa-in.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Punjabi (India) [pa-in]
 //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '੧',
-                        2: '੨',
-                        3: 'à©©',
-                        4: '੪',
-                        5: 'à©«',
-                        6: '੬',
-                        7: 'à©­',
-                        8: 'à©®',
-                        9: '੯',
-                        0: '੦',
-                    },
-                    numberMap = {
-                        '੧': '1',
-                        '੨': '2',
-                        'à©©': '3',
-                        '੪': '4',
-                        'à©«': '5',
-                        '੬': '6',
-                        'à©­': '7',
-                        'à©®': '8',
-                        '੯': '9',
-                        '੦': '0',
-                    };
-
-                var paIn = moment.defineLocale('pa-in', {
-                    // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
-                    months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
-                        '_'
-                    ),
-                    weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
-                    weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm ਵਜੇ',
-                        LTS: 'A h:mm:ss ਵਜੇ',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
-                    },
-                    calendar: {
-                        sameDay: '[ਅਜ] LT',
-                        nextDay: '[ਕਲ] LT',
-                        nextWeek: '[ਅਗਲਾ] dddd, LT',
-                        lastDay: '[ਕਲ] LT',
-                        lastWeek: '[ਪਿਛਲੇ] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s ਵਿੱਚ',
-                        past: '%s ਪਿਛਲੇ',
-                        s: 'ਕੁਝ ਸਕਿੰਟ',
-                        ss: '%d ਸਕਿੰਟ',
-                        m: 'ਇਕ ਮਿੰਟ',
-                        mm: '%d ਮਿੰਟ',
-                        h: 'ਇੱਕ ਘੰਟਾ',
-                        hh: '%d ਘੰਟੇ',
-                        d: 'ਇੱਕ ਦਿਨ',
-                        dd: '%d ਦਿਨ',
-                        M: 'ਇੱਕ ਮਹੀਨਾ',
-                        MM: '%d ਮਹੀਨੇ',
-                        y: 'ਇੱਕ ਸਾਲ',
-                        yy: '%d ਸਾਲ',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
-                    // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
-                    meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'ਰਾਤ') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'ਸਵੇਰ') {
-                            return hour;
-                        } else if (meridiem === 'ਦੁਪਹਿਰ') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'ਸ਼ਾਮ') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'ਰਾਤ';
-                        } else if (hour < 10) {
-                            return 'ਸਵੇਰ';
-                        } else if (hour < 17) {
-                            return 'ਦੁਪਹਿਰ';
-                        } else if (hour < 20) {
-                            return 'ਸ਼ਾਮ';
-                        } else {
-                            return 'ਰਾਤ';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '੧',
+            2: '੨',
+            3: 'à©©',
+            4: '੪',
+            5: 'à©«',
+            6: '੬',
+            7: 'à©­',
+            8: 'à©®',
+            9: '੯',
+            0: '੦',
+        },
+        numberMap = {
+            '੧': '1',
+            '੨': '2',
+            'à©©': '3',
+            '੪': '4',
+            'à©«': '5',
+            '੬': '6',
+            'à©­': '7',
+            'à©®': '8',
+            '੯': '9',
+            '੦': '0',
+        };
+
+    var paIn = moment.defineLocale('pa-in', {
+        // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
+        months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
+            '_'
+        ),
+        monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
+            '_'
+        ),
+        weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
+            '_'
+        ),
+        weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
+        weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm ਵਜੇ',
+            LTS: 'A h:mm:ss ਵਜੇ',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
+        },
+        calendar: {
+            sameDay: '[ਅਜ] LT',
+            nextDay: '[ਕਲ] LT',
+            nextWeek: '[ਅਗਲਾ] dddd, LT',
+            lastDay: '[ਕਲ] LT',
+            lastWeek: '[ਪਿਛਲੇ] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s ਵਿੱਚ',
+            past: '%s ਪਿਛਲੇ',
+            s: 'ਕੁਝ ਸਕਿੰਟ',
+            ss: '%d ਸਕਿੰਟ',
+            m: 'ਇਕ ਮਿੰਟ',
+            mm: '%d ਮਿੰਟ',
+            h: 'ਇੱਕ ਘੰਟਾ',
+            hh: '%d ਘੰਟੇ',
+            d: 'ਇੱਕ ਦਿਨ',
+            dd: '%d ਦਿਨ',
+            M: 'ਇੱਕ ਮਹੀਨਾ',
+            MM: '%d ਮਹੀਨੇ',
+            y: 'ਇੱਕ ਸਾਲ',
+            yy: '%d ਸਾਲ',
+        },
+        preparse: function (string) {
+            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
+        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
+        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'ਰਾਤ') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'ਸਵੇਰ') {
+                return hour;
+            } else if (meridiem === 'ਦੁਪਹਿਰ') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'ਸ਼ਾਮ') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'ਰਾਤ';
+            } else if (hour < 10) {
+                return 'ਸਵੇਰ';
+            } else if (hour < 17) {
+                return 'ਦੁਪਹਿਰ';
+            } else if (hour < 20) {
+                return 'ਸ਼ਾਮ';
+            } else {
+                return 'ਰਾਤ';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return paIn;
+    return paIn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/pl.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/pl.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/pl.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Polish [pl]
 //! author : Rafal Hirsz : https://github.com/evoL
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
-                        '_'
-                    ),
-                    monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
-                        '_'
-                    ),
-                    monthsParse = [
-                        /^sty/i,
-                        /^lut/i,
-                        /^mar/i,
-                        /^kwi/i,
-                        /^maj/i,
-                        /^cze/i,
-                        /^lip/i,
-                        /^sie/i,
-                        /^wrz/i,
-                        /^paź/i,
-                        /^lis/i,
-                        /^gru/i,
-                    ];
-                function plural(n) {
-                    return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
-                }
-                function translate(number, withoutSuffix, key) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 'ss':
-                            return result + (plural(number) ? 'sekundy' : 'sekund');
-                        case 'm':
-                            return withoutSuffix ? 'minuta' : 'minutÄ™';
-                        case 'mm':
-                            return result + (plural(number) ? 'minuty' : 'minut');
-                        case 'h':
-                            return withoutSuffix ? 'godzina' : 'godzinÄ™';
-                        case 'hh':
-                            return result + (plural(number) ? 'godziny' : 'godzin');
-                        case 'ww':
-                            return result + (plural(number) ? 'tygodnie' : 'tygodni');
-                        case 'MM':
-                            return result + (plural(number) ? 'miesiące' : 'miesięcy');
-                        case 'yy':
-                            return result + (plural(number) ? 'lata' : 'lat');
-                    }
-                }
-
-                var pl = moment.defineLocale('pl', {
-                    months: function (momentToFormat, format) {
-                        if (!momentToFormat) {
-                            return monthsNominative;
-                        } else if (/D MMMM/.test(format)) {
-                            return monthsSubjective[momentToFormat.month()];
-                        } else {
-                            return monthsNominative[momentToFormat.month()];
-                        }
-                    },
-                    monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-                    weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
-                    weekdaysMin: 'Nd_Pn_Wt_Åšr_Cz_Pt_So'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[DziÅ› o] LT',
-                        nextDay: '[Jutro o] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[W niedzielÄ™ o] LT';
-
-                                case 2:
-                                    return '[We wtorek o] LT';
-
-                                case 3:
-                                    return '[W środę o] LT';
-
-                                case 6:
-                                    return '[W sobotÄ™ o] LT';
-
-                                default:
-                                    return '[W] dddd [o] LT';
-                            }
-                        },
-                        lastDay: '[Wczoraj o] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[W zeszłą niedzielę o] LT';
-                                case 3:
-                                    return '[W zeszłą środę o] LT';
-                                case 6:
-                                    return '[W zeszłą sobotę o] LT';
-                                default:
-                                    return '[W zeszły] dddd [o] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: '%s temu',
-                        s: 'kilka sekund',
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: '1 dzień',
-                        dd: '%d dni',
-                        w: 'tydzień',
-                        ww: translate,
-                        M: 'miesiÄ…c',
-                        MM: translate,
-                        y: 'rok',
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return pl;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
+            '_'
+        ),
+        monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
+            '_'
+        ),
+        monthsParse = [
+            /^sty/i,
+            /^lut/i,
+            /^mar/i,
+            /^kwi/i,
+            /^maj/i,
+            /^cze/i,
+            /^lip/i,
+            /^sie/i,
+            /^wrz/i,
+            /^paź/i,
+            /^lis/i,
+            /^gru/i,
+        ];
+    function plural(n) {
+        return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
+    }
+    function translate(number, withoutSuffix, key) {
+        var result = number + ' ';
+        switch (key) {
+            case 'ss':
+                return result + (plural(number) ? 'sekundy' : 'sekund');
+            case 'm':
+                return withoutSuffix ? 'minuta' : 'minutÄ™';
+            case 'mm':
+                return result + (plural(number) ? 'minuty' : 'minut');
+            case 'h':
+                return withoutSuffix ? 'godzina' : 'godzinÄ™';
+            case 'hh':
+                return result + (plural(number) ? 'godziny' : 'godzin');
+            case 'ww':
+                return result + (plural(number) ? 'tygodnie' : 'tygodni');
+            case 'MM':
+                return result + (plural(number) ? 'miesiące' : 'miesięcy');
+            case 'yy':
+                return result + (plural(number) ? 'lata' : 'lat');
+        }
+    }
 
-        /***/ "./node_modules/moment/locale/pt-br.js":
-        /*!*********************************************!*\
+    var pl = moment.defineLocale('pl', {
+        months: function (momentToFormat, format) {
+            if (!momentToFormat) {
+                return monthsNominative;
+            } else if (/D MMMM/.test(format)) {
+                return monthsSubjective[momentToFormat.month()];
+            } else {
+                return monthsNominative[momentToFormat.month()];
+            }
+        },
+        monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+        weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
+            '_'
+        ),
+        weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
+        weekdaysMin: 'Nd_Pn_Wt_Åšr_Cz_Pt_So'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[DziÅ› o] LT',
+            nextDay: '[Jutro o] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[W niedzielÄ™ o] LT';
+
+                    case 2:
+                        return '[We wtorek o] LT';
+
+                    case 3:
+                        return '[W środę o] LT';
+
+                    case 6:
+                        return '[W sobotÄ™ o] LT';
+
+                    default:
+                        return '[W] dddd [o] LT';
+                }
+            },
+            lastDay: '[Wczoraj o] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[W zeszłą niedzielę o] LT';
+                    case 3:
+                        return '[W zeszłą środę o] LT';
+                    case 6:
+                        return '[W zeszłą sobotę o] LT';
+                    default:
+                        return '[W zeszły] dddd [o] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: '%s temu',
+            s: 'kilka sekund',
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: '1 dzień',
+            dd: '%d dni',
+            w: 'tydzień',
+            ww: translate,
+            M: 'miesiÄ…c',
+            MM: translate,
+            y: 'rok',
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return pl;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/pt-br.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/pt-br.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Portuguese (Brazil) [pt-br]
 //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ptBr = moment.defineLocale('pt-br', {
-                    months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
-                    weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
-                    weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Hoje às] LT',
-                        nextDay: '[Amanhã às] LT',
-                        nextWeek: 'dddd [às] LT',
-                        lastDay: '[Ontem às] LT',
-                        lastWeek: function () {
-                            return this.day() === 0 || this.day() === 6
-                                ? '[Último] dddd [às] LT' // Saturday + Sunday
-                                : '[Última] dddd [às] LT'; // Monday - Friday
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'em %s',
-                        past: 'há %s',
-                        s: 'poucos segundos',
-                        ss: '%d segundos',
-                        m: 'um minuto',
-                        mm: '%d minutos',
-                        h: 'uma hora',
-                        hh: '%d horas',
-                        d: 'um dia',
-                        dd: '%d dias',
-                        M: 'um mês',
-                        MM: '%d meses',
-                        y: 'um ano',
-                        yy: '%d anos',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    invalidDate: 'Data inválida',
-                });
-
-                return ptBr;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/pt.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ptBr = moment.defineLocale('pt-br', {
+        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
+            '_'
+        ),
+        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
+        weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
+            '_'
+        ),
+        weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
+        weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
+        },
+        calendar: {
+            sameDay: '[Hoje às] LT',
+            nextDay: '[Amanhã às] LT',
+            nextWeek: 'dddd [às] LT',
+            lastDay: '[Ontem às] LT',
+            lastWeek: function () {
+                return this.day() === 0 || this.day() === 6
+                    ? '[Último] dddd [às] LT' // Saturday + Sunday
+                    : '[Última] dddd [às] LT'; // Monday - Friday
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'em %s',
+            past: 'há %s',
+            s: 'poucos segundos',
+            ss: '%d segundos',
+            m: 'um minuto',
+            mm: '%d minutos',
+            h: 'uma hora',
+            hh: '%d horas',
+            d: 'um dia',
+            dd: '%d dias',
+            M: 'um mês',
+            MM: '%d meses',
+            y: 'um ano',
+            yy: '%d anos',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        invalidDate: 'Data inválida',
+    });
+
+    return ptBr;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/pt.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/pt.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Portuguese [pt]
 //! author : Jefferson : https://github.com/jalex79
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var pt = moment.defineLocale('pt', {
-                    months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
-                    weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
-                    weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D [de] MMMM [de] YYYY',
-                        LLL: 'D [de] MMMM [de] YYYY HH:mm',
-                        LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Hoje às] LT',
-                        nextDay: '[Amanhã às] LT',
-                        nextWeek: 'dddd [às] LT',
-                        lastDay: '[Ontem às] LT',
-                        lastWeek: function () {
-                            return this.day() === 0 || this.day() === 6
-                                ? '[Último] dddd [às] LT' // Saturday + Sunday
-                                : '[Última] dddd [às] LT'; // Monday - Friday
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'em %s',
-                        past: 'há %s',
-                        s: 'segundos',
-                        ss: '%d segundos',
-                        m: 'um minuto',
-                        mm: '%d minutos',
-                        h: 'uma hora',
-                        hh: '%d horas',
-                        d: 'um dia',
-                        dd: '%d dias',
-                        w: 'uma semana',
-                        ww: '%d semanas',
-                        M: 'um mês',
-                        MM: '%d meses',
-                        y: 'um ano',
-                        yy: '%d anos',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}º/,
-                    ordinal: '%dº',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return pt;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ro.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var pt = moment.defineLocale('pt', {
+        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
+            '_'
+        ),
+        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
+        weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
+            '_'
+        ),
+        weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
+        weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D [de] MMMM [de] YYYY',
+            LLL: 'D [de] MMMM [de] YYYY HH:mm',
+            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Hoje às] LT',
+            nextDay: '[Amanhã às] LT',
+            nextWeek: 'dddd [às] LT',
+            lastDay: '[Ontem às] LT',
+            lastWeek: function () {
+                return this.day() === 0 || this.day() === 6
+                    ? '[Último] dddd [às] LT' // Saturday + Sunday
+                    : '[Última] dddd [às] LT'; // Monday - Friday
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'em %s',
+            past: 'há %s',
+            s: 'segundos',
+            ss: '%d segundos',
+            m: 'um minuto',
+            mm: '%d minutos',
+            h: 'uma hora',
+            hh: '%d horas',
+            d: 'um dia',
+            dd: '%d dias',
+            w: 'uma semana',
+            ww: '%d semanas',
+            M: 'um mês',
+            MM: '%d meses',
+            y: 'um ano',
+            yy: '%d anos',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}º/,
+        ordinal: '%dº',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return pt;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ro.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ro.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Romanian [ro]
@@ -109788,94 +109788,94 @@ THE SOFTWARE.
 //! author : Valentin Agachi : https://github.com/avaly
 //! author : Emanuel Cepoi : https://github.com/cepem
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function relativeTimeWithPlural(number, withoutSuffix, key) {
-                    var format = {
-                            ss: 'secunde',
-                            mm: 'minute',
-                            hh: 'ore',
-                            dd: 'zile',
-                            ww: 'săptămâni',
-                            MM: 'luni',
-                            yy: 'ani',
-                        },
-                        separator = ' ';
-                    if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
-                        separator = ' de ';
-                    }
-                    return number + separator + format[key];
-                }
-
-                var ro = moment.defineLocale('ro', {
-                    months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
-                    weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
-                    weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY H:mm',
-                        LLLL: 'dddd, D MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[azi la] LT',
-                        nextDay: '[mâine la] LT',
-                        nextWeek: 'dddd [la] LT',
-                        lastDay: '[ieri la] LT',
-                        lastWeek: '[fosta] dddd [la] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'peste %s',
-                        past: '%s în urmă',
-                        s: 'câteva secunde',
-                        ss: relativeTimeWithPlural,
-                        m: 'un minut',
-                        mm: relativeTimeWithPlural,
-                        h: 'o oră',
-                        hh: relativeTimeWithPlural,
-                        d: 'o zi',
-                        dd: relativeTimeWithPlural,
-                        w: 'o săptămână',
-                        ww: relativeTimeWithPlural,
-                        M: 'o lună',
-                        MM: relativeTimeWithPlural,
-                        y: 'un an',
-                        yy: relativeTimeWithPlural,
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return ro;
-
-            })));
-
-
-            /***/ }),
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function relativeTimeWithPlural(number, withoutSuffix, key) {
+        var format = {
+                ss: 'secunde',
+                mm: 'minute',
+                hh: 'ore',
+                dd: 'zile',
+                ww: 'săptămâni',
+                MM: 'luni',
+                yy: 'ani',
+            },
+            separator = ' ';
+        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
+            separator = ' de ';
+        }
+        return number + separator + format[key];
+    }
 
-        /***/ "./node_modules/moment/locale/ru.js":
-        /*!******************************************!*\
+    var ro = moment.defineLocale('ro', {
+        months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
+            '_'
+        ),
+        monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
+        weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
+        weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY H:mm',
+            LLLL: 'dddd, D MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[azi la] LT',
+            nextDay: '[mâine la] LT',
+            nextWeek: 'dddd [la] LT',
+            lastDay: '[ieri la] LT',
+            lastWeek: '[fosta] dddd [la] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'peste %s',
+            past: '%s în urmă',
+            s: 'câteva secunde',
+            ss: relativeTimeWithPlural,
+            m: 'un minut',
+            mm: relativeTimeWithPlural,
+            h: 'o oră',
+            hh: relativeTimeWithPlural,
+            d: 'o zi',
+            dd: relativeTimeWithPlural,
+            w: 'o săptămână',
+            ww: relativeTimeWithPlural,
+            M: 'o lună',
+            MM: relativeTimeWithPlural,
+            y: 'un an',
+            yy: relativeTimeWithPlural,
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return ro;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ru.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ru.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Russian [ru]
@@ -109883,845 +109883,845 @@ THE SOFTWARE.
 //! author : Menelion Elensúle : https://github.com/Oire
 //! author : Коренберг Марк : https://github.com/socketpair
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-                //! moment.js locale configuration
+    //! moment.js locale configuration
 
-                function plural(word, num) {
-                    var forms = word.split('_');
-                    return num % 10 === 1 && num % 100 !== 11
-                        ? forms[0]
-                        : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
-                            ? forms[1]
-                            : forms[2];
-                }
-                function relativeTimeWithPlural(number, withoutSuffix, key) {
-                    var format = {
-                        ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
-                        mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
-                        hh: 'час_часа_часов',
-                        dd: 'день_дня_дней',
-                        ww: 'неделя_недели_недель',
-                        MM: 'месяц_месяца_месяцев',
-                        yy: 'год_года_лет',
-                    };
-                    if (key === 'm') {
-                        return withoutSuffix ? 'минута' : 'минуту';
+    function plural(word, num) {
+        var forms = word.split('_');
+        return num % 10 === 1 && num % 100 !== 11
+            ? forms[0]
+            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
+            ? forms[1]
+            : forms[2];
+    }
+    function relativeTimeWithPlural(number, withoutSuffix, key) {
+        var format = {
+            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
+            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
+            hh: 'час_часа_часов',
+            dd: 'день_дня_дней',
+            ww: 'неделя_недели_недель',
+            MM: 'месяц_месяца_месяцев',
+            yy: 'год_года_лет',
+        };
+        if (key === 'm') {
+            return withoutSuffix ? 'минута' : 'минуту';
+        } else {
+            return number + ' ' + plural(format[key], +number);
+        }
+    }
+    var monthsParse = [
+        /^янв/i,
+        /^фев/i,
+        /^мар/i,
+        /^апр/i,
+        /^ма[йя]/i,
+        /^июн/i,
+        /^июл/i,
+        /^авг/i,
+        /^сен/i,
+        /^окт/i,
+        /^ноя/i,
+        /^дек/i,
+    ];
+
+    // http://new.gramota.ru/spravka/rules/139-prop : § 103
+    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
+    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
+    var ru = moment.defineLocale('ru', {
+        months: {
+            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
+                '_'
+            ),
+            standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
+                '_'
+            ),
+        },
+        monthsShort: {
+            // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
+            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
+                '_'
+            ),
+            standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
+                '_'
+            ),
+        },
+        weekdays: {
+            standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
+                '_'
+            ),
+            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
+                '_'
+            ),
+            isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
+        },
+        weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
+        weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
+        monthsParse: monthsParse,
+        longMonthsParse: monthsParse,
+        shortMonthsParse: monthsParse,
+
+        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
+        monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
+
+        // копия предыдущего
+        monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
+
+        // полные названия с падежами
+        monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
+
+        // Выражение, которое соответствует только сокращённым формам
+        monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY г.',
+            LLL: 'D MMMM YYYY г., H:mm',
+            LLLL: 'dddd, D MMMM YYYY г., H:mm',
+        },
+        calendar: {
+            sameDay: '[Сегодня, в] LT',
+            nextDay: '[Завтра, в] LT',
+            lastDay: '[Вчера, в] LT',
+            nextWeek: function (now) {
+                if (now.week() !== this.week()) {
+                    switch (this.day()) {
+                        case 0:
+                            return '[В следующее] dddd, [в] LT';
+                        case 1:
+                        case 2:
+                        case 4:
+                            return '[В следующий] dddd, [в] LT';
+                        case 3:
+                        case 5:
+                        case 6:
+                            return '[В следующую] dddd, [в] LT';
+                    }
+                } else {
+                    if (this.day() === 2) {
+                        return '[Во] dddd, [в] LT';
                     } else {
-                        return number + ' ' + plural(format[key], +number);
+                        return '[В] dddd, [в] LT';
                     }
                 }
-                var monthsParse = [
-                    /^янв/i,
-                    /^фев/i,
-                    /^мар/i,
-                    /^апр/i,
-                    /^ма[йя]/i,
-                    /^июн/i,
-                    /^июл/i,
-                    /^авг/i,
-                    /^сен/i,
-                    /^окт/i,
-                    /^ноя/i,
-                    /^дек/i,
-                ];
-
-                // http://new.gramota.ru/spravka/rules/139-prop : § 103
-                // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
-                // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
-                var ru = moment.defineLocale('ru', {
-                    months: {
-                        format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
-                            '_'
-                        ),
-                        standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: {
-                        // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
-                        format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
-                            '_'
-                        ),
-                        standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
-                            '_'
-                        ),
-                    },
-                    weekdays: {
-                        standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
-                            '_'
-                        ),
-                        format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
-                            '_'
-                        ),
-                        isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
-                    },
-                    weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
-                    weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
-                    monthsParse: monthsParse,
-                    longMonthsParse: monthsParse,
-                    shortMonthsParse: monthsParse,
-
-                    // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
-                    monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
-
-                    // копия предыдущего
-                    monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
-
-                    // полные названия с падежами
-                    monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
-
-                    // Выражение, которое соответствует только сокращённым формам
-                    monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY г.',
-                        LLL: 'D MMMM YYYY г., H:mm',
-                        LLLL: 'dddd, D MMMM YYYY г., H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Сегодня, в] LT',
-                        nextDay: '[Завтра, в] LT',
-                        lastDay: '[Вчера, в] LT',
-                        nextWeek: function (now) {
-                            if (now.week() !== this.week()) {
-                                switch (this.day()) {
-                                    case 0:
-                                        return '[В следующее] dddd, [в] LT';
-                                    case 1:
-                                    case 2:
-                                    case 4:
-                                        return '[В следующий] dddd, [в] LT';
-                                    case 3:
-                                    case 5:
-                                    case 6:
-                                        return '[В следующую] dddd, [в] LT';
-                                }
-                            } else {
-                                if (this.day() === 2) {
-                                    return '[Во] dddd, [в] LT';
-                                } else {
-                                    return '[В] dddd, [в] LT';
-                                }
-                            }
-                        },
-                        lastWeek: function (now) {
-                            if (now.week() !== this.week()) {
-                                switch (this.day()) {
-                                    case 0:
-                                        return '[В прошлое] dddd, [в] LT';
-                                    case 1:
-                                    case 2:
-                                    case 4:
-                                        return '[В прошлый] dddd, [в] LT';
-                                    case 3:
-                                    case 5:
-                                    case 6:
-                                        return '[В прошлую] dddd, [в] LT';
-                                }
-                            } else {
-                                if (this.day() === 2) {
-                                    return '[Во] dddd, [в] LT';
-                                } else {
-                                    return '[В] dddd, [в] LT';
-                                }
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'через %s',
-                        past: '%s назад',
-                        s: 'несколько секунд',
-                        ss: relativeTimeWithPlural,
-                        m: relativeTimeWithPlural,
-                        mm: relativeTimeWithPlural,
-                        h: 'час',
-                        hh: relativeTimeWithPlural,
-                        d: 'день',
-                        dd: relativeTimeWithPlural,
-                        w: 'неделя',
-                        ww: relativeTimeWithPlural,
-                        M: 'месяц',
-                        MM: relativeTimeWithPlural,
-                        y: 'год',
-                        yy: relativeTimeWithPlural,
-                    },
-                    meridiemParse: /ночи|утра|дня|вечера/i,
-                    isPM: function (input) {
-                        return /^(дня|вечера)$/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'ночи';
-                        } else if (hour < 12) {
-                            return 'утра';
-                        } else if (hour < 17) {
-                            return 'дня';
-                        } else {
-                            return 'вечера';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'M':
-                            case 'd':
-                            case 'DDD':
-                                return number + '-й';
-                            case 'D':
-                                return number + '-го';
-                            case 'w':
-                            case 'W':
-                                return number + '-я';
-                            default:
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+            },
+            lastWeek: function (now) {
+                if (now.week() !== this.week()) {
+                    switch (this.day()) {
+                        case 0:
+                            return '[В прошлое] dddd, [в] LT';
+                        case 1:
+                        case 2:
+                        case 4:
+                            return '[В прошлый] dddd, [в] LT';
+                        case 3:
+                        case 5:
+                        case 6:
+                            return '[В прошлую] dddd, [в] LT';
+                    }
+                } else {
+                    if (this.day() === 2) {
+                        return '[Во] dddd, [в] LT';
+                    } else {
+                        return '[В] dddd, [в] LT';
+                    }
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'через %s',
+            past: '%s назад',
+            s: 'несколько секунд',
+            ss: relativeTimeWithPlural,
+            m: relativeTimeWithPlural,
+            mm: relativeTimeWithPlural,
+            h: 'час',
+            hh: relativeTimeWithPlural,
+            d: 'день',
+            dd: relativeTimeWithPlural,
+            w: 'неделя',
+            ww: relativeTimeWithPlural,
+            M: 'месяц',
+            MM: relativeTimeWithPlural,
+            y: 'год',
+            yy: relativeTimeWithPlural,
+        },
+        meridiemParse: /ночи|утра|дня|вечера/i,
+        isPM: function (input) {
+            return /^(дня|вечера)$/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'ночи';
+            } else if (hour < 12) {
+                return 'утра';
+            } else if (hour < 17) {
+                return 'дня';
+            } else {
+                return 'вечера';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'M':
+                case 'd':
+                case 'DDD':
+                    return number + '-й';
+                case 'D':
+                    return number + '-го';
+                case 'w':
+                case 'W':
+                    return number + '-я';
+                default:
+                    return number;
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return ru;
+    return ru;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/sd.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/sd.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sd.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Sindhi [sd]
 //! author : Narain Sagar : https://github.com/narainsagar
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = [
-                        'جنوري',
-                        'فيبروري',
-                        'مارچ',
-                        'اپريل',
-                        'مئي',
-                        'جون',
-                        'جولاءِ',
-                        'آگسٽ',
-                        'سيپٽمبر',
-                        'آڪٽوبر',
-                        'نومبر',
-                        'ڊسمبر',
-                    ],
-                    days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
-
-                var sd = moment.defineLocale('sd', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: days,
-                    weekdaysShort: days,
-                    weekdaysMin: days,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd، D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /صبح|شام/,
-                    isPM: function (input) {
-                        return 'شام' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'صبح';
-                        }
-                        return 'شام';
-                    },
-                    calendar: {
-                        sameDay: '[اڄ] LT',
-                        nextDay: '[سڀاڻي] LT',
-                        nextWeek: 'dddd [اڳين هفتي تي] LT',
-                        lastDay: '[ڪالهه] LT',
-                        lastWeek: '[گزريل هفتي] dddd [تي] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s پوء',
-                        past: '%s اڳ',
-                        s: 'چند سيڪنڊ',
-                        ss: '%d سيڪنڊ',
-                        m: 'هڪ منٽ',
-                        mm: '%d منٽ',
-                        h: 'هڪ ڪلاڪ',
-                        hh: '%d ڪلاڪ',
-                        d: 'هڪ ڏينهن',
-                        dd: '%d ڏينهن',
-                        M: 'هڪ مهينو',
-                        MM: '%d مهينا',
-                        y: 'هڪ سال',
-                        yy: '%d سال',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string.replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return sd;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/se.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = [
+            'جنوري',
+            'فيبروري',
+            'مارچ',
+            'اپريل',
+            'مئي',
+            'جون',
+            'جولاءِ',
+            'آگسٽ',
+            'سيپٽمبر',
+            'آڪٽوبر',
+            'نومبر',
+            'ڊسمبر',
+        ],
+        days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
+
+    var sd = moment.defineLocale('sd', {
+        months: months,
+        monthsShort: months,
+        weekdays: days,
+        weekdaysShort: days,
+        weekdaysMin: days,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd، D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /صبح|شام/,
+        isPM: function (input) {
+            return 'شام' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'صبح';
+            }
+            return 'شام';
+        },
+        calendar: {
+            sameDay: '[اڄ] LT',
+            nextDay: '[سڀاڻي] LT',
+            nextWeek: 'dddd [اڳين هفتي تي] LT',
+            lastDay: '[ڪالهه] LT',
+            lastWeek: '[گزريل هفتي] dddd [تي] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s پوء',
+            past: '%s اڳ',
+            s: 'چند سيڪنڊ',
+            ss: '%d سيڪنڊ',
+            m: 'هڪ منٽ',
+            mm: '%d منٽ',
+            h: 'هڪ ڪلاڪ',
+            hh: '%d ڪلاڪ',
+            d: 'هڪ ڏينهن',
+            dd: '%d ڏينهن',
+            M: 'هڪ مهينو',
+            MM: '%d مهينا',
+            y: 'هڪ سال',
+            yy: '%d سال',
+        },
+        preparse: function (string) {
+            return string.replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string.replace(/,/g, '،');
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return sd;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/se.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/se.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Northern Sami [se]
 //! authors : BÃ¥rd Rolstad Henriksen : https://github.com/karamell
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var se = moment.defineLocale('se', {
-                    months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
-                        '_'
-                    ),
-                    weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
-                    weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'MMMM D. [b.] YYYY',
-                        LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
-                        LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[otne ti] LT',
-                        nextDay: '[ihttin ti] LT',
-                        nextWeek: 'dddd [ti] LT',
-                        lastDay: '[ikte ti] LT',
-                        lastWeek: '[ovddit] dddd [ti] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s geažes',
-                        past: 'maŋit %s',
-                        s: 'moadde sekunddat',
-                        ss: '%d sekunddat',
-                        m: 'okta minuhta',
-                        mm: '%d minuhtat',
-                        h: 'okta diimmu',
-                        hh: '%d diimmut',
-                        d: 'okta beaivi',
-                        dd: '%d beaivvit',
-                        M: 'okta mánnu',
-                        MM: '%d mánut',
-                        y: 'okta jahki',
-                        yy: '%d jagit',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return se;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/si.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var se = moment.defineLocale('se', {
+        months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
+            '_'
+        ),
+        monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
+            '_'
+        ),
+        weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
+            '_'
+        ),
+        weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
+        weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'MMMM D. [b.] YYYY',
+            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
+            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
+        },
+        calendar: {
+            sameDay: '[otne ti] LT',
+            nextDay: '[ihttin ti] LT',
+            nextWeek: 'dddd [ti] LT',
+            lastDay: '[ikte ti] LT',
+            lastWeek: '[ovddit] dddd [ti] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s geažes',
+            past: 'maŋit %s',
+            s: 'moadde sekunddat',
+            ss: '%d sekunddat',
+            m: 'okta minuhta',
+            mm: '%d minuhtat',
+            h: 'okta diimmu',
+            hh: '%d diimmut',
+            d: 'okta beaivi',
+            dd: '%d beaivvit',
+            M: 'okta mánnu',
+            MM: '%d mánut',
+            y: 'okta jahki',
+            yy: '%d jagit',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return se;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/si.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/si.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Sinhalese [si]
 //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                /*jshint -W100*/
-                var si = moment.defineLocale('si', {
-                    months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
-                        '_'
-                    ),
-                    weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
-                    weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'a h:mm',
-                        LTS: 'a h:mm:ss',
-                        L: 'YYYY/MM/DD',
-                        LL: 'YYYY MMMM D',
-                        LLL: 'YYYY MMMM D, a h:mm',
-                        LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
-                    },
-                    calendar: {
-                        sameDay: '[අද] LT[ට]',
-                        nextDay: '[හෙට] LT[ට]',
-                        nextWeek: 'dddd LT[ට]',
-                        lastDay: '[ඊයේ] LT[ට]',
-                        lastWeek: '[පසුගිය] dddd LT[ට]',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%sකින්',
-                        past: '%sකට පෙර',
-                        s: 'තත්පර කිහිපය',
-                        ss: 'තත්පර %d',
-                        m: 'මිනිත්තුව',
-                        mm: 'මිනිත්තු %d',
-                        h: 'පැය',
-                        hh: 'පැය %d',
-                        d: 'දිනය',
-                        dd: 'දින %d',
-                        M: 'මාසය',
-                        MM: 'මාස %d',
-                        y: 'වසර',
-                        yy: 'වසර %d',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
-                    ordinal: function (number) {
-                        return number + ' වැනි';
-                    },
-                    meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
-                    isPM: function (input) {
-                        return input === 'ප.ව.' || input === 'පස් වරු';
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours > 11) {
-                            return isLower ? 'ප.ව.' : 'පස් වරු';
-                        } else {
-                            return isLower ? 'පෙ.ව.' : 'පෙර වරු';
-                        }
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    /*jshint -W100*/
+    var si = moment.defineLocale('si', {
+        months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
+            '_'
+        ),
+        monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
+            '_'
+        ),
+        weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
+            '_'
+        ),
+        weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
+        weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'a h:mm',
+            LTS: 'a h:mm:ss',
+            L: 'YYYY/MM/DD',
+            LL: 'YYYY MMMM D',
+            LLL: 'YYYY MMMM D, a h:mm',
+            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
+        },
+        calendar: {
+            sameDay: '[අද] LT[ට]',
+            nextDay: '[හෙට] LT[ට]',
+            nextWeek: 'dddd LT[ට]',
+            lastDay: '[ඊයේ] LT[ට]',
+            lastWeek: '[පසුගිය] dddd LT[ට]',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%sකින්',
+            past: '%sකට පෙර',
+            s: 'තත්පර කිහිපය',
+            ss: 'තත්පර %d',
+            m: 'මිනිත්තුව',
+            mm: 'මිනිත්තු %d',
+            h: 'පැය',
+            hh: 'පැය %d',
+            d: 'දිනය',
+            dd: 'දින %d',
+            M: 'මාසය',
+            MM: 'මාස %d',
+            y: 'වසර',
+            yy: 'වසර %d',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
+        ordinal: function (number) {
+            return number + ' වැනි';
+        },
+        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
+        isPM: function (input) {
+            return input === 'ප.ව.' || input === 'පස් වරු';
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours > 11) {
+                return isLower ? 'ප.ව.' : 'පස් වරු';
+            } else {
+                return isLower ? 'පෙ.ව.' : 'පෙර වරු';
+            }
+        },
+    });
 
-                return si;
+    return si;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/sk.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/sk.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sk.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Slovak [sk]
 //! author : Martin Minka : https://github.com/k2s
 //! based on work of petrbela : https://github.com/petrbela
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-                //! moment.js locale configuration
+    //! moment.js locale configuration
 
-                var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
-                function plural(n) {
-                    return n > 1 && n < 5;
+    var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
+            '_'
+        ),
+        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
+    function plural(n) {
+        return n > 1 && n < 5;
+    }
+    function translate(number, withoutSuffix, key, isFuture) {
+        var result = number + ' ';
+        switch (key) {
+            case 's': // a few seconds / in a few seconds / a few seconds ago
+                return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
+            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'sekundy' : 'sekúnd');
+                } else {
+                    return result + 'sekundami';
                 }
-                function translate(number, withoutSuffix, key, isFuture) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 's': // a few seconds / in a few seconds / a few seconds ago
-                            return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
-                        case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'sekundy' : 'sekúnd');
-                            } else {
-                                return result + 'sekundami';
-                            }
-                        case 'm': // a minute / in a minute / a minute ago
-                            return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
-                        case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'minúty' : 'minút');
-                            } else {
-                                return result + 'minútami';
-                            }
-                        case 'h': // an hour / in an hour / an hour ago
-                            return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
-                        case 'hh': // 9 hours / in 9 hours / 9 hours ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'hodiny' : 'hodín');
-                            } else {
-                                return result + 'hodinami';
-                            }
-                        case 'd': // a day / in a day / a day ago
-                            return withoutSuffix || isFuture ? 'deň' : 'dňom';
-                        case 'dd': // 9 days / in 9 days / 9 days ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'dni' : 'dní');
-                            } else {
-                                return result + 'dňami';
-                            }
-                        case 'M': // a month / in a month / a month ago
-                            return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
-                        case 'MM': // 9 months / in 9 months / 9 months ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'mesiace' : 'mesiacov');
-                            } else {
-                                return result + 'mesiacmi';
-                            }
-                        case 'y': // a year / in a year / a year ago
-                            return withoutSuffix || isFuture ? 'rok' : 'rokom';
-                        case 'yy': // 9 years / in 9 years / 9 years ago
-                            if (withoutSuffix || isFuture) {
-                                return result + (plural(number) ? 'roky' : 'rokov');
-                            } else {
-                                return result + 'rokmi';
-                            }
-                    }
+            case 'm': // a minute / in a minute / a minute ago
+                return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
+            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'minúty' : 'minút');
+                } else {
+                    return result + 'minútami';
                 }
+            case 'h': // an hour / in an hour / an hour ago
+                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
+            case 'hh': // 9 hours / in 9 hours / 9 hours ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'hodiny' : 'hodín');
+                } else {
+                    return result + 'hodinami';
+                }
+            case 'd': // a day / in a day / a day ago
+                return withoutSuffix || isFuture ? 'deň' : 'dňom';
+            case 'dd': // 9 days / in 9 days / 9 days ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'dni' : 'dní');
+                } else {
+                    return result + 'dňami';
+                }
+            case 'M': // a month / in a month / a month ago
+                return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
+            case 'MM': // 9 months / in 9 months / 9 months ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'mesiace' : 'mesiacov');
+                } else {
+                    return result + 'mesiacmi';
+                }
+            case 'y': // a year / in a year / a year ago
+                return withoutSuffix || isFuture ? 'rok' : 'rokom';
+            case 'yy': // 9 years / in 9 years / 9 years ago
+                if (withoutSuffix || isFuture) {
+                    return result + (plural(number) ? 'roky' : 'rokov');
+                } else {
+                    return result + 'rokmi';
+                }
+        }
+    }
 
-                var sk = moment.defineLocale('sk', {
-                    months: months,
-                    monthsShort: monthsShort,
-                    weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
-                    weekdaysShort: 'ne_po_ut_st_Å¡t_pi_so'.split('_'),
-                    weekdaysMin: 'ne_po_ut_st_Å¡t_pi_so'.split('_'),
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd D. MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[dnes o] LT',
-                        nextDay: '[zajtra o] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[v nedeľu o] LT';
-                                case 1:
-                                case 2:
-                                    return '[v] dddd [o] LT';
-                                case 3:
-                                    return '[v stredu o] LT';
-                                case 4:
-                                    return '[vo Å¡tvrtok o] LT';
-                                case 5:
-                                    return '[v piatok o] LT';
-                                case 6:
-                                    return '[v sobotu o] LT';
-                            }
-                        },
-                        lastDay: '[včera o] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[minulú nedeľu o] LT';
-                                case 1:
-                                case 2:
-                                    return '[minulý] dddd [o] LT';
-                                case 3:
-                                    return '[minulú stredu o] LT';
-                                case 4:
-                                case 5:
-                                    return '[minulý] dddd [o] LT';
-                                case 6:
-                                    return '[minulú sobotu o] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'pred %s',
-                        s: translate,
-                        ss: translate,
-                        m: translate,
-                        mm: translate,
-                        h: translate,
-                        hh: translate,
-                        d: translate,
-                        dd: translate,
-                        M: translate,
-                        MM: translate,
-                        y: translate,
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return sk;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/sl.js":
-        /*!******************************************!*\
+    var sk = moment.defineLocale('sk', {
+        months: months,
+        monthsShort: monthsShort,
+        weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
+        weekdaysShort: 'ne_po_ut_st_Å¡t_pi_so'.split('_'),
+        weekdaysMin: 'ne_po_ut_st_Å¡t_pi_so'.split('_'),
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd D. MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[dnes o] LT',
+            nextDay: '[zajtra o] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[v nedeľu o] LT';
+                    case 1:
+                    case 2:
+                        return '[v] dddd [o] LT';
+                    case 3:
+                        return '[v stredu o] LT';
+                    case 4:
+                        return '[vo Å¡tvrtok o] LT';
+                    case 5:
+                        return '[v piatok o] LT';
+                    case 6:
+                        return '[v sobotu o] LT';
+                }
+            },
+            lastDay: '[včera o] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[minulú nedeľu o] LT';
+                    case 1:
+                    case 2:
+                        return '[minulý] dddd [o] LT';
+                    case 3:
+                        return '[minulú stredu o] LT';
+                    case 4:
+                    case 5:
+                        return '[minulý] dddd [o] LT';
+                    case 6:
+                        return '[minulú sobotu o] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'pred %s',
+            s: translate,
+            ss: translate,
+            m: translate,
+            mm: translate,
+            h: translate,
+            hh: translate,
+            d: translate,
+            dd: translate,
+            M: translate,
+            MM: translate,
+            y: translate,
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return sk;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/sl.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sl.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Slovenian [sl]
 //! author : Robert Sedovšek : https://github.com/sedovsek
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var result = number + ' ';
-                    switch (key) {
-                        case 's':
-                            return withoutSuffix || isFuture
-                                ? 'nekaj sekund'
-                                : 'nekaj sekundami';
-                        case 'ss':
-                            if (number === 1) {
-                                result += withoutSuffix ? 'sekundo' : 'sekundi';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
-                            } else if (number < 5) {
-                                result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
-                            } else {
-                                result += 'sekund';
-                            }
-                            return result;
-                        case 'm':
-                            return withoutSuffix ? 'ena minuta' : 'eno minuto';
-                        case 'mm':
-                            if (number === 1) {
-                                result += withoutSuffix ? 'minuta' : 'minuto';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
-                            } else if (number < 5) {
-                                result += withoutSuffix || isFuture ? 'minute' : 'minutami';
-                            } else {
-                                result += withoutSuffix || isFuture ? 'minut' : 'minutami';
-                            }
-                            return result;
-                        case 'h':
-                            return withoutSuffix ? 'ena ura' : 'eno uro';
-                        case 'hh':
-                            if (number === 1) {
-                                result += withoutSuffix ? 'ura' : 'uro';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'uri' : 'urama';
-                            } else if (number < 5) {
-                                result += withoutSuffix || isFuture ? 'ure' : 'urami';
-                            } else {
-                                result += withoutSuffix || isFuture ? 'ur' : 'urami';
-                            }
-                            return result;
-                        case 'd':
-                            return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
-                        case 'dd':
-                            if (number === 1) {
-                                result += withoutSuffix || isFuture ? 'dan' : 'dnem';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
-                            } else {
-                                result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
-                            }
-                            return result;
-                        case 'M':
-                            return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
-                        case 'MM':
-                            if (number === 1) {
-                                result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
-                            } else if (number < 5) {
-                                result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
-                            } else {
-                                result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
-                            }
-                            return result;
-                        case 'y':
-                            return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
-                        case 'yy':
-                            if (number === 1) {
-                                result += withoutSuffix || isFuture ? 'leto' : 'letom';
-                            } else if (number === 2) {
-                                result += withoutSuffix || isFuture ? 'leti' : 'letoma';
-                            } else if (number < 5) {
-                                result += withoutSuffix || isFuture ? 'leta' : 'leti';
-                            } else {
-                                result += withoutSuffix || isFuture ? 'let' : 'leti';
-                            }
-                            return result;
-                    }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var result = number + ' ';
+        switch (key) {
+            case 's':
+                return withoutSuffix || isFuture
+                    ? 'nekaj sekund'
+                    : 'nekaj sekundami';
+            case 'ss':
+                if (number === 1) {
+                    result += withoutSuffix ? 'sekundo' : 'sekundi';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
+                } else if (number < 5) {
+                    result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
+                } else {
+                    result += 'sekund';
                 }
+                return result;
+            case 'm':
+                return withoutSuffix ? 'ena minuta' : 'eno minuto';
+            case 'mm':
+                if (number === 1) {
+                    result += withoutSuffix ? 'minuta' : 'minuto';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
+                } else if (number < 5) {
+                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';
+                } else {
+                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';
+                }
+                return result;
+            case 'h':
+                return withoutSuffix ? 'ena ura' : 'eno uro';
+            case 'hh':
+                if (number === 1) {
+                    result += withoutSuffix ? 'ura' : 'uro';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'uri' : 'urama';
+                } else if (number < 5) {
+                    result += withoutSuffix || isFuture ? 'ure' : 'urami';
+                } else {
+                    result += withoutSuffix || isFuture ? 'ur' : 'urami';
+                }
+                return result;
+            case 'd':
+                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
+            case 'dd':
+                if (number === 1) {
+                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
+                } else {
+                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
+                }
+                return result;
+            case 'M':
+                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
+            case 'MM':
+                if (number === 1) {
+                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
+                } else if (number < 5) {
+                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
+                } else {
+                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
+                }
+                return result;
+            case 'y':
+                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
+            case 'yy':
+                if (number === 1) {
+                    result += withoutSuffix || isFuture ? 'leto' : 'letom';
+                } else if (number === 2) {
+                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';
+                } else if (number < 5) {
+                    result += withoutSuffix || isFuture ? 'leta' : 'leti';
+                } else {
+                    result += withoutSuffix || isFuture ? 'let' : 'leti';
+                }
+                return result;
+        }
+    }
 
-                var sl = moment.defineLocale('sl', {
-                    months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
-                    weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
-                    weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD. MM. YYYY',
-                        LL: 'D. MMMM YYYY',
-                        LLL: 'D. MMMM YYYY H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[danes ob] LT',
-                        nextDay: '[jutri ob] LT',
-
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[v] [nedeljo] [ob] LT';
-                                case 3:
-                                    return '[v] [sredo] [ob] LT';
-                                case 6:
-                                    return '[v] [soboto] [ob] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[v] dddd [ob] LT';
-                            }
-                        },
-                        lastDay: '[včeraj ob] LT',
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[prejšnjo] [nedeljo] [ob] LT';
-                                case 3:
-                                    return '[prejšnjo] [sredo] [ob] LT';
-                                case 6:
-                                    return '[prejšnjo] [soboto] [ob] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[prejšnji] dddd [ob] LT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'čez %s',
-                        past: 'pred %s',
-                        s: processRelativeTime,
-                        ss: processRelativeTime,
-                        m: processRelativeTime,
-                        mm: processRelativeTime,
-                        h: processRelativeTime,
-                        hh: processRelativeTime,
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return sl;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/sq.js":
-        /*!******************************************!*\
+    var sl = moment.defineLocale('sl', {
+        months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
+        weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
+        weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD. MM. YYYY',
+            LL: 'D. MMMM YYYY',
+            LLL: 'D. MMMM YYYY H:mm',
+            LLLL: 'dddd, D. MMMM YYYY H:mm',
+        },
+        calendar: {
+            sameDay: '[danes ob] LT',
+            nextDay: '[jutri ob] LT',
+
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[v] [nedeljo] [ob] LT';
+                    case 3:
+                        return '[v] [sredo] [ob] LT';
+                    case 6:
+                        return '[v] [soboto] [ob] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[v] dddd [ob] LT';
+                }
+            },
+            lastDay: '[včeraj ob] LT',
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[prejšnjo] [nedeljo] [ob] LT';
+                    case 3:
+                        return '[prejšnjo] [sredo] [ob] LT';
+                    case 6:
+                        return '[prejšnjo] [soboto] [ob] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[prejšnji] dddd [ob] LT';
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'čez %s',
+            past: 'pred %s',
+            s: processRelativeTime,
+            ss: processRelativeTime,
+            m: processRelativeTime,
+            mm: processRelativeTime,
+            h: processRelativeTime,
+            hh: processRelativeTime,
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return sl;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/sq.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sq.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Albanian [sq]
@@ -110729,878 +110729,878 @@ THE SOFTWARE.
 //! author : Menelion Elensúle : https://github.com/Oire
 //! author : Oerd Cukalla : https://github.com/oerd
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var sq = moment.defineLocale('sq', {
-                    months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
-                    weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
-                    weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
-                    weekdaysParseExact: true,
-                    meridiemParse: /PD|MD/,
-                    isPM: function (input) {
-                        return input.charAt(0) === 'M';
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        return hours < 12 ? 'PD' : 'MD';
-                    },
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Sot në] LT',
-                        nextDay: '[Nesër në] LT',
-                        nextWeek: 'dddd [në] LT',
-                        lastDay: '[Dje në] LT',
-                        lastWeek: 'dddd [e kaluar në] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'në %s',
-                        past: '%s më parë',
-                        s: 'disa sekonda',
-                        ss: '%d sekonda',
-                        m: 'një minutë',
-                        mm: '%d minuta',
-                        h: 'një orë',
-                        hh: '%d orë',
-                        d: 'një ditë',
-                        dd: '%d ditë',
-                        M: 'një muaj',
-                        MM: '%d muaj',
-                        y: 'një vit',
-                        yy: '%d vite',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return sq;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/sr-cyrl.js":
-        /*!***********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var sq = moment.defineLocale('sq', {
+        months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
+        weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
+            '_'
+        ),
+        weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
+        weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
+        weekdaysParseExact: true,
+        meridiemParse: /PD|MD/,
+        isPM: function (input) {
+            return input.charAt(0) === 'M';
+        },
+        meridiem: function (hours, minutes, isLower) {
+            return hours < 12 ? 'PD' : 'MD';
+        },
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Sot në] LT',
+            nextDay: '[Nesër në] LT',
+            nextWeek: 'dddd [në] LT',
+            lastDay: '[Dje në] LT',
+            lastWeek: 'dddd [e kaluar në] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'në %s',
+            past: '%s më parë',
+            s: 'disa sekonda',
+            ss: '%d sekonda',
+            m: 'një minutë',
+            mm: '%d minuta',
+            h: 'një orë',
+            hh: '%d orë',
+            d: 'një ditë',
+            dd: '%d ditë',
+            M: 'një muaj',
+            MM: '%d muaj',
+            y: 'një vit',
+            yy: '%d vite',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return sq;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/sr-cyrl.js":
+/*!***********************************************!*\
   !*** ./node_modules/moment/locale/sr-cyrl.js ***!
   \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Serbian Cyrillic [sr-cyrl]
 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
 //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var translator = {
-                    words: {
-                        //Different grammatical cases
-                        ss: ['секунда', 'секунде', 'секунди'],
-                        m: ['један минут', 'једне минуте'],
-                        mm: ['минут', 'минуте', 'минута'],
-                        h: ['један сат', 'једног сата'],
-                        hh: ['сат', 'сата', 'сати'],
-                        dd: ['дан', 'дана', 'дана'],
-                        MM: ['месец', 'месеца', 'месеци'],
-                        yy: ['година', 'године', 'година'],
-                    },
-                    correctGrammaticalCase: function (number, wordKey) {
-                        return number === 1
-                            ? wordKey[0]
-                            : number >= 2 && number <= 4
-                                ? wordKey[1]
-                                : wordKey[2];
-                    },
-                    translate: function (number, withoutSuffix, key) {
-                        var wordKey = translator.words[key];
-                        if (key.length === 1) {
-                            return withoutSuffix ? wordKey[0] : wordKey[1];
-                        } else {
-                            return (
-                                number +
-                                ' ' +
-                                translator.correctGrammaticalCase(number, wordKey)
-                            );
-                        }
-                    },
-                };
-
-                var srCyrl = moment.defineLocale('sr-cyrl', {
-                    months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
-                        '_'
-                    ),
-                    monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
-                    weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
-                    weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'D. M. YYYY.',
-                        LL: 'D. MMMM YYYY.',
-                        LLL: 'D. MMMM YYYY. H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY. H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[данас у] LT',
-                        nextDay: '[сутра у] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[у] [недељу] [у] LT';
-                                case 3:
-                                    return '[у] [среду] [у] LT';
-                                case 6:
-                                    return '[у] [суботу] [у] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[у] dddd [у] LT';
-                            }
-                        },
-                        lastDay: '[јуче у] LT',
-                        lastWeek: function () {
-                            var lastWeekDays = [
-                                '[прошле] [недеље] [у] LT',
-                                '[прошлог] [понедељка] [у] LT',
-                                '[прошлог] [уторка] [у] LT',
-                                '[прошле] [среде] [у] LT',
-                                '[прошлог] [четвртка] [у] LT',
-                                '[прошлог] [петка] [у] LT',
-                                '[прошле] [суботе] [у] LT',
-                            ];
-                            return lastWeekDays[this.day()];
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'за %s',
-                        past: 'пре %s',
-                        s: 'неколико секунди',
-                        ss: translator.translate,
-                        m: translator.translate,
-                        mm: translator.translate,
-                        h: translator.translate,
-                        hh: translator.translate,
-                        d: 'дан',
-                        dd: translator.translate,
-                        M: 'месец',
-                        MM: translator.translate,
-                        y: 'годину',
-                        yy: translator.translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 1st is the first week of the year.
-                    },
-                });
-
-                return srCyrl;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/sr.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var translator = {
+        words: {
+            //Different grammatical cases
+            ss: ['секунда', 'секунде', 'секунди'],
+            m: ['један минут', 'једне минуте'],
+            mm: ['минут', 'минуте', 'минута'],
+            h: ['један сат', 'једног сата'],
+            hh: ['сат', 'сата', 'сати'],
+            dd: ['дан', 'дана', 'дана'],
+            MM: ['месец', 'месеца', 'месеци'],
+            yy: ['година', 'године', 'година'],
+        },
+        correctGrammaticalCase: function (number, wordKey) {
+            return number === 1
+                ? wordKey[0]
+                : number >= 2 && number <= 4
+                ? wordKey[1]
+                : wordKey[2];
+        },
+        translate: function (number, withoutSuffix, key) {
+            var wordKey = translator.words[key];
+            if (key.length === 1) {
+                return withoutSuffix ? wordKey[0] : wordKey[1];
+            } else {
+                return (
+                    number +
+                    ' ' +
+                    translator.correctGrammaticalCase(number, wordKey)
+                );
+            }
+        },
+    };
+
+    var srCyrl = moment.defineLocale('sr-cyrl', {
+        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
+            '_'
+        ),
+        monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
+        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
+        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'D. M. YYYY.',
+            LL: 'D. MMMM YYYY.',
+            LLL: 'D. MMMM YYYY. H:mm',
+            LLLL: 'dddd, D. MMMM YYYY. H:mm',
+        },
+        calendar: {
+            sameDay: '[данас у] LT',
+            nextDay: '[сутра у] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[у] [недељу] [у] LT';
+                    case 3:
+                        return '[у] [среду] [у] LT';
+                    case 6:
+                        return '[у] [суботу] [у] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[у] dddd [у] LT';
+                }
+            },
+            lastDay: '[јуче у] LT',
+            lastWeek: function () {
+                var lastWeekDays = [
+                    '[прошле] [недеље] [у] LT',
+                    '[прошлог] [понедељка] [у] LT',
+                    '[прошлог] [уторка] [у] LT',
+                    '[прошле] [среде] [у] LT',
+                    '[прошлог] [четвртка] [у] LT',
+                    '[прошлог] [петка] [у] LT',
+                    '[прошле] [суботе] [у] LT',
+                ];
+                return lastWeekDays[this.day()];
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'за %s',
+            past: 'пре %s',
+            s: 'неколико секунди',
+            ss: translator.translate,
+            m: translator.translate,
+            mm: translator.translate,
+            h: translator.translate,
+            hh: translator.translate,
+            d: 'дан',
+            dd: translator.translate,
+            M: 'месец',
+            MM: translator.translate,
+            y: 'годину',
+            yy: translator.translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 1st is the first week of the year.
+        },
+    });
+
+    return srCyrl;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/sr.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sr.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Serbian [sr]
 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
 //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var translator = {
-                    words: {
-                        //Different grammatical cases
-                        ss: ['sekunda', 'sekunde', 'sekundi'],
-                        m: ['jedan minut', 'jedne minute'],
-                        mm: ['minut', 'minute', 'minuta'],
-                        h: ['jedan sat', 'jednog sata'],
-                        hh: ['sat', 'sata', 'sati'],
-                        dd: ['dan', 'dana', 'dana'],
-                        MM: ['mesec', 'meseca', 'meseci'],
-                        yy: ['godina', 'godine', 'godina'],
-                    },
-                    correctGrammaticalCase: function (number, wordKey) {
-                        return number === 1
-                            ? wordKey[0]
-                            : number >= 2 && number <= 4
-                                ? wordKey[1]
-                                : wordKey[2];
-                    },
-                    translate: function (number, withoutSuffix, key) {
-                        var wordKey = translator.words[key];
-                        if (key.length === 1) {
-                            return withoutSuffix ? wordKey[0] : wordKey[1];
-                        } else {
-                            return (
-                                number +
-                                ' ' +
-                                translator.correctGrammaticalCase(number, wordKey)
-                            );
-                        }
-                    },
-                };
-
-                var sr = moment.defineLocale('sr', {
-                    months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
-                    weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'D. M. YYYY.',
-                        LL: 'D. MMMM YYYY.',
-                        LLL: 'D. MMMM YYYY. H:mm',
-                        LLLL: 'dddd, D. MMMM YYYY. H:mm',
-                    },
-                    calendar: {
-                        sameDay: '[danas u] LT',
-                        nextDay: '[sutra u] LT',
-                        nextWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                    return '[u] [nedelju] [u] LT';
-                                case 3:
-                                    return '[u] [sredu] [u] LT';
-                                case 6:
-                                    return '[u] [subotu] [u] LT';
-                                case 1:
-                                case 2:
-                                case 4:
-                                case 5:
-                                    return '[u] dddd [u] LT';
-                            }
-                        },
-                        lastDay: '[juče u] LT',
-                        lastWeek: function () {
-                            var lastWeekDays = [
-                                '[prošle] [nedelje] [u] LT',
-                                '[prošlog] [ponedeljka] [u] LT',
-                                '[prošlog] [utorka] [u] LT',
-                                '[prošle] [srede] [u] LT',
-                                '[prošlog] [četvrtka] [u] LT',
-                                '[prošlog] [petka] [u] LT',
-                                '[prošle] [subote] [u] LT',
-                            ];
-                            return lastWeekDays[this.day()];
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'za %s',
-                        past: 'pre %s',
-                        s: 'nekoliko sekundi',
-                        ss: translator.translate,
-                        m: translator.translate,
-                        mm: translator.translate,
-                        h: translator.translate,
-                        hh: translator.translate,
-                        d: 'dan',
-                        dd: translator.translate,
-                        M: 'mesec',
-                        MM: translator.translate,
-                        y: 'godinu',
-                        yy: translator.translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return sr;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ss.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var translator = {
+        words: {
+            //Different grammatical cases
+            ss: ['sekunda', 'sekunde', 'sekundi'],
+            m: ['jedan minut', 'jedne minute'],
+            mm: ['minut', 'minute', 'minuta'],
+            h: ['jedan sat', 'jednog sata'],
+            hh: ['sat', 'sata', 'sati'],
+            dd: ['dan', 'dana', 'dana'],
+            MM: ['mesec', 'meseca', 'meseci'],
+            yy: ['godina', 'godine', 'godina'],
+        },
+        correctGrammaticalCase: function (number, wordKey) {
+            return number === 1
+                ? wordKey[0]
+                : number >= 2 && number <= 4
+                ? wordKey[1]
+                : wordKey[2];
+        },
+        translate: function (number, withoutSuffix, key) {
+            var wordKey = translator.words[key];
+            if (key.length === 1) {
+                return withoutSuffix ? wordKey[0] : wordKey[1];
+            } else {
+                return (
+                    number +
+                    ' ' +
+                    translator.correctGrammaticalCase(number, wordKey)
+                );
+            }
+        },
+    };
+
+    var sr = moment.defineLocale('sr', {
+        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
+            '_'
+        ),
+        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
+            '_'
+        ),
+        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
+        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'D. M. YYYY.',
+            LL: 'D. MMMM YYYY.',
+            LLL: 'D. MMMM YYYY. H:mm',
+            LLLL: 'dddd, D. MMMM YYYY. H:mm',
+        },
+        calendar: {
+            sameDay: '[danas u] LT',
+            nextDay: '[sutra u] LT',
+            nextWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                        return '[u] [nedelju] [u] LT';
+                    case 3:
+                        return '[u] [sredu] [u] LT';
+                    case 6:
+                        return '[u] [subotu] [u] LT';
+                    case 1:
+                    case 2:
+                    case 4:
+                    case 5:
+                        return '[u] dddd [u] LT';
+                }
+            },
+            lastDay: '[juče u] LT',
+            lastWeek: function () {
+                var lastWeekDays = [
+                    '[prošle] [nedelje] [u] LT',
+                    '[prošlog] [ponedeljka] [u] LT',
+                    '[prošlog] [utorka] [u] LT',
+                    '[prošle] [srede] [u] LT',
+                    '[prošlog] [četvrtka] [u] LT',
+                    '[prošlog] [petka] [u] LT',
+                    '[prošle] [subote] [u] LT',
+                ];
+                return lastWeekDays[this.day()];
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'za %s',
+            past: 'pre %s',
+            s: 'nekoliko sekundi',
+            ss: translator.translate,
+            m: translator.translate,
+            mm: translator.translate,
+            h: translator.translate,
+            hh: translator.translate,
+            d: 'dan',
+            dd: translator.translate,
+            M: 'mesec',
+            MM: translator.translate,
+            y: 'godinu',
+            yy: translator.translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return sr;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ss.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ss.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : siSwati [ss]
 //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ss = moment.defineLocale('ss', {
-                    months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
-                        '_'
-                    ),
-                    monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
-                    weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
-                    weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Namuhla nga] LT',
-                        nextDay: '[Kusasa nga] LT',
-                        nextWeek: 'dddd [nga] LT',
-                        lastDay: '[Itolo nga] LT',
-                        lastWeek: 'dddd [leliphelile] [nga] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'nga %s',
-                        past: 'wenteka nga %s',
-                        s: 'emizuzwana lomcane',
-                        ss: '%d mzuzwana',
-                        m: 'umzuzu',
-                        mm: '%d emizuzu',
-                        h: 'lihora',
-                        hh: '%d emahora',
-                        d: 'lilanga',
-                        dd: '%d emalanga',
-                        M: 'inyanga',
-                        MM: '%d tinyanga',
-                        y: 'umnyaka',
-                        yy: '%d iminyaka',
-                    },
-                    meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 11) {
-                            return 'ekuseni';
-                        } else if (hours < 15) {
-                            return 'emini';
-                        } else if (hours < 19) {
-                            return 'entsambama';
-                        } else {
-                            return 'ebusuku';
-                        }
-                    },
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'ekuseni') {
-                            return hour;
-                        } else if (meridiem === 'emini') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
-                            if (hour === 0) {
-                                return 0;
-                            }
-                            return hour + 12;
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}/,
-                    ordinal: '%d',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ss = moment.defineLocale('ss', {
+        months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
+            '_'
+        ),
+        monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
+        weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
+            '_'
+        ),
+        weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
+        weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Namuhla nga] LT',
+            nextDay: '[Kusasa nga] LT',
+            nextWeek: 'dddd [nga] LT',
+            lastDay: '[Itolo nga] LT',
+            lastWeek: 'dddd [leliphelile] [nga] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'nga %s',
+            past: 'wenteka nga %s',
+            s: 'emizuzwana lomcane',
+            ss: '%d mzuzwana',
+            m: 'umzuzu',
+            mm: '%d emizuzu',
+            h: 'lihora',
+            hh: '%d emahora',
+            d: 'lilanga',
+            dd: '%d emalanga',
+            M: 'inyanga',
+            MM: '%d tinyanga',
+            y: 'umnyaka',
+            yy: '%d iminyaka',
+        },
+        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 11) {
+                return 'ekuseni';
+            } else if (hours < 15) {
+                return 'emini';
+            } else if (hours < 19) {
+                return 'entsambama';
+            } else {
+                return 'ebusuku';
+            }
+        },
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'ekuseni') {
+                return hour;
+            } else if (meridiem === 'emini') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
+                if (hour === 0) {
+                    return 0;
+                }
+                return hour + 12;
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}/,
+        ordinal: '%d',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
 
-                return ss;
+    return ss;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/sv.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/sv.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sv.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Swedish [sv]
 //! author : Jens Alm : https://github.com/ulmus
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var sv = moment.defineLocale('sv', {
-                    months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
-                    weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
-                    weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
-                    weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY [kl.] HH:mm',
-                        LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
-                        lll: 'D MMM YYYY HH:mm',
-                        llll: 'ddd D MMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Idag] LT',
-                        nextDay: '[Imorgon] LT',
-                        lastDay: '[Igår] LT',
-                        nextWeek: '[PÃ¥] dddd LT',
-                        lastWeek: '[I] dddd[s] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'om %s',
-                        past: 'för %s sedan',
-                        s: 'några sekunder',
-                        ss: '%d sekunder',
-                        m: 'en minut',
-                        mm: '%d minuter',
-                        h: 'en timme',
-                        hh: '%d timmar',
-                        d: 'en dag',
-                        dd: '%d dagar',
-                        M: 'en månad',
-                        MM: '%d månader',
-                        y: 'ett år',
-                        yy: '%d år',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? ':e'
-                                    : b === 1
-                                        ? ':a'
-                                        : b === 2
-                                            ? ':a'
-                                            : b === 3
-                                                ? ':e'
-                                                : ':e';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return sv;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/sw.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var sv = moment.defineLocale('sv', {
+        months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
+            '_'
+        ),
+        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
+        weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
+        weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
+        weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY [kl.] HH:mm',
+            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
+            lll: 'D MMM YYYY HH:mm',
+            llll: 'ddd D MMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Idag] LT',
+            nextDay: '[Imorgon] LT',
+            lastDay: '[Igår] LT',
+            nextWeek: '[PÃ¥] dddd LT',
+            lastWeek: '[I] dddd[s] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'om %s',
+            past: 'för %s sedan',
+            s: 'några sekunder',
+            ss: '%d sekunder',
+            m: 'en minut',
+            mm: '%d minuter',
+            h: 'en timme',
+            hh: '%d timmar',
+            d: 'en dag',
+            dd: '%d dagar',
+            M: 'en månad',
+            MM: '%d månader',
+            y: 'ett år',
+            yy: '%d år',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? ':e'
+                        : b === 1
+                        ? ':a'
+                        : b === 2
+                        ? ':a'
+                        : b === 3
+                        ? ':e'
+                        : ':e';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return sv;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/sw.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/sw.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Swahili [sw]
 //! author : Fahad Kassim : https://github.com/fadsel
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var sw = moment.defineLocale('sw', {
-                    months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
-                    weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
-                    weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'hh:mm A',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[leo saa] LT',
-                        nextDay: '[kesho saa] LT',
-                        nextWeek: '[wiki ijayo] dddd [saat] LT',
-                        lastDay: '[jana] LT',
-                        lastWeek: '[wiki iliyopita] dddd [saat] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s baadaye',
-                        past: 'tokea %s',
-                        s: 'hivi punde',
-                        ss: 'sekunde %d',
-                        m: 'dakika moja',
-                        mm: 'dakika %d',
-                        h: 'saa limoja',
-                        hh: 'masaa %d',
-                        d: 'siku moja',
-                        dd: 'siku %d',
-                        M: 'mwezi mmoja',
-                        MM: 'miezi %d',
-                        y: 'mwaka mmoja',
-                        yy: 'miaka %d',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return sw;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ta.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var sw = moment.defineLocale('sw', {
+        months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
+        weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
+            '_'
+        ),
+        weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
+        weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'hh:mm A',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[leo saa] LT',
+            nextDay: '[kesho saa] LT',
+            nextWeek: '[wiki ijayo] dddd [saat] LT',
+            lastDay: '[jana] LT',
+            lastWeek: '[wiki iliyopita] dddd [saat] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s baadaye',
+            past: 'tokea %s',
+            s: 'hivi punde',
+            ss: 'sekunde %d',
+            m: 'dakika moja',
+            mm: 'dakika %d',
+            h: 'saa limoja',
+            hh: 'masaa %d',
+            d: 'siku moja',
+            dd: 'siku %d',
+            M: 'mwezi mmoja',
+            MM: 'miezi %d',
+            y: 'mwaka mmoja',
+            yy: 'miaka %d',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return sw;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ta.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ta.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Tamil [ta]
 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var symbolMap = {
-                        1: '௧',
-                        2: '௨',
-                        3: '௩',
-                        4: '௪',
-                        5: '௫',
-                        6: '௬',
-                        7: '௭',
-                        8: '௮',
-                        9: '௯',
-                        0: '௦',
-                    },
-                    numberMap = {
-                        '௧': '1',
-                        '௨': '2',
-                        '௩': '3',
-                        '௪': '4',
-                        '௫': '5',
-                        '௬': '6',
-                        '௭': '7',
-                        '௮': '8',
-                        '௯': '9',
-                        '௦': '0',
-                    };
-
-                var ta = moment.defineLocale('ta', {
-                    months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
-                        '_'
-                    ),
-                    weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
-                        '_'
-                    ),
-                    weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY, HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[இன்று] LT',
-                        nextDay: '[நாளை] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[நேற்று] LT',
-                        lastWeek: '[கடந்த வாரம்] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s இல்',
-                        past: '%s முன்',
-                        s: 'ஒரு சில விநாடிகள்',
-                        ss: '%d விநாடிகள்',
-                        m: 'ஒரு நிமிடம்',
-                        mm: '%d நிமிடங்கள்',
-                        h: 'ஒரு மணி நேரம்',
-                        hh: '%d மணி நேரம்',
-                        d: 'ஒரு நாள்',
-                        dd: '%d நாட்கள்',
-                        M: 'ஒரு மாதம்',
-                        MM: '%d மாதங்கள்',
-                        y: 'ஒரு வருடம்',
-                        yy: '%d ஆண்டுகள்',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}வது/,
-                    ordinal: function (number) {
-                        return number + 'வது';
-                    },
-                    preparse: function (string) {
-                        return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
-                            return numberMap[match];
-                        });
-                    },
-                    postformat: function (string) {
-                        return string.replace(/\d/g, function (match) {
-                            return symbolMap[match];
-                        });
-                    },
-                    // refer http://ta.wikipedia.org/s/1er1
-                    meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 2) {
-                            return ' யாமம்';
-                        } else if (hour < 6) {
-                            return ' வைகறை'; // வைகறை
-                        } else if (hour < 10) {
-                            return ' காலை'; // காலை
-                        } else if (hour < 14) {
-                            return ' நண்பகல்'; // நண்பகல்
-                        } else if (hour < 18) {
-                            return ' எற்பாடு'; // எற்பாடு
-                        } else if (hour < 22) {
-                            return ' மாலை'; // மாலை
-                        } else {
-                            return ' யாமம்';
-                        }
-                    },
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'யாமம்') {
-                            return hour < 2 ? hour : hour + 12;
-                        } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
-                            return hour;
-                        } else if (meridiem === 'நண்பகல்') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else {
-                            return hour + 12;
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var symbolMap = {
+            1: '௧',
+            2: '௨',
+            3: '௩',
+            4: '௪',
+            5: '௫',
+            6: '௬',
+            7: '௭',
+            8: '௮',
+            9: '௯',
+            0: '௦',
+        },
+        numberMap = {
+            '௧': '1',
+            '௨': '2',
+            '௩': '3',
+            '௪': '4',
+            '௫': '5',
+            '௬': '6',
+            '௭': '7',
+            '௮': '8',
+            '௯': '9',
+            '௦': '0',
+        };
+
+    var ta = moment.defineLocale('ta', {
+        months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
+            '_'
+        ),
+        monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
+            '_'
+        ),
+        weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
+            '_'
+        ),
+        weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
+            '_'
+        ),
+        weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, HH:mm',
+            LLLL: 'dddd, D MMMM YYYY, HH:mm',
+        },
+        calendar: {
+            sameDay: '[இன்று] LT',
+            nextDay: '[நாளை] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[நேற்று] LT',
+            lastWeek: '[கடந்த வாரம்] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s இல்',
+            past: '%s முன்',
+            s: 'ஒரு சில விநாடிகள்',
+            ss: '%d விநாடிகள்',
+            m: 'ஒரு நிமிடம்',
+            mm: '%d நிமிடங்கள்',
+            h: 'ஒரு மணி நேரம்',
+            hh: '%d மணி நேரம்',
+            d: 'ஒரு நாள்',
+            dd: '%d நாட்கள்',
+            M: 'ஒரு மாதம்',
+            MM: '%d மாதங்கள்',
+            y: 'ஒரு வருடம்',
+            yy: '%d ஆண்டுகள்',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}வது/,
+        ordinal: function (number) {
+            return number + 'வது';
+        },
+        preparse: function (string) {
+            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
+                return numberMap[match];
+            });
+        },
+        postformat: function (string) {
+            return string.replace(/\d/g, function (match) {
+                return symbolMap[match];
+            });
+        },
+        // refer http://ta.wikipedia.org/s/1er1
+        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 2) {
+                return ' யாமம்';
+            } else if (hour < 6) {
+                return ' வைகறை'; // வைகறை
+            } else if (hour < 10) {
+                return ' காலை'; // காலை
+            } else if (hour < 14) {
+                return ' நண்பகல்'; // நண்பகல்
+            } else if (hour < 18) {
+                return ' எற்பாடு'; // எற்பாடு
+            } else if (hour < 22) {
+                return ' மாலை'; // மாலை
+            } else {
+                return ' யாமம்';
+            }
+        },
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'யாமம்') {
+                return hour < 2 ? hour : hour + 12;
+            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
+                return hour;
+            } else if (meridiem === 'நண்பகல்') {
+                return hour >= 10 ? hour : hour + 12;
+            } else {
+                return hour + 12;
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return ta;
+    return ta;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/te.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/te.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/te.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Telugu [te]
 //! author : Krishna Chaitanya Thota : https://github.com/kcthota
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var te = moment.defineLocale('te', {
-                    months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
-                        '_'
-                    ),
-                    monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
-                    weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
-                    longDateFormat: {
-                        LT: 'A h:mm',
-                        LTS: 'A h:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY, A h:mm',
-                        LLLL: 'dddd, D MMMM YYYY, A h:mm',
-                    },
-                    calendar: {
-                        sameDay: '[నేడు] LT',
-                        nextDay: '[రేపు] LT',
-                        nextWeek: 'dddd, LT',
-                        lastDay: '[నిన్న] LT',
-                        lastWeek: '[à°—à°¤] dddd, LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s లో',
-                        past: '%s క్రితం',
-                        s: 'కొన్ని క్షణాలు',
-                        ss: '%d సెకన్లు',
-                        m: 'ఒక నిమిషం',
-                        mm: '%d నిమిషాలు',
-                        h: 'à°’à°• à°—à°‚à°Ÿ',
-                        hh: '%d గంటలు',
-                        d: 'ఒక రోజు',
-                        dd: '%d రోజులు',
-                        M: 'ఒక నెల',
-                        MM: '%d నెలలు',
-                        y: 'ఒక సంవత్సరం',
-                        yy: '%d సంవత్సరాలు',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}à°µ/,
-                    ordinal: '%dà°µ',
-                    meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'రాత్రి') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'ఉదయం') {
-                            return hour;
-                        } else if (meridiem === 'మధ్యాహ్నం') {
-                            return hour >= 10 ? hour : hour + 12;
-                        } else if (meridiem === 'సాయంత్రం') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'రాత్రి';
-                        } else if (hour < 10) {
-                            return 'ఉదయం';
-                        } else if (hour < 17) {
-                            return 'మధ్యాహ్నం';
-                        } else if (hour < 20) {
-                            return 'సాయంత్రం';
-                        } else {
-                            return 'రాత్రి';
-                        }
-                    },
-                    week: {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var te = moment.defineLocale('te', {
+        months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
+            '_'
+        ),
+        monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
+            '_'
+        ),
+        weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
+        weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
+        longDateFormat: {
+            LT: 'A h:mm',
+            LTS: 'A h:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY, A h:mm',
+            LLLL: 'dddd, D MMMM YYYY, A h:mm',
+        },
+        calendar: {
+            sameDay: '[నేడు] LT',
+            nextDay: '[రేపు] LT',
+            nextWeek: 'dddd, LT',
+            lastDay: '[నిన్న] LT',
+            lastWeek: '[à°—à°¤] dddd, LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s లో',
+            past: '%s క్రితం',
+            s: 'కొన్ని క్షణాలు',
+            ss: '%d సెకన్లు',
+            m: 'ఒక నిమిషం',
+            mm: '%d నిమిషాలు',
+            h: 'à°’à°• à°—à°‚à°Ÿ',
+            hh: '%d గంటలు',
+            d: 'ఒక రోజు',
+            dd: '%d రోజులు',
+            M: 'ఒక నెల',
+            MM: '%d నెలలు',
+            y: 'ఒక సంవత్సరం',
+            yy: '%d సంవత్సరాలు',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}à°µ/,
+        ordinal: '%dà°µ',
+        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'రాత్రి') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'ఉదయం') {
+                return hour;
+            } else if (meridiem === 'మధ్యాహ్నం') {
+                return hour >= 10 ? hour : hour + 12;
+            } else if (meridiem === 'సాయంత్రం') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'రాత్రి';
+            } else if (hour < 10) {
+                return 'ఉదయం';
+            } else if (hour < 17) {
+                return 'మధ్యాహ్నం';
+            } else if (hour < 20) {
+                return 'సాయంత్రం';
+            } else {
+                return 'రాత్రి';
+            }
+        },
+        week: {
+            dow: 0, // Sunday is the first day of the week.
+            doy: 6, // The week that contains Jan 6th is the first week of the year.
+        },
+    });
 
-                return te;
+    return te;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/tet.js":
-        /*!*******************************************!*\
+/***/ "./node_modules/moment/locale/tet.js":
+/*!*******************************************!*\
   !*** ./node_modules/moment/locale/tet.js ***!
   \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Tetun Dili (East Timor) [tet]
@@ -111608,1843 +111608,1843 @@ THE SOFTWARE.
 //! author : Onorio De J. Afonso : https://github.com/marobo
 //! author : Sonia Simoes : https://github.com/soniasimoes
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var tet = moment.defineLocale('tet', {
-                    months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
-                    weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
-                    weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
-                    weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Ohin iha] LT',
-                        nextDay: '[Aban iha] LT',
-                        nextWeek: 'dddd [iha] LT',
-                        lastDay: '[Horiseik iha] LT',
-                        lastWeek: 'dddd [semana kotuk] [iha] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'iha %s',
-                        past: '%s liuba',
-                        s: 'segundu balun',
-                        ss: 'segundu %d',
-                        m: 'minutu ida',
-                        mm: 'minutu %d',
-                        h: 'oras ida',
-                        hh: 'oras %d',
-                        d: 'loron ida',
-                        dd: 'loron %d',
-                        M: 'fulan ida',
-                        MM: 'fulan %d',
-                        y: 'tinan ida',
-                        yy: 'tinan %d',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return tet;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/tg.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var tet = moment.defineLocale('tet', {
+        months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
+        weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
+        weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
+        weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Ohin iha] LT',
+            nextDay: '[Aban iha] LT',
+            nextWeek: 'dddd [iha] LT',
+            lastDay: '[Horiseik iha] LT',
+            lastWeek: 'dddd [semana kotuk] [iha] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'iha %s',
+            past: '%s liuba',
+            s: 'segundu balun',
+            ss: 'segundu %d',
+            m: 'minutu ida',
+            mm: 'minutu %d',
+            h: 'oras ida',
+            hh: 'oras %d',
+            d: 'loron ida',
+            dd: 'loron %d',
+            M: 'fulan ida',
+            MM: 'fulan %d',
+            y: 'tinan ida',
+            yy: 'tinan %d',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return tet;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/tg.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/tg.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Tajik [tg]
 //! author : Orif N. Jr. : https://github.com/orif-jr
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    0: '-ум',
-                    1: '-ум',
-                    2: '-юм',
-                    3: '-юм',
-                    4: '-ум',
-                    5: '-ум',
-                    6: '-ум',
-                    7: '-ум',
-                    8: '-ум',
-                    9: '-ум',
-                    10: '-ум',
-                    12: '-ум',
-                    13: '-ум',
-                    20: '-ум',
-                    30: '-юм',
-                    40: '-ум',
-                    50: '-ум',
-                    60: '-ум',
-                    70: '-ум',
-                    80: '-ум',
-                    90: '-ум',
-                    100: '-ум',
-                };
-
-                var tg = moment.defineLocale('tg', {
-                    months: {
-                        format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
-                            '_'
-                        ),
-                        standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
-                    weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
-                    weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Имрӯз соати] LT',
-                        nextDay: '[Фардо соати] LT',
-                        lastDay: '[Дирӯз соати] LT',
-                        nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
-                        lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'баъди %s',
-                        past: '%s пеш',
-                        s: 'якчанд сония',
-                        m: 'як дақиқа',
-                        mm: '%d дақиқа',
-                        h: 'як соат',
-                        hh: '%d соат',
-                        d: 'як рӯз',
-                        dd: '%d рӯз',
-                        M: 'як моҳ',
-                        MM: '%d моҳ',
-                        y: 'як сол',
-                        yy: '%d сол',
-                    },
-                    meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === 'шаб') {
-                            return hour < 4 ? hour : hour + 12;
-                        } else if (meridiem === 'субҳ') {
-                            return hour;
-                        } else if (meridiem === 'рӯз') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === 'бегоҳ') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'шаб';
-                        } else if (hour < 11) {
-                            return 'субҳ';
-                        } else if (hour < 16) {
-                            return 'рӯз';
-                        } else if (hour < 19) {
-                            return 'бегоҳ';
-                        } else {
-                            return 'шаб';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
-                    ordinal: function (number) {
-                        var a = number % 10,
-                            b = number >= 100 ? 100 : null;
-                        return number + (suffixes[number] || suffixes[a] || suffixes[b]);
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 1th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        0: '-ум',
+        1: '-ум',
+        2: '-юм',
+        3: '-юм',
+        4: '-ум',
+        5: '-ум',
+        6: '-ум',
+        7: '-ум',
+        8: '-ум',
+        9: '-ум',
+        10: '-ум',
+        12: '-ум',
+        13: '-ум',
+        20: '-ум',
+        30: '-юм',
+        40: '-ум',
+        50: '-ум',
+        60: '-ум',
+        70: '-ум',
+        80: '-ум',
+        90: '-ум',
+        100: '-ум',
+    };
+
+    var tg = moment.defineLocale('tg', {
+        months: {
+            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
+                '_'
+            ),
+            standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
+        weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
+            '_'
+        ),
+        weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
+        weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Имрӯз соати] LT',
+            nextDay: '[Фардо соати] LT',
+            lastDay: '[Дирӯз соати] LT',
+            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
+            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'баъди %s',
+            past: '%s пеш',
+            s: 'якчанд сония',
+            m: 'як дақиқа',
+            mm: '%d дақиқа',
+            h: 'як соат',
+            hh: '%d соат',
+            d: 'як рӯз',
+            dd: '%d рӯз',
+            M: 'як моҳ',
+            MM: '%d моҳ',
+            y: 'як сол',
+            yy: '%d сол',
+        },
+        meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === 'шаб') {
+                return hour < 4 ? hour : hour + 12;
+            } else if (meridiem === 'субҳ') {
+                return hour;
+            } else if (meridiem === 'рӯз') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === 'бегоҳ') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'шаб';
+            } else if (hour < 11) {
+                return 'субҳ';
+            } else if (hour < 16) {
+                return 'рӯз';
+            } else if (hour < 19) {
+                return 'бегоҳ';
+            } else {
+                return 'шаб';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
+        ordinal: function (number) {
+            var a = number % 10,
+                b = number >= 100 ? 100 : null;
+            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 1th is the first week of the year.
+        },
+    });
 
-                return tg;
+    return tg;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/th.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/th.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/th.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Thai [th]
 //! author : Kridsada Thanabulpong : https://github.com/sirn
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var th = moment.defineLocale('th', {
-                    months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
-                    weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
-                    weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'H:mm',
-                        LTS: 'H:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY เวลา H:mm',
-                        LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
-                    },
-                    meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
-                    isPM: function (input) {
-                        return input === 'หลังเที่ยง';
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'ก่อนเที่ยง';
-                        } else {
-                            return 'หลังเที่ยง';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[วันนี้ เวลา] LT',
-                        nextDay: '[พรุ่งนี้ เวลา] LT',
-                        nextWeek: 'dddd[หน้า เวลา] LT',
-                        lastDay: '[เมื่อวานนี้ เวลา] LT',
-                        lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'อีก %s',
-                        past: '%sที่แล้ว',
-                        s: 'ไม่กี่วินาที',
-                        ss: '%d วินาที',
-                        m: '1 นาที',
-                        mm: '%d นาที',
-                        h: '1 ชั่วโมง',
-                        hh: '%d ชั่วโมง',
-                        d: '1 วัน',
-                        dd: '%d วัน',
-                        w: '1 สัปดาห์',
-                        ww: '%d สัปดาห์',
-                        M: '1 เดือน',
-                        MM: '%d เดือน',
-                        y: '1 ปี',
-                        yy: '%d ปี',
-                    },
-                });
-
-                return th;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/tk.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var th = moment.defineLocale('th', {
+        months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
+            '_'
+        ),
+        monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
+        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
+        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'H:mm',
+            LTS: 'H:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY เวลา H:mm',
+            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
+        },
+        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
+        isPM: function (input) {
+            return input === 'หลังเที่ยง';
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'ก่อนเที่ยง';
+            } else {
+                return 'หลังเที่ยง';
+            }
+        },
+        calendar: {
+            sameDay: '[วันนี้ เวลา] LT',
+            nextDay: '[พรุ่งนี้ เวลา] LT',
+            nextWeek: 'dddd[หน้า เวลา] LT',
+            lastDay: '[เมื่อวานนี้ เวลา] LT',
+            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'อีก %s',
+            past: '%sที่แล้ว',
+            s: 'ไม่กี่วินาที',
+            ss: '%d วินาที',
+            m: '1 นาที',
+            mm: '%d นาที',
+            h: '1 ชั่วโมง',
+            hh: '%d ชั่วโมง',
+            d: '1 วัน',
+            dd: '%d วัน',
+            w: '1 สัปดาห์',
+            ww: '%d สัปดาห์',
+            M: '1 เดือน',
+            MM: '%d เดือน',
+            y: '1 ปี',
+            yy: '%d ปี',
+        },
+    });
+
+    return th;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/tk.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/tk.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Turkmen [tk]
 //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    1: "'inji",
-                    5: "'inji",
-                    8: "'inji",
-                    70: "'inji",
-                    80: "'inji",
-                    2: "'nji",
-                    7: "'nji",
-                    20: "'nji",
-                    50: "'nji",
-                    3: "'ünji",
-                    4: "'ünji",
-                    100: "'ünji",
-                    6: "'njy",
-                    9: "'unjy",
-                    10: "'unjy",
-                    30: "'unjy",
-                    60: "'ynjy",
-                    90: "'ynjy",
-                };
-
-                var tk = moment.defineLocale('tk', {
-                    months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
-                    weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
-                    weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[bugün sagat] LT',
-                        nextDay: '[ertir sagat] LT',
-                        nextWeek: '[indiki] dddd [sagat] LT',
-                        lastDay: '[düýn] LT',
-                        lastWeek: '[geçen] dddd [sagat] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s soň',
-                        past: '%s öň',
-                        s: 'birnäçe sekunt',
-                        m: 'bir minut',
-                        mm: '%d minut',
-                        h: 'bir sagat',
-                        hh: '%d sagat',
-                        d: 'bir gün',
-                        dd: '%d gün',
-                        M: 'bir aý',
-                        MM: '%d aý',
-                        y: 'bir ýyl',
-                        yy: '%d ýyl',
-                    },
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'Do':
-                            case 'DD':
-                                return number;
-                            default:
-                                if (number === 0) {
-                                    // special case for zero
-                                    return number + "'unjy";
-                                }
-                                var a = number % 10,
-                                    b = (number % 100) - a,
-                                    c = number >= 100 ? 100 : null;
-                                return number + (suffixes[a] || suffixes[b] || suffixes[c]);
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        1: "'inji",
+        5: "'inji",
+        8: "'inji",
+        70: "'inji",
+        80: "'inji",
+        2: "'nji",
+        7: "'nji",
+        20: "'nji",
+        50: "'nji",
+        3: "'ünji",
+        4: "'ünji",
+        100: "'ünji",
+        6: "'njy",
+        9: "'unjy",
+        10: "'unjy",
+        30: "'unjy",
+        60: "'ynjy",
+        90: "'ynjy",
+    };
+
+    var tk = moment.defineLocale('tk', {
+        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
+            '_'
+        ),
+        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
+        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
+            '_'
+        ),
+        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
+        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[bugün sagat] LT',
+            nextDay: '[ertir sagat] LT',
+            nextWeek: '[indiki] dddd [sagat] LT',
+            lastDay: '[düýn] LT',
+            lastWeek: '[geçen] dddd [sagat] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s soň',
+            past: '%s öň',
+            s: 'birnäçe sekunt',
+            m: 'bir minut',
+            mm: '%d minut',
+            h: 'bir sagat',
+            hh: '%d sagat',
+            d: 'bir gün',
+            dd: '%d gün',
+            M: 'bir aý',
+            MM: '%d aý',
+            y: 'bir ýyl',
+            yy: '%d ýyl',
+        },
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'Do':
+                case 'DD':
+                    return number;
+                default:
+                    if (number === 0) {
+                        // special case for zero
+                        return number + "'unjy";
+                    }
+                    var a = number % 10,
+                        b = (number % 100) - a,
+                        c = number >= 100 ? 100 : null;
+                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return tk;
+    return tk;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/tl-ph.js":
-        /*!*********************************************!*\
+/***/ "./node_modules/moment/locale/tl-ph.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/tl-ph.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Tagalog (Philippines) [tl-ph]
 //! author : Dan Hagman : https://github.com/hagmandan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var tlPh = moment.defineLocale('tl-ph', {
-                    months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
-                    weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
-                    weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'MM/D/YYYY',
-                        LL: 'MMMM D, YYYY',
-                        LLL: 'MMMM D, YYYY HH:mm',
-                        LLLL: 'dddd, MMMM DD, YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: 'LT [ngayong araw]',
-                        nextDay: '[Bukas ng] LT',
-                        nextWeek: 'LT [sa susunod na] dddd',
-                        lastDay: 'LT [kahapon]',
-                        lastWeek: 'LT [noong nakaraang] dddd',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'sa loob ng %s',
-                        past: '%s ang nakalipas',
-                        s: 'ilang segundo',
-                        ss: '%d segundo',
-                        m: 'isang minuto',
-                        mm: '%d minuto',
-                        h: 'isang oras',
-                        hh: '%d oras',
-                        d: 'isang araw',
-                        dd: '%d araw',
-                        M: 'isang buwan',
-                        MM: '%d buwan',
-                        y: 'isang taon',
-                        yy: '%d taon',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}/,
-                    ordinal: function (number) {
-                        return number;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return tlPh;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/tlh.js":
-        /*!*******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var tlPh = moment.defineLocale('tl-ph', {
+        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
+            '_'
+        ),
+        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
+        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
+            '_'
+        ),
+        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
+        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'MM/D/YYYY',
+            LL: 'MMMM D, YYYY',
+            LLL: 'MMMM D, YYYY HH:mm',
+            LLLL: 'dddd, MMMM DD, YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: 'LT [ngayong araw]',
+            nextDay: '[Bukas ng] LT',
+            nextWeek: 'LT [sa susunod na] dddd',
+            lastDay: 'LT [kahapon]',
+            lastWeek: 'LT [noong nakaraang] dddd',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'sa loob ng %s',
+            past: '%s ang nakalipas',
+            s: 'ilang segundo',
+            ss: '%d segundo',
+            m: 'isang minuto',
+            mm: '%d minuto',
+            h: 'isang oras',
+            hh: '%d oras',
+            d: 'isang araw',
+            dd: '%d araw',
+            M: 'isang buwan',
+            MM: '%d buwan',
+            y: 'isang taon',
+            yy: '%d taon',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}/,
+        ordinal: function (number) {
+            return number;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return tlPh;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/tlh.js":
+/*!*******************************************!*\
   !*** ./node_modules/moment/locale/tlh.js ***!
   \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Klingon [tlh]
 //! author : Dominika Kruk : https://github.com/amaranthrose
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
-
-                function translateFuture(output) {
-                    var time = output;
-                    time =
-                        output.indexOf('jaj') !== -1
-                            ? time.slice(0, -3) + 'leS'
-                            : output.indexOf('jar') !== -1
-                                ? time.slice(0, -3) + 'waQ'
-                                : output.indexOf('DIS') !== -1
-                                    ? time.slice(0, -3) + 'nem'
-                                    : time + ' pIq';
-                    return time;
-                }
-
-                function translatePast(output) {
-                    var time = output;
-                    time =
-                        output.indexOf('jaj') !== -1
-                            ? time.slice(0, -3) + 'Hu’'
-                            : output.indexOf('jar') !== -1
-                                ? time.slice(0, -3) + 'wen'
-                                : output.indexOf('DIS') !== -1
-                                    ? time.slice(0, -3) + 'ben'
-                                    : time + ' ret';
-                    return time;
-                }
-
-                function translate(number, withoutSuffix, string, isFuture) {
-                    var numberNoun = numberAsNoun(number);
-                    switch (string) {
-                        case 'ss':
-                            return numberNoun + ' lup';
-                        case 'mm':
-                            return numberNoun + ' tup';
-                        case 'hh':
-                            return numberNoun + ' rep';
-                        case 'dd':
-                            return numberNoun + ' jaj';
-                        case 'MM':
-                            return numberNoun + ' jar';
-                        case 'yy':
-                            return numberNoun + ' DIS';
-                    }
-                }
-
-                function numberAsNoun(number) {
-                    var hundred = Math.floor((number % 1000) / 100),
-                        ten = Math.floor((number % 100) / 10),
-                        one = number % 10,
-                        word = '';
-                    if (hundred > 0) {
-                        word += numbersNouns[hundred] + 'vatlh';
-                    }
-                    if (ten > 0) {
-                        word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
-                    }
-                    if (one > 0) {
-                        word += (word !== '' ? ' ' : '') + numbersNouns[one];
-                    }
-                    return word === '' ? 'pagh' : word;
-                }
-
-                var tlh = moment.defineLocale('tlh', {
-                    months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
-                        '_'
-                    ),
-                    monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
-                        '_'
-                    ),
-                    weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
-                        '_'
-                    ),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[DaHjaj] LT',
-                        nextDay: '[wa’leS] LT',
-                        nextWeek: 'LLL',
-                        lastDay: '[wa’Hu’] LT',
-                        lastWeek: 'LLL',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: translateFuture,
-                        past: translatePast,
-                        s: 'puS lup',
-                        ss: translate,
-                        m: 'wa’ tup',
-                        mm: translate,
-                        h: 'wa’ rep',
-                        hh: translate,
-                        d: 'wa’ jaj',
-                        dd: translate,
-                        M: 'wa’ jar',
-                        MM: translate,
-                        y: 'wa’ DIS',
-                        yy: translate,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return tlh;
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
+
+    function translateFuture(output) {
+        var time = output;
+        time =
+            output.indexOf('jaj') !== -1
+                ? time.slice(0, -3) + 'leS'
+                : output.indexOf('jar') !== -1
+                ? time.slice(0, -3) + 'waQ'
+                : output.indexOf('DIS') !== -1
+                ? time.slice(0, -3) + 'nem'
+                : time + ' pIq';
+        return time;
+    }
 
-            })));
+    function translatePast(output) {
+        var time = output;
+        time =
+            output.indexOf('jaj') !== -1
+                ? time.slice(0, -3) + 'Hu’'
+                : output.indexOf('jar') !== -1
+                ? time.slice(0, -3) + 'wen'
+                : output.indexOf('DIS') !== -1
+                ? time.slice(0, -3) + 'ben'
+                : time + ' ret';
+        return time;
+    }
 
+    function translate(number, withoutSuffix, string, isFuture) {
+        var numberNoun = numberAsNoun(number);
+        switch (string) {
+            case 'ss':
+                return numberNoun + ' lup';
+            case 'mm':
+                return numberNoun + ' tup';
+            case 'hh':
+                return numberNoun + ' rep';
+            case 'dd':
+                return numberNoun + ' jaj';
+            case 'MM':
+                return numberNoun + ' jar';
+            case 'yy':
+                return numberNoun + ' DIS';
+        }
+    }
 
-            /***/ }),
+    function numberAsNoun(number) {
+        var hundred = Math.floor((number % 1000) / 100),
+            ten = Math.floor((number % 100) / 10),
+            one = number % 10,
+            word = '';
+        if (hundred > 0) {
+            word += numbersNouns[hundred] + 'vatlh';
+        }
+        if (ten > 0) {
+            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
+        }
+        if (one > 0) {
+            word += (word !== '' ? ' ' : '') + numbersNouns[one];
+        }
+        return word === '' ? 'pagh' : word;
+    }
 
-        /***/ "./node_modules/moment/locale/tr.js":
-        /*!******************************************!*\
+    var tlh = moment.defineLocale('tlh', {
+        months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
+            '_'
+        ),
+        monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
+            '_'
+        ),
+        weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
+            '_'
+        ),
+        weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
+            '_'
+        ),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[DaHjaj] LT',
+            nextDay: '[wa’leS] LT',
+            nextWeek: 'LLL',
+            lastDay: '[wa’Hu’] LT',
+            lastWeek: 'LLL',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: translateFuture,
+            past: translatePast,
+            s: 'puS lup',
+            ss: translate,
+            m: 'wa’ tup',
+            mm: translate,
+            h: 'wa’ rep',
+            hh: translate,
+            d: 'wa’ jaj',
+            dd: translate,
+            M: 'wa’ jar',
+            MM: translate,
+            y: 'wa’ DIS',
+            yy: translate,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return tlh;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/tr.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/tr.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Turkish [tr]
 //! authors : Erhan Gundogan : https://github.com/erhangundogan,
 //!           Burak YiÄŸit Kaya: https://github.com/BYK
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var suffixes = {
-                    1: "'inci",
-                    5: "'inci",
-                    8: "'inci",
-                    70: "'inci",
-                    80: "'inci",
-                    2: "'nci",
-                    7: "'nci",
-                    20: "'nci",
-                    50: "'nci",
-                    3: "'üncü",
-                    4: "'üncü",
-                    100: "'üncü",
-                    6: "'ncı",
-                    9: "'uncu",
-                    10: "'uncu",
-                    30: "'uncu",
-                    60: "'ıncı",
-                    90: "'ıncı",
-                };
-
-                var tr = moment.defineLocale('tr', {
-                    months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Oca_Åžub_Mar_Nis_May_Haz_Tem_AÄŸu_Eyl_Eki_Kas_Ara'.split('_'),
-                    weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
-                    weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 12) {
-                            return isLower ? 'öö' : 'ÖÖ';
-                        } else {
-                            return isLower ? 'ös' : 'ÖS';
-                        }
-                    },
-                    meridiemParse: /öö|ÖÖ|ös|ÖS/,
-                    isPM: function (input) {
-                        return input === 'ös' || input === 'ÖS';
-                    },
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[bugün saat] LT',
-                        nextDay: '[yarın saat] LT',
-                        nextWeek: '[gelecek] dddd [saat] LT',
-                        lastDay: '[dün] LT',
-                        lastWeek: '[geçen] dddd [saat] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s sonra',
-                        past: '%s önce',
-                        s: 'birkaç saniye',
-                        ss: '%d saniye',
-                        m: 'bir dakika',
-                        mm: '%d dakika',
-                        h: 'bir saat',
-                        hh: '%d saat',
-                        d: 'bir gün',
-                        dd: '%d gün',
-                        w: 'bir hafta',
-                        ww: '%d hafta',
-                        M: 'bir ay',
-                        MM: '%d ay',
-                        y: 'bir yıl',
-                        yy: '%d yıl',
-                    },
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'Do':
-                            case 'DD':
-                                return number;
-                            default:
-                                if (number === 0) {
-                                    // special case for zero
-                                    return number + "'ıncı";
-                                }
-                                var a = number % 10,
-                                    b = (number % 100) - a,
-                                    c = number >= 100 ? 100 : null;
-                                return number + (suffixes[a] || suffixes[b] || suffixes[c]);
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var suffixes = {
+        1: "'inci",
+        5: "'inci",
+        8: "'inci",
+        70: "'inci",
+        80: "'inci",
+        2: "'nci",
+        7: "'nci",
+        20: "'nci",
+        50: "'nci",
+        3: "'üncü",
+        4: "'üncü",
+        100: "'üncü",
+        6: "'ncı",
+        9: "'uncu",
+        10: "'uncu",
+        30: "'uncu",
+        60: "'ıncı",
+        90: "'ıncı",
+    };
+
+    var tr = moment.defineLocale('tr', {
+        months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
+            '_'
+        ),
+        monthsShort: 'Oca_Åžub_Mar_Nis_May_Haz_Tem_AÄŸu_Eyl_Eki_Kas_Ara'.split('_'),
+        weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
+            '_'
+        ),
+        weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
+        weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 12) {
+                return isLower ? 'öö' : 'ÖÖ';
+            } else {
+                return isLower ? 'ös' : 'ÖS';
+            }
+        },
+        meridiemParse: /öö|ÖÖ|ös|ÖS/,
+        isPM: function (input) {
+            return input === 'ös' || input === 'ÖS';
+        },
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[bugün saat] LT',
+            nextDay: '[yarın saat] LT',
+            nextWeek: '[gelecek] dddd [saat] LT',
+            lastDay: '[dün] LT',
+            lastWeek: '[geçen] dddd [saat] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s sonra',
+            past: '%s önce',
+            s: 'birkaç saniye',
+            ss: '%d saniye',
+            m: 'bir dakika',
+            mm: '%d dakika',
+            h: 'bir saat',
+            hh: '%d saat',
+            d: 'bir gün',
+            dd: '%d gün',
+            w: 'bir hafta',
+            ww: '%d hafta',
+            M: 'bir ay',
+            MM: '%d ay',
+            y: 'bir yıl',
+            yy: '%d yıl',
+        },
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'Do':
+                case 'DD':
+                    return number;
+                default:
+                    if (number === 0) {
+                        // special case for zero
+                        return number + "'ıncı";
+                    }
+                    var a = number % 10,
+                        b = (number % 100) - a,
+                        c = number >= 100 ? 100 : null;
+                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return tr;
+    return tr;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/tzl.js":
-        /*!*******************************************!*\
+/***/ "./node_modules/moment/locale/tzl.js":
+/*!*******************************************!*\
   !*** ./node_modules/moment/locale/tzl.js ***!
   \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Talossan [tzl]
 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
 //! author : Iustì Canun
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
-                // This is currently too difficult (maybe even impossible) to add.
-                var tzl = moment.defineLocale('tzl', {
-                    months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
-                    weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
-                    weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
-                    weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH.mm',
-                        LTS: 'HH.mm.ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D. MMMM [dallas] YYYY',
-                        LLL: 'D. MMMM [dallas] YYYY HH.mm',
-                        LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
-                    },
-                    meridiemParse: /d\'o|d\'a/i,
-                    isPM: function (input) {
-                        return "d'o" === input.toLowerCase();
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours > 11) {
-                            return isLower ? "d'o" : "D'O";
-                        } else {
-                            return isLower ? "d'a" : "D'A";
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[oxhi à] LT',
-                        nextDay: '[demà à] LT',
-                        nextWeek: 'dddd [à] LT',
-                        lastDay: '[ieiri à] LT',
-                        lastWeek: '[sür el] dddd [lasteu à] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'osprei %s',
-                        past: 'ja%s',
-                        s: processRelativeTime,
-                        ss: processRelativeTime,
-                        m: processRelativeTime,
-                        mm: processRelativeTime,
-                        h: processRelativeTime,
-                        hh: processRelativeTime,
-                        d: processRelativeTime,
-                        dd: processRelativeTime,
-                        M: processRelativeTime,
-                        MM: processRelativeTime,
-                        y: processRelativeTime,
-                        yy: processRelativeTime,
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}\./,
-                    ordinal: '%d.',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                function processRelativeTime(number, withoutSuffix, key, isFuture) {
-                    var format = {
-                        s: ['viensas secunds', "'iensas secunds"],
-                        ss: [number + ' secunds', '' + number + ' secunds'],
-                        m: ["'n míut", "'iens míut"],
-                        mm: [number + ' míuts', '' + number + ' míuts'],
-                        h: ["'n þora", "'iensa þora"],
-                        hh: [number + ' þoras', '' + number + ' þoras'],
-                        d: ["'n ziua", "'iensa ziua"],
-                        dd: [number + ' ziuas', '' + number + ' ziuas'],
-                        M: ["'n mes", "'iens mes"],
-                        MM: [number + ' mesen', '' + number + ' mesen'],
-                        y: ["'n ar", "'iens ar"],
-                        yy: [number + ' ars', '' + number + ' ars'],
-                    };
-                    return isFuture
-                        ? format[key][0]
-                        : withoutSuffix
-                            ? format[key][0]
-                            : format[key][1];
-                }
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
+    // This is currently too difficult (maybe even impossible) to add.
+    var tzl = moment.defineLocale('tzl', {
+        months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
+            '_'
+        ),
+        monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
+        weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
+        weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
+        weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
+        longDateFormat: {
+            LT: 'HH.mm',
+            LTS: 'HH.mm.ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D. MMMM [dallas] YYYY',
+            LLL: 'D. MMMM [dallas] YYYY HH.mm',
+            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
+        },
+        meridiemParse: /d\'o|d\'a/i,
+        isPM: function (input) {
+            return "d'o" === input.toLowerCase();
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours > 11) {
+                return isLower ? "d'o" : "D'O";
+            } else {
+                return isLower ? "d'a" : "D'A";
+            }
+        },
+        calendar: {
+            sameDay: '[oxhi à] LT',
+            nextDay: '[demà à] LT',
+            nextWeek: 'dddd [à] LT',
+            lastDay: '[ieiri à] LT',
+            lastWeek: '[sür el] dddd [lasteu à] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'osprei %s',
+            past: 'ja%s',
+            s: processRelativeTime,
+            ss: processRelativeTime,
+            m: processRelativeTime,
+            mm: processRelativeTime,
+            h: processRelativeTime,
+            hh: processRelativeTime,
+            d: processRelativeTime,
+            dd: processRelativeTime,
+            M: processRelativeTime,
+            MM: processRelativeTime,
+            y: processRelativeTime,
+            yy: processRelativeTime,
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}\./,
+        ordinal: '%d.',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    function processRelativeTime(number, withoutSuffix, key, isFuture) {
+        var format = {
+            s: ['viensas secunds', "'iensas secunds"],
+            ss: [number + ' secunds', '' + number + ' secunds'],
+            m: ["'n míut", "'iens míut"],
+            mm: [number + ' míuts', '' + number + ' míuts'],
+            h: ["'n þora", "'iensa þora"],
+            hh: [number + ' þoras', '' + number + ' þoras'],
+            d: ["'n ziua", "'iensa ziua"],
+            dd: [number + ' ziuas', '' + number + ' ziuas'],
+            M: ["'n mes", "'iens mes"],
+            MM: [number + ' mesen', '' + number + ' mesen'],
+            y: ["'n ar", "'iens ar"],
+            yy: [number + ' ars', '' + number + ' ars'],
+        };
+        return isFuture
+            ? format[key][0]
+            : withoutSuffix
+            ? format[key][0]
+            : format[key][1];
+    }
 
-                return tzl;
+    return tzl;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/tzm-latn.js":
-        /*!************************************************!*\
+/***/ "./node_modules/moment/locale/tzm-latn.js":
+/*!************************************************!*\
   !*** ./node_modules/moment/locale/tzm-latn.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Central Atlas Tamazight Latin [tzm-latn]
 //! author : Abdel Said : https://github.com/abdelsaid
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var tzmLatn = moment.defineLocale('tzm-latn', {
-                    months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
-                        '_'
-                    ),
-                    monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
-                        '_'
-                    ),
-                    weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
-                    weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
-                    weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[asdkh g] LT',
-                        nextDay: '[aska g] LT',
-                        nextWeek: 'dddd [g] LT',
-                        lastDay: '[assant g] LT',
-                        lastWeek: 'dddd [g] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'dadkh s yan %s',
-                        past: 'yan %s',
-                        s: 'imik',
-                        ss: '%d imik',
-                        m: 'minuḍ',
-                        mm: '%d minuḍ',
-                        h: 'saɛa',
-                        hh: '%d tassaɛin',
-                        d: 'ass',
-                        dd: '%d ossan',
-                        M: 'ayowr',
-                        MM: '%d iyyirn',
-                        y: 'asgas',
-                        yy: '%d isgasn',
-                    },
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return tzmLatn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/tzm.js":
-        /*!*******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var tzmLatn = moment.defineLocale('tzm-latn', {
+        months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
+            '_'
+        ),
+        monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
+            '_'
+        ),
+        weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+        weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+        weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[asdkh g] LT',
+            nextDay: '[aska g] LT',
+            nextWeek: 'dddd [g] LT',
+            lastDay: '[assant g] LT',
+            lastWeek: 'dddd [g] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'dadkh s yan %s',
+            past: 'yan %s',
+            s: 'imik',
+            ss: '%d imik',
+            m: 'minuḍ',
+            mm: '%d minuḍ',
+            h: 'saɛa',
+            hh: '%d tassaɛin',
+            d: 'ass',
+            dd: '%d ossan',
+            M: 'ayowr',
+            MM: '%d iyyirn',
+            y: 'asgas',
+            yy: '%d isgasn',
+        },
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return tzmLatn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/tzm.js":
+/*!*******************************************!*\
   !*** ./node_modules/moment/locale/tzm.js ***!
   \*******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Central Atlas Tamazight [tzm]
 //! author : Abdel Said : https://github.com/abdelsaid
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var tzm = moment.defineLocale('tzm', {
-                    months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
-                        '_'
-                    ),
-                    monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
-                        '_'
-                    ),
-                    weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
-                    weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
-                    weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
-                        nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
-                        nextWeek: 'dddd [â´´] LT',
-                        lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
-                        lastWeek: 'dddd [â´´] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
-                        past: 'ⵢⴰⵏ %s',
-                        s: 'ⵉⵎⵉⴽ',
-                        ss: '%d ⵉⵎⵉⴽ',
-                        m: 'ⵎⵉⵏⵓⴺ',
-                        mm: '%d ⵎⵉⵏⵓⴺ',
-                        h: 'ⵙⴰⵄⴰ',
-                        hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
-                        d: 'ⴰⵙⵙ',
-                        dd: '%d oⵙⵙⴰⵏ',
-                        M: 'ⴰⵢoⵓⵔ',
-                        MM: '%d ⵉⵢⵢⵉⵔⵏ',
-                        y: 'ⴰⵙⴳⴰⵙ',
-                        yy: '%d ⵉⵙⴳⴰⵙⵏ',
-                    },
-                    week: {
-                        dow: 6, // Saturday is the first day of the week.
-                        doy: 12, // The week that contains Jan 12th is the first week of the year.
-                    },
-                });
-
-                return tzm;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/ug-cn.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var tzm = moment.defineLocale('tzm', {
+        months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
+            '_'
+        ),
+        monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
+            '_'
+        ),
+        weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+        weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+        weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
+            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
+            nextWeek: 'dddd [â´´] LT',
+            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
+            lastWeek: 'dddd [â´´] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
+            past: 'ⵢⴰⵏ %s',
+            s: 'ⵉⵎⵉⴽ',
+            ss: '%d ⵉⵎⵉⴽ',
+            m: 'ⵎⵉⵏⵓⴺ',
+            mm: '%d ⵎⵉⵏⵓⴺ',
+            h: 'ⵙⴰⵄⴰ',
+            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
+            d: 'ⴰⵙⵙ',
+            dd: '%d oⵙⵙⴰⵏ',
+            M: 'ⴰⵢoⵓⵔ',
+            MM: '%d ⵉⵢⵢⵉⵔⵏ',
+            y: 'ⴰⵙⴳⴰⵙ',
+            yy: '%d ⵉⵙⴳⴰⵙⵏ',
+        },
+        week: {
+            dow: 6, // Saturday is the first day of the week.
+            doy: 12, // The week that contains Jan 12th is the first week of the year.
+        },
+    });
+
+    return tzm;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/ug-cn.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/ug-cn.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Uyghur (China) [ug-cn]
 //! author: boyaq : https://github.com/boyaq
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var ugCn = moment.defineLocale('ug-cn', {
-                    months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
-                        '_'
-                    ),
-                    monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
-                        '_'
-                    ),
-                    weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
-                    weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY-MM-DD',
-                        LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
-                        LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
-                        LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
-                    },
-                    meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (
-                            meridiem === 'يېرىم كېچە' ||
-                            meridiem === 'سەھەر' ||
-                            meridiem === 'چۈشتىن بۇرۇن'
-                        ) {
-                            return hour;
-                        } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
-                            return hour + 12;
-                        } else {
-                            return hour >= 11 ? hour : hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        var hm = hour * 100 + minute;
-                        if (hm < 600) {
-                            return 'يېرىم كېچە';
-                        } else if (hm < 900) {
-                            return 'سەھەر';
-                        } else if (hm < 1130) {
-                            return 'چۈشتىن بۇرۇن';
-                        } else if (hm < 1230) {
-                            return 'چۈش';
-                        } else if (hm < 1800) {
-                            return 'چۈشتىن كېيىن';
-                        } else {
-                            return 'ÙƒÛ•Ú†';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[بۈگۈن سائەت] LT',
-                        nextDay: '[ئەتە سائەت] LT',
-                        nextWeek: '[كېلەركى] dddd [سائەت] LT',
-                        lastDay: '[تۆنۈگۈن] LT',
-                        lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s كېيىن',
-                        past: '%s بۇرۇن',
-                        s: 'نەچچە سېكونت',
-                        ss: '%d سېكونت',
-                        m: 'بىر مىنۇت',
-                        mm: '%d مىنۇت',
-                        h: 'بىر سائەت',
-                        hh: '%d سائەت',
-                        d: 'بىر كۈن',
-                        dd: '%d ÙƒÛˆÙ†',
-                        M: 'بىر ئاي',
-                        MM: '%d ئاي',
-                        y: 'بىر يىل',
-                        yy: '%d يىل',
-                    },
-
-                    dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + '-كۈنى';
-                            case 'w':
-                            case 'W':
-                                return number + '-ھەپتە';
-                            default:
-                                return number;
-                        }
-                    },
-                    preparse: function (string) {
-                        return string.replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string.replace(/,/g, '،');
-                    },
-                    week: {
-                        // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 1st is the first week of the year.
-                    },
-                });
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var ugCn = moment.defineLocale('ug-cn', {
+        months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
+            '_'
+        ),
+        monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
+            '_'
+        ),
+        weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
+            '_'
+        ),
+        weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
+        weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY-MM-DD',
+            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
+            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
+            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
+        },
+        meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (
+                meridiem === 'يېرىم كېچە' ||
+                meridiem === 'سەھەر' ||
+                meridiem === 'چۈشتىن بۇرۇن'
+            ) {
+                return hour;
+            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
+                return hour + 12;
+            } else {
+                return hour >= 11 ? hour : hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            var hm = hour * 100 + minute;
+            if (hm < 600) {
+                return 'يېرىم كېچە';
+            } else if (hm < 900) {
+                return 'سەھەر';
+            } else if (hm < 1130) {
+                return 'چۈشتىن بۇرۇن';
+            } else if (hm < 1230) {
+                return 'چۈش';
+            } else if (hm < 1800) {
+                return 'چۈشتىن كېيىن';
+            } else {
+                return 'ÙƒÛ•Ú†';
+            }
+        },
+        calendar: {
+            sameDay: '[بۈگۈن سائەت] LT',
+            nextDay: '[ئەتە سائەت] LT',
+            nextWeek: '[كېلەركى] dddd [سائەت] LT',
+            lastDay: '[تۆنۈگۈن] LT',
+            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s كېيىن',
+            past: '%s بۇرۇن',
+            s: 'نەچچە سېكونت',
+            ss: '%d سېكونت',
+            m: 'بىر مىنۇت',
+            mm: '%d مىنۇت',
+            h: 'بىر سائەت',
+            hh: '%d سائەت',
+            d: 'بىر كۈن',
+            dd: '%d ÙƒÛˆÙ†',
+            M: 'بىر ئاي',
+            MM: '%d ئاي',
+            y: 'بىر يىل',
+            yy: '%d يىل',
+        },
+
+        dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + '-كۈنى';
+                case 'w':
+                case 'W':
+                    return number + '-ھەپتە';
+                default:
+                    return number;
+            }
+        },
+        preparse: function (string) {
+            return string.replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string.replace(/,/g, '،');
+        },
+        week: {
+            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 1st is the first week of the year.
+        },
+    });
 
-                return ugCn;
+    return ugCn;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/uk.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/uk.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/uk.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Ukrainian [uk]
 //! author : zemlanin : https://github.com/zemlanin
 //! Author : Menelion Elensúle : https://github.com/Oire
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
 
-                //! moment.js locale configuration
+    //! moment.js locale configuration
 
-                function plural(word, num) {
-                    var forms = word.split('_');
-                    return num % 10 === 1 && num % 100 !== 11
-                        ? forms[0]
-                        : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
-                            ? forms[1]
-                            : forms[2];
-                }
-                function relativeTimeWithPlural(number, withoutSuffix, key) {
-                    var format = {
-                        ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
-                        mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
-                        hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
-                        dd: 'день_дні_днів',
-                        MM: 'місяць_місяці_місяців',
-                        yy: 'рік_роки_років',
-                    };
-                    if (key === 'm') {
-                        return withoutSuffix ? 'хвилина' : 'хвилину';
-                    } else if (key === 'h') {
-                        return withoutSuffix ? 'година' : 'годину';
-                    } else {
-                        return number + ' ' + plural(format[key], +number);
-                    }
-                }
-                function weekdaysCaseReplace(m, format) {
-                    var weekdays = {
-                            nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
-                                '_'
-                            ),
-                            accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
-                                '_'
-                            ),
-                            genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
-                                '_'
-                            ),
-                        },
-                        nounCase;
-
-                    if (m === true) {
-                        return weekdays['nominative']
-                            .slice(1, 7)
-                            .concat(weekdays['nominative'].slice(0, 1));
-                    }
-                    if (!m) {
-                        return weekdays['nominative'];
-                    }
+    function plural(word, num) {
+        var forms = word.split('_');
+        return num % 10 === 1 && num % 100 !== 11
+            ? forms[0]
+            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
+            ? forms[1]
+            : forms[2];
+    }
+    function relativeTimeWithPlural(number, withoutSuffix, key) {
+        var format = {
+            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
+            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
+            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
+            dd: 'день_дні_днів',
+            MM: 'місяць_місяці_місяців',
+            yy: 'рік_роки_років',
+        };
+        if (key === 'm') {
+            return withoutSuffix ? 'хвилина' : 'хвилину';
+        } else if (key === 'h') {
+            return withoutSuffix ? 'година' : 'годину';
+        } else {
+            return number + ' ' + plural(format[key], +number);
+        }
+    }
+    function weekdaysCaseReplace(m, format) {
+        var weekdays = {
+                nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
+                    '_'
+                ),
+                accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
+                    '_'
+                ),
+                genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
+                    '_'
+                ),
+            },
+            nounCase;
+
+        if (m === true) {
+            return weekdays['nominative']
+                .slice(1, 7)
+                .concat(weekdays['nominative'].slice(0, 1));
+        }
+        if (!m) {
+            return weekdays['nominative'];
+        }
 
-                    nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
-                        ? 'accusative'
-                        : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
-                            ? 'genitive'
-                            : 'nominative';
-                    return weekdays[nounCase][m.day()];
-                }
-                function processHoursFunction(str) {
-                    return function () {
-                        return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
-                    };
-                }
+        nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
+            ? 'accusative'
+            : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
+            ? 'genitive'
+            : 'nominative';
+        return weekdays[nounCase][m.day()];
+    }
+    function processHoursFunction(str) {
+        return function () {
+            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
+        };
+    }
 
-                var uk = moment.defineLocale('uk', {
-                    months: {
-                        format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
-                            '_'
-                        ),
-                        standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
-                            '_'
-                        ),
-                    },
-                    monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
-                        '_'
-                    ),
-                    weekdays: weekdaysCaseReplace,
-                    weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
-                    weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD.MM.YYYY',
-                        LL: 'D MMMM YYYY р.',
-                        LLL: 'D MMMM YYYY р., HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY р., HH:mm',
-                    },
-                    calendar: {
-                        sameDay: processHoursFunction('[Сьогодні '),
-                        nextDay: processHoursFunction('[Завтра '),
-                        lastDay: processHoursFunction('[Вчора '),
-                        nextWeek: processHoursFunction('[У] dddd ['),
-                        lastWeek: function () {
-                            switch (this.day()) {
-                                case 0:
-                                case 3:
-                                case 5:
-                                case 6:
-                                    return processHoursFunction('[Минулої] dddd [').call(this);
-                                case 1:
-                                case 2:
-                                case 4:
-                                    return processHoursFunction('[Минулого] dddd [').call(this);
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'за %s',
-                        past: '%s тому',
-                        s: 'декілька секунд',
-                        ss: relativeTimeWithPlural,
-                        m: relativeTimeWithPlural,
-                        mm: relativeTimeWithPlural,
-                        h: 'годину',
-                        hh: relativeTimeWithPlural,
-                        d: 'день',
-                        dd: relativeTimeWithPlural,
-                        M: 'місяць',
-                        MM: relativeTimeWithPlural,
-                        y: 'рік',
-                        yy: relativeTimeWithPlural,
-                    },
-                    // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
-                    meridiemParse: /ночі|ранку|дня|вечора/,
-                    isPM: function (input) {
-                        return /^(дня|вечора)$/.test(input);
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 4) {
-                            return 'ночі';
-                        } else if (hour < 12) {
-                            return 'ранку';
-                        } else if (hour < 17) {
-                            return 'дня';
-                        } else {
-                            return 'вечора';
-                        }
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'M':
-                            case 'd':
-                            case 'DDD':
-                            case 'w':
-                            case 'W':
-                                return number + '-й';
-                            case 'D':
-                                return number + '-го';
-                            default:
-                                return number;
-                        }
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
+    var uk = moment.defineLocale('uk', {
+        months: {
+            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
+                '_'
+            ),
+            standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
+                '_'
+            ),
+        },
+        monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
+            '_'
+        ),
+        weekdays: weekdaysCaseReplace,
+        weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD.MM.YYYY',
+            LL: 'D MMMM YYYY р.',
+            LLL: 'D MMMM YYYY р., HH:mm',
+            LLLL: 'dddd, D MMMM YYYY р., HH:mm',
+        },
+        calendar: {
+            sameDay: processHoursFunction('[Сьогодні '),
+            nextDay: processHoursFunction('[Завтра '),
+            lastDay: processHoursFunction('[Вчора '),
+            nextWeek: processHoursFunction('[У] dddd ['),
+            lastWeek: function () {
+                switch (this.day()) {
+                    case 0:
+                    case 3:
+                    case 5:
+                    case 6:
+                        return processHoursFunction('[Минулої] dddd [').call(this);
+                    case 1:
+                    case 2:
+                    case 4:
+                        return processHoursFunction('[Минулого] dddd [').call(this);
+                }
+            },
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'за %s',
+            past: '%s тому',
+            s: 'декілька секунд',
+            ss: relativeTimeWithPlural,
+            m: relativeTimeWithPlural,
+            mm: relativeTimeWithPlural,
+            h: 'годину',
+            hh: relativeTimeWithPlural,
+            d: 'день',
+            dd: relativeTimeWithPlural,
+            M: 'місяць',
+            MM: relativeTimeWithPlural,
+            y: 'рік',
+            yy: relativeTimeWithPlural,
+        },
+        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
+        meridiemParse: /ночі|ранку|дня|вечора/,
+        isPM: function (input) {
+            return /^(дня|вечора)$/.test(input);
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 4) {
+                return 'ночі';
+            } else if (hour < 12) {
+                return 'ранку';
+            } else if (hour < 17) {
+                return 'дня';
+            } else {
+                return 'вечора';
+            }
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'M':
+                case 'd':
+                case 'DDD':
+                case 'w':
+                case 'W':
+                    return number + '-й';
+                case 'D':
+                    return number + '-го';
+                default:
+                    return number;
+            }
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
 
-                return uk;
+    return uk;
 
-            })));
+})));
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/moment/locale/ur.js":
-        /*!******************************************!*\
+/***/ "./node_modules/moment/locale/ur.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/ur.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Urdu [ur]
 //! author : Sawood Alam : https://github.com/ibnesayeed
 //! author : Zack : https://github.com/ZackVision
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var months = [
-                        'جنوری',
-                        'فروری',
-                        'مارچ',
-                        'اپریل',
-                        'مئی',
-                        'جون',
-                        'جولائی',
-                        'اگست',
-                        'ستمبر',
-                        'اکتوبر',
-                        'نومبر',
-                        'دسمبر',
-                    ],
-                    days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
-
-                var ur = moment.defineLocale('ur', {
-                    months: months,
-                    monthsShort: months,
-                    weekdays: days,
-                    weekdaysShort: days,
-                    weekdaysMin: days,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd، D MMMM YYYY HH:mm',
-                    },
-                    meridiemParse: /صبح|شام/,
-                    isPM: function (input) {
-                        return 'شام' === input;
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        if (hour < 12) {
-                            return 'صبح';
-                        }
-                        return 'شام';
-                    },
-                    calendar: {
-                        sameDay: '[آج بوقت] LT',
-                        nextDay: '[کل بوقت] LT',
-                        nextWeek: 'dddd [بوقت] LT',
-                        lastDay: '[گذشتہ روز بوقت] LT',
-                        lastWeek: '[گذشتہ] dddd [بوقت] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s بعد',
-                        past: '%s قبل',
-                        s: 'چند سیکنڈ',
-                        ss: '%d سیکنڈ',
-                        m: 'ایک منٹ',
-                        mm: '%d منٹ',
-                        h: 'ایک گھنٹہ',
-                        hh: '%d گھنٹے',
-                        d: 'ایک دن',
-                        dd: '%d دن',
-                        M: 'ایک ماہ',
-                        MM: '%d ماہ',
-                        y: 'ایک سال',
-                        yy: '%d سال',
-                    },
-                    preparse: function (string) {
-                        return string.replace(/،/g, ',');
-                    },
-                    postformat: function (string) {
-                        return string.replace(/,/g, '،');
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return ur;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/uz-latn.js":
-        /*!***********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var months = [
+            'جنوری',
+            'فروری',
+            'مارچ',
+            'اپریل',
+            'مئی',
+            'جون',
+            'جولائی',
+            'اگست',
+            'ستمبر',
+            'اکتوبر',
+            'نومبر',
+            'دسمبر',
+        ],
+        days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
+
+    var ur = moment.defineLocale('ur', {
+        months: months,
+        monthsShort: months,
+        weekdays: days,
+        weekdaysShort: days,
+        weekdaysMin: days,
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd، D MMMM YYYY HH:mm',
+        },
+        meridiemParse: /صبح|شام/,
+        isPM: function (input) {
+            return 'شام' === input;
+        },
+        meridiem: function (hour, minute, isLower) {
+            if (hour < 12) {
+                return 'صبح';
+            }
+            return 'شام';
+        },
+        calendar: {
+            sameDay: '[آج بوقت] LT',
+            nextDay: '[کل بوقت] LT',
+            nextWeek: 'dddd [بوقت] LT',
+            lastDay: '[گذشتہ روز بوقت] LT',
+            lastWeek: '[گذشتہ] dddd [بوقت] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s بعد',
+            past: '%s قبل',
+            s: 'چند سیکنڈ',
+            ss: '%d سیکنڈ',
+            m: 'ایک منٹ',
+            mm: '%d منٹ',
+            h: 'ایک گھنٹہ',
+            hh: '%d گھنٹے',
+            d: 'ایک دن',
+            dd: '%d دن',
+            M: 'ایک ماہ',
+            MM: '%d ماہ',
+            y: 'ایک سال',
+            yy: '%d سال',
+        },
+        preparse: function (string) {
+            return string.replace(/،/g, ',');
+        },
+        postformat: function (string) {
+            return string.replace(/,/g, '،');
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return ur;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/uz-latn.js":
+/*!***********************************************!*\
   !*** ./node_modules/moment/locale/uz-latn.js ***!
   \***********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Uzbek Latin [uz-latn]
 //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var uzLatn = moment.defineLocale('uz-latn', {
-                    months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
-                    weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
-                    weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'D MMMM YYYY, dddd HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Bugun soat] LT [da]',
-                        nextDay: '[Ertaga] LT [da]',
-                        nextWeek: 'dddd [kuni soat] LT [da]',
-                        lastDay: '[Kecha soat] LT [da]',
-                        lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'Yaqin %s ichida',
-                        past: 'Bir necha %s oldin',
-                        s: 'soniya',
-                        ss: '%d soniya',
-                        m: 'bir daqiqa',
-                        mm: '%d daqiqa',
-                        h: 'bir soat',
-                        hh: '%d soat',
-                        d: 'bir kun',
-                        dd: '%d kun',
-                        M: 'bir oy',
-                        MM: '%d oy',
-                        y: 'bir yil',
-                        yy: '%d yil',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 7th is the first week of the year.
-                    },
-                });
-
-                return uzLatn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/uz.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var uzLatn = moment.defineLocale('uz-latn', {
+        months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
+            '_'
+        ),
+        monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
+        weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
+            '_'
+        ),
+        weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
+        weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'D MMMM YYYY, dddd HH:mm',
+        },
+        calendar: {
+            sameDay: '[Bugun soat] LT [da]',
+            nextDay: '[Ertaga] LT [da]',
+            nextWeek: 'dddd [kuni soat] LT [da]',
+            lastDay: '[Kecha soat] LT [da]',
+            lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'Yaqin %s ichida',
+            past: 'Bir necha %s oldin',
+            s: 'soniya',
+            ss: '%d soniya',
+            m: 'bir daqiqa',
+            mm: '%d daqiqa',
+            h: 'bir soat',
+            hh: '%d soat',
+            d: 'bir kun',
+            dd: '%d kun',
+            M: 'bir oy',
+            MM: '%d oy',
+            y: 'bir yil',
+            yy: '%d yil',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 7th is the first week of the year.
+        },
+    });
+
+    return uzLatn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/uz.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/uz.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Uzbek [uz]
 //! author : Sardor Muminov : https://github.com/muminoff
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var uz = moment.defineLocale('uz', {
-                    months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
-                        '_'
-                    ),
-                    monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
-                    weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
-                    weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
-                    weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'D MMMM YYYY, dddd HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Бугун соат] LT [да]',
-                        nextDay: '[Эртага] LT [да]',
-                        nextWeek: 'dddd [куни соат] LT [да]',
-                        lastDay: '[Кеча соат] LT [да]',
-                        lastWeek: '[Утган] dddd [куни соат] LT [да]',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'Якин %s ичида',
-                        past: 'Бир неча %s олдин',
-                        s: 'фурсат',
-                        ss: '%d фурсат',
-                        m: 'бир дакика',
-                        mm: '%d дакика',
-                        h: 'бир соат',
-                        hh: '%d соат',
-                        d: 'бир кун',
-                        dd: '%d кун',
-                        M: 'бир ой',
-                        MM: '%d ой',
-                        y: 'бир йил',
-                        yy: '%d йил',
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 7, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return uz;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/vi.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var uz = moment.defineLocale('uz', {
+        months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
+            '_'
+        ),
+        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
+        weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
+        weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
+        weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'D MMMM YYYY, dddd HH:mm',
+        },
+        calendar: {
+            sameDay: '[Бугун соат] LT [да]',
+            nextDay: '[Эртага] LT [да]',
+            nextWeek: 'dddd [куни соат] LT [да]',
+            lastDay: '[Кеча соат] LT [да]',
+            lastWeek: '[Утган] dddd [куни соат] LT [да]',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'Якин %s ичида',
+            past: 'Бир неча %s олдин',
+            s: 'фурсат',
+            ss: '%d фурсат',
+            m: 'бир дакика',
+            mm: '%d дакика',
+            h: 'бир соат',
+            hh: '%d соат',
+            d: 'бир кун',
+            dd: '%d кун',
+            M: 'бир ой',
+            MM: '%d ой',
+            y: 'бир йил',
+            yy: '%d йил',
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 7, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return uz;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/vi.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/vi.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Vietnamese [vi]
 //! author : Bang Nguyen : https://github.com/bangnk
 //! author : Chien Kira : https://github.com/chienkira
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var vi = moment.defineLocale('vi', {
-                    months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
-                    weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
-                    weekdaysParseExact: true,
-                    meridiemParse: /sa|ch/i,
-                    isPM: function (input) {
-                        return /^ch$/i.test(input);
-                    },
-                    meridiem: function (hours, minutes, isLower) {
-                        if (hours < 12) {
-                            return isLower ? 'sa' : 'SA';
-                        } else {
-                            return isLower ? 'ch' : 'CH';
-                        }
-                    },
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM [năm] YYYY',
-                        LLL: 'D MMMM [năm] YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
-                        l: 'DD/M/YYYY',
-                        ll: 'D MMM YYYY',
-                        lll: 'D MMM YYYY HH:mm',
-                        llll: 'ddd, D MMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[Hôm nay lúc] LT',
-                        nextDay: '[Ngày mai lúc] LT',
-                        nextWeek: 'dddd [tuần tới lúc] LT',
-                        lastDay: '[Hôm qua lúc] LT',
-                        lastWeek: 'dddd [tuần trước lúc] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: '%s tá»›i',
-                        past: '%s trÆ°á»›c',
-                        s: 'vài giây',
-                        ss: '%d giây',
-                        m: 'một phút',
-                        mm: '%d phút',
-                        h: 'một giờ',
-                        hh: '%d giờ',
-                        d: 'một ngày',
-                        dd: '%d ngày',
-                        w: 'một tuần',
-                        ww: '%d tuần',
-                        M: 'một tháng',
-                        MM: '%d tháng',
-                        y: 'một năm',
-                        yy: '%d năm',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}/,
-                    ordinal: function (number) {
-                        return number;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return vi;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/x-pseudo.js":
-        /*!************************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var vi = moment.defineLocale('vi', {
+        months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
+            '_'
+        ),
+        monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
+            '_'
+        ),
+        weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
+        weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
+        weekdaysParseExact: true,
+        meridiemParse: /sa|ch/i,
+        isPM: function (input) {
+            return /^ch$/i.test(input);
+        },
+        meridiem: function (hours, minutes, isLower) {
+            if (hours < 12) {
+                return isLower ? 'sa' : 'SA';
+            } else {
+                return isLower ? 'ch' : 'CH';
+            }
+        },
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM [năm] YYYY',
+            LLL: 'D MMMM [năm] YYYY HH:mm',
+            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
+            l: 'DD/M/YYYY',
+            ll: 'D MMM YYYY',
+            lll: 'D MMM YYYY HH:mm',
+            llll: 'ddd, D MMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[Hôm nay lúc] LT',
+            nextDay: '[Ngày mai lúc] LT',
+            nextWeek: 'dddd [tuần tới lúc] LT',
+            lastDay: '[Hôm qua lúc] LT',
+            lastWeek: 'dddd [tuần trước lúc] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: '%s tá»›i',
+            past: '%s trÆ°á»›c',
+            s: 'vài giây',
+            ss: '%d giây',
+            m: 'một phút',
+            mm: '%d phút',
+            h: 'một giờ',
+            hh: '%d giờ',
+            d: 'một ngày',
+            dd: '%d ngày',
+            w: 'một tuần',
+            ww: '%d tuần',
+            M: 'một tháng',
+            MM: '%d tháng',
+            y: 'một năm',
+            yy: '%d năm',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}/,
+        ordinal: function (number) {
+            return number;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return vi;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/x-pseudo.js":
+/*!************************************************!*\
   !*** ./node_modules/moment/locale/x-pseudo.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Pseudo [x-pseudo]
 //! author : Andrew Hood : https://github.com/andrewhood125
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var xPseudo = moment.defineLocale('x-pseudo', {
-                    months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
-                        '_'
-                    ),
-                    monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
-                        '_'
-                    ),
-                    monthsParseExact: true,
-                    weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
-                        '_'
-                    ),
-                    weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
-                    weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
-                    weekdaysParseExact: true,
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY HH:mm',
-                        LLLL: 'dddd, D MMMM YYYY HH:mm',
-                    },
-                    calendar: {
-                        sameDay: '[T~ódá~ý át] LT',
-                        nextDay: '[T~ómó~rró~w át] LT',
-                        nextWeek: 'dddd [át] LT',
-                        lastDay: '[Ý~ést~érdá~ý át] LT',
-                        lastWeek: '[L~ást] dddd [át] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'í~ñ %s',
-                        past: '%s á~gó',
-                        s: 'á ~féw ~sécó~ñds',
-                        ss: '%d s~écóñ~ds',
-                        m: 'á ~míñ~úté',
-                        mm: '%d m~íñú~tés',
-                        h: 'á~ñ hó~úr',
-                        hh: '%d h~óúrs',
-                        d: 'á ~dáý',
-                        dd: '%d d~áýs',
-                        M: 'á ~móñ~th',
-                        MM: '%d m~óñt~hs',
-                        y: 'á ~ýéár',
-                        yy: '%d ý~éárs',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
-                    ordinal: function (number) {
-                        var b = number % 10,
-                            output =
-                                ~~((number % 100) / 10) === 1
-                                    ? 'th'
-                                    : b === 1
-                                        ? 'st'
-                                        : b === 2
-                                            ? 'nd'
-                                            : b === 3
-                                                ? 'rd'
-                                                : 'th';
-                        return number + output;
-                    },
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return xPseudo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/yo.js":
-        /*!******************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var xPseudo = moment.defineLocale('x-pseudo', {
+        months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
+            '_'
+        ),
+        monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
+            '_'
+        ),
+        monthsParseExact: true,
+        weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
+            '_'
+        ),
+        weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
+        weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
+        weekdaysParseExact: true,
+        longDateFormat: {
+            LT: 'HH:mm',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY HH:mm',
+            LLLL: 'dddd, D MMMM YYYY HH:mm',
+        },
+        calendar: {
+            sameDay: '[T~ódá~ý át] LT',
+            nextDay: '[T~ómó~rró~w át] LT',
+            nextWeek: 'dddd [át] LT',
+            lastDay: '[Ý~ést~érdá~ý át] LT',
+            lastWeek: '[L~ást] dddd [át] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'í~ñ %s',
+            past: '%s á~gó',
+            s: 'á ~féw ~sécó~ñds',
+            ss: '%d s~écóñ~ds',
+            m: 'á ~míñ~úté',
+            mm: '%d m~íñú~tés',
+            h: 'á~ñ hó~úr',
+            hh: '%d h~óúrs',
+            d: 'á ~dáý',
+            dd: '%d d~áýs',
+            M: 'á ~móñ~th',
+            MM: '%d m~óñt~hs',
+            y: 'á ~ýéár',
+            yy: '%d ý~éárs',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    ~~((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return xPseudo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/yo.js":
+/*!******************************************!*\
   !*** ./node_modules/moment/locale/yo.js ***!
   \******************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Yoruba Nigeria [yo]
 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var yo = moment.defineLocale('yo', {
-                    months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
-                        '_'
-                    ),
-                    monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
-                    weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
-                    weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
-                    weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
-                    longDateFormat: {
-                        LT: 'h:mm A',
-                        LTS: 'h:mm:ss A',
-                        L: 'DD/MM/YYYY',
-                        LL: 'D MMMM YYYY',
-                        LLL: 'D MMMM YYYY h:mm A',
-                        LLLL: 'dddd, D MMMM YYYY h:mm A',
-                    },
-                    calendar: {
-                        sameDay: '[Ònì ni] LT',
-                        nextDay: '[Ọ̀la ni] LT',
-                        nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
-                        lastDay: '[AÌ€na ni] LT',
-                        lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
-                        sameElse: 'L',
-                    },
-                    relativeTime: {
-                        future: 'ní %s',
-                        past: '%s kọjá',
-                        s: 'ìsẹjú aayá die',
-                        ss: 'aayá %d',
-                        m: 'ìsẹjú kan',
-                        mm: 'ìsẹjú %d',
-                        h: 'wákati kan',
-                        hh: 'wákati %d',
-                        d: 'ọjọ́ kan',
-                        dd: 'ọjọ́ %d',
-                        M: 'osù kan',
-                        MM: 'osù %d',
-                        y: 'ọdún kan',
-                        yy: 'ọdún %d',
-                    },
-                    dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
-                    ordinal: 'ọjọ́ %d',
-                    week: {
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return yo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/zh-cn.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var yo = moment.defineLocale('yo', {
+        months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
+            '_'
+        ),
+        monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
+        weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
+        weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
+        weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
+        longDateFormat: {
+            LT: 'h:mm A',
+            LTS: 'h:mm:ss A',
+            L: 'DD/MM/YYYY',
+            LL: 'D MMMM YYYY',
+            LLL: 'D MMMM YYYY h:mm A',
+            LLLL: 'dddd, D MMMM YYYY h:mm A',
+        },
+        calendar: {
+            sameDay: '[Ònì ni] LT',
+            nextDay: '[Ọ̀la ni] LT',
+            nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
+            lastDay: '[AÌ€na ni] LT',
+            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
+            sameElse: 'L',
+        },
+        relativeTime: {
+            future: 'ní %s',
+            past: '%s kọjá',
+            s: 'ìsẹjú aayá die',
+            ss: 'aayá %d',
+            m: 'ìsẹjú kan',
+            mm: 'ìsẹjú %d',
+            h: 'wákati kan',
+            hh: 'wákati %d',
+            d: 'ọjọ́ kan',
+            dd: 'ọjọ́ %d',
+            M: 'osù kan',
+            MM: 'osù %d',
+            y: 'ọdún kan',
+            yy: 'ọdún %d',
+        },
+        dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
+        ordinal: 'ọjọ́ %d',
+        week: {
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return yo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/zh-cn.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/zh-cn.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Chinese (China) [zh-cn]
@@ -113452,139 +113452,139 @@ THE SOFTWARE.
 //! author : Zeno Zeng : https://github.com/zenozeng
 //! author : uu109 : https://github.com/uu109
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var zhCn = moment.defineLocale('zh-cn', {
-                    months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
-                        '_'
-                    ),
-                    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-                        '_'
-                    ),
-                    weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
-                    weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
-                    weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY/MM/DD',
-                        LL: 'YYYY年M月D日',
-                        LLL: 'YYYY年M月D日Ah点mm分',
-                        LLLL: 'YYYY年M月D日ddddAh点mm分',
-                        l: 'YYYY/M/D',
-                        ll: 'YYYY年M月D日',
-                        lll: 'YYYY年M月D日 HH:mm',
-                        llll: 'YYYY年M月D日dddd HH:mm',
-                    },
-                    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
-                            return hour;
-                        } else if (meridiem === '下午' || meridiem === '晚上') {
-                            return hour + 12;
-                        } else {
-                            // '中午'
-                            return hour >= 11 ? hour : hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        var hm = hour * 100 + minute;
-                        if (hm < 600) {
-                            return '凌晨';
-                        } else if (hm < 900) {
-                            return '早上';
-                        } else if (hm < 1130) {
-                            return '上午';
-                        } else if (hm < 1230) {
-                            return '中午';
-                        } else if (hm < 1800) {
-                            return '下午';
-                        } else {
-                            return '晚上';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[今天]LT',
-                        nextDay: '[明天]LT',
-                        nextWeek: function (now) {
-                            if (now.week() !== this.week()) {
-                                return '[下]dddLT';
-                            } else {
-                                return '[本]dddLT';
-                            }
-                        },
-                        lastDay: '[昨天]LT',
-                        lastWeek: function (now) {
-                            if (this.week() !== now.week()) {
-                                return '[上]dddLT';
-                            } else {
-                                return '[本]dddLT';
-                            }
-                        },
-                        sameElse: 'L',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + 'æ—¥';
-                            case 'M':
-                                return number + '月';
-                            case 'w':
-                            case 'W':
-                                return number + '周';
-                            default:
-                                return number;
-                        }
-                    },
-                    relativeTime: {
-                        future: '%s后',
-                        past: '%s前',
-                        s: '几秒',
-                        ss: '%d 秒',
-                        m: '1 分钟',
-                        mm: '%d 分钟',
-                        h: '1 小时',
-                        hh: '%d 小时',
-                        d: '1 天',
-                        dd: '%d 天',
-                        w: '1 周',
-                        ww: '%d 周',
-                        M: '1 个月',
-                        MM: '%d 个月',
-                        y: '1 å¹´',
-                        yy: '%d å¹´',
-                    },
-                    week: {
-                        // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
-                        dow: 1, // Monday is the first day of the week.
-                        doy: 4, // The week that contains Jan 4th is the first week of the year.
-                    },
-                });
-
-                return zhCn;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/zh-hk.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var zhCn = moment.defineLocale('zh-cn', {
+        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
+            '_'
+        ),
+        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
+            '_'
+        ),
+        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+        weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
+        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY/MM/DD',
+            LL: 'YYYY年M月D日',
+            LLL: 'YYYY年M月D日Ah点mm分',
+            LLLL: 'YYYY年M月D日ddddAh点mm分',
+            l: 'YYYY/M/D',
+            ll: 'YYYY年M月D日',
+            lll: 'YYYY年M月D日 HH:mm',
+            llll: 'YYYY年M月D日dddd HH:mm',
+        },
+        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+                return hour;
+            } else if (meridiem === '下午' || meridiem === '晚上') {
+                return hour + 12;
+            } else {
+                // '中午'
+                return hour >= 11 ? hour : hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            var hm = hour * 100 + minute;
+            if (hm < 600) {
+                return '凌晨';
+            } else if (hm < 900) {
+                return '早上';
+            } else if (hm < 1130) {
+                return '上午';
+            } else if (hm < 1230) {
+                return '中午';
+            } else if (hm < 1800) {
+                return '下午';
+            } else {
+                return '晚上';
+            }
+        },
+        calendar: {
+            sameDay: '[今天]LT',
+            nextDay: '[明天]LT',
+            nextWeek: function (now) {
+                if (now.week() !== this.week()) {
+                    return '[下]dddLT';
+                } else {
+                    return '[本]dddLT';
+                }
+            },
+            lastDay: '[昨天]LT',
+            lastWeek: function (now) {
+                if (this.week() !== now.week()) {
+                    return '[上]dddLT';
+                } else {
+                    return '[本]dddLT';
+                }
+            },
+            sameElse: 'L',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + 'æ—¥';
+                case 'M':
+                    return number + '月';
+                case 'w':
+                case 'W':
+                    return number + '周';
+                default:
+                    return number;
+            }
+        },
+        relativeTime: {
+            future: '%s后',
+            past: '%s前',
+            s: '几秒',
+            ss: '%d 秒',
+            m: '1 分钟',
+            mm: '%d 分钟',
+            h: '1 小时',
+            hh: '%d 小时',
+            d: '1 天',
+            dd: '%d 天',
+            w: '1 周',
+            ww: '%d 周',
+            M: '1 个月',
+            MM: '%d 个月',
+            y: '1 å¹´',
+            yy: '%d å¹´',
+        },
+        week: {
+            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
+            dow: 1, // Monday is the first day of the week.
+            doy: 4, // The week that contains Jan 4th is the first week of the year.
+        },
+    });
+
+    return zhCn;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/zh-hk.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/zh-hk.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Chinese (Hong Kong) [zh-hk]
@@ -113593,119 +113593,119 @@ THE SOFTWARE.
 //! author : Konstantin : https://github.com/skfd
 //! author : Anthony : https://github.com/anthonylau
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var zhHk = moment.defineLocale('zh-hk', {
-                    months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
-                        '_'
-                    ),
-                    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-                        '_'
-                    ),
-                    weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
-                    weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
-                    weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY/MM/DD',
-                        LL: 'YYYY年M月D日',
-                        LLL: 'YYYY年M月D日 HH:mm',
-                        LLLL: 'YYYY年M月D日dddd HH:mm',
-                        l: 'YYYY/M/D',
-                        ll: 'YYYY年M月D日',
-                        lll: 'YYYY年M月D日 HH:mm',
-                        llll: 'YYYY年M月D日dddd HH:mm',
-                    },
-                    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
-                            return hour;
-                        } else if (meridiem === '中午') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === '下午' || meridiem === '晚上') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        var hm = hour * 100 + minute;
-                        if (hm < 600) {
-                            return '凌晨';
-                        } else if (hm < 900) {
-                            return '早上';
-                        } else if (hm < 1200) {
-                            return '上午';
-                        } else if (hm === 1200) {
-                            return '中午';
-                        } else if (hm < 1800) {
-                            return '下午';
-                        } else {
-                            return '晚上';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[今天]LT',
-                        nextDay: '[明天]LT',
-                        nextWeek: '[下]ddddLT',
-                        lastDay: '[昨天]LT',
-                        lastWeek: '[上]ddddLT',
-                        sameElse: 'L',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + 'æ—¥';
-                            case 'M':
-                                return number + '月';
-                            case 'w':
-                            case 'W':
-                                return number + '週';
-                            default:
-                                return number;
-                        }
-                    },
-                    relativeTime: {
-                        future: '%s後',
-                        past: '%s前',
-                        s: '幾秒',
-                        ss: '%d 秒',
-                        m: '1 分鐘',
-                        mm: '%d 分鐘',
-                        h: '1 小時',
-                        hh: '%d 小時',
-                        d: '1 天',
-                        dd: '%d 天',
-                        M: '1 個月',
-                        MM: '%d 個月',
-                        y: '1 å¹´',
-                        yy: '%d å¹´',
-                    },
-                });
-
-                return zhHk;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/zh-mo.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var zhHk = moment.defineLocale('zh-hk', {
+        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
+            '_'
+        ),
+        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
+            '_'
+        ),
+        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
+        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY/MM/DD',
+            LL: 'YYYY年M月D日',
+            LLL: 'YYYY年M月D日 HH:mm',
+            LLLL: 'YYYY年M月D日dddd HH:mm',
+            l: 'YYYY/M/D',
+            ll: 'YYYY年M月D日',
+            lll: 'YYYY年M月D日 HH:mm',
+            llll: 'YYYY年M月D日dddd HH:mm',
+        },
+        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+                return hour;
+            } else if (meridiem === '中午') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === '下午' || meridiem === '晚上') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            var hm = hour * 100 + minute;
+            if (hm < 600) {
+                return '凌晨';
+            } else if (hm < 900) {
+                return '早上';
+            } else if (hm < 1200) {
+                return '上午';
+            } else if (hm === 1200) {
+                return '中午';
+            } else if (hm < 1800) {
+                return '下午';
+            } else {
+                return '晚上';
+            }
+        },
+        calendar: {
+            sameDay: '[今天]LT',
+            nextDay: '[明天]LT',
+            nextWeek: '[下]ddddLT',
+            lastDay: '[昨天]LT',
+            lastWeek: '[上]ddddLT',
+            sameElse: 'L',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + 'æ—¥';
+                case 'M':
+                    return number + '月';
+                case 'w':
+                case 'W':
+                    return number + '週';
+                default:
+                    return number;
+            }
+        },
+        relativeTime: {
+            future: '%s後',
+            past: '%s前',
+            s: '幾秒',
+            ss: '%d 秒',
+            m: '1 分鐘',
+            mm: '%d 分鐘',
+            h: '1 小時',
+            hh: '%d 小時',
+            d: '1 天',
+            dd: '%d 天',
+            M: '1 個月',
+            MM: '%d 個月',
+            y: '1 å¹´',
+            yy: '%d å¹´',
+        },
+    });
+
+    return zhHk;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/zh-mo.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/zh-mo.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Chinese (Macau) [zh-mo]
@@ -113713,6235 +113713,6235 @@ THE SOFTWARE.
 //! author : Chris Lam : https://github.com/hehachris
 //! author : Tan Yuanhong : https://github.com/le0tan
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var zhMo = moment.defineLocale('zh-mo', {
-                    months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
-                        '_'
-                    ),
-                    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-                        '_'
-                    ),
-                    weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
-                    weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
-                    weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'DD/MM/YYYY',
-                        LL: 'YYYY年M月D日',
-                        LLL: 'YYYY年M月D日 HH:mm',
-                        LLLL: 'YYYY年M月D日dddd HH:mm',
-                        l: 'D/M/YYYY',
-                        ll: 'YYYY年M月D日',
-                        lll: 'YYYY年M月D日 HH:mm',
-                        llll: 'YYYY年M月D日dddd HH:mm',
-                    },
-                    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
-                            return hour;
-                        } else if (meridiem === '中午') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === '下午' || meridiem === '晚上') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        var hm = hour * 100 + minute;
-                        if (hm < 600) {
-                            return '凌晨';
-                        } else if (hm < 900) {
-                            return '早上';
-                        } else if (hm < 1130) {
-                            return '上午';
-                        } else if (hm < 1230) {
-                            return '中午';
-                        } else if (hm < 1800) {
-                            return '下午';
-                        } else {
-                            return '晚上';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[今天] LT',
-                        nextDay: '[明天] LT',
-                        nextWeek: '[下]dddd LT',
-                        lastDay: '[昨天] LT',
-                        lastWeek: '[上]dddd LT',
-                        sameElse: 'L',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + 'æ—¥';
-                            case 'M':
-                                return number + '月';
-                            case 'w':
-                            case 'W':
-                                return number + '週';
-                            default:
-                                return number;
-                        }
-                    },
-                    relativeTime: {
-                        future: '%så…§',
-                        past: '%s前',
-                        s: '幾秒',
-                        ss: '%d 秒',
-                        m: '1 分鐘',
-                        mm: '%d 分鐘',
-                        h: '1 小時',
-                        hh: '%d 小時',
-                        d: '1 天',
-                        dd: '%d 天',
-                        M: '1 個月',
-                        MM: '%d 個月',
-                        y: '1 å¹´',
-                        yy: '%d å¹´',
-                    },
-                });
-
-                return zhMo;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/locale/zh-tw.js":
-        /*!*********************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var zhMo = moment.defineLocale('zh-mo', {
+        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
+            '_'
+        ),
+        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
+            '_'
+        ),
+        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
+        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'DD/MM/YYYY',
+            LL: 'YYYY年M月D日',
+            LLL: 'YYYY年M月D日 HH:mm',
+            LLLL: 'YYYY年M月D日dddd HH:mm',
+            l: 'D/M/YYYY',
+            ll: 'YYYY年M月D日',
+            lll: 'YYYY年M月D日 HH:mm',
+            llll: 'YYYY年M月D日dddd HH:mm',
+        },
+        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+                return hour;
+            } else if (meridiem === '中午') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === '下午' || meridiem === '晚上') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            var hm = hour * 100 + minute;
+            if (hm < 600) {
+                return '凌晨';
+            } else if (hm < 900) {
+                return '早上';
+            } else if (hm < 1130) {
+                return '上午';
+            } else if (hm < 1230) {
+                return '中午';
+            } else if (hm < 1800) {
+                return '下午';
+            } else {
+                return '晚上';
+            }
+        },
+        calendar: {
+            sameDay: '[今天] LT',
+            nextDay: '[明天] LT',
+            nextWeek: '[下]dddd LT',
+            lastDay: '[昨天] LT',
+            lastWeek: '[上]dddd LT',
+            sameElse: 'L',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + 'æ—¥';
+                case 'M':
+                    return number + '月';
+                case 'w':
+                case 'W':
+                    return number + '週';
+                default:
+                    return number;
+            }
+        },
+        relativeTime: {
+            future: '%så…§',
+            past: '%s前',
+            s: '幾秒',
+            ss: '%d 秒',
+            m: '1 分鐘',
+            mm: '%d 分鐘',
+            h: '1 小時',
+            hh: '%d 小時',
+            d: '1 天',
+            dd: '%d 天',
+            M: '1 個月',
+            MM: '%d 個月',
+            y: '1 å¹´',
+            yy: '%d å¹´',
+        },
+    });
+
+    return zhMo;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/locale/zh-tw.js":
+/*!*********************************************!*\
   !*** ./node_modules/moment/locale/zh-tw.js ***!
   \*********************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
 //! moment.js locale configuration
 //! locale : Chinese (Taiwan) [zh-tw]
 //! author : Ben : https://github.com/ben-lin
 //! author : Chris Lam : https://github.com/hehachris
 
-            ;(function (global, factory) {
-                true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
-                    undefined
-            }(this, (function (moment) { 'use strict';
-
-                //! moment.js locale configuration
-
-                var zhTw = moment.defineLocale('zh-tw', {
-                    months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
-                        '_'
-                    ),
-                    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-                        '_'
-                    ),
-                    weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
-                    weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
-                    weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
-                    longDateFormat: {
-                        LT: 'HH:mm',
-                        LTS: 'HH:mm:ss',
-                        L: 'YYYY/MM/DD',
-                        LL: 'YYYY年M月D日',
-                        LLL: 'YYYY年M月D日 HH:mm',
-                        LLLL: 'YYYY年M月D日dddd HH:mm',
-                        l: 'YYYY/M/D',
-                        ll: 'YYYY年M月D日',
-                        lll: 'YYYY年M月D日 HH:mm',
-                        llll: 'YYYY年M月D日dddd HH:mm',
-                    },
-                    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
-                    meridiemHour: function (hour, meridiem) {
-                        if (hour === 12) {
-                            hour = 0;
-                        }
-                        if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
-                            return hour;
-                        } else if (meridiem === '中午') {
-                            return hour >= 11 ? hour : hour + 12;
-                        } else if (meridiem === '下午' || meridiem === '晚上') {
-                            return hour + 12;
-                        }
-                    },
-                    meridiem: function (hour, minute, isLower) {
-                        var hm = hour * 100 + minute;
-                        if (hm < 600) {
-                            return '凌晨';
-                        } else if (hm < 900) {
-                            return '早上';
-                        } else if (hm < 1130) {
-                            return '上午';
-                        } else if (hm < 1230) {
-                            return '中午';
-                        } else if (hm < 1800) {
-                            return '下午';
-                        } else {
-                            return '晚上';
-                        }
-                    },
-                    calendar: {
-                        sameDay: '[今天] LT',
-                        nextDay: '[明天] LT',
-                        nextWeek: '[下]dddd LT',
-                        lastDay: '[昨天] LT',
-                        lastWeek: '[上]dddd LT',
-                        sameElse: 'L',
-                    },
-                    dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
-                    ordinal: function (number, period) {
-                        switch (period) {
-                            case 'd':
-                            case 'D':
-                            case 'DDD':
-                                return number + 'æ—¥';
-                            case 'M':
-                                return number + '月';
-                            case 'w':
-                            case 'W':
-                                return number + '週';
-                            default:
-                                return number;
-                        }
-                    },
-                    relativeTime: {
-                        future: '%s後',
-                        past: '%s前',
-                        s: '幾秒',
-                        ss: '%d 秒',
-                        m: '1 分鐘',
-                        mm: '%d 分鐘',
-                        h: '1 小時',
-                        hh: '%d 小時',
-                        d: '1 天',
-                        dd: '%d 天',
-                        M: '1 個月',
-                        MM: '%d 個月',
-                        y: '1 å¹´',
-                        yy: '%d å¹´',
-                    },
-                });
-
-                return zhTw;
-
-            })));
-
-
-            /***/ }),
-
-        /***/ "./node_modules/moment/moment.js":
-        /*!***************************************!*\
+;(function (global, factory) {
+    true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
+   undefined
+}(this, (function (moment) { 'use strict';
+
+    //! moment.js locale configuration
+
+    var zhTw = moment.defineLocale('zh-tw', {
+        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
+            '_'
+        ),
+        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
+            '_'
+        ),
+        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
+        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
+        longDateFormat: {
+            LT: 'HH:mm',
+            LTS: 'HH:mm:ss',
+            L: 'YYYY/MM/DD',
+            LL: 'YYYY年M月D日',
+            LLL: 'YYYY年M月D日 HH:mm',
+            LLLL: 'YYYY年M月D日dddd HH:mm',
+            l: 'YYYY/M/D',
+            ll: 'YYYY年M月D日',
+            lll: 'YYYY年M月D日 HH:mm',
+            llll: 'YYYY年M月D日dddd HH:mm',
+        },
+        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+        meridiemHour: function (hour, meridiem) {
+            if (hour === 12) {
+                hour = 0;
+            }
+            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+                return hour;
+            } else if (meridiem === '中午') {
+                return hour >= 11 ? hour : hour + 12;
+            } else if (meridiem === '下午' || meridiem === '晚上') {
+                return hour + 12;
+            }
+        },
+        meridiem: function (hour, minute, isLower) {
+            var hm = hour * 100 + minute;
+            if (hm < 600) {
+                return '凌晨';
+            } else if (hm < 900) {
+                return '早上';
+            } else if (hm < 1130) {
+                return '上午';
+            } else if (hm < 1230) {
+                return '中午';
+            } else if (hm < 1800) {
+                return '下午';
+            } else {
+                return '晚上';
+            }
+        },
+        calendar: {
+            sameDay: '[今天] LT',
+            nextDay: '[明天] LT',
+            nextWeek: '[下]dddd LT',
+            lastDay: '[昨天] LT',
+            lastWeek: '[上]dddd LT',
+            sameElse: 'L',
+        },
+        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'DDD':
+                    return number + 'æ—¥';
+                case 'M':
+                    return number + '月';
+                case 'w':
+                case 'W':
+                    return number + '週';
+                default:
+                    return number;
+            }
+        },
+        relativeTime: {
+            future: '%s後',
+            past: '%s前',
+            s: '幾秒',
+            ss: '%d 秒',
+            m: '1 分鐘',
+            mm: '%d 分鐘',
+            h: '1 小時',
+            hh: '%d 小時',
+            d: '1 天',
+            dd: '%d 天',
+            M: '1 個月',
+            MM: '%d 個月',
+            y: '1 å¹´',
+            yy: '%d å¹´',
+        },
+    });
+
+    return zhTw;
+
+})));
+
+
+/***/ }),
+
+/***/ "./node_modules/moment/moment.js":
+/*!***************************************!*\
   !*** ./node_modules/moment/moment.js ***!
   \***************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
+/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
 //! version : 2.29.1
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
 //! license : MIT
 //! momentjs.com
 
-                ;(function (global, factory) {
-                    true ? module.exports = factory() :
-                        undefined
-                }(this, (function () { 'use strict';
-
-                    var hookCallback;
-
-                    function hooks() {
-                        return hookCallback.apply(null, arguments);
-                    }
-
-                    // This is done to register the method called with moment()
-                    // without creating circular dependencies.
-                    function setHookCallback(callback) {
-                        hookCallback = callback;
-                    }
-
-                    function isArray(input) {
-                        return (
-                            input instanceof Array ||
-                            Object.prototype.toString.call(input) === '[object Array]'
-                        );
-                    }
-
-                    function isObject(input) {
-                        // IE8 will treat undefined and null as object if it wasn't for
-                        // input != null
-                        return (
-                            input != null &&
-                            Object.prototype.toString.call(input) === '[object Object]'
-                        );
-                    }
-
-                    function hasOwnProp(a, b) {
-                        return Object.prototype.hasOwnProperty.call(a, b);
-                    }
-
-                    function isObjectEmpty(obj) {
-                        if (Object.getOwnPropertyNames) {
-                            return Object.getOwnPropertyNames(obj).length === 0;
-                        } else {
-                            var k;
-                            for (k in obj) {
-                                if (hasOwnProp(obj, k)) {
-                                    return false;
-                                }
-                            }
-                            return true;
-                        }
-                    }
-
-                    function isUndefined(input) {
-                        return input === void 0;
-                    }
-
-                    function isNumber(input) {
-                        return (
-                            typeof input === 'number' ||
-                            Object.prototype.toString.call(input) === '[object Number]'
-                        );
-                    }
+;(function (global, factory) {
+     true ? module.exports = factory() :
+    undefined
+}(this, (function () { 'use strict';
 
-                    function isDate(input) {
-                        return (
-                            input instanceof Date ||
-                            Object.prototype.toString.call(input) === '[object Date]'
-                        );
-                    }
+    var hookCallback;
 
-                    function map(arr, fn) {
-                        var res = [],
-                            i;
-                        for (i = 0; i < arr.length; ++i) {
-                            res.push(fn(arr[i], i));
-                        }
-                        return res;
-                    }
+    function hooks() {
+        return hookCallback.apply(null, arguments);
+    }
 
-                    function extend(a, b) {
-                        for (var i in b) {
-                            if (hasOwnProp(b, i)) {
-                                a[i] = b[i];
-                            }
-                        }
+    // This is done to register the method called with moment()
+    // without creating circular dependencies.
+    function setHookCallback(callback) {
+        hookCallback = callback;
+    }
 
-                        if (hasOwnProp(b, 'toString')) {
-                            a.toString = b.toString;
-                        }
+    function isArray(input) {
+        return (
+            input instanceof Array ||
+            Object.prototype.toString.call(input) === '[object Array]'
+        );
+    }
 
-                        if (hasOwnProp(b, 'valueOf')) {
-                            a.valueOf = b.valueOf;
-                        }
+    function isObject(input) {
+        // IE8 will treat undefined and null as object if it wasn't for
+        // input != null
+        return (
+            input != null &&
+            Object.prototype.toString.call(input) === '[object Object]'
+        );
+    }
 
-                        return a;
-                    }
+    function hasOwnProp(a, b) {
+        return Object.prototype.hasOwnProperty.call(a, b);
+    }
 
-                    function createUTC(input, format, locale, strict) {
-                        return createLocalOrUTC(input, format, locale, strict, true).utc();
-                    }
+    function isObjectEmpty(obj) {
+        if (Object.getOwnPropertyNames) {
+            return Object.getOwnPropertyNames(obj).length === 0;
+        } else {
+            var k;
+            for (k in obj) {
+                if (hasOwnProp(obj, k)) {
+                    return false;
+                }
+            }
+            return true;
+        }
+    }
 
-                    function defaultParsingFlags() {
-                        // We need to deep clone this object.
-                        return {
-                            empty: false,
-                            unusedTokens: [],
-                            unusedInput: [],
-                            overflow: -2,
-                            charsLeftOver: 0,
-                            nullInput: false,
-                            invalidEra: null,
-                            invalidMonth: null,
-                            invalidFormat: false,
-                            userInvalidated: false,
-                            iso: false,
-                            parsedDateParts: [],
-                            era: null,
-                            meridiem: null,
-                            rfc2822: false,
-                            weekdayMismatch: false,
-                        };
-                    }
+    function isUndefined(input) {
+        return input === void 0;
+    }
 
-                    function getParsingFlags(m) {
-                        if (m._pf == null) {
-                            m._pf = defaultParsingFlags();
-                        }
-                        return m._pf;
-                    }
+    function isNumber(input) {
+        return (
+            typeof input === 'number' ||
+            Object.prototype.toString.call(input) === '[object Number]'
+        );
+    }
 
-                    var some;
-                    if (Array.prototype.some) {
-                        some = Array.prototype.some;
-                    } else {
-                        some = function (fun) {
-                            var t = Object(this),
-                                len = t.length >>> 0,
-                                i;
-
-                            for (i = 0; i < len; i++) {
-                                if (i in t && fun.call(this, t[i], i, t)) {
-                                    return true;
-                                }
-                            }
+    function isDate(input) {
+        return (
+            input instanceof Date ||
+            Object.prototype.toString.call(input) === '[object Date]'
+        );
+    }
 
-                            return false;
-                        };
-                    }
+    function map(arr, fn) {
+        var res = [],
+            i;
+        for (i = 0; i < arr.length; ++i) {
+            res.push(fn(arr[i], i));
+        }
+        return res;
+    }
 
-                    function isValid(m) {
-                        if (m._isValid == null) {
-                            var flags = getParsingFlags(m),
-                                parsedParts = some.call(flags.parsedDateParts, function (i) {
-                                    return i != null;
-                                }),
-                                isNowValid =
-                                    !isNaN(m._d.getTime()) &&
-                                    flags.overflow < 0 &&
-                                    !flags.empty &&
-                                    !flags.invalidEra &&
-                                    !flags.invalidMonth &&
-                                    !flags.invalidWeekday &&
-                                    !flags.weekdayMismatch &&
-                                    !flags.nullInput &&
-                                    !flags.invalidFormat &&
-                                    !flags.userInvalidated &&
-                                    (!flags.meridiem || (flags.meridiem && parsedParts));
-
-                            if (m._strict) {
-                                isNowValid =
-                                    isNowValid &&
-                                    flags.charsLeftOver === 0 &&
-                                    flags.unusedTokens.length === 0 &&
-                                    flags.bigHour === undefined;
-                            }
+    function extend(a, b) {
+        for (var i in b) {
+            if (hasOwnProp(b, i)) {
+                a[i] = b[i];
+            }
+        }
 
-                            if (Object.isFrozen == null || !Object.isFrozen(m)) {
-                                m._isValid = isNowValid;
-                            } else {
-                                return isNowValid;
-                            }
-                        }
-                        return m._isValid;
-                    }
+        if (hasOwnProp(b, 'toString')) {
+            a.toString = b.toString;
+        }
 
-                    function createInvalid(flags) {
-                        var m = createUTC(NaN);
-                        if (flags != null) {
-                            extend(getParsingFlags(m), flags);
-                        } else {
-                            getParsingFlags(m).userInvalidated = true;
-                        }
+        if (hasOwnProp(b, 'valueOf')) {
+            a.valueOf = b.valueOf;
+        }
 
-                        return m;
-                    }
+        return a;
+    }
 
-                    // Plugins that add properties should also add the key here (null value),
-                    // so we can properly clone ourselves.
-                    var momentProperties = (hooks.momentProperties = []),
-                        updateInProgress = false;
+    function createUTC(input, format, locale, strict) {
+        return createLocalOrUTC(input, format, locale, strict, true).utc();
+    }
 
-                    function copyConfig(to, from) {
-                        var i, prop, val;
+    function defaultParsingFlags() {
+        // We need to deep clone this object.
+        return {
+            empty: false,
+            unusedTokens: [],
+            unusedInput: [],
+            overflow: -2,
+            charsLeftOver: 0,
+            nullInput: false,
+            invalidEra: null,
+            invalidMonth: null,
+            invalidFormat: false,
+            userInvalidated: false,
+            iso: false,
+            parsedDateParts: [],
+            era: null,
+            meridiem: null,
+            rfc2822: false,
+            weekdayMismatch: false,
+        };
+    }
 
-                        if (!isUndefined(from._isAMomentObject)) {
-                            to._isAMomentObject = from._isAMomentObject;
-                        }
-                        if (!isUndefined(from._i)) {
-                            to._i = from._i;
-                        }
-                        if (!isUndefined(from._f)) {
-                            to._f = from._f;
-                        }
-                        if (!isUndefined(from._l)) {
-                            to._l = from._l;
-                        }
-                        if (!isUndefined(from._strict)) {
-                            to._strict = from._strict;
-                        }
-                        if (!isUndefined(from._tzm)) {
-                            to._tzm = from._tzm;
-                        }
-                        if (!isUndefined(from._isUTC)) {
-                            to._isUTC = from._isUTC;
-                        }
-                        if (!isUndefined(from._offset)) {
-                            to._offset = from._offset;
-                        }
-                        if (!isUndefined(from._pf)) {
-                            to._pf = getParsingFlags(from);
-                        }
-                        if (!isUndefined(from._locale)) {
-                            to._locale = from._locale;
-                        }
+    function getParsingFlags(m) {
+        if (m._pf == null) {
+            m._pf = defaultParsingFlags();
+        }
+        return m._pf;
+    }
 
-                        if (momentProperties.length > 0) {
-                            for (i = 0; i < momentProperties.length; i++) {
-                                prop = momentProperties[i];
-                                val = from[prop];
-                                if (!isUndefined(val)) {
-                                    to[prop] = val;
-                                }
-                            }
-                        }
+    var some;
+    if (Array.prototype.some) {
+        some = Array.prototype.some;
+    } else {
+        some = function (fun) {
+            var t = Object(this),
+                len = t.length >>> 0,
+                i;
+
+            for (i = 0; i < len; i++) {
+                if (i in t && fun.call(this, t[i], i, t)) {
+                    return true;
+                }
+            }
 
-                        return to;
-                    }
+            return false;
+        };
+    }
 
-                    // Moment prototype object
-                    function Moment(config) {
-                        copyConfig(this, config);
-                        this._d = new Date(config._d != null ? config._d.getTime() : NaN);
-                        if (!this.isValid()) {
-                            this._d = new Date(NaN);
-                        }
-                        // Prevent infinite loop in case updateOffset creates new moment
-                        // objects.
-                        if (updateInProgress === false) {
-                            updateInProgress = true;
-                            hooks.updateOffset(this);
-                            updateInProgress = false;
-                        }
-                    }
+    function isValid(m) {
+        if (m._isValid == null) {
+            var flags = getParsingFlags(m),
+                parsedParts = some.call(flags.parsedDateParts, function (i) {
+                    return i != null;
+                }),
+                isNowValid =
+                    !isNaN(m._d.getTime()) &&
+                    flags.overflow < 0 &&
+                    !flags.empty &&
+                    !flags.invalidEra &&
+                    !flags.invalidMonth &&
+                    !flags.invalidWeekday &&
+                    !flags.weekdayMismatch &&
+                    !flags.nullInput &&
+                    !flags.invalidFormat &&
+                    !flags.userInvalidated &&
+                    (!flags.meridiem || (flags.meridiem && parsedParts));
+
+            if (m._strict) {
+                isNowValid =
+                    isNowValid &&
+                    flags.charsLeftOver === 0 &&
+                    flags.unusedTokens.length === 0 &&
+                    flags.bigHour === undefined;
+            }
 
-                    function isMoment(obj) {
-                        return (
-                            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
-                        );
-                    }
+            if (Object.isFrozen == null || !Object.isFrozen(m)) {
+                m._isValid = isNowValid;
+            } else {
+                return isNowValid;
+            }
+        }
+        return m._isValid;
+    }
 
-                    function warn(msg) {
-                        if (
-                            hooks.suppressDeprecationWarnings === false &&
-                            typeof console !== 'undefined' &&
-                            console.warn
-                        ) {
-                            console.warn('Deprecation warning: ' + msg);
-                        }
-                    }
+    function createInvalid(flags) {
+        var m = createUTC(NaN);
+        if (flags != null) {
+            extend(getParsingFlags(m), flags);
+        } else {
+            getParsingFlags(m).userInvalidated = true;
+        }
 
-                    function deprecate(msg, fn) {
-                        var firstTime = true;
+        return m;
+    }
 
-                        return extend(function () {
-                            if (hooks.deprecationHandler != null) {
-                                hooks.deprecationHandler(null, msg);
-                            }
-                            if (firstTime) {
-                                var args = [],
-                                    arg,
-                                    i,
-                                    key;
-                                for (i = 0; i < arguments.length; i++) {
-                                    arg = '';
-                                    if (typeof arguments[i] === 'object') {
-                                        arg += '\n[' + i + '] ';
-                                        for (key in arguments[0]) {
-                                            if (hasOwnProp(arguments[0], key)) {
-                                                arg += key + ': ' + arguments[0][key] + ', ';
-                                            }
-                                        }
-                                        arg = arg.slice(0, -2); // Remove trailing comma and space
-                                    } else {
-                                        arg = arguments[i];
-                                    }
-                                    args.push(arg);
-                                }
-                                warn(
-                                    msg +
-                                    '\nArguments: ' +
-                                    Array.prototype.slice.call(args).join('') +
-                                    '\n' +
-                                    new Error().stack
-                                );
-                                firstTime = false;
-                            }
-                            return fn.apply(this, arguments);
-                        }, fn);
-                    }
+    // Plugins that add properties should also add the key here (null value),
+    // so we can properly clone ourselves.
+    var momentProperties = (hooks.momentProperties = []),
+        updateInProgress = false;
 
-                    var deprecations = {};
+    function copyConfig(to, from) {
+        var i, prop, val;
 
-                    function deprecateSimple(name, msg) {
-                        if (hooks.deprecationHandler != null) {
-                            hooks.deprecationHandler(name, msg);
-                        }
-                        if (!deprecations[name]) {
-                            warn(msg);
-                            deprecations[name] = true;
-                        }
-                    }
+        if (!isUndefined(from._isAMomentObject)) {
+            to._isAMomentObject = from._isAMomentObject;
+        }
+        if (!isUndefined(from._i)) {
+            to._i = from._i;
+        }
+        if (!isUndefined(from._f)) {
+            to._f = from._f;
+        }
+        if (!isUndefined(from._l)) {
+            to._l = from._l;
+        }
+        if (!isUndefined(from._strict)) {
+            to._strict = from._strict;
+        }
+        if (!isUndefined(from._tzm)) {
+            to._tzm = from._tzm;
+        }
+        if (!isUndefined(from._isUTC)) {
+            to._isUTC = from._isUTC;
+        }
+        if (!isUndefined(from._offset)) {
+            to._offset = from._offset;
+        }
+        if (!isUndefined(from._pf)) {
+            to._pf = getParsingFlags(from);
+        }
+        if (!isUndefined(from._locale)) {
+            to._locale = from._locale;
+        }
 
-                    hooks.suppressDeprecationWarnings = false;
-                    hooks.deprecationHandler = null;
+        if (momentProperties.length > 0) {
+            for (i = 0; i < momentProperties.length; i++) {
+                prop = momentProperties[i];
+                val = from[prop];
+                if (!isUndefined(val)) {
+                    to[prop] = val;
+                }
+            }
+        }
 
-                    function isFunction(input) {
-                        return (
-                            (typeof Function !== 'undefined' && input instanceof Function) ||
-                            Object.prototype.toString.call(input) === '[object Function]'
-                        );
-                    }
+        return to;
+    }
 
-                    function set(config) {
-                        var prop, i;
-                        for (i in config) {
-                            if (hasOwnProp(config, i)) {
-                                prop = config[i];
-                                if (isFunction(prop)) {
-                                    this[i] = prop;
-                                } else {
-                                    this['_' + i] = prop;
-                                }
-                            }
-                        }
-                        this._config = config;
-                        // Lenient ordinal parsing accepts just a number in addition to
-                        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
-                        // TODO: Remove "ordinalParse" fallback in next major release.
-                        this._dayOfMonthOrdinalParseLenient = new RegExp(
-                            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
-                            '|' +
-                            /\d{1,2}/.source
-                        );
-                    }
+    // Moment prototype object
+    function Moment(config) {
+        copyConfig(this, config);
+        this._d = new Date(config._d != null ? config._d.getTime() : NaN);
+        if (!this.isValid()) {
+            this._d = new Date(NaN);
+        }
+        // Prevent infinite loop in case updateOffset creates new moment
+        // objects.
+        if (updateInProgress === false) {
+            updateInProgress = true;
+            hooks.updateOffset(this);
+            updateInProgress = false;
+        }
+    }
 
-                    function mergeConfigs(parentConfig, childConfig) {
-                        var res = extend({}, parentConfig),
-                            prop;
-                        for (prop in childConfig) {
-                            if (hasOwnProp(childConfig, prop)) {
-                                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
-                                    res[prop] = {};
-                                    extend(res[prop], parentConfig[prop]);
-                                    extend(res[prop], childConfig[prop]);
-                                } else if (childConfig[prop] != null) {
-                                    res[prop] = childConfig[prop];
-                                } else {
-                                    delete res[prop];
-                                }
-                            }
-                        }
-                        for (prop in parentConfig) {
-                            if (
-                                hasOwnProp(parentConfig, prop) &&
-                                !hasOwnProp(childConfig, prop) &&
-                                isObject(parentConfig[prop])
-                            ) {
-                                // make sure changes to properties don't modify parent config
-                                res[prop] = extend({}, res[prop]);
-                            }
-                        }
-                        return res;
-                    }
+    function isMoment(obj) {
+        return (
+            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
+        );
+    }
 
-                    function Locale(config) {
-                        if (config != null) {
-                            this.set(config);
-                        }
-                    }
+    function warn(msg) {
+        if (
+            hooks.suppressDeprecationWarnings === false &&
+            typeof console !== 'undefined' &&
+            console.warn
+        ) {
+            console.warn('Deprecation warning: ' + msg);
+        }
+    }
 
-                    var keys;
+    function deprecate(msg, fn) {
+        var firstTime = true;
 
-                    if (Object.keys) {
-                        keys = Object.keys;
+        return extend(function () {
+            if (hooks.deprecationHandler != null) {
+                hooks.deprecationHandler(null, msg);
+            }
+            if (firstTime) {
+                var args = [],
+                    arg,
+                    i,
+                    key;
+                for (i = 0; i < arguments.length; i++) {
+                    arg = '';
+                    if (typeof arguments[i] === 'object') {
+                        arg += '\n[' + i + '] ';
+                        for (key in arguments[0]) {
+                            if (hasOwnProp(arguments[0], key)) {
+                                arg += key + ': ' + arguments[0][key] + ', ';
+                            }
+                        }
+                        arg = arg.slice(0, -2); // Remove trailing comma and space
                     } else {
-                        keys = function (obj) {
-                            var i,
-                                res = [];
-                            for (i in obj) {
-                                if (hasOwnProp(obj, i)) {
-                                    res.push(i);
-                                }
-                            }
-                            return res;
-                        };
+                        arg = arguments[i];
                     }
+                    args.push(arg);
+                }
+                warn(
+                    msg +
+                        '\nArguments: ' +
+                        Array.prototype.slice.call(args).join('') +
+                        '\n' +
+                        new Error().stack
+                );
+                firstTime = false;
+            }
+            return fn.apply(this, arguments);
+        }, fn);
+    }
 
-                    var defaultCalendar = {
-                        sameDay: '[Today at] LT',
-                        nextDay: '[Tomorrow at] LT',
-                        nextWeek: 'dddd [at] LT',
-                        lastDay: '[Yesterday at] LT',
-                        lastWeek: '[Last] dddd [at] LT',
-                        sameElse: 'L',
-                    };
-
-                    function calendar(key, mom, now) {
-                        var output = this._calendar[key] || this._calendar['sameElse'];
-                        return isFunction(output) ? output.call(mom, now) : output;
-                    }
+    var deprecations = {};
 
-                    function zeroFill(number, targetLength, forceSign) {
-                        var absNumber = '' + Math.abs(number),
-                            zerosToFill = targetLength - absNumber.length,
-                            sign = number >= 0;
-                        return (
-                            (sign ? (forceSign ? '+' : '') : '-') +
-                            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
-                            absNumber
-                        );
-                    }
+    function deprecateSimple(name, msg) {
+        if (hooks.deprecationHandler != null) {
+            hooks.deprecationHandler(name, msg);
+        }
+        if (!deprecations[name]) {
+            warn(msg);
+            deprecations[name] = true;
+        }
+    }
 
-                    var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
-                        localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
-                        formatFunctions = {},
-                        formatTokenFunctions = {};
-
-                    // token:    'M'
-                    // padded:   ['MM', 2]
-                    // ordinal:  'Mo'
-                    // callback: function () { this.month() + 1 }
-                    function addFormatToken(token, padded, ordinal, callback) {
-                        var func = callback;
-                        if (typeof callback === 'string') {
-                            func = function () {
-                                return this[callback]();
-                            };
-                        }
-                        if (token) {
-                            formatTokenFunctions[token] = func;
-                        }
-                        if (padded) {
-                            formatTokenFunctions[padded[0]] = function () {
-                                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
-                            };
-                        }
-                        if (ordinal) {
-                            formatTokenFunctions[ordinal] = function () {
-                                return this.localeData().ordinal(
-                                    func.apply(this, arguments),
-                                    token
-                                );
-                            };
-                        }
-                    }
+    hooks.suppressDeprecationWarnings = false;
+    hooks.deprecationHandler = null;
 
-                    function removeFormattingTokens(input) {
-                        if (input.match(/\[[\s\S]/)) {
-                            return input.replace(/^\[|\]$/g, '');
-                        }
-                        return input.replace(/\\/g, '');
-                    }
+    function isFunction(input) {
+        return (
+            (typeof Function !== 'undefined' && input instanceof Function) ||
+            Object.prototype.toString.call(input) === '[object Function]'
+        );
+    }
 
-                    function makeFormatFunction(format) {
-                        var array = format.match(formattingTokens),
-                            i,
-                            length;
+    function set(config) {
+        var prop, i;
+        for (i in config) {
+            if (hasOwnProp(config, i)) {
+                prop = config[i];
+                if (isFunction(prop)) {
+                    this[i] = prop;
+                } else {
+                    this['_' + i] = prop;
+                }
+            }
+        }
+        this._config = config;
+        // Lenient ordinal parsing accepts just a number in addition to
+        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
+        // TODO: Remove "ordinalParse" fallback in next major release.
+        this._dayOfMonthOrdinalParseLenient = new RegExp(
+            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
+                '|' +
+                /\d{1,2}/.source
+        );
+    }
 
-                        for (i = 0, length = array.length; i < length; i++) {
-                            if (formatTokenFunctions[array[i]]) {
-                                array[i] = formatTokenFunctions[array[i]];
-                            } else {
-                                array[i] = removeFormattingTokens(array[i]);
-                            }
-                        }
+    function mergeConfigs(parentConfig, childConfig) {
+        var res = extend({}, parentConfig),
+            prop;
+        for (prop in childConfig) {
+            if (hasOwnProp(childConfig, prop)) {
+                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
+                    res[prop] = {};
+                    extend(res[prop], parentConfig[prop]);
+                    extend(res[prop], childConfig[prop]);
+                } else if (childConfig[prop] != null) {
+                    res[prop] = childConfig[prop];
+                } else {
+                    delete res[prop];
+                }
+            }
+        }
+        for (prop in parentConfig) {
+            if (
+                hasOwnProp(parentConfig, prop) &&
+                !hasOwnProp(childConfig, prop) &&
+                isObject(parentConfig[prop])
+            ) {
+                // make sure changes to properties don't modify parent config
+                res[prop] = extend({}, res[prop]);
+            }
+        }
+        return res;
+    }
 
-                        return function (mom) {
-                            var output = '',
-                                i;
-                            for (i = 0; i < length; i++) {
-                                output += isFunction(array[i])
-                                    ? array[i].call(mom, format)
-                                    : array[i];
-                            }
-                            return output;
-                        };
-                    }
+    function Locale(config) {
+        if (config != null) {
+            this.set(config);
+        }
+    }
 
-                    // format date using native date object
-                    function formatMoment(m, format) {
-                        if (!m.isValid()) {
-                            return m.localeData().invalidDate();
-                        }
+    var keys;
 
-                        format = expandFormat(format, m.localeData());
-                        formatFunctions[format] =
-                            formatFunctions[format] || makeFormatFunction(format);
+    if (Object.keys) {
+        keys = Object.keys;
+    } else {
+        keys = function (obj) {
+            var i,
+                res = [];
+            for (i in obj) {
+                if (hasOwnProp(obj, i)) {
+                    res.push(i);
+                }
+            }
+            return res;
+        };
+    }
 
-                        return formatFunctions[format](m);
-                    }
+    var defaultCalendar = {
+        sameDay: '[Today at] LT',
+        nextDay: '[Tomorrow at] LT',
+        nextWeek: 'dddd [at] LT',
+        lastDay: '[Yesterday at] LT',
+        lastWeek: '[Last] dddd [at] LT',
+        sameElse: 'L',
+    };
+
+    function calendar(key, mom, now) {
+        var output = this._calendar[key] || this._calendar['sameElse'];
+        return isFunction(output) ? output.call(mom, now) : output;
+    }
 
-                    function expandFormat(format, locale) {
-                        var i = 5;
+    function zeroFill(number, targetLength, forceSign) {
+        var absNumber = '' + Math.abs(number),
+            zerosToFill = targetLength - absNumber.length,
+            sign = number >= 0;
+        return (
+            (sign ? (forceSign ? '+' : '') : '-') +
+            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
+            absNumber
+        );
+    }
 
-                        function replaceLongDateFormatTokens(input) {
-                            return locale.longDateFormat(input) || input;
-                        }
+    var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
+        localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
+        formatFunctions = {},
+        formatTokenFunctions = {};
+
+    // token:    'M'
+    // padded:   ['MM', 2]
+    // ordinal:  'Mo'
+    // callback: function () { this.month() + 1 }
+    function addFormatToken(token, padded, ordinal, callback) {
+        var func = callback;
+        if (typeof callback === 'string') {
+            func = function () {
+                return this[callback]();
+            };
+        }
+        if (token) {
+            formatTokenFunctions[token] = func;
+        }
+        if (padded) {
+            formatTokenFunctions[padded[0]] = function () {
+                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
+            };
+        }
+        if (ordinal) {
+            formatTokenFunctions[ordinal] = function () {
+                return this.localeData().ordinal(
+                    func.apply(this, arguments),
+                    token
+                );
+            };
+        }
+    }
 
-                        localFormattingTokens.lastIndex = 0;
-                        while (i >= 0 && localFormattingTokens.test(format)) {
-                            format = format.replace(
-                                localFormattingTokens,
-                                replaceLongDateFormatTokens
-                            );
-                            localFormattingTokens.lastIndex = 0;
-                            i -= 1;
-                        }
+    function removeFormattingTokens(input) {
+        if (input.match(/\[[\s\S]/)) {
+            return input.replace(/^\[|\]$/g, '');
+        }
+        return input.replace(/\\/g, '');
+    }
 
-                        return format;
-                    }
+    function makeFormatFunction(format) {
+        var array = format.match(formattingTokens),
+            i,
+            length;
 
-                    var defaultLongDateFormat = {
-                        LTS: 'h:mm:ss A',
-                        LT: 'h:mm A',
-                        L: 'MM/DD/YYYY',
-                        LL: 'MMMM D, YYYY',
-                        LLL: 'MMMM D, YYYY h:mm A',
-                        LLLL: 'dddd, MMMM D, YYYY h:mm A',
-                    };
-
-                    function longDateFormat(key) {
-                        var format = this._longDateFormat[key],
-                            formatUpper = this._longDateFormat[key.toUpperCase()];
-
-                        if (format || !formatUpper) {
-                            return format;
-                        }
+        for (i = 0, length = array.length; i < length; i++) {
+            if (formatTokenFunctions[array[i]]) {
+                array[i] = formatTokenFunctions[array[i]];
+            } else {
+                array[i] = removeFormattingTokens(array[i]);
+            }
+        }
 
-                        this._longDateFormat[key] = formatUpper
-                            .match(formattingTokens)
-                            .map(function (tok) {
-                                if (
-                                    tok === 'MMMM' ||
-                                    tok === 'MM' ||
-                                    tok === 'DD' ||
-                                    tok === 'dddd'
-                                ) {
-                                    return tok.slice(1);
-                                }
-                                return tok;
-                            })
-                            .join('');
-
-                        return this._longDateFormat[key];
-                    }
+        return function (mom) {
+            var output = '',
+                i;
+            for (i = 0; i < length; i++) {
+                output += isFunction(array[i])
+                    ? array[i].call(mom, format)
+                    : array[i];
+            }
+            return output;
+        };
+    }
 
-                    var defaultInvalidDate = 'Invalid date';
+    // format date using native date object
+    function formatMoment(m, format) {
+        if (!m.isValid()) {
+            return m.localeData().invalidDate();
+        }
 
-                    function invalidDate() {
-                        return this._invalidDate;
-                    }
+        format = expandFormat(format, m.localeData());
+        formatFunctions[format] =
+            formatFunctions[format] || makeFormatFunction(format);
 
-                    var defaultOrdinal = '%d',
-                        defaultDayOfMonthOrdinalParse = /\d{1,2}/;
+        return formatFunctions[format](m);
+    }
 
-                    function ordinal(number) {
-                        return this._ordinal.replace('%d', number);
-                    }
+    function expandFormat(format, locale) {
+        var i = 5;
 
-                    var defaultRelativeTime = {
-                        future: 'in %s',
-                        past: '%s ago',
-                        s: 'a few seconds',
-                        ss: '%d seconds',
-                        m: 'a minute',
-                        mm: '%d minutes',
-                        h: 'an hour',
-                        hh: '%d hours',
-                        d: 'a day',
-                        dd: '%d days',
-                        w: 'a week',
-                        ww: '%d weeks',
-                        M: 'a month',
-                        MM: '%d months',
-                        y: 'a year',
-                        yy: '%d years',
-                    };
-
-                    function relativeTime(number, withoutSuffix, string, isFuture) {
-                        var output = this._relativeTime[string];
-                        return isFunction(output)
-                            ? output(number, withoutSuffix, string, isFuture)
-                            : output.replace(/%d/i, number);
-                    }
+        function replaceLongDateFormatTokens(input) {
+            return locale.longDateFormat(input) || input;
+        }
 
-                    function pastFuture(diff, output) {
-                        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
-                        return isFunction(format) ? format(output) : format.replace(/%s/i, output);
-                    }
+        localFormattingTokens.lastIndex = 0;
+        while (i >= 0 && localFormattingTokens.test(format)) {
+            format = format.replace(
+                localFormattingTokens,
+                replaceLongDateFormatTokens
+            );
+            localFormattingTokens.lastIndex = 0;
+            i -= 1;
+        }
 
-                    var aliases = {};
+        return format;
+    }
 
-                    function addUnitAlias(unit, shorthand) {
-                        var lowerCase = unit.toLowerCase();
-                        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
-                    }
+    var defaultLongDateFormat = {
+        LTS: 'h:mm:ss A',
+        LT: 'h:mm A',
+        L: 'MM/DD/YYYY',
+        LL: 'MMMM D, YYYY',
+        LLL: 'MMMM D, YYYY h:mm A',
+        LLLL: 'dddd, MMMM D, YYYY h:mm A',
+    };
+
+    function longDateFormat(key) {
+        var format = this._longDateFormat[key],
+            formatUpper = this._longDateFormat[key.toUpperCase()];
+
+        if (format || !formatUpper) {
+            return format;
+        }
 
-                    function normalizeUnits(units) {
-                        return typeof units === 'string'
-                            ? aliases[units] || aliases[units.toLowerCase()]
-                            : undefined;
-                    }
+        this._longDateFormat[key] = formatUpper
+            .match(formattingTokens)
+            .map(function (tok) {
+                if (
+                    tok === 'MMMM' ||
+                    tok === 'MM' ||
+                    tok === 'DD' ||
+                    tok === 'dddd'
+                ) {
+                    return tok.slice(1);
+                }
+                return tok;
+            })
+            .join('');
 
-                    function normalizeObjectUnits(inputObject) {
-                        var normalizedInput = {},
-                            normalizedProp,
-                            prop;
-
-                        for (prop in inputObject) {
-                            if (hasOwnProp(inputObject, prop)) {
-                                normalizedProp = normalizeUnits(prop);
-                                if (normalizedProp) {
-                                    normalizedInput[normalizedProp] = inputObject[prop];
-                                }
-                            }
-                        }
+        return this._longDateFormat[key];
+    }
 
-                        return normalizedInput;
-                    }
+    var defaultInvalidDate = 'Invalid date';
 
-                    var priorities = {};
+    function invalidDate() {
+        return this._invalidDate;
+    }
 
-                    function addUnitPriority(unit, priority) {
-                        priorities[unit] = priority;
-                    }
+    var defaultOrdinal = '%d',
+        defaultDayOfMonthOrdinalParse = /\d{1,2}/;
 
-                    function getPrioritizedUnits(unitsObj) {
-                        var units = [],
-                            u;
-                        for (u in unitsObj) {
-                            if (hasOwnProp(unitsObj, u)) {
-                                units.push({ unit: u, priority: priorities[u] });
-                            }
-                        }
-                        units.sort(function (a, b) {
-                            return a.priority - b.priority;
-                        });
-                        return units;
-                    }
+    function ordinal(number) {
+        return this._ordinal.replace('%d', number);
+    }
 
-                    function isLeapYear(year) {
-                        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
-                    }
+    var defaultRelativeTime = {
+        future: 'in %s',
+        past: '%s ago',
+        s: 'a few seconds',
+        ss: '%d seconds',
+        m: 'a minute',
+        mm: '%d minutes',
+        h: 'an hour',
+        hh: '%d hours',
+        d: 'a day',
+        dd: '%d days',
+        w: 'a week',
+        ww: '%d weeks',
+        M: 'a month',
+        MM: '%d months',
+        y: 'a year',
+        yy: '%d years',
+    };
+
+    function relativeTime(number, withoutSuffix, string, isFuture) {
+        var output = this._relativeTime[string];
+        return isFunction(output)
+            ? output(number, withoutSuffix, string, isFuture)
+            : output.replace(/%d/i, number);
+    }
 
-                    function absFloor(number) {
-                        if (number < 0) {
-                            // -0 -> 0
-                            return Math.ceil(number) || 0;
-                        } else {
-                            return Math.floor(number);
-                        }
-                    }
+    function pastFuture(diff, output) {
+        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
+        return isFunction(format) ? format(output) : format.replace(/%s/i, output);
+    }
 
-                    function toInt(argumentForCoercion) {
-                        var coercedNumber = +argumentForCoercion,
-                            value = 0;
+    var aliases = {};
 
-                        if (coercedNumber !== 0 && isFinite(coercedNumber)) {
-                            value = absFloor(coercedNumber);
-                        }
+    function addUnitAlias(unit, shorthand) {
+        var lowerCase = unit.toLowerCase();
+        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
+    }
 
-                        return value;
-                    }
+    function normalizeUnits(units) {
+        return typeof units === 'string'
+            ? aliases[units] || aliases[units.toLowerCase()]
+            : undefined;
+    }
 
-                    function makeGetSet(unit, keepTime) {
-                        return function (value) {
-                            if (value != null) {
-                                set$1(this, unit, value);
-                                hooks.updateOffset(this, keepTime);
-                                return this;
-                            } else {
-                                return get(this, unit);
-                            }
-                        };
-                    }
+    function normalizeObjectUnits(inputObject) {
+        var normalizedInput = {},
+            normalizedProp,
+            prop;
 
-                    function get(mom, unit) {
-                        return mom.isValid()
-                            ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
-                            : NaN;
-                    }
+        for (prop in inputObject) {
+            if (hasOwnProp(inputObject, prop)) {
+                normalizedProp = normalizeUnits(prop);
+                if (normalizedProp) {
+                    normalizedInput[normalizedProp] = inputObject[prop];
+                }
+            }
+        }
 
-                    function set$1(mom, unit, value) {
-                        if (mom.isValid() && !isNaN(value)) {
-                            if (
-                                unit === 'FullYear' &&
-                                isLeapYear(mom.year()) &&
-                                mom.month() === 1 &&
-                                mom.date() === 29
-                            ) {
-                                value = toInt(value);
-                                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
-                                    value,
-                                    mom.month(),
-                                    daysInMonth(value, mom.month())
-                                );
-                            } else {
-                                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
-                            }
-                        }
-                    }
+        return normalizedInput;
+    }
 
-                    // MOMENTS
+    var priorities = {};
 
-                    function stringGet(units) {
-                        units = normalizeUnits(units);
-                        if (isFunction(this[units])) {
-                            return this[units]();
-                        }
-                        return this;
-                    }
+    function addUnitPriority(unit, priority) {
+        priorities[unit] = priority;
+    }
 
-                    function stringSet(units, value) {
-                        if (typeof units === 'object') {
-                            units = normalizeObjectUnits(units);
-                            var prioritized = getPrioritizedUnits(units),
-                                i;
-                            for (i = 0; i < prioritized.length; i++) {
-                                this[prioritized[i].unit](units[prioritized[i].unit]);
-                            }
-                        } else {
-                            units = normalizeUnits(units);
-                            if (isFunction(this[units])) {
-                                return this[units](value);
-                            }
-                        }
-                        return this;
-                    }
+    function getPrioritizedUnits(unitsObj) {
+        var units = [],
+            u;
+        for (u in unitsObj) {
+            if (hasOwnProp(unitsObj, u)) {
+                units.push({ unit: u, priority: priorities[u] });
+            }
+        }
+        units.sort(function (a, b) {
+            return a.priority - b.priority;
+        });
+        return units;
+    }
 
-                    var match1 = /\d/, //       0 - 9
-                        match2 = /\d\d/, //      00 - 99
-                        match3 = /\d{3}/, //     000 - 999
-                        match4 = /\d{4}/, //    0000 - 9999
-                        match6 = /[+-]?\d{6}/, // -999999 - 999999
-                        match1to2 = /\d\d?/, //       0 - 99
-                        match3to4 = /\d\d\d\d?/, //     999 - 9999
-                        match5to6 = /\d\d\d\d\d\d?/, //   99999 - 999999
-                        match1to3 = /\d{1,3}/, //       0 - 999
-                        match1to4 = /\d{1,4}/, //       0 - 9999
-                        match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
-                        matchUnsigned = /\d+/, //       0 - inf
-                        matchSigned = /[+-]?\d+/, //    -inf - inf
-                        matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
-                        matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
-                        matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
-                        // any word (or two) characters or numbers including two/three word month in arabic.
-                        // includes scottish gaelic two word and hyphenated months
-                        matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
-                        regexes;
-
-                    regexes = {};
-
-                    function addRegexToken(token, regex, strictRegex) {
-                        regexes[token] = isFunction(regex)
-                            ? regex
-                            : function (isStrict, localeData) {
-                                return isStrict && strictRegex ? strictRegex : regex;
-                            };
-                    }
+    function isLeapYear(year) {
+        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
+    }
 
-                    function getParseRegexForToken(token, config) {
-                        if (!hasOwnProp(regexes, token)) {
-                            return new RegExp(unescapeFormat(token));
-                        }
+    function absFloor(number) {
+        if (number < 0) {
+            // -0 -> 0
+            return Math.ceil(number) || 0;
+        } else {
+            return Math.floor(number);
+        }
+    }
 
-                        return regexes[token](config._strict, config._locale);
-                    }
+    function toInt(argumentForCoercion) {
+        var coercedNumber = +argumentForCoercion,
+            value = 0;
 
-                    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
-                    function unescapeFormat(s) {
-                        return regexEscape(
-                            s
-                                .replace('\\', '')
-                                .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
-                                    matched,
-                                    p1,
-                                    p2,
-                                    p3,
-                                    p4
-                                ) {
-                                    return p1 || p2 || p3 || p4;
-                                })
-                        );
-                    }
+        if (coercedNumber !== 0 && isFinite(coercedNumber)) {
+            value = absFloor(coercedNumber);
+        }
 
-                    function regexEscape(s) {
-                        return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
-                    }
+        return value;
+    }
 
-                    var tokens = {};
+    function makeGetSet(unit, keepTime) {
+        return function (value) {
+            if (value != null) {
+                set$1(this, unit, value);
+                hooks.updateOffset(this, keepTime);
+                return this;
+            } else {
+                return get(this, unit);
+            }
+        };
+    }
 
-                    function addParseToken(token, callback) {
-                        var i,
-                            func = callback;
-                        if (typeof token === 'string') {
-                            token = [token];
-                        }
-                        if (isNumber(callback)) {
-                            func = function (input, array) {
-                                array[callback] = toInt(input);
-                            };
-                        }
-                        for (i = 0; i < token.length; i++) {
-                            tokens[token[i]] = func;
-                        }
-                    }
+    function get(mom, unit) {
+        return mom.isValid()
+            ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
+            : NaN;
+    }
 
-                    function addWeekParseToken(token, callback) {
-                        addParseToken(token, function (input, array, config, token) {
-                            config._w = config._w || {};
-                            callback(input, config._w, config, token);
-                        });
-                    }
+    function set$1(mom, unit, value) {
+        if (mom.isValid() && !isNaN(value)) {
+            if (
+                unit === 'FullYear' &&
+                isLeapYear(mom.year()) &&
+                mom.month() === 1 &&
+                mom.date() === 29
+            ) {
+                value = toInt(value);
+                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
+                    value,
+                    mom.month(),
+                    daysInMonth(value, mom.month())
+                );
+            } else {
+                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
+            }
+        }
+    }
+
+    // MOMENTS
 
-                    function addTimeToArrayFromToken(token, input, config) {
-                        if (input != null && hasOwnProp(tokens, token)) {
-                            tokens[token](input, config._a, config, token);
-                        }
-                    }
+    function stringGet(units) {
+        units = normalizeUnits(units);
+        if (isFunction(this[units])) {
+            return this[units]();
+        }
+        return this;
+    }
 
-                    var YEAR = 0,
-                        MONTH = 1,
-                        DATE = 2,
-                        HOUR = 3,
-                        MINUTE = 4,
-                        SECOND = 5,
-                        MILLISECOND = 6,
-                        WEEK = 7,
-                        WEEKDAY = 8;
-
-                    function mod(n, x) {
-                        return ((n % x) + x) % x;
-                    }
+    function stringSet(units, value) {
+        if (typeof units === 'object') {
+            units = normalizeObjectUnits(units);
+            var prioritized = getPrioritizedUnits(units),
+                i;
+            for (i = 0; i < prioritized.length; i++) {
+                this[prioritized[i].unit](units[prioritized[i].unit]);
+            }
+        } else {
+            units = normalizeUnits(units);
+            if (isFunction(this[units])) {
+                return this[units](value);
+            }
+        }
+        return this;
+    }
 
-                    var indexOf;
+    var match1 = /\d/, //       0 - 9
+        match2 = /\d\d/, //      00 - 99
+        match3 = /\d{3}/, //     000 - 999
+        match4 = /\d{4}/, //    0000 - 9999
+        match6 = /[+-]?\d{6}/, // -999999 - 999999
+        match1to2 = /\d\d?/, //       0 - 99
+        match3to4 = /\d\d\d\d?/, //     999 - 9999
+        match5to6 = /\d\d\d\d\d\d?/, //   99999 - 999999
+        match1to3 = /\d{1,3}/, //       0 - 999
+        match1to4 = /\d{1,4}/, //       0 - 9999
+        match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
+        matchUnsigned = /\d+/, //       0 - inf
+        matchSigned = /[+-]?\d+/, //    -inf - inf
+        matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
+        matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
+        matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
+        // any word (or two) characters or numbers including two/three word month in arabic.
+        // includes scottish gaelic two word and hyphenated months
+        matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
+        regexes;
+
+    regexes = {};
+
+    function addRegexToken(token, regex, strictRegex) {
+        regexes[token] = isFunction(regex)
+            ? regex
+            : function (isStrict, localeData) {
+                  return isStrict && strictRegex ? strictRegex : regex;
+              };
+    }
 
-                    if (Array.prototype.indexOf) {
-                        indexOf = Array.prototype.indexOf;
-                    } else {
-                        indexOf = function (o) {
-                            // I know
-                            var i;
-                            for (i = 0; i < this.length; ++i) {
-                                if (this[i] === o) {
-                                    return i;
-                                }
-                            }
-                            return -1;
-                        };
-                    }
+    function getParseRegexForToken(token, config) {
+        if (!hasOwnProp(regexes, token)) {
+            return new RegExp(unescapeFormat(token));
+        }
 
-                    function daysInMonth(year, month) {
-                        if (isNaN(year) || isNaN(month)) {
-                            return NaN;
-                        }
-                        var modMonth = mod(month, 12);
-                        year += (month - modMonth) / 12;
-                        return modMonth === 1
-                            ? isLeapYear(year)
-                                ? 29
-                                : 28
-                            : 31 - ((modMonth % 7) % 2);
-                    }
+        return regexes[token](config._strict, config._locale);
+    }
 
-                    // FORMATTING
+    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
+    function unescapeFormat(s) {
+        return regexEscape(
+            s
+                .replace('\\', '')
+                .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
+                    matched,
+                    p1,
+                    p2,
+                    p3,
+                    p4
+                ) {
+                    return p1 || p2 || p3 || p4;
+                })
+        );
+    }
 
-                    addFormatToken('M', ['MM', 2], 'Mo', function () {
-                        return this.month() + 1;
-                    });
+    function regexEscape(s) {
+        return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
+    }
 
-                    addFormatToken('MMM', 0, 0, function (format) {
-                        return this.localeData().monthsShort(this, format);
-                    });
+    var tokens = {};
 
-                    addFormatToken('MMMM', 0, 0, function (format) {
-                        return this.localeData().months(this, format);
-                    });
+    function addParseToken(token, callback) {
+        var i,
+            func = callback;
+        if (typeof token === 'string') {
+            token = [token];
+        }
+        if (isNumber(callback)) {
+            func = function (input, array) {
+                array[callback] = toInt(input);
+            };
+        }
+        for (i = 0; i < token.length; i++) {
+            tokens[token[i]] = func;
+        }
+    }
 
-                    // ALIASES
+    function addWeekParseToken(token, callback) {
+        addParseToken(token, function (input, array, config, token) {
+            config._w = config._w || {};
+            callback(input, config._w, config, token);
+        });
+    }
 
-                    addUnitAlias('month', 'M');
+    function addTimeToArrayFromToken(token, input, config) {
+        if (input != null && hasOwnProp(tokens, token)) {
+            tokens[token](input, config._a, config, token);
+        }
+    }
 
-                    // PRIORITY
+    var YEAR = 0,
+        MONTH = 1,
+        DATE = 2,
+        HOUR = 3,
+        MINUTE = 4,
+        SECOND = 5,
+        MILLISECOND = 6,
+        WEEK = 7,
+        WEEKDAY = 8;
+
+    function mod(n, x) {
+        return ((n % x) + x) % x;
+    }
 
-                    addUnitPriority('month', 8);
+    var indexOf;
 
-                    // PARSING
+    if (Array.prototype.indexOf) {
+        indexOf = Array.prototype.indexOf;
+    } else {
+        indexOf = function (o) {
+            // I know
+            var i;
+            for (i = 0; i < this.length; ++i) {
+                if (this[i] === o) {
+                    return i;
+                }
+            }
+            return -1;
+        };
+    }
 
-                    addRegexToken('M', match1to2);
-                    addRegexToken('MM', match1to2, match2);
-                    addRegexToken('MMM', function (isStrict, locale) {
-                        return locale.monthsShortRegex(isStrict);
-                    });
-                    addRegexToken('MMMM', function (isStrict, locale) {
-                        return locale.monthsRegex(isStrict);
-                    });
+    function daysInMonth(year, month) {
+        if (isNaN(year) || isNaN(month)) {
+            return NaN;
+        }
+        var modMonth = mod(month, 12);
+        year += (month - modMonth) / 12;
+        return modMonth === 1
+            ? isLeapYear(year)
+                ? 29
+                : 28
+            : 31 - ((modMonth % 7) % 2);
+    }
 
-                    addParseToken(['M', 'MM'], function (input, array) {
-                        array[MONTH] = toInt(input) - 1;
-                    });
+    // FORMATTING
 
-                    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
-                        var month = config._locale.monthsParse(input, token, config._strict);
-                        // if we didn't find a month name, mark the date as invalid.
-                        if (month != null) {
-                            array[MONTH] = month;
-                        } else {
-                            getParsingFlags(config).invalidMonth = input;
-                        }
-                    });
-
-                    // LOCALES
-
-                    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
-                            '_'
-                        ),
-                        defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
-                            '_'
-                        ),
-                        MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
-                        defaultMonthsShortRegex = matchWord,
-                        defaultMonthsRegex = matchWord;
-
-                    function localeMonths(m, format) {
-                        if (!m) {
-                            return isArray(this._months)
-                                ? this._months
-                                : this._months['standalone'];
-                        }
-                        return isArray(this._months)
-                            ? this._months[m.month()]
-                            : this._months[
-                                (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
-                                    ? 'format'
-                                    : 'standalone'
-                                ][m.month()];
-                    }
+    addFormatToken('M', ['MM', 2], 'Mo', function () {
+        return this.month() + 1;
+    });
 
-                    function localeMonthsShort(m, format) {
-                        if (!m) {
-                            return isArray(this._monthsShort)
-                                ? this._monthsShort
-                                : this._monthsShort['standalone'];
-                        }
-                        return isArray(this._monthsShort)
-                            ? this._monthsShort[m.month()]
-                            : this._monthsShort[
-                                MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
-                                ][m.month()];
-                    }
+    addFormatToken('MMM', 0, 0, function (format) {
+        return this.localeData().monthsShort(this, format);
+    });
 
-                    function handleStrictParse(monthName, format, strict) {
-                        var i,
-                            ii,
-                            mom,
-                            llc = monthName.toLocaleLowerCase();
-                        if (!this._monthsParse) {
-                            // this is not used
-                            this._monthsParse = [];
-                            this._longMonthsParse = [];
-                            this._shortMonthsParse = [];
-                            for (i = 0; i < 12; ++i) {
-                                mom = createUTC([2000, i]);
-                                this._shortMonthsParse[i] = this.monthsShort(
-                                    mom,
-                                    ''
-                                ).toLocaleLowerCase();
-                                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
-                            }
-                        }
+    addFormatToken('MMMM', 0, 0, function (format) {
+        return this.localeData().months(this, format);
+    });
 
-                        if (strict) {
-                            if (format === 'MMM') {
-                                ii = indexOf.call(this._shortMonthsParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else {
-                                ii = indexOf.call(this._longMonthsParse, llc);
-                                return ii !== -1 ? ii : null;
-                            }
-                        } else {
-                            if (format === 'MMM') {
-                                ii = indexOf.call(this._shortMonthsParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._longMonthsParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else {
-                                ii = indexOf.call(this._longMonthsParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._shortMonthsParse, llc);
-                                return ii !== -1 ? ii : null;
-                            }
-                        }
-                    }
+    // ALIASES
 
-                    function localeMonthsParse(monthName, format, strict) {
-                        var i, mom, regex;
+    addUnitAlias('month', 'M');
 
-                        if (this._monthsParseExact) {
-                            return handleStrictParse.call(this, monthName, format, strict);
-                        }
+    // PRIORITY
 
-                        if (!this._monthsParse) {
-                            this._monthsParse = [];
-                            this._longMonthsParse = [];
-                            this._shortMonthsParse = [];
-                        }
+    addUnitPriority('month', 8);
 
-                        // TODO: add sorting
-                        // Sorting makes sure if one month (or abbr) is a prefix of another
-                        // see sorting in computeMonthsParse
-                        for (i = 0; i < 12; i++) {
-                            // make the regex if we don't have it already
-                            mom = createUTC([2000, i]);
-                            if (strict && !this._longMonthsParse[i]) {
-                                this._longMonthsParse[i] = new RegExp(
-                                    '^' + this.months(mom, '').replace('.', '') + '$',
-                                    'i'
-                                );
-                                this._shortMonthsParse[i] = new RegExp(
-                                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',
-                                    'i'
-                                );
-                            }
-                            if (!strict && !this._monthsParse[i]) {
-                                regex =
-                                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
-                                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
-                            }
-                            // test the regex
-                            if (
-                                strict &&
-                                format === 'MMMM' &&
-                                this._longMonthsParse[i].test(monthName)
-                            ) {
-                                return i;
-                            } else if (
-                                strict &&
-                                format === 'MMM' &&
-                                this._shortMonthsParse[i].test(monthName)
-                            ) {
-                                return i;
-                            } else if (!strict && this._monthsParse[i].test(monthName)) {
-                                return i;
-                            }
-                        }
-                    }
+    // PARSING
 
-                    // MOMENTS
+    addRegexToken('M', match1to2);
+    addRegexToken('MM', match1to2, match2);
+    addRegexToken('MMM', function (isStrict, locale) {
+        return locale.monthsShortRegex(isStrict);
+    });
+    addRegexToken('MMMM', function (isStrict, locale) {
+        return locale.monthsRegex(isStrict);
+    });
 
-                    function setMonth(mom, value) {
-                        var dayOfMonth;
+    addParseToken(['M', 'MM'], function (input, array) {
+        array[MONTH] = toInt(input) - 1;
+    });
 
-                        if (!mom.isValid()) {
-                            // No op
-                            return mom;
-                        }
+    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
+        var month = config._locale.monthsParse(input, token, config._strict);
+        // if we didn't find a month name, mark the date as invalid.
+        if (month != null) {
+            array[MONTH] = month;
+        } else {
+            getParsingFlags(config).invalidMonth = input;
+        }
+    });
+
+    // LOCALES
+
+    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+            '_'
+        ),
+        defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
+            '_'
+        ),
+        MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
+        defaultMonthsShortRegex = matchWord,
+        defaultMonthsRegex = matchWord;
+
+    function localeMonths(m, format) {
+        if (!m) {
+            return isArray(this._months)
+                ? this._months
+                : this._months['standalone'];
+        }
+        return isArray(this._months)
+            ? this._months[m.month()]
+            : this._months[
+                  (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
+                      ? 'format'
+                      : 'standalone'
+              ][m.month()];
+    }
 
-                        if (typeof value === 'string') {
-                            if (/^\d+$/.test(value)) {
-                                value = toInt(value);
-                            } else {
-                                value = mom.localeData().monthsParse(value);
-                                // TODO: Another silent failure?
-                                if (!isNumber(value)) {
-                                    return mom;
-                                }
-                            }
-                        }
+    function localeMonthsShort(m, format) {
+        if (!m) {
+            return isArray(this._monthsShort)
+                ? this._monthsShort
+                : this._monthsShort['standalone'];
+        }
+        return isArray(this._monthsShort)
+            ? this._monthsShort[m.month()]
+            : this._monthsShort[
+                  MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
+              ][m.month()];
+    }
 
-                        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
-                        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
-                        return mom;
-                    }
+    function handleStrictParse(monthName, format, strict) {
+        var i,
+            ii,
+            mom,
+            llc = monthName.toLocaleLowerCase();
+        if (!this._monthsParse) {
+            // this is not used
+            this._monthsParse = [];
+            this._longMonthsParse = [];
+            this._shortMonthsParse = [];
+            for (i = 0; i < 12; ++i) {
+                mom = createUTC([2000, i]);
+                this._shortMonthsParse[i] = this.monthsShort(
+                    mom,
+                    ''
+                ).toLocaleLowerCase();
+                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
+            }
+        }
 
-                    function getSetMonth(value) {
-                        if (value != null) {
-                            setMonth(this, value);
-                            hooks.updateOffset(this, true);
-                            return this;
-                        } else {
-                            return get(this, 'Month');
-                        }
-                    }
+        if (strict) {
+            if (format === 'MMM') {
+                ii = indexOf.call(this._shortMonthsParse, llc);
+                return ii !== -1 ? ii : null;
+            } else {
+                ii = indexOf.call(this._longMonthsParse, llc);
+                return ii !== -1 ? ii : null;
+            }
+        } else {
+            if (format === 'MMM') {
+                ii = indexOf.call(this._shortMonthsParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._longMonthsParse, llc);
+                return ii !== -1 ? ii : null;
+            } else {
+                ii = indexOf.call(this._longMonthsParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._shortMonthsParse, llc);
+                return ii !== -1 ? ii : null;
+            }
+        }
+    }
 
-                    function getDaysInMonth() {
-                        return daysInMonth(this.year(), this.month());
-                    }
+    function localeMonthsParse(monthName, format, strict) {
+        var i, mom, regex;
 
-                    function monthsShortRegex(isStrict) {
-                        if (this._monthsParseExact) {
-                            if (!hasOwnProp(this, '_monthsRegex')) {
-                                computeMonthsParse.call(this);
-                            }
-                            if (isStrict) {
-                                return this._monthsShortStrictRegex;
-                            } else {
-                                return this._monthsShortRegex;
-                            }
-                        } else {
-                            if (!hasOwnProp(this, '_monthsShortRegex')) {
-                                this._monthsShortRegex = defaultMonthsShortRegex;
-                            }
-                            return this._monthsShortStrictRegex && isStrict
-                                ? this._monthsShortStrictRegex
-                                : this._monthsShortRegex;
-                        }
-                    }
+        if (this._monthsParseExact) {
+            return handleStrictParse.call(this, monthName, format, strict);
+        }
 
-                    function monthsRegex(isStrict) {
-                        if (this._monthsParseExact) {
-                            if (!hasOwnProp(this, '_monthsRegex')) {
-                                computeMonthsParse.call(this);
-                            }
-                            if (isStrict) {
-                                return this._monthsStrictRegex;
-                            } else {
-                                return this._monthsRegex;
-                            }
-                        } else {
-                            if (!hasOwnProp(this, '_monthsRegex')) {
-                                this._monthsRegex = defaultMonthsRegex;
-                            }
-                            return this._monthsStrictRegex && isStrict
-                                ? this._monthsStrictRegex
-                                : this._monthsRegex;
-                        }
-                    }
+        if (!this._monthsParse) {
+            this._monthsParse = [];
+            this._longMonthsParse = [];
+            this._shortMonthsParse = [];
+        }
 
-                    function computeMonthsParse() {
-                        function cmpLenRev(a, b) {
-                            return b.length - a.length;
-                        }
+        // TODO: add sorting
+        // Sorting makes sure if one month (or abbr) is a prefix of another
+        // see sorting in computeMonthsParse
+        for (i = 0; i < 12; i++) {
+            // make the regex if we don't have it already
+            mom = createUTC([2000, i]);
+            if (strict && !this._longMonthsParse[i]) {
+                this._longMonthsParse[i] = new RegExp(
+                    '^' + this.months(mom, '').replace('.', '') + '$',
+                    'i'
+                );
+                this._shortMonthsParse[i] = new RegExp(
+                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',
+                    'i'
+                );
+            }
+            if (!strict && !this._monthsParse[i]) {
+                regex =
+                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
+                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
+            }
+            // test the regex
+            if (
+                strict &&
+                format === 'MMMM' &&
+                this._longMonthsParse[i].test(monthName)
+            ) {
+                return i;
+            } else if (
+                strict &&
+                format === 'MMM' &&
+                this._shortMonthsParse[i].test(monthName)
+            ) {
+                return i;
+            } else if (!strict && this._monthsParse[i].test(monthName)) {
+                return i;
+            }
+        }
+    }
 
-                        var shortPieces = [],
-                            longPieces = [],
-                            mixedPieces = [],
-                            i,
-                            mom;
-                        for (i = 0; i < 12; i++) {
-                            // make the regex if we don't have it already
-                            mom = createUTC([2000, i]);
-                            shortPieces.push(this.monthsShort(mom, ''));
-                            longPieces.push(this.months(mom, ''));
-                            mixedPieces.push(this.months(mom, ''));
-                            mixedPieces.push(this.monthsShort(mom, ''));
-                        }
-                        // Sorting makes sure if one month (or abbr) is a prefix of another it
-                        // will match the longer piece.
-                        shortPieces.sort(cmpLenRev);
-                        longPieces.sort(cmpLenRev);
-                        mixedPieces.sort(cmpLenRev);
-                        for (i = 0; i < 12; i++) {
-                            shortPieces[i] = regexEscape(shortPieces[i]);
-                            longPieces[i] = regexEscape(longPieces[i]);
-                        }
-                        for (i = 0; i < 24; i++) {
-                            mixedPieces[i] = regexEscape(mixedPieces[i]);
-                        }
+    // MOMENTS
 
-                        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
-                        this._monthsShortRegex = this._monthsRegex;
-                        this._monthsStrictRegex = new RegExp(
-                            '^(' + longPieces.join('|') + ')',
-                            'i'
-                        );
-                        this._monthsShortStrictRegex = new RegExp(
-                            '^(' + shortPieces.join('|') + ')',
-                            'i'
-                        );
-                    }
+    function setMonth(mom, value) {
+        var dayOfMonth;
 
-                    // FORMATTING
+        if (!mom.isValid()) {
+            // No op
+            return mom;
+        }
+
+        if (typeof value === 'string') {
+            if (/^\d+$/.test(value)) {
+                value = toInt(value);
+            } else {
+                value = mom.localeData().monthsParse(value);
+                // TODO: Another silent failure?
+                if (!isNumber(value)) {
+                    return mom;
+                }
+            }
+        }
 
-                    addFormatToken('Y', 0, 0, function () {
-                        var y = this.year();
-                        return y <= 9999 ? zeroFill(y, 4) : '+' + y;
-                    });
+        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
+        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
+        return mom;
+    }
 
-                    addFormatToken(0, ['YY', 2], 0, function () {
-                        return this.year() % 100;
-                    });
+    function getSetMonth(value) {
+        if (value != null) {
+            setMonth(this, value);
+            hooks.updateOffset(this, true);
+            return this;
+        } else {
+            return get(this, 'Month');
+        }
+    }
 
-                    addFormatToken(0, ['YYYY', 4], 0, 'year');
-                    addFormatToken(0, ['YYYYY', 5], 0, 'year');
-                    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
+    function getDaysInMonth() {
+        return daysInMonth(this.year(), this.month());
+    }
 
-                    // ALIASES
+    function monthsShortRegex(isStrict) {
+        if (this._monthsParseExact) {
+            if (!hasOwnProp(this, '_monthsRegex')) {
+                computeMonthsParse.call(this);
+            }
+            if (isStrict) {
+                return this._monthsShortStrictRegex;
+            } else {
+                return this._monthsShortRegex;
+            }
+        } else {
+            if (!hasOwnProp(this, '_monthsShortRegex')) {
+                this._monthsShortRegex = defaultMonthsShortRegex;
+            }
+            return this._monthsShortStrictRegex && isStrict
+                ? this._monthsShortStrictRegex
+                : this._monthsShortRegex;
+        }
+    }
 
-                    addUnitAlias('year', 'y');
+    function monthsRegex(isStrict) {
+        if (this._monthsParseExact) {
+            if (!hasOwnProp(this, '_monthsRegex')) {
+                computeMonthsParse.call(this);
+            }
+            if (isStrict) {
+                return this._monthsStrictRegex;
+            } else {
+                return this._monthsRegex;
+            }
+        } else {
+            if (!hasOwnProp(this, '_monthsRegex')) {
+                this._monthsRegex = defaultMonthsRegex;
+            }
+            return this._monthsStrictRegex && isStrict
+                ? this._monthsStrictRegex
+                : this._monthsRegex;
+        }
+    }
 
-                    // PRIORITIES
+    function computeMonthsParse() {
+        function cmpLenRev(a, b) {
+            return b.length - a.length;
+        }
 
-                    addUnitPriority('year', 1);
+        var shortPieces = [],
+            longPieces = [],
+            mixedPieces = [],
+            i,
+            mom;
+        for (i = 0; i < 12; i++) {
+            // make the regex if we don't have it already
+            mom = createUTC([2000, i]);
+            shortPieces.push(this.monthsShort(mom, ''));
+            longPieces.push(this.months(mom, ''));
+            mixedPieces.push(this.months(mom, ''));
+            mixedPieces.push(this.monthsShort(mom, ''));
+        }
+        // Sorting makes sure if one month (or abbr) is a prefix of another it
+        // will match the longer piece.
+        shortPieces.sort(cmpLenRev);
+        longPieces.sort(cmpLenRev);
+        mixedPieces.sort(cmpLenRev);
+        for (i = 0; i < 12; i++) {
+            shortPieces[i] = regexEscape(shortPieces[i]);
+            longPieces[i] = regexEscape(longPieces[i]);
+        }
+        for (i = 0; i < 24; i++) {
+            mixedPieces[i] = regexEscape(mixedPieces[i]);
+        }
 
-                    // PARSING
+        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
+        this._monthsShortRegex = this._monthsRegex;
+        this._monthsStrictRegex = new RegExp(
+            '^(' + longPieces.join('|') + ')',
+            'i'
+        );
+        this._monthsShortStrictRegex = new RegExp(
+            '^(' + shortPieces.join('|') + ')',
+            'i'
+        );
+    }
 
-                    addRegexToken('Y', matchSigned);
-                    addRegexToken('YY', match1to2, match2);
-                    addRegexToken('YYYY', match1to4, match4);
-                    addRegexToken('YYYYY', match1to6, match6);
-                    addRegexToken('YYYYYY', match1to6, match6);
+    // FORMATTING
 
-                    addParseToken(['YYYYY', 'YYYYYY'], YEAR);
-                    addParseToken('YYYY', function (input, array) {
-                        array[YEAR] =
-                            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
-                    });
-                    addParseToken('YY', function (input, array) {
-                        array[YEAR] = hooks.parseTwoDigitYear(input);
-                    });
-                    addParseToken('Y', function (input, array) {
-                        array[YEAR] = parseInt(input, 10);
-                    });
+    addFormatToken('Y', 0, 0, function () {
+        var y = this.year();
+        return y <= 9999 ? zeroFill(y, 4) : '+' + y;
+    });
 
-                    // HELPERS
+    addFormatToken(0, ['YY', 2], 0, function () {
+        return this.year() % 100;
+    });
 
-                    function daysInYear(year) {
-                        return isLeapYear(year) ? 366 : 365;
-                    }
+    addFormatToken(0, ['YYYY', 4], 0, 'year');
+    addFormatToken(0, ['YYYYY', 5], 0, 'year');
+    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
 
-                    // HOOKS
+    // ALIASES
 
-                    hooks.parseTwoDigitYear = function (input) {
-                        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
-                    };
+    addUnitAlias('year', 'y');
 
-                    // MOMENTS
+    // PRIORITIES
 
-                    var getSetYear = makeGetSet('FullYear', true);
+    addUnitPriority('year', 1);
 
-                    function getIsLeapYear() {
-                        return isLeapYear(this.year());
-                    }
+    // PARSING
 
-                    function createDate(y, m, d, h, M, s, ms) {
-                        // can't just apply() to create a date:
-                        // https://stackoverflow.com/q/181348
-                        var date;
-                        // the date constructor remaps years 0-99 to 1900-1999
-                        if (y < 100 && y >= 0) {
-                            // preserve leap years using a full 400 year cycle, then reset
-                            date = new Date(y + 400, m, d, h, M, s, ms);
-                            if (isFinite(date.getFullYear())) {
-                                date.setFullYear(y);
-                            }
-                        } else {
-                            date = new Date(y, m, d, h, M, s, ms);
-                        }
+    addRegexToken('Y', matchSigned);
+    addRegexToken('YY', match1to2, match2);
+    addRegexToken('YYYY', match1to4, match4);
+    addRegexToken('YYYYY', match1to6, match6);
+    addRegexToken('YYYYYY', match1to6, match6);
 
-                        return date;
-                    }
+    addParseToken(['YYYYY', 'YYYYYY'], YEAR);
+    addParseToken('YYYY', function (input, array) {
+        array[YEAR] =
+            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
+    });
+    addParseToken('YY', function (input, array) {
+        array[YEAR] = hooks.parseTwoDigitYear(input);
+    });
+    addParseToken('Y', function (input, array) {
+        array[YEAR] = parseInt(input, 10);
+    });
 
-                    function createUTCDate(y) {
-                        var date, args;
-                        // the Date.UTC function remaps years 0-99 to 1900-1999
-                        if (y < 100 && y >= 0) {
-                            args = Array.prototype.slice.call(arguments);
-                            // preserve leap years using a full 400 year cycle, then reset
-                            args[0] = y + 400;
-                            date = new Date(Date.UTC.apply(null, args));
-                            if (isFinite(date.getUTCFullYear())) {
-                                date.setUTCFullYear(y);
-                            }
-                        } else {
-                            date = new Date(Date.UTC.apply(null, arguments));
-                        }
+    // HELPERS
 
-                        return date;
-                    }
+    function daysInYear(year) {
+        return isLeapYear(year) ? 366 : 365;
+    }
 
-                    // start-of-first-week - start-of-year
-                    function firstWeekOffset(year, dow, doy) {
-                        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
-                            fwd = 7 + dow - doy,
-                            // first-week day local weekday -- which local weekday is fwd
-                            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
+    // HOOKS
 
-                        return -fwdlw + fwd - 1;
-                    }
+    hooks.parseTwoDigitYear = function (input) {
+        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
+    };
 
-                    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
-                    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
-                        var localWeekday = (7 + weekday - dow) % 7,
-                            weekOffset = firstWeekOffset(year, dow, doy),
-                            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
-                            resYear,
-                            resDayOfYear;
-
-                        if (dayOfYear <= 0) {
-                            resYear = year - 1;
-                            resDayOfYear = daysInYear(resYear) + dayOfYear;
-                        } else if (dayOfYear > daysInYear(year)) {
-                            resYear = year + 1;
-                            resDayOfYear = dayOfYear - daysInYear(year);
-                        } else {
-                            resYear = year;
-                            resDayOfYear = dayOfYear;
-                        }
+    // MOMENTS
 
-                        return {
-                            year: resYear,
-                            dayOfYear: resDayOfYear,
-                        };
-                    }
+    var getSetYear = makeGetSet('FullYear', true);
 
-                    function weekOfYear(mom, dow, doy) {
-                        var weekOffset = firstWeekOffset(mom.year(), dow, doy),
-                            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
-                            resWeek,
-                            resYear;
-
-                        if (week < 1) {
-                            resYear = mom.year() - 1;
-                            resWeek = week + weeksInYear(resYear, dow, doy);
-                        } else if (week > weeksInYear(mom.year(), dow, doy)) {
-                            resWeek = week - weeksInYear(mom.year(), dow, doy);
-                            resYear = mom.year() + 1;
-                        } else {
-                            resYear = mom.year();
-                            resWeek = week;
-                        }
+    function getIsLeapYear() {
+        return isLeapYear(this.year());
+    }
 
-                        return {
-                            week: resWeek,
-                            year: resYear,
-                        };
-                    }
+    function createDate(y, m, d, h, M, s, ms) {
+        // can't just apply() to create a date:
+        // https://stackoverflow.com/q/181348
+        var date;
+        // the date constructor remaps years 0-99 to 1900-1999
+        if (y < 100 && y >= 0) {
+            // preserve leap years using a full 400 year cycle, then reset
+            date = new Date(y + 400, m, d, h, M, s, ms);
+            if (isFinite(date.getFullYear())) {
+                date.setFullYear(y);
+            }
+        } else {
+            date = new Date(y, m, d, h, M, s, ms);
+        }
 
-                    function weeksInYear(year, dow, doy) {
-                        var weekOffset = firstWeekOffset(year, dow, doy),
-                            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
-                        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
-                    }
+        return date;
+    }
 
-                    // FORMATTING
+    function createUTCDate(y) {
+        var date, args;
+        // the Date.UTC function remaps years 0-99 to 1900-1999
+        if (y < 100 && y >= 0) {
+            args = Array.prototype.slice.call(arguments);
+            // preserve leap years using a full 400 year cycle, then reset
+            args[0] = y + 400;
+            date = new Date(Date.UTC.apply(null, args));
+            if (isFinite(date.getUTCFullYear())) {
+                date.setUTCFullYear(y);
+            }
+        } else {
+            date = new Date(Date.UTC.apply(null, arguments));
+        }
 
-                    addFormatToken('w', ['ww', 2], 'wo', 'week');
-                    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
+        return date;
+    }
 
-                    // ALIASES
+    // start-of-first-week - start-of-year
+    function firstWeekOffset(year, dow, doy) {
+        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
+            fwd = 7 + dow - doy,
+            // first-week day local weekday -- which local weekday is fwd
+            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
 
-                    addUnitAlias('week', 'w');
-                    addUnitAlias('isoWeek', 'W');
+        return -fwdlw + fwd - 1;
+    }
 
-                    // PRIORITIES
+    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
+    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
+        var localWeekday = (7 + weekday - dow) % 7,
+            weekOffset = firstWeekOffset(year, dow, doy),
+            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
+            resYear,
+            resDayOfYear;
+
+        if (dayOfYear <= 0) {
+            resYear = year - 1;
+            resDayOfYear = daysInYear(resYear) + dayOfYear;
+        } else if (dayOfYear > daysInYear(year)) {
+            resYear = year + 1;
+            resDayOfYear = dayOfYear - daysInYear(year);
+        } else {
+            resYear = year;
+            resDayOfYear = dayOfYear;
+        }
 
-                    addUnitPriority('week', 5);
-                    addUnitPriority('isoWeek', 5);
+        return {
+            year: resYear,
+            dayOfYear: resDayOfYear,
+        };
+    }
 
-                    // PARSING
+    function weekOfYear(mom, dow, doy) {
+        var weekOffset = firstWeekOffset(mom.year(), dow, doy),
+            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
+            resWeek,
+            resYear;
+
+        if (week < 1) {
+            resYear = mom.year() - 1;
+            resWeek = week + weeksInYear(resYear, dow, doy);
+        } else if (week > weeksInYear(mom.year(), dow, doy)) {
+            resWeek = week - weeksInYear(mom.year(), dow, doy);
+            resYear = mom.year() + 1;
+        } else {
+            resYear = mom.year();
+            resWeek = week;
+        }
 
-                    addRegexToken('w', match1to2);
-                    addRegexToken('ww', match1to2, match2);
-                    addRegexToken('W', match1to2);
-                    addRegexToken('WW', match1to2, match2);
+        return {
+            week: resWeek,
+            year: resYear,
+        };
+    }
 
-                    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
-                        input,
-                        week,
-                        config,
-                        token
-                    ) {
-                        week[token.substr(0, 1)] = toInt(input);
-                    });
+    function weeksInYear(year, dow, doy) {
+        var weekOffset = firstWeekOffset(year, dow, doy),
+            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
+        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
+    }
 
-                    // HELPERS
+    // FORMATTING
 
-                    // LOCALES
+    addFormatToken('w', ['ww', 2], 'wo', 'week');
+    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
 
-                    function localeWeek(mom) {
-                        return weekOfYear(mom, this._week.dow, this._week.doy).week;
-                    }
+    // ALIASES
 
-                    var defaultLocaleWeek = {
-                        dow: 0, // Sunday is the first day of the week.
-                        doy: 6, // The week that contains Jan 6th is the first week of the year.
-                    };
+    addUnitAlias('week', 'w');
+    addUnitAlias('isoWeek', 'W');
 
-                    function localeFirstDayOfWeek() {
-                        return this._week.dow;
-                    }
+    // PRIORITIES
 
-                    function localeFirstDayOfYear() {
-                        return this._week.doy;
-                    }
+    addUnitPriority('week', 5);
+    addUnitPriority('isoWeek', 5);
 
-                    // MOMENTS
+    // PARSING
 
-                    function getSetWeek(input) {
-                        var week = this.localeData().week(this);
-                        return input == null ? week : this.add((input - week) * 7, 'd');
-                    }
+    addRegexToken('w', match1to2);
+    addRegexToken('ww', match1to2, match2);
+    addRegexToken('W', match1to2);
+    addRegexToken('WW', match1to2, match2);
 
-                    function getSetISOWeek(input) {
-                        var week = weekOfYear(this, 1, 4).week;
-                        return input == null ? week : this.add((input - week) * 7, 'd');
-                    }
+    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
+        input,
+        week,
+        config,
+        token
+    ) {
+        week[token.substr(0, 1)] = toInt(input);
+    });
 
-                    // FORMATTING
-
-                    addFormatToken('d', 0, 'do', 'day');
-
-                    addFormatToken('dd', 0, 0, function (format) {
-                        return this.localeData().weekdaysMin(this, format);
-                    });
-
-                    addFormatToken('ddd', 0, 0, function (format) {
-                        return this.localeData().weekdaysShort(this, format);
-                    });
-
-                    addFormatToken('dddd', 0, 0, function (format) {
-                        return this.localeData().weekdays(this, format);
-                    });
-
-                    addFormatToken('e', 0, 0, 'weekday');
-                    addFormatToken('E', 0, 0, 'isoWeekday');
-
-                    // ALIASES
-
-                    addUnitAlias('day', 'd');
-                    addUnitAlias('weekday', 'e');
-                    addUnitAlias('isoWeekday', 'E');
-
-                    // PRIORITY
-                    addUnitPriority('day', 11);
-                    addUnitPriority('weekday', 11);
-                    addUnitPriority('isoWeekday', 11);
-
-                    // PARSING
-
-                    addRegexToken('d', match1to2);
-                    addRegexToken('e', match1to2);
-                    addRegexToken('E', match1to2);
-                    addRegexToken('dd', function (isStrict, locale) {
-                        return locale.weekdaysMinRegex(isStrict);
-                    });
-                    addRegexToken('ddd', function (isStrict, locale) {
-                        return locale.weekdaysShortRegex(isStrict);
-                    });
-                    addRegexToken('dddd', function (isStrict, locale) {
-                        return locale.weekdaysRegex(isStrict);
-                    });
-
-                    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
-                        var weekday = config._locale.weekdaysParse(input, token, config._strict);
-                        // if we didn't get a weekday name, mark the date as invalid
-                        if (weekday != null) {
-                            week.d = weekday;
-                        } else {
-                            getParsingFlags(config).invalidWeekday = input;
-                        }
-                    });
+    // HELPERS
 
-                    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
-                        week[token] = toInt(input);
-                    });
+    // LOCALES
 
-                    // HELPERS
+    function localeWeek(mom) {
+        return weekOfYear(mom, this._week.dow, this._week.doy).week;
+    }
 
-                    function parseWeekday(input, locale) {
-                        if (typeof input !== 'string') {
-                            return input;
-                        }
+    var defaultLocaleWeek = {
+        dow: 0, // Sunday is the first day of the week.
+        doy: 6, // The week that contains Jan 6th is the first week of the year.
+    };
 
-                        if (!isNaN(input)) {
-                            return parseInt(input, 10);
-                        }
+    function localeFirstDayOfWeek() {
+        return this._week.dow;
+    }
 
-                        input = locale.weekdaysParse(input);
-                        if (typeof input === 'number') {
-                            return input;
-                        }
+    function localeFirstDayOfYear() {
+        return this._week.doy;
+    }
 
-                        return null;
-                    }
+    // MOMENTS
 
-                    function parseIsoWeekday(input, locale) {
-                        if (typeof input === 'string') {
-                            return locale.weekdaysParse(input) % 7 || 7;
-                        }
-                        return isNaN(input) ? null : input;
-                    }
+    function getSetWeek(input) {
+        var week = this.localeData().week(this);
+        return input == null ? week : this.add((input - week) * 7, 'd');
+    }
 
-                    // LOCALES
-                    function shiftWeekdays(ws, n) {
-                        return ws.slice(n, 7).concat(ws.slice(0, n));
-                    }
+    function getSetISOWeek(input) {
+        var week = weekOfYear(this, 1, 4).week;
+        return input == null ? week : this.add((input - week) * 7, 'd');
+    }
 
-                    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
-                            '_'
-                        ),
-                        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
-                        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
-                        defaultWeekdaysRegex = matchWord,
-                        defaultWeekdaysShortRegex = matchWord,
-                        defaultWeekdaysMinRegex = matchWord;
-
-                    function localeWeekdays(m, format) {
-                        var weekdays = isArray(this._weekdays)
-                            ? this._weekdays
-                            : this._weekdays[
-                                m && m !== true && this._weekdays.isFormat.test(format)
-                                    ? 'format'
-                                    : 'standalone'
-                                ];
-                        return m === true
-                            ? shiftWeekdays(weekdays, this._week.dow)
-                            : m
-                                ? weekdays[m.day()]
-                                : weekdays;
-                    }
+    // FORMATTING
+
+    addFormatToken('d', 0, 'do', 'day');
+
+    addFormatToken('dd', 0, 0, function (format) {
+        return this.localeData().weekdaysMin(this, format);
+    });
+
+    addFormatToken('ddd', 0, 0, function (format) {
+        return this.localeData().weekdaysShort(this, format);
+    });
+
+    addFormatToken('dddd', 0, 0, function (format) {
+        return this.localeData().weekdays(this, format);
+    });
+
+    addFormatToken('e', 0, 0, 'weekday');
+    addFormatToken('E', 0, 0, 'isoWeekday');
+
+    // ALIASES
+
+    addUnitAlias('day', 'd');
+    addUnitAlias('weekday', 'e');
+    addUnitAlias('isoWeekday', 'E');
+
+    // PRIORITY
+    addUnitPriority('day', 11);
+    addUnitPriority('weekday', 11);
+    addUnitPriority('isoWeekday', 11);
+
+    // PARSING
+
+    addRegexToken('d', match1to2);
+    addRegexToken('e', match1to2);
+    addRegexToken('E', match1to2);
+    addRegexToken('dd', function (isStrict, locale) {
+        return locale.weekdaysMinRegex(isStrict);
+    });
+    addRegexToken('ddd', function (isStrict, locale) {
+        return locale.weekdaysShortRegex(isStrict);
+    });
+    addRegexToken('dddd', function (isStrict, locale) {
+        return locale.weekdaysRegex(isStrict);
+    });
+
+    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
+        var weekday = config._locale.weekdaysParse(input, token, config._strict);
+        // if we didn't get a weekday name, mark the date as invalid
+        if (weekday != null) {
+            week.d = weekday;
+        } else {
+            getParsingFlags(config).invalidWeekday = input;
+        }
+    });
 
-                    function localeWeekdaysShort(m) {
-                        return m === true
-                            ? shiftWeekdays(this._weekdaysShort, this._week.dow)
-                            : m
-                                ? this._weekdaysShort[m.day()]
-                                : this._weekdaysShort;
-                    }
+    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
+        week[token] = toInt(input);
+    });
 
-                    function localeWeekdaysMin(m) {
-                        return m === true
-                            ? shiftWeekdays(this._weekdaysMin, this._week.dow)
-                            : m
-                                ? this._weekdaysMin[m.day()]
-                                : this._weekdaysMin;
-                    }
+    // HELPERS
 
-                    function handleStrictParse$1(weekdayName, format, strict) {
-                        var i,
-                            ii,
-                            mom,
-                            llc = weekdayName.toLocaleLowerCase();
-                        if (!this._weekdaysParse) {
-                            this._weekdaysParse = [];
-                            this._shortWeekdaysParse = [];
-                            this._minWeekdaysParse = [];
-
-                            for (i = 0; i < 7; ++i) {
-                                mom = createUTC([2000, 1]).day(i);
-                                this._minWeekdaysParse[i] = this.weekdaysMin(
-                                    mom,
-                                    ''
-                                ).toLocaleLowerCase();
-                                this._shortWeekdaysParse[i] = this.weekdaysShort(
-                                    mom,
-                                    ''
-                                ).toLocaleLowerCase();
-                                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
-                            }
-                        }
+    function parseWeekday(input, locale) {
+        if (typeof input !== 'string') {
+            return input;
+        }
 
-                        if (strict) {
-                            if (format === 'dddd') {
-                                ii = indexOf.call(this._weekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else if (format === 'ddd') {
-                                ii = indexOf.call(this._shortWeekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else {
-                                ii = indexOf.call(this._minWeekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            }
-                        } else {
-                            if (format === 'dddd') {
-                                ii = indexOf.call(this._weekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._shortWeekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._minWeekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else if (format === 'ddd') {
-                                ii = indexOf.call(this._shortWeekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._weekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._minWeekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            } else {
-                                ii = indexOf.call(this._minWeekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._weekdaysParse, llc);
-                                if (ii !== -1) {
-                                    return ii;
-                                }
-                                ii = indexOf.call(this._shortWeekdaysParse, llc);
-                                return ii !== -1 ? ii : null;
-                            }
-                        }
-                    }
+        if (!isNaN(input)) {
+            return parseInt(input, 10);
+        }
 
-                    function localeWeekdaysParse(weekdayName, format, strict) {
-                        var i, mom, regex;
+        input = locale.weekdaysParse(input);
+        if (typeof input === 'number') {
+            return input;
+        }
 
-                        if (this._weekdaysParseExact) {
-                            return handleStrictParse$1.call(this, weekdayName, format, strict);
-                        }
+        return null;
+    }
 
-                        if (!this._weekdaysParse) {
-                            this._weekdaysParse = [];
-                            this._minWeekdaysParse = [];
-                            this._shortWeekdaysParse = [];
-                            this._fullWeekdaysParse = [];
-                        }
+    function parseIsoWeekday(input, locale) {
+        if (typeof input === 'string') {
+            return locale.weekdaysParse(input) % 7 || 7;
+        }
+        return isNaN(input) ? null : input;
+    }
 
-                        for (i = 0; i < 7; i++) {
-                            // make the regex if we don't have it already
-
-                            mom = createUTC([2000, 1]).day(i);
-                            if (strict && !this._fullWeekdaysParse[i]) {
-                                this._fullWeekdaysParse[i] = new RegExp(
-                                    '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
-                                    'i'
-                                );
-                                this._shortWeekdaysParse[i] = new RegExp(
-                                    '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
-                                    'i'
-                                );
-                                this._minWeekdaysParse[i] = new RegExp(
-                                    '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
-                                    'i'
-                                );
-                            }
-                            if (!this._weekdaysParse[i]) {
-                                regex =
-                                    '^' +
-                                    this.weekdays(mom, '') +
-                                    '|^' +
-                                    this.weekdaysShort(mom, '') +
-                                    '|^' +
-                                    this.weekdaysMin(mom, '');
-                                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
-                            }
-                            // test the regex
-                            if (
-                                strict &&
-                                format === 'dddd' &&
-                                this._fullWeekdaysParse[i].test(weekdayName)
-                            ) {
-                                return i;
-                            } else if (
-                                strict &&
-                                format === 'ddd' &&
-                                this._shortWeekdaysParse[i].test(weekdayName)
-                            ) {
-                                return i;
-                            } else if (
-                                strict &&
-                                format === 'dd' &&
-                                this._minWeekdaysParse[i].test(weekdayName)
-                            ) {
-                                return i;
-                            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
-                                return i;
-                            }
-                        }
-                    }
+    // LOCALES
+    function shiftWeekdays(ws, n) {
+        return ws.slice(n, 7).concat(ws.slice(0, n));
+    }
 
-                    // MOMENTS
+    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+            '_'
+        ),
+        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+        defaultWeekdaysRegex = matchWord,
+        defaultWeekdaysShortRegex = matchWord,
+        defaultWeekdaysMinRegex = matchWord;
+
+    function localeWeekdays(m, format) {
+        var weekdays = isArray(this._weekdays)
+            ? this._weekdays
+            : this._weekdays[
+                  m && m !== true && this._weekdays.isFormat.test(format)
+                      ? 'format'
+                      : 'standalone'
+              ];
+        return m === true
+            ? shiftWeekdays(weekdays, this._week.dow)
+            : m
+            ? weekdays[m.day()]
+            : weekdays;
+    }
 
-                    function getSetDayOfWeek(input) {
-                        if (!this.isValid()) {
-                            return input != null ? this : NaN;
-                        }
-                        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
-                        if (input != null) {
-                            input = parseWeekday(input, this.localeData());
-                            return this.add(input - day, 'd');
-                        } else {
-                            return day;
-                        }
-                    }
+    function localeWeekdaysShort(m) {
+        return m === true
+            ? shiftWeekdays(this._weekdaysShort, this._week.dow)
+            : m
+            ? this._weekdaysShort[m.day()]
+            : this._weekdaysShort;
+    }
 
-                    function getSetLocaleDayOfWeek(input) {
-                        if (!this.isValid()) {
-                            return input != null ? this : NaN;
-                        }
-                        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
-                        return input == null ? weekday : this.add(input - weekday, 'd');
-                    }
+    function localeWeekdaysMin(m) {
+        return m === true
+            ? shiftWeekdays(this._weekdaysMin, this._week.dow)
+            : m
+            ? this._weekdaysMin[m.day()]
+            : this._weekdaysMin;
+    }
 
-                    function getSetISODayOfWeek(input) {
-                        if (!this.isValid()) {
-                            return input != null ? this : NaN;
-                        }
+    function handleStrictParse$1(weekdayName, format, strict) {
+        var i,
+            ii,
+            mom,
+            llc = weekdayName.toLocaleLowerCase();
+        if (!this._weekdaysParse) {
+            this._weekdaysParse = [];
+            this._shortWeekdaysParse = [];
+            this._minWeekdaysParse = [];
+
+            for (i = 0; i < 7; ++i) {
+                mom = createUTC([2000, 1]).day(i);
+                this._minWeekdaysParse[i] = this.weekdaysMin(
+                    mom,
+                    ''
+                ).toLocaleLowerCase();
+                this._shortWeekdaysParse[i] = this.weekdaysShort(
+                    mom,
+                    ''
+                ).toLocaleLowerCase();
+                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
+            }
+        }
 
-                        // behaves the same as moment#day except
-                        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
-                        // as a setter, sunday should belong to the previous week.
+        if (strict) {
+            if (format === 'dddd') {
+                ii = indexOf.call(this._weekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            } else if (format === 'ddd') {
+                ii = indexOf.call(this._shortWeekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            } else {
+                ii = indexOf.call(this._minWeekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            }
+        } else {
+            if (format === 'dddd') {
+                ii = indexOf.call(this._weekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._shortWeekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._minWeekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            } else if (format === 'ddd') {
+                ii = indexOf.call(this._shortWeekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._weekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._minWeekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            } else {
+                ii = indexOf.call(this._minWeekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._weekdaysParse, llc);
+                if (ii !== -1) {
+                    return ii;
+                }
+                ii = indexOf.call(this._shortWeekdaysParse, llc);
+                return ii !== -1 ? ii : null;
+            }
+        }
+    }
 
-                        if (input != null) {
-                            var weekday = parseIsoWeekday(input, this.localeData());
-                            return this.day(this.day() % 7 ? weekday : weekday - 7);
-                        } else {
-                            return this.day() || 7;
-                        }
-                    }
+    function localeWeekdaysParse(weekdayName, format, strict) {
+        var i, mom, regex;
 
-                    function weekdaysRegex(isStrict) {
-                        if (this._weekdaysParseExact) {
-                            if (!hasOwnProp(this, '_weekdaysRegex')) {
-                                computeWeekdaysParse.call(this);
-                            }
-                            if (isStrict) {
-                                return this._weekdaysStrictRegex;
-                            } else {
-                                return this._weekdaysRegex;
-                            }
-                        } else {
-                            if (!hasOwnProp(this, '_weekdaysRegex')) {
-                                this._weekdaysRegex = defaultWeekdaysRegex;
-                            }
-                            return this._weekdaysStrictRegex && isStrict
-                                ? this._weekdaysStrictRegex
-                                : this._weekdaysRegex;
-                        }
-                    }
+        if (this._weekdaysParseExact) {
+            return handleStrictParse$1.call(this, weekdayName, format, strict);
+        }
 
-                    function weekdaysShortRegex(isStrict) {
-                        if (this._weekdaysParseExact) {
-                            if (!hasOwnProp(this, '_weekdaysRegex')) {
-                                computeWeekdaysParse.call(this);
-                            }
-                            if (isStrict) {
-                                return this._weekdaysShortStrictRegex;
-                            } else {
-                                return this._weekdaysShortRegex;
-                            }
-                        } else {
-                            if (!hasOwnProp(this, '_weekdaysShortRegex')) {
-                                this._weekdaysShortRegex = defaultWeekdaysShortRegex;
-                            }
-                            return this._weekdaysShortStrictRegex && isStrict
-                                ? this._weekdaysShortStrictRegex
-                                : this._weekdaysShortRegex;
-                        }
-                    }
+        if (!this._weekdaysParse) {
+            this._weekdaysParse = [];
+            this._minWeekdaysParse = [];
+            this._shortWeekdaysParse = [];
+            this._fullWeekdaysParse = [];
+        }
 
-                    function weekdaysMinRegex(isStrict) {
-                        if (this._weekdaysParseExact) {
-                            if (!hasOwnProp(this, '_weekdaysRegex')) {
-                                computeWeekdaysParse.call(this);
-                            }
-                            if (isStrict) {
-                                return this._weekdaysMinStrictRegex;
-                            } else {
-                                return this._weekdaysMinRegex;
-                            }
-                        } else {
-                            if (!hasOwnProp(this, '_weekdaysMinRegex')) {
-                                this._weekdaysMinRegex = defaultWeekdaysMinRegex;
-                            }
-                            return this._weekdaysMinStrictRegex && isStrict
-                                ? this._weekdaysMinStrictRegex
-                                : this._weekdaysMinRegex;
-                        }
-                    }
+        for (i = 0; i < 7; i++) {
+            // make the regex if we don't have it already
 
-                    function computeWeekdaysParse() {
-                        function cmpLenRev(a, b) {
-                            return b.length - a.length;
-                        }
+            mom = createUTC([2000, 1]).day(i);
+            if (strict && !this._fullWeekdaysParse[i]) {
+                this._fullWeekdaysParse[i] = new RegExp(
+                    '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
+                    'i'
+                );
+                this._shortWeekdaysParse[i] = new RegExp(
+                    '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
+                    'i'
+                );
+                this._minWeekdaysParse[i] = new RegExp(
+                    '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
+                    'i'
+                );
+            }
+            if (!this._weekdaysParse[i]) {
+                regex =
+                    '^' +
+                    this.weekdays(mom, '') +
+                    '|^' +
+                    this.weekdaysShort(mom, '') +
+                    '|^' +
+                    this.weekdaysMin(mom, '');
+                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
+            }
+            // test the regex
+            if (
+                strict &&
+                format === 'dddd' &&
+                this._fullWeekdaysParse[i].test(weekdayName)
+            ) {
+                return i;
+            } else if (
+                strict &&
+                format === 'ddd' &&
+                this._shortWeekdaysParse[i].test(weekdayName)
+            ) {
+                return i;
+            } else if (
+                strict &&
+                format === 'dd' &&
+                this._minWeekdaysParse[i].test(weekdayName)
+            ) {
+                return i;
+            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
+                return i;
+            }
+        }
+    }
 
-                        var minPieces = [],
-                            shortPieces = [],
-                            longPieces = [],
-                            mixedPieces = [],
-                            i,
-                            mom,
-                            minp,
-                            shortp,
-                            longp;
-                        for (i = 0; i < 7; i++) {
-                            // make the regex if we don't have it already
-                            mom = createUTC([2000, 1]).day(i);
-                            minp = regexEscape(this.weekdaysMin(mom, ''));
-                            shortp = regexEscape(this.weekdaysShort(mom, ''));
-                            longp = regexEscape(this.weekdays(mom, ''));
-                            minPieces.push(minp);
-                            shortPieces.push(shortp);
-                            longPieces.push(longp);
-                            mixedPieces.push(minp);
-                            mixedPieces.push(shortp);
-                            mixedPieces.push(longp);
-                        }
-                        // Sorting makes sure if one weekday (or abbr) is a prefix of another it
-                        // will match the longer piece.
-                        minPieces.sort(cmpLenRev);
-                        shortPieces.sort(cmpLenRev);
-                        longPieces.sort(cmpLenRev);
-                        mixedPieces.sort(cmpLenRev);
-
-                        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
-                        this._weekdaysShortRegex = this._weekdaysRegex;
-                        this._weekdaysMinRegex = this._weekdaysRegex;
-
-                        this._weekdaysStrictRegex = new RegExp(
-                            '^(' + longPieces.join('|') + ')',
-                            'i'
-                        );
-                        this._weekdaysShortStrictRegex = new RegExp(
-                            '^(' + shortPieces.join('|') + ')',
-                            'i'
-                        );
-                        this._weekdaysMinStrictRegex = new RegExp(
-                            '^(' + minPieces.join('|') + ')',
-                            'i'
-                        );
-                    }
+    // MOMENTS
 
-                    // FORMATTING
+    function getSetDayOfWeek(input) {
+        if (!this.isValid()) {
+            return input != null ? this : NaN;
+        }
+        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
+        if (input != null) {
+            input = parseWeekday(input, this.localeData());
+            return this.add(input - day, 'd');
+        } else {
+            return day;
+        }
+    }
 
-                    function hFormat() {
-                        return this.hours() % 12 || 12;
-                    }
+    function getSetLocaleDayOfWeek(input) {
+        if (!this.isValid()) {
+            return input != null ? this : NaN;
+        }
+        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
+        return input == null ? weekday : this.add(input - weekday, 'd');
+    }
 
-                    function kFormat() {
-                        return this.hours() || 24;
-                    }
+    function getSetISODayOfWeek(input) {
+        if (!this.isValid()) {
+            return input != null ? this : NaN;
+        }
 
-                    addFormatToken('H', ['HH', 2], 0, 'hour');
-                    addFormatToken('h', ['hh', 2], 0, hFormat);
-                    addFormatToken('k', ['kk', 2], 0, kFormat);
+        // behaves the same as moment#day except
+        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
+        // as a setter, sunday should belong to the previous week.
 
-                    addFormatToken('hmm', 0, 0, function () {
-                        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
-                    });
+        if (input != null) {
+            var weekday = parseIsoWeekday(input, this.localeData());
+            return this.day(this.day() % 7 ? weekday : weekday - 7);
+        } else {
+            return this.day() || 7;
+        }
+    }
 
-                    addFormatToken('hmmss', 0, 0, function () {
-                        return (
-                            '' +
-                            hFormat.apply(this) +
-                            zeroFill(this.minutes(), 2) +
-                            zeroFill(this.seconds(), 2)
-                        );
-                    });
+    function weekdaysRegex(isStrict) {
+        if (this._weekdaysParseExact) {
+            if (!hasOwnProp(this, '_weekdaysRegex')) {
+                computeWeekdaysParse.call(this);
+            }
+            if (isStrict) {
+                return this._weekdaysStrictRegex;
+            } else {
+                return this._weekdaysRegex;
+            }
+        } else {
+            if (!hasOwnProp(this, '_weekdaysRegex')) {
+                this._weekdaysRegex = defaultWeekdaysRegex;
+            }
+            return this._weekdaysStrictRegex && isStrict
+                ? this._weekdaysStrictRegex
+                : this._weekdaysRegex;
+        }
+    }
 
-                    addFormatToken('Hmm', 0, 0, function () {
-                        return '' + this.hours() + zeroFill(this.minutes(), 2);
-                    });
+    function weekdaysShortRegex(isStrict) {
+        if (this._weekdaysParseExact) {
+            if (!hasOwnProp(this, '_weekdaysRegex')) {
+                computeWeekdaysParse.call(this);
+            }
+            if (isStrict) {
+                return this._weekdaysShortStrictRegex;
+            } else {
+                return this._weekdaysShortRegex;
+            }
+        } else {
+            if (!hasOwnProp(this, '_weekdaysShortRegex')) {
+                this._weekdaysShortRegex = defaultWeekdaysShortRegex;
+            }
+            return this._weekdaysShortStrictRegex && isStrict
+                ? this._weekdaysShortStrictRegex
+                : this._weekdaysShortRegex;
+        }
+    }
 
-                    addFormatToken('Hmmss', 0, 0, function () {
-                        return (
-                            '' +
-                            this.hours() +
-                            zeroFill(this.minutes(), 2) +
-                            zeroFill(this.seconds(), 2)
-                        );
-                    });
-
-                    function meridiem(token, lowercase) {
-                        addFormatToken(token, 0, 0, function () {
-                            return this.localeData().meridiem(
-                                this.hours(),
-                                this.minutes(),
-                                lowercase
-                            );
-                        });
-                    }
+    function weekdaysMinRegex(isStrict) {
+        if (this._weekdaysParseExact) {
+            if (!hasOwnProp(this, '_weekdaysRegex')) {
+                computeWeekdaysParse.call(this);
+            }
+            if (isStrict) {
+                return this._weekdaysMinStrictRegex;
+            } else {
+                return this._weekdaysMinRegex;
+            }
+        } else {
+            if (!hasOwnProp(this, '_weekdaysMinRegex')) {
+                this._weekdaysMinRegex = defaultWeekdaysMinRegex;
+            }
+            return this._weekdaysMinStrictRegex && isStrict
+                ? this._weekdaysMinStrictRegex
+                : this._weekdaysMinRegex;
+        }
+    }
 
-                    meridiem('a', true);
-                    meridiem('A', false);
+    function computeWeekdaysParse() {
+        function cmpLenRev(a, b) {
+            return b.length - a.length;
+        }
 
-                    // ALIASES
+        var minPieces = [],
+            shortPieces = [],
+            longPieces = [],
+            mixedPieces = [],
+            i,
+            mom,
+            minp,
+            shortp,
+            longp;
+        for (i = 0; i < 7; i++) {
+            // make the regex if we don't have it already
+            mom = createUTC([2000, 1]).day(i);
+            minp = regexEscape(this.weekdaysMin(mom, ''));
+            shortp = regexEscape(this.weekdaysShort(mom, ''));
+            longp = regexEscape(this.weekdays(mom, ''));
+            minPieces.push(minp);
+            shortPieces.push(shortp);
+            longPieces.push(longp);
+            mixedPieces.push(minp);
+            mixedPieces.push(shortp);
+            mixedPieces.push(longp);
+        }
+        // Sorting makes sure if one weekday (or abbr) is a prefix of another it
+        // will match the longer piece.
+        minPieces.sort(cmpLenRev);
+        shortPieces.sort(cmpLenRev);
+        longPieces.sort(cmpLenRev);
+        mixedPieces.sort(cmpLenRev);
+
+        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
+        this._weekdaysShortRegex = this._weekdaysRegex;
+        this._weekdaysMinRegex = this._weekdaysRegex;
+
+        this._weekdaysStrictRegex = new RegExp(
+            '^(' + longPieces.join('|') + ')',
+            'i'
+        );
+        this._weekdaysShortStrictRegex = new RegExp(
+            '^(' + shortPieces.join('|') + ')',
+            'i'
+        );
+        this._weekdaysMinStrictRegex = new RegExp(
+            '^(' + minPieces.join('|') + ')',
+            'i'
+        );
+    }
 
-                    addUnitAlias('hour', 'h');
+    // FORMATTING
 
-                    // PRIORITY
-                    addUnitPriority('hour', 13);
+    function hFormat() {
+        return this.hours() % 12 || 12;
+    }
 
-                    // PARSING
+    function kFormat() {
+        return this.hours() || 24;
+    }
 
-                    function matchMeridiem(isStrict, locale) {
-                        return locale._meridiemParse;
-                    }
+    addFormatToken('H', ['HH', 2], 0, 'hour');
+    addFormatToken('h', ['hh', 2], 0, hFormat);
+    addFormatToken('k', ['kk', 2], 0, kFormat);
+
+    addFormatToken('hmm', 0, 0, function () {
+        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
+    });
+
+    addFormatToken('hmmss', 0, 0, function () {
+        return (
+            '' +
+            hFormat.apply(this) +
+            zeroFill(this.minutes(), 2) +
+            zeroFill(this.seconds(), 2)
+        );
+    });
+
+    addFormatToken('Hmm', 0, 0, function () {
+        return '' + this.hours() + zeroFill(this.minutes(), 2);
+    });
+
+    addFormatToken('Hmmss', 0, 0, function () {
+        return (
+            '' +
+            this.hours() +
+            zeroFill(this.minutes(), 2) +
+            zeroFill(this.seconds(), 2)
+        );
+    });
+
+    function meridiem(token, lowercase) {
+        addFormatToken(token, 0, 0, function () {
+            return this.localeData().meridiem(
+                this.hours(),
+                this.minutes(),
+                lowercase
+            );
+        });
+    }
 
-                    addRegexToken('a', matchMeridiem);
-                    addRegexToken('A', matchMeridiem);
-                    addRegexToken('H', match1to2);
-                    addRegexToken('h', match1to2);
-                    addRegexToken('k', match1to2);
-                    addRegexToken('HH', match1to2, match2);
-                    addRegexToken('hh', match1to2, match2);
-                    addRegexToken('kk', match1to2, match2);
-
-                    addRegexToken('hmm', match3to4);
-                    addRegexToken('hmmss', match5to6);
-                    addRegexToken('Hmm', match3to4);
-                    addRegexToken('Hmmss', match5to6);
-
-                    addParseToken(['H', 'HH'], HOUR);
-                    addParseToken(['k', 'kk'], function (input, array, config) {
-                        var kInput = toInt(input);
-                        array[HOUR] = kInput === 24 ? 0 : kInput;
-                    });
-                    addParseToken(['a', 'A'], function (input, array, config) {
-                        config._isPm = config._locale.isPM(input);
-                        config._meridiem = input;
-                    });
-                    addParseToken(['h', 'hh'], function (input, array, config) {
-                        array[HOUR] = toInt(input);
-                        getParsingFlags(config).bigHour = true;
-                    });
-                    addParseToken('hmm', function (input, array, config) {
-                        var pos = input.length - 2;
-                        array[HOUR] = toInt(input.substr(0, pos));
-                        array[MINUTE] = toInt(input.substr(pos));
-                        getParsingFlags(config).bigHour = true;
-                    });
-                    addParseToken('hmmss', function (input, array, config) {
-                        var pos1 = input.length - 4,
-                            pos2 = input.length - 2;
-                        array[HOUR] = toInt(input.substr(0, pos1));
-                        array[MINUTE] = toInt(input.substr(pos1, 2));
-                        array[SECOND] = toInt(input.substr(pos2));
-                        getParsingFlags(config).bigHour = true;
-                    });
-                    addParseToken('Hmm', function (input, array, config) {
-                        var pos = input.length - 2;
-                        array[HOUR] = toInt(input.substr(0, pos));
-                        array[MINUTE] = toInt(input.substr(pos));
-                    });
-                    addParseToken('Hmmss', function (input, array, config) {
-                        var pos1 = input.length - 4,
-                            pos2 = input.length - 2;
-                        array[HOUR] = toInt(input.substr(0, pos1));
-                        array[MINUTE] = toInt(input.substr(pos1, 2));
-                        array[SECOND] = toInt(input.substr(pos2));
-                    });
-
-                    // LOCALES
-
-                    function localeIsPM(input) {
-                        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
-                        // Using charAt should be more compatible.
-                        return (input + '').toLowerCase().charAt(0) === 'p';
-                    }
+    meridiem('a', true);
+    meridiem('A', false);
 
-                    var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
-                        // Setting the hour should keep the time, because the user explicitly
-                        // specified which hour they want. So trying to maintain the same hour (in
-                        // a new timezone) makes sense. Adding/subtracting hours does not follow
-                        // this rule.
-                        getSetHour = makeGetSet('Hours', true);
-
-                    function localeMeridiem(hours, minutes, isLower) {
-                        if (hours > 11) {
-                            return isLower ? 'pm' : 'PM';
-                        } else {
-                            return isLower ? 'am' : 'AM';
-                        }
-                    }
+    // ALIASES
 
-                    var baseConfig = {
-                        calendar: defaultCalendar,
-                        longDateFormat: defaultLongDateFormat,
-                        invalidDate: defaultInvalidDate,
-                        ordinal: defaultOrdinal,
-                        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
-                        relativeTime: defaultRelativeTime,
-
-                        months: defaultLocaleMonths,
-                        monthsShort: defaultLocaleMonthsShort,
-
-                        week: defaultLocaleWeek,
-
-                        weekdays: defaultLocaleWeekdays,
-                        weekdaysMin: defaultLocaleWeekdaysMin,
-                        weekdaysShort: defaultLocaleWeekdaysShort,
-
-                        meridiemParse: defaultLocaleMeridiemParse,
-                    };
-
-                    // internal storage for locale config files
-                    var locales = {},
-                        localeFamilies = {},
-                        globalLocale;
-
-                    function commonPrefix(arr1, arr2) {
-                        var i,
-                            minl = Math.min(arr1.length, arr2.length);
-                        for (i = 0; i < minl; i += 1) {
-                            if (arr1[i] !== arr2[i]) {
-                                return i;
-                            }
-                        }
-                        return minl;
-                    }
+    addUnitAlias('hour', 'h');
 
-                    function normalizeLocale(key) {
-                        return key ? key.toLowerCase().replace('_', '-') : key;
-                    }
+    // PRIORITY
+    addUnitPriority('hour', 13);
 
-                    // pick the locale from the array
-                    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
-                    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
-                    function chooseLocale(names) {
-                        var i = 0,
-                            j,
-                            next,
-                            locale,
-                            split;
-
-                        while (i < names.length) {
-                            split = normalizeLocale(names[i]).split('-');
-                            j = split.length;
-                            next = normalizeLocale(names[i + 1]);
-                            next = next ? next.split('-') : null;
-                            while (j > 0) {
-                                locale = loadLocale(split.slice(0, j).join('-'));
-                                if (locale) {
-                                    return locale;
-                                }
-                                if (
-                                    next &&
-                                    next.length >= j &&
-                                    commonPrefix(split, next) >= j - 1
-                                ) {
-                                    //the next array item is better than a shallower substring of this one
-                                    break;
-                                }
-                                j--;
-                            }
-                            i++;
-                        }
-                        return globalLocale;
-                    }
+    // PARSING
 
-                    function loadLocale(name) {
-                        var oldLocale = null,
-                            aliasedRequire;
-                        // TODO: Find a better way to register and load all the locales in Node
-                        if (
-                            locales[name] === undefined &&
-                            typeof module !== 'undefined' &&
-                            module &&
-                            module.exports
-                        ) {
-                            try {
-                                oldLocale = globalLocale._abbr;
-                                aliasedRequire = require;
-                                __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
-                                getSetGlobalLocale(oldLocale);
-                            } catch (e) {
-                                // mark as not found to avoid repeating expensive file require call causing high CPU
-                                // when trying to find en-US, en_US, en-us for every format call
-                                locales[name] = null; // null means not found
-                            }
-                        }
-                        return locales[name];
-                    }
+    function matchMeridiem(isStrict, locale) {
+        return locale._meridiemParse;
+    }
 
-                    // This function will load locale and then set the global locale.  If
-                    // no arguments are passed in, it will simply return the current global
-                    // locale key.
-                    function getSetGlobalLocale(key, values) {
-                        var data;
-                        if (key) {
-                            if (isUndefined(values)) {
-                                data = getLocale(key);
-                            } else {
-                                data = defineLocale(key, values);
-                            }
+    addRegexToken('a', matchMeridiem);
+    addRegexToken('A', matchMeridiem);
+    addRegexToken('H', match1to2);
+    addRegexToken('h', match1to2);
+    addRegexToken('k', match1to2);
+    addRegexToken('HH', match1to2, match2);
+    addRegexToken('hh', match1to2, match2);
+    addRegexToken('kk', match1to2, match2);
+
+    addRegexToken('hmm', match3to4);
+    addRegexToken('hmmss', match5to6);
+    addRegexToken('Hmm', match3to4);
+    addRegexToken('Hmmss', match5to6);
+
+    addParseToken(['H', 'HH'], HOUR);
+    addParseToken(['k', 'kk'], function (input, array, config) {
+        var kInput = toInt(input);
+        array[HOUR] = kInput === 24 ? 0 : kInput;
+    });
+    addParseToken(['a', 'A'], function (input, array, config) {
+        config._isPm = config._locale.isPM(input);
+        config._meridiem = input;
+    });
+    addParseToken(['h', 'hh'], function (input, array, config) {
+        array[HOUR] = toInt(input);
+        getParsingFlags(config).bigHour = true;
+    });
+    addParseToken('hmm', function (input, array, config) {
+        var pos = input.length - 2;
+        array[HOUR] = toInt(input.substr(0, pos));
+        array[MINUTE] = toInt(input.substr(pos));
+        getParsingFlags(config).bigHour = true;
+    });
+    addParseToken('hmmss', function (input, array, config) {
+        var pos1 = input.length - 4,
+            pos2 = input.length - 2;
+        array[HOUR] = toInt(input.substr(0, pos1));
+        array[MINUTE] = toInt(input.substr(pos1, 2));
+        array[SECOND] = toInt(input.substr(pos2));
+        getParsingFlags(config).bigHour = true;
+    });
+    addParseToken('Hmm', function (input, array, config) {
+        var pos = input.length - 2;
+        array[HOUR] = toInt(input.substr(0, pos));
+        array[MINUTE] = toInt(input.substr(pos));
+    });
+    addParseToken('Hmmss', function (input, array, config) {
+        var pos1 = input.length - 4,
+            pos2 = input.length - 2;
+        array[HOUR] = toInt(input.substr(0, pos1));
+        array[MINUTE] = toInt(input.substr(pos1, 2));
+        array[SECOND] = toInt(input.substr(pos2));
+    });
+
+    // LOCALES
+
+    function localeIsPM(input) {
+        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
+        // Using charAt should be more compatible.
+        return (input + '').toLowerCase().charAt(0) === 'p';
+    }
 
-                            if (data) {
-                                // moment.duration._locale = moment._locale = data;
-                                globalLocale = data;
-                            } else {
-                                if (typeof console !== 'undefined' && console.warn) {
-                                    //warn user if arguments are passed but the locale could not be set
-                                    console.warn(
-                                        'Locale ' + key + ' not found. Did you forget to load it?'
-                                    );
-                                }
-                            }
-                        }
+    var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
+        // Setting the hour should keep the time, because the user explicitly
+        // specified which hour they want. So trying to maintain the same hour (in
+        // a new timezone) makes sense. Adding/subtracting hours does not follow
+        // this rule.
+        getSetHour = makeGetSet('Hours', true);
+
+    function localeMeridiem(hours, minutes, isLower) {
+        if (hours > 11) {
+            return isLower ? 'pm' : 'PM';
+        } else {
+            return isLower ? 'am' : 'AM';
+        }
+    }
 
-                        return globalLocale._abbr;
-                    }
+    var baseConfig = {
+        calendar: defaultCalendar,
+        longDateFormat: defaultLongDateFormat,
+        invalidDate: defaultInvalidDate,
+        ordinal: defaultOrdinal,
+        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
+        relativeTime: defaultRelativeTime,
+
+        months: defaultLocaleMonths,
+        monthsShort: defaultLocaleMonthsShort,
+
+        week: defaultLocaleWeek,
+
+        weekdays: defaultLocaleWeekdays,
+        weekdaysMin: defaultLocaleWeekdaysMin,
+        weekdaysShort: defaultLocaleWeekdaysShort,
+
+        meridiemParse: defaultLocaleMeridiemParse,
+    };
+
+    // internal storage for locale config files
+    var locales = {},
+        localeFamilies = {},
+        globalLocale;
+
+    function commonPrefix(arr1, arr2) {
+        var i,
+            minl = Math.min(arr1.length, arr2.length);
+        for (i = 0; i < minl; i += 1) {
+            if (arr1[i] !== arr2[i]) {
+                return i;
+            }
+        }
+        return minl;
+    }
 
-                    function defineLocale(name, config) {
-                        if (config !== null) {
-                            var locale,
-                                parentConfig = baseConfig;
-                            config.abbr = name;
-                            if (locales[name] != null) {
-                                deprecateSimple(
-                                    'defineLocaleOverride',
-                                    'use moment.updateLocale(localeName, config) to change ' +
-                                    'an existing locale. moment.defineLocale(localeName, ' +
-                                    'config) should only be used for creating a new locale ' +
-                                    'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
-                                );
-                                parentConfig = locales[name]._config;
-                            } else if (config.parentLocale != null) {
-                                if (locales[config.parentLocale] != null) {
-                                    parentConfig = locales[config.parentLocale]._config;
-                                } else {
-                                    locale = loadLocale(config.parentLocale);
-                                    if (locale != null) {
-                                        parentConfig = locale._config;
-                                    } else {
-                                        if (!localeFamilies[config.parentLocale]) {
-                                            localeFamilies[config.parentLocale] = [];
-                                        }
-                                        localeFamilies[config.parentLocale].push({
-                                            name: name,
-                                            config: config,
-                                        });
-                                        return null;
-                                    }
-                                }
-                            }
-                            locales[name] = new Locale(mergeConfigs(parentConfig, config));
+    function normalizeLocale(key) {
+        return key ? key.toLowerCase().replace('_', '-') : key;
+    }
 
-                            if (localeFamilies[name]) {
-                                localeFamilies[name].forEach(function (x) {
-                                    defineLocale(x.name, x.config);
-                                });
-                            }
+    // pick the locale from the array
+    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
+    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
+    function chooseLocale(names) {
+        var i = 0,
+            j,
+            next,
+            locale,
+            split;
+
+        while (i < names.length) {
+            split = normalizeLocale(names[i]).split('-');
+            j = split.length;
+            next = normalizeLocale(names[i + 1]);
+            next = next ? next.split('-') : null;
+            while (j > 0) {
+                locale = loadLocale(split.slice(0, j).join('-'));
+                if (locale) {
+                    return locale;
+                }
+                if (
+                    next &&
+                    next.length >= j &&
+                    commonPrefix(split, next) >= j - 1
+                ) {
+                    //the next array item is better than a shallower substring of this one
+                    break;
+                }
+                j--;
+            }
+            i++;
+        }
+        return globalLocale;
+    }
 
-                            // backwards compat for now: also set the locale
-                            // make sure we set the locale AFTER all child locales have been
-                            // created, so we won't end up with the child locale set.
-                            getSetGlobalLocale(name);
+    function loadLocale(name) {
+        var oldLocale = null,
+            aliasedRequire;
+        // TODO: Find a better way to register and load all the locales in Node
+        if (
+            locales[name] === undefined &&
+            typeof module !== 'undefined' &&
+            module &&
+            module.exports
+        ) {
+            try {
+                oldLocale = globalLocale._abbr;
+                aliasedRequire = require;
+                __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
+                getSetGlobalLocale(oldLocale);
+            } catch (e) {
+                // mark as not found to avoid repeating expensive file require call causing high CPU
+                // when trying to find en-US, en_US, en-us for every format call
+                locales[name] = null; // null means not found
+            }
+        }
+        return locales[name];
+    }
 
-                            return locales[name];
-                        } else {
-                            // useful for testing
-                            delete locales[name];
-                            return null;
-                        }
-                    }
+    // This function will load locale and then set the global locale.  If
+    // no arguments are passed in, it will simply return the current global
+    // locale key.
+    function getSetGlobalLocale(key, values) {
+        var data;
+        if (key) {
+            if (isUndefined(values)) {
+                data = getLocale(key);
+            } else {
+                data = defineLocale(key, values);
+            }
 
-                    function updateLocale(name, config) {
-                        if (config != null) {
-                            var locale,
-                                tmpLocale,
-                                parentConfig = baseConfig;
-
-                            if (locales[name] != null && locales[name].parentLocale != null) {
-                                // Update existing child locale in-place to avoid memory-leaks
-                                locales[name].set(mergeConfigs(locales[name]._config, config));
-                            } else {
-                                // MERGE
-                                tmpLocale = loadLocale(name);
-                                if (tmpLocale != null) {
-                                    parentConfig = tmpLocale._config;
-                                }
-                                config = mergeConfigs(parentConfig, config);
-                                if (tmpLocale == null) {
-                                    // updateLocale is called for creating a new locale
-                                    // Set abbr so it will have a name (getters return
-                                    // undefined otherwise).
-                                    config.abbr = name;
-                                }
-                                locale = new Locale(config);
-                                locale.parentLocale = locales[name];
-                                locales[name] = locale;
-                            }
+            if (data) {
+                // moment.duration._locale = moment._locale = data;
+                globalLocale = data;
+            } else {
+                if (typeof console !== 'undefined' && console.warn) {
+                    //warn user if arguments are passed but the locale could not be set
+                    console.warn(
+                        'Locale ' + key + ' not found. Did you forget to load it?'
+                    );
+                }
+            }
+        }
 
-                            // backwards compat for now: also set the locale
-                            getSetGlobalLocale(name);
-                        } else {
-                            // pass null for config to unupdate, useful for tests
-                            if (locales[name] != null) {
-                                if (locales[name].parentLocale != null) {
-                                    locales[name] = locales[name].parentLocale;
-                                    if (name === getSetGlobalLocale()) {
-                                        getSetGlobalLocale(name);
-                                    }
-                                } else if (locales[name] != null) {
-                                    delete locales[name];
-                                }
-                            }
+        return globalLocale._abbr;
+    }
+
+    function defineLocale(name, config) {
+        if (config !== null) {
+            var locale,
+                parentConfig = baseConfig;
+            config.abbr = name;
+            if (locales[name] != null) {
+                deprecateSimple(
+                    'defineLocaleOverride',
+                    'use moment.updateLocale(localeName, config) to change ' +
+                        'an existing locale. moment.defineLocale(localeName, ' +
+                        'config) should only be used for creating a new locale ' +
+                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
+                );
+                parentConfig = locales[name]._config;
+            } else if (config.parentLocale != null) {
+                if (locales[config.parentLocale] != null) {
+                    parentConfig = locales[config.parentLocale]._config;
+                } else {
+                    locale = loadLocale(config.parentLocale);
+                    if (locale != null) {
+                        parentConfig = locale._config;
+                    } else {
+                        if (!localeFamilies[config.parentLocale]) {
+                            localeFamilies[config.parentLocale] = [];
                         }
-                        return locales[name];
+                        localeFamilies[config.parentLocale].push({
+                            name: name,
+                            config: config,
+                        });
+                        return null;
                     }
+                }
+            }
+            locales[name] = new Locale(mergeConfigs(parentConfig, config));
 
-                    // returns locale data
-                    function getLocale(key) {
-                        var locale;
-
-                        if (key && key._locale && key._locale._abbr) {
-                            key = key._locale._abbr;
-                        }
+            if (localeFamilies[name]) {
+                localeFamilies[name].forEach(function (x) {
+                    defineLocale(x.name, x.config);
+                });
+            }
 
-                        if (!key) {
-                            return globalLocale;
-                        }
+            // backwards compat for now: also set the locale
+            // make sure we set the locale AFTER all child locales have been
+            // created, so we won't end up with the child locale set.
+            getSetGlobalLocale(name);
 
-                        if (!isArray(key)) {
-                            //short-circuit everything else
-                            locale = loadLocale(key);
-                            if (locale) {
-                                return locale;
-                            }
-                            key = [key];
-                        }
+            return locales[name];
+        } else {
+            // useful for testing
+            delete locales[name];
+            return null;
+        }
+    }
 
-                        return chooseLocale(key);
-                    }
+    function updateLocale(name, config) {
+        if (config != null) {
+            var locale,
+                tmpLocale,
+                parentConfig = baseConfig;
+
+            if (locales[name] != null && locales[name].parentLocale != null) {
+                // Update existing child locale in-place to avoid memory-leaks
+                locales[name].set(mergeConfigs(locales[name]._config, config));
+            } else {
+                // MERGE
+                tmpLocale = loadLocale(name);
+                if (tmpLocale != null) {
+                    parentConfig = tmpLocale._config;
+                }
+                config = mergeConfigs(parentConfig, config);
+                if (tmpLocale == null) {
+                    // updateLocale is called for creating a new locale
+                    // Set abbr so it will have a name (getters return
+                    // undefined otherwise).
+                    config.abbr = name;
+                }
+                locale = new Locale(config);
+                locale.parentLocale = locales[name];
+                locales[name] = locale;
+            }
 
-                    function listLocales() {
-                        return keys(locales);
+            // backwards compat for now: also set the locale
+            getSetGlobalLocale(name);
+        } else {
+            // pass null for config to unupdate, useful for tests
+            if (locales[name] != null) {
+                if (locales[name].parentLocale != null) {
+                    locales[name] = locales[name].parentLocale;
+                    if (name === getSetGlobalLocale()) {
+                        getSetGlobalLocale(name);
                     }
+                } else if (locales[name] != null) {
+                    delete locales[name];
+                }
+            }
+        }
+        return locales[name];
+    }
 
-                    function checkOverflow(m) {
-                        var overflow,
-                            a = m._a;
-
-                        if (a && getParsingFlags(m).overflow === -2) {
-                            overflow =
-                                a[MONTH] < 0 || a[MONTH] > 11
-                                    ? MONTH
-                                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
-                                        ? DATE
-                                        : a[HOUR] < 0 ||
-                                        a[HOUR] > 24 ||
-                                        (a[HOUR] === 24 &&
-                                            (a[MINUTE] !== 0 ||
-                                                a[SECOND] !== 0 ||
-                                                a[MILLISECOND] !== 0))
-                                            ? HOUR
-                                            : a[MINUTE] < 0 || a[MINUTE] > 59
-                                                ? MINUTE
-                                                : a[SECOND] < 0 || a[SECOND] > 59
-                                                    ? SECOND
-                                                    : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
-                                                        ? MILLISECOND
-                                                        : -1;
-
-                            if (
-                                getParsingFlags(m)._overflowDayOfYear &&
-                                (overflow < YEAR || overflow > DATE)
-                            ) {
-                                overflow = DATE;
-                            }
-                            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
-                                overflow = WEEK;
-                            }
-                            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
-                                overflow = WEEKDAY;
-                            }
+    // returns locale data
+    function getLocale(key) {
+        var locale;
 
-                            getParsingFlags(m).overflow = overflow;
-                        }
+        if (key && key._locale && key._locale._abbr) {
+            key = key._locale._abbr;
+        }
 
-                        return m;
-                    }
+        if (!key) {
+            return globalLocale;
+        }
 
-                    // iso 8601 regex
-                    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
-                    var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
-                        basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
-                        tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
-                        isoDates = [
-                            ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
-                            ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
-                            ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
-                            ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
-                            ['YYYY-DDD', /\d{4}-\d{3}/],
-                            ['YYYY-MM', /\d{4}-\d\d/, false],
-                            ['YYYYYYMMDD', /[+-]\d{10}/],
-                            ['YYYYMMDD', /\d{8}/],
-                            ['GGGG[W]WWE', /\d{4}W\d{3}/],
-                            ['GGGG[W]WW', /\d{4}W\d{2}/, false],
-                            ['YYYYDDD', /\d{7}/],
-                            ['YYYYMM', /\d{6}/, false],
-                            ['YYYY', /\d{4}/, false],
-                        ],
-                        // iso time formats and regexes
-                        isoTimes = [
-                            ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
-                            ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
-                            ['HH:mm:ss', /\d\d:\d\d:\d\d/],
-                            ['HH:mm', /\d\d:\d\d/],
-                            ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
-                            ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
-                            ['HHmmss', /\d\d\d\d\d\d/],
-                            ['HHmm', /\d\d\d\d/],
-                            ['HH', /\d\d/],
-                        ],
-                        aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
-                        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
-                        rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
-                        obsOffsets = {
-                            UT: 0,
-                            GMT: 0,
-                            EDT: -4 * 60,
-                            EST: -5 * 60,
-                            CDT: -5 * 60,
-                            CST: -6 * 60,
-                            MDT: -6 * 60,
-                            MST: -7 * 60,
-                            PDT: -7 * 60,
-                            PST: -8 * 60,
-                        };
-
-                    // date from iso format
-                    function configFromISO(config) {
-                        var i,
-                            l,
-                            string = config._i,
-                            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
-                            allowTime,
-                            dateFormat,
-                            timeFormat,
-                            tzFormat;
-
-                        if (match) {
-                            getParsingFlags(config).iso = true;
-
-                            for (i = 0, l = isoDates.length; i < l; i++) {
-                                if (isoDates[i][1].exec(match[1])) {
-                                    dateFormat = isoDates[i][0];
-                                    allowTime = isoDates[i][2] !== false;
-                                    break;
-                                }
-                            }
-                            if (dateFormat == null) {
-                                config._isValid = false;
-                                return;
-                            }
-                            if (match[3]) {
-                                for (i = 0, l = isoTimes.length; i < l; i++) {
-                                    if (isoTimes[i][1].exec(match[3])) {
-                                        // match[2] should be 'T' or space
-                                        timeFormat = (match[2] || ' ') + isoTimes[i][0];
-                                        break;
-                                    }
-                                }
-                                if (timeFormat == null) {
-                                    config._isValid = false;
-                                    return;
-                                }
-                            }
-                            if (!allowTime && timeFormat != null) {
-                                config._isValid = false;
-                                return;
-                            }
-                            if (match[4]) {
-                                if (tzRegex.exec(match[4])) {
-                                    tzFormat = 'Z';
-                                } else {
-                                    config._isValid = false;
-                                    return;
-                                }
-                            }
-                            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
-                            configFromStringAndFormat(config);
-                        } else {
-                            config._isValid = false;
-                        }
-                    }
+        if (!isArray(key)) {
+            //short-circuit everything else
+            locale = loadLocale(key);
+            if (locale) {
+                return locale;
+            }
+            key = [key];
+        }
 
-                    function extractFromRFC2822Strings(
-                        yearStr,
-                        monthStr,
-                        dayStr,
-                        hourStr,
-                        minuteStr,
-                        secondStr
-                    ) {
-                        var result = [
-                            untruncateYear(yearStr),
-                            defaultLocaleMonthsShort.indexOf(monthStr),
-                            parseInt(dayStr, 10),
-                            parseInt(hourStr, 10),
-                            parseInt(minuteStr, 10),
-                        ];
-
-                        if (secondStr) {
-                            result.push(parseInt(secondStr, 10));
-                        }
+        return chooseLocale(key);
+    }
 
-                        return result;
-                    }
+    function listLocales() {
+        return keys(locales);
+    }
 
-                    function untruncateYear(yearStr) {
-                        var year = parseInt(yearStr, 10);
-                        if (year <= 49) {
-                            return 2000 + year;
-                        } else if (year <= 999) {
-                            return 1900 + year;
-                        }
-                        return year;
-                    }
+    function checkOverflow(m) {
+        var overflow,
+            a = m._a;
+
+        if (a && getParsingFlags(m).overflow === -2) {
+            overflow =
+                a[MONTH] < 0 || a[MONTH] > 11
+                    ? MONTH
+                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
+                    ? DATE
+                    : a[HOUR] < 0 ||
+                      a[HOUR] > 24 ||
+                      (a[HOUR] === 24 &&
+                          (a[MINUTE] !== 0 ||
+                              a[SECOND] !== 0 ||
+                              a[MILLISECOND] !== 0))
+                    ? HOUR
+                    : a[MINUTE] < 0 || a[MINUTE] > 59
+                    ? MINUTE
+                    : a[SECOND] < 0 || a[SECOND] > 59
+                    ? SECOND
+                    : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
+                    ? MILLISECOND
+                    : -1;
+
+            if (
+                getParsingFlags(m)._overflowDayOfYear &&
+                (overflow < YEAR || overflow > DATE)
+            ) {
+                overflow = DATE;
+            }
+            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
+                overflow = WEEK;
+            }
+            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
+                overflow = WEEKDAY;
+            }
 
-                    function preprocessRFC2822(s) {
-                        // Remove comments and folding whitespace and replace multiple-spaces with a single space
-                        return s
-                            .replace(/\([^)]*\)|[\n\t]/g, ' ')
-                            .replace(/(\s\s+)/g, ' ')
-                            .replace(/^\s\s*/, '')
-                            .replace(/\s\s*$/, '');
-                    }
+            getParsingFlags(m).overflow = overflow;
+        }
 
-                    function checkWeekday(weekdayStr, parsedInput, config) {
-                        if (weekdayStr) {
-                            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
-                            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
-                                weekdayActual = new Date(
-                                    parsedInput[0],
-                                    parsedInput[1],
-                                    parsedInput[2]
-                                ).getDay();
-                            if (weekdayProvided !== weekdayActual) {
-                                getParsingFlags(config).weekdayMismatch = true;
-                                config._isValid = false;
-                                return false;
-                            }
-                        }
-                        return true;
-                    }
+        return m;
+    }
 
-                    function calculateOffset(obsOffset, militaryOffset, numOffset) {
-                        if (obsOffset) {
-                            return obsOffsets[obsOffset];
-                        } else if (militaryOffset) {
-                            // the only allowed military tz is Z
-                            return 0;
-                        } else {
-                            var hm = parseInt(numOffset, 10),
-                                m = hm % 100,
-                                h = (hm - m) / 100;
-                            return h * 60 + m;
-                        }
+    // iso 8601 regex
+    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
+    var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
+        basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
+        tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
+        isoDates = [
+            ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
+            ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
+            ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
+            ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
+            ['YYYY-DDD', /\d{4}-\d{3}/],
+            ['YYYY-MM', /\d{4}-\d\d/, false],
+            ['YYYYYYMMDD', /[+-]\d{10}/],
+            ['YYYYMMDD', /\d{8}/],
+            ['GGGG[W]WWE', /\d{4}W\d{3}/],
+            ['GGGG[W]WW', /\d{4}W\d{2}/, false],
+            ['YYYYDDD', /\d{7}/],
+            ['YYYYMM', /\d{6}/, false],
+            ['YYYY', /\d{4}/, false],
+        ],
+        // iso time formats and regexes
+        isoTimes = [
+            ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
+            ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
+            ['HH:mm:ss', /\d\d:\d\d:\d\d/],
+            ['HH:mm', /\d\d:\d\d/],
+            ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
+            ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
+            ['HHmmss', /\d\d\d\d\d\d/],
+            ['HHmm', /\d\d\d\d/],
+            ['HH', /\d\d/],
+        ],
+        aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
+        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
+        rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
+        obsOffsets = {
+            UT: 0,
+            GMT: 0,
+            EDT: -4 * 60,
+            EST: -5 * 60,
+            CDT: -5 * 60,
+            CST: -6 * 60,
+            MDT: -6 * 60,
+            MST: -7 * 60,
+            PDT: -7 * 60,
+            PST: -8 * 60,
+        };
+
+    // date from iso format
+    function configFromISO(config) {
+        var i,
+            l,
+            string = config._i,
+            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
+            allowTime,
+            dateFormat,
+            timeFormat,
+            tzFormat;
+
+        if (match) {
+            getParsingFlags(config).iso = true;
+
+            for (i = 0, l = isoDates.length; i < l; i++) {
+                if (isoDates[i][1].exec(match[1])) {
+                    dateFormat = isoDates[i][0];
+                    allowTime = isoDates[i][2] !== false;
+                    break;
+                }
+            }
+            if (dateFormat == null) {
+                config._isValid = false;
+                return;
+            }
+            if (match[3]) {
+                for (i = 0, l = isoTimes.length; i < l; i++) {
+                    if (isoTimes[i][1].exec(match[3])) {
+                        // match[2] should be 'T' or space
+                        timeFormat = (match[2] || ' ') + isoTimes[i][0];
+                        break;
                     }
+                }
+                if (timeFormat == null) {
+                    config._isValid = false;
+                    return;
+                }
+            }
+            if (!allowTime && timeFormat != null) {
+                config._isValid = false;
+                return;
+            }
+            if (match[4]) {
+                if (tzRegex.exec(match[4])) {
+                    tzFormat = 'Z';
+                } else {
+                    config._isValid = false;
+                    return;
+                }
+            }
+            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
+            configFromStringAndFormat(config);
+        } else {
+            config._isValid = false;
+        }
+    }
 
-                    // date and time from ref 2822 format
-                    function configFromRFC2822(config) {
-                        var match = rfc2822.exec(preprocessRFC2822(config._i)),
-                            parsedArray;
-                        if (match) {
-                            parsedArray = extractFromRFC2822Strings(
-                                match[4],
-                                match[3],
-                                match[2],
-                                match[5],
-                                match[6],
-                                match[7]
-                            );
-                            if (!checkWeekday(match[1], parsedArray, config)) {
-                                return;
-                            }
-
-                            config._a = parsedArray;
-                            config._tzm = calculateOffset(match[8], match[9], match[10]);
+    function extractFromRFC2822Strings(
+        yearStr,
+        monthStr,
+        dayStr,
+        hourStr,
+        minuteStr,
+        secondStr
+    ) {
+        var result = [
+            untruncateYear(yearStr),
+            defaultLocaleMonthsShort.indexOf(monthStr),
+            parseInt(dayStr, 10),
+            parseInt(hourStr, 10),
+            parseInt(minuteStr, 10),
+        ];
+
+        if (secondStr) {
+            result.push(parseInt(secondStr, 10));
+        }
 
-                            config._d = createUTCDate.apply(null, config._a);
-                            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
+        return result;
+    }
 
-                            getParsingFlags(config).rfc2822 = true;
-                        } else {
-                            config._isValid = false;
-                        }
-                    }
+    function untruncateYear(yearStr) {
+        var year = parseInt(yearStr, 10);
+        if (year <= 49) {
+            return 2000 + year;
+        } else if (year <= 999) {
+            return 1900 + year;
+        }
+        return year;
+    }
 
-                    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
-                    function configFromString(config) {
-                        var matched = aspNetJsonRegex.exec(config._i);
-                        if (matched !== null) {
-                            config._d = new Date(+matched[1]);
-                            return;
-                        }
+    function preprocessRFC2822(s) {
+        // Remove comments and folding whitespace and replace multiple-spaces with a single space
+        return s
+            .replace(/\([^)]*\)|[\n\t]/g, ' ')
+            .replace(/(\s\s+)/g, ' ')
+            .replace(/^\s\s*/, '')
+            .replace(/\s\s*$/, '');
+    }
 
-                        configFromISO(config);
-                        if (config._isValid === false) {
-                            delete config._isValid;
-                        } else {
-                            return;
-                        }
+    function checkWeekday(weekdayStr, parsedInput, config) {
+        if (weekdayStr) {
+            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
+            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
+                weekdayActual = new Date(
+                    parsedInput[0],
+                    parsedInput[1],
+                    parsedInput[2]
+                ).getDay();
+            if (weekdayProvided !== weekdayActual) {
+                getParsingFlags(config).weekdayMismatch = true;
+                config._isValid = false;
+                return false;
+            }
+        }
+        return true;
+    }
 
-                        configFromRFC2822(config);
-                        if (config._isValid === false) {
-                            delete config._isValid;
-                        } else {
-                            return;
-                        }
+    function calculateOffset(obsOffset, militaryOffset, numOffset) {
+        if (obsOffset) {
+            return obsOffsets[obsOffset];
+        } else if (militaryOffset) {
+            // the only allowed military tz is Z
+            return 0;
+        } else {
+            var hm = parseInt(numOffset, 10),
+                m = hm % 100,
+                h = (hm - m) / 100;
+            return h * 60 + m;
+        }
+    }
 
-                        if (config._strict) {
-                            config._isValid = false;
-                        } else {
-                            // Final attempt, use Input Fallback
-                            hooks.createFromInputFallback(config);
-                        }
-                    }
+    // date and time from ref 2822 format
+    function configFromRFC2822(config) {
+        var match = rfc2822.exec(preprocessRFC2822(config._i)),
+            parsedArray;
+        if (match) {
+            parsedArray = extractFromRFC2822Strings(
+                match[4],
+                match[3],
+                match[2],
+                match[5],
+                match[6],
+                match[7]
+            );
+            if (!checkWeekday(match[1], parsedArray, config)) {
+                return;
+            }
 
-                    hooks.createFromInputFallback = deprecate(
-                        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
-                        'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
-                        'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
-                        function (config) {
-                            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
-                        }
-                    );
+            config._a = parsedArray;
+            config._tzm = calculateOffset(match[8], match[9], match[10]);
 
-                    // Pick the first defined of two or three arguments.
-                    function defaults(a, b, c) {
-                        if (a != null) {
-                            return a;
-                        }
-                        if (b != null) {
-                            return b;
-                        }
-                        return c;
-                    }
+            config._d = createUTCDate.apply(null, config._a);
+            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
 
-                    function currentDateArray(config) {
-                        // hooks is actually the exported moment object
-                        var nowValue = new Date(hooks.now());
-                        if (config._useUTC) {
-                            return [
-                                nowValue.getUTCFullYear(),
-                                nowValue.getUTCMonth(),
-                                nowValue.getUTCDate(),
-                            ];
-                        }
-                        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
-                    }
+            getParsingFlags(config).rfc2822 = true;
+        } else {
+            config._isValid = false;
+        }
+    }
 
-                    // convert an array to a date.
-                    // the array should mirror the parameters below
-                    // note: all values past the year are optional and will default to the lowest possible value.
-                    // [year, month, day , hour, minute, second, millisecond]
-                    function configFromArray(config) {
-                        var i,
-                            date,
-                            input = [],
-                            currentDate,
-                            expectedWeekday,
-                            yearToUse;
-
-                        if (config._d) {
-                            return;
-                        }
+    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
+    function configFromString(config) {
+        var matched = aspNetJsonRegex.exec(config._i);
+        if (matched !== null) {
+            config._d = new Date(+matched[1]);
+            return;
+        }
 
-                        currentDate = currentDateArray(config);
+        configFromISO(config);
+        if (config._isValid === false) {
+            delete config._isValid;
+        } else {
+            return;
+        }
 
-                        //compute day of the year from weeks and weekdays
-                        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
-                            dayOfYearFromWeekInfo(config);
-                        }
+        configFromRFC2822(config);
+        if (config._isValid === false) {
+            delete config._isValid;
+        } else {
+            return;
+        }
 
-                        //if the day of the year is set, figure out what it is
-                        if (config._dayOfYear != null) {
-                            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
+        if (config._strict) {
+            config._isValid = false;
+        } else {
+            // Final attempt, use Input Fallback
+            hooks.createFromInputFallback(config);
+        }
+    }
 
-                            if (
-                                config._dayOfYear > daysInYear(yearToUse) ||
-                                config._dayOfYear === 0
-                            ) {
-                                getParsingFlags(config)._overflowDayOfYear = true;
-                            }
+    hooks.createFromInputFallback = deprecate(
+        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
+            'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
+            'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
+        function (config) {
+            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
+        }
+    );
 
-                            date = createUTCDate(yearToUse, 0, config._dayOfYear);
-                            config._a[MONTH] = date.getUTCMonth();
-                            config._a[DATE] = date.getUTCDate();
-                        }
+    // Pick the first defined of two or three arguments.
+    function defaults(a, b, c) {
+        if (a != null) {
+            return a;
+        }
+        if (b != null) {
+            return b;
+        }
+        return c;
+    }
 
-                        // Default to current date.
-                        // * if no year, month, day of month are given, default to today
-                        // * if day of month is given, default month and year
-                        // * if month is given, default only year
-                        // * if year is given, don't default anything
-                        for (i = 0; i < 3 && config._a[i] == null; ++i) {
-                            config._a[i] = input[i] = currentDate[i];
-                        }
+    function currentDateArray(config) {
+        // hooks is actually the exported moment object
+        var nowValue = new Date(hooks.now());
+        if (config._useUTC) {
+            return [
+                nowValue.getUTCFullYear(),
+                nowValue.getUTCMonth(),
+                nowValue.getUTCDate(),
+            ];
+        }
+        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
+    }
 
-                        // Zero out whatever was not defaulted, including time
-                        for (; i < 7; i++) {
-                            config._a[i] = input[i] =
-                                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
-                        }
+    // convert an array to a date.
+    // the array should mirror the parameters below
+    // note: all values past the year are optional and will default to the lowest possible value.
+    // [year, month, day , hour, minute, second, millisecond]
+    function configFromArray(config) {
+        var i,
+            date,
+            input = [],
+            currentDate,
+            expectedWeekday,
+            yearToUse;
+
+        if (config._d) {
+            return;
+        }
 
-                        // Check for 24:00:00.000
-                        if (
-                            config._a[HOUR] === 24 &&
-                            config._a[MINUTE] === 0 &&
-                            config._a[SECOND] === 0 &&
-                            config._a[MILLISECOND] === 0
-                        ) {
-                            config._nextDay = true;
-                            config._a[HOUR] = 0;
-                        }
+        currentDate = currentDateArray(config);
 
-                        config._d = (config._useUTC ? createUTCDate : createDate).apply(
-                            null,
-                            input
-                        );
-                        expectedWeekday = config._useUTC
-                            ? config._d.getUTCDay()
-                            : config._d.getDay();
-
-                        // Apply timezone offset from input. The actual utcOffset can be changed
-                        // with parseZone.
-                        if (config._tzm != null) {
-                            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
-                        }
+        //compute day of the year from weeks and weekdays
+        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
+            dayOfYearFromWeekInfo(config);
+        }
 
-                        if (config._nextDay) {
-                            config._a[HOUR] = 24;
-                        }
+        //if the day of the year is set, figure out what it is
+        if (config._dayOfYear != null) {
+            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
 
-                        // check for mismatching day of week
-                        if (
-                            config._w &&
-                            typeof config._w.d !== 'undefined' &&
-                            config._w.d !== expectedWeekday
-                        ) {
-                            getParsingFlags(config).weekdayMismatch = true;
-                        }
-                    }
+            if (
+                config._dayOfYear > daysInYear(yearToUse) ||
+                config._dayOfYear === 0
+            ) {
+                getParsingFlags(config)._overflowDayOfYear = true;
+            }
 
-                    function dayOfYearFromWeekInfo(config) {
-                        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
-
-                        w = config._w;
-                        if (w.GG != null || w.W != null || w.E != null) {
-                            dow = 1;
-                            doy = 4;
-
-                            // TODO: We need to take the current isoWeekYear, but that depends on
-                            // how we interpret now (local, utc, fixed offset). So create
-                            // a now version of current config (take local/utc/offset flags, and
-                            // create now).
-                            weekYear = defaults(
-                                w.GG,
-                                config._a[YEAR],
-                                weekOfYear(createLocal(), 1, 4).year
-                            );
-                            week = defaults(w.W, 1);
-                            weekday = defaults(w.E, 1);
-                            if (weekday < 1 || weekday > 7) {
-                                weekdayOverflow = true;
-                            }
-                        } else {
-                            dow = config._locale._week.dow;
-                            doy = config._locale._week.doy;
-
-                            curWeek = weekOfYear(createLocal(), dow, doy);
-
-                            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
-
-                            // Default to current week.
-                            week = defaults(w.w, curWeek.week);
-
-                            if (w.d != null) {
-                                // weekday -- low day numbers are considered next week
-                                weekday = w.d;
-                                if (weekday < 0 || weekday > 6) {
-                                    weekdayOverflow = true;
-                                }
-                            } else if (w.e != null) {
-                                // local weekday -- counting starts from beginning of week
-                                weekday = w.e + dow;
-                                if (w.e < 0 || w.e > 6) {
-                                    weekdayOverflow = true;
-                                }
-                            } else {
-                                // default to beginning of week
-                                weekday = dow;
-                            }
-                        }
-                        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
-                            getParsingFlags(config)._overflowWeeks = true;
-                        } else if (weekdayOverflow != null) {
-                            getParsingFlags(config)._overflowWeekday = true;
-                        } else {
-                            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
-                            config._a[YEAR] = temp.year;
-                            config._dayOfYear = temp.dayOfYear;
-                        }
-                    }
+            date = createUTCDate(yearToUse, 0, config._dayOfYear);
+            config._a[MONTH] = date.getUTCMonth();
+            config._a[DATE] = date.getUTCDate();
+        }
 
-                    // constant that refers to the ISO standard
-                    hooks.ISO_8601 = function () {};
+        // Default to current date.
+        // * if no year, month, day of month are given, default to today
+        // * if day of month is given, default month and year
+        // * if month is given, default only year
+        // * if year is given, don't default anything
+        for (i = 0; i < 3 && config._a[i] == null; ++i) {
+            config._a[i] = input[i] = currentDate[i];
+        }
 
-                    // constant that refers to the RFC 2822 form
-                    hooks.RFC_2822 = function () {};
+        // Zero out whatever was not defaulted, including time
+        for (; i < 7; i++) {
+            config._a[i] = input[i] =
+                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
+        }
 
-                    // date from string and format string
-                    function configFromStringAndFormat(config) {
-                        // TODO: Move this to another part of the creation flow to prevent circular deps
-                        if (config._f === hooks.ISO_8601) {
-                            configFromISO(config);
-                            return;
-                        }
-                        if (config._f === hooks.RFC_2822) {
-                            configFromRFC2822(config);
-                            return;
-                        }
-                        config._a = [];
-                        getParsingFlags(config).empty = true;
-
-                        // This array is used to make a Date, either with `new Date` or `Date.UTC`
-                        var string = '' + config._i,
-                            i,
-                            parsedInput,
-                            tokens,
-                            token,
-                            skipped,
-                            stringLength = string.length,
-                            totalParsedInputLength = 0,
-                            era;
-
-                        tokens =
-                            expandFormat(config._f, config._locale).match(formattingTokens) || [];
-
-                        for (i = 0; i < tokens.length; i++) {
-                            token = tokens[i];
-                            parsedInput = (string.match(getParseRegexForToken(token, config)) ||
-                                [])[0];
-                            if (parsedInput) {
-                                skipped = string.substr(0, string.indexOf(parsedInput));
-                                if (skipped.length > 0) {
-                                    getParsingFlags(config).unusedInput.push(skipped);
-                                }
-                                string = string.slice(
-                                    string.indexOf(parsedInput) + parsedInput.length
-                                );
-                                totalParsedInputLength += parsedInput.length;
-                            }
-                            // don't parse if it's not a known token
-                            if (formatTokenFunctions[token]) {
-                                if (parsedInput) {
-                                    getParsingFlags(config).empty = false;
-                                } else {
-                                    getParsingFlags(config).unusedTokens.push(token);
-                                }
-                                addTimeToArrayFromToken(token, parsedInput, config);
-                            } else if (config._strict && !parsedInput) {
-                                getParsingFlags(config).unusedTokens.push(token);
-                            }
-                        }
+        // Check for 24:00:00.000
+        if (
+            config._a[HOUR] === 24 &&
+            config._a[MINUTE] === 0 &&
+            config._a[SECOND] === 0 &&
+            config._a[MILLISECOND] === 0
+        ) {
+            config._nextDay = true;
+            config._a[HOUR] = 0;
+        }
 
-                        // add remaining unparsed input length to the string
-                        getParsingFlags(config).charsLeftOver =
-                            stringLength - totalParsedInputLength;
-                        if (string.length > 0) {
-                            getParsingFlags(config).unusedInput.push(string);
-                        }
+        config._d = (config._useUTC ? createUTCDate : createDate).apply(
+            null,
+            input
+        );
+        expectedWeekday = config._useUTC
+            ? config._d.getUTCDay()
+            : config._d.getDay();
+
+        // Apply timezone offset from input. The actual utcOffset can be changed
+        // with parseZone.
+        if (config._tzm != null) {
+            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
+        }
 
-                        // clear _12h flag if hour is <= 12
-                        if (
-                            config._a[HOUR] <= 12 &&
-                            getParsingFlags(config).bigHour === true &&
-                            config._a[HOUR] > 0
-                        ) {
-                            getParsingFlags(config).bigHour = undefined;
-                        }
+        if (config._nextDay) {
+            config._a[HOUR] = 24;
+        }
 
-                        getParsingFlags(config).parsedDateParts = config._a.slice(0);
-                        getParsingFlags(config).meridiem = config._meridiem;
-                        // handle meridiem
-                        config._a[HOUR] = meridiemFixWrap(
-                            config._locale,
-                            config._a[HOUR],
-                            config._meridiem
-                        );
+        // check for mismatching day of week
+        if (
+            config._w &&
+            typeof config._w.d !== 'undefined' &&
+            config._w.d !== expectedWeekday
+        ) {
+            getParsingFlags(config).weekdayMismatch = true;
+        }
+    }
 
-                        // handle era
-                        era = getParsingFlags(config).era;
-                        if (era !== null) {
-                            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
-                        }
+    function dayOfYearFromWeekInfo(config) {
+        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
+
+        w = config._w;
+        if (w.GG != null || w.W != null || w.E != null) {
+            dow = 1;
+            doy = 4;
+
+            // TODO: We need to take the current isoWeekYear, but that depends on
+            // how we interpret now (local, utc, fixed offset). So create
+            // a now version of current config (take local/utc/offset flags, and
+            // create now).
+            weekYear = defaults(
+                w.GG,
+                config._a[YEAR],
+                weekOfYear(createLocal(), 1, 4).year
+            );
+            week = defaults(w.W, 1);
+            weekday = defaults(w.E, 1);
+            if (weekday < 1 || weekday > 7) {
+                weekdayOverflow = true;
+            }
+        } else {
+            dow = config._locale._week.dow;
+            doy = config._locale._week.doy;
 
-                        configFromArray(config);
-                        checkOverflow(config);
-                    }
+            curWeek = weekOfYear(createLocal(), dow, doy);
 
-                    function meridiemFixWrap(locale, hour, meridiem) {
-                        var isPm;
+            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
 
-                        if (meridiem == null) {
-                            // nothing to do
-                            return hour;
-                        }
-                        if (locale.meridiemHour != null) {
-                            return locale.meridiemHour(hour, meridiem);
-                        } else if (locale.isPM != null) {
-                            // Fallback
-                            isPm = locale.isPM(meridiem);
-                            if (isPm && hour < 12) {
-                                hour += 12;
-                            }
-                            if (!isPm && hour === 12) {
-                                hour = 0;
-                            }
-                            return hour;
-                        } else {
-                            // this is not supposed to happen
-                            return hour;
-                        }
-                    }
+            // Default to current week.
+            week = defaults(w.w, curWeek.week);
 
-                    // date from string and array of format strings
-                    function configFromStringAndArray(config) {
-                        var tempConfig,
-                            bestMoment,
-                            scoreToBeat,
-                            i,
-                            currentScore,
-                            validFormatFound,
-                            bestFormatIsValid = false;
-
-                        if (config._f.length === 0) {
-                            getParsingFlags(config).invalidFormat = true;
-                            config._d = new Date(NaN);
-                            return;
-                        }
+            if (w.d != null) {
+                // weekday -- low day numbers are considered next week
+                weekday = w.d;
+                if (weekday < 0 || weekday > 6) {
+                    weekdayOverflow = true;
+                }
+            } else if (w.e != null) {
+                // local weekday -- counting starts from beginning of week
+                weekday = w.e + dow;
+                if (w.e < 0 || w.e > 6) {
+                    weekdayOverflow = true;
+                }
+            } else {
+                // default to beginning of week
+                weekday = dow;
+            }
+        }
+        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
+            getParsingFlags(config)._overflowWeeks = true;
+        } else if (weekdayOverflow != null) {
+            getParsingFlags(config)._overflowWeekday = true;
+        } else {
+            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
+            config._a[YEAR] = temp.year;
+            config._dayOfYear = temp.dayOfYear;
+        }
+    }
 
-                        for (i = 0; i < config._f.length; i++) {
-                            currentScore = 0;
-                            validFormatFound = false;
-                            tempConfig = copyConfig({}, config);
-                            if (config._useUTC != null) {
-                                tempConfig._useUTC = config._useUTC;
-                            }
-                            tempConfig._f = config._f[i];
-                            configFromStringAndFormat(tempConfig);
+    // constant that refers to the ISO standard
+    hooks.ISO_8601 = function () {};
 
-                            if (isValid(tempConfig)) {
-                                validFormatFound = true;
-                            }
+    // constant that refers to the RFC 2822 form
+    hooks.RFC_2822 = function () {};
 
-                            // if there is any input that was not parsed add a penalty for that format
-                            currentScore += getParsingFlags(tempConfig).charsLeftOver;
-
-                            //or tokens
-                            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
-
-                            getParsingFlags(tempConfig).score = currentScore;
-
-                            if (!bestFormatIsValid) {
-                                if (
-                                    scoreToBeat == null ||
-                                    currentScore < scoreToBeat ||
-                                    validFormatFound
-                                ) {
-                                    scoreToBeat = currentScore;
-                                    bestMoment = tempConfig;
-                                    if (validFormatFound) {
-                                        bestFormatIsValid = true;
-                                    }
-                                }
-                            } else {
-                                if (currentScore < scoreToBeat) {
-                                    scoreToBeat = currentScore;
-                                    bestMoment = tempConfig;
-                                }
-                            }
-                        }
+    // date from string and format string
+    function configFromStringAndFormat(config) {
+        // TODO: Move this to another part of the creation flow to prevent circular deps
+        if (config._f === hooks.ISO_8601) {
+            configFromISO(config);
+            return;
+        }
+        if (config._f === hooks.RFC_2822) {
+            configFromRFC2822(config);
+            return;
+        }
+        config._a = [];
+        getParsingFlags(config).empty = true;
+
+        // This array is used to make a Date, either with `new Date` or `Date.UTC`
+        var string = '' + config._i,
+            i,
+            parsedInput,
+            tokens,
+            token,
+            skipped,
+            stringLength = string.length,
+            totalParsedInputLength = 0,
+            era;
+
+        tokens =
+            expandFormat(config._f, config._locale).match(formattingTokens) || [];
+
+        for (i = 0; i < tokens.length; i++) {
+            token = tokens[i];
+            parsedInput = (string.match(getParseRegexForToken(token, config)) ||
+                [])[0];
+            if (parsedInput) {
+                skipped = string.substr(0, string.indexOf(parsedInput));
+                if (skipped.length > 0) {
+                    getParsingFlags(config).unusedInput.push(skipped);
+                }
+                string = string.slice(
+                    string.indexOf(parsedInput) + parsedInput.length
+                );
+                totalParsedInputLength += parsedInput.length;
+            }
+            // don't parse if it's not a known token
+            if (formatTokenFunctions[token]) {
+                if (parsedInput) {
+                    getParsingFlags(config).empty = false;
+                } else {
+                    getParsingFlags(config).unusedTokens.push(token);
+                }
+                addTimeToArrayFromToken(token, parsedInput, config);
+            } else if (config._strict && !parsedInput) {
+                getParsingFlags(config).unusedTokens.push(token);
+            }
+        }
 
-                        extend(config, bestMoment || tempConfig);
-                    }
+        // add remaining unparsed input length to the string
+        getParsingFlags(config).charsLeftOver =
+            stringLength - totalParsedInputLength;
+        if (string.length > 0) {
+            getParsingFlags(config).unusedInput.push(string);
+        }
 
-                    function configFromObject(config) {
-                        if (config._d) {
-                            return;
-                        }
+        // clear _12h flag if hour is <= 12
+        if (
+            config._a[HOUR] <= 12 &&
+            getParsingFlags(config).bigHour === true &&
+            config._a[HOUR] > 0
+        ) {
+            getParsingFlags(config).bigHour = undefined;
+        }
 
-                        var i = normalizeObjectUnits(config._i),
-                            dayOrDate = i.day === undefined ? i.date : i.day;
-                        config._a = map(
-                            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
-                            function (obj) {
-                                return obj && parseInt(obj, 10);
-                            }
-                        );
+        getParsingFlags(config).parsedDateParts = config._a.slice(0);
+        getParsingFlags(config).meridiem = config._meridiem;
+        // handle meridiem
+        config._a[HOUR] = meridiemFixWrap(
+            config._locale,
+            config._a[HOUR],
+            config._meridiem
+        );
+
+        // handle era
+        era = getParsingFlags(config).era;
+        if (era !== null) {
+            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
+        }
 
-                        configFromArray(config);
-                    }
+        configFromArray(config);
+        checkOverflow(config);
+    }
 
-                    function createFromConfig(config) {
-                        var res = new Moment(checkOverflow(prepareConfig(config)));
-                        if (res._nextDay) {
-                            // Adding is smart enough around DST
-                            res.add(1, 'd');
-                            res._nextDay = undefined;
-                        }
+    function meridiemFixWrap(locale, hour, meridiem) {
+        var isPm;
 
-                        return res;
-                    }
+        if (meridiem == null) {
+            // nothing to do
+            return hour;
+        }
+        if (locale.meridiemHour != null) {
+            return locale.meridiemHour(hour, meridiem);
+        } else if (locale.isPM != null) {
+            // Fallback
+            isPm = locale.isPM(meridiem);
+            if (isPm && hour < 12) {
+                hour += 12;
+            }
+            if (!isPm && hour === 12) {
+                hour = 0;
+            }
+            return hour;
+        } else {
+            // this is not supposed to happen
+            return hour;
+        }
+    }
 
-                    function prepareConfig(config) {
-                        var input = config._i,
-                            format = config._f;
+    // date from string and array of format strings
+    function configFromStringAndArray(config) {
+        var tempConfig,
+            bestMoment,
+            scoreToBeat,
+            i,
+            currentScore,
+            validFormatFound,
+            bestFormatIsValid = false;
+
+        if (config._f.length === 0) {
+            getParsingFlags(config).invalidFormat = true;
+            config._d = new Date(NaN);
+            return;
+        }
 
-                        config._locale = config._locale || getLocale(config._l);
+        for (i = 0; i < config._f.length; i++) {
+            currentScore = 0;
+            validFormatFound = false;
+            tempConfig = copyConfig({}, config);
+            if (config._useUTC != null) {
+                tempConfig._useUTC = config._useUTC;
+            }
+            tempConfig._f = config._f[i];
+            configFromStringAndFormat(tempConfig);
 
-                        if (input === null || (format === undefined && input === '')) {
-                            return createInvalid({ nullInput: true });
-                        }
+            if (isValid(tempConfig)) {
+                validFormatFound = true;
+            }
 
-                        if (typeof input === 'string') {
-                            config._i = input = config._locale.preparse(input);
-                        }
+            // if there is any input that was not parsed add a penalty for that format
+            currentScore += getParsingFlags(tempConfig).charsLeftOver;
 
-                        if (isMoment(input)) {
-                            return new Moment(checkOverflow(input));
-                        } else if (isDate(input)) {
-                            config._d = input;
-                        } else if (isArray(format)) {
-                            configFromStringAndArray(config);
-                        } else if (format) {
-                            configFromStringAndFormat(config);
-                        } else {
-                            configFromInput(config);
-                        }
+            //or tokens
+            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
 
-                        if (!isValid(config)) {
-                            config._d = null;
-                        }
+            getParsingFlags(tempConfig).score = currentScore;
 
-                        return config;
+            if (!bestFormatIsValid) {
+                if (
+                    scoreToBeat == null ||
+                    currentScore < scoreToBeat ||
+                    validFormatFound
+                ) {
+                    scoreToBeat = currentScore;
+                    bestMoment = tempConfig;
+                    if (validFormatFound) {
+                        bestFormatIsValid = true;
                     }
+                }
+            } else {
+                if (currentScore < scoreToBeat) {
+                    scoreToBeat = currentScore;
+                    bestMoment = tempConfig;
+                }
+            }
+        }
 
-                    function configFromInput(config) {
-                        var input = config._i;
-                        if (isUndefined(input)) {
-                            config._d = new Date(hooks.now());
-                        } else if (isDate(input)) {
-                            config._d = new Date(input.valueOf());
-                        } else if (typeof input === 'string') {
-                            configFromString(config);
-                        } else if (isArray(input)) {
-                            config._a = map(input.slice(0), function (obj) {
-                                return parseInt(obj, 10);
-                            });
-                            configFromArray(config);
-                        } else if (isObject(input)) {
-                            configFromObject(config);
-                        } else if (isNumber(input)) {
-                            // from milliseconds
-                            config._d = new Date(input);
-                        } else {
-                            hooks.createFromInputFallback(config);
-                        }
-                    }
+        extend(config, bestMoment || tempConfig);
+    }
 
-                    function createLocalOrUTC(input, format, locale, strict, isUTC) {
-                        var c = {};
+    function configFromObject(config) {
+        if (config._d) {
+            return;
+        }
 
-                        if (format === true || format === false) {
-                            strict = format;
-                            format = undefined;
-                        }
+        var i = normalizeObjectUnits(config._i),
+            dayOrDate = i.day === undefined ? i.date : i.day;
+        config._a = map(
+            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
+            function (obj) {
+                return obj && parseInt(obj, 10);
+            }
+        );
 
-                        if (locale === true || locale === false) {
-                            strict = locale;
-                            locale = undefined;
-                        }
+        configFromArray(config);
+    }
 
-                        if (
-                            (isObject(input) && isObjectEmpty(input)) ||
-                            (isArray(input) && input.length === 0)
-                        ) {
-                            input = undefined;
-                        }
-                        // object construction must be done this way.
-                        // https://github.com/moment/moment/issues/1423
-                        c._isAMomentObject = true;
-                        c._useUTC = c._isUTC = isUTC;
-                        c._l = locale;
-                        c._i = input;
-                        c._f = format;
-                        c._strict = strict;
-
-                        return createFromConfig(c);
-                    }
+    function createFromConfig(config) {
+        var res = new Moment(checkOverflow(prepareConfig(config)));
+        if (res._nextDay) {
+            // Adding is smart enough around DST
+            res.add(1, 'd');
+            res._nextDay = undefined;
+        }
 
-                    function createLocal(input, format, locale, strict) {
-                        return createLocalOrUTC(input, format, locale, strict, false);
-                    }
+        return res;
+    }
 
-                    var prototypeMin = deprecate(
-                            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
-                            function () {
-                                var other = createLocal.apply(null, arguments);
-                                if (this.isValid() && other.isValid()) {
-                                    return other < this ? this : other;
-                                } else {
-                                    return createInvalid();
-                                }
-                            }
-                        ),
-                        prototypeMax = deprecate(
-                            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
-                            function () {
-                                var other = createLocal.apply(null, arguments);
-                                if (this.isValid() && other.isValid()) {
-                                    return other > this ? this : other;
-                                } else {
-                                    return createInvalid();
-                                }
-                            }
-                        );
+    function prepareConfig(config) {
+        var input = config._i,
+            format = config._f;
 
-                    // Pick a moment m from moments so that m[fn](other) is true for all
-                    // other. This relies on the function fn to be transitive.
-                    //
-                    // moments should either be an array of moment objects or an array, whose
-                    // first element is an array of moment objects.
-                    function pickBy(fn, moments) {
-                        var res, i;
-                        if (moments.length === 1 && isArray(moments[0])) {
-                            moments = moments[0];
-                        }
-                        if (!moments.length) {
-                            return createLocal();
-                        }
-                        res = moments[0];
-                        for (i = 1; i < moments.length; ++i) {
-                            if (!moments[i].isValid() || moments[i][fn](res)) {
-                                res = moments[i];
-                            }
-                        }
-                        return res;
-                    }
+        config._locale = config._locale || getLocale(config._l);
 
-                    // TODO: Use [].sort instead?
-                    function min() {
-                        var args = [].slice.call(arguments, 0);
+        if (input === null || (format === undefined && input === '')) {
+            return createInvalid({ nullInput: true });
+        }
 
-                        return pickBy('isBefore', args);
-                    }
+        if (typeof input === 'string') {
+            config._i = input = config._locale.preparse(input);
+        }
 
-                    function max() {
-                        var args = [].slice.call(arguments, 0);
+        if (isMoment(input)) {
+            return new Moment(checkOverflow(input));
+        } else if (isDate(input)) {
+            config._d = input;
+        } else if (isArray(format)) {
+            configFromStringAndArray(config);
+        } else if (format) {
+            configFromStringAndFormat(config);
+        } else {
+            configFromInput(config);
+        }
 
-                        return pickBy('isAfter', args);
-                    }
+        if (!isValid(config)) {
+            config._d = null;
+        }
 
-                    var now = function () {
-                        return Date.now ? Date.now() : +new Date();
-                    };
-
-                    var ordering = [
-                        'year',
-                        'quarter',
-                        'month',
-                        'week',
-                        'day',
-                        'hour',
-                        'minute',
-                        'second',
-                        'millisecond',
-                    ];
-
-                    function isDurationValid(m) {
-                        var key,
-                            unitHasDecimal = false,
-                            i;
-                        for (key in m) {
-                            if (
-                                hasOwnProp(m, key) &&
-                                !(
-                                    indexOf.call(ordering, key) !== -1 &&
-                                    (m[key] == null || !isNaN(m[key]))
-                                )
-                            ) {
-                                return false;
-                            }
-                        }
+        return config;
+    }
 
-                        for (i = 0; i < ordering.length; ++i) {
-                            if (m[ordering[i]]) {
-                                if (unitHasDecimal) {
-                                    return false; // only allow non-integers for smallest unit
-                                }
-                                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
-                                    unitHasDecimal = true;
-                                }
-                            }
-                        }
+    function configFromInput(config) {
+        var input = config._i;
+        if (isUndefined(input)) {
+            config._d = new Date(hooks.now());
+        } else if (isDate(input)) {
+            config._d = new Date(input.valueOf());
+        } else if (typeof input === 'string') {
+            configFromString(config);
+        } else if (isArray(input)) {
+            config._a = map(input.slice(0), function (obj) {
+                return parseInt(obj, 10);
+            });
+            configFromArray(config);
+        } else if (isObject(input)) {
+            configFromObject(config);
+        } else if (isNumber(input)) {
+            // from milliseconds
+            config._d = new Date(input);
+        } else {
+            hooks.createFromInputFallback(config);
+        }
+    }
 
-                        return true;
-                    }
+    function createLocalOrUTC(input, format, locale, strict, isUTC) {
+        var c = {};
 
-                    function isValid$1() {
-                        return this._isValid;
-                    }
+        if (format === true || format === false) {
+            strict = format;
+            format = undefined;
+        }
 
-                    function createInvalid$1() {
-                        return createDuration(NaN);
-                    }
+        if (locale === true || locale === false) {
+            strict = locale;
+            locale = undefined;
+        }
 
-                    function Duration(duration) {
-                        var normalizedInput = normalizeObjectUnits(duration),
-                            years = normalizedInput.year || 0,
-                            quarters = normalizedInput.quarter || 0,
-                            months = normalizedInput.month || 0,
-                            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
-                            days = normalizedInput.day || 0,
-                            hours = normalizedInput.hour || 0,
-                            minutes = normalizedInput.minute || 0,
-                            seconds = normalizedInput.second || 0,
-                            milliseconds = normalizedInput.millisecond || 0;
-
-                        this._isValid = isDurationValid(normalizedInput);
-
-                        // representation for dateAddRemove
-                        this._milliseconds =
-                            +milliseconds +
-                            seconds * 1e3 + // 1000
-                            minutes * 6e4 + // 1000 * 60
-                            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
-                        // Because of dateAddRemove treats 24 hours as different from a
-                        // day when working around DST, we need to store them separately
-                        this._days = +days + weeks * 7;
-                        // It is impossible to translate months into days without knowing
-                        // which months you are are talking about, so we have to store
-                        // it separately.
-                        this._months = +months + quarters * 3 + years * 12;
-
-                        this._data = {};
-
-                        this._locale = getLocale();
-
-                        this._bubble();
-                    }
+        if (
+            (isObject(input) && isObjectEmpty(input)) ||
+            (isArray(input) && input.length === 0)
+        ) {
+            input = undefined;
+        }
+        // object construction must be done this way.
+        // https://github.com/moment/moment/issues/1423
+        c._isAMomentObject = true;
+        c._useUTC = c._isUTC = isUTC;
+        c._l = locale;
+        c._i = input;
+        c._f = format;
+        c._strict = strict;
+
+        return createFromConfig(c);
+    }
 
-                    function isDuration(obj) {
-                        return obj instanceof Duration;
-                    }
+    function createLocal(input, format, locale, strict) {
+        return createLocalOrUTC(input, format, locale, strict, false);
+    }
 
-                    function absRound(number) {
-                        if (number < 0) {
-                            return Math.round(-1 * number) * -1;
-                        } else {
-                            return Math.round(number);
-                        }
-                    }
+    var prototypeMin = deprecate(
+            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
+            function () {
+                var other = createLocal.apply(null, arguments);
+                if (this.isValid() && other.isValid()) {
+                    return other < this ? this : other;
+                } else {
+                    return createInvalid();
+                }
+            }
+        ),
+        prototypeMax = deprecate(
+            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
+            function () {
+                var other = createLocal.apply(null, arguments);
+                if (this.isValid() && other.isValid()) {
+                    return other > this ? this : other;
+                } else {
+                    return createInvalid();
+                }
+            }
+        );
+
+    // Pick a moment m from moments so that m[fn](other) is true for all
+    // other. This relies on the function fn to be transitive.
+    //
+    // moments should either be an array of moment objects or an array, whose
+    // first element is an array of moment objects.
+    function pickBy(fn, moments) {
+        var res, i;
+        if (moments.length === 1 && isArray(moments[0])) {
+            moments = moments[0];
+        }
+        if (!moments.length) {
+            return createLocal();
+        }
+        res = moments[0];
+        for (i = 1; i < moments.length; ++i) {
+            if (!moments[i].isValid() || moments[i][fn](res)) {
+                res = moments[i];
+            }
+        }
+        return res;
+    }
 
-                    // compare two arrays, return the number of differences
-                    function compareArrays(array1, array2, dontConvert) {
-                        var len = Math.min(array1.length, array2.length),
-                            lengthDiff = Math.abs(array1.length - array2.length),
-                            diffs = 0,
-                            i;
-                        for (i = 0; i < len; i++) {
-                            if (
-                                (dontConvert && array1[i] !== array2[i]) ||
-                                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
-                            ) {
-                                diffs++;
-                            }
-                        }
-                        return diffs + lengthDiff;
-                    }
+    // TODO: Use [].sort instead?
+    function min() {
+        var args = [].slice.call(arguments, 0);
 
-                    // FORMATTING
+        return pickBy('isBefore', args);
+    }
 
-                    function offset(token, separator) {
-                        addFormatToken(token, 0, 0, function () {
-                            var offset = this.utcOffset(),
-                                sign = '+';
-                            if (offset < 0) {
-                                offset = -offset;
-                                sign = '-';
-                            }
-                            return (
-                                sign +
-                                zeroFill(~~(offset / 60), 2) +
-                                separator +
-                                zeroFill(~~offset % 60, 2)
-                            );
-                        });
-                    }
+    function max() {
+        var args = [].slice.call(arguments, 0);
 
-                    offset('Z', ':');
-                    offset('ZZ', '');
+        return pickBy('isAfter', args);
+    }
 
-                    // PARSING
+    var now = function () {
+        return Date.now ? Date.now() : +new Date();
+    };
+
+    var ordering = [
+        'year',
+        'quarter',
+        'month',
+        'week',
+        'day',
+        'hour',
+        'minute',
+        'second',
+        'millisecond',
+    ];
+
+    function isDurationValid(m) {
+        var key,
+            unitHasDecimal = false,
+            i;
+        for (key in m) {
+            if (
+                hasOwnProp(m, key) &&
+                !(
+                    indexOf.call(ordering, key) !== -1 &&
+                    (m[key] == null || !isNaN(m[key]))
+                )
+            ) {
+                return false;
+            }
+        }
 
-                    addRegexToken('Z', matchShortOffset);
-                    addRegexToken('ZZ', matchShortOffset);
-                    addParseToken(['Z', 'ZZ'], function (input, array, config) {
-                        config._useUTC = true;
-                        config._tzm = offsetFromString(matchShortOffset, input);
-                    });
+        for (i = 0; i < ordering.length; ++i) {
+            if (m[ordering[i]]) {
+                if (unitHasDecimal) {
+                    return false; // only allow non-integers for smallest unit
+                }
+                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
+                    unitHasDecimal = true;
+                }
+            }
+        }
 
-                    // HELPERS
+        return true;
+    }
 
-                    // timezone chunker
-                    // '+10:00' > ['10',  '00']
-                    // '-1530'  > ['-15', '30']
-                    var chunkOffset = /([\+\-]|\d\d)/gi;
+    function isValid$1() {
+        return this._isValid;
+    }
 
-                    function offsetFromString(matcher, string) {
-                        var matches = (string || '').match(matcher),
-                            chunk,
-                            parts,
-                            minutes;
+    function createInvalid$1() {
+        return createDuration(NaN);
+    }
 
-                        if (matches === null) {
-                            return null;
-                        }
+    function Duration(duration) {
+        var normalizedInput = normalizeObjectUnits(duration),
+            years = normalizedInput.year || 0,
+            quarters = normalizedInput.quarter || 0,
+            months = normalizedInput.month || 0,
+            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
+            days = normalizedInput.day || 0,
+            hours = normalizedInput.hour || 0,
+            minutes = normalizedInput.minute || 0,
+            seconds = normalizedInput.second || 0,
+            milliseconds = normalizedInput.millisecond || 0;
+
+        this._isValid = isDurationValid(normalizedInput);
+
+        // representation for dateAddRemove
+        this._milliseconds =
+            +milliseconds +
+            seconds * 1e3 + // 1000
+            minutes * 6e4 + // 1000 * 60
+            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
+        // Because of dateAddRemove treats 24 hours as different from a
+        // day when working around DST, we need to store them separately
+        this._days = +days + weeks * 7;
+        // It is impossible to translate months into days without knowing
+        // which months you are are talking about, so we have to store
+        // it separately.
+        this._months = +months + quarters * 3 + years * 12;
+
+        this._data = {};
+
+        this._locale = getLocale();
+
+        this._bubble();
+    }
 
-                        chunk = matches[matches.length - 1] || [];
-                        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
-                        minutes = +(parts[1] * 60) + toInt(parts[2]);
+    function isDuration(obj) {
+        return obj instanceof Duration;
+    }
 
-                        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
-                    }
+    function absRound(number) {
+        if (number < 0) {
+            return Math.round(-1 * number) * -1;
+        } else {
+            return Math.round(number);
+        }
+    }
 
-                    // Return a moment from input, that is local/utc/zone equivalent to model.
-                    function cloneWithOffset(input, model) {
-                        var res, diff;
-                        if (model._isUTC) {
-                            res = model.clone();
-                            diff =
-                                (isMoment(input) || isDate(input)
-                                    ? input.valueOf()
-                                    : createLocal(input).valueOf()) - res.valueOf();
-                            // Use low-level api, because this fn is low-level api.
-                            res._d.setTime(res._d.valueOf() + diff);
-                            hooks.updateOffset(res, false);
-                            return res;
-                        } else {
-                            return createLocal(input).local();
-                        }
-                    }
+    // compare two arrays, return the number of differences
+    function compareArrays(array1, array2, dontConvert) {
+        var len = Math.min(array1.length, array2.length),
+            lengthDiff = Math.abs(array1.length - array2.length),
+            diffs = 0,
+            i;
+        for (i = 0; i < len; i++) {
+            if (
+                (dontConvert && array1[i] !== array2[i]) ||
+                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
+            ) {
+                diffs++;
+            }
+        }
+        return diffs + lengthDiff;
+    }
 
-                    function getDateOffset(m) {
-                        // On Firefox.24 Date#getTimezoneOffset returns a floating point.
-                        // https://github.com/moment/moment/pull/1871
-                        return -Math.round(m._d.getTimezoneOffset());
-                    }
+    // FORMATTING
 
-                    // HOOKS
-
-                    // This function will be called whenever a moment is mutated.
-                    // It is intended to keep the offset in sync with the timezone.
-                    hooks.updateOffset = function () {};
-
-                    // MOMENTS
-
-                    // keepLocalTime = true means only change the timezone, without
-                    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
-                    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
-                    // +0200, so we adjust the time as needed, to be valid.
-                    //
-                    // Keeping the time actually adds/subtracts (one hour)
-                    // from the actual represented time. That is why we call updateOffset
-                    // a second time. In case it wants us to change the offset again
-                    // _changeInProgress == true case, then we have to adjust, because
-                    // there is no such time in the given timezone.
-                    function getSetOffset(input, keepLocalTime, keepMinutes) {
-                        var offset = this._offset || 0,
-                            localAdjust;
-                        if (!this.isValid()) {
-                            return input != null ? this : NaN;
-                        }
-                        if (input != null) {
-                            if (typeof input === 'string') {
-                                input = offsetFromString(matchShortOffset, input);
-                                if (input === null) {
-                                    return this;
-                                }
-                            } else if (Math.abs(input) < 16 && !keepMinutes) {
-                                input = input * 60;
-                            }
-                            if (!this._isUTC && keepLocalTime) {
-                                localAdjust = getDateOffset(this);
-                            }
-                            this._offset = input;
-                            this._isUTC = true;
-                            if (localAdjust != null) {
-                                this.add(localAdjust, 'm');
-                            }
-                            if (offset !== input) {
-                                if (!keepLocalTime || this._changeInProgress) {
-                                    addSubtract(
-                                        this,
-                                        createDuration(input - offset, 'm'),
-                                        1,
-                                        false
-                                    );
-                                } else if (!this._changeInProgress) {
-                                    this._changeInProgress = true;
-                                    hooks.updateOffset(this, true);
-                                    this._changeInProgress = null;
-                                }
-                            }
-                            return this;
-                        } else {
-                            return this._isUTC ? offset : getDateOffset(this);
-                        }
-                    }
+    function offset(token, separator) {
+        addFormatToken(token, 0, 0, function () {
+            var offset = this.utcOffset(),
+                sign = '+';
+            if (offset < 0) {
+                offset = -offset;
+                sign = '-';
+            }
+            return (
+                sign +
+                zeroFill(~~(offset / 60), 2) +
+                separator +
+                zeroFill(~~offset % 60, 2)
+            );
+        });
+    }
 
-                    function getSetZone(input, keepLocalTime) {
-                        if (input != null) {
-                            if (typeof input !== 'string') {
-                                input = -input;
-                            }
+    offset('Z', ':');
+    offset('ZZ', '');
 
-                            this.utcOffset(input, keepLocalTime);
+    // PARSING
 
-                            return this;
-                        } else {
-                            return -this.utcOffset();
-                        }
-                    }
+    addRegexToken('Z', matchShortOffset);
+    addRegexToken('ZZ', matchShortOffset);
+    addParseToken(['Z', 'ZZ'], function (input, array, config) {
+        config._useUTC = true;
+        config._tzm = offsetFromString(matchShortOffset, input);
+    });
 
-                    function setOffsetToUTC(keepLocalTime) {
-                        return this.utcOffset(0, keepLocalTime);
-                    }
+    // HELPERS
 
-                    function setOffsetToLocal(keepLocalTime) {
-                        if (this._isUTC) {
-                            this.utcOffset(0, keepLocalTime);
-                            this._isUTC = false;
+    // timezone chunker
+    // '+10:00' > ['10',  '00']
+    // '-1530'  > ['-15', '30']
+    var chunkOffset = /([\+\-]|\d\d)/gi;
 
-                            if (keepLocalTime) {
-                                this.subtract(getDateOffset(this), 'm');
-                            }
-                        }
-                        return this;
-                    }
+    function offsetFromString(matcher, string) {
+        var matches = (string || '').match(matcher),
+            chunk,
+            parts,
+            minutes;
 
-                    function setOffsetToParsedOffset() {
-                        if (this._tzm != null) {
-                            this.utcOffset(this._tzm, false, true);
-                        } else if (typeof this._i === 'string') {
-                            var tZone = offsetFromString(matchOffset, this._i);
-                            if (tZone != null) {
-                                this.utcOffset(tZone);
-                            } else {
-                                this.utcOffset(0, true);
-                            }
-                        }
-                        return this;
-                    }
+        if (matches === null) {
+            return null;
+        }
 
-                    function hasAlignedHourOffset(input) {
-                        if (!this.isValid()) {
-                            return false;
-                        }
-                        input = input ? createLocal(input).utcOffset() : 0;
+        chunk = matches[matches.length - 1] || [];
+        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
+        minutes = +(parts[1] * 60) + toInt(parts[2]);
 
-                        return (this.utcOffset() - input) % 60 === 0;
-                    }
+        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
+    }
 
-                    function isDaylightSavingTime() {
-                        return (
-                            this.utcOffset() > this.clone().month(0).utcOffset() ||
-                            this.utcOffset() > this.clone().month(5).utcOffset()
-                        );
-                    }
+    // Return a moment from input, that is local/utc/zone equivalent to model.
+    function cloneWithOffset(input, model) {
+        var res, diff;
+        if (model._isUTC) {
+            res = model.clone();
+            diff =
+                (isMoment(input) || isDate(input)
+                    ? input.valueOf()
+                    : createLocal(input).valueOf()) - res.valueOf();
+            // Use low-level api, because this fn is low-level api.
+            res._d.setTime(res._d.valueOf() + diff);
+            hooks.updateOffset(res, false);
+            return res;
+        } else {
+            return createLocal(input).local();
+        }
+    }
 
-                    function isDaylightSavingTimeShifted() {
-                        if (!isUndefined(this._isDSTShifted)) {
-                            return this._isDSTShifted;
-                        }
+    function getDateOffset(m) {
+        // On Firefox.24 Date#getTimezoneOffset returns a floating point.
+        // https://github.com/moment/moment/pull/1871
+        return -Math.round(m._d.getTimezoneOffset());
+    }
 
-                        var c = {},
-                            other;
+    // HOOKS
+
+    // This function will be called whenever a moment is mutated.
+    // It is intended to keep the offset in sync with the timezone.
+    hooks.updateOffset = function () {};
+
+    // MOMENTS
+
+    // keepLocalTime = true means only change the timezone, without
+    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
+    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
+    // +0200, so we adjust the time as needed, to be valid.
+    //
+    // Keeping the time actually adds/subtracts (one hour)
+    // from the actual represented time. That is why we call updateOffset
+    // a second time. In case it wants us to change the offset again
+    // _changeInProgress == true case, then we have to adjust, because
+    // there is no such time in the given timezone.
+    function getSetOffset(input, keepLocalTime, keepMinutes) {
+        var offset = this._offset || 0,
+            localAdjust;
+        if (!this.isValid()) {
+            return input != null ? this : NaN;
+        }
+        if (input != null) {
+            if (typeof input === 'string') {
+                input = offsetFromString(matchShortOffset, input);
+                if (input === null) {
+                    return this;
+                }
+            } else if (Math.abs(input) < 16 && !keepMinutes) {
+                input = input * 60;
+            }
+            if (!this._isUTC && keepLocalTime) {
+                localAdjust = getDateOffset(this);
+            }
+            this._offset = input;
+            this._isUTC = true;
+            if (localAdjust != null) {
+                this.add(localAdjust, 'm');
+            }
+            if (offset !== input) {
+                if (!keepLocalTime || this._changeInProgress) {
+                    addSubtract(
+                        this,
+                        createDuration(input - offset, 'm'),
+                        1,
+                        false
+                    );
+                } else if (!this._changeInProgress) {
+                    this._changeInProgress = true;
+                    hooks.updateOffset(this, true);
+                    this._changeInProgress = null;
+                }
+            }
+            return this;
+        } else {
+            return this._isUTC ? offset : getDateOffset(this);
+        }
+    }
 
-                        copyConfig(c, this);
-                        c = prepareConfig(c);
+    function getSetZone(input, keepLocalTime) {
+        if (input != null) {
+            if (typeof input !== 'string') {
+                input = -input;
+            }
 
-                        if (c._a) {
-                            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
-                            this._isDSTShifted =
-                                this.isValid() && compareArrays(c._a, other.toArray()) > 0;
-                        } else {
-                            this._isDSTShifted = false;
-                        }
+            this.utcOffset(input, keepLocalTime);
 
-                        return this._isDSTShifted;
-                    }
+            return this;
+        } else {
+            return -this.utcOffset();
+        }
+    }
 
-                    function isLocal() {
-                        return this.isValid() ? !this._isUTC : false;
-                    }
+    function setOffsetToUTC(keepLocalTime) {
+        return this.utcOffset(0, keepLocalTime);
+    }
 
-                    function isUtcOffset() {
-                        return this.isValid() ? this._isUTC : false;
-                    }
+    function setOffsetToLocal(keepLocalTime) {
+        if (this._isUTC) {
+            this.utcOffset(0, keepLocalTime);
+            this._isUTC = false;
 
-                    function isUtc() {
-                        return this.isValid() ? this._isUTC && this._offset === 0 : false;
-                    }
+            if (keepLocalTime) {
+                this.subtract(getDateOffset(this), 'm');
+            }
+        }
+        return this;
+    }
 
-                    // ASP.NET json date format regex
-                    var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
-                        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
-                        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
-                        // and further modified to allow for strings containing both week and day
-                        isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
-
-                    function createDuration(input, key) {
-                        var duration = input,
-                            // matching against regexp is expensive, do it on demand
-                            match = null,
-                            sign,
-                            ret,
-                            diffRes;
-
-                        if (isDuration(input)) {
-                            duration = {
-                                ms: input._milliseconds,
-                                d: input._days,
-                                M: input._months,
-                            };
-                        } else if (isNumber(input) || !isNaN(+input)) {
-                            duration = {};
-                            if (key) {
-                                duration[key] = +input;
-                            } else {
-                                duration.milliseconds = +input;
-                            }
-                        } else if ((match = aspNetRegex.exec(input))) {
-                            sign = match[1] === '-' ? -1 : 1;
-                            duration = {
-                                y: 0,
-                                d: toInt(match[DATE]) * sign,
-                                h: toInt(match[HOUR]) * sign,
-                                m: toInt(match[MINUTE]) * sign,
-                                s: toInt(match[SECOND]) * sign,
-                                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
-                            };
-                        } else if ((match = isoRegex.exec(input))) {
-                            sign = match[1] === '-' ? -1 : 1;
-                            duration = {
-                                y: parseIso(match[2], sign),
-                                M: parseIso(match[3], sign),
-                                w: parseIso(match[4], sign),
-                                d: parseIso(match[5], sign),
-                                h: parseIso(match[6], sign),
-                                m: parseIso(match[7], sign),
-                                s: parseIso(match[8], sign),
-                            };
-                        } else if (duration == null) {
-                            // checks for null or undefined
-                            duration = {};
-                        } else if (
-                            typeof duration === 'object' &&
-                            ('from' in duration || 'to' in duration)
-                        ) {
-                            diffRes = momentsDifference(
-                                createLocal(duration.from),
-                                createLocal(duration.to)
-                            );
-
-                            duration = {};
-                            duration.ms = diffRes.milliseconds;
-                            duration.M = diffRes.months;
-                        }
+    function setOffsetToParsedOffset() {
+        if (this._tzm != null) {
+            this.utcOffset(this._tzm, false, true);
+        } else if (typeof this._i === 'string') {
+            var tZone = offsetFromString(matchOffset, this._i);
+            if (tZone != null) {
+                this.utcOffset(tZone);
+            } else {
+                this.utcOffset(0, true);
+            }
+        }
+        return this;
+    }
 
-                        ret = new Duration(duration);
+    function hasAlignedHourOffset(input) {
+        if (!this.isValid()) {
+            return false;
+        }
+        input = input ? createLocal(input).utcOffset() : 0;
 
-                        if (isDuration(input) && hasOwnProp(input, '_locale')) {
-                            ret._locale = input._locale;
-                        }
+        return (this.utcOffset() - input) % 60 === 0;
+    }
 
-                        if (isDuration(input) && hasOwnProp(input, '_isValid')) {
-                            ret._isValid = input._isValid;
-                        }
+    function isDaylightSavingTime() {
+        return (
+            this.utcOffset() > this.clone().month(0).utcOffset() ||
+            this.utcOffset() > this.clone().month(5).utcOffset()
+        );
+    }
 
-                        return ret;
-                    }
+    function isDaylightSavingTimeShifted() {
+        if (!isUndefined(this._isDSTShifted)) {
+            return this._isDSTShifted;
+        }
 
-                    createDuration.fn = Duration.prototype;
-                    createDuration.invalid = createInvalid$1;
+        var c = {},
+            other;
 
-                    function parseIso(inp, sign) {
-                        // We'd normally use ~~inp for this, but unfortunately it also
-                        // converts floats to ints.
-                        // inp may be undefined, so careful calling replace on it.
-                        var res = inp && parseFloat(inp.replace(',', '.'));
-                        // apply sign while we're at it
-                        return (isNaN(res) ? 0 : res) * sign;
-                    }
+        copyConfig(c, this);
+        c = prepareConfig(c);
 
-                    function positiveMomentsDifference(base, other) {
-                        var res = {};
+        if (c._a) {
+            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
+            this._isDSTShifted =
+                this.isValid() && compareArrays(c._a, other.toArray()) > 0;
+        } else {
+            this._isDSTShifted = false;
+        }
 
-                        res.months =
-                            other.month() - base.month() + (other.year() - base.year()) * 12;
-                        if (base.clone().add(res.months, 'M').isAfter(other)) {
-                            --res.months;
-                        }
+        return this._isDSTShifted;
+    }
 
-                        res.milliseconds = +other - +base.clone().add(res.months, 'M');
+    function isLocal() {
+        return this.isValid() ? !this._isUTC : false;
+    }
 
-                        return res;
-                    }
+    function isUtcOffset() {
+        return this.isValid() ? this._isUTC : false;
+    }
 
-                    function momentsDifference(base, other) {
-                        var res;
-                        if (!(base.isValid() && other.isValid())) {
-                            return { milliseconds: 0, months: 0 };
-                        }
+    function isUtc() {
+        return this.isValid() ? this._isUTC && this._offset === 0 : false;
+    }
 
-                        other = cloneWithOffset(other, base);
-                        if (base.isBefore(other)) {
-                            res = positiveMomentsDifference(base, other);
-                        } else {
-                            res = positiveMomentsDifference(other, base);
-                            res.milliseconds = -res.milliseconds;
-                            res.months = -res.months;
-                        }
+    // ASP.NET json date format regex
+    var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
+        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
+        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
+        // and further modified to allow for strings containing both week and day
+        isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
+
+    function createDuration(input, key) {
+        var duration = input,
+            // matching against regexp is expensive, do it on demand
+            match = null,
+            sign,
+            ret,
+            diffRes;
+
+        if (isDuration(input)) {
+            duration = {
+                ms: input._milliseconds,
+                d: input._days,
+                M: input._months,
+            };
+        } else if (isNumber(input) || !isNaN(+input)) {
+            duration = {};
+            if (key) {
+                duration[key] = +input;
+            } else {
+                duration.milliseconds = +input;
+            }
+        } else if ((match = aspNetRegex.exec(input))) {
+            sign = match[1] === '-' ? -1 : 1;
+            duration = {
+                y: 0,
+                d: toInt(match[DATE]) * sign,
+                h: toInt(match[HOUR]) * sign,
+                m: toInt(match[MINUTE]) * sign,
+                s: toInt(match[SECOND]) * sign,
+                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
+            };
+        } else if ((match = isoRegex.exec(input))) {
+            sign = match[1] === '-' ? -1 : 1;
+            duration = {
+                y: parseIso(match[2], sign),
+                M: parseIso(match[3], sign),
+                w: parseIso(match[4], sign),
+                d: parseIso(match[5], sign),
+                h: parseIso(match[6], sign),
+                m: parseIso(match[7], sign),
+                s: parseIso(match[8], sign),
+            };
+        } else if (duration == null) {
+            // checks for null or undefined
+            duration = {};
+        } else if (
+            typeof duration === 'object' &&
+            ('from' in duration || 'to' in duration)
+        ) {
+            diffRes = momentsDifference(
+                createLocal(duration.from),
+                createLocal(duration.to)
+            );
 
-                        return res;
-                    }
+            duration = {};
+            duration.ms = diffRes.milliseconds;
+            duration.M = diffRes.months;
+        }
 
-                    // TODO: remove 'name' arg after deprecation is removed
-                    function createAdder(direction, name) {
-                        return function (val, period) {
-                            var dur, tmp;
-                            //invert the arguments, but complain about it
-                            if (period !== null && !isNaN(+period)) {
-                                deprecateSimple(
-                                    name,
-                                    'moment().' +
-                                    name +
-                                    '(period, number) is deprecated. Please use moment().' +
-                                    name +
-                                    '(number, period). ' +
-                                    'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
-                                );
-                                tmp = val;
-                                val = period;
-                                period = tmp;
-                            }
+        ret = new Duration(duration);
 
-                            dur = createDuration(val, period);
-                            addSubtract(this, dur, direction);
-                            return this;
-                        };
-                    }
+        if (isDuration(input) && hasOwnProp(input, '_locale')) {
+            ret._locale = input._locale;
+        }
 
-                    function addSubtract(mom, duration, isAdding, updateOffset) {
-                        var milliseconds = duration._milliseconds,
-                            days = absRound(duration._days),
-                            months = absRound(duration._months);
+        if (isDuration(input) && hasOwnProp(input, '_isValid')) {
+            ret._isValid = input._isValid;
+        }
 
-                        if (!mom.isValid()) {
-                            // No op
-                            return;
-                        }
+        return ret;
+    }
 
-                        updateOffset = updateOffset == null ? true : updateOffset;
+    createDuration.fn = Duration.prototype;
+    createDuration.invalid = createInvalid$1;
 
-                        if (months) {
-                            setMonth(mom, get(mom, 'Month') + months * isAdding);
-                        }
-                        if (days) {
-                            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
-                        }
-                        if (milliseconds) {
-                            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
-                        }
-                        if (updateOffset) {
-                            hooks.updateOffset(mom, days || months);
-                        }
-                    }
+    function parseIso(inp, sign) {
+        // We'd normally use ~~inp for this, but unfortunately it also
+        // converts floats to ints.
+        // inp may be undefined, so careful calling replace on it.
+        var res = inp && parseFloat(inp.replace(',', '.'));
+        // apply sign while we're at it
+        return (isNaN(res) ? 0 : res) * sign;
+    }
 
-                    var add = createAdder(1, 'add'),
-                        subtract = createAdder(-1, 'subtract');
+    function positiveMomentsDifference(base, other) {
+        var res = {};
 
-                    function isString(input) {
-                        return typeof input === 'string' || input instanceof String;
-                    }
+        res.months =
+            other.month() - base.month() + (other.year() - base.year()) * 12;
+        if (base.clone().add(res.months, 'M').isAfter(other)) {
+            --res.months;
+        }
 
-                    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
-                    function isMomentInput(input) {
-                        return (
-                            isMoment(input) ||
-                            isDate(input) ||
-                            isString(input) ||
-                            isNumber(input) ||
-                            isNumberOrStringArray(input) ||
-                            isMomentInputObject(input) ||
-                            input === null ||
-                            input === undefined
-                        );
-                    }
+        res.milliseconds = +other - +base.clone().add(res.months, 'M');
 
-                    function isMomentInputObject(input) {
-                        var objectTest = isObject(input) && !isObjectEmpty(input),
-                            propertyTest = false,
-                            properties = [
-                                'years',
-                                'year',
-                                'y',
-                                'months',
-                                'month',
-                                'M',
-                                'days',
-                                'day',
-                                'd',
-                                'dates',
-                                'date',
-                                'D',
-                                'hours',
-                                'hour',
-                                'h',
-                                'minutes',
-                                'minute',
-                                'm',
-                                'seconds',
-                                'second',
-                                's',
-                                'milliseconds',
-                                'millisecond',
-                                'ms',
-                            ],
-                            i,
-                            property;
-
-                        for (i = 0; i < properties.length; i += 1) {
-                            property = properties[i];
-                            propertyTest = propertyTest || hasOwnProp(input, property);
-                        }
+        return res;
+    }
 
-                        return objectTest && propertyTest;
-                    }
+    function momentsDifference(base, other) {
+        var res;
+        if (!(base.isValid() && other.isValid())) {
+            return { milliseconds: 0, months: 0 };
+        }
 
-                    function isNumberOrStringArray(input) {
-                        var arrayTest = isArray(input),
-                            dataTypeTest = false;
-                        if (arrayTest) {
-                            dataTypeTest =
-                                input.filter(function (item) {
-                                    return !isNumber(item) && isString(input);
-                                }).length === 0;
-                        }
-                        return arrayTest && dataTypeTest;
-                    }
+        other = cloneWithOffset(other, base);
+        if (base.isBefore(other)) {
+            res = positiveMomentsDifference(base, other);
+        } else {
+            res = positiveMomentsDifference(other, base);
+            res.milliseconds = -res.milliseconds;
+            res.months = -res.months;
+        }
 
-                    function isCalendarSpec(input) {
-                        var objectTest = isObject(input) && !isObjectEmpty(input),
-                            propertyTest = false,
-                            properties = [
-                                'sameDay',
-                                'nextDay',
-                                'lastDay',
-                                'nextWeek',
-                                'lastWeek',
-                                'sameElse',
-                            ],
-                            i,
-                            property;
-
-                        for (i = 0; i < properties.length; i += 1) {
-                            property = properties[i];
-                            propertyTest = propertyTest || hasOwnProp(input, property);
-                        }
+        return res;
+    }
 
-                        return objectTest && propertyTest;
-                    }
+    // TODO: remove 'name' arg after deprecation is removed
+    function createAdder(direction, name) {
+        return function (val, period) {
+            var dur, tmp;
+            //invert the arguments, but complain about it
+            if (period !== null && !isNaN(+period)) {
+                deprecateSimple(
+                    name,
+                    'moment().' +
+                        name +
+                        '(period, number) is deprecated. Please use moment().' +
+                        name +
+                        '(number, period). ' +
+                        'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
+                );
+                tmp = val;
+                val = period;
+                period = tmp;
+            }
 
-                    function getCalendarFormat(myMoment, now) {
-                        var diff = myMoment.diff(now, 'days', true);
-                        return diff < -6
-                            ? 'sameElse'
-                            : diff < -1
-                                ? 'lastWeek'
-                                : diff < 0
-                                    ? 'lastDay'
-                                    : diff < 1
-                                        ? 'sameDay'
-                                        : diff < 2
-                                            ? 'nextDay'
-                                            : diff < 7
-                                                ? 'nextWeek'
-                                                : 'sameElse';
-                    }
+            dur = createDuration(val, period);
+            addSubtract(this, dur, direction);
+            return this;
+        };
+    }
 
-                    function calendar$1(time, formats) {
-                        // Support for single parameter, formats only overload to the calendar function
-                        if (arguments.length === 1) {
-                            if (!arguments[0]) {
-                                time = undefined;
-                                formats = undefined;
-                            } else if (isMomentInput(arguments[0])) {
-                                time = arguments[0];
-                                formats = undefined;
-                            } else if (isCalendarSpec(arguments[0])) {
-                                formats = arguments[0];
-                                time = undefined;
-                            }
-                        }
-                        // We want to compare the start of today, vs this.
-                        // Getting start-of-today depends on whether we're local/utc/offset or not.
-                        var now = time || createLocal(),
-                            sod = cloneWithOffset(now, this).startOf('day'),
-                            format = hooks.calendarFormat(this, sod) || 'sameElse',
-                            output =
-                                formats &&
-                                (isFunction(formats[format])
-                                    ? formats[format].call(this, now)
-                                    : formats[format]);
-
-                        return this.format(
-                            output || this.localeData().calendar(format, this, createLocal(now))
-                        );
-                    }
+    function addSubtract(mom, duration, isAdding, updateOffset) {
+        var milliseconds = duration._milliseconds,
+            days = absRound(duration._days),
+            months = absRound(duration._months);
 
-                    function clone() {
-                        return new Moment(this);
-                    }
+        if (!mom.isValid()) {
+            // No op
+            return;
+        }
 
-                    function isAfter(input, units) {
-                        var localInput = isMoment(input) ? input : createLocal(input);
-                        if (!(this.isValid() && localInput.isValid())) {
-                            return false;
-                        }
-                        units = normalizeUnits(units) || 'millisecond';
-                        if (units === 'millisecond') {
-                            return this.valueOf() > localInput.valueOf();
-                        } else {
-                            return localInput.valueOf() < this.clone().startOf(units).valueOf();
-                        }
-                    }
+        updateOffset = updateOffset == null ? true : updateOffset;
 
-                    function isBefore(input, units) {
-                        var localInput = isMoment(input) ? input : createLocal(input);
-                        if (!(this.isValid() && localInput.isValid())) {
-                            return false;
-                        }
-                        units = normalizeUnits(units) || 'millisecond';
-                        if (units === 'millisecond') {
-                            return this.valueOf() < localInput.valueOf();
-                        } else {
-                            return this.clone().endOf(units).valueOf() < localInput.valueOf();
-                        }
-                    }
+        if (months) {
+            setMonth(mom, get(mom, 'Month') + months * isAdding);
+        }
+        if (days) {
+            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
+        }
+        if (milliseconds) {
+            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
+        }
+        if (updateOffset) {
+            hooks.updateOffset(mom, days || months);
+        }
+    }
 
-                    function isBetween(from, to, units, inclusivity) {
-                        var localFrom = isMoment(from) ? from : createLocal(from),
-                            localTo = isMoment(to) ? to : createLocal(to);
-                        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
-                            return false;
-                        }
-                        inclusivity = inclusivity || '()';
-                        return (
-                            (inclusivity[0] === '('
-                                ? this.isAfter(localFrom, units)
-                                : !this.isBefore(localFrom, units)) &&
-                            (inclusivity[1] === ')'
-                                ? this.isBefore(localTo, units)
-                                : !this.isAfter(localTo, units))
-                        );
-                    }
+    var add = createAdder(1, 'add'),
+        subtract = createAdder(-1, 'subtract');
 
-                    function isSame(input, units) {
-                        var localInput = isMoment(input) ? input : createLocal(input),
-                            inputMs;
-                        if (!(this.isValid() && localInput.isValid())) {
-                            return false;
-                        }
-                        units = normalizeUnits(units) || 'millisecond';
-                        if (units === 'millisecond') {
-                            return this.valueOf() === localInput.valueOf();
-                        } else {
-                            inputMs = localInput.valueOf();
-                            return (
-                                this.clone().startOf(units).valueOf() <= inputMs &&
-                                inputMs <= this.clone().endOf(units).valueOf()
-                            );
-                        }
-                    }
+    function isString(input) {
+        return typeof input === 'string' || input instanceof String;
+    }
 
-                    function isSameOrAfter(input, units) {
-                        return this.isSame(input, units) || this.isAfter(input, units);
-                    }
+    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
+    function isMomentInput(input) {
+        return (
+            isMoment(input) ||
+            isDate(input) ||
+            isString(input) ||
+            isNumber(input) ||
+            isNumberOrStringArray(input) ||
+            isMomentInputObject(input) ||
+            input === null ||
+            input === undefined
+        );
+    }
+
+    function isMomentInputObject(input) {
+        var objectTest = isObject(input) && !isObjectEmpty(input),
+            propertyTest = false,
+            properties = [
+                'years',
+                'year',
+                'y',
+                'months',
+                'month',
+                'M',
+                'days',
+                'day',
+                'd',
+                'dates',
+                'date',
+                'D',
+                'hours',
+                'hour',
+                'h',
+                'minutes',
+                'minute',
+                'm',
+                'seconds',
+                'second',
+                's',
+                'milliseconds',
+                'millisecond',
+                'ms',
+            ],
+            i,
+            property;
+
+        for (i = 0; i < properties.length; i += 1) {
+            property = properties[i];
+            propertyTest = propertyTest || hasOwnProp(input, property);
+        }
+
+        return objectTest && propertyTest;
+    }
+
+    function isNumberOrStringArray(input) {
+        var arrayTest = isArray(input),
+            dataTypeTest = false;
+        if (arrayTest) {
+            dataTypeTest =
+                input.filter(function (item) {
+                    return !isNumber(item) && isString(input);
+                }).length === 0;
+        }
+        return arrayTest && dataTypeTest;
+    }
 
-                    function isSameOrBefore(input, units) {
-                        return this.isSame(input, units) || this.isBefore(input, units);
-                    }
+    function isCalendarSpec(input) {
+        var objectTest = isObject(input) && !isObjectEmpty(input),
+            propertyTest = false,
+            properties = [
+                'sameDay',
+                'nextDay',
+                'lastDay',
+                'nextWeek',
+                'lastWeek',
+                'sameElse',
+            ],
+            i,
+            property;
+
+        for (i = 0; i < properties.length; i += 1) {
+            property = properties[i];
+            propertyTest = propertyTest || hasOwnProp(input, property);
+        }
 
-                    function diff(input, units, asFloat) {
-                        var that, zoneDelta, output;
+        return objectTest && propertyTest;
+    }
 
-                        if (!this.isValid()) {
-                            return NaN;
-                        }
+    function getCalendarFormat(myMoment, now) {
+        var diff = myMoment.diff(now, 'days', true);
+        return diff < -6
+            ? 'sameElse'
+            : diff < -1
+            ? 'lastWeek'
+            : diff < 0
+            ? 'lastDay'
+            : diff < 1
+            ? 'sameDay'
+            : diff < 2
+            ? 'nextDay'
+            : diff < 7
+            ? 'nextWeek'
+            : 'sameElse';
+    }
 
-                        that = cloneWithOffset(input, this);
+    function calendar$1(time, formats) {
+        // Support for single parameter, formats only overload to the calendar function
+        if (arguments.length === 1) {
+            if (!arguments[0]) {
+                time = undefined;
+                formats = undefined;
+            } else if (isMomentInput(arguments[0])) {
+                time = arguments[0];
+                formats = undefined;
+            } else if (isCalendarSpec(arguments[0])) {
+                formats = arguments[0];
+                time = undefined;
+            }
+        }
+        // We want to compare the start of today, vs this.
+        // Getting start-of-today depends on whether we're local/utc/offset or not.
+        var now = time || createLocal(),
+            sod = cloneWithOffset(now, this).startOf('day'),
+            format = hooks.calendarFormat(this, sod) || 'sameElse',
+            output =
+                formats &&
+                (isFunction(formats[format])
+                    ? formats[format].call(this, now)
+                    : formats[format]);
+
+        return this.format(
+            output || this.localeData().calendar(format, this, createLocal(now))
+        );
+    }
 
-                        if (!that.isValid()) {
-                            return NaN;
-                        }
+    function clone() {
+        return new Moment(this);
+    }
 
-                        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
-
-                        units = normalizeUnits(units);
-
-                        switch (units) {
-                            case 'year':
-                                output = monthDiff(this, that) / 12;
-                                break;
-                            case 'month':
-                                output = monthDiff(this, that);
-                                break;
-                            case 'quarter':
-                                output = monthDiff(this, that) / 3;
-                                break;
-                            case 'second':
-                                output = (this - that) / 1e3;
-                                break; // 1000
-                            case 'minute':
-                                output = (this - that) / 6e4;
-                                break; // 1000 * 60
-                            case 'hour':
-                                output = (this - that) / 36e5;
-                                break; // 1000 * 60 * 60
-                            case 'day':
-                                output = (this - that - zoneDelta) / 864e5;
-                                break; // 1000 * 60 * 60 * 24, negate dst
-                            case 'week':
-                                output = (this - that - zoneDelta) / 6048e5;
-                                break; // 1000 * 60 * 60 * 24 * 7, negate dst
-                            default:
-                                output = this - that;
-                        }
+    function isAfter(input, units) {
+        var localInput = isMoment(input) ? input : createLocal(input);
+        if (!(this.isValid() && localInput.isValid())) {
+            return false;
+        }
+        units = normalizeUnits(units) || 'millisecond';
+        if (units === 'millisecond') {
+            return this.valueOf() > localInput.valueOf();
+        } else {
+            return localInput.valueOf() < this.clone().startOf(units).valueOf();
+        }
+    }
 
-                        return asFloat ? output : absFloor(output);
-                    }
+    function isBefore(input, units) {
+        var localInput = isMoment(input) ? input : createLocal(input);
+        if (!(this.isValid() && localInput.isValid())) {
+            return false;
+        }
+        units = normalizeUnits(units) || 'millisecond';
+        if (units === 'millisecond') {
+            return this.valueOf() < localInput.valueOf();
+        } else {
+            return this.clone().endOf(units).valueOf() < localInput.valueOf();
+        }
+    }
 
-                    function monthDiff(a, b) {
-                        if (a.date() < b.date()) {
-                            // end-of-month calculations work correct when the start month has more
-                            // days than the end month.
-                            return -monthDiff(b, a);
-                        }
-                        // difference in months
-                        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
-                            // b is in (anchor - 1 month, anchor + 1 month)
-                            anchor = a.clone().add(wholeMonthDiff, 'months'),
-                            anchor2,
-                            adjust;
-
-                        if (b - anchor < 0) {
-                            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
-                            // linear across the month
-                            adjust = (b - anchor) / (anchor - anchor2);
-                        } else {
-                            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
-                            // linear across the month
-                            adjust = (b - anchor) / (anchor2 - anchor);
-                        }
+    function isBetween(from, to, units, inclusivity) {
+        var localFrom = isMoment(from) ? from : createLocal(from),
+            localTo = isMoment(to) ? to : createLocal(to);
+        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
+            return false;
+        }
+        inclusivity = inclusivity || '()';
+        return (
+            (inclusivity[0] === '('
+                ? this.isAfter(localFrom, units)
+                : !this.isBefore(localFrom, units)) &&
+            (inclusivity[1] === ')'
+                ? this.isBefore(localTo, units)
+                : !this.isAfter(localTo, units))
+        );
+    }
 
-                        //check for negative zero, return zero if negative zero
-                        return -(wholeMonthDiff + adjust) || 0;
-                    }
+    function isSame(input, units) {
+        var localInput = isMoment(input) ? input : createLocal(input),
+            inputMs;
+        if (!(this.isValid() && localInput.isValid())) {
+            return false;
+        }
+        units = normalizeUnits(units) || 'millisecond';
+        if (units === 'millisecond') {
+            return this.valueOf() === localInput.valueOf();
+        } else {
+            inputMs = localInput.valueOf();
+            return (
+                this.clone().startOf(units).valueOf() <= inputMs &&
+                inputMs <= this.clone().endOf(units).valueOf()
+            );
+        }
+    }
 
-                    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
-                    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
+    function isSameOrAfter(input, units) {
+        return this.isSame(input, units) || this.isAfter(input, units);
+    }
 
-                    function toString() {
-                        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
-                    }
+    function isSameOrBefore(input, units) {
+        return this.isSame(input, units) || this.isBefore(input, units);
+    }
 
-                    function toISOString(keepOffset) {
-                        if (!this.isValid()) {
-                            return null;
-                        }
-                        var utc = keepOffset !== true,
-                            m = utc ? this.clone().utc() : this;
-                        if (m.year() < 0 || m.year() > 9999) {
-                            return formatMoment(
-                                m,
-                                utc
-                                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
-                                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
-                            );
-                        }
-                        if (isFunction(Date.prototype.toISOString)) {
-                            // native implementation is ~50x faster, use it when we can
-                            if (utc) {
-                                return this.toDate().toISOString();
-                            } else {
-                                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
-                                    .toISOString()
-                                    .replace('Z', formatMoment(m, 'Z'));
-                            }
-                        }
-                        return formatMoment(
-                            m,
-                            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
-                        );
-                    }
+    function diff(input, units, asFloat) {
+        var that, zoneDelta, output;
 
-                    /**
-                     * Return a human readable representation of a moment that can
-                     * also be evaluated to get a new moment which is the same
-                     *
-                     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
-                     */
-                    function inspect() {
-                        if (!this.isValid()) {
-                            return 'moment.invalid(/* ' + this._i + ' */)';
-                        }
-                        var func = 'moment',
-                            zone = '',
-                            prefix,
-                            year,
-                            datetime,
-                            suffix;
-                        if (!this.isLocal()) {
-                            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
-                            zone = 'Z';
-                        }
-                        prefix = '[' + func + '("]';
-                        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
-                        datetime = '-MM-DD[T]HH:mm:ss.SSS';
-                        suffix = zone + '[")]';
+        if (!this.isValid()) {
+            return NaN;
+        }
 
-                        return this.format(prefix + year + datetime + suffix);
-                    }
+        that = cloneWithOffset(input, this);
 
-                    function format(inputString) {
-                        if (!inputString) {
-                            inputString = this.isUtc()
-                                ? hooks.defaultFormatUtc
-                                : hooks.defaultFormat;
-                        }
-                        var output = formatMoment(this, inputString);
-                        return this.localeData().postformat(output);
-                    }
+        if (!that.isValid()) {
+            return NaN;
+        }
 
-                    function from(time, withoutSuffix) {
-                        if (
-                            this.isValid() &&
-                            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
-                        ) {
-                            return createDuration({ to: this, from: time })
-                                .locale(this.locale())
-                                .humanize(!withoutSuffix);
-                        } else {
-                            return this.localeData().invalidDate();
-                        }
-                    }
+        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
+
+        units = normalizeUnits(units);
+
+        switch (units) {
+            case 'year':
+                output = monthDiff(this, that) / 12;
+                break;
+            case 'month':
+                output = monthDiff(this, that);
+                break;
+            case 'quarter':
+                output = monthDiff(this, that) / 3;
+                break;
+            case 'second':
+                output = (this - that) / 1e3;
+                break; // 1000
+            case 'minute':
+                output = (this - that) / 6e4;
+                break; // 1000 * 60
+            case 'hour':
+                output = (this - that) / 36e5;
+                break; // 1000 * 60 * 60
+            case 'day':
+                output = (this - that - zoneDelta) / 864e5;
+                break; // 1000 * 60 * 60 * 24, negate dst
+            case 'week':
+                output = (this - that - zoneDelta) / 6048e5;
+                break; // 1000 * 60 * 60 * 24 * 7, negate dst
+            default:
+                output = this - that;
+        }
 
-                    function fromNow(withoutSuffix) {
-                        return this.from(createLocal(), withoutSuffix);
-                    }
+        return asFloat ? output : absFloor(output);
+    }
 
-                    function to(time, withoutSuffix) {
-                        if (
-                            this.isValid() &&
-                            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
-                        ) {
-                            return createDuration({ from: this, to: time })
-                                .locale(this.locale())
-                                .humanize(!withoutSuffix);
-                        } else {
-                            return this.localeData().invalidDate();
-                        }
-                    }
+    function monthDiff(a, b) {
+        if (a.date() < b.date()) {
+            // end-of-month calculations work correct when the start month has more
+            // days than the end month.
+            return -monthDiff(b, a);
+        }
+        // difference in months
+        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
+            // b is in (anchor - 1 month, anchor + 1 month)
+            anchor = a.clone().add(wholeMonthDiff, 'months'),
+            anchor2,
+            adjust;
+
+        if (b - anchor < 0) {
+            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
+            // linear across the month
+            adjust = (b - anchor) / (anchor - anchor2);
+        } else {
+            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
+            // linear across the month
+            adjust = (b - anchor) / (anchor2 - anchor);
+        }
 
-                    function toNow(withoutSuffix) {
-                        return this.to(createLocal(), withoutSuffix);
-                    }
+        //check for negative zero, return zero if negative zero
+        return -(wholeMonthDiff + adjust) || 0;
+    }
 
-                    // If passed a locale key, it will set the locale for this
-                    // instance.  Otherwise, it will return the locale configuration
-                    // variables for this instance.
-                    function locale(key) {
-                        var newLocaleData;
-
-                        if (key === undefined) {
-                            return this._locale._abbr;
-                        } else {
-                            newLocaleData = getLocale(key);
-                            if (newLocaleData != null) {
-                                this._locale = newLocaleData;
-                            }
-                            return this;
-                        }
-                    }
+    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
+    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
 
-                    var lang = deprecate(
-                        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
-                        function (key) {
-                            if (key === undefined) {
-                                return this.localeData();
-                            } else {
-                                return this.locale(key);
-                            }
-                        }
-                    );
+    function toString() {
+        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
+    }
 
-                    function localeData() {
-                        return this._locale;
-                    }
+    function toISOString(keepOffset) {
+        if (!this.isValid()) {
+            return null;
+        }
+        var utc = keepOffset !== true,
+            m = utc ? this.clone().utc() : this;
+        if (m.year() < 0 || m.year() > 9999) {
+            return formatMoment(
+                m,
+                utc
+                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
+                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
+            );
+        }
+        if (isFunction(Date.prototype.toISOString)) {
+            // native implementation is ~50x faster, use it when we can
+            if (utc) {
+                return this.toDate().toISOString();
+            } else {
+                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
+                    .toISOString()
+                    .replace('Z', formatMoment(m, 'Z'));
+            }
+        }
+        return formatMoment(
+            m,
+            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
+        );
+    }
 
-                    var MS_PER_SECOND = 1000,
-                        MS_PER_MINUTE = 60 * MS_PER_SECOND,
-                        MS_PER_HOUR = 60 * MS_PER_MINUTE,
-                        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
+    /**
+     * Return a human readable representation of a moment that can
+     * also be evaluated to get a new moment which is the same
+     *
+     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
+     */
+    function inspect() {
+        if (!this.isValid()) {
+            return 'moment.invalid(/* ' + this._i + ' */)';
+        }
+        var func = 'moment',
+            zone = '',
+            prefix,
+            year,
+            datetime,
+            suffix;
+        if (!this.isLocal()) {
+            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
+            zone = 'Z';
+        }
+        prefix = '[' + func + '("]';
+        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
+        datetime = '-MM-DD[T]HH:mm:ss.SSS';
+        suffix = zone + '[")]';
 
-                    // actual modulo - handles negative numbers (for dates before 1970):
-                    function mod$1(dividend, divisor) {
-                        return ((dividend % divisor) + divisor) % divisor;
-                    }
+        return this.format(prefix + year + datetime + suffix);
+    }
 
-                    function localStartOfDate(y, m, d) {
-                        // the date constructor remaps years 0-99 to 1900-1999
-                        if (y < 100 && y >= 0) {
-                            // preserve leap years using a full 400 year cycle, then reset
-                            return new Date(y + 400, m, d) - MS_PER_400_YEARS;
-                        } else {
-                            return new Date(y, m, d).valueOf();
-                        }
-                    }
+    function format(inputString) {
+        if (!inputString) {
+            inputString = this.isUtc()
+                ? hooks.defaultFormatUtc
+                : hooks.defaultFormat;
+        }
+        var output = formatMoment(this, inputString);
+        return this.localeData().postformat(output);
+    }
 
-                    function utcStartOfDate(y, m, d) {
-                        // Date.UTC remaps years 0-99 to 1900-1999
-                        if (y < 100 && y >= 0) {
-                            // preserve leap years using a full 400 year cycle, then reset
-                            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
-                        } else {
-                            return Date.UTC(y, m, d);
-                        }
-                    }
+    function from(time, withoutSuffix) {
+        if (
+            this.isValid() &&
+            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
+        ) {
+            return createDuration({ to: this, from: time })
+                .locale(this.locale())
+                .humanize(!withoutSuffix);
+        } else {
+            return this.localeData().invalidDate();
+        }
+    }
 
-                    function startOf(units) {
-                        var time, startOfDate;
-                        units = normalizeUnits(units);
-                        if (units === undefined || units === 'millisecond' || !this.isValid()) {
-                            return this;
-                        }
+    function fromNow(withoutSuffix) {
+        return this.from(createLocal(), withoutSuffix);
+    }
 
-                        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
-
-                        switch (units) {
-                            case 'year':
-                                time = startOfDate(this.year(), 0, 1);
-                                break;
-                            case 'quarter':
-                                time = startOfDate(
-                                    this.year(),
-                                    this.month() - (this.month() % 3),
-                                    1
-                                );
-                                break;
-                            case 'month':
-                                time = startOfDate(this.year(), this.month(), 1);
-                                break;
-                            case 'week':
-                                time = startOfDate(
-                                    this.year(),
-                                    this.month(),
-                                    this.date() - this.weekday()
-                                );
-                                break;
-                            case 'isoWeek':
-                                time = startOfDate(
-                                    this.year(),
-                                    this.month(),
-                                    this.date() - (this.isoWeekday() - 1)
-                                );
-                                break;
-                            case 'day':
-                            case 'date':
-                                time = startOfDate(this.year(), this.month(), this.date());
-                                break;
-                            case 'hour':
-                                time = this._d.valueOf();
-                                time -= mod$1(
-                                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
-                                    MS_PER_HOUR
-                                );
-                                break;
-                            case 'minute':
-                                time = this._d.valueOf();
-                                time -= mod$1(time, MS_PER_MINUTE);
-                                break;
-                            case 'second':
-                                time = this._d.valueOf();
-                                time -= mod$1(time, MS_PER_SECOND);
-                                break;
-                        }
+    function to(time, withoutSuffix) {
+        if (
+            this.isValid() &&
+            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
+        ) {
+            return createDuration({ from: this, to: time })
+                .locale(this.locale())
+                .humanize(!withoutSuffix);
+        } else {
+            return this.localeData().invalidDate();
+        }
+    }
 
-                        this._d.setTime(time);
-                        hooks.updateOffset(this, true);
-                        return this;
-                    }
+    function toNow(withoutSuffix) {
+        return this.to(createLocal(), withoutSuffix);
+    }
 
-                    function endOf(units) {
-                        var time, startOfDate;
-                        units = normalizeUnits(units);
-                        if (units === undefined || units === 'millisecond' || !this.isValid()) {
-                            return this;
-                        }
+    // If passed a locale key, it will set the locale for this
+    // instance.  Otherwise, it will return the locale configuration
+    // variables for this instance.
+    function locale(key) {
+        var newLocaleData;
+
+        if (key === undefined) {
+            return this._locale._abbr;
+        } else {
+            newLocaleData = getLocale(key);
+            if (newLocaleData != null) {
+                this._locale = newLocaleData;
+            }
+            return this;
+        }
+    }
 
-                        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
-
-                        switch (units) {
-                            case 'year':
-                                time = startOfDate(this.year() + 1, 0, 1) - 1;
-                                break;
-                            case 'quarter':
-                                time =
-                                    startOfDate(
-                                        this.year(),
-                                        this.month() - (this.month() % 3) + 3,
-                                        1
-                                    ) - 1;
-                                break;
-                            case 'month':
-                                time = startOfDate(this.year(), this.month() + 1, 1) - 1;
-                                break;
-                            case 'week':
-                                time =
-                                    startOfDate(
-                                        this.year(),
-                                        this.month(),
-                                        this.date() - this.weekday() + 7
-                                    ) - 1;
-                                break;
-                            case 'isoWeek':
-                                time =
-                                    startOfDate(
-                                        this.year(),
-                                        this.month(),
-                                        this.date() - (this.isoWeekday() - 1) + 7
-                                    ) - 1;
-                                break;
-                            case 'day':
-                            case 'date':
-                                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
-                                break;
-                            case 'hour':
-                                time = this._d.valueOf();
-                                time +=
-                                    MS_PER_HOUR -
-                                    mod$1(
-                                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
-                                        MS_PER_HOUR
-                                    ) -
-                                    1;
-                                break;
-                            case 'minute':
-                                time = this._d.valueOf();
-                                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
-                                break;
-                            case 'second':
-                                time = this._d.valueOf();
-                                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
-                                break;
-                        }
+    var lang = deprecate(
+        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
+        function (key) {
+            if (key === undefined) {
+                return this.localeData();
+            } else {
+                return this.locale(key);
+            }
+        }
+    );
 
-                        this._d.setTime(time);
-                        hooks.updateOffset(this, true);
-                        return this;
-                    }
+    function localeData() {
+        return this._locale;
+    }
 
-                    function valueOf() {
-                        return this._d.valueOf() - (this._offset || 0) * 60000;
-                    }
+    var MS_PER_SECOND = 1000,
+        MS_PER_MINUTE = 60 * MS_PER_SECOND,
+        MS_PER_HOUR = 60 * MS_PER_MINUTE,
+        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
 
-                    function unix() {
-                        return Math.floor(this.valueOf() / 1000);
-                    }
+    // actual modulo - handles negative numbers (for dates before 1970):
+    function mod$1(dividend, divisor) {
+        return ((dividend % divisor) + divisor) % divisor;
+    }
 
-                    function toDate() {
-                        return new Date(this.valueOf());
-                    }
+    function localStartOfDate(y, m, d) {
+        // the date constructor remaps years 0-99 to 1900-1999
+        if (y < 100 && y >= 0) {
+            // preserve leap years using a full 400 year cycle, then reset
+            return new Date(y + 400, m, d) - MS_PER_400_YEARS;
+        } else {
+            return new Date(y, m, d).valueOf();
+        }
+    }
 
-                    function toArray() {
-                        var m = this;
-                        return [
-                            m.year(),
-                            m.month(),
-                            m.date(),
-                            m.hour(),
-                            m.minute(),
-                            m.second(),
-                            m.millisecond(),
-                        ];
-                    }
+    function utcStartOfDate(y, m, d) {
+        // Date.UTC remaps years 0-99 to 1900-1999
+        if (y < 100 && y >= 0) {
+            // preserve leap years using a full 400 year cycle, then reset
+            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
+        } else {
+            return Date.UTC(y, m, d);
+        }
+    }
 
-                    function toObject() {
-                        var m = this;
-                        return {
-                            years: m.year(),
-                            months: m.month(),
-                            date: m.date(),
-                            hours: m.hours(),
-                            minutes: m.minutes(),
-                            seconds: m.seconds(),
-                            milliseconds: m.milliseconds(),
-                        };
-                    }
+    function startOf(units) {
+        var time, startOfDate;
+        units = normalizeUnits(units);
+        if (units === undefined || units === 'millisecond' || !this.isValid()) {
+            return this;
+        }
 
-                    function toJSON() {
-                        // new Date(NaN).toJSON() === null
-                        return this.isValid() ? this.toISOString() : null;
-                    }
+        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
+
+        switch (units) {
+            case 'year':
+                time = startOfDate(this.year(), 0, 1);
+                break;
+            case 'quarter':
+                time = startOfDate(
+                    this.year(),
+                    this.month() - (this.month() % 3),
+                    1
+                );
+                break;
+            case 'month':
+                time = startOfDate(this.year(), this.month(), 1);
+                break;
+            case 'week':
+                time = startOfDate(
+                    this.year(),
+                    this.month(),
+                    this.date() - this.weekday()
+                );
+                break;
+            case 'isoWeek':
+                time = startOfDate(
+                    this.year(),
+                    this.month(),
+                    this.date() - (this.isoWeekday() - 1)
+                );
+                break;
+            case 'day':
+            case 'date':
+                time = startOfDate(this.year(), this.month(), this.date());
+                break;
+            case 'hour':
+                time = this._d.valueOf();
+                time -= mod$1(
+                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
+                    MS_PER_HOUR
+                );
+                break;
+            case 'minute':
+                time = this._d.valueOf();
+                time -= mod$1(time, MS_PER_MINUTE);
+                break;
+            case 'second':
+                time = this._d.valueOf();
+                time -= mod$1(time, MS_PER_SECOND);
+                break;
+        }
 
-                    function isValid$2() {
-                        return isValid(this);
-                    }
+        this._d.setTime(time);
+        hooks.updateOffset(this, true);
+        return this;
+    }
 
-                    function parsingFlags() {
-                        return extend({}, getParsingFlags(this));
-                    }
+    function endOf(units) {
+        var time, startOfDate;
+        units = normalizeUnits(units);
+        if (units === undefined || units === 'millisecond' || !this.isValid()) {
+            return this;
+        }
 
-                    function invalidAt() {
-                        return getParsingFlags(this).overflow;
-                    }
+        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
+
+        switch (units) {
+            case 'year':
+                time = startOfDate(this.year() + 1, 0, 1) - 1;
+                break;
+            case 'quarter':
+                time =
+                    startOfDate(
+                        this.year(),
+                        this.month() - (this.month() % 3) + 3,
+                        1
+                    ) - 1;
+                break;
+            case 'month':
+                time = startOfDate(this.year(), this.month() + 1, 1) - 1;
+                break;
+            case 'week':
+                time =
+                    startOfDate(
+                        this.year(),
+                        this.month(),
+                        this.date() - this.weekday() + 7
+                    ) - 1;
+                break;
+            case 'isoWeek':
+                time =
+                    startOfDate(
+                        this.year(),
+                        this.month(),
+                        this.date() - (this.isoWeekday() - 1) + 7
+                    ) - 1;
+                break;
+            case 'day':
+            case 'date':
+                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
+                break;
+            case 'hour':
+                time = this._d.valueOf();
+                time +=
+                    MS_PER_HOUR -
+                    mod$1(
+                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
+                        MS_PER_HOUR
+                    ) -
+                    1;
+                break;
+            case 'minute':
+                time = this._d.valueOf();
+                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
+                break;
+            case 'second':
+                time = this._d.valueOf();
+                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
+                break;
+        }
 
-                    function creationData() {
-                        return {
-                            input: this._i,
-                            format: this._f,
-                            locale: this._locale,
-                            isUTC: this._isUTC,
-                            strict: this._strict,
-                        };
-                    }
+        this._d.setTime(time);
+        hooks.updateOffset(this, true);
+        return this;
+    }
 
-                    addFormatToken('N', 0, 0, 'eraAbbr');
-                    addFormatToken('NN', 0, 0, 'eraAbbr');
-                    addFormatToken('NNN', 0, 0, 'eraAbbr');
-                    addFormatToken('NNNN', 0, 0, 'eraName');
-                    addFormatToken('NNNNN', 0, 0, 'eraNarrow');
-
-                    addFormatToken('y', ['y', 1], 'yo', 'eraYear');
-                    addFormatToken('y', ['yy', 2], 0, 'eraYear');
-                    addFormatToken('y', ['yyy', 3], 0, 'eraYear');
-                    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
-
-                    addRegexToken('N', matchEraAbbr);
-                    addRegexToken('NN', matchEraAbbr);
-                    addRegexToken('NNN', matchEraAbbr);
-                    addRegexToken('NNNN', matchEraName);
-                    addRegexToken('NNNNN', matchEraNarrow);
-
-                    addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
-                        input,
-                        array,
-                        config,
-                        token
-                    ) {
-                        var era = config._locale.erasParse(input, token, config._strict);
-                        if (era) {
-                            getParsingFlags(config).era = era;
-                        } else {
-                            getParsingFlags(config).invalidEra = input;
-                        }
-                    });
-
-                    addRegexToken('y', matchUnsigned);
-                    addRegexToken('yy', matchUnsigned);
-                    addRegexToken('yyy', matchUnsigned);
-                    addRegexToken('yyyy', matchUnsigned);
-                    addRegexToken('yo', matchEraYearOrdinal);
-
-                    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
-                    addParseToken(['yo'], function (input, array, config, token) {
-                        var match;
-                        if (config._locale._eraYearOrdinalRegex) {
-                            match = input.match(config._locale._eraYearOrdinalRegex);
-                        }
+    function valueOf() {
+        return this._d.valueOf() - (this._offset || 0) * 60000;
+    }
 
-                        if (config._locale.eraYearOrdinalParse) {
-                            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
-                        } else {
-                            array[YEAR] = parseInt(input, 10);
-                        }
-                    });
-
-                    function localeEras(m, format) {
-                        var i,
-                            l,
-                            date,
-                            eras = this._eras || getLocale('en')._eras;
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            switch (typeof eras[i].since) {
-                                case 'string':
-                                    // truncate time
-                                    date = hooks(eras[i].since).startOf('day');
-                                    eras[i].since = date.valueOf();
-                                    break;
-                            }
+    function unix() {
+        return Math.floor(this.valueOf() / 1000);
+    }
 
-                            switch (typeof eras[i].until) {
-                                case 'undefined':
-                                    eras[i].until = +Infinity;
-                                    break;
-                                case 'string':
-                                    // truncate time
-                                    date = hooks(eras[i].until).startOf('day').valueOf();
-                                    eras[i].until = date.valueOf();
-                                    break;
-                            }
-                        }
-                        return eras;
-                    }
+    function toDate() {
+        return new Date(this.valueOf());
+    }
 
-                    function localeErasParse(eraName, format, strict) {
-                        var i,
-                            l,
-                            eras = this.eras(),
-                            name,
-                            abbr,
-                            narrow;
-                        eraName = eraName.toUpperCase();
-
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            name = eras[i].name.toUpperCase();
-                            abbr = eras[i].abbr.toUpperCase();
-                            narrow = eras[i].narrow.toUpperCase();
-
-                            if (strict) {
-                                switch (format) {
-                                    case 'N':
-                                    case 'NN':
-                                    case 'NNN':
-                                        if (abbr === eraName) {
-                                            return eras[i];
-                                        }
-                                        break;
-
-                                    case 'NNNN':
-                                        if (name === eraName) {
-                                            return eras[i];
-                                        }
-                                        break;
-
-                                    case 'NNNNN':
-                                        if (narrow === eraName) {
-                                            return eras[i];
-                                        }
-                                        break;
-                                }
-                            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
-                                return eras[i];
-                            }
-                        }
-                    }
+    function toArray() {
+        var m = this;
+        return [
+            m.year(),
+            m.month(),
+            m.date(),
+            m.hour(),
+            m.minute(),
+            m.second(),
+            m.millisecond(),
+        ];
+    }
 
-                    function localeErasConvertYear(era, year) {
-                        var dir = era.since <= era.until ? +1 : -1;
-                        if (year === undefined) {
-                            return hooks(era.since).year();
-                        } else {
-                            return hooks(era.since).year() + (year - era.offset) * dir;
-                        }
-                    }
+    function toObject() {
+        var m = this;
+        return {
+            years: m.year(),
+            months: m.month(),
+            date: m.date(),
+            hours: m.hours(),
+            minutes: m.minutes(),
+            seconds: m.seconds(),
+            milliseconds: m.milliseconds(),
+        };
+    }
 
-                    function getEraName() {
-                        var i,
-                            l,
-                            val,
-                            eras = this.localeData().eras();
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            // truncate time
-                            val = this.clone().startOf('day').valueOf();
-
-                            if (eras[i].since <= val && val <= eras[i].until) {
-                                return eras[i].name;
-                            }
-                            if (eras[i].until <= val && val <= eras[i].since) {
-                                return eras[i].name;
-                            }
-                        }
+    function toJSON() {
+        // new Date(NaN).toJSON() === null
+        return this.isValid() ? this.toISOString() : null;
+    }
 
-                        return '';
-                    }
+    function isValid$2() {
+        return isValid(this);
+    }
 
-                    function getEraNarrow() {
-                        var i,
-                            l,
-                            val,
-                            eras = this.localeData().eras();
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            // truncate time
-                            val = this.clone().startOf('day').valueOf();
-
-                            if (eras[i].since <= val && val <= eras[i].until) {
-                                return eras[i].narrow;
-                            }
-                            if (eras[i].until <= val && val <= eras[i].since) {
-                                return eras[i].narrow;
-                            }
-                        }
+    function parsingFlags() {
+        return extend({}, getParsingFlags(this));
+    }
 
-                        return '';
-                    }
+    function invalidAt() {
+        return getParsingFlags(this).overflow;
+    }
 
-                    function getEraAbbr() {
-                        var i,
-                            l,
-                            val,
-                            eras = this.localeData().eras();
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            // truncate time
-                            val = this.clone().startOf('day').valueOf();
-
-                            if (eras[i].since <= val && val <= eras[i].until) {
-                                return eras[i].abbr;
-                            }
-                            if (eras[i].until <= val && val <= eras[i].since) {
-                                return eras[i].abbr;
-                            }
-                        }
+    function creationData() {
+        return {
+            input: this._i,
+            format: this._f,
+            locale: this._locale,
+            isUTC: this._isUTC,
+            strict: this._strict,
+        };
+    }
 
-                        return '';
-                    }
+    addFormatToken('N', 0, 0, 'eraAbbr');
+    addFormatToken('NN', 0, 0, 'eraAbbr');
+    addFormatToken('NNN', 0, 0, 'eraAbbr');
+    addFormatToken('NNNN', 0, 0, 'eraName');
+    addFormatToken('NNNNN', 0, 0, 'eraNarrow');
+
+    addFormatToken('y', ['y', 1], 'yo', 'eraYear');
+    addFormatToken('y', ['yy', 2], 0, 'eraYear');
+    addFormatToken('y', ['yyy', 3], 0, 'eraYear');
+    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
+
+    addRegexToken('N', matchEraAbbr);
+    addRegexToken('NN', matchEraAbbr);
+    addRegexToken('NNN', matchEraAbbr);
+    addRegexToken('NNNN', matchEraName);
+    addRegexToken('NNNNN', matchEraNarrow);
+
+    addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
+        input,
+        array,
+        config,
+        token
+    ) {
+        var era = config._locale.erasParse(input, token, config._strict);
+        if (era) {
+            getParsingFlags(config).era = era;
+        } else {
+            getParsingFlags(config).invalidEra = input;
+        }
+    });
+
+    addRegexToken('y', matchUnsigned);
+    addRegexToken('yy', matchUnsigned);
+    addRegexToken('yyy', matchUnsigned);
+    addRegexToken('yyyy', matchUnsigned);
+    addRegexToken('yo', matchEraYearOrdinal);
+
+    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
+    addParseToken(['yo'], function (input, array, config, token) {
+        var match;
+        if (config._locale._eraYearOrdinalRegex) {
+            match = input.match(config._locale._eraYearOrdinalRegex);
+        }
 
-                    function getEraYear() {
-                        var i,
-                            l,
-                            dir,
-                            val,
-                            eras = this.localeData().eras();
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            dir = eras[i].since <= eras[i].until ? +1 : -1;
-
-                            // truncate time
-                            val = this.clone().startOf('day').valueOf();
-
-                            if (
-                                (eras[i].since <= val && val <= eras[i].until) ||
-                                (eras[i].until <= val && val <= eras[i].since)
-                            ) {
-                                return (
-                                    (this.year() - hooks(eras[i].since).year()) * dir +
-                                    eras[i].offset
-                                );
-                            }
-                        }
+        if (config._locale.eraYearOrdinalParse) {
+            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
+        } else {
+            array[YEAR] = parseInt(input, 10);
+        }
+    });
+
+    function localeEras(m, format) {
+        var i,
+            l,
+            date,
+            eras = this._eras || getLocale('en')._eras;
+        for (i = 0, l = eras.length; i < l; ++i) {
+            switch (typeof eras[i].since) {
+                case 'string':
+                    // truncate time
+                    date = hooks(eras[i].since).startOf('day');
+                    eras[i].since = date.valueOf();
+                    break;
+            }
 
-                        return this.year();
-                    }
+            switch (typeof eras[i].until) {
+                case 'undefined':
+                    eras[i].until = +Infinity;
+                    break;
+                case 'string':
+                    // truncate time
+                    date = hooks(eras[i].until).startOf('day').valueOf();
+                    eras[i].until = date.valueOf();
+                    break;
+            }
+        }
+        return eras;
+    }
 
-                    function erasNameRegex(isStrict) {
-                        if (!hasOwnProp(this, '_erasNameRegex')) {
-                            computeErasParse.call(this);
+    function localeErasParse(eraName, format, strict) {
+        var i,
+            l,
+            eras = this.eras(),
+            name,
+            abbr,
+            narrow;
+        eraName = eraName.toUpperCase();
+
+        for (i = 0, l = eras.length; i < l; ++i) {
+            name = eras[i].name.toUpperCase();
+            abbr = eras[i].abbr.toUpperCase();
+            narrow = eras[i].narrow.toUpperCase();
+
+            if (strict) {
+                switch (format) {
+                    case 'N':
+                    case 'NN':
+                    case 'NNN':
+                        if (abbr === eraName) {
+                            return eras[i];
                         }
-                        return isStrict ? this._erasNameRegex : this._erasRegex;
-                    }
+                        break;
 
-                    function erasAbbrRegex(isStrict) {
-                        if (!hasOwnProp(this, '_erasAbbrRegex')) {
-                            computeErasParse.call(this);
+                    case 'NNNN':
+                        if (name === eraName) {
+                            return eras[i];
                         }
-                        return isStrict ? this._erasAbbrRegex : this._erasRegex;
-                    }
+                        break;
 
-                    function erasNarrowRegex(isStrict) {
-                        if (!hasOwnProp(this, '_erasNarrowRegex')) {
-                            computeErasParse.call(this);
+                    case 'NNNNN':
+                        if (narrow === eraName) {
+                            return eras[i];
                         }
-                        return isStrict ? this._erasNarrowRegex : this._erasRegex;
-                    }
+                        break;
+                }
+            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
+                return eras[i];
+            }
+        }
+    }
 
-                    function matchEraAbbr(isStrict, locale) {
-                        return locale.erasAbbrRegex(isStrict);
-                    }
+    function localeErasConvertYear(era, year) {
+        var dir = era.since <= era.until ? +1 : -1;
+        if (year === undefined) {
+            return hooks(era.since).year();
+        } else {
+            return hooks(era.since).year() + (year - era.offset) * dir;
+        }
+    }
 
-                    function matchEraName(isStrict, locale) {
-                        return locale.erasNameRegex(isStrict);
-                    }
+    function getEraName() {
+        var i,
+            l,
+            val,
+            eras = this.localeData().eras();
+        for (i = 0, l = eras.length; i < l; ++i) {
+            // truncate time
+            val = this.clone().startOf('day').valueOf();
+
+            if (eras[i].since <= val && val <= eras[i].until) {
+                return eras[i].name;
+            }
+            if (eras[i].until <= val && val <= eras[i].since) {
+                return eras[i].name;
+            }
+        }
 
-                    function matchEraNarrow(isStrict, locale) {
-                        return locale.erasNarrowRegex(isStrict);
-                    }
+        return '';
+    }
 
-                    function matchEraYearOrdinal(isStrict, locale) {
-                        return locale._eraYearOrdinalRegex || matchUnsigned;
-                    }
+    function getEraNarrow() {
+        var i,
+            l,
+            val,
+            eras = this.localeData().eras();
+        for (i = 0, l = eras.length; i < l; ++i) {
+            // truncate time
+            val = this.clone().startOf('day').valueOf();
+
+            if (eras[i].since <= val && val <= eras[i].until) {
+                return eras[i].narrow;
+            }
+            if (eras[i].until <= val && val <= eras[i].since) {
+                return eras[i].narrow;
+            }
+        }
 
-                    function computeErasParse() {
-                        var abbrPieces = [],
-                            namePieces = [],
-                            narrowPieces = [],
-                            mixedPieces = [],
-                            i,
-                            l,
-                            eras = this.eras();
-
-                        for (i = 0, l = eras.length; i < l; ++i) {
-                            namePieces.push(regexEscape(eras[i].name));
-                            abbrPieces.push(regexEscape(eras[i].abbr));
-                            narrowPieces.push(regexEscape(eras[i].narrow));
-
-                            mixedPieces.push(regexEscape(eras[i].name));
-                            mixedPieces.push(regexEscape(eras[i].abbr));
-                            mixedPieces.push(regexEscape(eras[i].narrow));
-                        }
+        return '';
+    }
 
-                        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
-                        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
-                        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
-                        this._erasNarrowRegex = new RegExp(
-                            '^(' + narrowPieces.join('|') + ')',
-                            'i'
-                        );
-                    }
+    function getEraAbbr() {
+        var i,
+            l,
+            val,
+            eras = this.localeData().eras();
+        for (i = 0, l = eras.length; i < l; ++i) {
+            // truncate time
+            val = this.clone().startOf('day').valueOf();
+
+            if (eras[i].since <= val && val <= eras[i].until) {
+                return eras[i].abbr;
+            }
+            if (eras[i].until <= val && val <= eras[i].since) {
+                return eras[i].abbr;
+            }
+        }
 
-                    // FORMATTING
+        return '';
+    }
 
-                    addFormatToken(0, ['gg', 2], 0, function () {
-                        return this.weekYear() % 100;
-                    });
+    function getEraYear() {
+        var i,
+            l,
+            dir,
+            val,
+            eras = this.localeData().eras();
+        for (i = 0, l = eras.length; i < l; ++i) {
+            dir = eras[i].since <= eras[i].until ? +1 : -1;
+
+            // truncate time
+            val = this.clone().startOf('day').valueOf();
+
+            if (
+                (eras[i].since <= val && val <= eras[i].until) ||
+                (eras[i].until <= val && val <= eras[i].since)
+            ) {
+                return (
+                    (this.year() - hooks(eras[i].since).year()) * dir +
+                    eras[i].offset
+                );
+            }
+        }
 
-                    addFormatToken(0, ['GG', 2], 0, function () {
-                        return this.isoWeekYear() % 100;
-                    });
+        return this.year();
+    }
 
-                    function addWeekYearFormatToken(token, getter) {
-                        addFormatToken(0, [token, token.length], 0, getter);
-                    }
+    function erasNameRegex(isStrict) {
+        if (!hasOwnProp(this, '_erasNameRegex')) {
+            computeErasParse.call(this);
+        }
+        return isStrict ? this._erasNameRegex : this._erasRegex;
+    }
 
-                    addWeekYearFormatToken('gggg', 'weekYear');
-                    addWeekYearFormatToken('ggggg', 'weekYear');
-                    addWeekYearFormatToken('GGGG', 'isoWeekYear');
-                    addWeekYearFormatToken('GGGGG', 'isoWeekYear');
-
-                    // ALIASES
-
-                    addUnitAlias('weekYear', 'gg');
-                    addUnitAlias('isoWeekYear', 'GG');
-
-                    // PRIORITY
-
-                    addUnitPriority('weekYear', 1);
-                    addUnitPriority('isoWeekYear', 1);
-
-                    // PARSING
-
-                    addRegexToken('G', matchSigned);
-                    addRegexToken('g', matchSigned);
-                    addRegexToken('GG', match1to2, match2);
-                    addRegexToken('gg', match1to2, match2);
-                    addRegexToken('GGGG', match1to4, match4);
-                    addRegexToken('gggg', match1to4, match4);
-                    addRegexToken('GGGGG', match1to6, match6);
-                    addRegexToken('ggggg', match1to6, match6);
-
-                    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
-                        input,
-                        week,
-                        config,
-                        token
-                    ) {
-                        week[token.substr(0, 2)] = toInt(input);
-                    });
-
-                    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
-                        week[token] = hooks.parseTwoDigitYear(input);
-                    });
-
-                    // MOMENTS
-
-                    function getSetWeekYear(input) {
-                        return getSetWeekYearHelper.call(
-                            this,
-                            input,
-                            this.week(),
-                            this.weekday(),
-                            this.localeData()._week.dow,
-                            this.localeData()._week.doy
-                        );
-                    }
+    function erasAbbrRegex(isStrict) {
+        if (!hasOwnProp(this, '_erasAbbrRegex')) {
+            computeErasParse.call(this);
+        }
+        return isStrict ? this._erasAbbrRegex : this._erasRegex;
+    }
 
-                    function getSetISOWeekYear(input) {
-                        return getSetWeekYearHelper.call(
-                            this,
-                            input,
-                            this.isoWeek(),
-                            this.isoWeekday(),
-                            1,
-                            4
-                        );
-                    }
+    function erasNarrowRegex(isStrict) {
+        if (!hasOwnProp(this, '_erasNarrowRegex')) {
+            computeErasParse.call(this);
+        }
+        return isStrict ? this._erasNarrowRegex : this._erasRegex;
+    }
 
-                    function getISOWeeksInYear() {
-                        return weeksInYear(this.year(), 1, 4);
-                    }
+    function matchEraAbbr(isStrict, locale) {
+        return locale.erasAbbrRegex(isStrict);
+    }
 
-                    function getISOWeeksInISOWeekYear() {
-                        return weeksInYear(this.isoWeekYear(), 1, 4);
-                    }
+    function matchEraName(isStrict, locale) {
+        return locale.erasNameRegex(isStrict);
+    }
 
-                    function getWeeksInYear() {
-                        var weekInfo = this.localeData()._week;
-                        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
-                    }
+    function matchEraNarrow(isStrict, locale) {
+        return locale.erasNarrowRegex(isStrict);
+    }
 
-                    function getWeeksInWeekYear() {
-                        var weekInfo = this.localeData()._week;
-                        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
-                    }
+    function matchEraYearOrdinal(isStrict, locale) {
+        return locale._eraYearOrdinalRegex || matchUnsigned;
+    }
 
-                    function getSetWeekYearHelper(input, week, weekday, dow, doy) {
-                        var weeksTarget;
-                        if (input == null) {
-                            return weekOfYear(this, dow, doy).year;
-                        } else {
-                            weeksTarget = weeksInYear(input, dow, doy);
-                            if (week > weeksTarget) {
-                                week = weeksTarget;
-                            }
-                            return setWeekAll.call(this, input, week, weekday, dow, doy);
-                        }
-                    }
+    function computeErasParse() {
+        var abbrPieces = [],
+            namePieces = [],
+            narrowPieces = [],
+            mixedPieces = [],
+            i,
+            l,
+            eras = this.eras();
+
+        for (i = 0, l = eras.length; i < l; ++i) {
+            namePieces.push(regexEscape(eras[i].name));
+            abbrPieces.push(regexEscape(eras[i].abbr));
+            narrowPieces.push(regexEscape(eras[i].narrow));
+
+            mixedPieces.push(regexEscape(eras[i].name));
+            mixedPieces.push(regexEscape(eras[i].abbr));
+            mixedPieces.push(regexEscape(eras[i].narrow));
+        }
 
-                    function setWeekAll(weekYear, week, weekday, dow, doy) {
-                        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
-                            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
+        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
+        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
+        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
+        this._erasNarrowRegex = new RegExp(
+            '^(' + narrowPieces.join('|') + ')',
+            'i'
+        );
+    }
 
-                        this.year(date.getUTCFullYear());
-                        this.month(date.getUTCMonth());
-                        this.date(date.getUTCDate());
-                        return this;
-                    }
+    // FORMATTING
 
-                    // FORMATTING
+    addFormatToken(0, ['gg', 2], 0, function () {
+        return this.weekYear() % 100;
+    });
 
-                    addFormatToken('Q', 0, 'Qo', 'quarter');
+    addFormatToken(0, ['GG', 2], 0, function () {
+        return this.isoWeekYear() % 100;
+    });
 
-                    // ALIASES
+    function addWeekYearFormatToken(token, getter) {
+        addFormatToken(0, [token, token.length], 0, getter);
+    }
 
-                    addUnitAlias('quarter', 'Q');
+    addWeekYearFormatToken('gggg', 'weekYear');
+    addWeekYearFormatToken('ggggg', 'weekYear');
+    addWeekYearFormatToken('GGGG', 'isoWeekYear');
+    addWeekYearFormatToken('GGGGG', 'isoWeekYear');
+
+    // ALIASES
+
+    addUnitAlias('weekYear', 'gg');
+    addUnitAlias('isoWeekYear', 'GG');
+
+    // PRIORITY
+
+    addUnitPriority('weekYear', 1);
+    addUnitPriority('isoWeekYear', 1);
+
+    // PARSING
+
+    addRegexToken('G', matchSigned);
+    addRegexToken('g', matchSigned);
+    addRegexToken('GG', match1to2, match2);
+    addRegexToken('gg', match1to2, match2);
+    addRegexToken('GGGG', match1to4, match4);
+    addRegexToken('gggg', match1to4, match4);
+    addRegexToken('GGGGG', match1to6, match6);
+    addRegexToken('ggggg', match1to6, match6);
+
+    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
+        input,
+        week,
+        config,
+        token
+    ) {
+        week[token.substr(0, 2)] = toInt(input);
+    });
+
+    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
+        week[token] = hooks.parseTwoDigitYear(input);
+    });
+
+    // MOMENTS
+
+    function getSetWeekYear(input) {
+        return getSetWeekYearHelper.call(
+            this,
+            input,
+            this.week(),
+            this.weekday(),
+            this.localeData()._week.dow,
+            this.localeData()._week.doy
+        );
+    }
 
-                    // PRIORITY
+    function getSetISOWeekYear(input) {
+        return getSetWeekYearHelper.call(
+            this,
+            input,
+            this.isoWeek(),
+            this.isoWeekday(),
+            1,
+            4
+        );
+    }
 
-                    addUnitPriority('quarter', 7);
+    function getISOWeeksInYear() {
+        return weeksInYear(this.year(), 1, 4);
+    }
 
-                    // PARSING
+    function getISOWeeksInISOWeekYear() {
+        return weeksInYear(this.isoWeekYear(), 1, 4);
+    }
 
-                    addRegexToken('Q', match1);
-                    addParseToken('Q', function (input, array) {
-                        array[MONTH] = (toInt(input) - 1) * 3;
-                    });
+    function getWeeksInYear() {
+        var weekInfo = this.localeData()._week;
+        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
+    }
 
-                    // MOMENTS
+    function getWeeksInWeekYear() {
+        var weekInfo = this.localeData()._week;
+        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
+    }
 
-                    function getSetQuarter(input) {
-                        return input == null
-                            ? Math.ceil((this.month() + 1) / 3)
-                            : this.month((input - 1) * 3 + (this.month() % 3));
-                    }
+    function getSetWeekYearHelper(input, week, weekday, dow, doy) {
+        var weeksTarget;
+        if (input == null) {
+            return weekOfYear(this, dow, doy).year;
+        } else {
+            weeksTarget = weeksInYear(input, dow, doy);
+            if (week > weeksTarget) {
+                week = weeksTarget;
+            }
+            return setWeekAll.call(this, input, week, weekday, dow, doy);
+        }
+    }
 
-                    // FORMATTING
+    function setWeekAll(weekYear, week, weekday, dow, doy) {
+        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
+            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
 
-                    addFormatToken('D', ['DD', 2], 'Do', 'date');
+        this.year(date.getUTCFullYear());
+        this.month(date.getUTCMonth());
+        this.date(date.getUTCDate());
+        return this;
+    }
 
-                    // ALIASES
+    // FORMATTING
 
-                    addUnitAlias('date', 'D');
+    addFormatToken('Q', 0, 'Qo', 'quarter');
 
-                    // PRIORITY
-                    addUnitPriority('date', 9);
+    // ALIASES
 
-                    // PARSING
+    addUnitAlias('quarter', 'Q');
 
-                    addRegexToken('D', match1to2);
-                    addRegexToken('DD', match1to2, match2);
-                    addRegexToken('Do', function (isStrict, locale) {
-                        // TODO: Remove "ordinalParse" fallback in next major release.
-                        return isStrict
-                            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
-                            : locale._dayOfMonthOrdinalParseLenient;
-                    });
+    // PRIORITY
 
-                    addParseToken(['D', 'DD'], DATE);
-                    addParseToken('Do', function (input, array) {
-                        array[DATE] = toInt(input.match(match1to2)[0]);
-                    });
+    addUnitPriority('quarter', 7);
 
-                    // MOMENTS
+    // PARSING
 
-                    var getSetDayOfMonth = makeGetSet('Date', true);
+    addRegexToken('Q', match1);
+    addParseToken('Q', function (input, array) {
+        array[MONTH] = (toInt(input) - 1) * 3;
+    });
 
-                    // FORMATTING
+    // MOMENTS
 
-                    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
+    function getSetQuarter(input) {
+        return input == null
+            ? Math.ceil((this.month() + 1) / 3)
+            : this.month((input - 1) * 3 + (this.month() % 3));
+    }
 
-                    // ALIASES
+    // FORMATTING
 
-                    addUnitAlias('dayOfYear', 'DDD');
+    addFormatToken('D', ['DD', 2], 'Do', 'date');
 
-                    // PRIORITY
-                    addUnitPriority('dayOfYear', 4);
+    // ALIASES
 
-                    // PARSING
+    addUnitAlias('date', 'D');
 
-                    addRegexToken('DDD', match1to3);
-                    addRegexToken('DDDD', match3);
-                    addParseToken(['DDD', 'DDDD'], function (input, array, config) {
-                        config._dayOfYear = toInt(input);
-                    });
+    // PRIORITY
+    addUnitPriority('date', 9);
 
-                    // HELPERS
+    // PARSING
 
-                    // MOMENTS
+    addRegexToken('D', match1to2);
+    addRegexToken('DD', match1to2, match2);
+    addRegexToken('Do', function (isStrict, locale) {
+        // TODO: Remove "ordinalParse" fallback in next major release.
+        return isStrict
+            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
+            : locale._dayOfMonthOrdinalParseLenient;
+    });
 
-                    function getSetDayOfYear(input) {
-                        var dayOfYear =
-                            Math.round(
-                                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
-                            ) + 1;
-                        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
-                    }
+    addParseToken(['D', 'DD'], DATE);
+    addParseToken('Do', function (input, array) {
+        array[DATE] = toInt(input.match(match1to2)[0]);
+    });
 
-                    // FORMATTING
+    // MOMENTS
 
-                    addFormatToken('m', ['mm', 2], 0, 'minute');
+    var getSetDayOfMonth = makeGetSet('Date', true);
 
-                    // ALIASES
+    // FORMATTING
 
-                    addUnitAlias('minute', 'm');
+    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
 
-                    // PRIORITY
+    // ALIASES
 
-                    addUnitPriority('minute', 14);
+    addUnitAlias('dayOfYear', 'DDD');
 
-                    // PARSING
+    // PRIORITY
+    addUnitPriority('dayOfYear', 4);
 
-                    addRegexToken('m', match1to2);
-                    addRegexToken('mm', match1to2, match2);
-                    addParseToken(['m', 'mm'], MINUTE);
+    // PARSING
 
-                    // MOMENTS
+    addRegexToken('DDD', match1to3);
+    addRegexToken('DDDD', match3);
+    addParseToken(['DDD', 'DDDD'], function (input, array, config) {
+        config._dayOfYear = toInt(input);
+    });
 
-                    var getSetMinute = makeGetSet('Minutes', false);
+    // HELPERS
 
-                    // FORMATTING
+    // MOMENTS
 
-                    addFormatToken('s', ['ss', 2], 0, 'second');
+    function getSetDayOfYear(input) {
+        var dayOfYear =
+            Math.round(
+                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
+            ) + 1;
+        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
+    }
 
-                    // ALIASES
+    // FORMATTING
 
-                    addUnitAlias('second', 's');
+    addFormatToken('m', ['mm', 2], 0, 'minute');
 
-                    // PRIORITY
+    // ALIASES
 
-                    addUnitPriority('second', 15);
+    addUnitAlias('minute', 'm');
 
-                    // PARSING
+    // PRIORITY
 
-                    addRegexToken('s', match1to2);
-                    addRegexToken('ss', match1to2, match2);
-                    addParseToken(['s', 'ss'], SECOND);
+    addUnitPriority('minute', 14);
 
-                    // MOMENTS
+    // PARSING
 
-                    var getSetSecond = makeGetSet('Seconds', false);
+    addRegexToken('m', match1to2);
+    addRegexToken('mm', match1to2, match2);
+    addParseToken(['m', 'mm'], MINUTE);
 
-                    // FORMATTING
+    // MOMENTS
 
-                    addFormatToken('S', 0, 0, function () {
-                        return ~~(this.millisecond() / 100);
-                    });
+    var getSetMinute = makeGetSet('Minutes', false);
 
-                    addFormatToken(0, ['SS', 2], 0, function () {
-                        return ~~(this.millisecond() / 10);
-                    });
+    // FORMATTING
 
-                    addFormatToken(0, ['SSS', 3], 0, 'millisecond');
-                    addFormatToken(0, ['SSSS', 4], 0, function () {
-                        return this.millisecond() * 10;
-                    });
-                    addFormatToken(0, ['SSSSS', 5], 0, function () {
-                        return this.millisecond() * 100;
-                    });
-                    addFormatToken(0, ['SSSSSS', 6], 0, function () {
-                        return this.millisecond() * 1000;
-                    });
-                    addFormatToken(0, ['SSSSSSS', 7], 0, function () {
-                        return this.millisecond() * 10000;
-                    });
-                    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
-                        return this.millisecond() * 100000;
-                    });
-                    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
-                        return this.millisecond() * 1000000;
-                    });
+    addFormatToken('s', ['ss', 2], 0, 'second');
 
-                    // ALIASES
+    // ALIASES
 
-                    addUnitAlias('millisecond', 'ms');
+    addUnitAlias('second', 's');
 
-                    // PRIORITY
+    // PRIORITY
 
-                    addUnitPriority('millisecond', 16);
+    addUnitPriority('second', 15);
 
-                    // PARSING
+    // PARSING
 
-                    addRegexToken('S', match1to3, match1);
-                    addRegexToken('SS', match1to3, match2);
-                    addRegexToken('SSS', match1to3, match3);
+    addRegexToken('s', match1to2);
+    addRegexToken('ss', match1to2, match2);
+    addParseToken(['s', 'ss'], SECOND);
 
-                    var token, getSetMillisecond;
-                    for (token = 'SSSS'; token.length <= 9; token += 'S') {
-                        addRegexToken(token, matchUnsigned);
-                    }
+    // MOMENTS
 
-                    function parseMs(input, array) {
-                        array[MILLISECOND] = toInt(('0.' + input) * 1000);
-                    }
+    var getSetSecond = makeGetSet('Seconds', false);
 
-                    for (token = 'S'; token.length <= 9; token += 'S') {
-                        addParseToken(token, parseMs);
-                    }
+    // FORMATTING
 
-                    getSetMillisecond = makeGetSet('Milliseconds', false);
+    addFormatToken('S', 0, 0, function () {
+        return ~~(this.millisecond() / 100);
+    });
 
-                    // FORMATTING
+    addFormatToken(0, ['SS', 2], 0, function () {
+        return ~~(this.millisecond() / 10);
+    });
 
-                    addFormatToken('z', 0, 0, 'zoneAbbr');
-                    addFormatToken('zz', 0, 0, 'zoneName');
+    addFormatToken(0, ['SSS', 3], 0, 'millisecond');
+    addFormatToken(0, ['SSSS', 4], 0, function () {
+        return this.millisecond() * 10;
+    });
+    addFormatToken(0, ['SSSSS', 5], 0, function () {
+        return this.millisecond() * 100;
+    });
+    addFormatToken(0, ['SSSSSS', 6], 0, function () {
+        return this.millisecond() * 1000;
+    });
+    addFormatToken(0, ['SSSSSSS', 7], 0, function () {
+        return this.millisecond() * 10000;
+    });
+    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
+        return this.millisecond() * 100000;
+    });
+    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
+        return this.millisecond() * 1000000;
+    });
 
-                    // MOMENTS
+    // ALIASES
 
-                    function getZoneAbbr() {
-                        return this._isUTC ? 'UTC' : '';
-                    }
+    addUnitAlias('millisecond', 'ms');
 
-                    function getZoneName() {
-                        return this._isUTC ? 'Coordinated Universal Time' : '';
-                    }
+    // PRIORITY
 
-                    var proto = Moment.prototype;
-
-                    proto.add = add;
-                    proto.calendar = calendar$1;
-                    proto.clone = clone;
-                    proto.diff = diff;
-                    proto.endOf = endOf;
-                    proto.format = format;
-                    proto.from = from;
-                    proto.fromNow = fromNow;
-                    proto.to = to;
-                    proto.toNow = toNow;
-                    proto.get = stringGet;
-                    proto.invalidAt = invalidAt;
-                    proto.isAfter = isAfter;
-                    proto.isBefore = isBefore;
-                    proto.isBetween = isBetween;
-                    proto.isSame = isSame;
-                    proto.isSameOrAfter = isSameOrAfter;
-                    proto.isSameOrBefore = isSameOrBefore;
-                    proto.isValid = isValid$2;
-                    proto.lang = lang;
-                    proto.locale = locale;
-                    proto.localeData = localeData;
-                    proto.max = prototypeMax;
-                    proto.min = prototypeMin;
-                    proto.parsingFlags = parsingFlags;
-                    proto.set = stringSet;
-                    proto.startOf = startOf;
-                    proto.subtract = subtract;
-                    proto.toArray = toArray;
-                    proto.toObject = toObject;
-                    proto.toDate = toDate;
-                    proto.toISOString = toISOString;
-                    proto.inspect = inspect;
-                    if (typeof Symbol !== 'undefined' && Symbol.for != null) {
-                        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
-                            return 'Moment<' + this.format() + '>';
-                        };
-                    }
-                    proto.toJSON = toJSON;
-                    proto.toString = toString;
-                    proto.unix = unix;
-                    proto.valueOf = valueOf;
-                    proto.creationData = creationData;
-                    proto.eraName = getEraName;
-                    proto.eraNarrow = getEraNarrow;
-                    proto.eraAbbr = getEraAbbr;
-                    proto.eraYear = getEraYear;
-                    proto.year = getSetYear;
-                    proto.isLeapYear = getIsLeapYear;
-                    proto.weekYear = getSetWeekYear;
-                    proto.isoWeekYear = getSetISOWeekYear;
-                    proto.quarter = proto.quarters = getSetQuarter;
-                    proto.month = getSetMonth;
-                    proto.daysInMonth = getDaysInMonth;
-                    proto.week = proto.weeks = getSetWeek;
-                    proto.isoWeek = proto.isoWeeks = getSetISOWeek;
-                    proto.weeksInYear = getWeeksInYear;
-                    proto.weeksInWeekYear = getWeeksInWeekYear;
-                    proto.isoWeeksInYear = getISOWeeksInYear;
-                    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
-                    proto.date = getSetDayOfMonth;
-                    proto.day = proto.days = getSetDayOfWeek;
-                    proto.weekday = getSetLocaleDayOfWeek;
-                    proto.isoWeekday = getSetISODayOfWeek;
-                    proto.dayOfYear = getSetDayOfYear;
-                    proto.hour = proto.hours = getSetHour;
-                    proto.minute = proto.minutes = getSetMinute;
-                    proto.second = proto.seconds = getSetSecond;
-                    proto.millisecond = proto.milliseconds = getSetMillisecond;
-                    proto.utcOffset = getSetOffset;
-                    proto.utc = setOffsetToUTC;
-                    proto.local = setOffsetToLocal;
-                    proto.parseZone = setOffsetToParsedOffset;
-                    proto.hasAlignedHourOffset = hasAlignedHourOffset;
-                    proto.isDST = isDaylightSavingTime;
-                    proto.isLocal = isLocal;
-                    proto.isUtcOffset = isUtcOffset;
-                    proto.isUtc = isUtc;
-                    proto.isUTC = isUtc;
-                    proto.zoneAbbr = getZoneAbbr;
-                    proto.zoneName = getZoneName;
-                    proto.dates = deprecate(
-                        'dates accessor is deprecated. Use date instead.',
-                        getSetDayOfMonth
-                    );
-                    proto.months = deprecate(
-                        'months accessor is deprecated. Use month instead',
-                        getSetMonth
-                    );
-                    proto.years = deprecate(
-                        'years accessor is deprecated. Use year instead',
-                        getSetYear
-                    );
-                    proto.zone = deprecate(
-                        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
-                        getSetZone
-                    );
-                    proto.isDSTShifted = deprecate(
-                        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
-                        isDaylightSavingTimeShifted
-                    );
+    addUnitPriority('millisecond', 16);
 
-                    function createUnix(input) {
-                        return createLocal(input * 1000);
-                    }
+    // PARSING
+
+    addRegexToken('S', match1to3, match1);
+    addRegexToken('SS', match1to3, match2);
+    addRegexToken('SSS', match1to3, match3);
+
+    var token, getSetMillisecond;
+    for (token = 'SSSS'; token.length <= 9; token += 'S') {
+        addRegexToken(token, matchUnsigned);
+    }
 
-                    function createInZone() {
-                        return createLocal.apply(null, arguments).parseZone();
-                    }
+    function parseMs(input, array) {
+        array[MILLISECOND] = toInt(('0.' + input) * 1000);
+    }
 
-                    function preParsePostFormat(string) {
-                        return string;
-                    }
+    for (token = 'S'; token.length <= 9; token += 'S') {
+        addParseToken(token, parseMs);
+    }
 
-                    var proto$1 = Locale.prototype;
-
-                    proto$1.calendar = calendar;
-                    proto$1.longDateFormat = longDateFormat;
-                    proto$1.invalidDate = invalidDate;
-                    proto$1.ordinal = ordinal;
-                    proto$1.preparse = preParsePostFormat;
-                    proto$1.postformat = preParsePostFormat;
-                    proto$1.relativeTime = relativeTime;
-                    proto$1.pastFuture = pastFuture;
-                    proto$1.set = set;
-                    proto$1.eras = localeEras;
-                    proto$1.erasParse = localeErasParse;
-                    proto$1.erasConvertYear = localeErasConvertYear;
-                    proto$1.erasAbbrRegex = erasAbbrRegex;
-                    proto$1.erasNameRegex = erasNameRegex;
-                    proto$1.erasNarrowRegex = erasNarrowRegex;
-
-                    proto$1.months = localeMonths;
-                    proto$1.monthsShort = localeMonthsShort;
-                    proto$1.monthsParse = localeMonthsParse;
-                    proto$1.monthsRegex = monthsRegex;
-                    proto$1.monthsShortRegex = monthsShortRegex;
-                    proto$1.week = localeWeek;
-                    proto$1.firstDayOfYear = localeFirstDayOfYear;
-                    proto$1.firstDayOfWeek = localeFirstDayOfWeek;
-
-                    proto$1.weekdays = localeWeekdays;
-                    proto$1.weekdaysMin = localeWeekdaysMin;
-                    proto$1.weekdaysShort = localeWeekdaysShort;
-                    proto$1.weekdaysParse = localeWeekdaysParse;
-
-                    proto$1.weekdaysRegex = weekdaysRegex;
-                    proto$1.weekdaysShortRegex = weekdaysShortRegex;
-                    proto$1.weekdaysMinRegex = weekdaysMinRegex;
-
-                    proto$1.isPM = localeIsPM;
-                    proto$1.meridiem = localeMeridiem;
-
-                    function get$1(format, index, field, setter) {
-                        var locale = getLocale(),
-                            utc = createUTC().set(setter, index);
-                        return locale[field](utc, format);
-                    }
+    getSetMillisecond = makeGetSet('Milliseconds', false);
 
-                    function listMonthsImpl(format, index, field) {
-                        if (isNumber(format)) {
-                            index = format;
-                            format = undefined;
-                        }
+    // FORMATTING
 
-                        format = format || '';
+    addFormatToken('z', 0, 0, 'zoneAbbr');
+    addFormatToken('zz', 0, 0, 'zoneName');
 
-                        if (index != null) {
-                            return get$1(format, index, field, 'month');
-                        }
+    // MOMENTS
 
-                        var i,
-                            out = [];
-                        for (i = 0; i < 12; i++) {
-                            out[i] = get$1(format, i, field, 'month');
-                        }
-                        return out;
-                    }
+    function getZoneAbbr() {
+        return this._isUTC ? 'UTC' : '';
+    }
 
-                    // ()
-                    // (5)
-                    // (fmt, 5)
-                    // (fmt)
-                    // (true)
-                    // (true, 5)
-                    // (true, fmt, 5)
-                    // (true, fmt)
-                    function listWeekdaysImpl(localeSorted, format, index, field) {
-                        if (typeof localeSorted === 'boolean') {
-                            if (isNumber(format)) {
-                                index = format;
-                                format = undefined;
-                            }
+    function getZoneName() {
+        return this._isUTC ? 'Coordinated Universal Time' : '';
+    }
 
-                            format = format || '';
-                        } else {
-                            format = localeSorted;
-                            index = format;
-                            localeSorted = false;
+    var proto = Moment.prototype;
+
+    proto.add = add;
+    proto.calendar = calendar$1;
+    proto.clone = clone;
+    proto.diff = diff;
+    proto.endOf = endOf;
+    proto.format = format;
+    proto.from = from;
+    proto.fromNow = fromNow;
+    proto.to = to;
+    proto.toNow = toNow;
+    proto.get = stringGet;
+    proto.invalidAt = invalidAt;
+    proto.isAfter = isAfter;
+    proto.isBefore = isBefore;
+    proto.isBetween = isBetween;
+    proto.isSame = isSame;
+    proto.isSameOrAfter = isSameOrAfter;
+    proto.isSameOrBefore = isSameOrBefore;
+    proto.isValid = isValid$2;
+    proto.lang = lang;
+    proto.locale = locale;
+    proto.localeData = localeData;
+    proto.max = prototypeMax;
+    proto.min = prototypeMin;
+    proto.parsingFlags = parsingFlags;
+    proto.set = stringSet;
+    proto.startOf = startOf;
+    proto.subtract = subtract;
+    proto.toArray = toArray;
+    proto.toObject = toObject;
+    proto.toDate = toDate;
+    proto.toISOString = toISOString;
+    proto.inspect = inspect;
+    if (typeof Symbol !== 'undefined' && Symbol.for != null) {
+        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
+            return 'Moment<' + this.format() + '>';
+        };
+    }
+    proto.toJSON = toJSON;
+    proto.toString = toString;
+    proto.unix = unix;
+    proto.valueOf = valueOf;
+    proto.creationData = creationData;
+    proto.eraName = getEraName;
+    proto.eraNarrow = getEraNarrow;
+    proto.eraAbbr = getEraAbbr;
+    proto.eraYear = getEraYear;
+    proto.year = getSetYear;
+    proto.isLeapYear = getIsLeapYear;
+    proto.weekYear = getSetWeekYear;
+    proto.isoWeekYear = getSetISOWeekYear;
+    proto.quarter = proto.quarters = getSetQuarter;
+    proto.month = getSetMonth;
+    proto.daysInMonth = getDaysInMonth;
+    proto.week = proto.weeks = getSetWeek;
+    proto.isoWeek = proto.isoWeeks = getSetISOWeek;
+    proto.weeksInYear = getWeeksInYear;
+    proto.weeksInWeekYear = getWeeksInWeekYear;
+    proto.isoWeeksInYear = getISOWeeksInYear;
+    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
+    proto.date = getSetDayOfMonth;
+    proto.day = proto.days = getSetDayOfWeek;
+    proto.weekday = getSetLocaleDayOfWeek;
+    proto.isoWeekday = getSetISODayOfWeek;
+    proto.dayOfYear = getSetDayOfYear;
+    proto.hour = proto.hours = getSetHour;
+    proto.minute = proto.minutes = getSetMinute;
+    proto.second = proto.seconds = getSetSecond;
+    proto.millisecond = proto.milliseconds = getSetMillisecond;
+    proto.utcOffset = getSetOffset;
+    proto.utc = setOffsetToUTC;
+    proto.local = setOffsetToLocal;
+    proto.parseZone = setOffsetToParsedOffset;
+    proto.hasAlignedHourOffset = hasAlignedHourOffset;
+    proto.isDST = isDaylightSavingTime;
+    proto.isLocal = isLocal;
+    proto.isUtcOffset = isUtcOffset;
+    proto.isUtc = isUtc;
+    proto.isUTC = isUtc;
+    proto.zoneAbbr = getZoneAbbr;
+    proto.zoneName = getZoneName;
+    proto.dates = deprecate(
+        'dates accessor is deprecated. Use date instead.',
+        getSetDayOfMonth
+    );
+    proto.months = deprecate(
+        'months accessor is deprecated. Use month instead',
+        getSetMonth
+    );
+    proto.years = deprecate(
+        'years accessor is deprecated. Use year instead',
+        getSetYear
+    );
+    proto.zone = deprecate(
+        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
+        getSetZone
+    );
+    proto.isDSTShifted = deprecate(
+        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
+        isDaylightSavingTimeShifted
+    );
+
+    function createUnix(input) {
+        return createLocal(input * 1000);
+    }
 
-                            if (isNumber(format)) {
-                                index = format;
-                                format = undefined;
-                            }
+    function createInZone() {
+        return createLocal.apply(null, arguments).parseZone();
+    }
 
-                            format = format || '';
-                        }
+    function preParsePostFormat(string) {
+        return string;
+    }
 
-                        var locale = getLocale(),
-                            shift = localeSorted ? locale._week.dow : 0,
-                            i,
-                            out = [];
+    var proto$1 = Locale.prototype;
+
+    proto$1.calendar = calendar;
+    proto$1.longDateFormat = longDateFormat;
+    proto$1.invalidDate = invalidDate;
+    proto$1.ordinal = ordinal;
+    proto$1.preparse = preParsePostFormat;
+    proto$1.postformat = preParsePostFormat;
+    proto$1.relativeTime = relativeTime;
+    proto$1.pastFuture = pastFuture;
+    proto$1.set = set;
+    proto$1.eras = localeEras;
+    proto$1.erasParse = localeErasParse;
+    proto$1.erasConvertYear = localeErasConvertYear;
+    proto$1.erasAbbrRegex = erasAbbrRegex;
+    proto$1.erasNameRegex = erasNameRegex;
+    proto$1.erasNarrowRegex = erasNarrowRegex;
+
+    proto$1.months = localeMonths;
+    proto$1.monthsShort = localeMonthsShort;
+    proto$1.monthsParse = localeMonthsParse;
+    proto$1.monthsRegex = monthsRegex;
+    proto$1.monthsShortRegex = monthsShortRegex;
+    proto$1.week = localeWeek;
+    proto$1.firstDayOfYear = localeFirstDayOfYear;
+    proto$1.firstDayOfWeek = localeFirstDayOfWeek;
+
+    proto$1.weekdays = localeWeekdays;
+    proto$1.weekdaysMin = localeWeekdaysMin;
+    proto$1.weekdaysShort = localeWeekdaysShort;
+    proto$1.weekdaysParse = localeWeekdaysParse;
+
+    proto$1.weekdaysRegex = weekdaysRegex;
+    proto$1.weekdaysShortRegex = weekdaysShortRegex;
+    proto$1.weekdaysMinRegex = weekdaysMinRegex;
+
+    proto$1.isPM = localeIsPM;
+    proto$1.meridiem = localeMeridiem;
+
+    function get$1(format, index, field, setter) {
+        var locale = getLocale(),
+            utc = createUTC().set(setter, index);
+        return locale[field](utc, format);
+    }
 
-                        if (index != null) {
-                            return get$1(format, (index + shift) % 7, field, 'day');
-                        }
+    function listMonthsImpl(format, index, field) {
+        if (isNumber(format)) {
+            index = format;
+            format = undefined;
+        }
 
-                        for (i = 0; i < 7; i++) {
-                            out[i] = get$1(format, (i + shift) % 7, field, 'day');
-                        }
-                        return out;
-                    }
+        format = format || '';
 
-                    function listMonths(format, index) {
-                        return listMonthsImpl(format, index, 'months');
-                    }
+        if (index != null) {
+            return get$1(format, index, field, 'month');
+        }
 
-                    function listMonthsShort(format, index) {
-                        return listMonthsImpl(format, index, 'monthsShort');
-                    }
+        var i,
+            out = [];
+        for (i = 0; i < 12; i++) {
+            out[i] = get$1(format, i, field, 'month');
+        }
+        return out;
+    }
 
-                    function listWeekdays(localeSorted, format, index) {
-                        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
-                    }
+    // ()
+    // (5)
+    // (fmt, 5)
+    // (fmt)
+    // (true)
+    // (true, 5)
+    // (true, fmt, 5)
+    // (true, fmt)
+    function listWeekdaysImpl(localeSorted, format, index, field) {
+        if (typeof localeSorted === 'boolean') {
+            if (isNumber(format)) {
+                index = format;
+                format = undefined;
+            }
 
-                    function listWeekdaysShort(localeSorted, format, index) {
-                        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
-                    }
+            format = format || '';
+        } else {
+            format = localeSorted;
+            index = format;
+            localeSorted = false;
 
-                    function listWeekdaysMin(localeSorted, format, index) {
-                        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
-                    }
+            if (isNumber(format)) {
+                index = format;
+                format = undefined;
+            }
 
-                    getSetGlobalLocale('en', {
-                        eras: [
-                            {
-                                since: '0001-01-01',
-                                until: +Infinity,
-                                offset: 1,
-                                name: 'Anno Domini',
-                                narrow: 'AD',
-                                abbr: 'AD',
-                            },
-                            {
-                                since: '0000-12-31',
-                                until: -Infinity,
-                                offset: 1,
-                                name: 'Before Christ',
-                                narrow: 'BC',
-                                abbr: 'BC',
-                            },
-                        ],
-                        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
-                        ordinal: function (number) {
-                            var b = number % 10,
-                                output =
-                                    toInt((number % 100) / 10) === 1
-                                        ? 'th'
-                                        : b === 1
-                                            ? 'st'
-                                            : b === 2
-                                                ? 'nd'
-                                                : b === 3
-                                                    ? 'rd'
-                                                    : 'th';
-                            return number + output;
-                        },
-                    });
-
-                    // Side effect imports
-
-                    hooks.lang = deprecate(
-                        'moment.lang is deprecated. Use moment.locale instead.',
-                        getSetGlobalLocale
-                    );
-                    hooks.langData = deprecate(
-                        'moment.langData is deprecated. Use moment.localeData instead.',
-                        getLocale
-                    );
+            format = format || '';
+        }
 
-                    var mathAbs = Math.abs;
+        var locale = getLocale(),
+            shift = localeSorted ? locale._week.dow : 0,
+            i,
+            out = [];
 
-                    function abs() {
-                        var data = this._data;
+        if (index != null) {
+            return get$1(format, (index + shift) % 7, field, 'day');
+        }
 
-                        this._milliseconds = mathAbs(this._milliseconds);
-                        this._days = mathAbs(this._days);
-                        this._months = mathAbs(this._months);
+        for (i = 0; i < 7; i++) {
+            out[i] = get$1(format, (i + shift) % 7, field, 'day');
+        }
+        return out;
+    }
 
-                        data.milliseconds = mathAbs(data.milliseconds);
-                        data.seconds = mathAbs(data.seconds);
-                        data.minutes = mathAbs(data.minutes);
-                        data.hours = mathAbs(data.hours);
-                        data.months = mathAbs(data.months);
-                        data.years = mathAbs(data.years);
+    function listMonths(format, index) {
+        return listMonthsImpl(format, index, 'months');
+    }
 
-                        return this;
-                    }
+    function listMonthsShort(format, index) {
+        return listMonthsImpl(format, index, 'monthsShort');
+    }
 
-                    function addSubtract$1(duration, input, value, direction) {
-                        var other = createDuration(input, value);
+    function listWeekdays(localeSorted, format, index) {
+        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
+    }
 
-                        duration._milliseconds += direction * other._milliseconds;
-                        duration._days += direction * other._days;
-                        duration._months += direction * other._months;
+    function listWeekdaysShort(localeSorted, format, index) {
+        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
+    }
 
-                        return duration._bubble();
-                    }
+    function listWeekdaysMin(localeSorted, format, index) {
+        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
+    }
 
-                    // supports only 2.0-style add(1, 's') or add(duration)
-                    function add$1(input, value) {
-                        return addSubtract$1(this, input, value, 1);
-                    }
+    getSetGlobalLocale('en', {
+        eras: [
+            {
+                since: '0001-01-01',
+                until: +Infinity,
+                offset: 1,
+                name: 'Anno Domini',
+                narrow: 'AD',
+                abbr: 'AD',
+            },
+            {
+                since: '0000-12-31',
+                until: -Infinity,
+                offset: 1,
+                name: 'Before Christ',
+                narrow: 'BC',
+                abbr: 'BC',
+            },
+        ],
+        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
+        ordinal: function (number) {
+            var b = number % 10,
+                output =
+                    toInt((number % 100) / 10) === 1
+                        ? 'th'
+                        : b === 1
+                        ? 'st'
+                        : b === 2
+                        ? 'nd'
+                        : b === 3
+                        ? 'rd'
+                        : 'th';
+            return number + output;
+        },
+    });
+
+    // Side effect imports
+
+    hooks.lang = deprecate(
+        'moment.lang is deprecated. Use moment.locale instead.',
+        getSetGlobalLocale
+    );
+    hooks.langData = deprecate(
+        'moment.langData is deprecated. Use moment.localeData instead.',
+        getLocale
+    );
+
+    var mathAbs = Math.abs;
+
+    function abs() {
+        var data = this._data;
+
+        this._milliseconds = mathAbs(this._milliseconds);
+        this._days = mathAbs(this._days);
+        this._months = mathAbs(this._months);
+
+        data.milliseconds = mathAbs(data.milliseconds);
+        data.seconds = mathAbs(data.seconds);
+        data.minutes = mathAbs(data.minutes);
+        data.hours = mathAbs(data.hours);
+        data.months = mathAbs(data.months);
+        data.years = mathAbs(data.years);
+
+        return this;
+    }
 
-                    // supports only 2.0-style subtract(1, 's') or subtract(duration)
-                    function subtract$1(input, value) {
-                        return addSubtract$1(this, input, value, -1);
-                    }
+    function addSubtract$1(duration, input, value, direction) {
+        var other = createDuration(input, value);
 
-                    function absCeil(number) {
-                        if (number < 0) {
-                            return Math.floor(number);
-                        } else {
-                            return Math.ceil(number);
-                        }
-                    }
+        duration._milliseconds += direction * other._milliseconds;
+        duration._days += direction * other._days;
+        duration._months += direction * other._months;
 
-                    function bubble() {
-                        var milliseconds = this._milliseconds,
-                            days = this._days,
-                            months = this._months,
-                            data = this._data,
-                            seconds,
-                            minutes,
-                            hours,
-                            years,
-                            monthsFromDays;
-
-                        // if we have a mix of positive and negative values, bubble down first
-                        // check: https://github.com/moment/moment/issues/2166
-                        if (
-                            !(
-                                (milliseconds >= 0 && days >= 0 && months >= 0) ||
-                                (milliseconds <= 0 && days <= 0 && months <= 0)
-                            )
-                        ) {
-                            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
-                            days = 0;
-                            months = 0;
-                        }
+        return duration._bubble();
+    }
 
-                        // The following code bubbles up values, see the tests for
-                        // examples of what that means.
-                        data.milliseconds = milliseconds % 1000;
+    // supports only 2.0-style add(1, 's') or add(duration)
+    function add$1(input, value) {
+        return addSubtract$1(this, input, value, 1);
+    }
 
-                        seconds = absFloor(milliseconds / 1000);
-                        data.seconds = seconds % 60;
+    // supports only 2.0-style subtract(1, 's') or subtract(duration)
+    function subtract$1(input, value) {
+        return addSubtract$1(this, input, value, -1);
+    }
 
-                        minutes = absFloor(seconds / 60);
-                        data.minutes = minutes % 60;
+    function absCeil(number) {
+        if (number < 0) {
+            return Math.floor(number);
+        } else {
+            return Math.ceil(number);
+        }
+    }
 
-                        hours = absFloor(minutes / 60);
-                        data.hours = hours % 24;
+    function bubble() {
+        var milliseconds = this._milliseconds,
+            days = this._days,
+            months = this._months,
+            data = this._data,
+            seconds,
+            minutes,
+            hours,
+            years,
+            monthsFromDays;
+
+        // if we have a mix of positive and negative values, bubble down first
+        // check: https://github.com/moment/moment/issues/2166
+        if (
+            !(
+                (milliseconds >= 0 && days >= 0 && months >= 0) ||
+                (milliseconds <= 0 && days <= 0 && months <= 0)
+            )
+        ) {
+            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
+            days = 0;
+            months = 0;
+        }
 
-                        days += absFloor(hours / 24);
+        // The following code bubbles up values, see the tests for
+        // examples of what that means.
+        data.milliseconds = milliseconds % 1000;
 
-                        // convert days to months
-                        monthsFromDays = absFloor(daysToMonths(days));
-                        months += monthsFromDays;
-                        days -= absCeil(monthsToDays(monthsFromDays));
+        seconds = absFloor(milliseconds / 1000);
+        data.seconds = seconds % 60;
 
-                        // 12 months -> 1 year
-                        years = absFloor(months / 12);
-                        months %= 12;
+        minutes = absFloor(seconds / 60);
+        data.minutes = minutes % 60;
 
-                        data.days = days;
-                        data.months = months;
-                        data.years = years;
+        hours = absFloor(minutes / 60);
+        data.hours = hours % 24;
 
-                        return this;
-                    }
+        days += absFloor(hours / 24);
 
-                    function daysToMonths(days) {
-                        // 400 years have 146097 days (taking into account leap year rules)
-                        // 400 years have 12 months === 4800
-                        return (days * 4800) / 146097;
-                    }
+        // convert days to months
+        monthsFromDays = absFloor(daysToMonths(days));
+        months += monthsFromDays;
+        days -= absCeil(monthsToDays(monthsFromDays));
 
-                    function monthsToDays(months) {
-                        // the reverse of daysToMonths
-                        return (months * 146097) / 4800;
-                    }
+        // 12 months -> 1 year
+        years = absFloor(months / 12);
+        months %= 12;
 
-                    function as(units) {
-                        if (!this.isValid()) {
-                            return NaN;
-                        }
-                        var days,
-                            months,
-                            milliseconds = this._milliseconds;
-
-                        units = normalizeUnits(units);
-
-                        if (units === 'month' || units === 'quarter' || units === 'year') {
-                            days = this._days + milliseconds / 864e5;
-                            months = this._months + daysToMonths(days);
-                            switch (units) {
-                                case 'month':
-                                    return months;
-                                case 'quarter':
-                                    return months / 3;
-                                case 'year':
-                                    return months / 12;
-                            }
-                        } else {
-                            // handle milliseconds separately because of floating point math errors (issue #1867)
-                            days = this._days + Math.round(monthsToDays(this._months));
-                            switch (units) {
-                                case 'week':
-                                    return days / 7 + milliseconds / 6048e5;
-                                case 'day':
-                                    return days + milliseconds / 864e5;
-                                case 'hour':
-                                    return days * 24 + milliseconds / 36e5;
-                                case 'minute':
-                                    return days * 1440 + milliseconds / 6e4;
-                                case 'second':
-                                    return days * 86400 + milliseconds / 1000;
-                                // Math.floor prevents floating point math errors here
-                                case 'millisecond':
-                                    return Math.floor(days * 864e5) + milliseconds;
-                                default:
-                                    throw new Error('Unknown unit ' + units);
-                            }
-                        }
-                    }
+        data.days = days;
+        data.months = months;
+        data.years = years;
 
-                    // TODO: Use this.as('ms')?
-                    function valueOf$1() {
-                        if (!this.isValid()) {
-                            return NaN;
-                        }
-                        return (
-                            this._milliseconds +
-                            this._days * 864e5 +
-                            (this._months % 12) * 2592e6 +
-                            toInt(this._months / 12) * 31536e6
-                        );
-                    }
+        return this;
+    }
 
-                    function makeAs(alias) {
-                        return function () {
-                            return this.as(alias);
-                        };
-                    }
+    function daysToMonths(days) {
+        // 400 years have 146097 days (taking into account leap year rules)
+        // 400 years have 12 months === 4800
+        return (days * 4800) / 146097;
+    }
 
-                    var asMilliseconds = makeAs('ms'),
-                        asSeconds = makeAs('s'),
-                        asMinutes = makeAs('m'),
-                        asHours = makeAs('h'),
-                        asDays = makeAs('d'),
-                        asWeeks = makeAs('w'),
-                        asMonths = makeAs('M'),
-                        asQuarters = makeAs('Q'),
-                        asYears = makeAs('y');
-
-                    function clone$1() {
-                        return createDuration(this);
-                    }
+    function monthsToDays(months) {
+        // the reverse of daysToMonths
+        return (months * 146097) / 4800;
+    }
 
-                    function get$2(units) {
-                        units = normalizeUnits(units);
-                        return this.isValid() ? this[units + 's']() : NaN;
-                    }
+    function as(units) {
+        if (!this.isValid()) {
+            return NaN;
+        }
+        var days,
+            months,
+            milliseconds = this._milliseconds;
+
+        units = normalizeUnits(units);
+
+        if (units === 'month' || units === 'quarter' || units === 'year') {
+            days = this._days + milliseconds / 864e5;
+            months = this._months + daysToMonths(days);
+            switch (units) {
+                case 'month':
+                    return months;
+                case 'quarter':
+                    return months / 3;
+                case 'year':
+                    return months / 12;
+            }
+        } else {
+            // handle milliseconds separately because of floating point math errors (issue #1867)
+            days = this._days + Math.round(monthsToDays(this._months));
+            switch (units) {
+                case 'week':
+                    return days / 7 + milliseconds / 6048e5;
+                case 'day':
+                    return days + milliseconds / 864e5;
+                case 'hour':
+                    return days * 24 + milliseconds / 36e5;
+                case 'minute':
+                    return days * 1440 + milliseconds / 6e4;
+                case 'second':
+                    return days * 86400 + milliseconds / 1000;
+                // Math.floor prevents floating point math errors here
+                case 'millisecond':
+                    return Math.floor(days * 864e5) + milliseconds;
+                default:
+                    throw new Error('Unknown unit ' + units);
+            }
+        }
+    }
 
-                    function makeGetter(name) {
-                        return function () {
-                            return this.isValid() ? this._data[name] : NaN;
-                        };
-                    }
+    // TODO: Use this.as('ms')?
+    function valueOf$1() {
+        if (!this.isValid()) {
+            return NaN;
+        }
+        return (
+            this._milliseconds +
+            this._days * 864e5 +
+            (this._months % 12) * 2592e6 +
+            toInt(this._months / 12) * 31536e6
+        );
+    }
 
-                    var milliseconds = makeGetter('milliseconds'),
-                        seconds = makeGetter('seconds'),
-                        minutes = makeGetter('minutes'),
-                        hours = makeGetter('hours'),
-                        days = makeGetter('days'),
-                        months = makeGetter('months'),
-                        years = makeGetter('years');
+    function makeAs(alias) {
+        return function () {
+            return this.as(alias);
+        };
+    }
 
-                    function weeks() {
-                        return absFloor(this.days() / 7);
-                    }
+    var asMilliseconds = makeAs('ms'),
+        asSeconds = makeAs('s'),
+        asMinutes = makeAs('m'),
+        asHours = makeAs('h'),
+        asDays = makeAs('d'),
+        asWeeks = makeAs('w'),
+        asMonths = makeAs('M'),
+        asQuarters = makeAs('Q'),
+        asYears = makeAs('y');
+
+    function clone$1() {
+        return createDuration(this);
+    }
 
-                    var round = Math.round,
-                        thresholds = {
-                            ss: 44, // a few seconds to seconds
-                            s: 45, // seconds to minute
-                            m: 45, // minutes to hour
-                            h: 22, // hours to day
-                            d: 26, // days to month/week
-                            w: null, // weeks to month
-                            M: 11, // months to year
-                        };
-
-                    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
-                    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
-                        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
-                    }
+    function get$2(units) {
+        units = normalizeUnits(units);
+        return this.isValid() ? this[units + 's']() : NaN;
+    }
 
-                    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
-                        var duration = createDuration(posNegDuration).abs(),
-                            seconds = round(duration.as('s')),
-                            minutes = round(duration.as('m')),
-                            hours = round(duration.as('h')),
-                            days = round(duration.as('d')),
-                            months = round(duration.as('M')),
-                            weeks = round(duration.as('w')),
-                            years = round(duration.as('y')),
-                            a =
-                                (seconds <= thresholds.ss && ['s', seconds]) ||
-                                (seconds < thresholds.s && ['ss', seconds]) ||
-                                (minutes <= 1 && ['m']) ||
-                                (minutes < thresholds.m && ['mm', minutes]) ||
-                                (hours <= 1 && ['h']) ||
-                                (hours < thresholds.h && ['hh', hours]) ||
-                                (days <= 1 && ['d']) ||
-                                (days < thresholds.d && ['dd', days]);
-
-                        if (thresholds.w != null) {
-                            a =
-                                a ||
-                                (weeks <= 1 && ['w']) ||
-                                (weeks < thresholds.w && ['ww', weeks]);
-                        }
-                        a = a ||
-                            (months <= 1 && ['M']) ||
-                            (months < thresholds.M && ['MM', months]) ||
-                            (years <= 1 && ['y']) || ['yy', years];
-
-                        a[2] = withoutSuffix;
-                        a[3] = +posNegDuration > 0;
-                        a[4] = locale;
-                        return substituteTimeAgo.apply(null, a);
-                    }
+    function makeGetter(name) {
+        return function () {
+            return this.isValid() ? this._data[name] : NaN;
+        };
+    }
 
-                    // This function allows you to set the rounding function for relative time strings
-                    function getSetRelativeTimeRounding(roundingFunction) {
-                        if (roundingFunction === undefined) {
-                            return round;
-                        }
-                        if (typeof roundingFunction === 'function') {
-                            round = roundingFunction;
-                            return true;
-                        }
-                        return false;
-                    }
+    var milliseconds = makeGetter('milliseconds'),
+        seconds = makeGetter('seconds'),
+        minutes = makeGetter('minutes'),
+        hours = makeGetter('hours'),
+        days = makeGetter('days'),
+        months = makeGetter('months'),
+        years = makeGetter('years');
 
-                    // This function allows you to set a threshold for relative time strings
-                    function getSetRelativeTimeThreshold(threshold, limit) {
-                        if (thresholds[threshold] === undefined) {
-                            return false;
-                        }
-                        if (limit === undefined) {
-                            return thresholds[threshold];
-                        }
-                        thresholds[threshold] = limit;
-                        if (threshold === 's') {
-                            thresholds.ss = limit - 1;
-                        }
-                        return true;
-                    }
+    function weeks() {
+        return absFloor(this.days() / 7);
+    }
 
-                    function humanize(argWithSuffix, argThresholds) {
-                        if (!this.isValid()) {
-                            return this.localeData().invalidDate();
-                        }
+    var round = Math.round,
+        thresholds = {
+            ss: 44, // a few seconds to seconds
+            s: 45, // seconds to minute
+            m: 45, // minutes to hour
+            h: 22, // hours to day
+            d: 26, // days to month/week
+            w: null, // weeks to month
+            M: 11, // months to year
+        };
+
+    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
+    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
+        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
+    }
 
-                        var withSuffix = false,
-                            th = thresholds,
-                            locale,
-                            output;
+    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
+        var duration = createDuration(posNegDuration).abs(),
+            seconds = round(duration.as('s')),
+            minutes = round(duration.as('m')),
+            hours = round(duration.as('h')),
+            days = round(duration.as('d')),
+            months = round(duration.as('M')),
+            weeks = round(duration.as('w')),
+            years = round(duration.as('y')),
+            a =
+                (seconds <= thresholds.ss && ['s', seconds]) ||
+                (seconds < thresholds.s && ['ss', seconds]) ||
+                (minutes <= 1 && ['m']) ||
+                (minutes < thresholds.m && ['mm', minutes]) ||
+                (hours <= 1 && ['h']) ||
+                (hours < thresholds.h && ['hh', hours]) ||
+                (days <= 1 && ['d']) ||
+                (days < thresholds.d && ['dd', days]);
+
+        if (thresholds.w != null) {
+            a =
+                a ||
+                (weeks <= 1 && ['w']) ||
+                (weeks < thresholds.w && ['ww', weeks]);
+        }
+        a = a ||
+            (months <= 1 && ['M']) ||
+            (months < thresholds.M && ['MM', months]) ||
+            (years <= 1 && ['y']) || ['yy', years];
+
+        a[2] = withoutSuffix;
+        a[3] = +posNegDuration > 0;
+        a[4] = locale;
+        return substituteTimeAgo.apply(null, a);
+    }
 
-                        if (typeof argWithSuffix === 'object') {
-                            argThresholds = argWithSuffix;
-                            argWithSuffix = false;
-                        }
-                        if (typeof argWithSuffix === 'boolean') {
-                            withSuffix = argWithSuffix;
-                        }
-                        if (typeof argThresholds === 'object') {
-                            th = Object.assign({}, thresholds, argThresholds);
-                            if (argThresholds.s != null && argThresholds.ss == null) {
-                                th.ss = argThresholds.s - 1;
-                            }
-                        }
+    // This function allows you to set the rounding function for relative time strings
+    function getSetRelativeTimeRounding(roundingFunction) {
+        if (roundingFunction === undefined) {
+            return round;
+        }
+        if (typeof roundingFunction === 'function') {
+            round = roundingFunction;
+            return true;
+        }
+        return false;
+    }
 
-                        locale = this.localeData();
-                        output = relativeTime$1(this, !withSuffix, th, locale);
+    // This function allows you to set a threshold for relative time strings
+    function getSetRelativeTimeThreshold(threshold, limit) {
+        if (thresholds[threshold] === undefined) {
+            return false;
+        }
+        if (limit === undefined) {
+            return thresholds[threshold];
+        }
+        thresholds[threshold] = limit;
+        if (threshold === 's') {
+            thresholds.ss = limit - 1;
+        }
+        return true;
+    }
 
-                        if (withSuffix) {
-                            output = locale.pastFuture(+this, output);
-                        }
+    function humanize(argWithSuffix, argThresholds) {
+        if (!this.isValid()) {
+            return this.localeData().invalidDate();
+        }
 
-                        return locale.postformat(output);
-                    }
+        var withSuffix = false,
+            th = thresholds,
+            locale,
+            output;
 
-                    var abs$1 = Math.abs;
+        if (typeof argWithSuffix === 'object') {
+            argThresholds = argWithSuffix;
+            argWithSuffix = false;
+        }
+        if (typeof argWithSuffix === 'boolean') {
+            withSuffix = argWithSuffix;
+        }
+        if (typeof argThresholds === 'object') {
+            th = Object.assign({}, thresholds, argThresholds);
+            if (argThresholds.s != null && argThresholds.ss == null) {
+                th.ss = argThresholds.s - 1;
+            }
+        }
 
-                    function sign(x) {
-                        return (x > 0) - (x < 0) || +x;
-                    }
+        locale = this.localeData();
+        output = relativeTime$1(this, !withSuffix, th, locale);
 
-                    function toISOString$1() {
-                        // for ISO strings we do not use the normal bubbling rules:
-                        //  * milliseconds bubble up until they become hours
-                        //  * days do not bubble at all
-                        //  * months bubble up until they become years
-                        // This is because there is no context-free conversion between hours and days
-                        // (think of clock changes)
-                        // and also not between days and months (28-31 days per month)
-                        if (!this.isValid()) {
-                            return this.localeData().invalidDate();
-                        }
+        if (withSuffix) {
+            output = locale.pastFuture(+this, output);
+        }
 
-                        var seconds = abs$1(this._milliseconds) / 1000,
-                            days = abs$1(this._days),
-                            months = abs$1(this._months),
-                            minutes,
-                            hours,
-                            years,
-                            s,
-                            total = this.asSeconds(),
-                            totalSign,
-                            ymSign,
-                            daysSign,
-                            hmsSign;
-
-                        if (!total) {
-                            // this is the same as C#'s (Noda) and python (isodate)...
-                            // but not other JS (goog.date)
-                            return 'P0D';
-                        }
+        return locale.postformat(output);
+    }
 
-                        // 3600 seconds -> 60 minutes -> 1 hour
-                        minutes = absFloor(seconds / 60);
-                        hours = absFloor(minutes / 60);
-                        seconds %= 60;
-                        minutes %= 60;
+    var abs$1 = Math.abs;
 
-                        // 12 months -> 1 year
-                        years = absFloor(months / 12);
-                        months %= 12;
+    function sign(x) {
+        return (x > 0) - (x < 0) || +x;
+    }
 
-                        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
-                        s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
+    function toISOString$1() {
+        // for ISO strings we do not use the normal bubbling rules:
+        //  * milliseconds bubble up until they become hours
+        //  * days do not bubble at all
+        //  * months bubble up until they become years
+        // This is because there is no context-free conversion between hours and days
+        // (think of clock changes)
+        // and also not between days and months (28-31 days per month)
+        if (!this.isValid()) {
+            return this.localeData().invalidDate();
+        }
 
-                        totalSign = total < 0 ? '-' : '';
-                        ymSign = sign(this._months) !== sign(total) ? '-' : '';
-                        daysSign = sign(this._days) !== sign(total) ? '-' : '';
-                        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
+        var seconds = abs$1(this._milliseconds) / 1000,
+            days = abs$1(this._days),
+            months = abs$1(this._months),
+            minutes,
+            hours,
+            years,
+            s,
+            total = this.asSeconds(),
+            totalSign,
+            ymSign,
+            daysSign,
+            hmsSign;
+
+        if (!total) {
+            // this is the same as C#'s (Noda) and python (isodate)...
+            // but not other JS (goog.date)
+            return 'P0D';
+        }
 
-                        return (
-                            totalSign +
-                            'P' +
-                            (years ? ymSign + years + 'Y' : '') +
-                            (months ? ymSign + months + 'M' : '') +
-                            (days ? daysSign + days + 'D' : '') +
-                            (hours || minutes || seconds ? 'T' : '') +
-                            (hours ? hmsSign + hours + 'H' : '') +
-                            (minutes ? hmsSign + minutes + 'M' : '') +
-                            (seconds ? hmsSign + s + 'S' : '')
-                        );
-                    }
+        // 3600 seconds -> 60 minutes -> 1 hour
+        minutes = absFloor(seconds / 60);
+        hours = absFloor(minutes / 60);
+        seconds %= 60;
+        minutes %= 60;
+
+        // 12 months -> 1 year
+        years = absFloor(months / 12);
+        months %= 12;
+
+        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
+        s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
+
+        totalSign = total < 0 ? '-' : '';
+        ymSign = sign(this._months) !== sign(total) ? '-' : '';
+        daysSign = sign(this._days) !== sign(total) ? '-' : '';
+        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
+
+        return (
+            totalSign +
+            'P' +
+            (years ? ymSign + years + 'Y' : '') +
+            (months ? ymSign + months + 'M' : '') +
+            (days ? daysSign + days + 'D' : '') +
+            (hours || minutes || seconds ? 'T' : '') +
+            (hours ? hmsSign + hours + 'H' : '') +
+            (minutes ? hmsSign + minutes + 'M' : '') +
+            (seconds ? hmsSign + s + 'S' : '')
+        );
+    }
 
-                    var proto$2 = Duration.prototype;
-
-                    proto$2.isValid = isValid$1;
-                    proto$2.abs = abs;
-                    proto$2.add = add$1;
-                    proto$2.subtract = subtract$1;
-                    proto$2.as = as;
-                    proto$2.asMilliseconds = asMilliseconds;
-                    proto$2.asSeconds = asSeconds;
-                    proto$2.asMinutes = asMinutes;
-                    proto$2.asHours = asHours;
-                    proto$2.asDays = asDays;
-                    proto$2.asWeeks = asWeeks;
-                    proto$2.asMonths = asMonths;
-                    proto$2.asQuarters = asQuarters;
-                    proto$2.asYears = asYears;
-                    proto$2.valueOf = valueOf$1;
-                    proto$2._bubble = bubble;
-                    proto$2.clone = clone$1;
-                    proto$2.get = get$2;
-                    proto$2.milliseconds = milliseconds;
-                    proto$2.seconds = seconds;
-                    proto$2.minutes = minutes;
-                    proto$2.hours = hours;
-                    proto$2.days = days;
-                    proto$2.weeks = weeks;
-                    proto$2.months = months;
-                    proto$2.years = years;
-                    proto$2.humanize = humanize;
-                    proto$2.toISOString = toISOString$1;
-                    proto$2.toString = toISOString$1;
-                    proto$2.toJSON = toISOString$1;
-                    proto$2.locale = locale;
-                    proto$2.localeData = localeData;
-
-                    proto$2.toIsoString = deprecate(
-                        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
-                        toISOString$1
-                    );
-                    proto$2.lang = lang;
-
-                    // FORMATTING
-
-                    addFormatToken('X', 0, 0, 'unix');
-                    addFormatToken('x', 0, 0, 'valueOf');
-
-                    // PARSING
-
-                    addRegexToken('x', matchSigned);
-                    addRegexToken('X', matchTimestamp);
-                    addParseToken('X', function (input, array, config) {
-                        config._d = new Date(parseFloat(input) * 1000);
-                    });
-                    addParseToken('x', function (input, array, config) {
-                        config._d = new Date(toInt(input));
-                    });
-
-                    //! moment.js
-
-                    hooks.version = '2.29.1';
-
-                    setHookCallback(createLocal);
-
-                    hooks.fn = proto;
-                    hooks.min = min;
-                    hooks.max = max;
-                    hooks.now = now;
-                    hooks.utc = createUTC;
-                    hooks.unix = createUnix;
-                    hooks.months = listMonths;
-                    hooks.isDate = isDate;
-                    hooks.locale = getSetGlobalLocale;
-                    hooks.invalid = createInvalid;
-                    hooks.duration = createDuration;
-                    hooks.isMoment = isMoment;
-                    hooks.weekdays = listWeekdays;
-                    hooks.parseZone = createInZone;
-                    hooks.localeData = getLocale;
-                    hooks.isDuration = isDuration;
-                    hooks.monthsShort = listMonthsShort;
-                    hooks.weekdaysMin = listWeekdaysMin;
-                    hooks.defineLocale = defineLocale;
-                    hooks.updateLocale = updateLocale;
-                    hooks.locales = listLocales;
-                    hooks.weekdaysShort = listWeekdaysShort;
-                    hooks.normalizeUnits = normalizeUnits;
-                    hooks.relativeTimeRounding = getSetRelativeTimeRounding;
-                    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
-                    hooks.calendarFormat = getCalendarFormat;
-                    hooks.prototype = proto;
-
-                    // currently HTML5 input type only supports 24-hour formats
-                    hooks.HTML5_FMT = {
-                        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
-                        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
-                        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
-                        DATE: 'YYYY-MM-DD', // <input type="date" />
-                        TIME: 'HH:mm', // <input type="time" />
-                        TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
-                        TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
-                        WEEK: 'GGGG-[W]WW', // <input type="week" />
-                        MONTH: 'YYYY-MM', // <input type="month" />
-                    };
-
-                    return hooks;
-
-                })));
-
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
-
-            /***/ }),
-
-        /***/ "./node_modules/popper.js/dist/esm/popper.js":
-        /*!***************************************************!*\
+    var proto$2 = Duration.prototype;
+
+    proto$2.isValid = isValid$1;
+    proto$2.abs = abs;
+    proto$2.add = add$1;
+    proto$2.subtract = subtract$1;
+    proto$2.as = as;
+    proto$2.asMilliseconds = asMilliseconds;
+    proto$2.asSeconds = asSeconds;
+    proto$2.asMinutes = asMinutes;
+    proto$2.asHours = asHours;
+    proto$2.asDays = asDays;
+    proto$2.asWeeks = asWeeks;
+    proto$2.asMonths = asMonths;
+    proto$2.asQuarters = asQuarters;
+    proto$2.asYears = asYears;
+    proto$2.valueOf = valueOf$1;
+    proto$2._bubble = bubble;
+    proto$2.clone = clone$1;
+    proto$2.get = get$2;
+    proto$2.milliseconds = milliseconds;
+    proto$2.seconds = seconds;
+    proto$2.minutes = minutes;
+    proto$2.hours = hours;
+    proto$2.days = days;
+    proto$2.weeks = weeks;
+    proto$2.months = months;
+    proto$2.years = years;
+    proto$2.humanize = humanize;
+    proto$2.toISOString = toISOString$1;
+    proto$2.toString = toISOString$1;
+    proto$2.toJSON = toISOString$1;
+    proto$2.locale = locale;
+    proto$2.localeData = localeData;
+
+    proto$2.toIsoString = deprecate(
+        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
+        toISOString$1
+    );
+    proto$2.lang = lang;
+
+    // FORMATTING
+
+    addFormatToken('X', 0, 0, 'unix');
+    addFormatToken('x', 0, 0, 'valueOf');
+
+    // PARSING
+
+    addRegexToken('x', matchSigned);
+    addRegexToken('X', matchTimestamp);
+    addParseToken('X', function (input, array, config) {
+        config._d = new Date(parseFloat(input) * 1000);
+    });
+    addParseToken('x', function (input, array, config) {
+        config._d = new Date(toInt(input));
+    });
+
+    //! moment.js
+
+    hooks.version = '2.29.1';
+
+    setHookCallback(createLocal);
+
+    hooks.fn = proto;
+    hooks.min = min;
+    hooks.max = max;
+    hooks.now = now;
+    hooks.utc = createUTC;
+    hooks.unix = createUnix;
+    hooks.months = listMonths;
+    hooks.isDate = isDate;
+    hooks.locale = getSetGlobalLocale;
+    hooks.invalid = createInvalid;
+    hooks.duration = createDuration;
+    hooks.isMoment = isMoment;
+    hooks.weekdays = listWeekdays;
+    hooks.parseZone = createInZone;
+    hooks.localeData = getLocale;
+    hooks.isDuration = isDuration;
+    hooks.monthsShort = listMonthsShort;
+    hooks.weekdaysMin = listWeekdaysMin;
+    hooks.defineLocale = defineLocale;
+    hooks.updateLocale = updateLocale;
+    hooks.locales = listLocales;
+    hooks.weekdaysShort = listWeekdaysShort;
+    hooks.normalizeUnits = normalizeUnits;
+    hooks.relativeTimeRounding = getSetRelativeTimeRounding;
+    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
+    hooks.calendarFormat = getCalendarFormat;
+    hooks.prototype = proto;
+
+    // currently HTML5 input type only supports 24-hour formats
+    hooks.HTML5_FMT = {
+        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
+        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
+        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
+        DATE: 'YYYY-MM-DD', // <input type="date" />
+        TIME: 'HH:mm', // <input type="time" />
+        TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
+        TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
+        WEEK: 'GGGG-[W]WW', // <input type="week" />
+        MONTH: 'YYYY-MM', // <input type="month" />
+    };
+
+    return hooks;
+
+})));
+
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
+
+/***/ }),
+
+/***/ "./node_modules/popper.js/dist/esm/popper.js":
+/*!***************************************************!*\
   !*** ./node_modules/popper.js/dist/esm/popper.js ***!
   \***************************************************/
-        /*! exports provided: default */
-        /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-            "use strict";
-            __webpack_require__.r(__webpack_exports__);
-            /* WEBPACK VAR INJECTION */(function(global) {/**!
-             * @fileOverview Kickass library to create and place poppers near their reference elements.
-             * @version 1.16.1
-             * @license
-             * Copyright (c) 2016 Federico Zivolo and contributors
-             *
-             * Permission is hereby granted, free of charge, to any person obtaining a copy
-             * of this software and associated documentation files (the "Software"), to deal
-             * in the Software without restriction, including without limitation the rights
-             * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-             * copies of the Software, and to permit persons to whom the Software is
-             * furnished to do so, subject to the following conditions:
-             *
-             * The above copyright notice and this permission notice shall be included in all
-             * copies or substantial portions of the Software.
-             *
-             * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-             * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-             * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-             * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-             * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-             * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-             * SOFTWARE.
-             */
-            var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
-
-                var timeoutDuration = function () {
-                    var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
-                    for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
-                        if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
-                            return 1;
-                        }
-                    }
-                    return 0;
-                }();
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* WEBPACK VAR INJECTION */(function(global) {/**!
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
+ * @version 1.16.1
+ * @license
+ * Copyright (c) 2016 Federico Zivolo and contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
 
-                function microtaskDebounce(fn) {
-                    var called = false;
-                    return function () {
-                        if (called) {
-                            return;
-                        }
-                        called = true;
-                        window.Promise.resolve().then(function () {
-                            called = false;
-                            fn();
-                        });
-                    };
-                }
+var timeoutDuration = function () {
+  var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
+  for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
+    if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
+      return 1;
+    }
+  }
+  return 0;
+}();
+
+function microtaskDebounce(fn) {
+  var called = false;
+  return function () {
+    if (called) {
+      return;
+    }
+    called = true;
+    window.Promise.resolve().then(function () {
+      called = false;
+      fn();
+    });
+  };
+}
+
+function taskDebounce(fn) {
+  var scheduled = false;
+  return function () {
+    if (!scheduled) {
+      scheduled = true;
+      setTimeout(function () {
+        scheduled = false;
+        fn();
+      }, timeoutDuration);
+    }
+  };
+}
+
+var supportsMicroTasks = isBrowser && window.Promise;
+
+/**
+* Create a debounced version of a method, that's asynchronously deferred
+* but called in the minimum time possible.
+*
+* @method
+* @memberof Popper.Utils
+* @argument {Function} fn
+* @returns {Function}
+*/
+var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;
 
-                function taskDebounce(fn) {
-                    var scheduled = false;
-                    return function () {
-                        if (!scheduled) {
-                            scheduled = true;
-                            setTimeout(function () {
-                                scheduled = false;
-                                fn();
-                            }, timeoutDuration);
-                        }
-                    };
-                }
+/**
+ * Check if the given variable is a function
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Any} functionToCheck - variable to check
+ * @returns {Boolean} answer to: is a function?
+ */
+function isFunction(functionToCheck) {
+  var getType = {};
+  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
+}
 
-                var supportsMicroTasks = isBrowser && window.Promise;
-
-                /**
-                 * Create a debounced version of a method, that's asynchronously deferred
-                 * but called in the minimum time possible.
-                 *
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Function} fn
-                 * @returns {Function}
-                 */
-                var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;
-
-                /**
-                 * Check if the given variable is a function
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Any} functionToCheck - variable to check
-                 * @returns {Boolean} answer to: is a function?
-                 */
-                function isFunction(functionToCheck) {
-                    var getType = {};
-                    return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
-                }
+/**
+ * Get CSS computed property of the given element
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Eement} element
+ * @argument {String} property
+ */
+function getStyleComputedProperty(element, property) {
+  if (element.nodeType !== 1) {
+    return [];
+  }
+  // NOTE: 1 DOM access here
+  var window = element.ownerDocument.defaultView;
+  var css = window.getComputedStyle(element, null);
+  return property ? css[property] : css;
+}
+
+/**
+ * Returns the parentNode or the host of the element
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @returns {Element} parent
+ */
+function getParentNode(element) {
+  if (element.nodeName === 'HTML') {
+    return element;
+  }
+  return element.parentNode || element.host;
+}
 
-                /**
-                 * Get CSS computed property of the given element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Eement} element
-                 * @argument {String} property
-                 */
-                function getStyleComputedProperty(element, property) {
-                    if (element.nodeType !== 1) {
-                        return [];
-                    }
-                    // NOTE: 1 DOM access here
-                    var window = element.ownerDocument.defaultView;
-                    var css = window.getComputedStyle(element, null);
-                    return property ? css[property] : css;
-                }
+/**
+ * Returns the scrolling parent of the given element
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @returns {Element} scroll parent
+ */
+function getScrollParent(element) {
+  // Return body, `getScroll` will take care to get the correct `scrollTop` from it
+  if (!element) {
+    return document.body;
+  }
 
-                /**
-                 * Returns the parentNode or the host of the element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @returns {Element} parent
-                 */
-                function getParentNode(element) {
-                    if (element.nodeName === 'HTML') {
-                        return element;
-                    }
-                    return element.parentNode || element.host;
-                }
+  switch (element.nodeName) {
+    case 'HTML':
+    case 'BODY':
+      return element.ownerDocument.body;
+    case '#document':
+      return element.body;
+  }
 
-                /**
-                 * Returns the scrolling parent of the given element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @returns {Element} scroll parent
-                 */
-                function getScrollParent(element) {
-                    // Return body, `getScroll` will take care to get the correct `scrollTop` from it
-                    if (!element) {
-                        return document.body;
-                    }
+  // Firefox want us to check `-x` and `-y` variations as well
 
-                    switch (element.nodeName) {
-                        case 'HTML':
-                        case 'BODY':
-                            return element.ownerDocument.body;
-                        case '#document':
-                            return element.body;
-                    }
+  var _getStyleComputedProp = getStyleComputedProperty(element),
+      overflow = _getStyleComputedProp.overflow,
+      overflowX = _getStyleComputedProp.overflowX,
+      overflowY = _getStyleComputedProp.overflowY;
 
-                    // Firefox want us to check `-x` and `-y` variations as well
+  if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
+    return element;
+  }
 
-                    var _getStyleComputedProp = getStyleComputedProperty(element),
-                        overflow = _getStyleComputedProp.overflow,
-                        overflowX = _getStyleComputedProp.overflowX,
-                        overflowY = _getStyleComputedProp.overflowY;
+  return getScrollParent(getParentNode(element));
+}
 
-                    if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
-                        return element;
-                    }
+/**
+ * Returns the reference node of the reference object, or the reference object itself.
+ * @method
+ * @memberof Popper.Utils
+ * @param {Element|Object} reference - the reference element (the popper will be relative to this)
+ * @returns {Element} parent
+ */
+function getReferenceNode(reference) {
+  return reference && reference.referenceNode ? reference.referenceNode : reference;
+}
 
-                    return getScrollParent(getParentNode(element));
-                }
+var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
+var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
 
-                /**
-                 * Returns the reference node of the reference object, or the reference object itself.
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {Element|Object} reference - the reference element (the popper will be relative to this)
-                 * @returns {Element} parent
-                 */
-                function getReferenceNode(reference) {
-                    return reference && reference.referenceNode ? reference.referenceNode : reference;
-                }
+/**
+ * Determines if the browser is Internet Explorer
+ * @method
+ * @memberof Popper.Utils
+ * @param {Number} version to check
+ * @returns {Boolean} isIE
+ */
+function isIE(version) {
+  if (version === 11) {
+    return isIE11;
+  }
+  if (version === 10) {
+    return isIE10;
+  }
+  return isIE11 || isIE10;
+}
 
-                var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
-                var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
-
-                /**
-                 * Determines if the browser is Internet Explorer
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {Number} version to check
-                 * @returns {Boolean} isIE
-                 */
-                function isIE(version) {
-                    if (version === 11) {
-                        return isIE11;
-                    }
-                    if (version === 10) {
-                        return isIE10;
-                    }
-                    return isIE11 || isIE10;
-                }
+/**
+ * Returns the offset parent of the given element
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @returns {Element} offset parent
+ */
+function getOffsetParent(element) {
+  if (!element) {
+    return document.documentElement;
+  }
 
-                /**
-                 * Returns the offset parent of the given element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @returns {Element} offset parent
-                 */
-                function getOffsetParent(element) {
-                    if (!element) {
-                        return document.documentElement;
-                    }
+  var noOffsetParent = isIE(10) ? document.body : null;
 
-                    var noOffsetParent = isIE(10) ? document.body : null;
+  // NOTE: 1 DOM access here
+  var offsetParent = element.offsetParent || null;
+  // Skip hidden elements which don't have an offsetParent
+  while (offsetParent === noOffsetParent && element.nextElementSibling) {
+    offsetParent = (element = element.nextElementSibling).offsetParent;
+  }
 
-                    // NOTE: 1 DOM access here
-                    var offsetParent = element.offsetParent || null;
-                    // Skip hidden elements which don't have an offsetParent
-                    while (offsetParent === noOffsetParent && element.nextElementSibling) {
-                        offsetParent = (element = element.nextElementSibling).offsetParent;
-                    }
+  var nodeName = offsetParent && offsetParent.nodeName;
 
-                    var nodeName = offsetParent && offsetParent.nodeName;
+  if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {
+    return element ? element.ownerDocument.documentElement : document.documentElement;
+  }
 
-                    if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {
-                        return element ? element.ownerDocument.documentElement : document.documentElement;
-                    }
+  // .offsetParent will return the closest TH, TD or TABLE in case
+  // no offsetParent is present, I hate this job...
+  if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
+    return getOffsetParent(offsetParent);
+  }
 
-                    // .offsetParent will return the closest TH, TD or TABLE in case
-                    // no offsetParent is present, I hate this job...
-                    if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
-                        return getOffsetParent(offsetParent);
-                    }
+  return offsetParent;
+}
 
-                    return offsetParent;
-                }
+function isOffsetContainer(element) {
+  var nodeName = element.nodeName;
 
-                function isOffsetContainer(element) {
-                    var nodeName = element.nodeName;
+  if (nodeName === 'BODY') {
+    return false;
+  }
+  return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;
+}
 
-                    if (nodeName === 'BODY') {
-                        return false;
-                    }
-                    return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;
-                }
+/**
+ * Finds the root node (document, shadowDOM root) of the given element
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} node
+ * @returns {Element} root node
+ */
+function getRoot(node) {
+  if (node.parentNode !== null) {
+    return getRoot(node.parentNode);
+  }
 
-                /**
-                 * Finds the root node (document, shadowDOM root) of the given element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} node
-                 * @returns {Element} root node
-                 */
-                function getRoot(node) {
-                    if (node.parentNode !== null) {
-                        return getRoot(node.parentNode);
-                    }
+  return node;
+}
 
-                    return node;
-                }
+/**
+ * Finds the offset parent common to the two provided nodes
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element1
+ * @argument {Element} element2
+ * @returns {Element} common offset parent
+ */
+function findCommonOffsetParent(element1, element2) {
+  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
+  if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {
+    return document.documentElement;
+  }
 
-                /**
-                 * Finds the offset parent common to the two provided nodes
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element1
-                 * @argument {Element} element2
-                 * @returns {Element} common offset parent
-                 */
-                function findCommonOffsetParent(element1, element2) {
-                    // This check is needed to avoid errors in case one of the elements isn't defined for any reason
-                    if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {
-                        return document.documentElement;
-                    }
+  // Here we make sure to give as "start" the element that comes first in the DOM
+  var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
+  var start = order ? element1 : element2;
+  var end = order ? element2 : element1;
 
-                    // Here we make sure to give as "start" the element that comes first in the DOM
-                    var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
-                    var start = order ? element1 : element2;
-                    var end = order ? element2 : element1;
+  // Get common ancestor container
+  var range = document.createRange();
+  range.setStart(start, 0);
+  range.setEnd(end, 0);
+  var commonAncestorContainer = range.commonAncestorContainer;
 
-                    // Get common ancestor container
-                    var range = document.createRange();
-                    range.setStart(start, 0);
-                    range.setEnd(end, 0);
-                    var commonAncestorContainer = range.commonAncestorContainer;
+  // Both nodes are inside #document
 
-                    // Both nodes are inside #document
+  if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {
+    if (isOffsetContainer(commonAncestorContainer)) {
+      return commonAncestorContainer;
+    }
 
-                    if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {
-                        if (isOffsetContainer(commonAncestorContainer)) {
-                            return commonAncestorContainer;
-                        }
+    return getOffsetParent(commonAncestorContainer);
+  }
 
-                        return getOffsetParent(commonAncestorContainer);
-                    }
+  // one of the nodes is inside shadowDOM, find which one
+  var element1root = getRoot(element1);
+  if (element1root.host) {
+    return findCommonOffsetParent(element1root.host, element2);
+  } else {
+    return findCommonOffsetParent(element1, getRoot(element2).host);
+  }
+}
 
-                    // one of the nodes is inside shadowDOM, find which one
-                    var element1root = getRoot(element1);
-                    if (element1root.host) {
-                        return findCommonOffsetParent(element1root.host, element2);
-                    } else {
-                        return findCommonOffsetParent(element1, getRoot(element2).host);
-                    }
-                }
+/**
+ * Gets the scroll value of the given element in the given side (top and left)
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @argument {String} side `top` or `left`
+ * @returns {number} amount of scrolled pixels
+ */
+function getScroll(element) {
+  var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';
 
-                /**
-                 * Gets the scroll value of the given element in the given side (top and left)
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @argument {String} side `top` or `left`
-                 * @returns {number} amount of scrolled pixels
-                 */
-                function getScroll(element) {
-                    var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';
-
-                    var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
-                    var nodeName = element.nodeName;
-
-                    if (nodeName === 'BODY' || nodeName === 'HTML') {
-                        var html = element.ownerDocument.documentElement;
-                        var scrollingElement = element.ownerDocument.scrollingElement || html;
-                        return scrollingElement[upperSide];
-                    }
+  var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
+  var nodeName = element.nodeName;
 
-                    return element[upperSide];
-                }
+  if (nodeName === 'BODY' || nodeName === 'HTML') {
+    var html = element.ownerDocument.documentElement;
+    var scrollingElement = element.ownerDocument.scrollingElement || html;
+    return scrollingElement[upperSide];
+  }
 
-                /*
+  return element[upperSide];
+}
+
+/*
  * Sum or subtract the element scroll values (left and top) from a given rect object
  * @method
  * @memberof Popper.Utils
@@ -119950,20 +119950,20 @@ THE SOFTWARE.
  * @param {Boolean} subtract - set to true if you want to subtract the scroll values
  * @return {Object} rect - The modifier rect object
  */
-                function includeScroll(rect, element) {
-                    var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
-
-                    var scrollTop = getScroll(element, 'top');
-                    var scrollLeft = getScroll(element, 'left');
-                    var modifier = subtract ? -1 : 1;
-                    rect.top += scrollTop * modifier;
-                    rect.bottom += scrollTop * modifier;
-                    rect.left += scrollLeft * modifier;
-                    rect.right += scrollLeft * modifier;
-                    return rect;
-                }
-
-                /*
+function includeScroll(rect, element) {
+  var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+
+  var scrollTop = getScroll(element, 'top');
+  var scrollLeft = getScroll(element, 'left');
+  var modifier = subtract ? -1 : 1;
+  rect.top += scrollTop * modifier;
+  rect.bottom += scrollTop * modifier;
+  rect.left += scrollLeft * modifier;
+  rect.right += scrollLeft * modifier;
+  return rect;
+}
+
+/*
  * Helper to detect borders of a given element
  * @method
  * @memberof Popper.Utils
@@ -119973,2885 +119973,2885 @@ THE SOFTWARE.
  * @return {number} borders - The borders size of the given axis
  */
 
-                function getBordersSize(styles, axis) {
-                    var sideA = axis === 'x' ? 'Left' : 'Top';
-                    var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
-
-                    return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
-                }
-
-                function getSize(axis, body, html, computedStyle) {
-                    return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
-                }
-
-                function getWindowSizes(document) {
-                    var body = document.body;
-                    var html = document.documentElement;
-                    var computedStyle = isIE(10) && getComputedStyle(html);
-
-                    return {
-                        height: getSize('Height', body, html, computedStyle),
-                        width: getSize('Width', body, html, computedStyle)
-                    };
-                }
-
-                var classCallCheck = function (instance, Constructor) {
-                    if (!(instance instanceof Constructor)) {
-                        throw new TypeError("Cannot call a class as a function");
-                    }
-                };
-
-                var createClass = function () {
-                    function defineProperties(target, props) {
-                        for (var i = 0; i < props.length; i++) {
-                            var descriptor = props[i];
-                            descriptor.enumerable = descriptor.enumerable || false;
-                            descriptor.configurable = true;
-                            if ("value" in descriptor) descriptor.writable = true;
-                            Object.defineProperty(target, descriptor.key, descriptor);
-                        }
-                    }
+function getBordersSize(styles, axis) {
+  var sideA = axis === 'x' ? 'Left' : 'Top';
+  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
 
-                    return function (Constructor, protoProps, staticProps) {
-                        if (protoProps) defineProperties(Constructor.prototype, protoProps);
-                        if (staticProps) defineProperties(Constructor, staticProps);
-                        return Constructor;
-                    };
-                }();
+  return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
+}
 
+function getSize(axis, body, html, computedStyle) {
+  return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
+}
 
+function getWindowSizes(document) {
+  var body = document.body;
+  var html = document.documentElement;
+  var computedStyle = isIE(10) && getComputedStyle(html);
 
+  return {
+    height: getSize('Height', body, html, computedStyle),
+    width: getSize('Width', body, html, computedStyle)
+  };
+}
 
+var classCallCheck = function (instance, Constructor) {
+  if (!(instance instanceof Constructor)) {
+    throw new TypeError("Cannot call a class as a function");
+  }
+};
+
+var createClass = function () {
+  function defineProperties(target, props) {
+    for (var i = 0; i < props.length; i++) {
+      var descriptor = props[i];
+      descriptor.enumerable = descriptor.enumerable || false;
+      descriptor.configurable = true;
+      if ("value" in descriptor) descriptor.writable = true;
+      Object.defineProperty(target, descriptor.key, descriptor);
+    }
+  }
 
-                var defineProperty = function (obj, key, value) {
-                    if (key in obj) {
-                        Object.defineProperty(obj, key, {
-                            value: value,
-                            enumerable: true,
-                            configurable: true,
-                            writable: true
-                        });
-                    } else {
-                        obj[key] = value;
-                    }
+  return function (Constructor, protoProps, staticProps) {
+    if (protoProps) defineProperties(Constructor.prototype, protoProps);
+    if (staticProps) defineProperties(Constructor, staticProps);
+    return Constructor;
+  };
+}();
 
-                    return obj;
-                };
 
-                var _extends = Object.assign || function (target) {
-                    for (var i = 1; i < arguments.length; i++) {
-                        var source = arguments[i];
 
-                        for (var key in source) {
-                            if (Object.prototype.hasOwnProperty.call(source, key)) {
-                                target[key] = source[key];
-                            }
-                        }
-                    }
 
-                    return target;
-                };
 
-                /**
-                 * Given element offsets, generate an output similar to getBoundingClientRect
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Object} offsets
-                 * @returns {Object} ClientRect like output
-                 */
-                function getClientRect(offsets) {
-                    return _extends({}, offsets, {
-                        right: offsets.left + offsets.width,
-                        bottom: offsets.top + offsets.height
-                    });
-                }
+var defineProperty = function (obj, key, value) {
+  if (key in obj) {
+    Object.defineProperty(obj, key, {
+      value: value,
+      enumerable: true,
+      configurable: true,
+      writable: true
+    });
+  } else {
+    obj[key] = value;
+  }
 
-                /**
-                 * Get bounding client rect of given element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {HTMLElement} element
-                 * @return {Object} client rect
-                 */
-                function getBoundingClientRect(element) {
-                    var rect = {};
-
-                    // IE10 10 FIX: Please, don't ask, the element isn't
-                    // considered in DOM in some circumstances...
-                    // This isn't reproducible in IE10 compatibility mode of IE11
-                    try {
-                        if (isIE(10)) {
-                            rect = element.getBoundingClientRect();
-                            var scrollTop = getScroll(element, 'top');
-                            var scrollLeft = getScroll(element, 'left');
-                            rect.top += scrollTop;
-                            rect.left += scrollLeft;
-                            rect.bottom += scrollTop;
-                            rect.right += scrollLeft;
-                        } else {
-                            rect = element.getBoundingClientRect();
-                        }
-                    } catch (e) {}
-
-                    var result = {
-                        left: rect.left,
-                        top: rect.top,
-                        width: rect.right - rect.left,
-                        height: rect.bottom - rect.top
-                    };
-
-                    // subtract scrollbar size from sizes
-                    var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
-                    var width = sizes.width || element.clientWidth || result.width;
-                    var height = sizes.height || element.clientHeight || result.height;
-
-                    var horizScrollbar = element.offsetWidth - width;
-                    var vertScrollbar = element.offsetHeight - height;
-
-                    // if an hypothetical scrollbar is detected, we must be sure it's not a `border`
-                    // we make this check conditional for performance reasons
-                    if (horizScrollbar || vertScrollbar) {
-                        var styles = getStyleComputedProperty(element);
-                        horizScrollbar -= getBordersSize(styles, 'x');
-                        vertScrollbar -= getBordersSize(styles, 'y');
-
-                        result.width -= horizScrollbar;
-                        result.height -= vertScrollbar;
-                    }
+  return obj;
+};
 
-                    return getClientRect(result);
-                }
+var _extends = Object.assign || function (target) {
+  for (var i = 1; i < arguments.length; i++) {
+    var source = arguments[i];
 
-                function getOffsetRectRelativeToArbitraryNode(children, parent) {
-                    var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+    for (var key in source) {
+      if (Object.prototype.hasOwnProperty.call(source, key)) {
+        target[key] = source[key];
+      }
+    }
+  }
 
-                    var isIE10 = isIE(10);
-                    var isHTML = parent.nodeName === 'HTML';
-                    var childrenRect = getBoundingClientRect(children);
-                    var parentRect = getBoundingClientRect(parent);
-                    var scrollParent = getScrollParent(children);
+  return target;
+};
 
-                    var styles = getStyleComputedProperty(parent);
-                    var borderTopWidth = parseFloat(styles.borderTopWidth);
-                    var borderLeftWidth = parseFloat(styles.borderLeftWidth);
+/**
+ * Given element offsets, generate an output similar to getBoundingClientRect
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Object} offsets
+ * @returns {Object} ClientRect like output
+ */
+function getClientRect(offsets) {
+  return _extends({}, offsets, {
+    right: offsets.left + offsets.width,
+    bottom: offsets.top + offsets.height
+  });
+}
+
+/**
+ * Get bounding client rect of given element
+ * @method
+ * @memberof Popper.Utils
+ * @param {HTMLElement} element
+ * @return {Object} client rect
+ */
+function getBoundingClientRect(element) {
+  var rect = {};
+
+  // IE10 10 FIX: Please, don't ask, the element isn't
+  // considered in DOM in some circumstances...
+  // This isn't reproducible in IE10 compatibility mode of IE11
+  try {
+    if (isIE(10)) {
+      rect = element.getBoundingClientRect();
+      var scrollTop = getScroll(element, 'top');
+      var scrollLeft = getScroll(element, 'left');
+      rect.top += scrollTop;
+      rect.left += scrollLeft;
+      rect.bottom += scrollTop;
+      rect.right += scrollLeft;
+    } else {
+      rect = element.getBoundingClientRect();
+    }
+  } catch (e) {}
+
+  var result = {
+    left: rect.left,
+    top: rect.top,
+    width: rect.right - rect.left,
+    height: rect.bottom - rect.top
+  };
+
+  // subtract scrollbar size from sizes
+  var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
+  var width = sizes.width || element.clientWidth || result.width;
+  var height = sizes.height || element.clientHeight || result.height;
+
+  var horizScrollbar = element.offsetWidth - width;
+  var vertScrollbar = element.offsetHeight - height;
+
+  // if an hypothetical scrollbar is detected, we must be sure it's not a `border`
+  // we make this check conditional for performance reasons
+  if (horizScrollbar || vertScrollbar) {
+    var styles = getStyleComputedProperty(element);
+    horizScrollbar -= getBordersSize(styles, 'x');
+    vertScrollbar -= getBordersSize(styles, 'y');
+
+    result.width -= horizScrollbar;
+    result.height -= vertScrollbar;
+  }
 
-                    // In cases where the parent is fixed, we must ignore negative scroll in offset calc
-                    if (fixedPosition && isHTML) {
-                        parentRect.top = Math.max(parentRect.top, 0);
-                        parentRect.left = Math.max(parentRect.left, 0);
-                    }
-                    var offsets = getClientRect({
-                        top: childrenRect.top - parentRect.top - borderTopWidth,
-                        left: childrenRect.left - parentRect.left - borderLeftWidth,
-                        width: childrenRect.width,
-                        height: childrenRect.height
-                    });
-                    offsets.marginTop = 0;
-                    offsets.marginLeft = 0;
-
-                    // Subtract margins of documentElement in case it's being used as parent
-                    // we do this only on HTML because it's the only element that behaves
-                    // differently when margins are applied to it. The margins are included in
-                    // the box of the documentElement, in the other cases not.
-                    if (!isIE10 && isHTML) {
-                        var marginTop = parseFloat(styles.marginTop);
-                        var marginLeft = parseFloat(styles.marginLeft);
-
-                        offsets.top -= borderTopWidth - marginTop;
-                        offsets.bottom -= borderTopWidth - marginTop;
-                        offsets.left -= borderLeftWidth - marginLeft;
-                        offsets.right -= borderLeftWidth - marginLeft;
-
-                        // Attach marginTop and marginLeft because in some circumstances we may need them
-                        offsets.marginTop = marginTop;
-                        offsets.marginLeft = marginLeft;
-                    }
+  return getClientRect(result);
+}
 
-                    if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {
-                        offsets = includeScroll(offsets, parent);
-                    }
+function getOffsetRectRelativeToArbitraryNode(children, parent) {
+  var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
-                    return offsets;
-                }
+  var isIE10 = isIE(10);
+  var isHTML = parent.nodeName === 'HTML';
+  var childrenRect = getBoundingClientRect(children);
+  var parentRect = getBoundingClientRect(parent);
+  var scrollParent = getScrollParent(children);
 
-                function getViewportOffsetRectRelativeToArtbitraryNode(element) {
-                    var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+  var styles = getStyleComputedProperty(parent);
+  var borderTopWidth = parseFloat(styles.borderTopWidth);
+  var borderLeftWidth = parseFloat(styles.borderLeftWidth);
 
-                    var html = element.ownerDocument.documentElement;
-                    var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
-                    var width = Math.max(html.clientWidth, window.innerWidth || 0);
-                    var height = Math.max(html.clientHeight, window.innerHeight || 0);
+  // In cases where the parent is fixed, we must ignore negative scroll in offset calc
+  if (fixedPosition && isHTML) {
+    parentRect.top = Math.max(parentRect.top, 0);
+    parentRect.left = Math.max(parentRect.left, 0);
+  }
+  var offsets = getClientRect({
+    top: childrenRect.top - parentRect.top - borderTopWidth,
+    left: childrenRect.left - parentRect.left - borderLeftWidth,
+    width: childrenRect.width,
+    height: childrenRect.height
+  });
+  offsets.marginTop = 0;
+  offsets.marginLeft = 0;
+
+  // Subtract margins of documentElement in case it's being used as parent
+  // we do this only on HTML because it's the only element that behaves
+  // differently when margins are applied to it. The margins are included in
+  // the box of the documentElement, in the other cases not.
+  if (!isIE10 && isHTML) {
+    var marginTop = parseFloat(styles.marginTop);
+    var marginLeft = parseFloat(styles.marginLeft);
+
+    offsets.top -= borderTopWidth - marginTop;
+    offsets.bottom -= borderTopWidth - marginTop;
+    offsets.left -= borderLeftWidth - marginLeft;
+    offsets.right -= borderLeftWidth - marginLeft;
+
+    // Attach marginTop and marginLeft because in some circumstances we may need them
+    offsets.marginTop = marginTop;
+    offsets.marginLeft = marginLeft;
+  }
 
-                    var scrollTop = !excludeScroll ? getScroll(html) : 0;
-                    var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;
+  if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {
+    offsets = includeScroll(offsets, parent);
+  }
 
-                    var offset = {
-                        top: scrollTop - relativeOffset.top + relativeOffset.marginTop,
-                        left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,
-                        width: width,
-                        height: height
-                    };
+  return offsets;
+}
 
-                    return getClientRect(offset);
-                }
+function getViewportOffsetRectRelativeToArtbitraryNode(element) {
+  var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
 
-                /**
-                 * Check if the given element is fixed or is inside a fixed parent
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @argument {Element} customContainer
-                 * @returns {Boolean} answer to "isFixed?"
-                 */
-                function isFixed(element) {
-                    var nodeName = element.nodeName;
-                    if (nodeName === 'BODY' || nodeName === 'HTML') {
-                        return false;
-                    }
-                    if (getStyleComputedProperty(element, 'position') === 'fixed') {
-                        return true;
-                    }
-                    var parentNode = getParentNode(element);
-                    if (!parentNode) {
-                        return false;
-                    }
-                    return isFixed(parentNode);
-                }
+  var html = element.ownerDocument.documentElement;
+  var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
+  var width = Math.max(html.clientWidth, window.innerWidth || 0);
+  var height = Math.max(html.clientHeight, window.innerHeight || 0);
 
-                /**
-                 * Finds the first parent of an element that has a transformed property defined
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @returns {Element} first transformed parent or documentElement
-                 */
-
-                function getFixedPositionOffsetParent(element) {
-                    // This check is needed to avoid errors in case one of the elements isn't defined for any reason
-                    if (!element || !element.parentElement || isIE()) {
-                        return document.documentElement;
-                    }
-                    var el = element.parentElement;
-                    while (el && getStyleComputedProperty(el, 'transform') === 'none') {
-                        el = el.parentElement;
-                    }
-                    return el || document.documentElement;
-                }
+  var scrollTop = !excludeScroll ? getScroll(html) : 0;
+  var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;
 
-                /**
-                 * Computed the boundaries limits and return them
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {HTMLElement} popper
-                 * @param {HTMLElement} reference
-                 * @param {number} padding
-                 * @param {HTMLElement} boundariesElement - Element used to define the boundaries
-                 * @param {Boolean} fixedPosition - Is in fixed position mode
-                 * @returns {Object} Coordinates of the boundaries
-                 */
-                function getBoundaries(popper, reference, padding, boundariesElement) {
-                    var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
-
-                    // NOTE: 1 DOM access here
-
-                    var boundaries = { top: 0, left: 0 };
-                    var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
-
-                    // Handle viewport case
-                    if (boundariesElement === 'viewport') {
-                        boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);
-                    } else {
-                        // Handle other cases based on DOM element used as boundaries
-                        var boundariesNode = void 0;
-                        if (boundariesElement === 'scrollParent') {
-                            boundariesNode = getScrollParent(getParentNode(reference));
-                            if (boundariesNode.nodeName === 'BODY') {
-                                boundariesNode = popper.ownerDocument.documentElement;
-                            }
-                        } else if (boundariesElement === 'window') {
-                            boundariesNode = popper.ownerDocument.documentElement;
-                        } else {
-                            boundariesNode = boundariesElement;
-                        }
+  var offset = {
+    top: scrollTop - relativeOffset.top + relativeOffset.marginTop,
+    left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,
+    width: width,
+    height: height
+  };
 
-                        var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
-
-                        // In case of HTML, we need a different computation
-                        if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
-                            var _getWindowSizes = getWindowSizes(popper.ownerDocument),
-                                height = _getWindowSizes.height,
-                                width = _getWindowSizes.width;
-
-                            boundaries.top += offsets.top - offsets.marginTop;
-                            boundaries.bottom = height + offsets.top;
-                            boundaries.left += offsets.left - offsets.marginLeft;
-                            boundaries.right = width + offsets.left;
-                        } else {
-                            // for all the other DOM elements, this one is good
-                            boundaries = offsets;
-                        }
-                    }
+  return getClientRect(offset);
+}
 
-                    // Add paddings
-                    padding = padding || 0;
-                    var isPaddingNumber = typeof padding === 'number';
-                    boundaries.left += isPaddingNumber ? padding : padding.left || 0;
-                    boundaries.top += isPaddingNumber ? padding : padding.top || 0;
-                    boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
-                    boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;
+/**
+ * Check if the given element is fixed or is inside a fixed parent
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @argument {Element} customContainer
+ * @returns {Boolean} answer to "isFixed?"
+ */
+function isFixed(element) {
+  var nodeName = element.nodeName;
+  if (nodeName === 'BODY' || nodeName === 'HTML') {
+    return false;
+  }
+  if (getStyleComputedProperty(element, 'position') === 'fixed') {
+    return true;
+  }
+  var parentNode = getParentNode(element);
+  if (!parentNode) {
+    return false;
+  }
+  return isFixed(parentNode);
+}
 
-                    return boundaries;
-                }
+/**
+ * Finds the first parent of an element that has a transformed property defined
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @returns {Element} first transformed parent or documentElement
+ */
 
-                function getArea(_ref) {
-                    var width = _ref.width,
-                        height = _ref.height;
+function getFixedPositionOffsetParent(element) {
+  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
+  if (!element || !element.parentElement || isIE()) {
+    return document.documentElement;
+  }
+  var el = element.parentElement;
+  while (el && getStyleComputedProperty(el, 'transform') === 'none') {
+    el = el.parentElement;
+  }
+  return el || document.documentElement;
+}
 
-                    return width * height;
-                }
+/**
+ * Computed the boundaries limits and return them
+ * @method
+ * @memberof Popper.Utils
+ * @param {HTMLElement} popper
+ * @param {HTMLElement} reference
+ * @param {number} padding
+ * @param {HTMLElement} boundariesElement - Element used to define the boundaries
+ * @param {Boolean} fixedPosition - Is in fixed position mode
+ * @returns {Object} Coordinates of the boundaries
+ */
+function getBoundaries(popper, reference, padding, boundariesElement) {
+  var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
+
+  // NOTE: 1 DOM access here
+
+  var boundaries = { top: 0, left: 0 };
+  var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
+
+  // Handle viewport case
+  if (boundariesElement === 'viewport') {
+    boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);
+  } else {
+    // Handle other cases based on DOM element used as boundaries
+    var boundariesNode = void 0;
+    if (boundariesElement === 'scrollParent') {
+      boundariesNode = getScrollParent(getParentNode(reference));
+      if (boundariesNode.nodeName === 'BODY') {
+        boundariesNode = popper.ownerDocument.documentElement;
+      }
+    } else if (boundariesElement === 'window') {
+      boundariesNode = popper.ownerDocument.documentElement;
+    } else {
+      boundariesNode = boundariesElement;
+    }
 
-                /**
-                 * Utility used to transform the `auto` placement to the placement with more
-                 * available space.
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
-                    var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
-
-                    if (placement.indexOf('auto') === -1) {
-                        return placement;
-                    }
+    var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
+
+    // In case of HTML, we need a different computation
+    if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
+      var _getWindowSizes = getWindowSizes(popper.ownerDocument),
+          height = _getWindowSizes.height,
+          width = _getWindowSizes.width;
+
+      boundaries.top += offsets.top - offsets.marginTop;
+      boundaries.bottom = height + offsets.top;
+      boundaries.left += offsets.left - offsets.marginLeft;
+      boundaries.right = width + offsets.left;
+    } else {
+      // for all the other DOM elements, this one is good
+      boundaries = offsets;
+    }
+  }
 
-                    var boundaries = getBoundaries(popper, reference, padding, boundariesElement);
-
-                    var rects = {
-                        top: {
-                            width: boundaries.width,
-                            height: refRect.top - boundaries.top
-                        },
-                        right: {
-                            width: boundaries.right - refRect.right,
-                            height: boundaries.height
-                        },
-                        bottom: {
-                            width: boundaries.width,
-                            height: boundaries.bottom - refRect.bottom
-                        },
-                        left: {
-                            width: refRect.left - boundaries.left,
-                            height: boundaries.height
-                        }
-                    };
+  // Add paddings
+  padding = padding || 0;
+  var isPaddingNumber = typeof padding === 'number';
+  boundaries.left += isPaddingNumber ? padding : padding.left || 0;
+  boundaries.top += isPaddingNumber ? padding : padding.top || 0;
+  boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
+  boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;
 
-                    var sortedAreas = Object.keys(rects).map(function (key) {
-                        return _extends({
-                            key: key
-                        }, rects[key], {
-                            area: getArea(rects[key])
-                        });
-                    }).sort(function (a, b) {
-                        return b.area - a.area;
-                    });
+  return boundaries;
+}
 
-                    var filteredAreas = sortedAreas.filter(function (_ref2) {
-                        var width = _ref2.width,
-                            height = _ref2.height;
-                        return width >= popper.clientWidth && height >= popper.clientHeight;
-                    });
+function getArea(_ref) {
+  var width = _ref.width,
+      height = _ref.height;
 
-                    var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
+  return width * height;
+}
 
-                    var variation = placement.split('-')[1];
+/**
+ * Utility used to transform the `auto` placement to the placement with more
+ * available space.
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
+  var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
 
-                    return computedPlacement + (variation ? '-' + variation : '');
-                }
+  if (placement.indexOf('auto') === -1) {
+    return placement;
+  }
 
-                /**
-                 * Get offsets to the reference element
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {Object} state
-                 * @param {Element} popper - the popper element
-                 * @param {Element} reference - the reference element (the popper will be relative to this)
-                 * @param {Element} fixedPosition - is in fixed position mode
-                 * @returns {Object} An object containing the offsets which will be applied to the popper
-                 */
-                function getReferenceOffsets(state, popper, reference) {
-                    var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
-
-                    var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
-                    return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
-                }
+  var boundaries = getBoundaries(popper, reference, padding, boundariesElement);
+
+  var rects = {
+    top: {
+      width: boundaries.width,
+      height: refRect.top - boundaries.top
+    },
+    right: {
+      width: boundaries.right - refRect.right,
+      height: boundaries.height
+    },
+    bottom: {
+      width: boundaries.width,
+      height: boundaries.bottom - refRect.bottom
+    },
+    left: {
+      width: refRect.left - boundaries.left,
+      height: boundaries.height
+    }
+  };
 
-                /**
-                 * Get the outer sizes of the given element (offset size + margins)
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element
-                 * @returns {Object} object containing width and height properties
-                 */
-                function getOuterSizes(element) {
-                    var window = element.ownerDocument.defaultView;
-                    var styles = window.getComputedStyle(element);
-                    var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
-                    var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
-                    var result = {
-                        width: element.offsetWidth + y,
-                        height: element.offsetHeight + x
-                    };
-                    return result;
-                }
+  var sortedAreas = Object.keys(rects).map(function (key) {
+    return _extends({
+      key: key
+    }, rects[key], {
+      area: getArea(rects[key])
+    });
+  }).sort(function (a, b) {
+    return b.area - a.area;
+  });
 
-                /**
-                 * Get the opposite placement of the given one
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {String} placement
-                 * @returns {String} flipped placement
-                 */
-                function getOppositePlacement(placement) {
-                    var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
-                    return placement.replace(/left|right|bottom|top/g, function (matched) {
-                        return hash[matched];
-                    });
-                }
+  var filteredAreas = sortedAreas.filter(function (_ref2) {
+    var width = _ref2.width,
+        height = _ref2.height;
+    return width >= popper.clientWidth && height >= popper.clientHeight;
+  });
 
-                /**
-                 * Get offsets to the popper
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {Object} position - CSS position the Popper will get applied
-                 * @param {HTMLElement} popper - the popper element
-                 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)
-                 * @param {String} placement - one of the valid placement options
-                 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper
-                 */
-                function getPopperOffsets(popper, referenceOffsets, placement) {
-                    placement = placement.split('-')[0];
-
-                    // Get popper node sizes
-                    var popperRect = getOuterSizes(popper);
-
-                    // Add position, width and height to our offsets object
-                    var popperOffsets = {
-                        width: popperRect.width,
-                        height: popperRect.height
-                    };
-
-                    // depending by the popper placement we have to compute its offsets slightly differently
-                    var isHoriz = ['right', 'left'].indexOf(placement) !== -1;
-                    var mainSide = isHoriz ? 'top' : 'left';
-                    var secondarySide = isHoriz ? 'left' : 'top';
-                    var measurement = isHoriz ? 'height' : 'width';
-                    var secondaryMeasurement = !isHoriz ? 'height' : 'width';
-
-                    popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
-                    if (placement === secondarySide) {
-                        popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];
-                    } else {
-                        popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];
-                    }
+  var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
 
-                    return popperOffsets;
-                }
+  var variation = placement.split('-')[1];
 
-                /**
-                 * Mimics the `find` method of Array
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Array} arr
-                 * @argument prop
-                 * @argument value
-                 * @returns index or -1
-                 */
-                function find(arr, check) {
-                    // use native find if supported
-                    if (Array.prototype.find) {
-                        return arr.find(check);
-                    }
+  return computedPlacement + (variation ? '-' + variation : '');
+}
 
-                    // use `filter` to obtain the same behavior of `find`
-                    return arr.filter(check)[0];
-                }
+/**
+ * Get offsets to the reference element
+ * @method
+ * @memberof Popper.Utils
+ * @param {Object} state
+ * @param {Element} popper - the popper element
+ * @param {Element} reference - the reference element (the popper will be relative to this)
+ * @param {Element} fixedPosition - is in fixed position mode
+ * @returns {Object} An object containing the offsets which will be applied to the popper
+ */
+function getReferenceOffsets(state, popper, reference) {
+  var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
 
-                /**
-                 * Return the index of the matching object
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Array} arr
-                 * @argument prop
-                 * @argument value
-                 * @returns index or -1
-                 */
-                function findIndex(arr, prop, value) {
-                    // use native findIndex if supported
-                    if (Array.prototype.findIndex) {
-                        return arr.findIndex(function (cur) {
-                            return cur[prop] === value;
-                        });
-                    }
+  var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
+  return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
+}
 
-                    // use `find` + `indexOf` if `findIndex` isn't supported
-                    var match = find(arr, function (obj) {
-                        return obj[prop] === value;
-                    });
-                    return arr.indexOf(match);
-                }
+/**
+ * Get the outer sizes of the given element (offset size + margins)
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element
+ * @returns {Object} object containing width and height properties
+ */
+function getOuterSizes(element) {
+  var window = element.ownerDocument.defaultView;
+  var styles = window.getComputedStyle(element);
+  var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
+  var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
+  var result = {
+    width: element.offsetWidth + y,
+    height: element.offsetHeight + x
+  };
+  return result;
+}
+
+/**
+ * Get the opposite placement of the given one
+ * @method
+ * @memberof Popper.Utils
+ * @argument {String} placement
+ * @returns {String} flipped placement
+ */
+function getOppositePlacement(placement) {
+  var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
+  return placement.replace(/left|right|bottom|top/g, function (matched) {
+    return hash[matched];
+  });
+}
+
+/**
+ * Get offsets to the popper
+ * @method
+ * @memberof Popper.Utils
+ * @param {Object} position - CSS position the Popper will get applied
+ * @param {HTMLElement} popper - the popper element
+ * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)
+ * @param {String} placement - one of the valid placement options
+ * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper
+ */
+function getPopperOffsets(popper, referenceOffsets, placement) {
+  placement = placement.split('-')[0];
+
+  // Get popper node sizes
+  var popperRect = getOuterSizes(popper);
+
+  // Add position, width and height to our offsets object
+  var popperOffsets = {
+    width: popperRect.width,
+    height: popperRect.height
+  };
+
+  // depending by the popper placement we have to compute its offsets slightly differently
+  var isHoriz = ['right', 'left'].indexOf(placement) !== -1;
+  var mainSide = isHoriz ? 'top' : 'left';
+  var secondarySide = isHoriz ? 'left' : 'top';
+  var measurement = isHoriz ? 'height' : 'width';
+  var secondaryMeasurement = !isHoriz ? 'height' : 'width';
+
+  popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
+  if (placement === secondarySide) {
+    popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];
+  } else {
+    popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];
+  }
 
-                /**
-                 * Loop trough the list of modifiers and run them in order,
-                 * each of them will then edit the data object.
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {dataObject} data
-                 * @param {Array} modifiers
-                 * @param {String} ends - Optional modifier name used as stopper
-                 * @returns {dataObject}
-                 */
-                function runModifiers(modifiers, data, ends) {
-                    var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));
-
-                    modifiersToRun.forEach(function (modifier) {
-                        if (modifier['function']) {
-                            // eslint-disable-line dot-notation
-                            console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
-                        }
-                        var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
-                        if (modifier.enabled && isFunction(fn)) {
-                            // Add properties to offsets to make them a complete clientRect object
-                            // we do this before each modifier to make sure the previous one doesn't
-                            // mess with these values
-                            data.offsets.popper = getClientRect(data.offsets.popper);
-                            data.offsets.reference = getClientRect(data.offsets.reference);
-
-                            data = fn(data, modifier);
-                        }
-                    });
+  return popperOffsets;
+}
 
-                    return data;
-                }
+/**
+ * Mimics the `find` method of Array
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Array} arr
+ * @argument prop
+ * @argument value
+ * @returns index or -1
+ */
+function find(arr, check) {
+  // use native find if supported
+  if (Array.prototype.find) {
+    return arr.find(check);
+  }
 
-                /**
-                 * Updates the position of the popper, computing the new offsets and applying
-                 * the new style.<br />
-                 * Prefer `scheduleUpdate` over `update` because of performance reasons.
-                 * @method
-                 * @memberof Popper
-                 */
-                function update() {
-                    // if popper is destroyed, don't perform any further update
-                    if (this.state.isDestroyed) {
-                        return;
-                    }
+  // use `filter` to obtain the same behavior of `find`
+  return arr.filter(check)[0];
+}
 
-                    var data = {
-                        instance: this,
-                        styles: {},
-                        arrowStyles: {},
-                        attributes: {},
-                        flipped: false,
-                        offsets: {}
-                    };
+/**
+ * Return the index of the matching object
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Array} arr
+ * @argument prop
+ * @argument value
+ * @returns index or -1
+ */
+function findIndex(arr, prop, value) {
+  // use native findIndex if supported
+  if (Array.prototype.findIndex) {
+    return arr.findIndex(function (cur) {
+      return cur[prop] === value;
+    });
+  }
 
-                    // compute reference element offsets
-                    data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);
+  // use `find` + `indexOf` if `findIndex` isn't supported
+  var match = find(arr, function (obj) {
+    return obj[prop] === value;
+  });
+  return arr.indexOf(match);
+}
 
-                    // compute auto placement, store placement inside the data object,
-                    // modifiers will be able to edit `placement` if needed
-                    // and refer to originalPlacement to know the original value
-                    data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);
+/**
+ * Loop trough the list of modifiers and run them in order,
+ * each of them will then edit the data object.
+ * @method
+ * @memberof Popper.Utils
+ * @param {dataObject} data
+ * @param {Array} modifiers
+ * @param {String} ends - Optional modifier name used as stopper
+ * @returns {dataObject}
+ */
+function runModifiers(modifiers, data, ends) {
+  var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));
 
-                    // store the computed placement inside `originalPlacement`
-                    data.originalPlacement = data.placement;
+  modifiersToRun.forEach(function (modifier) {
+    if (modifier['function']) {
+      // eslint-disable-line dot-notation
+      console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
+    }
+    var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
+    if (modifier.enabled && isFunction(fn)) {
+      // Add properties to offsets to make them a complete clientRect object
+      // we do this before each modifier to make sure the previous one doesn't
+      // mess with these values
+      data.offsets.popper = getClientRect(data.offsets.popper);
+      data.offsets.reference = getClientRect(data.offsets.reference);
+
+      data = fn(data, modifier);
+    }
+  });
 
-                    data.positionFixed = this.options.positionFixed;
+  return data;
+}
 
-                    // compute the popper offsets
-                    data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);
+/**
+ * Updates the position of the popper, computing the new offsets and applying
+ * the new style.<br />
+ * Prefer `scheduleUpdate` over `update` because of performance reasons.
+ * @method
+ * @memberof Popper
+ */
+function update() {
+  // if popper is destroyed, don't perform any further update
+  if (this.state.isDestroyed) {
+    return;
+  }
 
-                    data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';
+  var data = {
+    instance: this,
+    styles: {},
+    arrowStyles: {},
+    attributes: {},
+    flipped: false,
+    offsets: {}
+  };
 
-                    // run the modifiers
-                    data = runModifiers(this.modifiers, data);
+  // compute reference element offsets
+  data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);
 
-                    // the first `update` will call `onCreate` callback
-                    // the other ones will call `onUpdate` callback
-                    if (!this.state.isCreated) {
-                        this.state.isCreated = true;
-                        this.options.onCreate(data);
-                    } else {
-                        this.options.onUpdate(data);
-                    }
-                }
+  // compute auto placement, store placement inside the data object,
+  // modifiers will be able to edit `placement` if needed
+  // and refer to originalPlacement to know the original value
+  data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);
 
-                /**
-                 * Helper used to know if the given modifier is enabled.
-                 * @method
-                 * @memberof Popper.Utils
-                 * @returns {Boolean}
-                 */
-                function isModifierEnabled(modifiers, modifierName) {
-                    return modifiers.some(function (_ref) {
-                        var name = _ref.name,
-                            enabled = _ref.enabled;
-                        return enabled && name === modifierName;
-                    });
-                }
+  // store the computed placement inside `originalPlacement`
+  data.originalPlacement = data.placement;
 
-                /**
-                 * Get the prefixed supported property name
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {String} property (camelCase)
-                 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)
-                 */
-                function getSupportedPropertyName(property) {
-                    var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
-                    var upperProp = property.charAt(0).toUpperCase() + property.slice(1);
-
-                    for (var i = 0; i < prefixes.length; i++) {
-                        var prefix = prefixes[i];
-                        var toCheck = prefix ? '' + prefix + upperProp : property;
-                        if (typeof document.body.style[toCheck] !== 'undefined') {
-                            return toCheck;
-                        }
-                    }
-                    return null;
-                }
+  data.positionFixed = this.options.positionFixed;
 
-                /**
-                 * Destroys the popper.
-                 * @method
-                 * @memberof Popper
-                 */
-                function destroy() {
-                    this.state.isDestroyed = true;
-
-                    // touch DOM only if `applyStyle` modifier is enabled
-                    if (isModifierEnabled(this.modifiers, 'applyStyle')) {
-                        this.popper.removeAttribute('x-placement');
-                        this.popper.style.position = '';
-                        this.popper.style.top = '';
-                        this.popper.style.left = '';
-                        this.popper.style.right = '';
-                        this.popper.style.bottom = '';
-                        this.popper.style.willChange = '';
-                        this.popper.style[getSupportedPropertyName('transform')] = '';
-                    }
+  // compute the popper offsets
+  data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);
 
-                    this.disableEventListeners();
+  data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';
 
-                    // remove the popper if user explicitly asked for the deletion on destroy
-                    // do not use `remove` because IE11 doesn't support it
-                    if (this.options.removeOnDestroy) {
-                        this.popper.parentNode.removeChild(this.popper);
-                    }
-                    return this;
-                }
+  // run the modifiers
+  data = runModifiers(this.modifiers, data);
 
-                /**
-                 * Get the window associated with the element
-                 * @argument {Element} element
-                 * @returns {Window}
-                 */
-                function getWindow(element) {
-                    var ownerDocument = element.ownerDocument;
-                    return ownerDocument ? ownerDocument.defaultView : window;
-                }
+  // the first `update` will call `onCreate` callback
+  // the other ones will call `onUpdate` callback
+  if (!this.state.isCreated) {
+    this.state.isCreated = true;
+    this.options.onCreate(data);
+  } else {
+    this.options.onUpdate(data);
+  }
+}
+
+/**
+ * Helper used to know if the given modifier is enabled.
+ * @method
+ * @memberof Popper.Utils
+ * @returns {Boolean}
+ */
+function isModifierEnabled(modifiers, modifierName) {
+  return modifiers.some(function (_ref) {
+    var name = _ref.name,
+        enabled = _ref.enabled;
+    return enabled && name === modifierName;
+  });
+}
+
+/**
+ * Get the prefixed supported property name
+ * @method
+ * @memberof Popper.Utils
+ * @argument {String} property (camelCase)
+ * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)
+ */
+function getSupportedPropertyName(property) {
+  var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
+  var upperProp = property.charAt(0).toUpperCase() + property.slice(1);
+
+  for (var i = 0; i < prefixes.length; i++) {
+    var prefix = prefixes[i];
+    var toCheck = prefix ? '' + prefix + upperProp : property;
+    if (typeof document.body.style[toCheck] !== 'undefined') {
+      return toCheck;
+    }
+  }
+  return null;
+}
 
-                function attachToScrollParents(scrollParent, event, callback, scrollParents) {
-                    var isBody = scrollParent.nodeName === 'BODY';
-                    var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
-                    target.addEventListener(event, callback, { passive: true });
+/**
+ * Destroys the popper.
+ * @method
+ * @memberof Popper
+ */
+function destroy() {
+  this.state.isDestroyed = true;
+
+  // touch DOM only if `applyStyle` modifier is enabled
+  if (isModifierEnabled(this.modifiers, 'applyStyle')) {
+    this.popper.removeAttribute('x-placement');
+    this.popper.style.position = '';
+    this.popper.style.top = '';
+    this.popper.style.left = '';
+    this.popper.style.right = '';
+    this.popper.style.bottom = '';
+    this.popper.style.willChange = '';
+    this.popper.style[getSupportedPropertyName('transform')] = '';
+  }
 
-                    if (!isBody) {
-                        attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);
-                    }
-                    scrollParents.push(target);
-                }
+  this.disableEventListeners();
 
-                /**
-                 * Setup needed event listeners used to update the popper position
-                 * @method
-                 * @memberof Popper.Utils
-                 * @private
-                 */
-                function setupEventListeners(reference, options, state, updateBound) {
-                    // Resize event listener on window
-                    state.updateBound = updateBound;
-                    getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });
-
-                    // Scroll event listener on scroll parents
-                    var scrollElement = getScrollParent(reference);
-                    attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);
-                    state.scrollElement = scrollElement;
-                    state.eventsEnabled = true;
-
-                    return state;
-                }
+  // remove the popper if user explicitly asked for the deletion on destroy
+  // do not use `remove` because IE11 doesn't support it
+  if (this.options.removeOnDestroy) {
+    this.popper.parentNode.removeChild(this.popper);
+  }
+  return this;
+}
 
-                /**
-                 * It will add resize/scroll events and start recalculating
-                 * position of the popper element when they are triggered.
-                 * @method
-                 * @memberof Popper
-                 */
-                function enableEventListeners() {
-                    if (!this.state.eventsEnabled) {
-                        this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);
-                    }
-                }
+/**
+ * Get the window associated with the element
+ * @argument {Element} element
+ * @returns {Window}
+ */
+function getWindow(element) {
+  var ownerDocument = element.ownerDocument;
+  return ownerDocument ? ownerDocument.defaultView : window;
+}
+
+function attachToScrollParents(scrollParent, event, callback, scrollParents) {
+  var isBody = scrollParent.nodeName === 'BODY';
+  var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
+  target.addEventListener(event, callback, { passive: true });
+
+  if (!isBody) {
+    attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);
+  }
+  scrollParents.push(target);
+}
 
-                /**
-                 * Remove event listeners used to update the popper position
-                 * @method
-                 * @memberof Popper.Utils
-                 * @private
-                 */
-                function removeEventListeners(reference, state) {
-                    // Remove resize event listener on window
-                    getWindow(reference).removeEventListener('resize', state.updateBound);
-
-                    // Remove scroll event listener on scroll parents
-                    state.scrollParents.forEach(function (target) {
-                        target.removeEventListener('scroll', state.updateBound);
-                    });
-
-                    // Reset state
-                    state.updateBound = null;
-                    state.scrollParents = [];
-                    state.scrollElement = null;
-                    state.eventsEnabled = false;
-                    return state;
-                }
+/**
+ * Setup needed event listeners used to update the popper position
+ * @method
+ * @memberof Popper.Utils
+ * @private
+ */
+function setupEventListeners(reference, options, state, updateBound) {
+  // Resize event listener on window
+  state.updateBound = updateBound;
+  getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });
+
+  // Scroll event listener on scroll parents
+  var scrollElement = getScrollParent(reference);
+  attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);
+  state.scrollElement = scrollElement;
+  state.eventsEnabled = true;
+
+  return state;
+}
+
+/**
+ * It will add resize/scroll events and start recalculating
+ * position of the popper element when they are triggered.
+ * @method
+ * @memberof Popper
+ */
+function enableEventListeners() {
+  if (!this.state.eventsEnabled) {
+    this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);
+  }
+}
 
-                /**
-                 * It will remove resize/scroll events and won't recalculate popper position
-                 * when they are triggered. It also won't trigger `onUpdate` callback anymore,
-                 * unless you call `update` method manually.
-                 * @method
-                 * @memberof Popper
-                 */
-                function disableEventListeners() {
-                    if (this.state.eventsEnabled) {
-                        cancelAnimationFrame(this.scheduleUpdate);
-                        this.state = removeEventListeners(this.reference, this.state);
-                    }
-                }
+/**
+ * Remove event listeners used to update the popper position
+ * @method
+ * @memberof Popper.Utils
+ * @private
+ */
+function removeEventListeners(reference, state) {
+  // Remove resize event listener on window
+  getWindow(reference).removeEventListener('resize', state.updateBound);
+
+  // Remove scroll event listener on scroll parents
+  state.scrollParents.forEach(function (target) {
+    target.removeEventListener('scroll', state.updateBound);
+  });
+
+  // Reset state
+  state.updateBound = null;
+  state.scrollParents = [];
+  state.scrollElement = null;
+  state.eventsEnabled = false;
+  return state;
+}
+
+/**
+ * It will remove resize/scroll events and won't recalculate popper position
+ * when they are triggered. It also won't trigger `onUpdate` callback anymore,
+ * unless you call `update` method manually.
+ * @method
+ * @memberof Popper
+ */
+function disableEventListeners() {
+  if (this.state.eventsEnabled) {
+    cancelAnimationFrame(this.scheduleUpdate);
+    this.state = removeEventListeners(this.reference, this.state);
+  }
+}
 
-                /**
-                 * Tells if a given input is a number
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {*} input to check
-                 * @return {Boolean}
-                 */
-                function isNumeric(n) {
-                    return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
-                }
+/**
+ * Tells if a given input is a number
+ * @method
+ * @memberof Popper.Utils
+ * @param {*} input to check
+ * @return {Boolean}
+ */
+function isNumeric(n) {
+  return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
+}
 
-                /**
-                 * Set the style to the given popper
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element - Element to apply the style to
-                 * @argument {Object} styles
-                 * Object with a list of properties and values which will be applied to the element
-                 */
-                function setStyles(element, styles) {
-                    Object.keys(styles).forEach(function (prop) {
-                        var unit = '';
-                        // add unit if the value is numeric and is one of the following
-                        if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {
-                            unit = 'px';
-                        }
-                        element.style[prop] = styles[prop] + unit;
-                    });
-                }
+/**
+ * Set the style to the given popper
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element - Element to apply the style to
+ * @argument {Object} styles
+ * Object with a list of properties and values which will be applied to the element
+ */
+function setStyles(element, styles) {
+  Object.keys(styles).forEach(function (prop) {
+    var unit = '';
+    // add unit if the value is numeric and is one of the following
+    if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {
+      unit = 'px';
+    }
+    element.style[prop] = styles[prop] + unit;
+  });
+}
 
-                /**
-                 * Set the attributes to the given popper
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {Element} element - Element to apply the attributes to
-                 * @argument {Object} styles
-                 * Object with a list of properties and values which will be applied to the element
-                 */
-                function setAttributes(element, attributes) {
-                    Object.keys(attributes).forEach(function (prop) {
-                        var value = attributes[prop];
-                        if (value !== false) {
-                            element.setAttribute(prop, attributes[prop]);
-                        } else {
-                            element.removeAttribute(prop);
-                        }
-                    });
-                }
+/**
+ * Set the attributes to the given popper
+ * @method
+ * @memberof Popper.Utils
+ * @argument {Element} element - Element to apply the attributes to
+ * @argument {Object} styles
+ * Object with a list of properties and values which will be applied to the element
+ */
+function setAttributes(element, attributes) {
+  Object.keys(attributes).forEach(function (prop) {
+    var value = attributes[prop];
+    if (value !== false) {
+      element.setAttribute(prop, attributes[prop]);
+    } else {
+      element.removeAttribute(prop);
+    }
+  });
+}
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Object} data.styles - List of style properties - values to apply to popper element
+ * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The same data object
+ */
+function applyStyle(data) {
+  // any property present in `data.styles` will be applied to the popper,
+  // in this way we can make the 3rd party modifiers add custom styles to it
+  // Be aware, modifiers could override the properties defined in the previous
+  // lines of this modifier!
+  setStyles(data.instance.popper, data.styles);
+
+  // any property present in `data.attributes` will be applied to the popper,
+  // they will be set as HTML attributes of the element
+  setAttributes(data.instance.popper, data.attributes);
+
+  // if arrowElement is defined and arrowStyles has some properties
+  if (data.arrowElement && Object.keys(data.arrowStyles).length) {
+    setStyles(data.arrowElement, data.arrowStyles);
+  }
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Object} data.styles - List of style properties - values to apply to popper element
-                 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The same data object
-                 */
-                function applyStyle(data) {
-                    // any property present in `data.styles` will be applied to the popper,
-                    // in this way we can make the 3rd party modifiers add custom styles to it
-                    // Be aware, modifiers could override the properties defined in the previous
-                    // lines of this modifier!
-                    setStyles(data.instance.popper, data.styles);
-
-                    // any property present in `data.attributes` will be applied to the popper,
-                    // they will be set as HTML attributes of the element
-                    setAttributes(data.instance.popper, data.attributes);
-
-                    // if arrowElement is defined and arrowStyles has some properties
-                    if (data.arrowElement && Object.keys(data.arrowStyles).length) {
-                        setStyles(data.arrowElement, data.arrowStyles);
-                    }
+  return data;
+}
 
-                    return data;
-                }
+/**
+ * Set the x-placement attribute before everything else because it could be used
+ * to add margins to the popper margins needs to be calculated to get the
+ * correct popper offsets.
+ * @method
+ * @memberof Popper.modifiers
+ * @param {HTMLElement} reference - The reference element used to position the popper
+ * @param {HTMLElement} popper - The HTML element used as popper
+ * @param {Object} options - Popper.js options
+ */
+function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
+  // compute reference element offsets
+  var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);
 
-                /**
-                 * Set the x-placement attribute before everything else because it could be used
-                 * to add margins to the popper margins needs to be calculated to get the
-                 * correct popper offsets.
-                 * @method
-                 * @memberof Popper.modifiers
-                 * @param {HTMLElement} reference - The reference element used to position the popper
-                 * @param {HTMLElement} popper - The HTML element used as popper
-                 * @param {Object} options - Popper.js options
-                 */
-                function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
-                    // compute reference element offsets
-                    var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);
-
-                    // compute auto placement, store placement inside the data object,
-                    // modifiers will be able to edit `placement` if needed
-                    // and refer to originalPlacement to know the original value
-                    var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);
-
-                    popper.setAttribute('x-placement', placement);
-
-                    // Apply `position` to popper before anything else because
-                    // without the position applied we can't guarantee correct computations
-                    setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });
-
-                    return options;
-                }
+  // compute auto placement, store placement inside the data object,
+  // modifiers will be able to edit `placement` if needed
+  // and refer to originalPlacement to know the original value
+  var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);
 
-                /**
-                 * @function
-                 * @memberof Popper.Utils
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Boolean} shouldRound - If the offsets should be rounded at all
-                 * @returns {Object} The popper's position offsets rounded
-                 *
-                 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as
-                 * good as it can be within reason.
-                 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715
-                 *
-                 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari
-                 * as well on High DPI screens).
-                 *
-                 * Firefox prefers no rounding for positioning and does not have blurriness on
-                 * high DPI screens.
-                 *
-                 * Only horizontal placement and left/right values need to be considered.
-                 */
-                function getRoundedOffsets(data, shouldRound) {
-                    var _data$offsets = data.offsets,
-                        popper = _data$offsets.popper,
-                        reference = _data$offsets.reference;
-                    var round = Math.round,
-                        floor = Math.floor;
-
-                    var noRound = function noRound(v) {
-                        return v;
-                    };
-
-                    var referenceWidth = round(reference.width);
-                    var popperWidth = round(popper.width);
-
-                    var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
-                    var isVariation = data.placement.indexOf('-') !== -1;
-                    var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
-                    var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
-
-                    var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
-                    var verticalToInteger = !shouldRound ? noRound : round;
-
-                    return {
-                        left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
-                        top: verticalToInteger(popper.top),
-                        bottom: verticalToInteger(popper.bottom),
-                        right: horizontalToInteger(popper.right)
-                    };
-                }
+  popper.setAttribute('x-placement', placement);
 
-                var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
-
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function computeStyle(data, options) {
-                    var x = options.x,
-                        y = options.y;
-                    var popper = data.offsets.popper;
-
-                    // Remove this legacy support in Popper.js v2
-
-                    var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
-                        return modifier.name === 'applyStyle';
-                    }).gpuAcceleration;
-                    if (legacyGpuAccelerationOption !== undefined) {
-                        console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
-                    }
-                    var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;
-
-                    var offsetParent = getOffsetParent(data.instance.popper);
-                    var offsetParentRect = getBoundingClientRect(offsetParent);
-
-                    // Styles
-                    var styles = {
-                        position: popper.position
-                    };
-
-                    var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
-
-                    var sideA = x === 'bottom' ? 'top' : 'bottom';
-                    var sideB = y === 'right' ? 'left' : 'right';
-
-                    // if gpuAcceleration is set to `true` and transform is supported,
-                    //  we use `translate3d` to apply the position to the popper we
-                    // automatically use the supported prefixed version if needed
-                    var prefixedProperty = getSupportedPropertyName('transform');
-
-                    // now, let's make a step back and look at this code closely (wtf?)
-                    // If the content of the popper grows once it's been positioned, it
-                    // may happen that the popper gets misplaced because of the new content
-                    // overflowing its reference element
-                    // To avoid this problem, we provide two options (x and y), which allow
-                    // the consumer to define the offset origin.
-                    // If we position a popper on top of a reference element, we can set
-                    // `x` to `top` to make the popper grow towards its top instead of
-                    // its bottom.
-                    var left = void 0,
-                        top = void 0;
-                    if (sideA === 'bottom') {
-                        // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
-                        // and not the bottom of the html element
-                        if (offsetParent.nodeName === 'HTML') {
-                            top = -offsetParent.clientHeight + offsets.bottom;
-                        } else {
-                            top = -offsetParentRect.height + offsets.bottom;
-                        }
-                    } else {
-                        top = offsets.top;
-                    }
-                    if (sideB === 'right') {
-                        if (offsetParent.nodeName === 'HTML') {
-                            left = -offsetParent.clientWidth + offsets.right;
-                        } else {
-                            left = -offsetParentRect.width + offsets.right;
-                        }
-                    } else {
-                        left = offsets.left;
-                    }
-                    if (gpuAcceleration && prefixedProperty) {
-                        styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
-                        styles[sideA] = 0;
-                        styles[sideB] = 0;
-                        styles.willChange = 'transform';
-                    } else {
-                        // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties
-                        var invertTop = sideA === 'bottom' ? -1 : 1;
-                        var invertLeft = sideB === 'right' ? -1 : 1;
-                        styles[sideA] = top * invertTop;
-                        styles[sideB] = left * invertLeft;
-                        styles.willChange = sideA + ', ' + sideB;
-                    }
+  // Apply `position` to popper before anything else because
+  // without the position applied we can't guarantee correct computations
+  setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });
+
+  return options;
+}
 
-                    // Attributes
-                    var attributes = {
-                        'x-placement': data.placement
-                    };
+/**
+ * @function
+ * @memberof Popper.Utils
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Boolean} shouldRound - If the offsets should be rounded at all
+ * @returns {Object} The popper's position offsets rounded
+ *
+ * The tale of pixel-perfect positioning. It's still not 100% perfect, but as
+ * good as it can be within reason.
+ * Discussion here: https://github.com/FezVrasta/popper.js/pull/715
+ *
+ * Low DPI screens cause a popper to be blurry if not using full pixels (Safari
+ * as well on High DPI screens).
+ *
+ * Firefox prefers no rounding for positioning and does not have blurriness on
+ * high DPI screens.
+ *
+ * Only horizontal placement and left/right values need to be considered.
+ */
+function getRoundedOffsets(data, shouldRound) {
+  var _data$offsets = data.offsets,
+      popper = _data$offsets.popper,
+      reference = _data$offsets.reference;
+  var round = Math.round,
+      floor = Math.floor;
+
+  var noRound = function noRound(v) {
+    return v;
+  };
+
+  var referenceWidth = round(reference.width);
+  var popperWidth = round(popper.width);
+
+  var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
+  var isVariation = data.placement.indexOf('-') !== -1;
+  var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
+  var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
+
+  var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
+  var verticalToInteger = !shouldRound ? noRound : round;
+
+  return {
+    left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
+    top: verticalToInteger(popper.top),
+    bottom: verticalToInteger(popper.bottom),
+    right: horizontalToInteger(popper.right)
+  };
+}
+
+var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function computeStyle(data, options) {
+  var x = options.x,
+      y = options.y;
+  var popper = data.offsets.popper;
+
+  // Remove this legacy support in Popper.js v2
+
+  var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
+    return modifier.name === 'applyStyle';
+  }).gpuAcceleration;
+  if (legacyGpuAccelerationOption !== undefined) {
+    console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
+  }
+  var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;
+
+  var offsetParent = getOffsetParent(data.instance.popper);
+  var offsetParentRect = getBoundingClientRect(offsetParent);
+
+  // Styles
+  var styles = {
+    position: popper.position
+  };
+
+  var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
+
+  var sideA = x === 'bottom' ? 'top' : 'bottom';
+  var sideB = y === 'right' ? 'left' : 'right';
+
+  // if gpuAcceleration is set to `true` and transform is supported,
+  //  we use `translate3d` to apply the position to the popper we
+  // automatically use the supported prefixed version if needed
+  var prefixedProperty = getSupportedPropertyName('transform');
+
+  // now, let's make a step back and look at this code closely (wtf?)
+  // If the content of the popper grows once it's been positioned, it
+  // may happen that the popper gets misplaced because of the new content
+  // overflowing its reference element
+  // To avoid this problem, we provide two options (x and y), which allow
+  // the consumer to define the offset origin.
+  // If we position a popper on top of a reference element, we can set
+  // `x` to `top` to make the popper grow towards its top instead of
+  // its bottom.
+  var left = void 0,
+      top = void 0;
+  if (sideA === 'bottom') {
+    // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
+    // and not the bottom of the html element
+    if (offsetParent.nodeName === 'HTML') {
+      top = -offsetParent.clientHeight + offsets.bottom;
+    } else {
+      top = -offsetParentRect.height + offsets.bottom;
+    }
+  } else {
+    top = offsets.top;
+  }
+  if (sideB === 'right') {
+    if (offsetParent.nodeName === 'HTML') {
+      left = -offsetParent.clientWidth + offsets.right;
+    } else {
+      left = -offsetParentRect.width + offsets.right;
+    }
+  } else {
+    left = offsets.left;
+  }
+  if (gpuAcceleration && prefixedProperty) {
+    styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
+    styles[sideA] = 0;
+    styles[sideB] = 0;
+    styles.willChange = 'transform';
+  } else {
+    // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties
+    var invertTop = sideA === 'bottom' ? -1 : 1;
+    var invertLeft = sideB === 'right' ? -1 : 1;
+    styles[sideA] = top * invertTop;
+    styles[sideB] = left * invertLeft;
+    styles.willChange = sideA + ', ' + sideB;
+  }
 
-                    // Update `data` attributes, styles and arrowStyles
-                    data.attributes = _extends({}, attributes, data.attributes);
-                    data.styles = _extends({}, styles, data.styles);
-                    data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
+  // Attributes
+  var attributes = {
+    'x-placement': data.placement
+  };
 
-                    return data;
-                }
+  // Update `data` attributes, styles and arrowStyles
+  data.attributes = _extends({}, attributes, data.attributes);
+  data.styles = _extends({}, styles, data.styles);
+  data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
 
-                /**
-                 * Helper used to know if the given modifier depends from another one.<br />
-                 * It checks if the needed modifier is listed and enabled.
-                 * @method
-                 * @memberof Popper.Utils
-                 * @param {Array} modifiers - list of modifiers
-                 * @param {String} requestingName - name of requesting modifier
-                 * @param {String} requestedName - name of requested modifier
-                 * @returns {Boolean}
-                 */
-                function isModifierRequired(modifiers, requestingName, requestedName) {
-                    var requesting = find(modifiers, function (_ref) {
-                        var name = _ref.name;
-                        return name === requestingName;
-                    });
-
-                    var isRequired = !!requesting && modifiers.some(function (modifier) {
-                        return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;
-                    });
-
-                    if (!isRequired) {
-                        var _requesting = '`' + requestingName + '`';
-                        var requested = '`' + requestedName + '`';
-                        console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');
-                    }
-                    return isRequired;
-                }
+  return data;
+}
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function arrow(data, options) {
-                    var _data$offsets$arrow;
-
-                    // arrow depends on keepTogether in order to work
-                    if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
-                        return data;
-                    }
+/**
+ * Helper used to know if the given modifier depends from another one.<br />
+ * It checks if the needed modifier is listed and enabled.
+ * @method
+ * @memberof Popper.Utils
+ * @param {Array} modifiers - list of modifiers
+ * @param {String} requestingName - name of requesting modifier
+ * @param {String} requestedName - name of requested modifier
+ * @returns {Boolean}
+ */
+function isModifierRequired(modifiers, requestingName, requestedName) {
+  var requesting = find(modifiers, function (_ref) {
+    var name = _ref.name;
+    return name === requestingName;
+  });
+
+  var isRequired = !!requesting && modifiers.some(function (modifier) {
+    return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;
+  });
+
+  if (!isRequired) {
+    var _requesting = '`' + requestingName + '`';
+    var requested = '`' + requestedName + '`';
+    console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');
+  }
+  return isRequired;
+}
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function arrow(data, options) {
+  var _data$offsets$arrow;
 
-                    var arrowElement = options.element;
+  // arrow depends on keepTogether in order to work
+  if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
+    return data;
+  }
 
-                    // if arrowElement is a string, suppose it's a CSS selector
-                    if (typeof arrowElement === 'string') {
-                        arrowElement = data.instance.popper.querySelector(arrowElement);
+  var arrowElement = options.element;
 
-                        // if arrowElement is not found, don't run the modifier
-                        if (!arrowElement) {
-                            return data;
-                        }
-                    } else {
-                        // if the arrowElement isn't a query selector we must check that the
-                        // provided DOM node is child of its popper node
-                        if (!data.instance.popper.contains(arrowElement)) {
-                            console.warn('WARNING: `arrow.element` must be child of its popper element!');
-                            return data;
-                        }
-                    }
+  // if arrowElement is a string, suppose it's a CSS selector
+  if (typeof arrowElement === 'string') {
+    arrowElement = data.instance.popper.querySelector(arrowElement);
 
-                    var placement = data.placement.split('-')[0];
-                    var _data$offsets = data.offsets,
-                        popper = _data$offsets.popper,
-                        reference = _data$offsets.reference;
+    // if arrowElement is not found, don't run the modifier
+    if (!arrowElement) {
+      return data;
+    }
+  } else {
+    // if the arrowElement isn't a query selector we must check that the
+    // provided DOM node is child of its popper node
+    if (!data.instance.popper.contains(arrowElement)) {
+      console.warn('WARNING: `arrow.element` must be child of its popper element!');
+      return data;
+    }
+  }
 
-                    var isVertical = ['left', 'right'].indexOf(placement) !== -1;
+  var placement = data.placement.split('-')[0];
+  var _data$offsets = data.offsets,
+      popper = _data$offsets.popper,
+      reference = _data$offsets.reference;
 
-                    var len = isVertical ? 'height' : 'width';
-                    var sideCapitalized = isVertical ? 'Top' : 'Left';
-                    var side = sideCapitalized.toLowerCase();
-                    var altSide = isVertical ? 'left' : 'top';
-                    var opSide = isVertical ? 'bottom' : 'right';
-                    var arrowElementSize = getOuterSizes(arrowElement)[len];
+  var isVertical = ['left', 'right'].indexOf(placement) !== -1;
 
-                    //
-                    // extends keepTogether behavior making sure the popper and its
-                    // reference have enough pixels in conjunction
-                    //
+  var len = isVertical ? 'height' : 'width';
+  var sideCapitalized = isVertical ? 'Top' : 'Left';
+  var side = sideCapitalized.toLowerCase();
+  var altSide = isVertical ? 'left' : 'top';
+  var opSide = isVertical ? 'bottom' : 'right';
+  var arrowElementSize = getOuterSizes(arrowElement)[len];
 
-                    // top/left side
-                    if (reference[opSide] - arrowElementSize < popper[side]) {
-                        data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);
-                    }
-                    // bottom/right side
-                    if (reference[side] + arrowElementSize > popper[opSide]) {
-                        data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];
-                    }
-                    data.offsets.popper = getClientRect(data.offsets.popper);
+  //
+  // extends keepTogether behavior making sure the popper and its
+  // reference have enough pixels in conjunction
+  //
 
-                    // compute center of the popper
-                    var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
+  // top/left side
+  if (reference[opSide] - arrowElementSize < popper[side]) {
+    data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);
+  }
+  // bottom/right side
+  if (reference[side] + arrowElementSize > popper[opSide]) {
+    data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];
+  }
+  data.offsets.popper = getClientRect(data.offsets.popper);
 
-                    // Compute the sideValue using the updated popper offsets
-                    // take popper margin in account because we don't have this info available
-                    var css = getStyleComputedProperty(data.instance.popper);
-                    var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
-                    var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
-                    var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
+  // compute center of the popper
+  var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
 
-                    // prevent arrowElement from being placed not contiguously to its popper
-                    sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);
+  // Compute the sideValue using the updated popper offsets
+  // take popper margin in account because we don't have this info available
+  var css = getStyleComputedProperty(data.instance.popper);
+  var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
+  var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
+  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
 
-                    data.arrowElement = arrowElement;
-                    data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);
+  // prevent arrowElement from being placed not contiguously to its popper
+  sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);
 
-                    return data;
-                }
+  data.arrowElement = arrowElement;
+  data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);
 
-                /**
-                 * Get the opposite placement variation of the given one
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {String} placement variation
-                 * @returns {String} flipped placement variation
-                 */
-                function getOppositeVariation(variation) {
-                    if (variation === 'end') {
-                        return 'start';
-                    } else if (variation === 'start') {
-                        return 'end';
-                    }
-                    return variation;
-                }
+  return data;
+}
 
-                /**
-                 * List of accepted placements to use as values of the `placement` option.<br />
-                 * Valid placements are:
-                 * - `auto`
-                 * - `top`
-                 * - `right`
-                 * - `bottom`
-                 * - `left`
-                 *
-                 * Each placement can have a variation from this list:
-                 * - `-start`
-                 * - `-end`
-                 *
-                 * Variations are interpreted easily if you think of them as the left to right
-                 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`
-                 * is right.<br />
-                 * Vertically (`left` and `right`), `start` is top and `end` is bottom.
-                 *
-                 * Some valid examples are:
-                 * - `top-end` (on top of reference, right aligned)
-                 * - `right-start` (on right of reference, top aligned)
-                 * - `bottom` (on bottom, centered)
-                 * - `auto-end` (on the side with more space available, alignment depends by placement)
-                 *
-                 * @static
-                 * @type {Array}
-                 * @enum {String}
-                 * @readonly
-                 * @method placements
-                 * @memberof Popper
-                 */
-                var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];
+/**
+ * Get the opposite placement variation of the given one
+ * @method
+ * @memberof Popper.Utils
+ * @argument {String} placement variation
+ * @returns {String} flipped placement variation
+ */
+function getOppositeVariation(variation) {
+  if (variation === 'end') {
+    return 'start';
+  } else if (variation === 'start') {
+    return 'end';
+  }
+  return variation;
+}
+
+/**
+ * List of accepted placements to use as values of the `placement` option.<br />
+ * Valid placements are:
+ * - `auto`
+ * - `top`
+ * - `right`
+ * - `bottom`
+ * - `left`
+ *
+ * Each placement can have a variation from this list:
+ * - `-start`
+ * - `-end`
+ *
+ * Variations are interpreted easily if you think of them as the left to right
+ * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`
+ * is right.<br />
+ * Vertically (`left` and `right`), `start` is top and `end` is bottom.
+ *
+ * Some valid examples are:
+ * - `top-end` (on top of reference, right aligned)
+ * - `right-start` (on right of reference, top aligned)
+ * - `bottom` (on bottom, centered)
+ * - `auto-end` (on the side with more space available, alignment depends by placement)
+ *
+ * @static
+ * @type {Array}
+ * @enum {String}
+ * @readonly
+ * @method placements
+ * @memberof Popper
+ */
+var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];
 
 // Get rid of `auto` `auto-start` and `auto-end`
-                var validPlacements = placements.slice(3);
-
-                /**
-                 * Given an initial placement, returns all the subsequent placements
-                 * clockwise (or counter-clockwise).
-                 *
-                 * @method
-                 * @memberof Popper.Utils
-                 * @argument {String} placement - A valid placement (it accepts variations)
-                 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise
-                 * @returns {Array} placements including their variations
-                 */
-                function clockwise(placement) {
-                    var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-
-                    var index = validPlacements.indexOf(placement);
-                    var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
-                    return counter ? arr.reverse() : arr;
-                }
+var validPlacements = placements.slice(3);
 
-                var BEHAVIORS = {
-                    FLIP: 'flip',
-                    CLOCKWISE: 'clockwise',
-                    COUNTERCLOCKWISE: 'counterclockwise'
-                };
+/**
+ * Given an initial placement, returns all the subsequent placements
+ * clockwise (or counter-clockwise).
+ *
+ * @method
+ * @memberof Popper.Utils
+ * @argument {String} placement - A valid placement (it accepts variations)
+ * @argument {Boolean} counter - Set to true to walk the placements counterclockwise
+ * @returns {Array} placements including their variations
+ */
+function clockwise(placement) {
+  var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+
+  var index = validPlacements.indexOf(placement);
+  var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
+  return counter ? arr.reverse() : arr;
+}
+
+var BEHAVIORS = {
+  FLIP: 'flip',
+  CLOCKWISE: 'clockwise',
+  COUNTERCLOCKWISE: 'counterclockwise'
+};
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function flip(data, options) {
+  // if `inner` modifier is enabled, we can't use the `flip` modifier
+  if (isModifierEnabled(data.instance.modifiers, 'inner')) {
+    return data;
+  }
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function flip(data, options) {
-                    // if `inner` modifier is enabled, we can't use the `flip` modifier
-                    if (isModifierEnabled(data.instance.modifiers, 'inner')) {
-                        return data;
-                    }
+  if (data.flipped && data.placement === data.originalPlacement) {
+    // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
+    return data;
+  }
 
-                    if (data.flipped && data.placement === data.originalPlacement) {
-                        // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
-                        return data;
-                    }
+  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);
+
+  var placement = data.placement.split('-')[0];
+  var placementOpposite = getOppositePlacement(placement);
+  var variation = data.placement.split('-')[1] || '';
+
+  var flipOrder = [];
+
+  switch (options.behavior) {
+    case BEHAVIORS.FLIP:
+      flipOrder = [placement, placementOpposite];
+      break;
+    case BEHAVIORS.CLOCKWISE:
+      flipOrder = clockwise(placement);
+      break;
+    case BEHAVIORS.COUNTERCLOCKWISE:
+      flipOrder = clockwise(placement, true);
+      break;
+    default:
+      flipOrder = options.behavior;
+  }
 
-                    var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);
-
-                    var placement = data.placement.split('-')[0];
-                    var placementOpposite = getOppositePlacement(placement);
-                    var variation = data.placement.split('-')[1] || '';
-
-                    var flipOrder = [];
-
-                    switch (options.behavior) {
-                        case BEHAVIORS.FLIP:
-                            flipOrder = [placement, placementOpposite];
-                            break;
-                        case BEHAVIORS.CLOCKWISE:
-                            flipOrder = clockwise(placement);
-                            break;
-                        case BEHAVIORS.COUNTERCLOCKWISE:
-                            flipOrder = clockwise(placement, true);
-                            break;
-                        default:
-                            flipOrder = options.behavior;
-                    }
+  flipOrder.forEach(function (step, index) {
+    if (placement !== step || flipOrder.length === index + 1) {
+      return data;
+    }
 
-                    flipOrder.forEach(function (step, index) {
-                        if (placement !== step || flipOrder.length === index + 1) {
-                            return data;
-                        }
+    placement = data.placement.split('-')[0];
+    placementOpposite = getOppositePlacement(placement);
 
-                        placement = data.placement.split('-')[0];
-                        placementOpposite = getOppositePlacement(placement);
+    var popperOffsets = data.offsets.popper;
+    var refOffsets = data.offsets.reference;
 
-                        var popperOffsets = data.offsets.popper;
-                        var refOffsets = data.offsets.reference;
+    // using floor because the reference offsets may contain decimals we are not going to consider here
+    var floor = Math.floor;
+    var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);
 
-                        // using floor because the reference offsets may contain decimals we are not going to consider here
-                        var floor = Math.floor;
-                        var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);
+    var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
+    var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
+    var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
+    var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);
 
-                        var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
-                        var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
-                        var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
-                        var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);
+    var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;
 
-                        var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;
+    // flip the variation if required
+    var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
 
-                        // flip the variation if required
-                        var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
+    // flips variation if reference element overflows boundaries
+    var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
 
-                        // flips variation if reference element overflows boundaries
-                        var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);
+    // flips variation if popper content overflows boundaries
+    var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
 
-                        // flips variation if popper content overflows boundaries
-                        var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);
+    var flippedVariation = flippedVariationByRef || flippedVariationByContent;
 
-                        var flippedVariation = flippedVariationByRef || flippedVariationByContent;
+    if (overlapsRef || overflowsBoundaries || flippedVariation) {
+      // this boolean to detect any flip loop
+      data.flipped = true;
 
-                        if (overlapsRef || overflowsBoundaries || flippedVariation) {
-                            // this boolean to detect any flip loop
-                            data.flipped = true;
+      if (overlapsRef || overflowsBoundaries) {
+        placement = flipOrder[index + 1];
+      }
 
-                            if (overlapsRef || overflowsBoundaries) {
-                                placement = flipOrder[index + 1];
-                            }
+      if (flippedVariation) {
+        variation = getOppositeVariation(variation);
+      }
 
-                            if (flippedVariation) {
-                                variation = getOppositeVariation(variation);
-                            }
+      data.placement = placement + (variation ? '-' + variation : '');
+
+      // this object contains `position`, we want to preserve it along with
+      // any additional property we may add in the future
+      data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
 
-                            data.placement = placement + (variation ? '-' + variation : '');
+      data = runModifiers(data.instance.modifiers, data, 'flip');
+    }
+  });
+  return data;
+}
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function keepTogether(data) {
+  var _data$offsets = data.offsets,
+      popper = _data$offsets.popper,
+      reference = _data$offsets.reference;
+
+  var placement = data.placement.split('-')[0];
+  var floor = Math.floor;
+  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
+  var side = isVertical ? 'right' : 'bottom';
+  var opSide = isVertical ? 'left' : 'top';
+  var measurement = isVertical ? 'width' : 'height';
+
+  if (popper[side] < floor(reference[opSide])) {
+    data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];
+  }
+  if (popper[opSide] > floor(reference[side])) {
+    data.offsets.popper[opSide] = floor(reference[side]);
+  }
 
-                            // this object contains `position`, we want to preserve it along with
-                            // any additional property we may add in the future
-                            data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
+  return data;
+}
+
+/**
+ * Converts a string containing value + unit into a px value number
+ * @function
+ * @memberof {modifiers~offset}
+ * @private
+ * @argument {String} str - Value + unit string
+ * @argument {String} measurement - `height` or `width`
+ * @argument {Object} popperOffsets
+ * @argument {Object} referenceOffsets
+ * @returns {Number|String}
+ * Value in pixels, or original string if no values were extracted
+ */
+function toValue(str, measurement, popperOffsets, referenceOffsets) {
+  // separate value from unit
+  var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
+  var value = +split[1];
+  var unit = split[2];
+
+  // If it's not a number it's an operator, I guess
+  if (!value) {
+    return str;
+  }
 
-                            data = runModifiers(data.instance.modifiers, data, 'flip');
-                        }
-                    });
-                    return data;
-                }
+  if (unit.indexOf('%') === 0) {
+    var element = void 0;
+    switch (unit) {
+      case '%p':
+        element = popperOffsets;
+        break;
+      case '%':
+      case '%r':
+      default:
+        element = referenceOffsets;
+    }
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function keepTogether(data) {
-                    var _data$offsets = data.offsets,
-                        popper = _data$offsets.popper,
-                        reference = _data$offsets.reference;
-
-                    var placement = data.placement.split('-')[0];
-                    var floor = Math.floor;
-                    var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
-                    var side = isVertical ? 'right' : 'bottom';
-                    var opSide = isVertical ? 'left' : 'top';
-                    var measurement = isVertical ? 'width' : 'height';
-
-                    if (popper[side] < floor(reference[opSide])) {
-                        data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];
-                    }
-                    if (popper[opSide] > floor(reference[side])) {
-                        data.offsets.popper[opSide] = floor(reference[side]);
-                    }
+    var rect = getClientRect(element);
+    return rect[measurement] / 100 * value;
+  } else if (unit === 'vh' || unit === 'vw') {
+    // if is a vh or vw, we calculate the size based on the viewport
+    var size = void 0;
+    if (unit === 'vh') {
+      size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
+    } else {
+      size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
+    }
+    return size / 100 * value;
+  } else {
+    // if is an explicit pixel unit, we get rid of the unit and keep the value
+    // if is an implicit unit, it's px, and we return just the value
+    return value;
+  }
+}
+
+/**
+ * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.
+ * @function
+ * @memberof {modifiers~offset}
+ * @private
+ * @argument {String} offset
+ * @argument {Object} popperOffsets
+ * @argument {Object} referenceOffsets
+ * @argument {String} basePlacement
+ * @returns {Array} a two cells array with x and y offsets in numbers
+ */
+function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
+  var offsets = [0, 0];
+
+  // Use height if placement is left or right and index is 0 otherwise use width
+  // in this way the first offset will use an axis and the second one
+  // will use the other one
+  var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;
+
+  // Split the offset string to obtain a list of values and operands
+  // The regex addresses values with the plus or minus sign in front (+10, -20, etc)
+  var fragments = offset.split(/(\+|\-)/).map(function (frag) {
+    return frag.trim();
+  });
+
+  // Detect if the offset string contains a pair of values or a single one
+  // they could be separated by comma or space
+  var divider = fragments.indexOf(find(fragments, function (frag) {
+    return frag.search(/,|\s/) !== -1;
+  }));
+
+  if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
+    console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
+  }
 
-                    return data;
-                }
+  // If divider is found, we divide the list of values and operands to divide
+  // them by ofset X and Y.
+  var splitRegex = /\s*,\s*|\s+/;
+  var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];
+
+  // Convert the values with units to absolute pixels to allow our computations
+  ops = ops.map(function (op, index) {
+    // Most of the units rely on the orientation of the popper
+    var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
+    var mergeWithPrevious = false;
+    return op
+    // This aggregates any `+` or `-` sign that aren't considered operators
+    // e.g.: 10 + +5 => [10, +, +5]
+    .reduce(function (a, b) {
+      if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {
+        a[a.length - 1] = b;
+        mergeWithPrevious = true;
+        return a;
+      } else if (mergeWithPrevious) {
+        a[a.length - 1] += b;
+        mergeWithPrevious = false;
+        return a;
+      } else {
+        return a.concat(b);
+      }
+    }, [])
+    // Here we convert the string values into number values (in px)
+    .map(function (str) {
+      return toValue(str, measurement, popperOffsets, referenceOffsets);
+    });
+  });
+
+  // Loop trough the offsets arrays and execute the operations
+  ops.forEach(function (op, index) {
+    op.forEach(function (frag, index2) {
+      if (isNumeric(frag)) {
+        offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);
+      }
+    });
+  });
+  return offsets;
+}
+
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @argument {Number|String} options.offset=0
+ * The offset value as described in the modifier description
+ * @returns {Object} The data object, properly modified
+ */
+function offset(data, _ref) {
+  var offset = _ref.offset;
+  var placement = data.placement,
+      _data$offsets = data.offsets,
+      popper = _data$offsets.popper,
+      reference = _data$offsets.reference;
+
+  var basePlacement = placement.split('-')[0];
+
+  var offsets = void 0;
+  if (isNumeric(+offset)) {
+    offsets = [+offset, 0];
+  } else {
+    offsets = parseOffset(offset, popper, reference, basePlacement);
+  }
 
-                /**
-                 * Converts a string containing value + unit into a px value number
-                 * @function
-                 * @memberof {modifiers~offset}
-                 * @private
-                 * @argument {String} str - Value + unit string
-                 * @argument {String} measurement - `height` or `width`
-                 * @argument {Object} popperOffsets
-                 * @argument {Object} referenceOffsets
-                 * @returns {Number|String}
-                 * Value in pixels, or original string if no values were extracted
-                 */
-                function toValue(str, measurement, popperOffsets, referenceOffsets) {
-                    // separate value from unit
-                    var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
-                    var value = +split[1];
-                    var unit = split[2];
-
-                    // If it's not a number it's an operator, I guess
-                    if (!value) {
-                        return str;
-                    }
+  if (basePlacement === 'left') {
+    popper.top += offsets[0];
+    popper.left -= offsets[1];
+  } else if (basePlacement === 'right') {
+    popper.top += offsets[0];
+    popper.left += offsets[1];
+  } else if (basePlacement === 'top') {
+    popper.left += offsets[0];
+    popper.top -= offsets[1];
+  } else if (basePlacement === 'bottom') {
+    popper.left += offsets[0];
+    popper.top += offsets[1];
+  }
 
-                    if (unit.indexOf('%') === 0) {
-                        var element = void 0;
-                        switch (unit) {
-                            case '%p':
-                                element = popperOffsets;
-                                break;
-                            case '%':
-                            case '%r':
-                            default:
-                                element = referenceOffsets;
-                        }
+  data.popper = popper;
+  return data;
+}
 
-                        var rect = getClientRect(element);
-                        return rect[measurement] / 100 * value;
-                    } else if (unit === 'vh' || unit === 'vw') {
-                        // if is a vh or vw, we calculate the size based on the viewport
-                        var size = void 0;
-                        if (unit === 'vh') {
-                            size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
-                        } else {
-                            size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
-                        }
-                        return size / 100 * value;
-                    } else {
-                        // if is an explicit pixel unit, we get rid of the unit and keep the value
-                        // if is an implicit unit, it's px, and we return just the value
-                        return value;
-                    }
-                }
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function preventOverflow(data, options) {
+  var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);
+
+  // If offsetParent is the reference element, we really want to
+  // go one step up and use the next offsetParent as reference to
+  // avoid to make this modifier completely useless and look like broken
+  if (data.instance.reference === boundariesElement) {
+    boundariesElement = getOffsetParent(boundariesElement);
+  }
 
-                /**
-                 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.
-                 * @function
-                 * @memberof {modifiers~offset}
-                 * @private
-                 * @argument {String} offset
-                 * @argument {Object} popperOffsets
-                 * @argument {Object} referenceOffsets
-                 * @argument {String} basePlacement
-                 * @returns {Array} a two cells array with x and y offsets in numbers
-                 */
-                function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
-                    var offsets = [0, 0];
-
-                    // Use height if placement is left or right and index is 0 otherwise use width
-                    // in this way the first offset will use an axis and the second one
-                    // will use the other one
-                    var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;
-
-                    // Split the offset string to obtain a list of values and operands
-                    // The regex addresses values with the plus or minus sign in front (+10, -20, etc)
-                    var fragments = offset.split(/(\+|\-)/).map(function (frag) {
-                        return frag.trim();
-                    });
-
-                    // Detect if the offset string contains a pair of values or a single one
-                    // they could be separated by comma or space
-                    var divider = fragments.indexOf(find(fragments, function (frag) {
-                        return frag.search(/,|\s/) !== -1;
-                    }));
-
-                    if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
-                        console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
-                    }
+  // NOTE: DOM access here
+  // resets the popper's position so that the document size can be calculated excluding
+  // the size of the popper element itself
+  var transformProp = getSupportedPropertyName('transform');
+  var popperStyles = data.instance.popper.style; // assignment to help minification
+  var top = popperStyles.top,
+      left = popperStyles.left,
+      transform = popperStyles[transformProp];
+
+  popperStyles.top = '';
+  popperStyles.left = '';
+  popperStyles[transformProp] = '';
+
+  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);
+
+  // NOTE: DOM access here
+  // restores the original style properties after the offsets have been computed
+  popperStyles.top = top;
+  popperStyles.left = left;
+  popperStyles[transformProp] = transform;
+
+  options.boundaries = boundaries;
+
+  var order = options.priority;
+  var popper = data.offsets.popper;
+
+  var check = {
+    primary: function primary(placement) {
+      var value = popper[placement];
+      if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {
+        value = Math.max(popper[placement], boundaries[placement]);
+      }
+      return defineProperty({}, placement, value);
+    },
+    secondary: function secondary(placement) {
+      var mainSide = placement === 'right' ? 'left' : 'top';
+      var value = popper[mainSide];
+      if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {
+        value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));
+      }
+      return defineProperty({}, mainSide, value);
+    }
+  };
 
-                    // If divider is found, we divide the list of values and operands to divide
-                    // them by ofset X and Y.
-                    var splitRegex = /\s*,\s*|\s+/;
-                    var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];
-
-                    // Convert the values with units to absolute pixels to allow our computations
-                    ops = ops.map(function (op, index) {
-                        // Most of the units rely on the orientation of the popper
-                        var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
-                        var mergeWithPrevious = false;
-                        return op
-                            // This aggregates any `+` or `-` sign that aren't considered operators
-                            // e.g.: 10 + +5 => [10, +, +5]
-                            .reduce(function (a, b) {
-                                if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {
-                                    a[a.length - 1] = b;
-                                    mergeWithPrevious = true;
-                                    return a;
-                                } else if (mergeWithPrevious) {
-                                    a[a.length - 1] += b;
-                                    mergeWithPrevious = false;
-                                    return a;
-                                } else {
-                                    return a.concat(b);
-                                }
-                            }, [])
-                            // Here we convert the string values into number values (in px)
-                            .map(function (str) {
-                                return toValue(str, measurement, popperOffsets, referenceOffsets);
-                            });
-                    });
-
-                    // Loop trough the offsets arrays and execute the operations
-                    ops.forEach(function (op, index) {
-                        op.forEach(function (frag, index2) {
-                            if (isNumeric(frag)) {
-                                offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);
-                            }
-                        });
-                    });
-                    return offsets;
-                }
+  order.forEach(function (placement) {
+    var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
+    popper = _extends({}, popper, check[side](placement));
+  });
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @argument {Number|String} options.offset=0
-                 * The offset value as described in the modifier description
-                 * @returns {Object} The data object, properly modified
-                 */
-                function offset(data, _ref) {
-                    var offset = _ref.offset;
-                    var placement = data.placement,
-                        _data$offsets = data.offsets,
-                        popper = _data$offsets.popper,
-                        reference = _data$offsets.reference;
-
-                    var basePlacement = placement.split('-')[0];
-
-                    var offsets = void 0;
-                    if (isNumeric(+offset)) {
-                        offsets = [+offset, 0];
-                    } else {
-                        offsets = parseOffset(offset, popper, reference, basePlacement);
-                    }
+  data.offsets.popper = popper;
 
-                    if (basePlacement === 'left') {
-                        popper.top += offsets[0];
-                        popper.left -= offsets[1];
-                    } else if (basePlacement === 'right') {
-                        popper.top += offsets[0];
-                        popper.left += offsets[1];
-                    } else if (basePlacement === 'top') {
-                        popper.left += offsets[0];
-                        popper.top -= offsets[1];
-                    } else if (basePlacement === 'bottom') {
-                        popper.left += offsets[0];
-                        popper.top += offsets[1];
-                    }
+  return data;
+}
 
-                    data.popper = popper;
-                    return data;
-                }
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function shift(data) {
+  var placement = data.placement;
+  var basePlacement = placement.split('-')[0];
+  var shiftvariation = placement.split('-')[1];
+
+  // if shift shiftvariation is specified, run the modifier
+  if (shiftvariation) {
+    var _data$offsets = data.offsets,
+        reference = _data$offsets.reference,
+        popper = _data$offsets.popper;
+
+    var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
+    var side = isVertical ? 'left' : 'top';
+    var measurement = isVertical ? 'width' : 'height';
+
+    var shiftOffsets = {
+      start: defineProperty({}, side, reference[side]),
+      end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
+    };
+
+    data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
+  }
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function preventOverflow(data, options) {
-                    var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);
-
-                    // If offsetParent is the reference element, we really want to
-                    // go one step up and use the next offsetParent as reference to
-                    // avoid to make this modifier completely useless and look like broken
-                    if (data.instance.reference === boundariesElement) {
-                        boundariesElement = getOffsetParent(boundariesElement);
-                    }
+  return data;
+}
 
-                    // NOTE: DOM access here
-                    // resets the popper's position so that the document size can be calculated excluding
-                    // the size of the popper element itself
-                    var transformProp = getSupportedPropertyName('transform');
-                    var popperStyles = data.instance.popper.style; // assignment to help minification
-                    var top = popperStyles.top,
-                        left = popperStyles.left,
-                        transform = popperStyles[transformProp];
-
-                    popperStyles.top = '';
-                    popperStyles.left = '';
-                    popperStyles[transformProp] = '';
-
-                    var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);
-
-                    // NOTE: DOM access here
-                    // restores the original style properties after the offsets have been computed
-                    popperStyles.top = top;
-                    popperStyles.left = left;
-                    popperStyles[transformProp] = transform;
-
-                    options.boundaries = boundaries;
-
-                    var order = options.priority;
-                    var popper = data.offsets.popper;
-
-                    var check = {
-                        primary: function primary(placement) {
-                            var value = popper[placement];
-                            if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {
-                                value = Math.max(popper[placement], boundaries[placement]);
-                            }
-                            return defineProperty({}, placement, value);
-                        },
-                        secondary: function secondary(placement) {
-                            var mainSide = placement === 'right' ? 'left' : 'top';
-                            var value = popper[mainSide];
-                            if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {
-                                value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));
-                            }
-                            return defineProperty({}, mainSide, value);
-                        }
-                    };
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by update method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function hide(data) {
+  if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {
+    return data;
+  }
 
-                    order.forEach(function (placement) {
-                        var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
-                        popper = _extends({}, popper, check[side](placement));
-                    });
+  var refRect = data.offsets.reference;
+  var bound = find(data.instance.modifiers, function (modifier) {
+    return modifier.name === 'preventOverflow';
+  }).boundaries;
 
-                    data.offsets.popper = popper;
+  if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
+    // Avoid unnecessary DOM access if visibility hasn't changed
+    if (data.hide === true) {
+      return data;
+    }
 
-                    return data;
-                }
+    data.hide = true;
+    data.attributes['x-out-of-boundaries'] = '';
+  } else {
+    // Avoid unnecessary DOM access if visibility hasn't changed
+    if (data.hide === false) {
+      return data;
+    }
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function shift(data) {
-                    var placement = data.placement;
-                    var basePlacement = placement.split('-')[0];
-                    var shiftvariation = placement.split('-')[1];
-
-                    // if shift shiftvariation is specified, run the modifier
-                    if (shiftvariation) {
-                        var _data$offsets = data.offsets,
-                            reference = _data$offsets.reference,
-                            popper = _data$offsets.popper;
-
-                        var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
-                        var side = isVertical ? 'left' : 'top';
-                        var measurement = isVertical ? 'width' : 'height';
-
-                        var shiftOffsets = {
-                            start: defineProperty({}, side, reference[side]),
-                            end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
-                        };
-
-                        data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
-                    }
+    data.hide = false;
+    data.attributes['x-out-of-boundaries'] = false;
+  }
 
-                    return data;
-                }
+  return data;
+}
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by update method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function hide(data) {
-                    if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {
-                        return data;
-                    }
+/**
+ * @function
+ * @memberof Modifiers
+ * @argument {Object} data - The data object generated by `update` method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {Object} The data object, properly modified
+ */
+function inner(data) {
+  var placement = data.placement;
+  var basePlacement = placement.split('-')[0];
+  var _data$offsets = data.offsets,
+      popper = _data$offsets.popper,
+      reference = _data$offsets.reference;
 
-                    var refRect = data.offsets.reference;
-                    var bound = find(data.instance.modifiers, function (modifier) {
-                        return modifier.name === 'preventOverflow';
-                    }).boundaries;
+  var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
 
-                    if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
-                        // Avoid unnecessary DOM access if visibility hasn't changed
-                        if (data.hide === true) {
-                            return data;
-                        }
+  var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
 
-                        data.hide = true;
-                        data.attributes['x-out-of-boundaries'] = '';
-                    } else {
-                        // Avoid unnecessary DOM access if visibility hasn't changed
-                        if (data.hide === false) {
-                            return data;
-                        }
+  popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
 
-                        data.hide = false;
-                        data.attributes['x-out-of-boundaries'] = false;
-                    }
+  data.placement = getOppositePlacement(placement);
+  data.offsets.popper = getClientRect(popper);
 
-                    return data;
-                }
+  return data;
+}
 
-                /**
-                 * @function
-                 * @memberof Modifiers
-                 * @argument {Object} data - The data object generated by `update` method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {Object} The data object, properly modified
-                 */
-                function inner(data) {
-                    var placement = data.placement;
-                    var basePlacement = placement.split('-')[0];
-                    var _data$offsets = data.offsets,
-                        popper = _data$offsets.popper,
-                        reference = _data$offsets.reference;
+/**
+ * Modifier function, each modifier can have a function of this type assigned
+ * to its `fn` property.<br />
+ * These functions will be called on each update, this means that you must
+ * make sure they are performant enough to avoid performance bottlenecks.
+ *
+ * @function ModifierFn
+ * @argument {dataObject} data - The data object generated by `update` method
+ * @argument {Object} options - Modifiers configuration and options
+ * @returns {dataObject} The data object, properly modified
+ */
 
-                    var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
+/**
+ * Modifiers are plugins used to alter the behavior of your poppers.<br />
+ * Popper.js uses a set of 9 modifiers to provide all the basic functionalities
+ * needed by the library.
+ *
+ * Usually you don't want to override the `order`, `fn` and `onLoad` props.
+ * All the other properties are configurations that could be tweaked.
+ * @namespace modifiers
+ */
+var modifiers = {
+  /**
+   * Modifier used to shift the popper on the start or end of its reference
+   * element.<br />
+   * It will read the variation of the `placement` property.<br />
+   * It can be one either `-end` or `-start`.
+   * @memberof modifiers
+   * @inner
+   */
+  shift: {
+    /** @prop {number} order=100 - Index used to define the order of execution */
+    order: 100,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: shift
+  },
+
+  /**
+   * The `offset` modifier can shift your popper on both its axis.
+   *
+   * It accepts the following units:
+   * - `px` or unit-less, interpreted as pixels
+   * - `%` or `%r`, percentage relative to the length of the reference element
+   * - `%p`, percentage relative to the length of the popper element
+   * - `vw`, CSS viewport width unit
+   * - `vh`, CSS viewport height unit
+   *
+   * For length is intended the main axis relative to the placement of the popper.<br />
+   * This means that if the placement is `top` or `bottom`, the length will be the
+   * `width`. In case of `left` or `right`, it will be the `height`.
+   *
+   * You can provide a single value (as `Number` or `String`), or a pair of values
+   * as `String` divided by a comma or one (or more) white spaces.<br />
+   * The latter is a deprecated method because it leads to confusion and will be
+   * removed in v2.<br />
+   * Additionally, it accepts additions and subtractions between different units.
+   * Note that multiplications and divisions aren't supported.
+   *
+   * Valid examples are:
+   * ```
+   * 10
+   * '10%'
+   * '10, 10'
+   * '10%, 10'
+   * '10 + 10%'
+   * '10 - 5vh + 3%'
+   * '-10px + 5vh, 5px - 6%'
+   * ```
+   * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
+   * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
+   * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
+   *
+   * @memberof modifiers
+   * @inner
+   */
+  offset: {
+    /** @prop {number} order=200 - Index used to define the order of execution */
+    order: 200,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: offset,
+    /** @prop {Number|String} offset=0
+     * The offset value as described in the modifier description
+     */
+    offset: 0
+  },
+
+  /**
+   * Modifier used to prevent the popper from being positioned outside the boundary.
+   *
+   * A scenario exists where the reference itself is not within the boundaries.<br />
+   * We can say it has "escaped the boundaries" — or just "escaped".<br />
+   * In this case we need to decide whether the popper should either:
+   *
+   * - detach from the reference and remain "trapped" in the boundaries, or
+   * - if it should ignore the boundary and "escape with its reference"
+   *
+   * When `escapeWithReference` is set to`true` and reference is completely
+   * outside its boundaries, the popper will overflow (or completely leave)
+   * the boundaries in order to remain attached to the edge of the reference.
+   *
+   * @memberof modifiers
+   * @inner
+   */
+  preventOverflow: {
+    /** @prop {number} order=300 - Index used to define the order of execution */
+    order: 300,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: preventOverflow,
+    /**
+     * @prop {Array} [priority=['left','right','top','bottom']]
+     * Popper will try to prevent overflow following these priorities by default,
+     * then, it could overflow on the left and on top of the `boundariesElement`
+     */
+    priority: ['left', 'right', 'top', 'bottom'],
+    /**
+     * @prop {number} padding=5
+     * Amount of pixel used to define a minimum distance between the boundaries
+     * and the popper. This makes sure the popper always has a little padding
+     * between the edges of its container
+     */
+    padding: 5,
+    /**
+     * @prop {String|HTMLElement} boundariesElement='scrollParent'
+     * Boundaries used by the modifier. Can be `scrollParent`, `window`,
+     * `viewport` or any DOM element.
+     */
+    boundariesElement: 'scrollParent'
+  },
+
+  /**
+   * Modifier used to make sure the reference and its popper stay near each other
+   * without leaving any gap between the two. Especially useful when the arrow is
+   * enabled and you want to ensure that it points to its reference element.
+   * It cares only about the first axis. You can still have poppers with margin
+   * between the popper and its reference element.
+   * @memberof modifiers
+   * @inner
+   */
+  keepTogether: {
+    /** @prop {number} order=400 - Index used to define the order of execution */
+    order: 400,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: keepTogether
+  },
+
+  /**
+   * This modifier is used to move the `arrowElement` of the popper to make
+   * sure it is positioned between the reference element and its popper element.
+   * It will read the outer size of the `arrowElement` node to detect how many
+   * pixels of conjunction are needed.
+   *
+   * It has no effect if no `arrowElement` is provided.
+   * @memberof modifiers
+   * @inner
+   */
+  arrow: {
+    /** @prop {number} order=500 - Index used to define the order of execution */
+    order: 500,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: arrow,
+    /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
+    element: '[x-arrow]'
+  },
+
+  /**
+   * Modifier used to flip the popper's placement when it starts to overlap its
+   * reference element.
+   *
+   * Requires the `preventOverflow` modifier before it in order to work.
+   *
+   * **NOTE:** this modifier will interrupt the current update cycle and will
+   * restart it if it detects the need to flip the placement.
+   * @memberof modifiers
+   * @inner
+   */
+  flip: {
+    /** @prop {number} order=600 - Index used to define the order of execution */
+    order: 600,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: flip,
+    /**
+     * @prop {String|Array} behavior='flip'
+     * The behavior used to change the popper's placement. It can be one of
+     * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
+     * placements (with optional variations)
+     */
+    behavior: 'flip',
+    /**
+     * @prop {number} padding=5
+     * The popper will flip if it hits the edges of the `boundariesElement`
+     */
+    padding: 5,
+    /**
+     * @prop {String|HTMLElement} boundariesElement='viewport'
+     * The element which will define the boundaries of the popper position.
+     * The popper will never be placed outside of the defined boundaries
+     * (except if `keepTogether` is enabled)
+     */
+    boundariesElement: 'viewport',
+    /**
+     * @prop {Boolean} flipVariations=false
+     * The popper will switch placement variation between `-start` and `-end` when
+     * the reference element overlaps its boundaries.
+     *
+     * The original placement should have a set variation.
+     */
+    flipVariations: false,
+    /**
+     * @prop {Boolean} flipVariationsByContent=false
+     * The popper will switch placement variation between `-start` and `-end` when
+     * the popper element overlaps its reference boundaries.
+     *
+     * The original placement should have a set variation.
+     */
+    flipVariationsByContent: false
+  },
+
+  /**
+   * Modifier used to make the popper flow toward the inner of the reference element.
+   * By default, when this modifier is disabled, the popper will be placed outside
+   * the reference element.
+   * @memberof modifiers
+   * @inner
+   */
+  inner: {
+    /** @prop {number} order=700 - Index used to define the order of execution */
+    order: 700,
+    /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
+    enabled: false,
+    /** @prop {ModifierFn} */
+    fn: inner
+  },
+
+  /**
+   * Modifier used to hide the popper when its reference element is outside of the
+   * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
+   * be used to hide with a CSS selector the popper when its reference is
+   * out of boundaries.
+   *
+   * Requires the `preventOverflow` modifier before it in order to work.
+   * @memberof modifiers
+   * @inner
+   */
+  hide: {
+    /** @prop {number} order=800 - Index used to define the order of execution */
+    order: 800,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: hide
+  },
+
+  /**
+   * Computes the style that will be applied to the popper element to gets
+   * properly positioned.
+   *
+   * Note that this modifier will not touch the DOM, it just prepares the styles
+   * so that `applyStyle` modifier can apply it. This separation is useful
+   * in case you need to replace `applyStyle` with a custom implementation.
+   *
+   * This modifier has `850` as `order` value to maintain backward compatibility
+   * with previous versions of Popper.js. Expect the modifiers ordering method
+   * to change in future major versions of the library.
+   *
+   * @memberof modifiers
+   * @inner
+   */
+  computeStyle: {
+    /** @prop {number} order=850 - Index used to define the order of execution */
+    order: 850,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: computeStyle,
+    /**
+     * @prop {Boolean} gpuAcceleration=true
+     * If true, it uses the CSS 3D transformation to position the popper.
+     * Otherwise, it will use the `top` and `left` properties
+     */
+    gpuAcceleration: true,
+    /**
+     * @prop {string} [x='bottom']
+     * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
+     * Change this if your popper should grow in a direction different from `bottom`
+     */
+    x: 'bottom',
+    /**
+     * @prop {string} [x='left']
+     * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
+     * Change this if your popper should grow in a direction different from `right`
+     */
+    y: 'right'
+  },
+
+  /**
+   * Applies the computed styles to the popper element.
+   *
+   * All the DOM manipulations are limited to this modifier. This is useful in case
+   * you want to integrate Popper.js inside a framework or view library and you
+   * want to delegate all the DOM manipulations to it.
+   *
+   * Note that if you disable this modifier, you must make sure the popper element
+   * has its position set to `absolute` before Popper.js can do its work!
+   *
+   * Just disable this modifier and define your own to achieve the desired effect.
+   *
+   * @memberof modifiers
+   * @inner
+   */
+  applyStyle: {
+    /** @prop {number} order=900 - Index used to define the order of execution */
+    order: 900,
+    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
+    enabled: true,
+    /** @prop {ModifierFn} */
+    fn: applyStyle,
+    /** @prop {Function} */
+    onLoad: applyStyleOnLoad,
+    /**
+     * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
+     * @prop {Boolean} gpuAcceleration=true
+     * If true, it uses the CSS 3D transformation to position the popper.
+     * Otherwise, it will use the `top` and `left` properties
+     */
+    gpuAcceleration: undefined
+  }
+};
+
+/**
+ * The `dataObject` is an object containing all the information used by Popper.js.
+ * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
+ * @name dataObject
+ * @property {Object} data.instance The Popper.js instance
+ * @property {String} data.placement Placement applied to popper
+ * @property {String} data.originalPlacement Placement originally defined on init
+ * @property {Boolean} data.flipped True if popper has been flipped by flip modifier
+ * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
+ * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
+ * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
+ * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
+ * @property {Object} data.boundaries Offsets of the popper boundaries
+ * @property {Object} data.offsets The measurements of popper, reference and arrow elements
+ * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
+ * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
+ * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
+ */
 
-                    var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
+/**
+ * Default options provided to Popper.js constructor.<br />
+ * These can be overridden using the `options` argument of Popper.js.<br />
+ * To override an option, simply pass an object with the same
+ * structure of the `options` object, as the 3rd argument. For example:
+ * ```
+ * new Popper(ref, pop, {
+ *   modifiers: {
+ *     preventOverflow: { enabled: false }
+ *   }
+ * })
+ * ```
+ * @type {Object}
+ * @static
+ * @memberof Popper
+ */
+var Defaults = {
+  /**
+   * Popper's placement.
+   * @prop {Popper.placements} placement='bottom'
+   */
+  placement: 'bottom',
 
-                    popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
+  /**
+   * Set this to true if you want popper to position it self in 'fixed' mode
+   * @prop {Boolean} positionFixed=false
+   */
+  positionFixed: false,
 
-                    data.placement = getOppositePlacement(placement);
-                    data.offsets.popper = getClientRect(popper);
+  /**
+   * Whether events (resize, scroll) are initially enabled.
+   * @prop {Boolean} eventsEnabled=true
+   */
+  eventsEnabled: true,
 
-                    return data;
-                }
+  /**
+   * Set to true if you want to automatically remove the popper when
+   * you call the `destroy` method.
+   * @prop {Boolean} removeOnDestroy=false
+   */
+  removeOnDestroy: false,
 
-                /**
-                 * Modifier function, each modifier can have a function of this type assigned
-                 * to its `fn` property.<br />
-                 * These functions will be called on each update, this means that you must
-                 * make sure they are performant enough to avoid performance bottlenecks.
-                 *
-                 * @function ModifierFn
-                 * @argument {dataObject} data - The data object generated by `update` method
-                 * @argument {Object} options - Modifiers configuration and options
-                 * @returns {dataObject} The data object, properly modified
-                 */
-
-                /**
-                 * Modifiers are plugins used to alter the behavior of your poppers.<br />
-                 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities
-                 * needed by the library.
-                 *
-                 * Usually you don't want to override the `order`, `fn` and `onLoad` props.
-                 * All the other properties are configurations that could be tweaked.
-                 * @namespace modifiers
-                 */
-                var modifiers = {
-                    /**
-                     * Modifier used to shift the popper on the start or end of its reference
-                     * element.<br />
-                     * It will read the variation of the `placement` property.<br />
-                     * It can be one either `-end` or `-start`.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    shift: {
-                        /** @prop {number} order=100 - Index used to define the order of execution */
-                        order: 100,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: shift
-                    },
-
-                    /**
-                     * The `offset` modifier can shift your popper on both its axis.
-                     *
-                     * It accepts the following units:
-                     * - `px` or unit-less, interpreted as pixels
-                     * - `%` or `%r`, percentage relative to the length of the reference element
-                     * - `%p`, percentage relative to the length of the popper element
-                     * - `vw`, CSS viewport width unit
-                     * - `vh`, CSS viewport height unit
-                     *
-                     * For length is intended the main axis relative to the placement of the popper.<br />
-                     * This means that if the placement is `top` or `bottom`, the length will be the
-                     * `width`. In case of `left` or `right`, it will be the `height`.
-                     *
-                     * You can provide a single value (as `Number` or `String`), or a pair of values
-                     * as `String` divided by a comma or one (or more) white spaces.<br />
-                     * The latter is a deprecated method because it leads to confusion and will be
-                     * removed in v2.<br />
-                     * Additionally, it accepts additions and subtractions between different units.
-                     * Note that multiplications and divisions aren't supported.
-                     *
-                     * Valid examples are:
-                     * ```
-                     * 10
-                     * '10%'
-                     * '10, 10'
-                     * '10%, 10'
-                     * '10 + 10%'
-                     * '10 - 5vh + 3%'
-                     * '-10px + 5vh, 5px - 6%'
-                     * ```
-                     * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
-                     * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
-                     * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
-                     *
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    offset: {
-                        /** @prop {number} order=200 - Index used to define the order of execution */
-                        order: 200,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: offset,
-                        /** @prop {Number|String} offset=0
-                         * The offset value as described in the modifier description
-                         */
-                        offset: 0
-                    },
-
-                    /**
-                     * Modifier used to prevent the popper from being positioned outside the boundary.
-                     *
-                     * A scenario exists where the reference itself is not within the boundaries.<br />
-                     * We can say it has "escaped the boundaries" — or just "escaped".<br />
-                     * In this case we need to decide whether the popper should either:
-                     *
-                     * - detach from the reference and remain "trapped" in the boundaries, or
-                     * - if it should ignore the boundary and "escape with its reference"
-                     *
-                     * When `escapeWithReference` is set to`true` and reference is completely
-                     * outside its boundaries, the popper will overflow (or completely leave)
-                     * the boundaries in order to remain attached to the edge of the reference.
-                     *
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    preventOverflow: {
-                        /** @prop {number} order=300 - Index used to define the order of execution */
-                        order: 300,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: preventOverflow,
-                        /**
-                         * @prop {Array} [priority=['left','right','top','bottom']]
-                         * Popper will try to prevent overflow following these priorities by default,
-                         * then, it could overflow on the left and on top of the `boundariesElement`
-                         */
-                        priority: ['left', 'right', 'top', 'bottom'],
-                        /**
-                         * @prop {number} padding=5
-                         * Amount of pixel used to define a minimum distance between the boundaries
-                         * and the popper. This makes sure the popper always has a little padding
-                         * between the edges of its container
-                         */
-                        padding: 5,
-                        /**
-                         * @prop {String|HTMLElement} boundariesElement='scrollParent'
-                         * Boundaries used by the modifier. Can be `scrollParent`, `window`,
-                         * `viewport` or any DOM element.
-                         */
-                        boundariesElement: 'scrollParent'
-                    },
-
-                    /**
-                     * Modifier used to make sure the reference and its popper stay near each other
-                     * without leaving any gap between the two. Especially useful when the arrow is
-                     * enabled and you want to ensure that it points to its reference element.
-                     * It cares only about the first axis. You can still have poppers with margin
-                     * between the popper and its reference element.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    keepTogether: {
-                        /** @prop {number} order=400 - Index used to define the order of execution */
-                        order: 400,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: keepTogether
-                    },
-
-                    /**
-                     * This modifier is used to move the `arrowElement` of the popper to make
-                     * sure it is positioned between the reference element and its popper element.
-                     * It will read the outer size of the `arrowElement` node to detect how many
-                     * pixels of conjunction are needed.
-                     *
-                     * It has no effect if no `arrowElement` is provided.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    arrow: {
-                        /** @prop {number} order=500 - Index used to define the order of execution */
-                        order: 500,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: arrow,
-                        /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
-                        element: '[x-arrow]'
-                    },
-
-                    /**
-                     * Modifier used to flip the popper's placement when it starts to overlap its
-                     * reference element.
-                     *
-                     * Requires the `preventOverflow` modifier before it in order to work.
-                     *
-                     * **NOTE:** this modifier will interrupt the current update cycle and will
-                     * restart it if it detects the need to flip the placement.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    flip: {
-                        /** @prop {number} order=600 - Index used to define the order of execution */
-                        order: 600,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: flip,
-                        /**
-                         * @prop {String|Array} behavior='flip'
-                         * The behavior used to change the popper's placement. It can be one of
-                         * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
-                         * placements (with optional variations)
-                         */
-                        behavior: 'flip',
-                        /**
-                         * @prop {number} padding=5
-                         * The popper will flip if it hits the edges of the `boundariesElement`
-                         */
-                        padding: 5,
-                        /**
-                         * @prop {String|HTMLElement} boundariesElement='viewport'
-                         * The element which will define the boundaries of the popper position.
-                         * The popper will never be placed outside of the defined boundaries
-                         * (except if `keepTogether` is enabled)
-                         */
-                        boundariesElement: 'viewport',
-                        /**
-                         * @prop {Boolean} flipVariations=false
-                         * The popper will switch placement variation between `-start` and `-end` when
-                         * the reference element overlaps its boundaries.
-                         *
-                         * The original placement should have a set variation.
-                         */
-                        flipVariations: false,
-                        /**
-                         * @prop {Boolean} flipVariationsByContent=false
-                         * The popper will switch placement variation between `-start` and `-end` when
-                         * the popper element overlaps its reference boundaries.
-                         *
-                         * The original placement should have a set variation.
-                         */
-                        flipVariationsByContent: false
-                    },
-
-                    /**
-                     * Modifier used to make the popper flow toward the inner of the reference element.
-                     * By default, when this modifier is disabled, the popper will be placed outside
-                     * the reference element.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    inner: {
-                        /** @prop {number} order=700 - Index used to define the order of execution */
-                        order: 700,
-                        /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
-                        enabled: false,
-                        /** @prop {ModifierFn} */
-                        fn: inner
-                    },
-
-                    /**
-                     * Modifier used to hide the popper when its reference element is outside of the
-                     * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
-                     * be used to hide with a CSS selector the popper when its reference is
-                     * out of boundaries.
-                     *
-                     * Requires the `preventOverflow` modifier before it in order to work.
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    hide: {
-                        /** @prop {number} order=800 - Index used to define the order of execution */
-                        order: 800,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: hide
-                    },
-
-                    /**
-                     * Computes the style that will be applied to the popper element to gets
-                     * properly positioned.
-                     *
-                     * Note that this modifier will not touch the DOM, it just prepares the styles
-                     * so that `applyStyle` modifier can apply it. This separation is useful
-                     * in case you need to replace `applyStyle` with a custom implementation.
-                     *
-                     * This modifier has `850` as `order` value to maintain backward compatibility
-                     * with previous versions of Popper.js. Expect the modifiers ordering method
-                     * to change in future major versions of the library.
-                     *
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    computeStyle: {
-                        /** @prop {number} order=850 - Index used to define the order of execution */
-                        order: 850,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: computeStyle,
-                        /**
-                         * @prop {Boolean} gpuAcceleration=true
-                         * If true, it uses the CSS 3D transformation to position the popper.
-                         * Otherwise, it will use the `top` and `left` properties
-                         */
-                        gpuAcceleration: true,
-                        /**
-                         * @prop {string} [x='bottom']
-                         * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
-                         * Change this if your popper should grow in a direction different from `bottom`
-                         */
-                        x: 'bottom',
-                        /**
-                         * @prop {string} [x='left']
-                         * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
-                         * Change this if your popper should grow in a direction different from `right`
-                         */
-                        y: 'right'
-                    },
-
-                    /**
-                     * Applies the computed styles to the popper element.
-                     *
-                     * All the DOM manipulations are limited to this modifier. This is useful in case
-                     * you want to integrate Popper.js inside a framework or view library and you
-                     * want to delegate all the DOM manipulations to it.
-                     *
-                     * Note that if you disable this modifier, you must make sure the popper element
-                     * has its position set to `absolute` before Popper.js can do its work!
-                     *
-                     * Just disable this modifier and define your own to achieve the desired effect.
-                     *
-                     * @memberof modifiers
-                     * @inner
-                     */
-                    applyStyle: {
-                        /** @prop {number} order=900 - Index used to define the order of execution */
-                        order: 900,
-                        /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
-                        enabled: true,
-                        /** @prop {ModifierFn} */
-                        fn: applyStyle,
-                        /** @prop {Function} */
-                        onLoad: applyStyleOnLoad,
-                        /**
-                         * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
-                         * @prop {Boolean} gpuAcceleration=true
-                         * If true, it uses the CSS 3D transformation to position the popper.
-                         * Otherwise, it will use the `top` and `left` properties
-                         */
-                        gpuAcceleration: undefined
-                    }
-                };
+  /**
+   * Callback called when the popper is created.<br />
+   * By default, it is set to no-op.<br />
+   * Access Popper.js instance with `data.instance`.
+   * @prop {onCreate}
+   */
+  onCreate: function onCreate() {},
+
+  /**
+   * Callback called when the popper is updated. This callback is not called
+   * on the initialization/creation of the popper, but only on subsequent
+   * updates.<br />
+   * By default, it is set to no-op.<br />
+   * Access Popper.js instance with `data.instance`.
+   * @prop {onUpdate}
+   */
+  onUpdate: function onUpdate() {},
 
-                /**
-                 * The `dataObject` is an object containing all the information used by Popper.js.
-                 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
-                 * @name dataObject
-                 * @property {Object} data.instance The Popper.js instance
-                 * @property {String} data.placement Placement applied to popper
-                 * @property {String} data.originalPlacement Placement originally defined on init
-                 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier
-                 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
-                 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
-                 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
-                 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
-                 * @property {Object} data.boundaries Offsets of the popper boundaries
-                 * @property {Object} data.offsets The measurements of popper, reference and arrow elements
-                 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
-                 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
-                 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
-                 */
-
-                /**
-                 * Default options provided to Popper.js constructor.<br />
-                 * These can be overridden using the `options` argument of Popper.js.<br />
-                 * To override an option, simply pass an object with the same
-                 * structure of the `options` object, as the 3rd argument. For example:
-                 * ```
-                 * new Popper(ref, pop, {
-                 *   modifiers: {
-                 *     preventOverflow: { enabled: false }
-                 *   }
-                 * })
-                 * ```
-                 * @type {Object}
-                 * @static
-                 * @memberof Popper
-                 */
-                var Defaults = {
-                    /**
-                     * Popper's placement.
-                     * @prop {Popper.placements} placement='bottom'
-                     */
-                    placement: 'bottom',
-
-                    /**
-                     * Set this to true if you want popper to position it self in 'fixed' mode
-                     * @prop {Boolean} positionFixed=false
-                     */
-                    positionFixed: false,
-
-                    /**
-                     * Whether events (resize, scroll) are initially enabled.
-                     * @prop {Boolean} eventsEnabled=true
-                     */
-                    eventsEnabled: true,
-
-                    /**
-                     * Set to true if you want to automatically remove the popper when
-                     * you call the `destroy` method.
-                     * @prop {Boolean} removeOnDestroy=false
-                     */
-                    removeOnDestroy: false,
-
-                    /**
-                     * Callback called when the popper is created.<br />
-                     * By default, it is set to no-op.<br />
-                     * Access Popper.js instance with `data.instance`.
-                     * @prop {onCreate}
-                     */
-                    onCreate: function onCreate() {},
-
-                    /**
-                     * Callback called when the popper is updated. This callback is not called
-                     * on the initialization/creation of the popper, but only on subsequent
-                     * updates.<br />
-                     * By default, it is set to no-op.<br />
-                     * Access Popper.js instance with `data.instance`.
-                     * @prop {onUpdate}
-                     */
-                    onUpdate: function onUpdate() {},
-
-                    /**
-                     * List of modifiers used to modify the offsets before they are applied to the popper.
-                     * They provide most of the functionalities of Popper.js.
-                     * @prop {modifiers}
-                     */
-                    modifiers: modifiers
-                };
+  /**
+   * List of modifiers used to modify the offsets before they are applied to the popper.
+   * They provide most of the functionalities of Popper.js.
+   * @prop {modifiers}
+   */
+  modifiers: modifiers
+};
 
-                /**
-                 * @callback onCreate
-                 * @param {dataObject} data
-                 */
+/**
+ * @callback onCreate
+ * @param {dataObject} data
+ */
 
-                /**
-                 * @callback onUpdate
-                 * @param {dataObject} data
-                 */
+/**
+ * @callback onUpdate
+ * @param {dataObject} data
+ */
 
 // Utils
 // Methods
-                var Popper = function () {
-                    /**
-                     * Creates a new Popper.js instance.
-                     * @class Popper
-                     * @param {Element|referenceObject} reference - The reference element used to position the popper
-                     * @param {Element} popper - The HTML / XML element used as the popper
-                     * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
-                     * @return {Object} instance - The generated Popper.js instance
-                     */
-                    function Popper(reference, popper) {
-                        var _this = this;
-
-                        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-                        classCallCheck(this, Popper);
-
-                        this.scheduleUpdate = function () {
-                            return requestAnimationFrame(_this.update);
-                        };
-
-                        // make update() debounced, so that it only runs at most once-per-tick
-                        this.update = debounce(this.update.bind(this));
-
-                        // with {} we create a new object with the options inside it
-                        this.options = _extends({}, Popper.Defaults, options);
-
-                        // init state
-                        this.state = {
-                            isDestroyed: false,
-                            isCreated: false,
-                            scrollParents: []
-                        };
-
-                        // get reference and popper elements (allow jQuery wrappers)
-                        this.reference = reference && reference.jquery ? reference[0] : reference;
-                        this.popper = popper && popper.jquery ? popper[0] : popper;
-
-                        // Deep merge modifiers options
-                        this.options.modifiers = {};
-                        Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
-                            _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
-                        });
+var Popper = function () {
+  /**
+   * Creates a new Popper.js instance.
+   * @class Popper
+   * @param {Element|referenceObject} reference - The reference element used to position the popper
+   * @param {Element} popper - The HTML / XML element used as the popper
+   * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
+   * @return {Object} instance - The generated Popper.js instance
+   */
+  function Popper(reference, popper) {
+    var _this = this;
+
+    var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+    classCallCheck(this, Popper);
+
+    this.scheduleUpdate = function () {
+      return requestAnimationFrame(_this.update);
+    };
+
+    // make update() debounced, so that it only runs at most once-per-tick
+    this.update = debounce(this.update.bind(this));
+
+    // with {} we create a new object with the options inside it
+    this.options = _extends({}, Popper.Defaults, options);
+
+    // init state
+    this.state = {
+      isDestroyed: false,
+      isCreated: false,
+      scrollParents: []
+    };
+
+    // get reference and popper elements (allow jQuery wrappers)
+    this.reference = reference && reference.jquery ? reference[0] : reference;
+    this.popper = popper && popper.jquery ? popper[0] : popper;
+
+    // Deep merge modifiers options
+    this.options.modifiers = {};
+    Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
+      _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
+    });
+
+    // Refactoring modifiers' list (Object => Array)
+    this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
+      return _extends({
+        name: name
+      }, _this.options.modifiers[name]);
+    })
+    // sort the modifiers by order
+    .sort(function (a, b) {
+      return a.order - b.order;
+    });
+
+    // modifiers have the ability to execute arbitrary code when Popper.js get inited
+    // such code is executed in the same order of its modifier
+    // they could add new properties to their options configuration
+    // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
+    this.modifiers.forEach(function (modifierOptions) {
+      if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
+        modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
+      }
+    });
+
+    // fire the first update to position the popper in the right place
+    this.update();
+
+    var eventsEnabled = this.options.eventsEnabled;
+    if (eventsEnabled) {
+      // setup event listeners, they will take care of update the position in specific situations
+      this.enableEventListeners();
+    }
 
-                        // Refactoring modifiers' list (Object => Array)
-                        this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
-                            return _extends({
-                                name: name
-                            }, _this.options.modifiers[name]);
-                        })
-                            // sort the modifiers by order
-                            .sort(function (a, b) {
-                                return a.order - b.order;
-                            });
-
-                        // modifiers have the ability to execute arbitrary code when Popper.js get inited
-                        // such code is executed in the same order of its modifier
-                        // they could add new properties to their options configuration
-                        // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
-                        this.modifiers.forEach(function (modifierOptions) {
-                            if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
-                                modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
-                            }
-                        });
+    this.state.eventsEnabled = eventsEnabled;
+  }
 
-                        // fire the first update to position the popper in the right place
-                        this.update();
+  // We can't use class properties because they don't get listed in the
+  // class prototype and break stuff like Sinon stubs
 
-                        var eventsEnabled = this.options.eventsEnabled;
-                        if (eventsEnabled) {
-                            // setup event listeners, they will take care of update the position in specific situations
-                            this.enableEventListeners();
-                        }
 
-                        this.state.eventsEnabled = eventsEnabled;
-                    }
+  createClass(Popper, [{
+    key: 'update',
+    value: function update$$1() {
+      return update.call(this);
+    }
+  }, {
+    key: 'destroy',
+    value: function destroy$$1() {
+      return destroy.call(this);
+    }
+  }, {
+    key: 'enableEventListeners',
+    value: function enableEventListeners$$1() {
+      return enableEventListeners.call(this);
+    }
+  }, {
+    key: 'disableEventListeners',
+    value: function disableEventListeners$$1() {
+      return disableEventListeners.call(this);
+    }
 
-                    // We can't use class properties because they don't get listed in the
-                    // class prototype and break stuff like Sinon stubs
+    /**
+     * Schedules an update. It will run on the next UI update available.
+     * @method scheduleUpdate
+     * @memberof Popper
+     */
+
+
+    /**
+     * Collection of utilities useful when writing custom modifiers.
+     * Starting from version 1.7, this method is available only if you
+     * include `popper-utils.js` before `popper.js`.
+     *
+     * **DEPRECATION**: This way to access PopperUtils is deprecated
+     * and will be removed in v2! Use the PopperUtils module directly instead.
+     * Due to the high instability of the methods contained in Utils, we can't
+     * guarantee them to follow semver. Use them at your own risk!
+     * @static
+     * @private
+     * @type {Object}
+     * @deprecated since version 1.8
+     * @member Utils
+     * @memberof Popper
+     */
+
+  }]);
+  return Popper;
+}();
+
+/**
+ * The `referenceObject` is an object that provides an interface compatible with Popper.js
+ * and lets you use it as replacement of a real DOM node.<br />
+ * You can use this method to position a popper relatively to a set of coordinates
+ * in case you don't have a DOM node to use as reference.
+ *
+ * ```
+ * new Popper(referenceObject, popperNode);
+ * ```
+ *
+ * NB: This feature isn't supported in Internet Explorer 10.
+ * @name referenceObject
+ * @property {Function} data.getBoundingClientRect
+ * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
+ * @property {number} data.clientWidth
+ * An ES6 getter that will return the width of the virtual reference element.
+ * @property {number} data.clientHeight
+ * An ES6 getter that will return the height of the virtual reference element.
+ */
 
 
-                    createClass(Popper, [{
-                        key: 'update',
-                        value: function update$$1() {
-                            return update.call(this);
-                        }
-                    }, {
-                        key: 'destroy',
-                        value: function destroy$$1() {
-                            return destroy.call(this);
-                        }
-                    }, {
-                        key: 'enableEventListeners',
-                        value: function enableEventListeners$$1() {
-                            return enableEventListeners.call(this);
-                        }
-                    }, {
-                        key: 'disableEventListeners',
-                        value: function disableEventListeners$$1() {
-                            return disableEventListeners.call(this);
-                        }
+Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;
+Popper.placements = placements;
+Popper.Defaults = Defaults;
 
-                        /**
-                         * Schedules an update. It will run on the next UI update available.
-                         * @method scheduleUpdate
-                         * @memberof Popper
-                         */
-
-
-                        /**
-                         * Collection of utilities useful when writing custom modifiers.
-                         * Starting from version 1.7, this method is available only if you
-                         * include `popper-utils.js` before `popper.js`.
-                         *
-                         * **DEPRECATION**: This way to access PopperUtils is deprecated
-                         * and will be removed in v2! Use the PopperUtils module directly instead.
-                         * Due to the high instability of the methods contained in Utils, we can't
-                         * guarantee them to follow semver. Use them at your own risk!
-                         * @static
-                         * @private
-                         * @type {Object}
-                         * @deprecated since version 1.8
-                         * @member Utils
-                         * @memberof Popper
-                         */
-
-                    }]);
-                    return Popper;
-                }();
-
-                /**
-                 * The `referenceObject` is an object that provides an interface compatible with Popper.js
-                 * and lets you use it as replacement of a real DOM node.<br />
-                 * You can use this method to position a popper relatively to a set of coordinates
-                 * in case you don't have a DOM node to use as reference.
-                 *
-                 * ```
-                 * new Popper(referenceObject, popperNode);
-                 * ```
-                 *
-                 * NB: This feature isn't supported in Internet Explorer 10.
-                 * @name referenceObject
-                 * @property {Function} data.getBoundingClientRect
-                 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
-                 * @property {number} data.clientWidth
-                 * An ES6 getter that will return the width of the virtual reference element.
-                 * @property {number} data.clientHeight
-                 * An ES6 getter that will return the height of the virtual reference element.
-                 */
-
-
-                Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;
-                Popper.placements = placements;
-                Popper.Defaults = Defaults;
-
-                /* harmony default export */ __webpack_exports__["default"] = (Popper);
+/* harmony default export */ __webpack_exports__["default"] = (Popper);
 //# sourceMappingURL=popper.js.map
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/process/browser.js":
-        /*!*****************************************!*\
+/***/ "./node_modules/process/browser.js":
+/*!*****************************************!*\
   !*** ./node_modules/process/browser.js ***!
   \*****************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+/*! no static exports found */
+/***/ (function(module, exports) {
 
 // shim for using process in browser
-            var process = module.exports = {};
+var process = module.exports = {};
 
 // cached from whatever global is present so that test runners that stub it
 // don't break things.  But we need to wrap it in a try catch in case it is
 // wrapped in strict mode code which doesn't define any globals.  It's inside a
 // function because try/catches deoptimize in certain engines.
 
-            var cachedSetTimeout;
-            var cachedClearTimeout;
-
-            function defaultSetTimout() {
-                throw new Error('setTimeout has not been defined');
-            }
-            function defaultClearTimeout () {
-                throw new Error('clearTimeout has not been defined');
-            }
-            (function () {
-                try {
-                    if (typeof setTimeout === 'function') {
-                        cachedSetTimeout = setTimeout;
-                    } else {
-                        cachedSetTimeout = defaultSetTimout;
-                    }
-                } catch (e) {
-                    cachedSetTimeout = defaultSetTimout;
-                }
-                try {
-                    if (typeof clearTimeout === 'function') {
-                        cachedClearTimeout = clearTimeout;
-                    } else {
-                        cachedClearTimeout = defaultClearTimeout;
-                    }
-                } catch (e) {
-                    cachedClearTimeout = defaultClearTimeout;
-                }
-            } ())
-            function runTimeout(fun) {
-                if (cachedSetTimeout === setTimeout) {
-                    //normal enviroments in sane situations
-                    return setTimeout(fun, 0);
-                }
-                // if setTimeout wasn't available but was latter defined
-                if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
-                    cachedSetTimeout = setTimeout;
-                    return setTimeout(fun, 0);
-                }
-                try {
-                    // when when somebody has screwed with setTimeout but no I.E. maddness
-                    return cachedSetTimeout(fun, 0);
-                } catch(e){
-                    try {
-                        // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
-                        return cachedSetTimeout.call(null, fun, 0);
-                    } catch(e){
-                        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
-                        return cachedSetTimeout.call(this, fun, 0);
-                    }
-                }
+var cachedSetTimeout;
+var cachedClearTimeout;
+
+function defaultSetTimout() {
+    throw new Error('setTimeout has not been defined');
+}
+function defaultClearTimeout () {
+    throw new Error('clearTimeout has not been defined');
+}
+(function () {
+    try {
+        if (typeof setTimeout === 'function') {
+            cachedSetTimeout = setTimeout;
+        } else {
+            cachedSetTimeout = defaultSetTimout;
+        }
+    } catch (e) {
+        cachedSetTimeout = defaultSetTimout;
+    }
+    try {
+        if (typeof clearTimeout === 'function') {
+            cachedClearTimeout = clearTimeout;
+        } else {
+            cachedClearTimeout = defaultClearTimeout;
+        }
+    } catch (e) {
+        cachedClearTimeout = defaultClearTimeout;
+    }
+} ())
+function runTimeout(fun) {
+    if (cachedSetTimeout === setTimeout) {
+        //normal enviroments in sane situations
+        return setTimeout(fun, 0);
+    }
+    // if setTimeout wasn't available but was latter defined
+    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
+        cachedSetTimeout = setTimeout;
+        return setTimeout(fun, 0);
+    }
+    try {
+        // when when somebody has screwed with setTimeout but no I.E. maddness
+        return cachedSetTimeout(fun, 0);
+    } catch(e){
+        try {
+            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
+            return cachedSetTimeout.call(null, fun, 0);
+        } catch(e){
+            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
+            return cachedSetTimeout.call(this, fun, 0);
+        }
+    }
 
 
-            }
-            function runClearTimeout(marker) {
-                if (cachedClearTimeout === clearTimeout) {
-                    //normal enviroments in sane situations
-                    return clearTimeout(marker);
-                }
-                // if clearTimeout wasn't available but was latter defined
-                if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
-                    cachedClearTimeout = clearTimeout;
-                    return clearTimeout(marker);
-                }
-                try {
-                    // when when somebody has screwed with setTimeout but no I.E. maddness
-                    return cachedClearTimeout(marker);
-                } catch (e){
-                    try {
-                        // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
-                        return cachedClearTimeout.call(null, marker);
-                    } catch (e){
-                        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
-                        // Some versions of I.E. have different rules for clearTimeout vs setTimeout
-                        return cachedClearTimeout.call(this, marker);
-                    }
-                }
+}
+function runClearTimeout(marker) {
+    if (cachedClearTimeout === clearTimeout) {
+        //normal enviroments in sane situations
+        return clearTimeout(marker);
+    }
+    // if clearTimeout wasn't available but was latter defined
+    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
+        cachedClearTimeout = clearTimeout;
+        return clearTimeout(marker);
+    }
+    try {
+        // when when somebody has screwed with setTimeout but no I.E. maddness
+        return cachedClearTimeout(marker);
+    } catch (e){
+        try {
+            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
+            return cachedClearTimeout.call(null, marker);
+        } catch (e){
+            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
+            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
+            return cachedClearTimeout.call(this, marker);
+        }
+    }
 
 
 
-            }
-            var queue = [];
-            var draining = false;
-            var currentQueue;
-            var queueIndex = -1;
+}
+var queue = [];
+var draining = false;
+var currentQueue;
+var queueIndex = -1;
 
-            function cleanUpNextTick() {
-                if (!draining || !currentQueue) {
-                    return;
-                }
-                draining = false;
-                if (currentQueue.length) {
-                    queue = currentQueue.concat(queue);
-                } else {
-                    queueIndex = -1;
-                }
-                if (queue.length) {
-                    drainQueue();
-                }
-            }
+function cleanUpNextTick() {
+    if (!draining || !currentQueue) {
+        return;
+    }
+    draining = false;
+    if (currentQueue.length) {
+        queue = currentQueue.concat(queue);
+    } else {
+        queueIndex = -1;
+    }
+    if (queue.length) {
+        drainQueue();
+    }
+}
 
-            function drainQueue() {
-                if (draining) {
-                    return;
-                }
-                var timeout = runTimeout(cleanUpNextTick);
-                draining = true;
-
-                var len = queue.length;
-                while(len) {
-                    currentQueue = queue;
-                    queue = [];
-                    while (++queueIndex < len) {
-                        if (currentQueue) {
-                            currentQueue[queueIndex].run();
-                        }
-                    }
-                    queueIndex = -1;
-                    len = queue.length;
-                }
-                currentQueue = null;
-                draining = false;
-                runClearTimeout(timeout);
+function drainQueue() {
+    if (draining) {
+        return;
+    }
+    var timeout = runTimeout(cleanUpNextTick);
+    draining = true;
+
+    var len = queue.length;
+    while(len) {
+        currentQueue = queue;
+        queue = [];
+        while (++queueIndex < len) {
+            if (currentQueue) {
+                currentQueue[queueIndex].run();
             }
-
-            process.nextTick = function (fun) {
-                var args = new Array(arguments.length - 1);
-                if (arguments.length > 1) {
-                    for (var i = 1; i < arguments.length; i++) {
-                        args[i - 1] = arguments[i];
-                    }
-                }
-                queue.push(new Item(fun, args));
-                if (queue.length === 1 && !draining) {
-                    runTimeout(drainQueue);
-                }
-            };
+        }
+        queueIndex = -1;
+        len = queue.length;
+    }
+    currentQueue = null;
+    draining = false;
+    runClearTimeout(timeout);
+}
+
+process.nextTick = function (fun) {
+    var args = new Array(arguments.length - 1);
+    if (arguments.length > 1) {
+        for (var i = 1; i < arguments.length; i++) {
+            args[i - 1] = arguments[i];
+        }
+    }
+    queue.push(new Item(fun, args));
+    if (queue.length === 1 && !draining) {
+        runTimeout(drainQueue);
+    }
+};
 
 // v8 likes predictible objects
-            function Item(fun, array) {
-                this.fun = fun;
-                this.array = array;
-            }
-            Item.prototype.run = function () {
-                this.fun.apply(null, this.array);
-            };
-            process.title = 'browser';
-            process.browser = true;
-            process.env = {};
-            process.argv = [];
-            process.version = ''; // empty string to avoid regexp issues
-            process.versions = {};
-
-            function noop() {}
-
-            process.on = noop;
-            process.addListener = noop;
-            process.once = noop;
-            process.off = noop;
-            process.removeListener = noop;
-            process.removeAllListeners = noop;
-            process.emit = noop;
-            process.prependListener = noop;
-            process.prependOnceListener = noop;
-
-            process.listeners = function (name) { return [] }
-
-            process.binding = function (name) {
-                throw new Error('process.binding is not supported');
-            };
-
-            process.cwd = function () { return '/' };
-            process.chdir = function (dir) {
-                throw new Error('process.chdir is not supported');
-            };
-            process.umask = function() { return 0; };
-
-
-            /***/ }),
-
-        /***/ "./node_modules/setimmediate/setImmediate.js":
-        /*!***************************************************!*\
+function Item(fun, array) {
+    this.fun = fun;
+    this.array = array;
+}
+Item.prototype.run = function () {
+    this.fun.apply(null, this.array);
+};
+process.title = 'browser';
+process.browser = true;
+process.env = {};
+process.argv = [];
+process.version = ''; // empty string to avoid regexp issues
+process.versions = {};
+
+function noop() {}
+
+process.on = noop;
+process.addListener = noop;
+process.once = noop;
+process.off = noop;
+process.removeListener = noop;
+process.removeAllListeners = noop;
+process.emit = noop;
+process.prependListener = noop;
+process.prependOnceListener = noop;
+
+process.listeners = function (name) { return [] }
+
+process.binding = function (name) {
+    throw new Error('process.binding is not supported');
+};
+
+process.cwd = function () { return '/' };
+process.chdir = function (dir) {
+    throw new Error('process.chdir is not supported');
+};
+process.umask = function() { return 0; };
+
+
+/***/ }),
+
+/***/ "./node_modules/setimmediate/setImmediate.js":
+/*!***************************************************!*\
   !*** ./node_modules/setimmediate/setImmediate.js ***!
   \***************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
-                "use strict";
+/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
+    "use strict";
 
-                if (global.setImmediate) {
-                    return;
-                }
-
-                var nextHandle = 1; // Spec says greater than zero
-                var tasksByHandle = {};
-                var currentlyRunningATask = false;
-                var doc = global.document;
-                var registerImmediate;
+    if (global.setImmediate) {
+        return;
+    }
 
-                function setImmediate(callback) {
-                    // Callback can either be a function or a string
-                    if (typeof callback !== "function") {
-                        callback = new Function("" + callback);
-                    }
-                    // Copy function arguments
-                    var args = new Array(arguments.length - 1);
-                    for (var i = 0; i < args.length; i++) {
-                        args[i] = arguments[i + 1];
-                    }
-                    // Store and register the task
-                    var task = { callback: callback, args: args };
-                    tasksByHandle[nextHandle] = task;
-                    registerImmediate(nextHandle);
-                    return nextHandle++;
-                }
+    var nextHandle = 1; // Spec says greater than zero
+    var tasksByHandle = {};
+    var currentlyRunningATask = false;
+    var doc = global.document;
+    var registerImmediate;
+
+    function setImmediate(callback) {
+      // Callback can either be a function or a string
+      if (typeof callback !== "function") {
+        callback = new Function("" + callback);
+      }
+      // Copy function arguments
+      var args = new Array(arguments.length - 1);
+      for (var i = 0; i < args.length; i++) {
+          args[i] = arguments[i + 1];
+      }
+      // Store and register the task
+      var task = { callback: callback, args: args };
+      tasksByHandle[nextHandle] = task;
+      registerImmediate(nextHandle);
+      return nextHandle++;
+    }
 
-                function clearImmediate(handle) {
-                    delete tasksByHandle[handle];
-                }
+    function clearImmediate(handle) {
+        delete tasksByHandle[handle];
+    }
 
-                function run(task) {
-                    var callback = task.callback;
-                    var args = task.args;
-                    switch (args.length) {
-                        case 0:
-                            callback();
-                            break;
-                        case 1:
-                            callback(args[0]);
-                            break;
-                        case 2:
-                            callback(args[0], args[1]);
-                            break;
-                        case 3:
-                            callback(args[0], args[1], args[2]);
-                            break;
-                        default:
-                            callback.apply(undefined, args);
-                            break;
-                    }
-                }
+    function run(task) {
+        var callback = task.callback;
+        var args = task.args;
+        switch (args.length) {
+        case 0:
+            callback();
+            break;
+        case 1:
+            callback(args[0]);
+            break;
+        case 2:
+            callback(args[0], args[1]);
+            break;
+        case 3:
+            callback(args[0], args[1], args[2]);
+            break;
+        default:
+            callback.apply(undefined, args);
+            break;
+        }
+    }
 
-                function runIfPresent(handle) {
-                    // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
-                    // So if we're currently running a task, we'll need to delay this invocation.
-                    if (currentlyRunningATask) {
-                        // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
-                        // "too much recursion" error.
-                        setTimeout(runIfPresent, 0, handle);
-                    } else {
-                        var task = tasksByHandle[handle];
-                        if (task) {
-                            currentlyRunningATask = true;
-                            try {
-                                run(task);
-                            } finally {
-                                clearImmediate(handle);
-                                currentlyRunningATask = false;
-                            }
-                        }
-                    }
+    function runIfPresent(handle) {
+        // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
+        // So if we're currently running a task, we'll need to delay this invocation.
+        if (currentlyRunningATask) {
+            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
+            // "too much recursion" error.
+            setTimeout(runIfPresent, 0, handle);
+        } else {
+            var task = tasksByHandle[handle];
+            if (task) {
+                currentlyRunningATask = true;
+                try {
+                    run(task);
+                } finally {
+                    clearImmediate(handle);
+                    currentlyRunningATask = false;
                 }
+            }
+        }
+    }
 
-                function installNextTickImplementation() {
-                    registerImmediate = function(handle) {
-                        process.nextTick(function () { runIfPresent(handle); });
-                    };
-                }
+    function installNextTickImplementation() {
+        registerImmediate = function(handle) {
+            process.nextTick(function () { runIfPresent(handle); });
+        };
+    }
 
-                function canUsePostMessage() {
-                    // The test against `importScripts` prevents this implementation from being installed inside a web worker,
-                    // where `global.postMessage` means something completely different and can't be used for this purpose.
-                    if (global.postMessage && !global.importScripts) {
-                        var postMessageIsAsynchronous = true;
-                        var oldOnMessage = global.onmessage;
-                        global.onmessage = function() {
-                            postMessageIsAsynchronous = false;
-                        };
-                        global.postMessage("", "*");
-                        global.onmessage = oldOnMessage;
-                        return postMessageIsAsynchronous;
-                    }
-                }
+    function canUsePostMessage() {
+        // The test against `importScripts` prevents this implementation from being installed inside a web worker,
+        // where `global.postMessage` means something completely different and can't be used for this purpose.
+        if (global.postMessage && !global.importScripts) {
+            var postMessageIsAsynchronous = true;
+            var oldOnMessage = global.onmessage;
+            global.onmessage = function() {
+                postMessageIsAsynchronous = false;
+            };
+            global.postMessage("", "*");
+            global.onmessage = oldOnMessage;
+            return postMessageIsAsynchronous;
+        }
+    }
 
-                function installPostMessageImplementation() {
-                    // Installs an event handler on `global` for the `message` event: see
-                    // * https://developer.mozilla.org/en/DOM/window.postMessage
-                    // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
-
-                    var messagePrefix = "setImmediate$" + Math.random() + "$";
-                    var onGlobalMessage = function(event) {
-                        if (event.source === global &&
-                            typeof event.data === "string" &&
-                            event.data.indexOf(messagePrefix) === 0) {
-                            runIfPresent(+event.data.slice(messagePrefix.length));
-                        }
-                    };
+    function installPostMessageImplementation() {
+        // Installs an event handler on `global` for the `message` event: see
+        // * https://developer.mozilla.org/en/DOM/window.postMessage
+        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
+
+        var messagePrefix = "setImmediate$" + Math.random() + "$";
+        var onGlobalMessage = function(event) {
+            if (event.source === global &&
+                typeof event.data === "string" &&
+                event.data.indexOf(messagePrefix) === 0) {
+                runIfPresent(+event.data.slice(messagePrefix.length));
+            }
+        };
 
-                    if (global.addEventListener) {
-                        global.addEventListener("message", onGlobalMessage, false);
-                    } else {
-                        global.attachEvent("onmessage", onGlobalMessage);
-                    }
+        if (global.addEventListener) {
+            global.addEventListener("message", onGlobalMessage, false);
+        } else {
+            global.attachEvent("onmessage", onGlobalMessage);
+        }
 
-                    registerImmediate = function(handle) {
-                        global.postMessage(messagePrefix + handle, "*");
-                    };
-                }
+        registerImmediate = function(handle) {
+            global.postMessage(messagePrefix + handle, "*");
+        };
+    }
 
-                function installMessageChannelImplementation() {
-                    var channel = new MessageChannel();
-                    channel.port1.onmessage = function(event) {
-                        var handle = event.data;
-                        runIfPresent(handle);
-                    };
+    function installMessageChannelImplementation() {
+        var channel = new MessageChannel();
+        channel.port1.onmessage = function(event) {
+            var handle = event.data;
+            runIfPresent(handle);
+        };
 
-                    registerImmediate = function(handle) {
-                        channel.port2.postMessage(handle);
-                    };
-                }
+        registerImmediate = function(handle) {
+            channel.port2.postMessage(handle);
+        };
+    }
 
-                function installReadyStateChangeImplementation() {
-                    var html = doc.documentElement;
-                    registerImmediate = function(handle) {
-                        // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
-                        // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
-                        var script = doc.createElement("script");
-                        script.onreadystatechange = function () {
-                            runIfPresent(handle);
-                            script.onreadystatechange = null;
-                            html.removeChild(script);
-                            script = null;
-                        };
-                        html.appendChild(script);
-                    };
-                }
+    function installReadyStateChangeImplementation() {
+        var html = doc.documentElement;
+        registerImmediate = function(handle) {
+            // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
+            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
+            var script = doc.createElement("script");
+            script.onreadystatechange = function () {
+                runIfPresent(handle);
+                script.onreadystatechange = null;
+                html.removeChild(script);
+                script = null;
+            };
+            html.appendChild(script);
+        };
+    }
 
-                function installSetTimeoutImplementation() {
-                    registerImmediate = function(handle) {
-                        setTimeout(runIfPresent, 0, handle);
-                    };
-                }
+    function installSetTimeoutImplementation() {
+        registerImmediate = function(handle) {
+            setTimeout(runIfPresent, 0, handle);
+        };
+    }
 
-                // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
-                var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
-                attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
+    // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
+    var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
+    attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
 
-                // Don't get fooled by e.g. browserify environments.
-                if ({}.toString.call(global.process) === "[object process]") {
-                    // For Node.js before 0.9
-                    installNextTickImplementation();
+    // Don't get fooled by e.g. browserify environments.
+    if ({}.toString.call(global.process) === "[object process]") {
+        // For Node.js before 0.9
+        installNextTickImplementation();
 
-                } else if (canUsePostMessage()) {
-                    // For non-IE10 modern browsers
-                    installPostMessageImplementation();
+    } else if (canUsePostMessage()) {
+        // For non-IE10 modern browsers
+        installPostMessageImplementation();
 
-                } else if (global.MessageChannel) {
-                    // For web workers, where supported
-                    installMessageChannelImplementation();
+    } else if (global.MessageChannel) {
+        // For web workers, where supported
+        installMessageChannelImplementation();
 
-                } else if (doc && "onreadystatechange" in doc.createElement("script")) {
-                    // For IE 6–8
-                    installReadyStateChangeImplementation();
+    } else if (doc && "onreadystatechange" in doc.createElement("script")) {
+        // For IE 6–8
+        installReadyStateChangeImplementation();
 
-                } else {
-                    // For older browsers
-                    installSetTimeoutImplementation();
-                }
+    } else {
+        // For older browsers
+        installSetTimeoutImplementation();
+    }
 
-                attachTo.setImmediate = setImmediate;
-                attachTo.clearImmediate = clearImmediate;
-            }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
+    attachTo.setImmediate = setImmediate;
+    attachTo.clearImmediate = clearImmediate;
+}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js")))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js")))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/timers-browserify/main.js":
-        /*!************************************************!*\
+/***/ "./node_modules/timers-browserify/main.js":
+/*!************************************************!*\
   !*** ./node_modules/timers-browserify/main.js ***!
   \************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
-                (typeof self !== "undefined" && self) ||
-                window;
-                var apply = Function.prototype.apply;
+/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
+            (typeof self !== "undefined" && self) ||
+            window;
+var apply = Function.prototype.apply;
 
 // DOM APIs, for completeness
 
-                exports.setTimeout = function() {
-                    return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
-                };
-                exports.setInterval = function() {
-                    return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
-                };
-                exports.clearTimeout =
-                    exports.clearInterval = function(timeout) {
-                        if (timeout) {
-                            timeout.close();
-                        }
-                    };
+exports.setTimeout = function() {
+  return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
+};
+exports.setInterval = function() {
+  return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
+};
+exports.clearTimeout =
+exports.clearInterval = function(timeout) {
+  if (timeout) {
+    timeout.close();
+  }
+};
 
-                function Timeout(id, clearFn) {
-                    this._id = id;
-                    this._clearFn = clearFn;
-                }
-                Timeout.prototype.unref = Timeout.prototype.ref = function() {};
-                Timeout.prototype.close = function() {
-                    this._clearFn.call(scope, this._id);
-                };
+function Timeout(id, clearFn) {
+  this._id = id;
+  this._clearFn = clearFn;
+}
+Timeout.prototype.unref = Timeout.prototype.ref = function() {};
+Timeout.prototype.close = function() {
+  this._clearFn.call(scope, this._id);
+};
 
 // Does not start the time, just sets up the members needed.
-                exports.enroll = function(item, msecs) {
-                    clearTimeout(item._idleTimeoutId);
-                    item._idleTimeout = msecs;
-                };
-
-                exports.unenroll = function(item) {
-                    clearTimeout(item._idleTimeoutId);
-                    item._idleTimeout = -1;
-                };
-
-                exports._unrefActive = exports.active = function(item) {
-                    clearTimeout(item._idleTimeoutId);
-
-                    var msecs = item._idleTimeout;
-                    if (msecs >= 0) {
-                        item._idleTimeoutId = setTimeout(function onTimeout() {
-                            if (item._onTimeout)
-                                item._onTimeout();
-                        }, msecs);
-                    }
-                };
+exports.enroll = function(item, msecs) {
+  clearTimeout(item._idleTimeoutId);
+  item._idleTimeout = msecs;
+};
+
+exports.unenroll = function(item) {
+  clearTimeout(item._idleTimeoutId);
+  item._idleTimeout = -1;
+};
+
+exports._unrefActive = exports.active = function(item) {
+  clearTimeout(item._idleTimeoutId);
+
+  var msecs = item._idleTimeout;
+  if (msecs >= 0) {
+    item._idleTimeoutId = setTimeout(function onTimeout() {
+      if (item._onTimeout)
+        item._onTimeout();
+    }, msecs);
+  }
+};
 
 // setimmediate attaches itself to the global object
-                __webpack_require__(/*! setimmediate */ "./node_modules/setimmediate/setImmediate.js");
+__webpack_require__(/*! setimmediate */ "./node_modules/setimmediate/setImmediate.js");
 // On some exotic environments, it's not clear which object `setimmediate` was
 // able to install onto.  Search each possibility in the same order as the
 // `setimmediate` library.
-                exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
-                    (typeof global !== "undefined" && global.setImmediate) ||
-                    (this && this.setImmediate);
-                exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
-                    (typeof global !== "undefined" && global.clearImmediate) ||
-                    (this && this.clearImmediate);
+exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
+                       (typeof global !== "undefined" && global.setImmediate) ||
+                       (this && this.setImmediate);
+exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
+                         (typeof global !== "undefined" && global.clearImmediate) ||
+                         (this && this.clearImmediate);
 
-                /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/webpack/buildin/global.js":
-        /*!***********************************!*\
+/***/ "./node_modules/webpack/buildin/global.js":
+/*!***********************************!*\
   !*** (webpack)/buildin/global.js ***!
   \***********************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+/*! no static exports found */
+/***/ (function(module, exports) {
 
-            var g;
+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 = (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;
+module.exports = g;
 
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./node_modules/webpack/buildin/module.js":
-        /*!***********************************!*\
+/***/ "./node_modules/webpack/buildin/module.js":
+/*!***********************************!*\
   !*** (webpack)/buildin/module.js ***!
   \***********************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
-
-            module.exports = function(module) {
-                if (!module.webpackPolyfill) {
-                    module.deprecate = function() {};
-                    module.paths = [];
-                    // module.parent = undefined by default
-                    if (!module.children) module.children = [];
-                    Object.defineProperty(module, "loaded", {
-                        enumerable: true,
-                        get: function() {
-                            return module.l;
-                        }
-                    });
-                    Object.defineProperty(module, "id", {
-                        enumerable: true,
-                        get: function() {
-                            return module.i;
-                        }
-                    });
-                    module.webpackPolyfill = 1;
-                }
-                return module;
-            };
-
-
-            /***/ }),
-
-        /***/ "./resources/js/app.js":
-        /*!*****************************!*\
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+module.exports = function(module) {
+	if (!module.webpackPolyfill) {
+		module.deprecate = function() {};
+		module.paths = [];
+		// module.parent = undefined by default
+		if (!module.children) module.children = [];
+		Object.defineProperty(module, "loaded", {
+			enumerable: true,
+			get: function() {
+				return module.l;
+			}
+		});
+		Object.defineProperty(module, "id", {
+			enumerable: true,
+			get: function() {
+				return module.i;
+			}
+		});
+		module.webpackPolyfill = 1;
+	}
+	return module;
+};
+
+
+/***/ }),
+
+/***/ "./resources/js/app.js":
+/*!*****************************!*\
   !*** ./resources/js/app.js ***!
   \*****************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); // charts
+__webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); // charts
 
 
-            var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
+var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
 
-            var Chart = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
+var Chart = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
 
-            __webpack_require__(/*! chartjs-plugin-annotation */ "./node_modules/chartjs-plugin-annotation/src/index.js");
+__webpack_require__(/*! chartjs-plugin-annotation */ "./node_modules/chartjs-plugin-annotation/src/index.js");
 
-            window.colors = {
-                red: 'rgba(255, 99, 132, 0.4)',
-                orange: 'rgba(255, 165, 0, 0.6)',
-                yellow: 'rgba(255, 205, 86, 0.4)',
-                green: 'rgba(0, 178, 0, 0.6)',
-                blue: 'rgba(54, 162, 235, 0.4)',
-                purple: 'rgba(153, 102, 255, 0.4)',
-                grey: 'rgba(201, 203, 207, 0.4)'
-            };
-            window.colorNames = Object.keys(window.colors);
-            window.transparent = "rgba(255, 255, 255, 0.0)"; // activation graph
+window.colors = {
+  red: 'rgba(255, 99, 132, 0.4)',
+  orange: 'rgba(255, 165, 0, 0.6)',
+  yellow: 'rgba(255, 205, 86, 0.4)',
+  green: 'rgba(0, 178, 0, 0.6)',
+  blue: 'rgba(54, 162, 235, 0.4)',
+  purple: 'rgba(153, 102, 255, 0.4)',
+  grey: 'rgba(201, 203, 207, 0.4)'
+};
+window.colorNames = Object.keys(window.colors);
+window.transparent = "rgba(255, 255, 255, 0.0)"; // activation graph
 
-            window.cytoscape = __webpack_require__(/*! cytoscape */ "./node_modules/cytoscape/dist/cytoscape.cjs.js");
+window.cytoscape = __webpack_require__(/*! cytoscape */ "./node_modules/cytoscape/dist/cytoscape.cjs.js");
 
-            var dagre = __webpack_require__(/*! cytoscape-dagre */ "./node_modules/cytoscape-dagre/cytoscape-dagre.js");
+var dagre = __webpack_require__(/*! cytoscape-dagre */ "./node_modules/cytoscape-dagre/cytoscape-dagre.js");
 
-            cytoscape.use(dagre);
+cytoscape.use(dagre);
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./resources/js/bootstrap.js":
-        /*!***********************************!*\
+/***/ "./resources/js/bootstrap.js":
+/*!***********************************!*\
   !*** ./resources/js/bootstrap.js ***!
   \***********************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+window._ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
+/**
+ * We'll load jQuery and the Bootstrap jQuery plugin which provides support
+ * for JavaScript based Bootstrap features such as modals and tabs. This
+ * code may be modified to fit the specific needs of your application.
+ */
 
-            window._ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
-            /**
-             * We'll load jQuery and the Bootstrap jQuery plugin which provides support
-             * for JavaScript based Bootstrap features such as modals and tabs. This
-             * code may be modified to fit the specific needs of your application.
-             */
+try {
+  window.Popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")["default"];
+  window.$ = window.jQuery = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js");
 
-            try {
-                window.Popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")["default"];
-                window.$ = window.jQuery = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js");
-
-                __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap/dist/js/bootstrap.js");
-            } catch (e) {}
-            /**
-             * We'll load the axios HTTP library which allows us to easily issue requests
-             * to our Laravel back-end. This library automatically handles sending the
-             * CSRF token as a header based on the value of the "XSRF" token cookie.
-             */
-
-
-            window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
-            window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
-            /**
-             * Echo exposes an expressive API for subscribing to channels and listening
-             * for events that are broadcast by Laravel. Echo and event broadcasting
-             * allows your team to easily build robust real-time web applications.
-             */
+  __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap/dist/js/bootstrap.js");
+} catch (e) {}
+/**
+ * We'll load the axios HTTP library which allows us to easily issue requests
+ * to our Laravel back-end. This library automatically handles sending the
+ * CSRF token as a header based on the value of the "XSRF" token cookie.
+ */
+
+
+window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
+window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
+/**
+ * Echo exposes an expressive API for subscribing to channels and listening
+ * for events that are broadcast by Laravel. Echo and event broadcasting
+ * allows your team to easily build robust real-time web applications.
+ */
 // import Echo from 'laravel-echo';
 // window.Pusher = require('pusher-js');
 // window.Echo = new Echo({
@@ -122861,30 +122861,30 @@ THE SOFTWARE.
 //     forceTLS: true
 // });
 
-            /***/ }),
+/***/ }),
 
-        /***/ "./resources/sass/app.scss":
-        /*!*********************************!*\
+/***/ "./resources/sass/app.scss":
+/*!*********************************!*\
   !*** ./resources/sass/app.scss ***!
   \*********************************/
-        /*! no static exports found */
-        /***/ (function(module, exports) {
+/*! no static exports found */
+/***/ (function(module, exports) {
 
 // removed by extract-text-webpack-plugin
 
-            /***/ }),
+/***/ }),
 
-        /***/ 0:
-        /*!*************************************************************!*\
+/***/ 0:
+/*!*************************************************************!*\
   !*** multi ./resources/js/app.js ./resources/sass/app.scss ***!
   \*************************************************************/
-        /*! no static exports found */
-        /***/ (function(module, exports, __webpack_require__) {
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
 
-            __webpack_require__(/*! /home/alex/Documents/mark-web/resources/js/app.js */"./resources/js/app.js");
-            module.exports = __webpack_require__(/*! /home/alex/Documents/mark-web/resources/sass/app.scss */"./resources/sass/app.scss");
+__webpack_require__(/*! /home/georgi/00.Georgi/00.01.DATA/00.01.01.GITLAB/00.01.01.01.MARK-MASFAD/mark_web_visualization/mark-web/resources/js/app.js */"./resources/js/app.js");
+module.exports = __webpack_require__(/*! /home/georgi/00.Georgi/00.01.DATA/00.01.01.GITLAB/00.01.01.01.MARK-MASFAD/mark_web_visualization/mark-web/resources/sass/app.scss */"./resources/sass/app.scss");
 
 
-            /***/ })
+/***/ })
 
-        /******/ });
+/******/ });
\ No newline at end of file
-- 
GitLab